Skip to content

Commit

Permalink
Append to PKG_CONFIG only after calling PKG_PROG_PKG_CONFIG
Browse files Browse the repository at this point in the history
Otherwise PKG_CONFIG is not set yet.

(cherry picked from commit 27fe16b)
  • Loading branch information
rubenk committed Jan 20, 2015
1 parent 705a73f commit 1d5a68d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand All @@ -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(
Expand Down

0 comments on commit 1d5a68d

Please sign in to comment.