X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=gnupg2.git;a=blobdiff_plain;f=configure.ac;h=237189cf9449c8e63bb4566c3afb271994e69693;hp=663061031f9456a0f730348fc0939593efe03dea;hb=refs%2Fheads%2F841143-extra-debug-messages;hpb=ec7411146b283f9271f7d087bb7a58e2dba45fea diff --git a/configure.ac b/configure.ac index 6630610..237189c 100644 --- a/configure.ac +++ b/configure.ac @@ -1335,6 +1335,7 @@ AC_CHECK_FUNCS([strerror strlwr tcgetattr mmap canonicalize_file_name]) AC_CHECK_FUNCS([strcasecmp strncasecmp ctermid times gmtime_r strtoull]) AC_CHECK_FUNCS([setenv unsetenv fcntl ftruncate inet_ntop]) AC_CHECK_FUNCS([canonicalize_file_name]) +AC_CHECK_FUNCS([prctl]) AC_CHECK_FUNCS([gettimeofday getrusage getrlimit setrlimit clock_gettime]) AC_CHECK_FUNCS([atexit raise getpagesize strftime nl_langinfo setlocale]) AC_CHECK_FUNCS([waitpid wait4 sigaction sigprocmask pipe getaddrinfo]) @@ -1574,6 +1575,15 @@ if test "$GCC" = yes; then if test x"$_gcc_wopt" = xyes ; then mycflags="$mycflags -Wdeclaration-after-statement" fi + + AC_MSG_CHECKING([if gcc supports -Wlogical-op and -Wvla]) + CFLAGS="-Wlogical-op -Wvla" + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],_gcc_wopt=yes,_gcc_wopt=no) + AC_MSG_RESULT($_gcc_wopt) + if test x"$_gcc_wopt" = xyes ; then + mycflags="$mycflags -Wlogical-op -Wvla" + fi + else mycflags="$mycflags -Wall" fi