Build with iksemel
[cascardo/rnetproxy.git] / configure.ac
index d0884c6..0be9d2f 100644 (file)
@@ -3,8 +3,9 @@ AM_INIT_AUTOMAKE(AC_PACKAGE_NAME,AC_PACKAGE_VERSION)
 AC_PROG_CC
 AC_PROG_INSTALL
 AM_PATH_GNET_2_0(,,AC_MSG_ERROR(GNet not found))
-LIBS="$GNET_LIBS $LIBS"
-CFLAGS="$GNET_CFLAGS $CFLAGS"
+PKG_CHECK_MODULES(IKSEMEL, iksemel, , AC_MSG_ERROR(Could not find iksemel))
+LIBS="$GNET_LIBS $IKSEMEL_LIBS $LIBS"
+CFLAGS="$GNET_CFLAGS $IKSEMEL_CFLAGS $CFLAGS"
 if test "${sysconfdir}x" = '${prefix}/etcx'; then
        if test "${prefix}x" = 'NONEx'; then
                AC_DEFINE_UNQUOTED(SYSCONFDIR, "${ac_default_prefix}/etc")