diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-12-25 22:18:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:07:38 -0500 |
commit | 5ba0e02fbe8408dd2023694101d61be2beba567d (patch) | |
tree | 0dddccd3d7c788ce2e2c051351337a3003bb5037 /source4/build/m4 | |
parent | 44b83e736e85fc4881dc0e56ea64e8bc4542e71b (diff) | |
download | samba-5ba0e02fbe8408dd2023694101d61be2beba567d.tar.gz samba-5ba0e02fbe8408dd2023694101d61be2beba567d.tar.bz2 samba-5ba0e02fbe8408dd2023694101d61be2beba567d.zip |
r4363: value "none required" is set if no library is needed (autoconf does this the same way)
(This used to be commit 8cf15704101e5957e15a0401e4832faf1346f12e)
Diffstat (limited to 'source4/build/m4')
-rw-r--r-- | source4/build/m4/rewrite.m4 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4 index 8960ea707c..6a466801f8 100644 --- a/source4/build/m4/rewrite.m4 +++ b/source4/build/m4/rewrite.m4 @@ -281,7 +281,13 @@ AC_CHECK_TYPES(intptr_t) ############################################ # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code -AC_SEARCH_LIBS(dlopen, [dl], [SMB_EXT_LIB(DL, [$ac_cv_search_dlopen])]) +AC_SEARCH_LIBS(dlopen, [dl], [ + tmp=$ac_cv_search_dlopen + if test "$ac_cv_search_dlopen" = "none required"; then + tmp="" + fi + SMB_EXT_LIB(DL, [$tmp])] + ) # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then ############################################ |