1 AC_DEFUN([AC_DEFINE_DIR], [
2 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4 ac_define_dir=`eval echo [$]$2`
5 ac_define_dir=`eval echo [$]ac_define_dir`
9 AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
10 AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
13 AC_DEFUN([AC_SUBST_DIR], [
14 ifelse($2,,,$1="[$]$2")
16 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
17 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
23 dnl SEVEN_C_GCC_TRY_FLAGS(<warnings>,<cachevar>)
24 AC_DEFUN([SEVEN_C_GCC_TRY_FLAGS],[
25 AC_MSG_CHECKING([GCC flag(s) $1])
26 if test "${GCC-no}" = yes
29 oldcflags="${CFLAGS-}"
30 CFLAGS="${CFLAGS-} ${CWARNS} $1 -Werror"
36 strcmp("a","b"); fprintf(stdout,"test ok\n");
38 CFLAGS="${oldcflags}"])
39 if test "x$$2" = xyes; then
47 AC_MSG_RESULT(no, not using GCC)