--- taglib-sharp-2.0.2.0/configure.ac 2007-07-04 03:37:05.000000000 +0530 +++ taglib-sharp-2.0.2.0.new/configure.ac 2007-11-26 01:31:23.938210509 +0530 @@ -83,10 +83,20 @@ AM_CONDITIONAL(BUILD_DOCS, false) fi -PKG_CHECK_MODULES(GNOME_SHARP, gnome-sharp-2.0, have_gnome_sharp=yes, have_gnome_sharp=no) -if test "x$have_gnome_sharp" = "xyes"; then - AC_SUBST(GNOME_SHARP_LIBS) - AM_CONDITIONAL(HAVE_GNOME_SHARP, true) +AC_ARG_ENABLE([gnome-sharp], + AC_HELP_STRING([--enable-gnome-sharp], [Build support for GNOME]), + enable_gnome_sharp=$enableval, + enable_gnome_sharp=no) + +if test "x$enable_gnome_sharp" = "xyes"; then + PKG_CHECK_MODULES(GNOME_SHARP, gnome-sharp-2.0, have_gnome_sharp=yes, have_gnome_sharp=no) + if test "x$have_gnome_sharp" = "xyes"; then + AC_SUBST(GNOME_SHARP_LIBS) + AM_CONDITIONAL(HAVE_GNOME_SHARP, true) + else + AC_MSG_ERROR([Could not find gnome-sharp dependencies]) + AM_CONDITIONAL(HAVE_GNOME_SHARP, false) + fi else AM_CONDITIONAL(HAVE_GNOME_SHARP, false) fi