[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-2480-g4724b13

Michael Adam obnox at samba.org
Thu Feb 21 14:10:55 GMT 2008


The branch, v3-2-test has been updated
       via  4724b13ed8dce4721f95979803ba32f815ceaf1a (commit)
      from  54d73769c49eb87ecb33e3229a01214972b53858 (commit)

http://gitweb.samba.org/?samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 4724b13ed8dce4721f95979803ba32f815ceaf1a
Author: Michael Adam <obnox at samba.org>
Date:   Thu Feb 21 14:07:45 2008 +0100

    Move the definition of SMB_LIBRARY to aclocal.m4.
    
    Michael

-----------------------------------------------------------------------

Summary of changes:
 source/configure.in  |   67 --------------------------------------------------
 source/m4/aclocal.m4 |   67 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+), 67 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/configure.in b/source/configure.in
index 14110da..78f0901 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -4710,73 +4710,6 @@ AC_ARG_WITH([static-libs],
 	[])
 
 
-
-dnl SMB_LIBRARY(name)
-dnl
-dnl configure build and use of an (internal) shared library
-dnl
-AC_DEFUN([SMB_LIBRARY],
-[
-m4_pushdef([LIBNAME], [lib$1])
-m4_pushdef([LIBUC], [m4_toupper(LIBNAME)])
-m4_pushdef([LIBLIBS], [-l$1])
-
-LIBUC[_SHARED_TARGET]=bin/LIBNAME.$SHLIBEXT
-LIBUC[_STATIC_TARGET]=bin/LIBNAME.a
-LIBUC[_SHARED]=
-LIBUC[_STATIC]=
-LIBUC[_LIBS]=
-
-AC_SUBST(LIBUC[_SHARED_TARGET])
-AC_SUBST(LIBUC[_STATIC_TARGET])
-AC_SUBST(LIBUC[_SHARED])
-AC_SUBST(LIBUC[_STATIC])
-AC_SUBST(LIBUC[_LIBS])
-
-AC_MSG_CHECKING([whether to build the LIBNAME shared library])
-AC_ARG_WITH(LIBNAME,
-[AS_HELP_STRING([--with-LIBNAME],
-	[Build the LIBNAME shared library (default=yes if shared libs supported)])],
-[
-case "$withval" in
-	*)
-		AC_MSG_RESULT(no)
-		build_lib=no
-		;;
-	yes)
-		build_lib=yes
-		;;
-esac
-],
-[
-# if unspecified, default is to build it if possible.
-build_lib=yes
-]
-)
-
-if eval test x"$build_lib" = "xyes" -a $BLDSHARED = true; then
-	LIBUC[_SHARED]=$LIBUC[_SHARED_TARGET]
-	AC_MSG_RESULT(yes)
-	if test x"$USESHARED" != x"true" -o x"$LINK_LIBUC" = "xSTATIC" ; then
-		LIBUC[_STATIC]=$LIBUC[_STATIC_TARGET]
-	else
-		LIBUC[_LIBS]=LIBLIBS
-	fi
-else
-	enable_static=yes
-	AC_MSG_RESULT(no shared library support -- will supply static library)
-fi
-if test $enable_static = yes; then
-	LIBUC[_STATIC]=$LIBUC[_STATIC_TARGET]
-fi
-
-m4_popdef([LIBNAME])
-m4_popdef([LIBUC])
-m4_popdef([LIBLIBS])
-
-])
-
-
 SMB_LIBRARY(talloc)
 SMB_LIBRARY(tdb)
 SMB_LIBRARY(netapi)
diff --git a/source/m4/aclocal.m4 b/source/m4/aclocal.m4
index fd9efb6..888c49d 100644
--- a/source/m4/aclocal.m4
+++ b/source/m4/aclocal.m4
@@ -53,6 +53,73 @@ AC_DEFUN(SMB_SUBSYSTEM,
     	ifelse([$2], , :, [rm -f $2])
 ])
 
+
+dnl SMB_LIBRARY(name)
+dnl
+dnl configure build and use of an (internal) shared library
+dnl
+AC_DEFUN([SMB_LIBRARY],
+[
+m4_pushdef([LIBNAME], [lib$1])
+m4_pushdef([LIBUC], [m4_toupper(LIBNAME)])
+m4_pushdef([LIBLIBS], [-l$1])
+
+LIBUC[_SHARED_TARGET]=bin/LIBNAME.$SHLIBEXT
+LIBUC[_STATIC_TARGET]=bin/LIBNAME.a
+LIBUC[_SHARED]=
+LIBUC[_STATIC]=
+LIBUC[_LIBS]=
+
+AC_SUBST(LIBUC[_SHARED_TARGET])
+AC_SUBST(LIBUC[_STATIC_TARGET])
+AC_SUBST(LIBUC[_SHARED])
+AC_SUBST(LIBUC[_STATIC])
+AC_SUBST(LIBUC[_LIBS])
+
+AC_MSG_CHECKING([whether to build the LIBNAME shared library])
+AC_ARG_WITH(LIBNAME,
+[AS_HELP_STRING([--with-LIBNAME],
+	[Build the LIBNAME shared library (default=yes if shared libs supported)])],
+[
+case "$withval" in
+	*)
+		AC_MSG_RESULT(no)
+		build_lib=no
+		;;
+	yes)
+		build_lib=yes
+		;;
+esac
+],
+[
+# if unspecified, default is to build it if possible.
+build_lib=yes
+]
+)
+
+if eval test x"$build_lib" = "xyes" -a $BLDSHARED = true; then
+	LIBUC[_SHARED]=$LIBUC[_SHARED_TARGET]
+	AC_MSG_RESULT(yes)
+	if test x"$USESHARED" != x"true" -o x"$LINK_LIBUC" = "xSTATIC" ; then
+		LIBUC[_STATIC]=$LIBUC[_STATIC_TARGET]
+	else
+		LIBUC[_LIBS]=LIBLIBS
+	fi
+else
+	enable_static=yes
+	AC_MSG_RESULT(no shared library support -- will supply static library)
+fi
+if test $enable_static = yes; then
+	LIBUC[_STATIC]=$LIBUC[_STATIC_TARGET]
+fi
+
+m4_popdef([LIBNAME])
+m4_popdef([LIBUC])
+m4_popdef([LIBLIBS])
+
+])
+
+
 dnl AC_LIBTESTFUNC(lib, function, [actions if found], [actions if not found])
 dnl Check for a function in a library, but don't keep adding the same library
 dnl to the LIBS variable.  Check whether the function is available in the


-- 
Samba Shared Repository


More information about the samba-cvs mailing list