3
3
dnl DO NOT EDIT THIS FILE (ag_macros.m4)
5
dnl It has been AutoGen-ed August 8, 2009 at 10:14:46 AM by AutoGen 5.9.9
5
dnl It has been AutoGen-ed November 8, 2009 at 08:41:10 AM by AutoGen 5.9.10pre13
6
6
dnl From the definitions misc.def
7
7
dnl and the template file conftest.tpl
11
11
AC_DEFUN([INVOKE_AG_MACROS_LAST],[
12
12
[if test X${INVOKE_AG_MACROS_LAST_done} != Xyes ; then]
13
AC_CHECK_HEADERS(libio.h)
13
AC_CHECK_HEADERS(libio.h ctype.h assert.h)
14
14
INVOKE_LIBOPTS_MACROS
15
15
AC_CHECK_DECLS([sigsetjmp],,, [#include <setjmp.h>])
16
16
AC_CHECK_FUNCS(fopencookie funopen, break)
80
80
AC_DEFUN([AG_DISABLE_SHELL],[
81
81
AC_ARG_ENABLE([shell],
82
AC_HELP_STRING([--disable-shell], [using shell scripts]),
82
AC_HELP_STRING([--disable-shell], [shell scripts are desired]),
83
83
[ag_cv_enable_shell=${enable_shell}],
84
AC_CACHE_CHECK([whether using shell scripts], ag_cv_enable_shell,
84
AC_CACHE_CHECK([whether shell scripts are desired], ag_cv_enable_shell,
85
85
ag_cv_enable_shell=yes)
86
86
) # end of AC_ARG_ENABLE
88
88
if test "X${ag_cv_enable_shell}" != Xno
90
AC_DEFINE([SHELL_ENABLED],[1],
91
[Define this if using shell scripts])
93
]) # end of AC_DEFUN of AG_DISABLE_SHELL
96
AC_DEFUN([AG_TEST_DO_SHELL],[
97
AC_MSG_CHECKING([whether using shell scripts])
98
AC_CACHE_VAL([ag_cv_test_do_shell],[
99
ag_cv_test_do_shell=`exec 2> /dev/null
100
test "x$ac_cv_func_fork_works" = xyes && test "x$ag_cv_enable_shell" = xyes || exit 1 ; echo yes`
102
then ag_cv_test_do_shell=no
103
elif test -z "$ag_cv_test_do_shell"
104
then ag_cv_test_do_shell=no
106
]) # end of CACHE_VAL of ag_cv_test_do_shell
107
AC_MSG_RESULT([${ag_cv_test_do_shell}])
109
if test "X${ag_cv_test_do_shell}" != Xno
92
111
AC_SUBST(OPTS_TESTDIR)
95
AGEN5_TESTS='@S|@(SHELL_TESTS) @S|@(NOSHELL_TESTS)'
112
AC_SUBST(AGEN5_TESTS)
113
AC_DEFINE([SHELL_ENABLED], [1], [Define if shell scripts are enabled])
115
AGEN5_TESTS='$(SHELL_TESTS) $(NOSHELL_TESTS)'
97
TOP_DIRLIST='@S|@(NOSHELL_DIRS) @S|@(XML2AG_DIR)'
99
AGEN5_TESTS='@S|@(NOSHELL_TESTS)'
118
AGEN5_TESTS='$(NOSHELL_TESTS)'
101
AM_CONDITIONAL([DO_SHELL_CMDS],[test "X${ag_cv_enable_shell}" != Xno])
120
AM_CONDITIONAL([DO_SHELL_CMDS],[test "X${ag_cv_test_do_shell}" != Xno])
103
]) # end of AC_DEFUN of AG_DISABLE_SHELL
122
]) # end of AC_DEFUN of AG_TEST_DO_SHELL
106
125
AC_DEFUN([AG_LINK_SETJMP],[