]> andersk Git - openssh.git/blobdiff - configure.ac
- (djm) [configure.ac openbsd-compat/Makefile.in]
[openssh.git] / configure.ac
index 057d26ca1bf8c5b6c7d1e3ee26cc860cca9836ca..f9621d1b8379e1647f2438ab5017116a46e76b88 100644 (file)
@@ -79,6 +79,15 @@ AC_SUBST(LD)
 AC_C_INLINE
 if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
        CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wno-uninitialized"
+
+       # Check for -std=gnu99 support (needed for LLONG_MIN/MAX on Linux)
+       saved_CFLAGS="$CFLAGS"
+       CFLAGS="$CFLAGS -std=gnu99"
+       AC_MSG_CHECKING(whether cc accepts -std=gnu99 option)
+       AC_TRY_COMPILE([], [return(0);], [AC_MSG_RESULT(yes)],
+               [AC_MSG_RESULT(no)
+               CFLAGS="$saved_CFLAGS"],
+       )
 fi
 
 AC_ARG_WITH(rpath,
@@ -922,7 +931,7 @@ AC_CHECK_FUNCS(\
        setdtablesize setegid setenv seteuid setgroups setlogin setpcred \
        setproctitle setregid setreuid setrlimit \
        setsid setvbuf sigaction sigvec snprintf socketpair strerror \
-       strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \
+       strlcat strlcpy strmode strnvis strtonum strtoul sysconf tcgetpgrp \
        truncate unsetenv updwtmpx utimes vhangup vsnprintf waitpid \
 )
 
This page took 0.035175 seconds and 4 git commands to generate.