svn commit: samba r19621 - in branches/SAMBA_4_0/source: . build/m4
metze at samba.org
metze at samba.org
Tue Nov 7 14:13:59 GMT 2006
Author: metze
Date: 2006-11-07 14:13:59 +0000 (Tue, 07 Nov 2006)
New Revision: 19621
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19621
Log:
move enable-dso to check_ld.m4 again and add some checks and generate more output
metze
Modified:
branches/SAMBA_4_0/source/build/m4/check_ld.m4
branches/SAMBA_4_0/source/configure.ac
Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/check_ld.m4
===================================================================
--- branches/SAMBA_4_0/source/build/m4/check_ld.m4 2006-11-07 14:06:58 UTC (rev 19620)
+++ branches/SAMBA_4_0/source/build/m4/check_ld.m4 2006-11-07 14:13:59 UTC (rev 19621)
@@ -185,3 +185,21 @@
AC_MSG_RESULT(yes),
AC_MSG_ERROR([we cannot link with the selected cc and ld flags. Aborting configure]),
AC_MSG_WARN([cannot run when cross-compiling]))
+
+try_dso=no
+USESHARED=false
+AC_SUBST(USESHARED)
+
+AC_ARG_ENABLE(dso,
+[ --enable-dso Enable using shared libraries internally (experimental)])
+
+if test x"$enable_dso" = x"yes" -a x"$BLDSHARED" != x"true"; then
+ AC_MSG_ERROR([--enable-dso: no support for shared libraries])
+fi
+
+if test x"$enable_dso" != x"no"; then
+ USESHARED=$BLDSHARED
+fi
+
+AC_MSG_CHECKING([if binaries will use shared libraries])
+AC_MSG_RESULT([$USESHARED])
Modified: branches/SAMBA_4_0/source/configure.ac
===================================================================
--- branches/SAMBA_4_0/source/configure.ac 2006-11-07 14:06:58 UTC (rev 19620)
+++ branches/SAMBA_4_0/source/configure.ac 2006-11-07 14:13:59 UTC (rev 19621)
@@ -50,17 +50,6 @@
m4_include(nsswitch/config.m4)
m4_include(libcli/config.m4)
-USESHARED=$BLDSHARED
-
-AC_ARG_ENABLE(dso,
-[ --enable-dso Enable using shared libraries internally (experimental)],
-[ if test x$enable_dso != xno; then
- USESHARED=true
- fi],
-[USESHARED=false])
-
-AC_SUBST(USESHARED)
-
#################################################
# add *_CFLAGS only for the real build
CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
More information about the samba-cvs
mailing list