X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..a55d413fd693cc85398b6929bd91589d79674c19:/aclocal.m4 diff --git a/aclocal.m4 b/aclocal.m4 index cc5d05d..dadc38d 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,9 +1,18 @@ -# $Id: aclocal.m4 918 2006-02-23 18:17:21Z nenolod $ - aclocal.m4 - Autoconf fun... +# $Id: aclocal.m4 3321 2007-03-30 23:32:43Z jilles $ - aclocal.m4 - Autoconf fun... AC_DEFUN([AC_DEFINE_DIR], [ test "x$prefix" = xNONE && prefix="$ac_default_prefix" test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - ac_define_dir=`eval echo [$]$2` - ac_define_dir=`eval echo [$]ac_define_dir` + last_ac_define_dir=`eval echo [$]$2` + ac_define_dir=`eval echo [$]last_ac_define_dir` + ac_define_dir_counter=0 + while test "x[$]last_ac_define_dir" != "x[$]ac_define_dir"; do + last_ac_define_dir="[$]ac_define_dir" + ac_define_dir=`eval echo [$]last_ac_define_dir` + AS_VAR_ARITH([ac_define_dir_counter], [$ac_define_dir_counter + 1]) + AS_VAR_IF([ac_define_dir_counter], [128], + [AC_MSG_ERROR([detected recusive directory expansion when expanding $1=[$]$2: [$]ac_define_dir]) + break]) + done $1="$ac_define_dir" AC_SUBST($1) ifelse($3, , @@ -34,7 +43,7 @@ AC_DEFUN([CHARYBDIS_C_GCC_TRY_FLAGS],[ #include int main(void); ],[ - strcmp("a","b"); fprintf(stdout,"test ok\n"); + (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); ], [$2=yes], [$2=no]) CFLAGS="${oldcflags}"]) if test "x$$2" = xyes; then