summaryrefslogtreecommitdiff
path: root/net/samba/files/patch-ba
blob: 35130d16833732bcf17feb41466b4bff75dcbc6a (plain) (blame)
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
--- source/configure.in.orig	Thu May  2 20:02:46 2002
+++ source/configure.in	Thu May  9 02:29:20 2002
@@ -498,9 +498,23 @@
 ############################################
 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
 AC_CHECK_FUNCS(dlopen)
+case "$host_os" in
+	*bsd*)
+		AC_CHECK_LIB(c, dlopen, [LIBS="$LIBS -lc";
+		AC_DEFINE(HAVE_DLOPEN)])
+		;;
+esac
 if test x"$ac_cv_func_dlopen" = x"no"; then
-	AC_CHECK_LIB(dl, dlopen, [LIBS="$LIBS -ldl";
-	AC_DEFINE(HAVE_DLOPEN)])
+	case "$host_os" in
+	 *bsd*)
+		AC_CHECK_LIB(c, dlopen, [LIBS="$LIBS -lc";
+		AC_DEFINE(HAVE_DLOPEN)])
+		;;
+	     *)
+		AC_CHECK_LIB(dl, dlopen, [LIBS="$LIBS -ldl";
+		AC_DEFINE(HAVE_DLOPEN)])
+		;;
+	esac
 fi
 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
 
@@ -870,6 +884,7 @@
 		;;
 		*bsd*)  BLDSHARED="true"
 			LDSHFLAGS="-shared"
+			DYNEXP="-Wl,--export-dynamic"
 			SONAMEFLAG="-Wl,-soname,"
 			PICFLAG="-fPIC"
 			AC_DEFINE(STAT_ST_BLOCKSIZE,512)
@@ -1868,7 +1883,7 @@
   yes)
     AC_MSG_RESULT(yes)
     AC_DEFINE(KRB5_AUTH)
-    LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
+    LIBS="$LIBS -ldes425 -lkrb5 -lk5crypto -lcom_err"
     CFLAGS="$CFLAGS -I$withval/include"
     LDFLAGS="$LDFLAGS -L$withval/lib"
     ;;
@@ -2042,7 +2057,7 @@
   yes)
     AC_MSG_RESULT(yes)
     AC_DEFINE(WITH_LDAP_SAM)
-    LIBS="-lldap -llber -lresolv $LIBS"
+    LIBS="-lldap -llber $LIBS"
     with_smbpasswd_sam=no
     ;;
   *)