From c7e80b0c2038b2af3c5fd11c0ff2a4b5cda32363 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 8 Feb 2008 01:00:03 +0100 Subject: Add support for building libtalloc.a and libtalloc.so. Michael (This used to be commit cb7f42bcbc6cbe84823402cd3c7bb9327669ed9b) --- source3/configure.in | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'source3/configure.in') diff --git a/source3/configure.in b/source3/configure.in index 9e4692b696..e424492716 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -322,6 +322,11 @@ AC_SUBST(UNINSTALL_LIBADDNS) AC_SUBST(LIBADDNS_SHARED) AC_SUBST(LIBADDNS) +AC_SUBST(INSTALL_LIBTALLOC) +AC_SUBST(UNINSTALL_LIBTALLOC) +AC_SUBST(LIBTALLOC_SHARED) +AC_SUBST(LIBTALLOC) + AC_SUBST(INSTALL_LIBWBCLIENT) AC_SUBST(UNINSTALL_LIBWBCLIENT) AC_SUBST(LIBWBCLIENT_SHARED) @@ -5113,6 +5118,48 @@ if test $enable_static = yes; then UNINSTALLLIBCMD_A="rm -f" fi +################################################# +# should we build libtalloc? +INSTALL_LIBTALLOC= +UNINSTALL_LIBTALLOC= +LIBTALLOC_SHARED= +LIBTALLOC= + +AC_MSG_CHECKING(whether to build the libtalloc shared library) +AC_ARG_WITH(libtalloc, +[AS_HELP_STRING([--with-libtalloc], + [Build the libtalloc shared library (default=yes if shared libs supported)])], +[ +case "$withval" in + *) + AC_MSG_RESULT(no) + ;; + yes) + samba_cv_with_libtalloc=yes + ;; +esac +], +[ +# if unspecified, default is to built it if possible. +samba_cv_with_libtalloc=yes +] +) + +if test x"$samba_cv_with_libtalloc" = "xyes" -a $BLDSHARED = true; then + LIBTALLOC_SHARED=bin/libtalloc.$SHLIBEXT + LIBTALLOC=libtalloc + AC_MSG_RESULT(yes) +else + enable_static=yes + AC_MSG_RESULT(no shared library support -- will supply static library) +fi +if test $enable_static = yes; then + LIBTALLOC=libtalloc +fi +INSTALL_LIBTALLOC=installlibtalloc +UNINSTALL_LIBTALLOC=uninstalllibtalloc + + ################################################# # should we build libnetapi? INSTALL_LIBNETAPI= -- cgit