summaryrefslogtreecommitdiff
blob: 5c732e2f1e925ba60cdbf50047349bca5f7a3902 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
diff -Nru dante-1.1.19.orig/acinclude.m4 dante-1.1.19/acinclude.m4
--- dante-1.1.19.orig/acinclude.m4	2005-12-18 21:57:57.000000000 +0100
+++ dante-1.1.19/acinclude.m4	2008-06-25 22:24:16.000000000 +0200
@@ -260,4 +260,4 @@
 
 tproto($@)])
 
-# -- acinclude end --
\ No newline at end of file
+# -- acinclude end --
diff -Nru dante-1.1.19.orig/configure.ac dante-1.1.19/configure.ac
--- dante-1.1.19.orig/configure.ac	2006-01-15 16:33:37.000000000 +0100
+++ dante-1.1.19/configure.ac	2008-06-25 22:25:09.000000000 +0200
@@ -21,7 +21,7 @@
 #NOTE: save CFLAGS; wish to compile without -O2 when debugging
 oCFLAGS=$CFLAGS
 unset CFLAGS
-AC_AIX #evidently also modifies CFLAGS
+#AC_AIX #evidently also modifies CFLAGS
 AC_PROG_LIBTOOL
 autoconf_compflags=$CFLAGS
 CFLAGS=$oCFLAGS
@@ -30,18 +30,6 @@
 
 AM_CONDITIONAL(PRERELEASE, test x$prerelease != x)
 
-#known keywords for --enable/disable-foo(=yes/no)?
-LTINTERNAL="dlopen|dlopen_self|dlopen_self_static|fast_install|libtool_lock|win32_dll|shared_with_static_runtimes|shared_with_static_runtimes_CXX|shared_with_static_runtimes_F77"
-KNOWN_KEYWORDS="$LTINTERNAL|shared|static|debug|warnings|diagnostic|profiling|linting|libwrap|preload|serverdl|clientdl|internal|pidfile"
-for keyword in `set | egrep '^enable_' | sed -e 's/^enable_\(.*\)=.*/\1/'`;
-do
-	echo $keyword | egrep "^(${KNOWN_KEYWORDS})$" > /dev/null
-	if test $? -ne 0; then
-		AC_MSG_WARN([unknown option '$keyword', ignoring ...])
-		sleep 10;
-	fi
-done
-
 #Solaris 2.5.1 is broken in many places
 case $host in
     *-*-solaris2.5.1)
@@ -1288,15 +1288,18 @@
  [  --without-pam           disable pam support @<:@default=detect@:>@],
  [PAM=$withval])
 
+LIBPAM=
 if test "${PAM}" != no; then
 	#look for PAM header and lib
 	AC_CHECK_HEADERS(security/pam_appl.h, [have_pam_header=t])
-	AC_SEARCH_LIBS(pam_start, pam, [have_libpam=t])
+	AC_CHECK_LIB(pam, pam_start, [have_libpam=t])
 
 	if test x"${have_pam_header}" != x -a x"${have_libpam}" != x; then
 		AC_DEFINE(HAVE_PAM, 1, [PAM support])
+		LIBPAM=-lpam
 	fi
 fi
+AC_SUBST(LIBPAM)
 
 #expected select behaviour?
 unset nb_select_err
diff -Nru dante-1.1.19.orig/sockd/Makefile.am dante-1.1.19/sockd/Makefile.am
--- dante-1.1.19.orig/sockd/Makefile.am	2005-11-06 18:37:14.000000000 +0100
+++ dante-1.1.19/sockd/Makefile.am	2008-06-25 22:24:16.000000000 +0200
@@ -35,9 +35,9 @@
 
 #XXXhack
 if STATIC_SOCKD
-sockd_LDADD = ../libscompat/sockatmark.o ${LIBWRAP}
+sockd_LDADD = ../libscompat/sockatmark.o ${LIBWRAP} ${LIBPAM}
 else
-sockd_LDADD = ../libscompat/libscompat.la ${LIBWRAP}
+sockd_LDADD = ../libscompat/libscompat.la ${LIBWRAP} ${LIBPAM}
 endif
 
 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/libscompat