[enable_enotify=$enableval],
[enable_enotify="yes"])
+# 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)
PKG_CHECK_MODULES([EINA], [eina-0])
]
)
-AM_CONDITIONAL([BUILD_EHAL], [test "x${enable_ehal}" = "xyes"])
-AM_CONDITIONAL([BUILD_ENM], [test "x${enable_enm}" = "xyes"])
-AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"])
+AM_CONDITIONAL([BUILD_EHAL], [test "x${enable_ehal}" = "xyes"])
+AM_CONDITIONAL([BUILD_ENM], [test "x${enable_enm}" = "xyes"])
+AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"])
AM_CONDITIONAL([BUILD_ECONNMAN], [test "x${enable_econnman}" = "xyes"])
AC_OUTPUT([
Name: econnman
Description: network connection manager (connman)
-Requires: ecore edbus
+@pkgconfig_requires_private@: ecore edbus
Version: @VERSION@
Libs: -L${libdir} -leconnman
Cflags: -I${includedir}
Name: edbus
Description: DBus convenience library
-Requires: ecore dbus-1
+@pkgconfig_requires_private@: ecore dbus-1
Version: @VERSION@
Libs: -L${libdir} -ledbus
Cflags: -I${includedir}
Name: enotify
Description: Notification convenience library
-Requires: ecore edbus
+@pkgconfig_requires_private@: ecore edbus
Version: @VERSION@
Libs: -L${libdir} -lenotify
Cflags: -I${includedir}