]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: use AC_USE_SYSTEM_EXTENSIONS
authorSami Kerola <kerolasa@iki.fi>
Sun, 10 Feb 2013 21:33:40 +0000 (21:33 +0000)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Feb 2013 09:11:17 +0000 (10:11 +0100)
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>
configure.ac

index ae19de81ad824d28f4732f8ded7aa1f8d9fba4bb..25dd13ec679bec157f5787c4a96e869a1a369bce 100644 (file)
@@ -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