diff options
author | 2015-08-18 11:40:50 -0400 | |
---|---|---|
committer | 2015-08-18 11:40:50 -0400 | |
commit | ce30b2e7fe993585f950ae9c1d2f230e6ad52724 (patch) | |
tree | 6dec5f3f7e713ec8b6f148f21ed1df12754fd1cb | |
parent | scanelf: fix memory leak with the -s option (diff) | |
download | pax-utils-ce30b2e7fe993585f950ae9c1d2f230e6ad52724.tar.gz pax-utils-ce30b2e7fe993585f950ae9c1d2f230e6ad52724.tar.bz2 pax-utils-ce30b2e7fe993585f950ae9c1d2f230e6ad52724.zip |
build: use pkg-config for libcap settings
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index c5fbc0f..c3591ff 100644 --- a/configure.ac +++ b/configure.ac @@ -11,14 +11,16 @@ AM_PROG_CC_C_O AM_PROG_AR AC_USE_SYSTEM_EXTENSIONS LT_INIT +PKG_PROG_PKG_CONFIG gl_EARLY gl_INIT AC_ARG_WITH([caps], [AS_HELP_STRING([--with-caps], [build with capabilities])]) AS_IF([test "x$with_caps" = "xyes"], [ - CPPFLAGS="$CPPFLAGS -DWANT_SYSCAP" - LIBS="$LIBS -lcap" + PKG_CHECK_MODULES(LIBCAP, libcap) + CPPFLAGS="$CPPFLAGS $LIBCAP_CFLAGS -DWANT_SYSCAP" + LIBS="$LIBS $LIBCAP_LIBS" ]) AC_ARG_WITH([python], [AS_HELP_STRING([--with-python], [use lddtree.py])]) |