[gnome-commander] Added choice for samba support



commit afba00008fb70deba747055e6169e5597663c598
Author: Uwe Scholz <uwescholz src gnome org>
Date:   Fri May 30 23:49:52 2014 +0200

    Added choice for samba support

 configure.ac |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 71282f3..c861ecd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -186,11 +186,14 @@ if pkg-config --exists gnome-vfs-2.0 ; then
     AC_SUBST(GNOMEVFS_LIBS)
 
     if pkg-config --exists gnome-vfs-2.0 '>=' ${GNOMEVFS_REQ} ; then
+        have_gnomevfs=yes
         AC_MSG_RESULT(yes)
     else
+       have_gnomevfs=no
         AC_MSG_ERROR("only ${GNOMEVFS_VERSION} found")
     fi
 else
+    have_gnomevfs=no
     AC_MSG_ERROR(no)
 fi
 
@@ -211,6 +214,15 @@ AC_SUBST([UNIQUE_PREFIX])
 AC_SUBST([UNIQUE_VERSION])
 
 
+dnl Check for samba support
+AC_ARG_WITH(samba, [  --without-samba         disable SAMBA support], have_samba=no, have_samba=yes)
+if test "x$with_samba" != xno; then
+   if test "x$have_gnomevfs" != xyes; then
+   have_samba=no
+   fi
+fi
+
+
 dnl Check for exiv2 support
 AC_ARG_WITH(exiv2, [  --without-exiv2         disable EXIF and IPTC support])
 have_exiv2=no
@@ -454,6 +466,7 @@ echo "  FLAC support   : ${have_taglib}"
 echo "  OLE2 support   : ${have_gsf}"
 echo "  ODF support    : ${have_gsf}"
 echo "  PDF support    : ${have_pdf}"
+echo "  SAMBA support  : ${have_samba}"
 echo ""
 echo ""
 echo "The following libraries will be used:"


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