iksemel will be used as XML parser and we will have to link to
it. Thence, we check for its presence, using pkg-config with autoconf.
AC_PROG_CC
AC_PROG_INSTALL
AM_PATH_GNET_2_0(,,AC_MSG_ERROR(GNet not found))
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")
if test "${sysconfdir}x" = '${prefix}/etcx'; then
if test "${prefix}x" = 'NONEx'; then
AC_DEFINE_UNQUOTED(SYSCONFDIR, "${ac_default_prefix}/etc")