/[dejagnu]/dejagnu/example/hello/aclocal.m4
ViewVC logotype

Diff of /dejagnu/example/hello/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by rsavoye, Mon Jul 15 01:31:58 2002 UTC revision 1.2 by rsavoye, Sat Aug 31 05:46:16 2002 UTC
# Line 11  Line 11 
11  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12  # PARTICULAR PURPOSE.  # PARTICULAR PURPOSE.
13    
14    AC_DEFUN(DJ_AC_STL, [
15    AC_MSG_CHECKING(for STL versions)
16    AC_CACHE_VAL(ac_cv_stl,[
17      AC_LANG_CPLUSPLUS
18      AC_TRY_COMPILE([#include <iostream>], [
19      using namespace std;
20      char bbuuff[5120];
21      cout.rdbuf()->pubsetbuf(bbuuff, 5120); ],
22      ac_cv_stl=v3
23      ,
24      ac_cv_stl=v2
25      ),
26    ])
27    
28    AC_LANG_C
29    if test x"${ac_cv_stl}" != x"v2" ; then  
30      AC_MSG_RESULT(v3)
31      AC_DEFINE(HAVE_STL3)
32    else
33      AC_MSG_RESULT(v2)
34    fi
35    ])
36    
37    AC_DEFUN(DJ_AC_PATH_TCLSH, [
38    dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../
39    ../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../..
40    /../../../../../.."
41    no_itcl=true
42    AC_MSG_CHECKING(for the tclsh program)
43    AC_ARG_WITH(tclinclude, [  --with-tclinclude       directory where tcl header
44    s are], with_tclinclude=${withval})
45    AC_CACHE_VAL(ac_cv_path_tclsh,[
46    dnl first check to see if --with-itclinclude was specified
47    if test x"${with_tclinclude}" != x ; then
48      if test -f ${with_tclinclude}/tclsh ; then
49        ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
50      elif test -f ${with_tclinclude}/src/tclsh ; then
51        ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
52      else
53        AC_MSG_ERROR([${with_tclinclude} directory doesn't contain tclsh])
54      fi
55    fi
56    ])
57    
58    dnl next check in private source directory
59    dnl since ls returns lowest version numbers first, reverse its output
60    if test x"${ac_cv_path_tclsh}" = x ; then
61        dnl find the top level Itcl source directory
62        for i in $dirlist; do
63            if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
64                tclpath=$srcdir/$i
65                break
66            fi
67        done
68    
69        dnl find the exact Itcl source dir. We do it this way, cause there
70        dnl might be multiple version of Itcl, and we want the most recent one.
71        for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
72            if test -f $i/src/tclsh ; then
73              ac_cv_path_tclsh=`(cd $i/src; pwd)`/tclsh
74              break
75            fi
76        done
77    fi
78    
79    dnl see if one is installed
80    if test x"${ac_cv_path_tclsh}" = x ; then
81       AC_MSG_RESULT(none)
82       AC_PATH_PROG(tclsh, tclsh)
83    else
84       AC_MSG_RESULT(${ac_cv_path_tclsh})
85    fi
86    TCLSH="${ac_cv_path_tclsh}"
87    AC_SUBST(TCLSH)
88    ])
89    
90    
91    AC_DEFUN(DJ_AC_PATH_DOCBOOK, [
92    dirlist=".. ../../ ../../.. ../../../.. ../../../../.. ../../../../../.. ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
93    AC_MSG_CHECKING(for docbook tools)
94    AC_ARG_WITH(oskith, [  --with-docbook       directory where the db2 sgml tools are], with_docbook=${withval})
95    AC_CACHE_VAL(ac_cv_c_docbook,[
96    dnl first check to see if --with-docbook was specified
97    if test x"${with_docbook}" != x ; then
98      if test -f ${with_docbook}/db2html ; then
99        ac_cv_c_docbook=`(cd ${with_docbook}; pwd)`
100      else
101        AC_MSG_ERROR([${with_docbook} directory doesn't contain SGML tools])
102      fi
103    fi
104    ])
105    if test x"${ac_cv_c_docbook}" = x ; then
106        for i in $ac_default_prefix/bin /usr/local/bin $OSKITHDIR/../bin /usr/bin /bin /opt /home; do
107            dnl See is we have an SGML tool in that directory.
108            if test -f $i/db2html ; then
109                ac_cv_c_docbook=$i
110                break
111            fi
112        done
113    fi
114    
115    if test x"${ac_cv_c_docbook}" = x ; then
116        AC_MSG_RESULT(none)
117    else
118        DOCBOOK="${ac_cv_c_docbook}"
119        AC_MSG_RESULT(${ac_cv_c_docbook})
120    fi
121    
122    AC_SUBST(DOCBOOK)
123    ])
124    
125    
126  # Do all the work for Automake.  This macro actually does too much --  # Do all the work for Automake.  This macro actually does too much --
127  # some checks are only needed if your package does certain things.  # some checks are only needed if your package does certain things.
128  # But this isn't really a big deal.  # But this isn't really a big deal.

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26