diff options
author | Akira TAGOH <akira@tagoh.org> | 2018-03-10 20:47:54 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2018-03-10 20:47:54 +0900 |
commit | af687139f2866a736f294c7c54f9ea57219a079b (patch) | |
tree | efbe53054d03737090fed3db8f74512c89d75e2f | |
parent | 07bd14c5c7fed103020dc9b630d6a254861ada07 (diff) |
Add uuid to Requires.private in .pc only when pkgconfig macro found it
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e600b2d7..557d151e 100644 --- a/configure.ac +++ b/configure.ac @@ -337,6 +337,9 @@ CFLAGS="$fontconfig_save_cflags" # if test "$os_win32" != "yes"; then use_pkgconfig_for_uuid=yes + if test -n "${UUID_LIBS}"; then + save_UUID_LIBS=$UUID_LIBS + fi PKG_CHECK_MODULES([UUID], [uuid], [use_pkgconfig_for_uuid=yes], [use_pkgconfig_for_uuid=no]) @@ -351,7 +354,9 @@ if test "$os_win32" != "yes"; then *** uuid is required. install util-linux. ])]) else - PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid" + if test -z "${save_UUID_LIBS+x}" && test "x${UUID_LIBS}" != "x"; then + PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid" + fi fi else UUID_CFLAGS="" |