aboutsummaryrefslogtreecommitdiff
blob: fe80988f0b6c77a2a9c4708ebfb3fec81766a92b (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
diff -urN dgs-0.5.10.ORIG/configure.in dgs-0.5.10/configure.in
--- dgs-0.5.10.ORIG/configure.in	2000-05-08 12:38:17.000000000 +0900
+++ dgs-0.5.10/configure.in	2004-04-16 02:14:40.029905480 +0900
@@ -163,9 +163,13 @@
 # TCP wrappers check from gnome-core
 #--------------------------------------------------------------------
 
+AC_ARG_ENABLE(tcpd,
+   [  --disable-tcpd           Disable tcpd support.],,
+   enable_tcpd=yes)
 AC_CHECK_HEADERS(tcpd.h)
 AC_CHECK_HEADERS(syslog.h)
 AC_MSG_CHECKING("whether to use TCP wrappers")
+if test "x$enable_tcpd" = "xyes"; then
 LIBWRAP_PATH=""
 for I in $LDFLAGS $LIBS -L/usr/lib -L/usr/local/lib; do
         case "$I" in
@@ -246,6 +250,10 @@
         AC_DEFINE(HAVE_HOSTS_ACCESS)
 fi
 AC_SUBST(LIBWRAP_LIBS)
+else
+	AC_MSG_RESULT(no)
+	enable_tcpd=no
+fi
 
 #--------------------------------------------------------------------
 # For now we assume that gcc will be used to compile ghostscript.