r202: Fix aclocal.m4 to only use $BLDSHARED to select whether to build static or...
authorPaul Green <paulg@samba.org>
Tue, 13 Apr 2004 21:35:43 +0000 (21:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:51:16 +0000 (12:51 -0500)
(This used to be commit a4ce81cb0680af431ef855f15693c0377cf284e0)

source4/aclocal.m4

index 55630c9a3980733a67224af89750b7a1275eb4a5..f7828a080f3cf9a3c00d165367bbad6b91d09955 100644 (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