blob: 303ad483517cabb52b45bcbe7a2df10fbd9c4bca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
From d3750520a2b23d0757504941ba2066cb63b320d0 Mon Sep 17 00:00:00 2001
From: Gilles Dartiguelongue <eva@gentoo.org>
Date: Sun, 29 Aug 2010 16:30:23 +0200
Subject: [PATCH] [gentoo] Fix automagic samba support
---
configure.in | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in
index bb15f54..c96fcba 100644
--- a/configure.in
+++ b/configure.in
@@ -28,10 +28,14 @@ LIBBONOBO_REQUIRED=2.0.0
LIBGNOMECUPS_REQUIRED=0.2.0
SMBLIBS=
+AC_ARG_ENABLE([samba],
+ AS_HELP_STRING([--enable-samba], [enable samba support]))
+if test "$enable_samba" = "yes"; then
AC_CHECK_LIB(smbclient, smbc_opendir, [
AC_DEFINE(HAVE_LIBSMBCLIENT, [], ["Do we have libsmbclient"])
SMBLIBS=-lsmbclient
-])
+], [AC_MSG_ERROR([libsmbclient not found])])
+fi
AC_SUBST(SMBLIBS)
AC_SUBST(LIBGNOME_REQUIRED)
AC_SUBST(LIBGNOMEUI_REQUIRED)
--
1.7.2.2
|