]> The Tcpdump Group git mirrors - tcpdump/blobdiff - configure
AC_TRY_COMPILE works only for code that fits inside "main()"; the test
[tcpdump] / configure
index 9a6fd2c814533d4e6b639834bf549eee344069c9..38a753a9fa0909df15abfe3775fd3571a8f2d53b 100755 (executable)
--- a/configure
+++ b/configure
@@ -2597,10 +2597,6 @@ cat >>conftest.$ac_ext <<_ACEOF
 
 #include <stdlib.h>
 
-int
-main ()
-{
-
 static void foo(void) __attribute__ ((noreturn));
 
 static void
@@ -2609,9 +2605,12 @@ foo(void)
   exit(1);
 }
 
-  ;
-  return 0;
+int
+main(int argc, char **argv)
+{
+  foo();
 }
+
 _ACEOF
 rm -f conftest.$ac_objext
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5