~ubuntu-branches/ubuntu/feisty/dejagnu/feisty

« back to all changes in this revision

Viewing changes to acinclude.m4

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2004-02-09 15:07:58 UTC
  • Revision ID: james.westby@ubuntu.com-20040209150758-oaj7r5zrop60v8sb
Tags: upstream-1.4.4
ImportĀ upstreamĀ versionĀ 1.4.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_DEFUN(DJ_AC_STL, [
 
2
AC_MSG_CHECKING(for STL versions)
 
3
AC_CACHE_VAL(ac_cv_stl,[
 
4
  AC_LANG_CPLUSPLUS
 
5
  AC_TRY_COMPILE([#include <iostream>], [
 
6
  using namespace std;
 
7
  char bbuuff[5120];
 
8
  cout.rdbuf()->pubsetbuf(bbuuff, 5120); ],
 
9
  ac_cv_stl=v3
 
10
  ,
 
11
  ac_cv_stl=v2
 
12
  ),
 
13
])
 
14
 
 
15
AC_LANG_C
 
16
if test x"${ac_cv_stl}" != x"v2" ; then
 
17
  AC_MSG_RESULT(v3)
 
18
  AC_DEFINE(HAVE_STL3)
 
19
else
 
20
  AC_MSG_RESULT(v2)
 
21
fi
 
22
])
 
23
 
 
24
AC_DEFUN(DJ_AC_PATH_TCLSH, [
 
25
dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../
 
26
../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../..
 
27
/../../../../../.."
 
28
no_itcl=true
 
29
AC_MSG_CHECKING(for the tclsh program)
 
30
AC_ARG_WITH(tclinclude, [  --with-tclinclude       directory where tcl headers are], with_tclinclude=${withval})
 
31
AC_CACHE_VAL(ac_cv_path_tclsh,[
 
32
dnl first check to see if --with-itclinclude was specified
 
33
if test x"${with_tclinclude}" != x ; then
 
34
  if test -f ${with_tclinclude}/tclsh ; then
 
35
    ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
 
36
  elif test -f ${with_tclinclude}/src/tclsh ; then
 
37
    ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
 
38
  else
 
39
    AC_MSG_ERROR([${with_tclinclude} directory doesn't contain tclsh])
 
40
  fi
 
41
fi
 
42
])
 
43
 
 
44
dnl next check in private source directory
 
45
dnl since ls returns lowest version numbers first, reverse its output
 
46
if test x"${ac_cv_path_tclsh}" = x ; then
 
47
    dnl find the top level Itcl source directory
 
48
    for i in $dirlist; do
 
49
        if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
 
50
            tclpath=$srcdir/$i
 
51
            break
 
52
        fi
 
53
    done
 
54
 
 
55
    dnl find the exact Itcl source dir. We do it this way, cause there
 
56
    dnl might be multiple version of Itcl, and we want the most recent one.
 
57
    for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
 
58
        if test -f $i/src/tclsh ; then
 
59
          ac_cv_path_tclsh=`(cd $i/src; pwd)`/tclsh
 
60
          break
 
61
        fi
 
62
    done
 
63
fi
 
64
 
 
65
dnl see if one is installed
 
66
if test x"${ac_cv_path_tclsh}" = x ; then
 
67
   AC_MSG_RESULT(none)
 
68
   AC_PATH_PROG(tclsh, tclsh)
 
69
else
 
70
   AC_MSG_RESULT(${ac_cv_path_tclsh})
 
71
fi
 
72
TCLSH="${ac_cv_path_tclsh}"
 
73
AC_SUBST(TCLSH)
 
74
])
 
75
 
 
76
 
 
77
AC_DEFUN(DJ_AC_PATH_DOCBOOK, [
 
78
dirlist=".. ../../ ../../.. ../../../.. ../../../../.. ../../../../../.. ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
 
79
AC_MSG_CHECKING(for docbook tools)
 
80
AC_ARG_WITH(oskith, [  --with-docbook       directory where the db2 sgml tools are], with_docbook=${withval})
 
81
AC_CACHE_VAL(ac_cv_c_docbook,[
 
82
dnl first check to see if --with-docbook was specified
 
83
if test x"${with_docbook}" != x ; then
 
84
  if test -f ${with_docbook}/db2html ; then
 
85
    ac_cv_c_docbook=`(cd ${with_docbook}; pwd)`
 
86
  else
 
87
    AC_MSG_ERROR([${with_docbook} directory doesn't contain SGML tools])
 
88
  fi
 
89
fi
 
90
])
 
91
if test x"${ac_cv_c_docbook}" = x ; then
 
92
    for i in $ac_default_prefix/bin /usr/local/bin $OSKITHDIR/../bin /usr/bin /bin /opt /home; do
 
93
        dnl See is we have an SGML tool in that directory.
 
94
        if test -f $i/db2html ; then
 
95
            ac_cv_c_docbook=$i
 
96
            break
 
97
        fi
 
98
    done
 
99
fi
 
100
 
 
101
if test x"${ac_cv_c_docbook}" = x ; then
 
102
    AC_MSG_RESULT(none)
 
103
else
 
104
    DOCBOOK="${ac_cv_c_docbook}"
 
105
    AC_MSG_RESULT(${ac_cv_c_docbook})
 
106
fi
 
107
 
 
108
AC_SUBST(DOCBOOK)
 
109
])
 
110