diff options
author | Michael Adam <obnox@samba.org> | 2008-07-07 17:34:00 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-07-07 20:34:04 +0200 |
commit | bf62ddc9e668f7798625096bc880132f4abdf775 (patch) | |
tree | d1ea90d1720715a12a13fbda62a3d2a09775eedc /source3/m4 | |
parent | 025edbd82c867b6400f14ba1ecd4426916a443d1 (diff) | |
download | samba-bf62ddc9e668f7798625096bc880132f4abdf775.tar.gz samba-bf62ddc9e668f7798625096bc880132f4abdf775.tar.bz2 samba-bf62ddc9e668f7798625096bc880132f4abdf775.zip |
build: extend SMB_LIBRARY() to take a version as an optional second argument
This will allow transition away from library-versions in the next step.
Michael
(This used to be commit d9d92b64275127e29c80dbdc7cfe193289fef9a3)
Diffstat (limited to 'source3/m4')
-rw-r--r-- | source3/m4/aclocal.m4 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/m4/aclocal.m4 b/source3/m4/aclocal.m4 index d63d121455..53ad46cb8d 100644 --- a/source3/m4/aclocal.m4 +++ b/source3/m4/aclocal.m4 @@ -54,7 +54,7 @@ AC_DEFUN(SMB_SUBSYSTEM, ]) -dnl SMB_LIBRARY(name, default) +dnl SMB_LIBRARY(name, version, default, reason) dnl dnl configure build and use of an (internal) shared library dnl @@ -72,6 +72,8 @@ LIBUC[_LIBS]= [INSTALL_]LIBUC= [UNINSTALL_]LIBUC= +m4_if([$2], [], [LIBUC[_SOVER]=0], [LIBUC[_SOVER]=$2]) + AC_SUBST(LIBUC[_SHARED_TARGET]) AC_SUBST(LIBUC[_STATIC_TARGET]) AC_SUBST(LIBUC[_SHARED]) @@ -79,15 +81,16 @@ AC_SUBST(LIBUC[_STATIC]) AC_SUBST(LIBUC[_LIBS]) AC_SUBST([INSTALL_]LIBUC) AC_SUBST([UNINSTALL_]LIBUC) +AC_SUBST(LIBUC[_SOVER]) AC_MSG_CHECKING([whether to build the LIBNAME shared library]) -m4_if([$2], [no], [ +m4_if([$3], [no], [ dnl set the default to not build the shared lib AC_ARG_WITH(LIBNAME, AS_HELP_STRING([--with-]LIBNAME, - m4_if([$3], [], + m4_if([$4], [], [Build the LIBNAME shared library (default=no)], - [Build the LIBNAME shared library (default=no ($3))])), + [Build the LIBNAME shared library (default=no ($4))])), [ case "$withval" in yes) |