* use Requires.private field in eet.pc if pkg-config 0.22 is installed.
[framework/uifw/eet.git] / configure.ac
index a513148..119cd7b 100644 (file)
@@ -146,6 +146,18 @@ AC_SUBST(DEBUG_CFLAGS)
 ### Checks for programs
 AC_PROG_CC
 
+# pkg-config
+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)
+
+
 # doxygen program for documentation building
 
 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])