[the-board] [build] Use --without-FOO instead of --enable-FOO on optional deps



commit 83f48d922d2a094f8475ff3d381825ee6a8826bf
Author: Lucas Rocha <lucasr gnome org>
Date:   Wed Dec 8 15:58:53 2010 +0000

    [build] Use --without-FOO instead of --enable-FOO on optional deps
    
    This is a more natural way of handling them.

 configure.ac |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4863ac7..16b4dc3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,13 +68,13 @@ PKG_CHECK_MODULES(THE_BOARD,
                   clutter-gtk-1.0 >= $CLUTTER_GTK_MIN_VERSION
                   clutter-gst-1.0 >= $CLUTTER_GST_MIN_VERSION)
 
-AC_ARG_ENABLE([libnotify],
-              AC_HELP_STRING([--enable-libnotify],[enable libnotify support]),,
-              [enable_libnotify=yes])
+AC_ARG_WITH([libnotify],
+             AC_HELP_STRING([--without-libnotify],[disable libnotify support]),,
+             [with_libnotify=yes])
 
 HAVE_LIBNOTIFY=0
 
-if test x$enable_libnotify = xyes ; then
+if test x$with_libnotify = xyes ; then
    PKG_CHECK_MODULES([LIBNOTIFY],
                      [libnotify >= $LIBNOTIFY_MIN_VERSION],
                      [HAVE_LIBNOTIFY=1],[HAVE_LIBNOTIFY=0])
@@ -88,13 +88,13 @@ else
     HAVE_LIBNOTIFY_RESULT="no"
 fi
 
-AC_ARG_ENABLE([libsoup],
-              AC_HELP_STRING([--enable-libsoup],[enable libsoup support]),,
-              [enable_libsoup=yes])
+AC_ARG_WITH([libsoup],
+             AC_HELP_STRING([--without-libsoup],[disable libsoup support]),,
+             [with_libsoup=yes])
 
 HAVE_LIBSOUP=0
 
-if test x$enable_libsoup = xyes ; then
+if test x$with_libsoup = xyes ; then
    PKG_CHECK_MODULES([LIBSOUP],
                      [libsoup-2.4],
                      [HAVE_LIBSOUP=1],[HAVE_LIBSOUP=0])
@@ -110,13 +110,13 @@ fi
 
 AM_CONDITIONAL(HAVE_LIBSOUP, [test "$HAVE_LIBSOUP" = 1])
 
-AC_ARG_ENABLE([nautilus],
-              AC_HELP_STRING([--enable-nautilus],[enable nautilus support]),,
-              [enable_nautilus=yes])
+AC_ARG_WITH([nautilus],
+             AC_HELP_STRING([--without-nautilus],[disable nautilus support]),,
+             [with_nautilus=yes])
 
 HAVE_NAUTILUS=0
 
-if test x$enable_nautilus = xyes ; then
+if test x$with_nautilus = xyes ; then
    PKG_CHECK_MODULES([NAUTILUS],
                      [glib-2.0 >= $GLIB_MIN_VERSION
                       gdk-pixbuf-2.0 >= $GDK_PIXBUF_MIN_VERSION



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]