Regenerated html docs. Tweaked how Makefile.am builds tarballs.
[dejagnu.git] / acinclude.m4
blob8b50e1470f8feda91a843b81ec301d6fd771f02e
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   ),
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)
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 header
31 s are], with_tclinclude=${withval})
32 AC_CACHE_VAL(ac_cv_path_tclsh,[
33 dnl first check to see if --with-itclinclude was specified
34 if test x"${with_tclinclude}" != x ; then
35   if test -f ${with_tclinclude}/tclsh ; then
36     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
37   elif test -f ${with_tclinclude}/src/tclsh ; then
38     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
39   else
40     AC_MSG_ERROR([${with_tclinclude} directory doesn't contain tclsh])
41   fi
45 dnl next check in private source directory
46 dnl since ls returns lowest version numbers first, reverse its output
47 if test x"${ac_cv_path_tclsh}" = x ; then
48     dnl find the top level Itcl source directory
49     for i in $dirlist; do
50         if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
51             tclpath=$srcdir/$i
52             break
53         fi
54     done
56     dnl find the exact Itcl source dir. We do it this way, cause there
57     dnl might be multiple version of Itcl, and we want the most recent one.
58     for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
59         if test -f $i/src/tclsh ; then
60           ac_cv_path_tclsh=`(cd $i/src; pwd)`/tclsh
61           break
62         fi
63     done
66 dnl see if one is installed
67 if test x"${ac_cv_path_tclsh}" = x ; then
68    AC_MSG_RESULT(none)
69    AC_PATH_PROG(tclsh, tclsh)
70 else
71    AC_MSG_RESULT(${ac_cv_path_tclsh})
73 TCLSH="${ac_cv_path_tclsh}"
74 AC_SUBST(TCLSH)
78 AC_DEFUN(DJ_AC_PATH_DOCBOOK, [
79 dirlist=".. ../../ ../../.. ../../../.. ../../../../.. ../../../../../.. ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
80 AC_MSG_CHECKING(for docbook tools)
81 AC_ARG_WITH(oskith, [  --with-docbook       directory where the db2 sgml tools are], with_docbook=${withval})
82 AC_CACHE_VAL(ac_cv_c_docbook,[
83 dnl first check to see if --with-docbook was specified
84 if test x"${with_docbook}" != x ; then
85   if test -f ${with_docbook}/db2html ; then
86     ac_cv_c_docbook=`(cd ${with_docbook}; pwd)`
87   else
88     AC_MSG_ERROR([${with_docbook} directory doesn't contain SGML tools])
89   fi
92 if test x"${ac_cv_c_docbook}" = x ; then
93     for i in $ac_default_prefix/bin /usr/local/bin $OSKITHDIR/../bin /usr/bin /bin /opt /home; do
94         dnl See is we have an SGML tool in that directory.
95         if test -f $i/db2html ; then
96             ac_cv_c_docbook=$i
97             break
98         fi
99     done
102 if test x"${ac_cv_c_docbook}" = x ; then
103     AC_MSG_RESULT(none)
104 else
105     DOCBOOK="${ac_cv_c_docbook}"
106     AC_MSG_RESULT(${ac_cv_c_docbook})
109 AC_SUBST(DOCBOOK)