* use Requires.private field in embryo.pc if pkg-config 0.22 or later is installed...
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 2 Oct 2009 17:14:12 +0000 (17:14 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 2 Oct 2009 17:14:12 +0000 (17:14 +0000)
 * remove uneeded flags that are in Libs.private (EVIL_LIBS)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/embryo@42860 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
embryo.pc.in

index ce0a503..a055b71 100644 (file)
@@ -55,6 +55,14 @@ EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
 
 PKG_PROG_PKG_CONFIG
 
+# Check whether pkg-config supports Requires.private
+if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
+   pkgconfig_requires_private="Requires.private"
+else
+   pkgconfig_requires_private="Requires"
+fi
+AC_SUBST(pkgconfig_requires_private)
+
 
 ### Checks for libraries
 
index 83813d5..b30742a 100644 (file)
@@ -8,8 +8,8 @@ embryoincludedir=@embryoincludedir@
 
 Name: embryo
 Description: A small virtual machine engine and bytecode compiler
-Requires: @requirement_embryo@
+@pkgconfig_requires_private@: @requirement_embryo@
 Version: @VERSION@
 Libs: -L${libdir} -lembryo
-Libs.private: @EVIL_LIBS@ @fnmatch_libs@ -lm
+Libs.private: @fnmatch_libs@ -lm
 Cflags: -I${includedir}