summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorSami Kerola2013-02-10 22:33:40 +0100
committerKarel Zak2013-02-14 10:11:17 +0100
commiteaf701984d81f9b943a748bb754a513a022f675e (patch)
treec4f962b98b217ff127237f1cb185c8723c0470bc /configure.ac
parentbuild-sys: use AC_COMPILE_IFELSE (diff)
downloadkernel-qcow2-util-linux-eaf701984d81f9b943a748bb754a513a022f675e.tar.gz
kernel-qcow2-util-linux-eaf701984d81f9b943a748bb754a513a022f675e.tar.xz
kernel-qcow2-util-linux-eaf701984d81f9b943a748bb754a513a022f675e.zip
build-sys: use AC_USE_SYSTEM_EXTENSIONS
The AC_GNU_SOURCE is obsolete. Addresses: http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html#index-AC_005fGNU_005fSOURCE-2058 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index ae19de81a..25dd13ec6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,6 +6,9 @@ AC_PREREQ(2.60)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR([m4])
+dnl AC_USE_SYSTEM_EXTENSIONS must be called before any macros that run
+dnl the compiler (like AC_PROG_LIBTOOL) to avoid autoconf errors.
+AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE([-Wall foreign 1.10 tar-pax dist-bzip2 no-dist-gzip dist-xz -Wno-portability subdir-objects])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
@@ -87,7 +90,6 @@ AC_SUBST([usrlib_execdir])
AM_PROG_CC_C_O
AC_PROG_CC_STDC
-AC_GNU_SOURCE
AC_CANONICAL_HOST
AC_C_CONST
AC_C_VOLATILE