[patch] fix configure bug re yp_get_default_domain

Martin Pool mbp at sourcefrog.net
Mon Jan 13 05:52:00 GMT 2003


This is the patch adapted to APPLIANCE_HEAD.

Index: configure.in
===================================================================
RCS file: /data/cvs/samba/source/configure.in,v
retrieving revision 1.130.2.21
diff -u -u -p -r1.130.2.21 configure.in
--- configure.in	13 Jan 2003 04:57:01 -0000	1.130.2.21
+++ configure.in	13 Jan 2003 05:49:20 -0000
@@ -588,11 +588,7 @@ fi
 
 ############################################
 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
-AC_CHECK_FUNCS(dlopen)
-if test x"$ac_cv_func_dlopen" = x"no"; then
-	AC_CHECK_LIB(dl, dlopen, [LIBS="$LIBS -ldl";
-	AC_DEFINE(HAVE_DLOPEN)])
-fi
+AC_SEARCH_LIBS(dlopen, [dl])
 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
 
 ############################################
@@ -790,11 +786,8 @@ fi
 
 ###############################################
 # test for where we get yp_get_default_domain() from
+AC_SEARCH_LIBS(yp_get_default_domain, [nsl])
 AC_CHECK_FUNCS(yp_get_default_domain)
-if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
-	AC_CHECK_LIB(nsl, yp_get_default_domain, [LIBS="$LIBS -lnsl";
-	AC_DEFINE(HAVE_YP_GET_DEFAULT_DOMAIN)]) 
-fi
 
 # Check if we have execl, if not we need to compile smbrun.
 AC_CHECK_FUNCS(execl)
@@ -2121,11 +2114,8 @@ AC_ARG_WITH(pam_smbpass,
 # test for where we get crypt() from, but only
 # if not using PAM
 if test $with_pam_for_crypt = no; then
+AC_SEARCH_LIBS(crypt, [crypt])
 AC_CHECK_FUNCS(crypt)
-if test x"$ac_cv_func_crypt" = x"no"; then
-    AC_CHECK_LIB(crypt, crypt, [LIBS="$LIBS -lcrypt";
-	AC_DEFINE(HAVE_CRYPT)])
-fi
 fi
 
 ##


-- 
Martin 



More information about the samba-technical mailing list