Synced with pkg.m4 from edelib

This commit is contained in:
Sanel Zukan 2009-04-17 20:36:32 +00:00
parent 427602bed6
commit 807dd35e38

View File

@ -34,12 +34,17 @@ AC_DEFUN([PKG_CHECK_MODULES], [
AC_MSG_RESULT($$1_CFLAGS)
AC_MSG_CHECKING($1_LIBS)
## don't use --libs since that can do evil things like add
## -Wl,--export-dynamic
## don't use --libs since that can do evil things like add -Wl,--export-dynamic
if test "$SHELL" = "/bin/ksh"; then
## ksh does not do escaping properly
$1_LIBS="`$PKG_CONFIG --libs-only-L "$2"` `$PKG_CONFIG --libs-only-l "$2"`"
else
$1_LIBS="`$PKG_CONFIG --libs-only-L \"$2\"` `$PKG_CONFIG --libs-only-l \"$2\"`"
AC_MSG_RESULT($$1_LIBS)
fi
$1_LIBS="`$PKG_CONFIG --libs-only-L \"$2\"` `$PKG_CONFIG --libs-only-l \"$2\"`"
$1_VERSION=`$PKG_CONFIG --modversion "$2"`
AC_MSG_RESULT($$1_LIBS)
else
$1_CFLAGS=""
$1_LIBS=""