]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Append to PKG_CONFIG only after calling PKG_PROG_PKG_CONFIG 2106/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 13 Jan 2015 12:31:01 +0000 (13:31 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 20 Jan 2015 10:25:47 +0000 (11:25 +0100)
Otherwise PKG_CONFIG is not set yet.

(cherry picked from commit 27fe16bdc147c7010d40d4aed53143edd3fc9de2)

configure.ac

index efdc69eab717ee3821195232b2e1517d54b6211f..7b855a6929ae683ee992a78ebec89e23373b8e57 100644 (file)
@@ -60,6 +60,9 @@ AM_CONDITIONAL([RELEASE_BUILD], [test "$PACKAGE_VERSION" != "git"])
 # We use this to search for other libraries.
 eval full_libdir="\"$libdir\""
 
+# detect pkg-config explicitly
+PKG_PROG_PKG_CONFIG
+
 # check if we want a static build
 AC_MSG_CHECKING([whether we will be building static binaries])
 
@@ -74,9 +77,6 @@ AS_IF([test "x$static" != "xno"], [
   PKG_CONFIG="$PKG_CONFIG --static"
 ])
 
-# detect pkg-config explicitly
-PKG_PROG_PKG_CONFIG
-
 AC_CHECK_HEADERS(
        [sys/mman.h],
        [AC_CHECK_FUNC(