Make PKG_CHECK_MODULES fail non-fatal.

These check for optional modules.
pull/1/head
Christian Beier 13 years ago
parent d4cbaa0c17
commit ae41be237f

@ -790,7 +790,7 @@ AC_SUBST(SDL_LIBS)
# Check for GTK+. if present, build the GTK+ vnc viewer example # Check for GTK+. if present, build the GTK+ vnc viewer example
PKG_CHECK_MODULES([GTK], [gtk+-2.0]) PKG_CHECK_MODULES([GTK], [gtk+-2.0],,:)
AM_CONDITIONAL(HAVE_LIBGTK, test ! -z "$GTK_LIBS") AM_CONDITIONAL(HAVE_LIBGTK, test ! -z "$GTK_LIBS")
AC_CANONICAL_HOST AC_CANONICAL_HOST
@ -824,7 +824,7 @@ AC_ARG_WITH(gnutls,
[ --with-gnutls=DIR use gnutls include/library files in DIR],,) [ --with-gnutls=DIR use gnutls include/library files in DIR],,)
if test "x$with_gnutls" != "xno"; then if test "x$with_gnutls" != "xno"; then
PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.4.0) PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.4.0,,:)
CFLAGS="$CFLAGS $GNUTLS_CFLAGS" CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
LIBS="$LIBS $GNUTLS_LIBS" LIBS="$LIBS $GNUTLS_LIBS"
fi fi

Loading…
Cancel
Save