summaryrefslogtreecommitdiff
path: root/net/samba/patches/patch-ae
blob: 6d946001f705b8c135b0963a0b1ebaa658f65ef9 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
$NetBSD: patch-ae,v 1.3 2000/09/03 09:17:00 kei Exp $

--- configure.in.orig	Tue Jul 11 02:37:45 2000
+++ configure.in	Sun Sep  3 06:23:09 2000
@@ -237,9 +237,6 @@
 AC_CHECK_TYPE(offset_t,loff_t)
 AC_CHECK_TYPE(ssize_t, int)
 
-# we need libcups for CUPS support...
-AC_CHECK_LIB(cups,httpConnect)
-
 # we need libdl for PAM and the new VFS code
 AC_CHECK_LIB(dl,main)
 
@@ -315,7 +312,14 @@
 # test for where we get readline() from
 if test "$ac_cv_header_readline_h" = "yes" ||
    test "$ac_cv_header_readline_readline_h" = "yes"; then
-  AC_CHECK_LIB(readline,readline)
+    AC_CHECK_LIB(termcap, tputs)
+    if test "$ac_cv_lib_termcap_tputs" = "yes"; then
+        AC_CHECK_LIB(edit, readline, , [AC_CHECK_LIB(readline, readline)])
+        if test "$ac_cv_lib_edit_readline" = "yes" ||
+           test "$ac_cv_lib_readline_readline" = "yes"; then
+            AC_DEFINE(HAVE_READLINE)
+       fi
+    fi
 fi
 
 
@@ -1227,6 +1231,24 @@
     AC_DEFINE(BROKEN_NISPLUS_INCLUDE_FILES)
 fi
 
+
+#################################################
+# check for CUPS support
+AC_MSG_CHECKING(whether to use CUPS)
+AC_ARG_WITH(cups,
+[  --with-cups    Include CUPS support
+  --without-cups Don't include CUPS support (default)],
+[ case "$withval" in
+  yes)
+    AC_MSG_RESULT(yes)
+    AC_CHECK_LIB(cups, httpConnect)
+    ;;
+  *)
+    AC_MSG_RESULT(no)
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
 
 #################################################
 # check for smbwrapper support