[network-manager-openvpn/th/cleanup-bgo790612: 1/11] build: use AC_GNU_SOURCE for _GNU_SOURCE define



commit 103cf522ac1964b0be0e6d2f6b1b66cea5c0431d
Author: Thomas Haller <thaller redhat com>
Date:   Mon Nov 20 11:49:16 2017 +0100

    build: use AC_GNU_SOURCE for _GNU_SOURCE define
    
    Also need to reorder a few autoconf statements.

 configure.ac |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e381973..96e7f7d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,25 +8,26 @@ AM_INIT_AUTOMAKE([1.9 tar-ustar no-dist-gzip dist-xz])
 AM_MAINTAINER_MODE
 AM_SILENT_RULES([yes])
 
-AC_CONFIG_MACRO_DIR([m4])
-
 AC_CONFIG_HEADERS([config.h])
 
-dnl Prefer gcc-* variants; the ones libtool would choose don't work with LTO
-AC_CHECK_TOOLS(AR, [gcc-ar ar], false)
-AC_CHECK_TOOLS(RANLIB, [gcc-ranlib ranlib], :)
-
-LT_INIT([disable-static])
-
 dnl
 dnl Require programs
 dnl
 AC_PROG_CC
+AC_GNU_SOURCE
 AM_PROG_CC_C_O
 AC_PROG_INSTALL
 AC_PROG_LIBTOOL
 AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
 
+AC_CONFIG_MACRO_DIR([m4])
+
+dnl Prefer gcc-* variants; the ones libtool would choose don't work with LTO
+AC_CHECK_TOOLS(AR, [gcc-ar ar], false)
+AC_CHECK_TOOLS(RANLIB, [gcc-ranlib ranlib], :)
+
+LT_INIT([disable-static])
+
 dnl
 dnl Required headers
 dnl


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]