1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

r202: Fix aclocal.m4 to only use $BLDSHARED to select whether to build static or shared libraries.

This commit is contained in:
Paul Green 2004-04-13 21:35:43 +00:00 committed by Gerald (Jerry) Carter
parent c64132ddc6
commit a4ce81cb06

6
source/aclocal.m4 vendored
View File

@ -40,10 +40,10 @@ dnl Specify the default build method of this module
dnl SMB_MODULE_DEFAULT(1:name,2:default_build)
AC_DEFUN(SMB_MODULE_DEFAULT,
[
dnl Fall back to static if dlopen() is not available
dnl Fall back to static if platform does not support shared libraries
[MODULE_DEFAULT_][$1]=$2
if test x"$[MODULE_DEFAULT_][$1]" = xSHARED -a x"$ac_cv_func_dlopen" != xyes; then
if test x"$[MODULE_DEFAULT_][$1]" = xSHARED -a x"$BLDSHARED" = xfalse; then
[MODULE_DEFAULT_][$1]=STATIC
fi
])
@ -56,7 +56,7 @@ AC_DEFUN(SMB_MODULE,
if test -z "$[MODULE_DEFAULT_][$1]"; then
[MODULE_DEFAULT_][$1]=$3
if test x"$[MODULE_DEFAULT_][$1]" = xSHARED -a x"$ac_cv_func_dlopen" != xyes; then
if test x"$[MODULE_DEFAULT_][$1]" = xSHARED -a x"$BLDSHARED" = xfalse; then
[MODULE_DEFAULT_][$1]=STATIC
fi
fi