]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Put the call to AC_LANG_SOURCE in AC_C___ATTRIBUTE__ in quotes.
authorGuy Harris <[email protected]>
Tue, 1 Feb 2011 22:59:53 +0000 (14:59 -0800)
committerGuy Harris <[email protected]>
Tue, 1 Feb 2011 23:00:22 +0000 (15:00 -0800)
That's what they do in the autoconf manual; perhaps it'll squelch some
warnings I'm seeing on NetBSD 5.1 with autoconf 2.68.

aclocal.m4
configure

index 7bc0c82b6b5045abaf543646638fc51977d06bcc..679921a892bfdb7d5129047bbd73da145916c8b6 100644 (file)
@@ -1111,7 +1111,7 @@ dnl
 AC_DEFUN(AC_C___ATTRIBUTE__, [
 AC_MSG_CHECKING(for __attribute__)
 AC_CACHE_VAL(ac_cv___attribute__, [
-AC_COMPILE_IFELSE(
+AC_COMPILE_IFELSE([
   AC_LANG_SOURCE([[
 #include <stdlib.h>
 
@@ -1128,7 +1128,7 @@ main(int argc, char **argv)
 {
   foo();
 }
-  ]]),
+  ]])],
 ac_cv___attribute__=yes,
 ac_cv___attribute__=no)])
 if test "$ac_cv___attribute__" = "yes"; then
index ac16c5ae041056fb2cf8d92e0840b47f6136ce9a..34cd7e2f421bd3e3ff71aacd464431e37e6afc1c 100755 (executable)
--- a/configure
+++ b/configure
@@ -3217,7 +3217,8 @@ if test "${ac_cv___attribute__+set}" = set; then
 else
 
 cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
+
+  /* confdefs.h.  */
 _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF