diff options
author | jelmer <jelmer@samba.org> | 2007-11-06 02:35:46 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-11-06 09:38:58 +0100 |
commit | a2cf98daf039d3836a5d58404c536e6a111b4aad (patch) | |
tree | db5a59cb775248ad51b5c2ab8226eede08331a27 /source3/lib/replace/libreplace_ld.m4 | |
parent | b8fdd9e38388199478c9b9e6a4de11efec7959ea (diff) | |
download | samba-a2cf98daf039d3836a5d58404c536e6a111b4aad.tar.gz samba-a2cf98daf039d3836a5d58404c536e6a111b4aad.tar.bz2 samba-a2cf98daf039d3836a5d58404c536e6a111b4aad.zip |
Move SHLIBEXT determination into a test as well.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25852 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 322cf8002bab1e449616d9fcea0bd4c9535cfe6a)
Diffstat (limited to 'source3/lib/replace/libreplace_ld.m4')
-rw-r--r-- | source3/lib/replace/libreplace_ld.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/lib/replace/libreplace_ld.m4 b/source3/lib/replace/libreplace_ld.m4 index 07dd2db231..7f85fb4ccc 100644 --- a/source3/lib/replace/libreplace_ld.m4 +++ b/source3/lib/replace/libreplace_ld.m4 @@ -101,3 +101,21 @@ AC_DEFUN([AC_LD_SHLDFLAGS], AC_SUBST(SHLD_FLAGS) ]) + +AC_DEFUN([AC_LD_SHLIBEXT], +[ + SHLIBEXT="so" + case "$host_os" in + *hpux*) + if test "$host_cpu" = "ia64"; then + SHLIBEXT="so" + else + SHLIBEXT="sl" + fi + ;; + *darwin*) + SHLIBEXT="dylib" + ;; + esac + AC_SUBST(SHLIBEXT) +]) |