# HG changeset patch # User rosfran # Date 1167931061 0 # Node ID 2cbfa780c21e9d8c542cf3f50df03bb426c3c378 # Parent bb2752e9fe023987b3748e7f07746f85ae230080 [svn r242] Added verification for the UPnP CyberLink C library. diff -r bb2752e9fe02 -r 2cbfa780c21e gmyth/configure.ac --- a/gmyth/configure.ac Thu Dec 21 21:48:28 2006 +0000 +++ b/gmyth/configure.ac Thu Jan 04 17:17:41 2007 +0000 @@ -225,6 +225,30 @@ AC_SUBST(MYSQL_CFLAGS) AC_SUBST(MYSQL_LIBS) +dnl ========== Check for Cyberlink UPnP Libraries +AC_ARG_ENABLE(upnp, + [AC_HELP_STRING([--disable-upnp], [disable building UPnP related stuff])], + enable_upnp="$enableval", + enable_upnp=yes) + +if test "x$enable_upnp" = "xyes" ; then + PKG_CHECK_MODULES(CYBERLINK, + clinkc, + HAVE_CYBERLINK=yes, HAVE_CYBERLINK=no) +fi + +if test "x$HAVE_CYBERLINK" = "xyes"; then + AC_DEFINE(WITH_UPNP, 1, [build with upnp related stuff]) +else + AC_MSG_RESULT(no) +fi + +AM_CONDITIONAL(WITH_UPNP, test "x$HAVE_CYBERLINK" = "xyes") + +dnl make CYBERLINK_CFLAGS and CYBERLINK_LIBS available +AC_SUBST(CYBERLINK_CFLAGS) +AC_SUBST(CYBERLINK_LIBS) + #dnl Enable gtk-doc #GTK_DOC_CHECK(1.4)