[libnet-interface-perl] 02/05: Update configure.ac to use AC_LANG_SOURCE macro in the input parameter of If-Else macros to suppress warnings in autoconf 2.68 and later.
Christopher Hoskin
christopher.hoskin at gmail.com
Sat Feb 21 22:29:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
grinorcole-guest pushed a commit to branch master
in repository libnet-interface-perl.
commit 9a2bda4705849db3f0e6cc8975e534db56da5fde
Author: Christopher Hoskin <christopher.hoskin at gmail.com>
Date: Sat Feb 21 17:58:20 2015 +0000
Update configure.ac to use AC_LANG_SOURCE macro in the input parameter of
If-Else macros to suppress warnings in autoconf 2.68 and later.
---
.gitignore | 1 +
debian/patches/series | 1 +
debian/patches/update-configure.ac.patch | 137 +++++++++++++++++++++++++++++++
3 files changed, 139 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..224e7f0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.pc/
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a9a0b58
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+update-configure.ac.patch
diff --git a/debian/patches/update-configure.ac.patch b/debian/patches/update-configure.ac.patch
new file mode 100644
index 0000000..7d4fd2f
--- /dev/null
+++ b/debian/patches/update-configure.ac.patch
@@ -0,0 +1,137 @@
+Description: Update configure.ac to use AC_LANG_SOURCE macro in the input
+ parameter of If-Else macros to suppress warnings in autoconf 2.68 and later.
+Author: Christopher Hoskin <christopher.hoskin at gmail.com>
+Forwarded:
+Last-Update: 2015-02-21
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -9,6 +9,7 @@
+ AH_TEMPLATE([LOCAL_SIZEOF_$2],[Define size of $1])
+ AC_MSG_CHECKING([for LOCAL_SIZEOF_$2])
+ AC_RUN_IFELSE([
++AC_LANG_SOURCE([[
+ #include "confdefs.h"
+ #include "defaults.h"
+ int
+@@ -23,7 +24,9 @@
+ return 0;
+ } else
+ return 1;
+-}],
++}
++]])
++],
+ ac_familysize=`cat conftest.data`
+ AC_MSG_RESULT([is $ac_familysize])
+ AC_DEFINE_UNQUOTED([LOCAL_SIZEOF_$2],[$ac_familysize],[define family size]),
+@@ -51,13 +54,16 @@
+ AH_TEMPLATE([HAVE_$2_IN_STDLIB],[Define size of $1])
+ AC_MSG_CHECKING([for $2 in stdlib.h])
+ AC_COMPILE_IFELSE([
++AC_LANG_SOURCE([[
+ #include <stdlib.h>
+ int
+ main()
+ {
+ void * mem = malloc(8192);
+ return 1;
+-}],
++}
++]])
++],
+ AC_MSG_RESULT([yes])
+ AC_DEFINE_UNQUOTED([HAVE_$2_IN_STDLIB],[1],[$2 in <stdlib.h>]),
+ AC_MSG_RESULT([not defined])
+@@ -326,6 +332,7 @@
+ AH_TEMPLATE([LOCAL_SIZEOF_POINTER],[Define size of pointer])
+ AC_MSG_CHECKING([for size of pointer])
+ AC_RUN_IFELSE([
++AC_LANG_SOURCE([[
+ #include "confdefs.h"
+ #include "defaults.h"
+ int
+@@ -339,7 +346,9 @@
+ return 0;
+ } else
+ return 1;
+-}],
++}
++]])
++],
+ # action if true
+ ac_pointersize=`cat conftest.data`
+ AC_MSG_RESULT([is $ac_pointersize])
+@@ -352,6 +361,7 @@
+
+ AC_MSG_CHECKING([for PAGE_SIZE])
+ AC_RUN_IFELSE([
++AC_LANG_SOURCE([[
+ /* INPUT */
+ #include "confdefs.h"
+ #include "defaults.h"
+@@ -363,7 +373,9 @@
+ #else
+ return 1;
+ #endif
+-}],[
++}
++]])
++],[
+ # ACTION IF TRUE
+ # page size is defined
+ AC_MSG_RESULT([defined])],[
+@@ -371,6 +383,7 @@
+ # page size is not define, run test
+ AC_MSG_NOTICE([not defined, trying equivalent...])
+ AC_RUN_IFELSE([
++AC_LANG_SOURCE([[
+ /* INPUT 2 */
+ # include "confdefs.h"
+ # include "defaults.h"
+@@ -405,6 +418,7 @@
+ }
+ return 1;
+ }
++]])
+ ],[
+ # ACTION IF TRUE 2
+ # managed to find page size, define it in our config file
+@@ -458,6 +472,7 @@
+ AC_CHECK_TYPES([struct lifreq],[
+ AC_MSG_CHECKING([for sizeof lifreq - nifreq])
+ AC_RUN_IFELSE([
++AC_LANG_SOURCE([[
+ #include "confdefs.h"
+ #include "defaults.h"
+ int
+@@ -472,7 +487,9 @@
+ return 0;
+ } else
+ return 1;
+-} ],
++}
++]])
++ ],
+ # action if true
+ ac_lifreqpad=`cat conftest.data`
+ AC_MSG_RESULT([is $ac_lifreqpad])
+@@ -481,6 +498,7 @@
+ ])
+ AC_MSG_CHECKING([for lifreq union offset])
+ AC_RUN_IFELSE([
++AC_LANG_SOURCE([[
+ #include "confdefs.h"
+ #include "defaults.h"
+ int
+@@ -495,7 +513,9 @@
+ return 0;
+ } else
+ return 1;
+-} ],
++}
++]])
++ ],
+ # action if true
+ ac_lifreqoffset=`cat conftest.data`
+ AC_MSG_RESULT([is $ac_lifreqoffset])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-interface-perl.git
More information about the Pkg-perl-cvs-commits
mailing list