build: Remove autoconf build system
authorAndrew Bartlett <abartlet@samba.org>
Wed, 22 May 2013 02:23:20 +0000 (12:23 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 28 May 2013 02:17:10 +0000 (12:17 +1000)
We are now confident that that waf build system meets enough of our needs
that we will work to improve it, rather than maintain two build systems.

Andrew Bartlett

Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
41 files changed:
dynconfig/config.m4 [deleted file]
lib/ccan/libccan.m4 [deleted file]
lib/iniparser_build/config.m4 [deleted file]
lib/nss_wrapper/config.m4 [deleted file]
lib/ntdb/libntdb.m4 [deleted file]
lib/popt/libpopt.m4 [deleted file]
lib/popt/samba.m4 [deleted file]
lib/replace/crypt.m4 [deleted file]
lib/replace/dlfcn.m4 [deleted file]
lib/replace/libreplace.m4 [deleted file]
lib/replace/libreplace_cc.m4 [deleted file]
lib/replace/libreplace_ld.m4 [deleted file]
lib/replace/libreplace_macros.m4 [deleted file]
lib/replace/libreplace_network.m4 [deleted file]
lib/replace/repdir.m4 [deleted file]
lib/replace/strptime.m4 [deleted file]
lib/replace/system/config.m4 [deleted file]
lib/replace/timegm.m4 [deleted file]
lib/replace/win32.m4 [deleted file]
lib/socket_wrapper/config.m4 [deleted file]
lib/talloc/compat/talloc_compat1.m4 [deleted file]
lib/talloc/libtalloc.m4 [deleted file]
lib/tdb/libtdb.m4 [deleted file]
lib/tevent/libtevent.m4 [deleted file]
lib/uid_wrapper/config.m4 [deleted file]
lib/zlib/zlib.m4 [deleted file]
m4/check_make.m4 [deleted file]
m4/check_perl.m4 [deleted file]
m4/check_python.m4 [deleted file]
m4/pkg.m4 [deleted file]
source3/Makefile-smbtorture [deleted file]
source3/Makefile.in [deleted file]
source3/autogen.sh [deleted file]
source3/config.guess [deleted file]
source3/config.sub [deleted file]
source3/configure.developer [deleted file]
source3/configure.in [deleted file]
source3/m4/aclocal.m4 [deleted file]
source3/m4/autoconf-2.60.m4 [deleted file]
source3/m4/check_path.m4 [deleted file]
source3/m4/samba_version.m4 [deleted file]

diff --git a/dynconfig/config.m4 b/dynconfig/config.m4
deleted file mode 100644 (file)
index fe69abe..0000000
+++ /dev/null
@@ -1,299 +0,0 @@
-#################################################
-# Directory handling stuff to support both the
-# legacy SAMBA directories and FHS compliant
-# ones...
-AC_PREFIX_DEFAULT(/usr/local/samba)
-
-BINDIR="${bindir}"
-SBINDIR="${sbindir}"
-LIBDIR="${libdir}"
-LIBEXECDIR="${libexecdir}"
-MANDIR="${mandir}"
-DATADIR="${datadir}"
-LOCALEDIR="${localedir}"
-SCRIPTSBINDIR="${sbindir}"
-#PYTHONDIR
-#PYTHONARCHDIR
-
-AC_ARG_ENABLE(fhs,
-[AS_HELP_STRING([--enable-fhs], [Turn on FHS support (default=no)])])
-
-if test x$enable_fhs != xyes; then
-       if test x"$prefix" = x"/usr" -o x"$prefix" = x"/usr/local"; then
-               AC_MSG_WARN([Don't install directly under /usr or /usr/local without using the FHS option (--enable-fhs)])
-               AC_MSG_ERROR([invalid --prefix=$prefix])
-       fi
-       MODULESDIR="${libdir}"
-       INCLUDEDIR="${includedir}"
-       SETUPDIR="${datadir}/setup"
-       PKGCONFIGDIR="${libdir}/pkgconfig"
-       CODEPAGEDIR="${datadir}/codepages"
-       PAMMODULESDIR="${libdir}/security"
-       CONFIGDIR="\${sysconfdir}"
-       PRIVATE_DIR="\${prefix}/private"
-       LOCKDIR="\${localstatedir}/lock"
-       PIDDIR="\${localstatedir}/run"
-       STATEDIR="\${localstatedir}/locks"
-       CACHEDIR="\${localstatedir}/cache"
-       LOGFILEBASE="\${localstatedir}"
-       SOCKET_DIR="\${localstatedir}/run"
-       PRIVILEGED_SOCKET_DIR="\${localstatedir}/lib"
-else
-       AC_DEFINE(FHS_COMPATIBLE, 1, [Whether to use fully FHS-compatible paths])
-
-       MODULESDIR="${libdir}/samba"
-       INCLUDEDIR="${includedir}/samba-4.0"
-       SETUPDIR="${datadir}/samba/setup"
-       PKGCONFIGDIR="${libdir}/pkgconfig"
-       CODEPAGEDIR="${datadir}/samba/codepages"
-       PAMMODULESDIR="${libdir}/security"
-       CONFIGDIR="\${sysconfdir}/samba"
-       PRIVATE_DIR="\${localstatedir}/lib/samba/private"
-       LOCKDIR="\${localstatedir}/lock/samba"
-       PIDDIR="\${localstatedir}/run/samba"
-       STATEDIR="\${localstatedir}/lib/samba"
-       CACHEDIR="\${localstatedir}/cache/samba"
-       LOGFILEBASE="\${localstatedir}/log/samba"
-       SOCKET_DIR="\${localstatedir}/run/samba"
-       PRIVILEGED_SOCKET_DIR="\${localstatedir}/lib/samba"
-fi
-
-AC_ARG_WITH(modulesdir,
-[AS_HELP_STRING([--with-modulesdir=DIR],
- [Which directory to use for modules ($exec_prefix/modules)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-modulesdir called without argument - will use default])
-  ;;
-  * )
-    MODULESDIR="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(pammodulesdir,
-[AS_HELP_STRING([--with-pammodulesdir=DIR],
- [Which directory to use for PAM modules ($libdir/security)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-pammodulesdir called without argument - will use default])
-  ;;
-  * )
-    PAMMODULESDIR="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(configdir,
-[AS_HELP_STRING([--with-configdir=DIR],
- [Where to put configuration files ($sysconfdir)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-configdir called without argument - will use default])
-  ;;
-  * )
-    CONFIGDIR="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(privatedir,
-[AS_HELP_STRING([--with-privatedir=DIR],
- [Where to put passdb.tdb and other private files ($prefix/private)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-privatedir called without argument - will use default])
-  ;;
-  * )
-    PRIVATE_DIR="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(lockdir,
-[AS_HELP_STRING([--with-lockdir=DIR],
- [Where to put short term disposable state files ($localstatedir/lock)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-lockdir called without argument - will use default])
-  ;;
-  * )
-    LOCKDIR="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(piddir,
-[AS_HELP_STRING([--with-piddir=DIR],
- [Where to put pid files ($localstatedir/run)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-piddir called without argument - will use default])
-  ;;
-  * )
-    PIDDIR="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(statedir,
-[AS_HELP_STRING([--with-statedir=DIR],
- [Where to put persistent state files ($localstatedir/locks)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-statedir called without argument - will use default])
-  ;;
-  * )
-    STATEDIR="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(cachedir,
-[AS_HELP_STRING([--with-cachedir=DIR],
- [Where to put temporary cache files ($localstatedir/cache)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-cachedir called without argument - will use default])
-  ;;
-  * )
-    CACHEDIR="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(logfilebase,
-[AS_HELP_STRING([--with-logfilebase=DIR],
- [Where to put log files ($localstatedir)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-logfilebase called without argument - will use default])
-  ;;
-  * )
-    LOGFILEBASE="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(sockets-dir,
-[AS_HELP_STRING([--with-sockets-dir=DIR],
- [socket directory ($localstatedir/run)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-sockets-dir called without argument - will use default])
-  ;;
-  * )
-    SOCKET_DIR="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(privileged-socket-dir,
-[AS_HELP_STRING([--with-privileged-socket-dir=DIR],
- [privileged socket directory ($localstatedir/lib)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-sockets-dir called without argument - will use default])
-  ;;
-  * )
-    PRIVILEGED_SOCKET_DIR="$withval"
-  ;;
-  esac])
-
-WINBINDD_SOCKET_DIR="${SOCKET_DIR}/winbindd"
-WINBINDD_PRIVILEGED_SOCKET_DIR="${PRIVILEGED_SOCKET_DIR}/winbindd_privileged"
-
-AC_ARG_WITH(winbind-socket-dir,
-[AS_HELP_STRING([--with-winbind-socket-dir=DIR],
- [winbnd socket directory ($localstatedir/run/winbindd)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-winbind-socket-dir called without argument - will use default])
-  ;;
-  * )
-    WINBINDD_SOCKET_DIR="$withval"
-  ;;
-  esac])
-
-AC_ARG_WITH(winbind-privileged-socket-dir,
-[AS_HELP_STRING([--with-winbind-privileged-socket-dir=DIR],
- [winbind privileged socket directory ($localstatedir/lib/winbindd)])],
-[ case "$withval" in
-  yes|no)
-  #
-  # Just in case anybody calls it without argument
-  #
-    AC_MSG_WARN([--with-winbind-privileged-socket-dir called without argument - will use default])
-  ;;
-  * )
-    WINBINDD_PRIVILEGED_SOCKET_DIR="$withval"
-  ;;
-  esac])
-
-NMBDSOCKETDIR="${SOCKET_DIR}/nmbd"
-NTP_SIGND_SOCKET_DIR="${SOCKET_DIR}/ntp_signd"
-NCALRPCDIR="${SOCKET_DIR}/ncalrpc"
-CONFIGFILE="${CONFIGDIR}/smb.conf"
-LMHOSTSFILE="${CONFIGDIR}/lmhosts"
-SMB_PASSWD_FILE="${PRIVATE_DIR}/smbpasswd"
-
-AC_SUBST(BINDIR)
-AC_SUBST(SBINDIR)
-AC_SUBST(LIBDIR)
-AC_SUBST(LIBEXECDIR)
-AC_SUBST(MANDIR)
-AC_SUBST(DATADIR)
-AC_SUBST(LOCALEDIR)
-AC_SUBST(SCRIPTSBINDIR)
-dnl AC_SUBST(PYTHONDIR)
-dnl AC_SUBST(PYTHONARCHDIR)
-AC_SUBST(MODULESDIR)
-AC_SUBST(INCLUDEDIR)
-AC_SUBST(SETUPDIR)
-AC_SUBST(PKGCONFIGDIR)
-AC_SUBST(CODEPAGEDIR)
-AC_SUBST(PAMMODULESDIR)
-AC_SUBST(CONFIGDIR)
-AC_SUBST(PRIVATE_DIR)
-AC_SUBST(LOCKDIR)
-AC_SUBST(PIDDIR)
-AC_SUBST(STATEDIR)
-AC_SUBST(CACHEDIR)
-AC_SUBST(LOGFILEBASE)
-AC_SUBST(SOCKET_DIR)
-AC_SUBST(PRIVILEGED_SOCKET_DIR)
-AC_SUBST(WINBINDD_SOCKET_DIR)
-AC_SUBST(WINBINDD_PRIVILEGED_SOCKET_DIR)
-AC_SUBST(NMBDSOCKETDIR)
-AC_SUBST(NTP_SIGND_SOCKET_DIR)
-AC_SUBST(NCALRPCDIR)
-AC_SUBST(CONFIGFILE)
-AC_SUBST(LMHOSTSFILE)
-AC_SUBST(SMB_PASSWD_FILE)
-
diff --git a/lib/ccan/libccan.m4 b/lib/ccan/libccan.m4
deleted file mode 100644 (file)
index c573215..0000000
+++ /dev/null
@@ -1,363 +0,0 @@
-dnl find the ccan sources.
-ccandir="../lib/ccan"
-for d in $ccanpaths; do
-       if test -f "$srcdir/$d/str/str.c"; then
-               ccandir="$d"
-               AC_SUBST(ccandir)
-               break
-       fi
-done
-if test -f "$ccandir/str/str.c"; then :; else
-   AC_MSG_ERROR([cannot find ccan source in $ccandir])
-fi
-CCAN_OBJ="$ccandir/hash/hash.o $ccandir/htable/htable.o $ccandir/ilog/ilog.o $ccandir/likely/likely.o $ccandir/str/debug.o $ccandir/str/str.o $ccandir/tally/tally.o"
-
-AC_SUBST(CCAN_OBJ)
-
-# Preferred method for including ccan modules is #include <ccan/module/...>.
-CCAN_CFLAGS="-I$ccandir/.. -DHAVE_CCAN"
-AC_SUBST(CCAN_CFLAGS)
-
-# All the configuration checks.  Regrettably, the __attribute__ checks will
-# give false positives on old GCCs, since they just cause warnings.  But that's
-# fairly harmless.
-AC_CHECK_HEADERS(err.h)
-
-AC_CHECK_HEADERS(byteswap.h)
-
-AC_CACHE_CHECK([whether we can compile with __attribute__((cold))],
-              samba_cv_attribute_cold,
-              [
-                AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-                       [
-                               static void __attribute__((cold))
-                               cleanup(void) { }
-                       ])],
-                       samba_cv_attribute_cold=yes)
-               ])
-
-if test x"$samba_cv_attribute_cold" = xyes ; then
-   AC_DEFINE(HAVE_ATTRIBUTE_COLD, 1,
-            [whether we can compile with __attribute__((cold))])
-fi
-
-AC_CACHE_CHECK([whether we can compile with __attribute__((const))],
-              samba_cv_attribute_const,
-              [
-                AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-                       [
-                               static void __attribute__((const))
-                               cleanup(void) { }
-                       ])],
-                       samba_cv_attribute_const=yes)
-               ])
-
-if test x"$samba_cv_attribute_const" = xyes ; then
-   AC_DEFINE(HAVE_ATTRIBUTE_CONST, 1,
-            [whether we can compile with __attribute__((const))])
-fi
-
-AC_CACHE_CHECK([whether we can compile with __attribute__((noreturn))],
-              samba_cv_attribute_noreturn,
-              [
-                AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-                       [
-                               static void __attribute__((noreturn))
-                               cleanup(void) { exit(1); }
-                       ])],
-                       samba_cv_attribute_noreturn=yes)
-               ])
-
-if test x"$samba_cv_attribute_noreturn" = xyes ; then
-   AC_DEFINE(HAVE_ATTRIBUTE_NORETURN, 1,
-            [whether we can compile with __attribute__((noreturn))])
-fi
-
-AC_CACHE_CHECK([whether we can compile with __attribute__((printf))],
-              samba_cv_attribute_printf,
-              [
-                AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-                       [
-                               static void __attribute__((format(__printf__, 1, 2)))
-                               cleanup(const char *fmt, ...) { }
-                       ])],
-                       samba_cv_attribute_printf=yes)
-               ])
-
-if test x"$samba_cv_attribute_printf" = xyes ; then
-   AC_DEFINE(HAVE_ATTRIBUTE_PRINTF, 1,
-            [whether we can compile with __attribute__((format(printf)))])
-fi
-
-AC_CACHE_CHECK([whether we can compile with __attribute__((unused))],
-              samba_cv_attribute_unused,
-              [
-                AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-                       [
-                               static void __attribute__((unused))
-                               cleanup(void) { }
-                       ])],
-                       samba_cv_attribute_unused=yes)
-               ])
-
-if test x"$samba_cv_attribute_unused" = xyes ; then
-   AC_DEFINE(HAVE_ATTRIBUTE_UNUSED, 1,
-            [whether we can compile with __attribute__((unused))])
-fi
-
-AC_CACHE_CHECK([whether we can compile with __attribute__((used))],
-              samba_cv_attribute_used,
-              [
-                AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-                       [
-                               static void __attribute__((used))
-                               cleanup(void) { }
-                       ])],
-                       samba_cv_attribute_used=yes)
-               ])
-
-if test x"$samba_cv_attribute_used" = xyes ; then
-   AC_DEFINE(HAVE_ATTRIBUTE_USED, 1,
-            [whether we can compile with __attribute__((used))])
-fi
-
-# FIXME: We could use endian.h or sys/endian.h here, and __BYTE_ORDER for
-# cross-compiling.
-AC_CACHE_CHECK([whether we are big endian],samba_cv_big_endian,[
-AC_TRY_RUN([int main(void) {
-union { int i; char c[sizeof(int)]; } u;
-         u.i = 0x01020304;
-         return u.c[0] == 0x01 && u.c[1] == 0x02 && u.c[2] == 0x03 && u.c[3] == 0x04 ? 0 : 1;
-}],
-samba_cv_big_endian=yes,
-samba_cv_big_endian=no)])
-if test x"$samba_cv_big_endian" = xyes ; then
-   AC_DEFINE(HAVE_BIG_ENDIAN, 1,
-            [whether we are big endian])
-fi
-
-AC_CACHE_CHECK([whether we have __builtin_clz],
-              samba_cv_builtin_clz,
-              [
-                AC_LINK_IFELSE([AC_LANG_SOURCE(
-                       [int main(void) {
-                               return __builtin_clz(1) == (sizeof(int)*8 - 1) ? 0 : 1;
-                       }])],
-                       samba_cv_builtin_clz=yes)
-               ])
-
-if test x"$samba_cv_builtin_clz" = xyes ; then
-   AC_DEFINE(HAVE_BUILTIN_CLZ, 1,
-            [whether we have __builtin_clz])
-fi
-
-AC_CACHE_CHECK([whether we have __builtin_clzl],
-              samba_cv_builtin_clzl,
-              [
-                AC_LINK_IFELSE([AC_LANG_SOURCE(
-                       [int main(void) {
-                               return __builtin_clzl(1) == (sizeof(int)*8 - 1) ? 0 : 1;
-                       }])],
-                       samba_cv_builtin_clzl=yes)
-               ])
-
-if test x"$samba_cv_builtin_clzl" = xyes ; then
-   AC_DEFINE(HAVE_BUILTIN_CLZL, 1,
-            [whether we have __builtin_clzl])
-fi
-AC_CACHE_CHECK([whether we have __builtin_clzll],
-              samba_cv_builtin_clzll,
-              [
-                AC_LINK_IFELSE([AC_LANG_SOURCE(
-                       [int main(void) {
-                               return __builtin_clzll(1) == (sizeof(int)*8 - 1) ? 0 : 1;
-                       }])],
-                       samba_cv_builtin_clzll=yes)
-               ])
-
-if test x"$samba_cv_builtin_clzll" = xyes ; then
-   AC_DEFINE(HAVE_BUILTIN_CLZLL, 1,
-            [whether we have __builtin_clzll])
-fi
-
-AC_CACHE_CHECK([whether we have __builtin_constant_p],
-              samba_cv_builtin_constant_p,
-              [
-                AC_LINK_IFELSE([AC_LANG_SOURCE(
-                       [int main(void) {
-                               return __builtin_constant_p(1) ? 0 : 1;
-                       }])],
-                       samba_cv_builtin_constant_p=yes)
-               ])
-
-if test x"$samba_cv_builtin_constant_p" = xyes ; then
-   AC_DEFINE(HAVE_BUILTIN_CONSTANT_P, 1,
-            [whether we have __builtin_constant_p])
-fi
-
-AC_CACHE_CHECK([whether we have __builtin_expect],
-              samba_cv_builtin_expect,
-              [
-                AC_LINK_IFELSE([AC_LANG_SOURCE(
-                       [int main(void) {
-                               return __builtin_expect(main != 0, 1) ? 0 : 1;
-                       }])],
-                       samba_cv_builtin_expect=yes)
-               ])
-
-if test x"$samba_cv_builtin_expect" = xyes ; then
-   AC_DEFINE(HAVE_BUILTIN_EXPECT, 1,
-            [whether we have __builtin_expect])
-fi
-
-AC_CACHE_CHECK([whether we have __builtin_popcountl],
-              samba_cv_builtin_popcountl,
-              [
-                AC_LINK_IFELSE([AC_LANG_SOURCE(
-                       [int main(void) {
-                               return __builtin_popcountl(255L) == 8 ? 0 : 1;
-                       }])],
-                       samba_cv_builtin_popcountl=yes)
-               ])
-
-if test x"$samba_cv_builtin_popcountl" = xyes ; then
-   AC_DEFINE(HAVE_BUILTIN_POPCOUNTL, 1,
-            [whether we have __builtin_popcountl])
-fi
-
-AC_CACHE_CHECK([whether we have __builtin_types_compatible_p],
-              samba_cv_builtin_types_compatible_p,
-              [
-                AC_LINK_IFELSE([AC_LANG_SOURCE(
-                       [int main(void) {
-                               return __builtin_types_compatible_p(char *, int) ? 1 : 0;
-                       }])],
-                       samba_cv_builtin_types_compatible_p=yes)
-               ])
-
-if test x"$samba_cv_builtin_types_compatible_p" = xyes ; then
-   AC_DEFINE(HAVE_BUILTIN_TYPES_COMPATIBLE_P, 1,
-            [whether we have __builtin_types_compatible_p])
-fi
-
-AC_CACHE_CHECK([whether we have __builtin_choose_expr],
-              samba_cv_builtin_choose_expr,
-              [
-                AC_LINK_IFELSE([AC_LANG_SOURCE(
-                       [int main(void) {
-                               return __builtin_choose_expr(1, 0, "garbage");
-                       }])],
-                       samba_cv_builtin_choose_expr=yes)
-               ])
-
-if test x"$samba_cv_builtin_choose_expr" = xyes ; then
-   AC_DEFINE(HAVE_BUILTIN_CHOOSE_EXPR, 1,
-            [whether we have __builtin_choose_expr])
-fi
-
-# We use @<:@ and @:>@ here for embedded [ and ].
-AC_CACHE_CHECK([whether we have compound literals],
-              samba_cv_compound_literals,
-              [
-                AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-                       [int main(void) {
-                               int *foo = (int@<:@@:>@) { 1, 2, 3, 4 };
-                               return foo@<:@0@:>@ == 1 ? 0 : 1;
-                       }])],
-                       samba_cv_compound_literals=yes)
-               ])
-
-if test x"$samba_cv_compound_literals" = xyes ; then
-   AC_DEFINE(HAVE_COMPOUND_LITERALS, 1,
-            [whether we have compound literals])
-fi
-
-AC_CACHE_CHECK([whether we have flexible array members],
-              samba_cv_have_flex_arr_member,
-              [
-                AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-                       [struct foo { unsigned int x; int arr@<:@@:>@; }; ])],
-                       samba_cv_have_flex_arr_member=yes)
-               ])
-
-if test x"$samba_cv_have_flex_arr_member" = xyes ; then
-   AC_DEFINE(HAVE_FLEXIBLE_ARRAY_MEMBER, 1,
-            [whether we have flexible array member support])
-fi
-
-AC_CACHE_CHECK([whether we have isblank],
-              samba_cv_have_isblank,
-              [
-                AC_LINK_IFELSE([AC_LANG_SOURCE(
-                       [#include <ctype.h>
-                        int main(void) { return isblank(' ') ? 0 : 1; }
-                       ])],
-                       samba_cv_have_isblank=yes)
-               ])
-
-if test x"$samba_cv_have_isblank" = xyes ; then
-   AC_DEFINE(HAVE_ISBLANK, 1,
-            [whether we have isblank])
-fi
-
-# FIXME: We could use endian.h or sys/endian.h here, and __BYTE_ORDER for
-# cross-compiling.
-AC_CACHE_CHECK([whether we are little endian],samba_cv_little_endian,[
-AC_TRY_RUN([int main(void) {
-union { int i; char c[sizeof(int)]; } u;
-         u.i = 0x01020304;
-         return u.c[0] == 0x04 && u.c[1] == 0x03 && u.c[2] == 0x02 && u.c[3] == 0x01 ? 0 : 1;
-}],
-samba_cv_little_endian=yes,
-samba_cv_little_endian=no)])
-if test x"$samba_cv_little_endian" = xyes ; then
-   AC_DEFINE(HAVE_LITTLE_ENDIAN, 1,
-            [whether we are little endian])
-fi
-
-AC_CACHE_CHECK([whether we have __typeof__],
-              samba_cv_typeof,
-              [
-                AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-                       [int main(void) {
-                               int x = 1;
-                               __typeof__(x) i;
-                               i = x;
-                               return i == x ? 0 : 1;
-                       }])],
-                       samba_cv_typeof=yes)
-               ])
-
-if test x"$samba_cv_typeof" = xyes ; then
-   AC_DEFINE(HAVE_TYPEOF, 1,
-            [whether we have __typeof__])
-fi
-
-AC_CACHE_CHECK([whether we have __attribute__((warn_unused_result))],
-              samba_cv_warn_unused_result,
-              [
-                AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-                       [int __attribute__((warn_unused_result)) func(int x)
-                           { return x; }])],
-                       samba_cv_warn_unused_result=yes)
-               ])
-
-if test x"$samba_cv_warn_unused_result" = xyes ; then
-   AC_DEFINE(HAVE_WARN_UNUSED_RESULT, 1,
-            [whether we have __attribute__((warn_unused_result))])
-fi
-
-AC_CACHE_CHECK([whether we have bswap_64],
-              samba_cv_have_bswap_64,
-              [
-                AC_LINK_IFELSE([AC_LANG_SOURCE(
-                       [#include <byteswap.h>
-                        int main(void) { return bswap_64(1) ? 0 : 1; }
-                       ])],
-                       samba_cv_have_bswap_64=yes)
-               ])
-
-if test x"$samba_cv_have_bswap_64" = xyes ; then
-   AC_DEFINE(HAVE_BSWAP_64, 1,
-            [whether we have bswap_64])
-fi
diff --git a/lib/iniparser_build/config.m4 b/lib/iniparser_build/config.m4
deleted file mode 100644 (file)
index 282c977..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-AC_ARG_WITH(included-iniparser,
-[AS_HELP_STRING([--with-included-iniparser], [use bundled iniparser library, not from system])],
-[
-  case "$withval" in
-  yes)
-    INCLUDED_INIPARSER=yes
-    ;;
-  no)
-    INCLUDED_INIPARSER=no
-    ;;
-  esac ],
-)
-if test x"$INCLUDED_INIPARSER" != x"yes"; then
-    AC_CHECK_LIB_EXT(iniparser, LIBINIPARSER_LIBS, iniparser_load)
-
-fi
-
-AC_MSG_CHECKING(whether to use included iniparser)
-if test x"$ac_cv_lib_ext_iniparser" != x"yes"; then
-
-  iniparserpaths="../iniparser ../lib/iniparser"
-  for d in $iniparserpaths; do
-    if test -f "$srcdir/$d/src/iniparser.c"; then
-      iniparserdir="$d"
-      break;
-    fi
-  done
-  if test x"$iniparserdir" = "x"; then
-     AC_MSG_ERROR([cannot find iniparser source in $iniparserpaths])
-  fi
-  INIPARSER_CFLAGS="-I$srcdir/$iniparserdir/src"
-  AC_MSG_RESULT(yes)
-
-  INIPARSER_OBJS=""
-  INIPARSER_OBJS="$INIPARSER_OBJS $srcdir/$iniparserdir/../iniparser_build/iniparser.o"
-  INIPARSER_OBJS="$INIPARSER_OBJS $srcdir/$iniparserdir/../iniparser_build/dictionary.o"
-  INIPARSER_OBJS="$INIPARSER_OBJS $srcdir/$iniparserdir/../iniparser_build/strlib.o"
-
-  SMB_SUBSYSTEM(LIBINIPARSER,[$INIPARSER_OBJS],[],[$INIPARSER_CFLAGS])
-else
-  AC_MSG_RESULT(no)
-  SMB_EXT_LIB(LIBINIPARSER,,,,${LIBINIPARSER_LIBS})
-  SMB_ENABLE(LIBINIPARSER,YES)
-fi
-
diff --git a/lib/nss_wrapper/config.m4 b/lib/nss_wrapper/config.m4
deleted file mode 100644 (file)
index 1e864bf..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-AC_ARG_ENABLE(nss-wrapper,
-AS_HELP_STRING([--enable-nss-wrapper], [Turn on nss wrapper library (default=no)]))
-
-HAVE_NSS_WRAPPER=no
-
-if eval "test x$developer = xyes -o x$selftest = xyes"; then
-       enable_nss_wrapper=yes
-fi
-
-if eval "test x$enable_nss_wrapper = xyes"; then
-        AC_DEFINE(NSS_WRAPPER,1,[Use nss wrapper library])
-       HAVE_NSS_WRAPPER=yes
-
-       # this is only used for samba3
-       NSS_WRAPPER_OBJS="../lib/nss_wrapper/nss_wrapper.o"
-fi
-
-AC_SUBST(HAVE_NSS_WRAPPER)
-AC_SUBST(NSS_WRAPPER_OBJS)
diff --git a/lib/ntdb/libntdb.m4 b/lib/ntdb/libntdb.m4
deleted file mode 100644 (file)
index 847dc64..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-dnl find the ntdb sources. This is meant to work both for
-dnl ntdb standalone builds, and builds of packages using ntdb
-ntdbdir=""
-ntdbpaths=". lib/ntdb ntdb ../ntdb ../lib/ntdb"
-for d in $ntdbpaths; do
-       if test -f "$srcdir/$d/ntdb.c"; then
-               ntdbdir="$d"
-               AC_SUBST(ntdbdir)
-               break;
-       fi
-done
-if test x"$ntdbdir" = "x"; then
-   AC_MSG_ERROR([cannot find ntdb source in $ntdbpaths])
-fi
-NTDB_OBJ="check.o free.o hash.o io.o lock.o ntdb.o open.o summary.o transaction.o traverse.o"
-AC_SUBST(NTDB_OBJ)
-AC_SUBST(LIBREPLACEOBJ)
-AC_SUBST(CCAN_OBJ)
-
-NTDB_LIBS=""
-AC_SUBST(NTDB_LIBS)
-
-NTDB_DEPS=""
-if test x$libreplace_cv_HAVE_FDATASYNC_IN_LIBRT = xyes ; then
-       NTDB_DEPS="$NTDB_DEPS -lrt"
-fi
-AC_SUBST(NTDB_DEPS)
-
-NTDB_CFLAGS="-I$ntdbdir"
-AC_SUBST(NTDB_CFLAGS)
-
-AC_CHECK_FUNCS(mmap pread pwrite getpagesize utime)
-AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h)
-
-AC_HAVE_DECL(pread, [#include <unistd.h>])
-AC_HAVE_DECL(pwrite, [#include <unistd.h>])
-
-if test x"$VERSIONSCRIPT" != "x"; then
-    EXPORTSFILE=ntdb.exports
-    AC_SUBST(EXPORTSFILE)
-fi
diff --git a/lib/popt/libpopt.m4 b/lib/popt/libpopt.m4
deleted file mode 100644 (file)
index cfa2eaa..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-dnl Check to see if we should use the included popt
-
-INCLUDED_POPT=auto
-AC_ARG_WITH(included-popt,
-[  --with-included-popt    use bundled popt library, not from system],
-[ INCLUDED_POPT=$withval ])
-
-AC_SUBST(POPT_LIBS)
-AC_SUBST(POPT_CFLAGS)
-
-if test x"$INCLUDED_POPT" != x"yes"; then
-       AC_CHECK_HEADERS(popt.h)
-       AC_CHECK_LIB(popt, poptGetContext, [ POPT_LIBS="-lpopt" ])
-       if test x"$ac_cv_header_popt_h" = x"no" -o x"$ac_cv_lib_popt_poptGetContext" = x"no"; then
-               INCLUDED_POPT=yes
-               POPT_CFLAGS=""
-       else
-               INCLUDED_POPT=no
-       fi
-fi
-
-AC_MSG_CHECKING(whether to use included popt)
-AC_MSG_RESULT($INCLUDED_POPT)
-if test x"$INCLUDED_POPT" != x"no"; then
-       dnl find the popt sources. This is meant to work both for 
-       dnl popt standalone builds, and builds of packages using popt
-       poptdir=""
-       poptpaths="$srcdir $srcdir/lib/popt $srcdir/popt $srcdir/../popt $srcdir/../lib/popt"
-       for d in $poptpaths; do
-               if test -f "$d/popt.c"; then
-                       poptdir="$d"            
-                       POPT_CFLAGS="-I$d"
-                       AC_SUBST(poptdir)
-                       break
-               fi
-       done
-        if test x"$poptdir" = "x"; then
-               AC_MSG_ERROR([cannot find popt source in $poptpaths])
-       fi
-       POPT_OBJ="popt.o findme.o poptconfig.o popthelp.o poptparse.o"
-       AC_SUBST(POPT_OBJ)
-       AC_CHECK_HEADERS([float.h alloca.h])
-fi
diff --git a/lib/popt/samba.m4 b/lib/popt/samba.m4
deleted file mode 100644 (file)
index 627dd85..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-m4_include(../lib/popt/libpopt.m4)
-
-if test x"$POPT_OBJ" = "x"; then
-       SMB_EXT_LIB(LIBPOPT, [${POPT_LIBS}])
-else
-       SMB_INCLUDE_MK(../lib/popt/config.mk)
-fi
-
diff --git a/lib/replace/crypt.m4 b/lib/replace/crypt.m4
deleted file mode 100644 (file)
index fae2a58..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-###############################################
-# test for where we get crypt() from
-AC_CHECK_HEADERS(crypt.h)
-AC_SEARCH_LIBS_EXT(crypt, [crypt], CRYPT_LIBS,
-  [ AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function]) ],
-  [ LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/crypt.o" ])
diff --git a/lib/replace/dlfcn.m4 b/lib/replace/dlfcn.m4
deleted file mode 100644 (file)
index 722e024..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-dnl dummies provided by dlfcn.c if not available
-save_LIBS="$LIBS"
-LIBS=""
-
-libreplace_cv_dlfcn=no
-AC_SEARCH_LIBS(dlopen, dl)
-
-AC_CHECK_HEADERS(dlfcn.h)
-AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_cv_dlfcn=yes])
-
-libreplace_cv_shl=no
-AC_SEARCH_LIBS(shl_load, sl)
-AC_CHECK_HEADERS(dl.h)
-AC_CHECK_FUNCS([shl_load shl_unload shl_findsym],[],[libreplace_cv_shl=yes])
-
-AC_VERIFY_C_PROTOTYPE([void *dlopen(const char* filename, unsigned int flags)],
-       [
-       return 0;
-       ],[
-       AC_DEFINE(DLOPEN_TAKES_UNSIGNED_FLAGS, 1, [Whether dlopen takes unsigned int flags])
-       ],[],[
-       #include <dlfcn.h>
-       ])
-
-if test x"${libreplace_cv_dlfcn}" = x"yes";then
-       LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/dlfcn.o"
-fi
-
-LIBDL="$LIBS"
-AC_SUBST(LIBDL)
-LIBS="$save_LIBS"
diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4
deleted file mode 100644 (file)
index f4ae715..0000000
+++ /dev/null
@@ -1,490 +0,0 @@
-AC_DEFUN_ONCE(AC_LIBREPLACE_LOCATION_CHECKS,
-[
-echo "LIBREPLACE_LOCATION_CHECKS: START"
-
-dnl find the libreplace sources. This is meant to work both for 
-dnl libreplace standalone builds, and builds of packages using libreplace
-libreplacedir=""
-libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace $srcdir/../../../lib/replace"
-for d in $libreplacepaths; do
-       if test -f "$d/replace.c"; then
-               libreplacedir="$d"              
-               AC_SUBST(libreplacedir)
-               break;
-       fi
-done
-if test x"$libreplacedir" = "x"; then
-       AC_MSG_ERROR([cannot find libreplace in $libreplacepaths])
-fi
-LIBREPLACEOBJ="$libreplacedir/replace.o"
-AC_SUBST(LIBREPLACEOBJ)
-
-AC_CANONICAL_BUILD
-AC_CANONICAL_HOST
-AC_CANONICAL_TARGET
-
-echo "LIBREPLACE_LOCATION_CHECKS: END"
-]) dnl end AC_LIBREPLACE_LOCATION_CHECKS
-
-
-AC_DEFUN_ONCE(AC_LIBREPLACE_BROKEN_CHECKS,
-[
-echo "LIBREPLACE_BROKEN_CHECKS: START"
-
-dnl find the libreplace sources. This is meant to work both for 
-dnl libreplace standalone builds, and builds of packages using libreplace
-libreplacedir=""
-libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace $srcdir/../../../lib/replace"
-for d in $libreplacepaths; do
-       if test -f "$d/replace.c"; then
-               libreplacedir="$d"              
-               AC_SUBST(libreplacedir)
-               break;
-       fi
-done
-if test x"$libreplacedir" = "x"; then
-       AC_MSG_ERROR([cannot find libreplace in $libreplacepaths])
-fi
-
-LIBREPLACEOBJ="$libreplacedir/replace.o"
-AC_SUBST(LIBREPLACEOBJ)
-
-LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/snprintf.o  $libreplacedir/xattr.o"
-
-AC_TYPE_UID_T
-AC_TYPE_MODE_T
-AC_TYPE_OFF_T
-AC_TYPE_SIZE_T
-AC_TYPE_PID_T
-AC_STRUCT_ST_RDEV
-AC_CHECK_TYPE(ino_t,unsigned)
-AC_CHECK_TYPE(loff_t,off_t)
-AC_CHECK_TYPE(offset_t,loff_t)
-AC_CHECK_TYPE(blksize_t,long)
-AC_CHECK_TYPE(blkcnt_t,long)
-
-AC_FUNC_MEMCMP
-
-AC_CHECK_FUNCS([pipe strftime srandom random srand rand usleep setbuffer lstat getpgrp utime utimes])
-
-AC_CHECK_HEADERS(stdbool.h stdint.h sys/select.h)
-AC_CHECK_HEADERS(setjmp.h utime.h sys/wait.h)
-
-LIBREPLACE_PROVIDE_HEADER([stdint.h])
-LIBREPLACE_PROVIDE_HEADER([stdbool.h])
-
-AC_DEFINE(HAVE_LIBREPLACE, 1, [We have libreplace])
-
-AC_CHECK_TYPE(bool, 
-[AC_DEFINE(HAVE_BOOL, 1, [Whether the bool type is available])],,
-[
-AC_INCLUDES_DEFAULT
-#ifdef HAVE_STDBOOL_H
-#include <stdbool.h>
-#endif]
-)
-
-AC_CHECK_TYPE(_Bool, 
-[AC_DEFINE(HAVE__Bool, 1, [Whether the _Bool type is available])],,
-[
-AC_INCLUDES_DEFAULT
-#ifdef HAVE_STDBOOL_H
-#include <stdbool.h>
-#endif]
-)
-
-AC_CHECK_HEADERS(linux/types.h)
-
-AC_CACHE_CHECK([for working mmap],libreplace_cv_HAVE_MMAP,[
-AC_TRY_RUN([#include "$libreplacedir/test/shared_mmap.c"],
-           libreplace_cv_HAVE_MMAP=yes,libreplace_cv_HAVE_MMAP=no,libreplace_cv_HAVE_MMAP=cross)])
-if test x"$libreplace_cv_HAVE_MMAP" = x"yes"; then
-    AC_DEFINE(HAVE_MMAP,1,[Whether mmap works])
-fi
-
-AC_CACHE_CHECK([for working mremap],libreplace_cv_HAVE_MREMAP,[
-AC_TRY_RUN([#include "$libreplacedir/test/shared_mremap.c"],
-           libreplace_cv_HAVE_MREMAP=yes,libreplace_cv_HAVE_MREMAP=no,libreplace_cv_HAVE_MREMAP=cross)])
-if test x"$libreplace_cv_HAVE_MREMAP" = x"yes"; then
-    AC_DEFINE(HAVE_MREMAP,1,[Whether mremap works])
-fi
-
-AC_CACHE_CHECK([for incoherent mmap],libreplace_cv_HAVE_INCOHERENT_MMAP,[
-AC_TRY_RUN([#include "$libreplacedir/test/incoherent_mmap.c"],
-           libreplace_cv_HAVE_INCOHERENT_MMAP=yes,libreplace_cv_HAVE_INCOHERENT_MMAP=no,libreplace_cv_HAVE_INCOHERENT_MMAP=cross)])
-if test x"$libreplace_cv_HAVE_INCOHERENT_MMAP" = x"yes"; then
-    AC_DEFINE(HAVE_INCOHERENT_MMAP,1,[Whether mmap is incoherent against write])
-fi
-
-
-AC_CHECK_HEADERS(sys/syslog.h syslog.h)
-AC_CHECK_HEADERS(sys/time.h time.h)
-AC_CHECK_HEADERS(stdarg.h vararg.h)
-AC_CHECK_HEADERS(sys/mount.h mntent.h)
-AC_CHECK_HEADERS(stropts.h)
-AC_CHECK_HEADERS(unix.h)
-AC_CHECK_HEADERS(malloc.h)
-AC_CHECK_HEADERS(syscall.h)
-AC_CHECK_HEADERS(sys/syscall.h)
-AC_CHECK_HEADERS(sys/ucontext.h)
-
-AC_CHECK_FUNCS(syscall setuid seteuid setreuid setresuid setgid setegid setregid setresgid setgroups)
-AC_CHECK_FUNCS(chroot bzero strerror strerror_r memalign posix_memalign getpagesize)
-AC_CHECK_FUNCS(vsyslog setlinebuf mktime ftruncate chsize rename)
-AC_CHECK_FUNCS(waitpid wait4 strlcpy strlcat initgroups memmove strdup)
-AC_CHECK_FUNCS(pread pwrite strndup strcasestr strtok_r mkdtemp dup2 dprintf vdprintf)
-AC_CHECK_FUNCS(isatty chown lchown link readlink symlink realpath)
-AC_CHECK_FUNCS(fdatasync,,[
-       # if we didn't find it, look in librt (Solaris hides it there...)
-       AC_CHECK_LIB(rt, fdatasync,
-               [libreplace_cv_HAVE_FDATASYNC_IN_LIBRT=yes
-               AC_DEFINE(HAVE_FDATASYNC, 1, Define to 1 if there is support for fdatasync)])
-])
-AC_HAVE_DECL(fdatasync, [#include <unistd.h>])
-AC_CHECK_FUNCS(clock_gettime,libreplace_cv_have_clock_gettime=yes,[
-       AC_CHECK_LIB(rt, clock_gettime,
-               [libreplace_cv_HAVE_CLOCK_GETTIME_IN_LIBRT=yes
-               libreplace_cv_have_clock_gettime=yes
-               AC_DEFINE(HAVE_CLOCK_GETTIME, 1, Define to 1 if there is support for clock_gettime)])
-])
-
-AC_CHECK_HEADERS(sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h)
-AC_CHECK_HEADERS(sys/ea.h sys/proplist.h)
-
-LIBREPLACE_FILESYS_LIBS=""
-
-############################################
-# Check for EA implementations
-case "$host_os" in
-  *freebsd4* | *dragonfly* )
-       AC_DEFINE(BROKEN_EXTATTR, 1, [Does extattr API work])
-  ;;
-  *)
-       AC_SEARCH_LIBS(getxattr, [attr])
-       AC_CHECK_FUNCS(attr_get attr_getf attr_list attr_listf attropen attr_remove)
-       AC_CHECK_FUNCS(attr_removef attr_set attr_setf extattr_delete_fd extattr_delete_file)
-       AC_CHECK_FUNCS(extattr_get_fd extattr_get_file extattr_list_fd extattr_list_file)
-       AC_CHECK_FUNCS(extattr_set_fd extattr_set_file fgetea fgetxattr flistea flistxattr)
-       AC_CHECK_FUNCS(fremoveea fremovexattr fsetea fsetxattr getea getxattr listea)
-       AC_CHECK_FUNCS(listxattr removeea removexattr setea setxattr)
-
-       AC_CHECK_LIB_EXT(attr, LIBREPLACE_FILESYS_LIBS, flistea)
-       AC_CHECK_LIB_EXT(attr, LIBREPLACE_FILESYS_LIBS, flistxattr)
-       AC_CHECK_LIB_EXT(attr, LIBREPLACE_FILESYS_LIBS, attr_listf)
-       AC_CHECK_LIB_EXT(attr, LIBREPLACE_FILESYS_LIBS, extattr_list_fd)
-
-  ;;
-esac
-
-
-########################################################
-# Do xattr functions take additional options like on Darwin?
-if test x"$ac_cv_func_getxattr" = x"yes" ; then
-       AC_CACHE_CHECK([whether xattr interface takes additional options], smb_attr_cv_xattr_add_opt, [
-               old_LIBS=$LIBS
-               LIBS="$LIBS $LIBREPLACE_FILESYS_LIBS"
-               AC_TRY_COMPILE([
-                       #include <sys/types.h>
-                       #if HAVE_ATTR_XATTR_H
-                       #include <attr/xattr.h>
-                       #elif HAVE_SYS_XATTR_H
-                       #include <sys/xattr.h>
-                       #endif
-               ],[
-                       getxattr(0, 0, 0, 0, 0, 0);
-               ],
-               [smb_attr_cv_xattr_add_opt=yes],
-               [smb_attr_cv_xattr_add_opt=no;LIBS=$old_LIBS])
-       ])
-       if test x"$smb_attr_cv_xattr_add_opt" = x"yes"; then
-               AC_DEFINE(XATTR_ADDITIONAL_OPTIONS, 1, [xattr functions have additional options])
-       fi
-fi
-
-AC_CHECK_FUNCS(get_current_dir_name)
-AC_HAVE_DECL(setresuid, [#include <unistd.h>])
-AC_HAVE_DECL(setresgid, [#include <unistd.h>])
-AC_HAVE_DECL(errno, [#include <errno.h>])
-
-AC_CACHE_CHECK([for secure mkstemp],libreplace_cv_HAVE_SECURE_MKSTEMP,[
-AC_TRY_RUN([#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-main() { 
-  struct stat st;
-  char tpl[20]="/tmp/test.XXXXXX";
-  char tpl2[20]="/tmp/test.XXXXXX";
-  int fd = mkstemp(tpl);
-  int fd2 = mkstemp(tpl2);
-  if (fd == -1) {
-        if (fd2 != -1) {
-                unlink(tpl2);
-        }
-        exit(1);
-  }
-  if (fd2 == -1) exit(1);
-  unlink(tpl);
-  unlink(tpl2);
-  if (fstat(fd, &st) != 0) exit(1);
-  if ((st.st_mode & 0777) != 0600) exit(1);
-  if (strcmp(tpl, "/tmp/test.XXXXXX") == 0) {
-        exit(1);
-  }
-  if (strcmp(tpl, tpl2) == 0) {
-        exit(1);
-  }
-  exit(0);
-}],
-libreplace_cv_HAVE_SECURE_MKSTEMP=yes,
-libreplace_cv_HAVE_SECURE_MKSTEMP=no,
-libreplace_cv_HAVE_SECURE_MKSTEMP=cross)])
-if test x"$libreplace_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
-    AC_DEFINE(HAVE_SECURE_MKSTEMP,1,[Whether mkstemp is secure])
-fi
-
-dnl Provided by snprintf.c:
-AC_CHECK_HEADERS(stdio.h strings.h)
-AC_CHECK_DECLS([snprintf, vsnprintf, asprintf, vasprintf])
-AC_CHECK_FUNCS(snprintf vsnprintf asprintf vasprintf)
-
-AC_CACHE_CHECK([for C99 vsnprintf],libreplace_cv_HAVE_C99_VSNPRINTF,[
-AC_TRY_RUN([
-#include <sys/types.h>
-#include <stdio.h>
-#include <stdarg.h>
-#include <stdlib.h>
-void foo(const char *format, ...) { 
-       va_list ap;
-       int len;
-       char buf[20];
-       long long l = 1234567890;
-       l *= 100;
-
-       va_start(ap, format);
-       len = vsnprintf(buf, 0, format, ap);
-       va_end(ap);
-       if (len != 5) exit(1);
-
-       va_start(ap, format);
-       len = vsnprintf(0, 0, format, ap);
-       va_end(ap);
-       if (len != 5) exit(2);
-
-       if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(3);
-
-       if (snprintf(buf, 20, "%lld", l) != 12 || strcmp(buf, "123456789000") != 0) exit(4);
-       if (snprintf(buf, 20, "%zu", 123456789) != 9 || strcmp(buf, "123456789") != 0) exit(5);
-       if (snprintf(buf, 20, "%2\$d %1\$d", 3, 4) != 3 || strcmp(buf, "4 3") != 0) exit(6);
-       if (snprintf(buf, 20, "%s", 0) < 3) exit(7);
-
-       exit(0);
-}
-main() { foo("hello"); }
-],
-libreplace_cv_HAVE_C99_VSNPRINTF=yes,libreplace_cv_HAVE_C99_VSNPRINTF=no,libreplace_cv_HAVE_C99_VSNPRINTF=cross)])
-if test x"$libreplace_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
-    AC_DEFINE(HAVE_C99_VSNPRINTF,1,[Whether there is a C99 compliant vsnprintf])
-fi
-
-
-dnl VA_COPY
-AC_CACHE_CHECK([for va_copy],libreplace_cv_HAVE_VA_COPY,[
-AC_TRY_LINK([#include <stdarg.h>
-va_list ap1,ap2;], [va_copy(ap1,ap2);],
-libreplace_cv_HAVE_VA_COPY=yes,libreplace_cv_HAVE_VA_COPY=no)])
-if test x"$libreplace_cv_HAVE_VA_COPY" = x"yes"; then
-    AC_DEFINE(HAVE_VA_COPY,1,[Whether va_copy() is available])
-fi
-
-if test x"$libreplace_cv_HAVE_VA_COPY" != x"yes"; then
-AC_CACHE_CHECK([for __va_copy],libreplace_cv_HAVE___VA_COPY,[
-AC_TRY_LINK([#include <stdarg.h>
-va_list ap1,ap2;], [__va_copy(ap1,ap2);],
-libreplace_cv_HAVE___VA_COPY=yes,libreplace_cv_HAVE___VA_COPY=no)])
-if test x"$libreplace_cv_HAVE___VA_COPY" = x"yes"; then
-    AC_DEFINE(HAVE___VA_COPY,1,[Whether __va_copy() is available])
-fi
-fi
-
-dnl __FUNCTION__ macro
-AC_CACHE_CHECK([for __FUNCTION__ macro],libreplace_cv_HAVE_FUNCTION_MACRO,[
-AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FUNCTION__);],
-libreplace_cv_HAVE_FUNCTION_MACRO=yes,libreplace_cv_HAVE_FUNCTION_MACRO=no)])
-if test x"$libreplace_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
-    AC_DEFINE(HAVE_FUNCTION_MACRO,1,[Whether there is a __FUNCTION__ macro])
-else
-    dnl __func__ macro
-    AC_CACHE_CHECK([for __func__ macro],libreplace_cv_HAVE_func_MACRO,[
-    AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __func__);],
-    libreplace_cv_HAVE_func_MACRO=yes,libreplace_cv_HAVE_func_MACRO=no)])
-    if test x"$libreplace_cv_HAVE_func_MACRO" = x"yes"; then
-       AC_DEFINE(HAVE_func_MACRO,1,[Whether there is a __func__ macro])
-    fi
-fi
-
-AC_CHECK_HEADERS([sys/param.h limits.h])
-
-AC_CHECK_TYPE(comparison_fn_t, 
-[AC_DEFINE(HAVE_COMPARISON_FN_T, 1,[Whether or not we have comparison_fn_t])])
-
-AC_HAVE_DECL(setenv, [#include <stdlib.h>])
-AC_CHECK_FUNCS(setenv unsetenv)
-AC_HAVE_DECL(environ, [#include <unistd.h>])
-
-AC_CHECK_FUNCS(strnlen)
-AC_CHECK_FUNCS(strtoull __strtoull strtouq strtoll __strtoll strtoq)
-
-AC_CHECK_FUNCS(memmem)
-
-# this test disabled as we don't actually need __VA_ARGS__ yet
-AC_TRY_CPP([
-#define eprintf(...) fprintf(stderr, __VA_ARGS__)
-eprintf("bla", "bar");
-], AC_DEFINE(HAVE__VA_ARGS__MACRO, 1, [Whether the __VA_ARGS__ macro is available]))
-
-
-AC_CACHE_CHECK([for sig_atomic_t type],libreplace_cv_sig_atomic_t, [
-    AC_TRY_COMPILE([
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-#include <signal.h>],[sig_atomic_t i = 0],
-       libreplace_cv_sig_atomic_t=yes,libreplace_cv_sig_atomic_t=no)])
-if test x"$libreplace_cv_sig_atomic_t" = x"yes"; then
-   AC_DEFINE(HAVE_SIG_ATOMIC_T_TYPE,1,[Whether we have the atomic_t variable type])
-fi
-
-
-dnl Check if the C compiler understands volatile (it should, being ANSI).
-AC_CACHE_CHECK([that the C compiler understands volatile],libreplace_cv_volatile, [
-       AC_TRY_COMPILE([#include <sys/types.h>],[volatile int i = 0],
-               libreplace_cv_volatile=yes,libreplace_cv_volatile=no)])
-if test x"$libreplace_cv_volatile" = x"yes"; then
-       AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile])
-fi
-
-m4_include(system/config.m4)
-
-AC_CACHE_CHECK([for O_DIRECT flag to open(2)],libreplace_cv_HAVE_OPEN_O_DIRECT,[
-AC_TRY_COMPILE([
-#include <unistd.h>
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif],
-[int fd = open("/dev/null", O_DIRECT);],
-libreplace_cv_HAVE_OPEN_O_DIRECT=yes,libreplace_cv_HAVE_OPEN_O_DIRECT=no)])
-if test x"$libreplace_cv_HAVE_OPEN_O_DIRECT" = x"yes"; then
-    AC_DEFINE(HAVE_OPEN_O_DIRECT,1,[Whether the open(2) accepts O_DIRECT])
-fi
-
-m4_include(dlfcn.m4)
-m4_include(strptime.m4)
-m4_include(win32.m4)
-m4_include(timegm.m4)
-m4_include(repdir.m4)
-m4_include(crypt.m4)
-
-if test x$libreplace_cv_have_clock_gettime = xyes ; then
-       SMB_CHECK_CLOCK_ID(CLOCK_MONOTONIC)
-       SMB_CHECK_CLOCK_ID(CLOCK_PROCESS_CPUTIME_ID)
-       SMB_CHECK_CLOCK_ID(CLOCK_REALTIME)
-fi
-
-AC_CACHE_CHECK([for struct timespec type],libreplace_cv_struct_timespec, [
-    AC_TRY_COMPILE([
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
-#endif
-],[struct timespec ts;],
-       libreplace_cv_struct_timespec=yes,libreplace_cv_struct_timespec=no)])
-if test x"$libreplace_cv_struct_timespec" = x"yes"; then
-   AC_DEFINE(HAVE_STRUCT_TIMESPEC,1,[Whether we have struct timespec])
-fi
-
-AC_CACHE_CHECK([for ucontext_t type],libreplace_cv_ucontext_t, [
-    AC_TRY_COMPILE([
-#include <signal.h>
-#if HAVE_SYS_UCONTEXT_H
-#include <sys/ucontext.h>
-# endif
-],[ucontext_t uc; sigaddset(&uc.uc_sigmask, SIGUSR1);],
-       libreplace_cv_ucontext_t=yes,libreplace_cv_ucontext_t=no)])
-if test x"$libreplace_cv_ucontext_t" = x"yes"; then
-   AC_DEFINE(HAVE_UCONTEXT_T,1,[Whether we have ucontext_t])
-fi
-
-AC_CHECK_FUNCS([printf memset memcpy],,[AC_MSG_ERROR([Required function not found])])
-
-echo "LIBREPLACE_BROKEN_CHECKS: END"
-]) dnl end AC_LIBREPLACE_BROKEN_CHECKS
-
-AC_DEFUN_ONCE(AC__LIBREPLACE_ALL_CHECKS_START,
-[
-#LIBREPLACE_ALL_CHECKS: START"
-])
-AC_DEFUN_ONCE(AC__LIBREPLACE_ALL_CHECKS_END,
-[
-#LIBREPLACE_ALL_CHECKS: END"
-])
-m4_define(AC_LIBREPLACE_ALL_CHECKS,
-[
-AC__LIBREPLACE_ALL_CHECKS_START
-AC_LIBREPLACE_LOCATION_CHECKS
-AC_LIBREPLACE_CC_CHECKS
-AC_LIBREPLACE_BROKEN_CHECKS
-AC__LIBREPLACE_ALL_CHECKS_END
-CFLAGS="$CFLAGS -I$libreplacedir"
-])
-
-m4_include(libreplace_cc.m4)
-m4_include(libreplace_ld.m4)
-m4_include(libreplace_network.m4)
-m4_include(libreplace_macros.m4)
-
-
-dnl SMB_CHECK_CLOCK_ID(clockid)
-dnl Test whether the specified clock_gettime clock ID is available. If it
-dnl is, we define HAVE_clockid
-AC_DEFUN([SMB_CHECK_CLOCK_ID],
-[
-    AC_MSG_CHECKING(for $1)
-    AC_TRY_LINK([
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
-#endif
-    ],
-    [
-clockid_t clk = $1;
-    ],
-    [
-       AC_MSG_RESULT(yes)
-       AC_DEFINE(HAVE_$1, 1,
-           [Whether the clock_gettime clock ID $1 is available])
-    ],
-    [
-       AC_MSG_RESULT(no)
-    ])
-])
-m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],[m4_include(autoconf-2.60.m4)])
diff --git a/lib/replace/libreplace_cc.m4 b/lib/replace/libreplace_cc.m4
deleted file mode 100644 (file)
index 50cb735..0000000
+++ /dev/null
@@ -1,197 +0,0 @@
-
-AC_DEFUN_ONCE(AC__LIBREPLACE_ONLY_CC_CHECKS_START,
-[
-echo "LIBREPLACE_CC_CHECKS: START"
-])
-
-AC_DEFUN_ONCE(AC__LIBREPLACE_ONLY_CC_CHECKS_END,
-[
-echo "LIBREPLACE_CC_CHECKS: END"
-])
-
-dnl
-dnl
-dnl AC_LIBREPLACE_CC_CHECKS
-dnl
-dnl Note: we need to use m4_define instead of AC_DEFUN because
-dnl       of the ordering of tests
-dnl       
-dnl 
-m4_define(AC_LIBREPLACE_CC_CHECKS,
-[
-AC__LIBREPLACE_ONLY_CC_CHECKS_START
-
-dnl stop the C89 attempt by autoconf - if autoconf detects -Ae it will enable it
-dnl which conflicts with C99 on HPUX
-ac_cv_prog_cc_Ae=no
-
-savedCFLAGS=$CFLAGS
-AC_PROG_CC
-CFLAGS=$savedCFLAGS
-
-dnl don't try for C99 if we are using gcc, as otherwise we 
-dnl lose immediate structure constants
-if test x"$GCC" != x"yes" ; then
-AC_PROG_CC_C99
-fi
-
-if test x"$GCC" = x"yes" ; then
-       AC_MSG_CHECKING([for version of gcc])
-       GCC_VERSION=`$CC -dumpversion`
-       AC_MSG_RESULT(${GCC_VERSION})
-fi
-AC_USE_SYSTEM_EXTENSIONS
-AC_C_BIGENDIAN
-AC_C_INLINE
-LIBREPLACE_C99_STRUCT_INIT([],[AC_MSG_WARN([c99 structure initializer are not supported])])
-
-AC_PROG_INSTALL
-
-AC_ISC_POSIX
-AC_N_DEFINE(_XOPEN_SOURCE_EXTENDED)
-
-AC_MSG_CHECKING(checking getconf LFS_CFLAGS for large file support flags)
-LFS_CFLAGS=`(getconf LFS_CFLAGS) 2>/dev/null` || LFS_CFLAGS=""
-
-AC_MSG_RESULT(${LFS_CFLAGS})
-if test "x$LFS_CFLAGS" != 'x-1' || test "x$LFS_CFLAGS" != "xundefined"; then
-   CFLAGS="$CFLAGS $LFS_CFLAGS"
-fi
-
-AC_SYS_LARGEFILE
-
-dnl Add #include for broken IRIX header files
-case "$host_os" in
-       *irix6*) AC_ADD_INCLUDE(<standards.h>)
-               AC_N_DEFINE(_XOPEN_SOURCE,600)
-               AC_N_DEFINE(_BSD_TYPES)
-               ;;
-       *hpux*)
-               # mmap on HPUX is completely broken...
-               AC_DEFINE(MMAP_BLACKLIST, 1, [Whether MMAP is broken])
-               if test "`uname -r`" = "B.11.00" -o "`uname -r`" = "B.11.11"; then
-                       AC_MSG_WARN([Enabling HPUX 11.00/11.11 header bug workaround])
-                       CFLAGS="$CFLAGS -Dpread=pread64 -Dpwrite=pwrite64"
-               fi
-               if test "`uname -r`" = "B.11.23"; then
-                       AC_MSG_WARN([Enabling HPUX 11.23 machine/sys/getppdp.h bug workaround])
-                       CFLAGS="$CFLAGS -D_MACHINE_SYS_GETPPDP_INCLUDED"
-               fi
-               ;;
-       *aix*)
-               AC_DEFINE(BROKEN_STRNDUP, 1, [Whether strndup is broken])
-               AC_DEFINE(BROKEN_STRNLEN, 1, [Whether strnlen is broken])
-               if test "${GCC}" != "yes"; then
-                       ## for funky AIX compiler using strncpy()
-                       CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
-               fi
-               ;;
-       *osf*)
-               # this brings in socklen_t
-               AC_N_DEFINE(_XOPEN_SOURCE,600)
-               AC_N_DEFINE(_OSF_SOURCE)
-               ;;
-       #
-       # VOS may need to have POSIX support and System V compatibility enabled.
-       #
-       *vos*)
-               case "$CFLAGS" in
-                       *-D_POSIX_C_SOURCE*);;
-                       *)
-                               CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"
-                               AC_DEFINE(_POSIX_C_SOURCE, 200112L, [Whether to enable POSIX support])
-                               ;;
-               esac
-               case "$CFLAGS" in
-                       *-D_SYSV*|*-D_SVID_SOURCE*);;
-                       *)
-                               CFLAGS="$CFLAGS -D_SYSV"
-                               AC_DEFINE(_SYSV, 1, [Whether to enable System V compatibility])
-                               ;;
-               esac
-               ;;
-esac
-
-# Do not check for standards.h on darwin, we get nasty warnings on
-# OS/X Lion. Probably a positive-list of OS'es like IRIX and AIX
-# would be the better choice, but this seems to work fine
-
-case "$host_os" in
-     *darwin*)
-       ;;
-     *)
-        AC_CHECK_HEADERS([standards.h])
-       ;;
-esac
-
-# Solaris needs HAVE_LONG_LONG defined
-AC_CHECK_TYPES(long long)
-
-AC_CHECK_SIZEOF(int)
-AC_CHECK_SIZEOF(char)
-AC_CHECK_SIZEOF(short)
-AC_CHECK_SIZEOF(long)
-AC_CHECK_SIZEOF(long long)
-
-AC_CHECK_TYPE(int8_t, char)
-AC_CHECK_TYPE(uint8_t, unsigned char)
-AC_CHECK_TYPE(int16_t, short)
-AC_CHECK_TYPE(uint16_t, unsigned short)
-
-if test $ac_cv_sizeof_int -eq 4 ; then
-AC_CHECK_TYPE(int32_t, int)
-AC_CHECK_TYPE(uint32_t, unsigned int)
-elif test $ac_cv_size_long -eq 4 ; then
-AC_CHECK_TYPE(int32_t, long)
-AC_CHECK_TYPE(uint32_t, unsigned long)
-else
-AC_MSG_ERROR([LIBREPLACE no 32-bit type found])
-fi
-
-AC_CHECK_TYPE(int64_t, long long)
-AC_CHECK_TYPE(uint64_t, unsigned long long)
-
-AC_CHECK_TYPE(size_t, unsigned int)
-AC_CHECK_TYPE(ssize_t, int)
-
-AC_CHECK_SIZEOF(off_t)
-AC_CHECK_SIZEOF(size_t)
-AC_CHECK_SIZEOF(ssize_t)
-
-AC_CHECK_TYPES([intptr_t, uintptr_t, ptrdiff_t])
-
-if test x"$ac_cv_type_long_long" != x"yes";then
-       AC_MSG_ERROR([LIBREPLACE needs type 'long long'])
-fi
-if test $ac_cv_sizeof_long_long -lt 8;then
-       AC_MSG_ERROR([LIBREPLACE needs sizeof(long long) >= 8])
-fi
-
-############################################
-# check if the compiler can do immediate structures
-AC_SUBST(libreplace_cv_immediate_structures)
-AC_CACHE_CHECK([for immediate structures],libreplace_cv_immediate_structures,[
-       AC_TRY_COMPILE([
-               #include <stdio.h>
-       ],[
-               typedef struct {unsigned x;} FOOBAR;
-               #define X_FOOBAR(x) ((FOOBAR) { x })
-               #define FOO_ONE X_FOOBAR(1)
-               FOOBAR f = FOO_ONE;   
-               static const struct {
-                       FOOBAR y; 
-               } f2[] = {
-                       {FOO_ONE}
-               };
-               static const FOOBAR f3[] = {FOO_ONE};
-       ],
-       libreplace_cv_immediate_structures=yes,
-       libreplace_cv_immediate_structures=no,
-       libreplace_cv_immediate_structures=cross)
-])
-if test x"$libreplace_cv_immediate_structures" = x"yes"; then
-       AC_DEFINE(HAVE_IMMEDIATE_STRUCTURES,1,[Whether the compiler supports immediate structures])
-fi
-
-AC__LIBREPLACE_ONLY_CC_CHECKS_END
-]) dnl end AC_LIBREPLACE_CC_CHECKS
diff --git a/lib/replace/libreplace_ld.m4 b/lib/replace/libreplace_ld.m4
deleted file mode 100644 (file)
index bf0df61..0000000
+++ /dev/null
@@ -1,337 +0,0 @@
-#
-# This offers a nice overview how to build shared libraries on all platforms
-#        http://www.fortran-2000.com/ArnaudRecipes/sharedlib.html
-#
-
-AC_DEFUN([AC_LIBREPLACE_STLD],
-[
-       AC_PATH_PROG(PROG_AR, ar)
-
-       STLD=${PROG_AR}
-
-       AC_SUBST(STLD)
-])
-
-AC_DEFUN([AC_LIBREPLACE_STLD_FLAGS],
-[
-       STLD_FLAGS="-rcs"
-       AC_SUBST(STLD_FLAGS)
-])
-
-AC_DEFUN([AC_LD_EXPORT_DYNAMIC],
-[
-saved_LDFLAGS="$LDFLAGS"
-if AC_TRY_COMMAND([${CC-cc} $CFLAGS -Wl,--version 2>&1 | grep "GNU ld" >/dev/null]); then
-       LD_EXPORT_DYNAMIC="-Wl,-export-dynamic"
-else
-       case "$host_os" in
-               hpux* )
-                 LD_EXPORT_DYNAMIC="-Wl,-E"
-                 ;;
-               *)
-                 LD_EXPORT_DYNAMIC=""
-                 ;;
-         esac
-fi
-AC_SUBST(LD_EXPORT_DYNAMIC)
-LDFLAGS="$saved_LDFLAGS"
-])
-
-AC_DEFUN([AC_LD_PICFLAG],
-[
-case "$host_os" in
-       *linux*|*gnu*)
-               PICFLAG="-fPIC" 
-               ;;
-       *solaris*)
-               if test "${GCC}" = "yes"; then
-                       PICFLAG="-fPIC"
-               else
-                       PICFLAG="-KPIC"
-               fi
-               ;;
-       *sunos*)
-               PICFLAG="-KPIC"   # Is this correct for SunOS
-               ;;
-       *netbsd* | *freebsd* | *dragonfly* )  
-               PICFLAG="-fPIC -DPIC"
-               ;;
-       *openbsd*)
-               PICFLAG="-fPIC"
-               ;;
-       *irix*)
-               if test "${GCC}" = "yes"; then
-                       PICFLAG="-fPIC"
-               else 
-                       PICFLAG="-KPIC"
-               fi
-               ;;
-       *aix*)
-               # as AIX code is always position independent...
-               PICFLAG="-O2"
-               ;;
-       *hpux*)
-               if test "${GCC}" = "yes"; then
-                       PICFLAG="-fPIC"
-               elif test "$host_cpu" = "ia64"; then
-                       PICFLAG="+z"
-               elif test $ac_cv_prog_cc_Ae = yes; then
-                       PICFLAG="+z +ESnolit"
-               fi
-               ;;
-       *osf*)
-               PICFLAG="-fPIC"
-               ;;
-       *unixware*)
-               PICFLAG="-KPIC"
-               ;;
-       *darwin*)
-               PICFLAG="-fno-common"
-               ;;
-esac
-AC_SUBST(PICFLAG)
-])
-
-AC_DEFUN([AC_LIBREPLACE_LD_SHLIB_LINKER],
-[
-       LD_SHLIB_LINKER="${CC}"
-
-       case "$host_os" in
-               *irix*)
-                       LD_SHLIB_LINKER="${PROG_LD}"
-                       ;;
-       esac
-
-       AC_SUBST(LD_SHLIB_LINKER)
-])
-
-AC_DEFUN([AC_LIBREPLACE_LD_SHLIB_FLAGS],
-[
-       LD_SHLIB_FLAGS="-shared"
-
-       case "$host_os" in
-               *linux*|*gnu*)
-                       LD_SHLIB_FLAGS="-shared -Wl,-Bsymbolic"
-                       ;;
-               *solaris*)
-                       LD_SHLIB_FLAGS="-G"
-                       if test "${GCC}" = "no"; then
-                               ## ${CFLAGS} added for building 64-bit shared 
-                               ## libs using Sun's Compiler
-                               LD_SHLIB_FLAGS="-G \${CFLAGS}"
-                       fi
-                       ;;
-               *sunos*)
-                       LD_SHLIB_FLAGS="-G"
-                       ;;
-               *irix*)
-                       LD_SHLIB_FLAGS="-shared"
-                       ;;
-               *aix*)
-                       LD_SHLIB_FLAGS="-Wl,-G,-bexpall,-bbigtoc"
-                       ;;
-               *hpux*)
-                       if test "${GCC}" = "yes"; then
-                               LD_SHLIB_FLAGS="-shared"
-                       else
-                               LD_SHLIB_FLAGS="-b"
-                       fi
-                       ;;
-               *osf*)
-                       LD_SHLIB_FLAGS="-shared"
-                       ;;
-               *darwin*)
-                       LD_SHLIB_FLAGS="-dynamiclib -Wl,-search_paths_first"
-                       ;;
-       esac
-
-       AC_SUBST(LD_SHLIB_FLAGS)
-])
-
-AC_DEFUN([AC_LIBREPLACE_LD_SHLIB_DISALLOW_UNDEF_FLAG],
-[
-       LD_SHLIB_DISALLOW_UNDEF_FLAG=""
-
-       #
-       # TODO: enforce error not only warnings
-       #
-       # NOTE: -Wl,--no-allow-shlib-undefined isn't what we want...
-       #       as it bails out on broken system libraries
-       #
-       case "$host_os" in
-               *osf*)
-                       LD_SHLIB_DISALLOW_UNDEF_FLAG="-warning_unresolved"
-                       ;;
-               *darwin*)
-                       LD_SHLIB_DISALLOW_UNDEF_FLAG="-undefined error"
-                       ;;
-       esac
-
-       AC_SUBST(LD_SHLIB_DISALLOW_UNDEF_FLAG)
-])
-
-AC_DEFUN([AC_LIBREPLACE_SHLD],
-[
-       AC_REQUIRE([AC_LIBREPLACE_LD_SHLIB_LINKER])
-       SHLD="$LD_SHLIB_LINKER"
-       AC_SUBST(SHLD)
-])
-
-AC_DEFUN([AC_LIBREPLACE_SHLD_FLAGS],
-[
-       AC_REQUIRE([AC_LIBREPLACE_LD_SHLIB_FLAGS])
-       AC_REQUIRE([AC_LIBREPLACE_LD_SHLIB_DISALLOW_UNDEF_FLAG])
-       SHLD_FLAGS="$LD_SHLIB_FLAGS $LD_SHLIB_DISALLOW_UNDEF_FLAG"
-       AC_SUBST(SHLD_FLAGS)
-])
-
-AC_DEFUN([AC_LD_SHLIBEXT],
-[
-       SHLIBEXT="so"
-       case "$host_os" in
-               *hpux*)
-                       if test "$host_cpu" = "ia64"; then
-                               SHLIBEXT="so"
-                       else
-                               SHLIBEXT="sl"
-                       fi
-               ;;
-               *darwin*)
-                       SHLIBEXT="dylib"
-               ;;
-       esac
-       AC_SUBST(SHLIBEXT)
-])
-
-AC_DEFUN([AC_LD_SONAMEFLAG],
-[
-       AC_SUBST(SONAMEFLAG)
-       SONAMEFLAG=""
-       case "$host_os" in 
-               *linux*|*gnu*|*qnx*)
-                       SONAMEFLAG="-Wl,-soname="
-                       ;;
-               *solaris*)
-                       SONAMEFLAG="-h "
-                       if test "${GCC}" = "yes"; then
-                               SONAMEFLAG="-Wl,-soname="
-                       fi
-                       ;;
-               *sunos*)
-                       SONAMEFLAG="-Wl,-h,"
-                       ;;
-               *netbsd* | *freebsd* | *dragonfly* )
-                       SONAMEFLAG="-Wl,-soname,"
-                       ;;
-               *openbsd*)
-                       SONAMEFLAG="-Wl,-soname,"
-                       ;;
-               *irix*)
-                       SONAMEFLAG="-Wl,-soname,"
-                       ;;
-               *hpux*)
-                       SONAMEFLAG="-Wl,+h,"
-                       ;;
-               *osf*)
-                       SONAMEFLAG="-Wl,-soname,"
-                       ;;
-               *unixware*)
-                       SONAMEFLAG="-Wl,-soname,"
-                       ;;
-               *darwin*)
-                       SONAMEFLAG="#"
-                       ;;
-               *aix*)
-                       # Not supported
-                       SONAMEFLAG="#"
-                       ;;
-               esac
-])
-
-AC_DEFUN([AC_LD_VERSIONSCRIPT],
-[
-       AC_SUBST(VERSIONSCRIPT)
-       VERSIONSCRIPT=""
-       case "$host_os" in 
-               *linux*|*gnu*)
-                       VERSIONSCRIPT="-Wl,--version-script"
-                       ;;
-               *solaris*)
-                       if test "${GCC}" = "yes"; then
-                               VERSIONSCRIPT="-Wl,--version-script"
-                       fi
-                       ;;
-               esac
-])
-
-AC_DEFUN([AC_LIBREPLACE_MDLD],
-[
-       AC_REQUIRE([AC_LIBREPLACE_LD_SHLIB_LINKER])
-       MDLD="$LD_SHLIB_LINKER"
-       AC_SUBST(MDLD)
-])
-
-AC_DEFUN([AC_LIBREPLACE_LD_SHLIB_ALLOW_UNDEF_FLAG],
-[
-       LD_ALLOW_SHLIB_UNDEF_FLAG=""
-
-       case "$host_os" in
-               *linux*|*gnu*)
-                       LD_SHLIB_ALLOW_UNDEF_FLAG="-Wl,--allow-shlib-undefined"
-                       ;;
-               *osf*)
-                       LD_SHLIB_ALLOW_UNDEF_FLAG="-Wl,-expect_unresolved,\"*\""
-                       ;;
-               *darwin*)
-                       LD_SHLIB_ALLOW_UNDEF_FLAG="-undefined dynamic_lookup"
-                       ;;
-               *aix*)
-                       LD_SHLIB_ALLOW_UNDEF_FLAG="-Wl,-bnoentry"
-                       ;;
-       esac
-
-       AC_SUBST(LD_SHLIB_ALLOW_UNDEF_FLAG)
-])
-
-AC_DEFUN([AC_LIBREPLACE_MDLD_FLAGS],
-[
-       AC_REQUIRE([AC_LIBREPLACE_LD_SHLIB_FLAGS])
-       AC_REQUIRE([AC_LIBREPLACE_LD_SHLIB_ALLOW_UNDEF_FLAG])
-       MDLD_FLAGS="$LD_SHLIB_FLAGS $LD_SHLIB_ALLOW_UNDEF_FLAG"
-       AC_SUBST(MDLD_FLAGS)
-])
-
-AC_DEFUN([AC_LIBREPLACE_RUNTIME_LIB_PATH_VAR],
-[
-       case "$host_os" in
-               *linux*|*gnu*)
-                       LIB_PATH_VAR=LD_LIBRARY_PATH
-               ;;
-               *bsd*)
-                       LIB_PATH_VAR=LD_LIBRARY_PATH
-               ;;
-               *solaris*)
-                       LIB_PATH_VAR=LD_LIBRARY_PATH
-               ;;
-               *hpux*)
-                       LIB_PATH_VAR=SHLIB_PATH
-               ;;
-               *osf*)
-                       LIB_PATH_VAR=LD_LIBRARY_PATH
-               ;;
-               *aix*)
-                       LIB_PATH_VAR=LIBPATH
-                       ;;
-               *irix*)
-                       LIB_PATH_VAR=LD_LIBRARY_PATH
-                       ;;
-               *darwin*)
-                       LIB_PATH_VAR=DYLD_LIBRARY_PATH
-                       ;;
-               *)
-                       LIB_PATH_VAR=LD_LIBRARY_PATH
-                       ;;
-       esac
-
-       AC_SUBST(LIB_PATH_VAR)
-])
diff --git a/lib/replace/libreplace_macros.m4 b/lib/replace/libreplace_macros.m4
deleted file mode 100644 (file)
index f3753c4..0000000
+++ /dev/null
@@ -1,347 +0,0 @@
-#
-# This is a collection of useful autoconf macros
-#
-
-############################################
-# Check if the compiler handles c99 struct initialization, and if not try -AC99 and -c99 flags
-# Usage: LIBREPLACE_C99_STRUCT_INIT(success-action,failure-action)
-# changes CFLAGS to add -AC99 or -c99 if needed
-AC_DEFUN([LIBREPLACE_C99_STRUCT_INIT],
-[
-saved_CFLAGS="$CFLAGS";
-c99_init=no
-if test x"$c99_init" = x"no"; then
-    AC_MSG_CHECKING(for C99 designated initializers)
-    CFLAGS="$saved_CFLAGS";
-    AC_TRY_COMPILE([#include <stdio.h>],
-     [ struct foo {int x;char y;};
-       struct foo bar = { .y = 'X', .x = 1 };   
-     ],
-     [AC_MSG_RESULT(yes); c99_init=yes],[AC_MSG_RESULT(no)])
-fi
-if test x"$c99_init" = x"no"; then
-    AC_MSG_CHECKING(for C99 designated initializers with -AC99)
-    CFLAGS="$saved_CFLAGS -AC99";
-    AC_TRY_COMPILE([#include <stdio.h>],
-     [ struct foo {int x;char y;};
-       struct foo bar = { .y = 'X', .x = 1 };   
-     ],
-     [AC_MSG_RESULT(yes); c99_init=yes],[AC_MSG_RESULT(no)])
-fi
-if test x"$c99_init" = x"no"; then
-    AC_MSG_CHECKING(for C99 designated initializers with -qlanglvl=extc99)
-    CFLAGS="$saved_CFLAGS -qlanglvl=extc99";
-    AC_TRY_COMPILE([#include <stdio.h>],
-     [ struct foo {int x;char y;};
-       struct foo bar = { .y = 'X', .x = 1 };   
-     ],
-     [AC_MSG_RESULT(yes); c99_init=yes],[AC_MSG_RESULT(no)])
-fi
-if test x"$c99_init" = x"no"; then
-    AC_MSG_CHECKING(for C99 designated initializers with -qlanglvl=stdc99)
-    CFLAGS="$saved_CFLAGS -qlanglvl=stdc99";
-    AC_TRY_COMPILE([#include <stdio.h>],
-     [ struct foo {int x;char y;};
-       struct foo bar = { .y = 'X', .x = 1 };   
-     ],
-     [AC_MSG_RESULT(yes); c99_init=yes],[AC_MSG_RESULT(no)])
-fi
-if test x"$c99_init" = x"no"; then
-    AC_MSG_CHECKING(for C99 designated initializers with -c99)
-    CFLAGS="$saved_CFLAGS -c99"
-    AC_TRY_COMPILE([#include <stdio.h>],
-     [ struct foo {int x;char y;};
-       struct foo bar = { .y = 'X', .x = 1 };   
-     ],
-     [AC_MSG_RESULT(yes); c99_init=yes],[AC_MSG_RESULT(no)])
-fi
-
-if test "`uname`" = "HP-UX"; then
-  if test "$ac_cv_c_compiler_gnu" = no; then
-       # special override for broken HP-UX compiler - I can't find a way to test
-       # this properly (its a compiler bug)
-       CFLAGS="$CFLAGS -AC99";
-       c99_init=yes;
-  fi
-fi
-
-if test x"$c99_init" = x"yes"; then
-    saved_CFLAGS=""
-    $1
-else
-    CFLAGS="$saved_CFLAGS"
-    saved_CFLAGS=""
-    $2
-fi
-])
-
-dnl AC_PROG_CC_FLAG(flag)
-AC_DEFUN(AC_PROG_CC_FLAG,
-[AC_CACHE_CHECK(whether ${CC-cc} accepts -$1, ac_cv_prog_cc_$1,
-[echo 'void f(){}' > conftest.c
-if test -z "`${CC-cc} -$1 -c conftest.c 2>&1`"; then
-  ac_cv_prog_cc_$1=yes
-else
-  ac_cv_prog_cc_$1=no
-fi
-rm -f conftest*
-])])
-
-dnl see if a declaration exists for a function or variable
-dnl defines HAVE_function_DECL if it exists
-dnl AC_HAVE_DECL(var, includes)
-AC_DEFUN(AC_HAVE_DECL,
-[
- AC_CACHE_CHECK([for $1 declaration],ac_cv_have_$1_decl,[
-    AC_TRY_COMPILE([$2],[int i = (int)$1],
-        ac_cv_have_$1_decl=yes,ac_cv_have_$1_decl=no)])
- if test x"$ac_cv_have_$1_decl" = x"yes"; then
-    AC_DEFINE([HAVE_]translit([$1], [a-z], [A-Z])[_DECL],1,[Whether $1() is available])
- fi
-])
-
-
-# AC_CHECK_LIB_EXT(LIBRARY, [EXT_LIBS], [FUNCTION],
-#              [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
-#              [ADD-ACTION-IF-FOUND],[OTHER-LIBRARIES])
-# ------------------------------------------------------
-#
-# Use a cache variable name containing both the library and function name,
-# because the test really is for library $1 defining function $3, not
-# just for library $1.  Separate tests with the same $1 and different $3s
-# may have different results.
-#
-# Note that using directly AS_VAR_PUSHDEF([ac_Lib], [ac_cv_lib_$1_$3])
-# is asking for trouble, since AC_CHECK_LIB($lib, fun) would give
-# ac_cv_lib_$lib_fun, which is definitely not what was meant.  Hence
-# the AS_LITERAL_IF indirection.
-#
-# FIXME: This macro is extremely suspicious.  It DEFINEs unconditionally,
-# whatever the FUNCTION, in addition to not being a *S macro.  Note
-# that the cache does depend upon the function we are looking for.
-#
-# It is on purpose we used `ac_check_lib_ext_save_LIBS' and not just
-# `ac_save_LIBS': there are many macros which don't want to see `LIBS'
-# changed but still want to use AC_CHECK_LIB_EXT, so they save `LIBS'.
-# And ``ac_save_LIBS' is too tempting a name, so let's leave them some
-# freedom.
-AC_DEFUN([AC_CHECK_LIB_EXT],
-[
-AH_CHECK_LIB_EXT([$1])
-ac_check_lib_ext_save_LIBS=$LIBS
-LIBS="-l$1 $$2 $7 $LIBS"
-AS_LITERAL_IF([$1],
-      [AS_VAR_PUSHDEF([ac_Lib_ext], [ac_cv_lib_ext_$1])],
-      [AS_VAR_PUSHDEF([ac_Lib_ext], [ac_cv_lib_ext_$1''])])dnl
-
-m4_ifval([$3],
- [
-    AH_CHECK_FUNC_EXT([$3])
-    AS_LITERAL_IF([$1],
-              [AS_VAR_PUSHDEF([ac_Lib_func], [ac_cv_lib_ext_$1_$3])],
-              [AS_VAR_PUSHDEF([ac_Lib_func], [ac_cv_lib_ext_$1''_$3])])dnl
-    AC_CACHE_CHECK([for $3 in -l$1], ac_Lib_func,
-       [AC_TRY_LINK_FUNC($3,
-                 [AS_VAR_SET(ac_Lib_func, yes);
-                 AS_VAR_SET(ac_Lib_ext, yes)],
-                 [AS_VAR_SET(ac_Lib_func, no);
-                 AS_VAR_SET(ac_Lib_ext, no)])
-       ])
-    AS_IF([test AS_VAR_GET(ac_Lib_func) = yes],
-        [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$3))])dnl
-    AS_VAR_POPDEF([ac_Lib_func])dnl
- ],[
-    AC_CACHE_CHECK([for -l$1], ac_Lib_ext,
-       [AC_TRY_LINK_FUNC([main],
-                 [AS_VAR_SET(ac_Lib_ext, yes)],
-                 [AS_VAR_SET(ac_Lib_ext, no)])
-       ])
- ])
-LIBS=$ac_check_lib_ext_save_LIBS
-
-AS_IF([test AS_VAR_GET(ac_Lib_ext) = yes],
-    [m4_default([$4], 
-        [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1))
-               case "$$2" in
-                   *-l$1*)
-                       ;;
-                   *)
-                       $2="-l$1 $$2"
-                       ;;
-               esac])
-               [$6]
-           ],
-           [$5])dnl
-AS_VAR_POPDEF([ac_Lib_ext])dnl
-])# AC_CHECK_LIB_EXT
-
-# AH_CHECK_LIB_EXT(LIBNAME)
-# ---------------------
-m4_define([AH_CHECK_LIB_EXT],
-[AH_TEMPLATE(AS_TR_CPP(HAVE_LIB$1),
-             [Define to 1 if you have the `]$1[' library (-l]$1[).])])
-
-dnl AC_SEARCH_LIBS_EXT(FUNCTION, SEARCH-LIBS, EXT_LIBS,
-dnl                    [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND],
-dnl                    [OTHER-LIBRARIES])
-dnl --------------------------------------------------------
-dnl Search for a library defining FUNC, if it's not already available.
-AC_DEFUN([AC_SEARCH_LIBS_EXT],
-[AC_CACHE_CHECK([for library containing $1], [ac_cv_search_ext_$1],
-[
-ac_func_search_ext_save_LIBS=$LIBS
-ac_cv_search_ext_$1=no
-AC_LINK_IFELSE([AC_LANG_CALL([], [$1])],
-              [ac_cv_search_ext_$1="none required"])
-if test "$ac_cv_search_ext_$1" = no; then
-  for ac_lib in $2; do
-    LIBS="-l$ac_lib $$3 $6 $ac_func_search_save_ext_LIBS"
-    AC_LINK_IFELSE([AC_LANG_CALL([], [$1])],
-                  [ac_cv_search_ext_$1="-l$ac_lib"
-break])
-  done
-fi
-LIBS=$ac_func_search_ext_save_LIBS])
-AS_IF([test "$ac_cv_search_ext_$1" != no],
-  [test "$ac_cv_search_ext_$1" = "none required" || $3="$ac_cv_search_ext_$1 $$3"
-  $4],
-      [$5])dnl
-])
-
-dnl check for a function in a $LIBS and $OTHER_LIBS libraries variable.
-dnl AC_CHECK_FUNC_EXT(func,OTHER_LIBS,IF-TRUE,IF-FALSE)
-AC_DEFUN([AC_CHECK_FUNC_EXT],
-[
-    AH_CHECK_FUNC_EXT($1)      
-    ac_check_func_ext_save_LIBS=$LIBS
-    LIBS="$2 $LIBS"
-    AS_VAR_PUSHDEF([ac_var], [ac_cv_func_ext_$1])dnl
-    AC_CACHE_CHECK([for $1], ac_var,
-       [AC_LINK_IFELSE([AC_LANG_FUNC_LINK_TRY([$1])],
-                [AS_VAR_SET(ac_var, yes)],
-                [AS_VAR_SET(ac_var, no)])])
-    LIBS=$ac_check_func_ext_save_LIBS
-    AS_IF([test AS_VAR_GET(ac_var) = yes], 
-           [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$1])) $3], 
-           [$4])dnl
-AS_VAR_POPDEF([ac_var])dnl
-])# AC_CHECK_FUNC
-
-# AH_CHECK_FUNC_EXT(FUNCNAME)
-# ---------------------
-m4_define([AH_CHECK_FUNC_EXT],
-[AH_TEMPLATE(AS_TR_CPP(HAVE_$1),
-             [Define to 1 if you have the `]$1[' function.])])
-
-dnl Define an AC_DEFINE with ifndef guard.
-dnl AC_N_DEFINE(VARIABLE [, VALUE])
-AC_DEFUN([AC_N_DEFINE],
-[
-AH_VERBATIM([$1], [
-#ifndef $1
-# undef $1
-#endif
-])
-
- cat >>confdefs.h <<\EOF
-#ifndef $1
-[#define] $1 m4_if($#, 1, 1, [$2])
-#endif
-EOF
-])
-
-dnl Add an #include
-dnl AC_ADD_INCLUDE(VARIABLE)
-define(AC_ADD_INCLUDE,
-[cat >> confdefs.h <<\EOF
-[#include] $1
-EOF
-])
-
-dnl remove an #include
-dnl AC_REMOVE_INCLUDE(VARIABLE)
-define(AC_REMOVE_INCLUDE,
-[
-grep -v '[#include] $1' confdefs.h >confdefs.h.tmp
-cat confdefs.h.tmp > confdefs.h
-rm confdefs.h.tmp
-])
-
-dnl remove an #define
-dnl AC_REMOVE_DEFINE(VARIABLE)
-define(AC_REMOVE_DEFINE,
-[
-grep -v '[#define] $1 ' confdefs.h |grep -v '[#define] $1[$]'>confdefs.h.tmp
-cat confdefs.h.tmp > confdefs.h
-rm confdefs.h.tmp
-])
-
-dnl AS_HELP_STRING is not available in autoconf 2.57, and AC_HELP_STRING is deprecated
-dnl in autoconf 2.59, so define AS_HELP_STRING to be AC_HELP_STRING unless it is already
-dnl defined.
-m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))])
-
-dnl check if the prototype in the header matches the given one
-dnl AC_VERIFY_C_PROTOTYPE(prototype,functionbody,[IF-TRUE].[IF-FALSE],[extraheaders])
-AC_DEFUN(AC_VERIFY_C_PROTOTYPE,
-[AC_CACHE_CHECK([for prototype $1], AS_TR_SH([ac_cv_c_prototype_$1]),
-       AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-               AC_INCLUDES_DEFAULT
-               $5
-               $1
-               {
-                       $2
-               }
-       ])],[
-               eval AS_TR_SH([ac_cv_c_prototype_$1])=yes
-       ],[
-               eval AS_TR_SH([ac_cv_c_prototype_$1])=no
-       ])
-)
-AS_IF([eval test $AS_TR_SH([ac_cv_c_prototype_$1]) = yes],[$3],[$4])
-])
-
-AC_DEFUN(LIBREPLACE_PROVIDE_HEADER, 
-[AC_CHECK_HEADER([$1], 
-               [ AC_CONFIG_COMMANDS(rm-$1, [rm -f $libreplacedir/$1], [libreplacedir=$libreplacedir]) ],
-               [ AC_CONFIG_COMMANDS(mk-$1, [echo "#include \"replace.h\"" > $libreplacedir/$1], [libreplacedir=$libreplacedir]) ]
-       )
-])
-
-dnl AC_HAVE_TYPE(TYPE,INCLUDES)
-AC_DEFUN([AC_HAVE_TYPE], [
-AC_REQUIRE([AC_HEADER_STDC])
-cv=`echo "$1" | sed 'y%./+- %__p__%'`
-AC_MSG_CHECKING(for $1)
-AC_CACHE_VAL([ac_cv_type_$cv],
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-AC_INCLUDES_DEFAULT
-$2]],
-[[$1 foo;]])],
-[eval "ac_cv_type_$cv=yes"],
-[eval "ac_cv_type_$cv=no"]))dnl
-ac_foo=`eval echo \\$ac_cv_type_$cv`
-AC_MSG_RESULT($ac_foo)
-if test "$ac_foo" = yes; then
-  ac_tr_hdr=HAVE_`echo $1 | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
-if false; then
-       AC_CHECK_TYPES($1)
-fi
-  AC_DEFINE_UNQUOTED($ac_tr_hdr, 1, [Define if you have type `$1'])
-fi
-])
-
-# AC_CHECK_VALUEOF(TYPE, [INCLUDES = DEFAULT-INCLUDES])
-# ---------------------------------------------------------------
-AC_DEFUN([AC_CHECK_VALUEOF],
-[AS_LITERAL_IF(m4_translit([[$1]], [*], [p]), [],
-              [m4_fatal([$0: requires literal arguments])])]dnl
-[
-_AC_CACHE_CHECK_INT([value of $1], [AS_TR_SH([ac_cv_valueof_$1])],
-  [(long int) ($1)],
-  [AC_INCLUDES_DEFAULT([$2])],
-  [])
-
-AC_DEFINE_UNQUOTED(AS_TR_CPP(valueof_$1), $AS_TR_SH([ac_cv_valueof_$1]),
-                  [The value of `$1'.])
-])# AC_CHECK_VALUEOF
diff --git a/lib/replace/libreplace_network.m4 b/lib/replace/libreplace_network.m4
deleted file mode 100644 (file)
index bb2a843..0000000
+++ /dev/null
@@ -1,503 +0,0 @@
-AC_DEFUN_ONCE(AC_LIBREPLACE_NETWORK_CHECKS,
-[
-echo "LIBREPLACE_NETWORK_CHECKS: START"
-
-AC_DEFINE(LIBREPLACE_NETWORK_CHECKS, 1, [LIBREPLACE_NETWORK_CHECKS were used])
-LIBREPLACE_NETWORK_OBJS=""
-LIBREPLACE_NETWORK_LIBS=""
-
-AC_CHECK_HEADERS(sys/socket.h netinet/in.h netdb.h arpa/inet.h)
-AC_CHECK_HEADERS(netinet/in_systm.h)
-AC_CHECK_HEADERS([netinet/ip.h], [], [],[
-       #include <sys/types.h>
-       #ifdef HAVE_NETINET_IN_H
-       #include <netinet/in.h>
-       #endif
-       #ifdef HAVE_NETINET_IN_SYSTM_H
-       #include <netinet/in_systm.h>
-       #endif
-])
-AC_CHECK_HEADERS(netinet/tcp.h netinet/in_ip.h)
-AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
-AC_CHECK_HEADERS(sys/uio.h)
-
-dnl we need to check that net/if.h really can be used, to cope with hpux
-dnl where including it always fails
-AC_CACHE_CHECK([for usable net/if.h],libreplace_cv_USABLE_NET_IF_H,[
-       AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-               AC_INCLUDES_DEFAULT
-               #if HAVE_SYS_SOCKET_H
-               # include <sys/socket.h>
-               #endif
-               #include <net/if.h>
-               int main(void) {return 0;}])],
-               [libreplace_cv_USABLE_NET_IF_H=yes],
-               [libreplace_cv_USABLE_NET_IF_H=no]
-       )
-])
-if test x"$libreplace_cv_USABLE_NET_IF_H" = x"yes";then
-       AC_DEFINE(HAVE_NET_IF_H, 1, usability of net/if.h)
-fi
-
-AC_HAVE_TYPE([socklen_t],[#include <sys/socket.h>])
-AC_HAVE_TYPE([sa_family_t],[#include <sys/socket.h>])
-AC_HAVE_TYPE([struct addrinfo], [#include <netdb.h>])
-AC_HAVE_TYPE([struct sockaddr], [#include <sys/socket.h>])
-AC_HAVE_TYPE([struct sockaddr_storage], [
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-])
-AC_HAVE_TYPE([struct sockaddr_in6], [
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-])
-
-if test x"$ac_cv_type_struct_sockaddr_storage" = x"yes"; then
-AC_CHECK_MEMBER(struct sockaddr_storage.ss_family,
-                AC_DEFINE(HAVE_SS_FAMILY, 1, [Defined if struct sockaddr_storage has ss_family field]),,
-                [
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-               ])
-
-if test x"$ac_cv_member_struct_sockaddr_storage_ss_family" != x"yes"; then
-AC_CHECK_MEMBER(struct sockaddr_storage.__ss_family,
-                AC_DEFINE(HAVE___SS_FAMILY, 1, [Defined if struct sockaddr_storage has __ss_family field]),,
-                [
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-               ])
-fi
-fi
-
-AC_CACHE_CHECK([for sin_len in sock],libreplace_cv_HAVE_SOCK_SIN_LEN,[
-       AC_TRY_COMPILE(
-               [
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-               ],[
-struct sockaddr_in sock; sock.sin_len = sizeof(sock);
-               ],[
-               libreplace_cv_HAVE_SOCK_SIN_LEN=yes
-               ],[
-               libreplace_cv_HAVE_SOCK_SIN_LEN=no
-               ])
-])
-if test x"$libreplace_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
-       AC_DEFINE(HAVE_SOCK_SIN_LEN,1,[Whether the sockaddr_in struct has a sin_len property])
-fi
-
-############################################
-# check for unix domain sockets
-AC_CACHE_CHECK([for unix domain sockets],libreplace_cv_HAVE_UNIXSOCKET,[
-       AC_TRY_COMPILE([
-#include <sys/types.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-               ],[
-struct sockaddr_un sunaddr;
-sunaddr.sun_family = AF_UNIX;
-               ],[
-               libreplace_cv_HAVE_UNIXSOCKET=yes
-               ],[
-               libreplace_cv_HAVE_UNIXSOCKET=no
-               ])
-])
-if test x"$libreplace_cv_HAVE_UNIXSOCKET" = x"yes"; then
-       AC_DEFINE(HAVE_UNIXSOCKET,1,[If we need to build with unixscoket support])
-fi
-
-dnl The following test is roughly taken from the cvs sources.
-dnl
-dnl If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
-dnl The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
-dnl libsocket.so which has a bad implementation of gethostbyname (it
-dnl only looks in /etc/hosts), so we only look for -lsocket if we need
-dnl it.
-AC_CHECK_FUNCS(connect)
-if test x"$ac_cv_func_connect" = x"no"; then
-       AC_CHECK_LIB_EXT(nsl_s, LIBREPLACE_NETWORK_LIBS, connect)
-       AC_CHECK_LIB_EXT(nsl, LIBREPLACE_NETWORK_LIBS, connect)
-       AC_CHECK_LIB_EXT(socket, LIBREPLACE_NETWORK_LIBS, connect)
-       AC_CHECK_LIB_EXT(inet, LIBREPLACE_NETWORK_LIBS, connect)
-       dnl We can't just call AC_CHECK_FUNCS(connect) here,
-       dnl because the value has been cached.
-       if test x"$ac_cv_lib_ext_nsl_s_connect" = x"yes" ||
-               test x"$ac_cv_lib_ext_nsl_connect" = x"yes" ||
-               test x"$ac_cv_lib_ext_socket_connect" = x"yes" ||
-               test x"$ac_cv_lib_ext_inet_connect" = x"yes"
-       then
-               AC_DEFINE(HAVE_CONNECT,1,[Whether the system has connect()])
-       fi
-fi
-
-AC_CHECK_FUNCS(gethostbyname)
-if test x"$ac_cv_func_gethostbyname" = x"no"; then
-       AC_CHECK_LIB_EXT(nsl_s, LIBREPLACE_NETWORK_LIBS, gethostbyname)
-       AC_CHECK_LIB_EXT(nsl, LIBREPLACE_NETWORK_LIBS, gethostbyname)
-       AC_CHECK_LIB_EXT(socket, LIBREPLACE_NETWORK_LIBS, gethostbyname)
-       dnl We can't just call AC_CHECK_FUNCS(gethostbyname) here,
-       dnl because the value has been cached.
-       if test x"$ac_cv_lib_ext_nsl_s_gethostbyname" = x"yes" ||
-               test x"$ac_cv_lib_ext_nsl_gethostbyname" = x"yes" ||
-               test x"$ac_cv_lib_ext_socket_gethostbyname" = x"yes"
-       then
-               AC_DEFINE(HAVE_GETHOSTBYNAME,1,
-                         [Whether the system has gethostbyname()])
-       fi
-fi
-
-dnl HP-UX has if_nametoindex in -lipv6
-AC_CHECK_FUNCS(if_nametoindex)
-if test x"$ac_cv_func_if_nametoindex" = x"no"; then
-       AC_CHECK_LIB_EXT(ipv6, LIBREPLACE_NETWORK_LIBS, if_nametoindex)
-       dnl We can't just call AC_CHECK_FUNCS(if_nametoindex) here,
-       dnl because the value has been cached.
-       if test x"$ac_cv_lib_ext_ipv6_if_nametoindex" = x"yes"
-       then
-               AC_DEFINE(HAVE_IF_NAMETOINDEX, 1,
-                         [Whether the system has if_nametoindex()])
-       fi
-fi
-
-# The following tests need LIBS="${LIBREPLACE_NETWORK_LIBS}"
-old_LIBS=$LIBS
-LIBS="${LIBREPLACE_NETWORK_LIBS}"
-libreplace_SAVE_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS -I$libreplacedir"
-
-AC_CHECK_FUNCS(socketpair,[],[LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/socketpair.o"])
-
-AC_CACHE_CHECK([for broken inet_ntoa],libreplace_cv_REPLACE_INET_NTOA,[
-AC_TRY_RUN([
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-main() { struct in_addr ip; ip.s_addr = 0x12345678;
-if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
-    strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
-exit(1);}],
-           libreplace_cv_REPLACE_INET_NTOA=yes,libreplace_cv_REPLACE_INET_NTOA=no,libreplace_cv_REPLACE_INET_NTOA=cross)])
-
-AC_CHECK_FUNCS(inet_ntoa,[],[libreplace_cv_REPLACE_INET_NTOA=yes])
-if test x"$libreplace_cv_REPLACE_INET_NTOA" = x"yes"; then
-    AC_DEFINE(REPLACE_INET_NTOA,1,[Whether inet_ntoa should be replaced])
-    LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/inet_ntoa.o"
-fi
-
-AC_CHECK_FUNCS(inet_aton,[],[LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/inet_aton.o"])
-
-AC_CHECK_FUNCS(inet_ntop,[],[LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/inet_ntop.o"])
-
-AC_CHECK_FUNCS(inet_pton,[],[LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/inet_pton.o"])
-
-dnl test for getaddrinfo/getnameinfo
-AC_CACHE_CHECK([for getaddrinfo],libreplace_cv_HAVE_GETADDRINFO,[
-AC_TRY_LINK([
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-#include <sys/socket.h>
-#include <netdb.h>],
-[
-struct sockaddr sa;
-struct addrinfo *ai = NULL;
-int ret = getaddrinfo(NULL, NULL, NULL, &ai);
-if (ret != 0) {
-       const char *es = gai_strerror(ret);
-}
-freeaddrinfo(ai);
-ret = getnameinfo(&sa, sizeof(sa),
-               NULL, 0,
-               NULL, 0, 0);
-
-],
-libreplace_cv_HAVE_GETADDRINFO=yes,libreplace_cv_HAVE_GETADDRINFO=no)])
-
-if test x"$libreplace_cv_HAVE_GETADDRINFO" = x"yes"; then
-       # getaddrinfo is broken on some AIX systems
-       # see bug 5910, use our replacements if we detect
-       # a broken system.
-       AC_TRY_RUN([
-               #include <stddef.h>
-               #include <sys/types.h>
-               #include <sys/socket.h>
-               #include <netdb.h>
-               int main(int argc, const char *argv[])
-               {
-                       struct addrinfo hints = {0,};
-                       struct addrinfo *ppres;
-                       const char hostname1[] = "0.0.0.0";
-                       const char hostname2[] = "127.0.0.1";
-                       const char hostname3[] = "::";
-                       hints.ai_socktype = SOCK_STREAM;
-                       hints.ai_family = AF_UNSPEC;
-                       hints.ai_flags =
-                               AI_NUMERICHOST|AI_PASSIVE|AI_ADDRCONFIG;
-                       /* Test for broken flag combination on AIX. */
-                       if (getaddrinfo(hostname1, NULL, &hints, &ppres) == EAI_BADFLAGS) {
-                               /* This fails on an IPv6-only box, but not with
-                                  the EAI_BADFLAGS error. */
-                               return 1;
-                       }
-                       if (getaddrinfo(hostname2, NULL, &hints, &ppres) == 0) {
-                               /* IPv4 lookup works - good enough. */
-                               return 0;
-                       }
-                       /* Uh-oh, no IPv4. Are we IPv6-only ? */
-                       return getaddrinfo(hostname3, NULL, &hints, &ppres) != 0 ? 1 : 0;
-               }],
-               libreplace_cv_HAVE_GETADDRINFO=yes,
-               libreplace_cv_HAVE_GETADDRINFO=no)
-fi
-
-if test x"$libreplace_cv_HAVE_GETADDRINFO" = x"yes"; then
-       AC_DEFINE(HAVE_GETADDRINFO,1,[Whether the system has getaddrinfo])
-       AC_DEFINE(HAVE_GETNAMEINFO,1,[Whether the system has getnameinfo])
-       AC_DEFINE(HAVE_FREEADDRINFO,1,[Whether the system has freeaddrinfo])
-       AC_DEFINE(HAVE_GAI_STRERROR,1,[Whether the system has gai_strerror])
-else
-       LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/getaddrinfo.o"
-fi
-
-AC_CHECK_HEADERS([ifaddrs.h])
-
-dnl Used when getifaddrs is not available
-AC_CHECK_MEMBERS([struct sockaddr.sa_len], 
-        [AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Whether struct sockaddr has a sa_len member])],
-        [],
-        [#include <sys/socket.h>])
-
-dnl test for getifaddrs and freeifaddrs
-AC_CACHE_CHECK([for getifaddrs and freeifaddrs],libreplace_cv_HAVE_GETIFADDRS,[
-AC_TRY_LINK([
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <ifaddrs.h>
-#include <netdb.h>],
-[
-struct ifaddrs *ifp = NULL;
-int ret = getifaddrs (&ifp);
-freeifaddrs(ifp);
-],
-libreplace_cv_HAVE_GETIFADDRS=yes,libreplace_cv_HAVE_GETIFADDRS=no)])
-if test x"$libreplace_cv_HAVE_GETIFADDRS" = x"yes"; then
-    AC_DEFINE(HAVE_GETIFADDRS,1,[Whether the system has getifaddrs])
-    AC_DEFINE(HAVE_FREEIFADDRS,1,[Whether the system has freeifaddrs])
-       AC_DEFINE(HAVE_STRUCT_IFADDRS,1,[Whether struct ifaddrs is available])
-fi
-
-##################
-# look for a method of finding the list of network interfaces
-iface=no;
-AC_CACHE_CHECK([for iface getifaddrs],libreplace_cv_HAVE_IFACE_GETIFADDRS,[
-AC_TRY_RUN([
-#define HAVE_IFACE_GETIFADDRS 1
-#define NO_CONFIG_H 1
-#define AUTOCONF_TEST 1
-#define SOCKET_WRAPPER_NOT_REPLACE
-#include "$libreplacedir/replace.c"
-#include "$libreplacedir/inet_ntop.c"
-#include "$libreplacedir/snprintf.c"
-#include "$libreplacedir/getifaddrs.c"
-#define getifaddrs_test main
-#include "$libreplacedir/test/getifaddrs.c"],
-           libreplace_cv_HAVE_IFACE_GETIFADDRS=yes,libreplace_cv_HAVE_IFACE_GETIFADDRS=no,libreplace_cv_HAVE_IFACE_GETIFADDRS=cross)])
-if test x"$libreplace_cv_HAVE_IFACE_GETIFADDRS" = x"yes"; then
-    iface=yes;AC_DEFINE(HAVE_IFACE_GETIFADDRS,1,[Whether iface getifaddrs is available])
-else
-       LIBREPLACE_NETWORK_OBJS="${LIBREPLACE_NETWORK_OBJS} $libreplacedir/getifaddrs.o"
-fi
-
-
-if test $iface = no; then
-AC_CACHE_CHECK([for iface AIX],libreplace_cv_HAVE_IFACE_AIX,[
-AC_TRY_RUN([
-#define HAVE_IFACE_AIX 1
-#define NO_CONFIG_H 1
-#define AUTOCONF_TEST 1
-#undef _XOPEN_SOURCE_EXTENDED
-#define SOCKET_WRAPPER_NOT_REPLACE
-#include "$libreplacedir/replace.c"
-#include "$libreplacedir/inet_ntop.c"
-#include "$libreplacedir/snprintf.c"
-#include "$libreplacedir/getifaddrs.c"
-#define getifaddrs_test main
-#include "$libreplacedir/test/getifaddrs.c"],
-           libreplace_cv_HAVE_IFACE_AIX=yes,libreplace_cv_HAVE_IFACE_AIX=no,libreplace_cv_HAVE_IFACE_AIX=cross)])
-if test x"$libreplace_cv_HAVE_IFACE_AIX" = x"yes"; then
-    iface=yes;AC_DEFINE(HAVE_IFACE_AIX,1,[Whether iface AIX is available])
-fi
-fi
-
-
-if test $iface = no; then
-AC_CACHE_CHECK([for iface ifconf],libreplace_cv_HAVE_IFACE_IFCONF,[
-AC_TRY_RUN([
-#define HAVE_IFACE_IFCONF 1
-#define NO_CONFIG_H 1
-#define AUTOCONF_TEST 1
-#define SOCKET_WRAPPER_NOT_REPLACE
-#include "$libreplacedir/replace.c"
-#include "$libreplacedir/inet_ntop.c"
-#include "$libreplacedir/snprintf.c"
-#include "$libreplacedir/getifaddrs.c"
-#define getifaddrs_test main
-#include "$libreplacedir/test/getifaddrs.c"],
-           libreplace_cv_HAVE_IFACE_IFCONF=yes,libreplace_cv_HAVE_IFACE_IFCONF=no,libreplace_cv_HAVE_IFACE_IFCONF=cross)])
-if test x"$libreplace_cv_HAVE_IFACE_IFCONF" = x"yes"; then
-    iface=yes;AC_DEFINE(HAVE_IFACE_IFCONF,1,[Whether iface ifconf is available])
-fi
-fi
-
-if test $iface = no; then
-AC_CACHE_CHECK([for iface ifreq],libreplace_cv_HAVE_IFACE_IFREQ,[
-AC_TRY_RUN([
-#define HAVE_IFACE_IFREQ 1
-#define NO_CONFIG_H 1
-#define AUTOCONF_TEST 1
-#define SOCKET_WRAPPER_NOT_REPLACE
-#include "$libreplacedir/replace.c"
-#include "$libreplacedir/inet_ntop.c"
-#include "$libreplacedir/snprintf.c"
-#include "$libreplacedir/getifaddrs.c"
-#define getifaddrs_test main
-#include "$libreplacedir/test/getifaddrs.c"],
-           libreplace_cv_HAVE_IFACE_IFREQ=yes,libreplace_cv_HAVE_IFACE_IFREQ=no,libreplace_cv_HAVE_IFACE_IFREQ=cross)])
-if test x"$libreplace_cv_HAVE_IFACE_IFREQ" = x"yes"; then
-    iface=yes;AC_DEFINE(HAVE_IFACE_IFREQ,1,[Whether iface ifreq is available])
-fi
-fi
-
-dnl Some old Linux systems have broken header files and
-dnl miss the IPV6_V6ONLY define in netinet/in.h,
-dnl but have it in linux/in6.h.
-dnl We can't include both files so we just check if the value
-dnl if defined and do the replacement in system/network.h
-AC_CACHE_CHECK([for IPV6_V6ONLY support],libreplace_cv_HAVE_IPV6_V6ONLY,[
-       AC_TRY_COMPILE([
-#include <stdlib.h> /* for NULL */
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <netdb.h>
-#include <netinet/in.h>
-               ],
-               [
-#ifndef IPV6_V6ONLY
-#error no IPV6_V6ONLY
-#endif
-               ],[
-               libreplace_cv_HAVE_IPV6_V6ONLY=yes
-               ],[
-               libreplace_cv_HAVE_IPV6_V6ONLY=no
-               ])
-])
-if test x"$libreplace_cv_HAVE_IPV6_V6ONLY" != x"yes"; then
-   dnl test for IPV6_V6ONLY
-   AC_CACHE_CHECK([for IPV6_V6ONLY in linux/in6.h],libreplace_cv_HAVE_LINUX_IPV6_V6ONLY_26,[
-       AC_TRY_COMPILE([
-       #include <linux/in6.h>
-               ],
-               [
-       #if (IPV6_V6ONLY != 26)
-       #error no linux IPV6_V6ONLY
-       #endif
-               ],[
-               libreplace_cv_HAVE_LINUX_IPV6_V6ONLY_26=yes
-               ],[
-               libreplace_cv_HAVE_LINUX_IPV6_V6ONLY_26=no
-               ])
-       ])
-       if test x"$libreplace_cv_HAVE_LINUX_IPV6_V6ONLY_26" = x"yes"; then
-               AC_DEFINE(HAVE_LINUX_IPV6_V6ONLY_26,1,[Whether the system has IPV6_V6ONLY in linux/in6.h])
-       fi
-fi
-
-dnl test for ipv6
-AC_CACHE_CHECK([for ipv6 support],libreplace_cv_HAVE_IPV6,[
-       AC_TRY_LINK([
-#include <stdlib.h> /* for NULL */
-#include <sys/socket.h>
-#include <sys/types.h>
-#include <netdb.h>
-#include <netinet/in.h>
-               ],
-               [
-struct sockaddr_storage sa_store;
-struct addrinfo *ai = NULL;
-struct in6_addr in6addr;
-int idx = if_nametoindex("iface1");
-int s = socket(AF_INET6, SOCK_STREAM, 0);
-int ret = getaddrinfo(NULL, NULL, NULL, &ai);
-if (ret != 0) {
-       const char *es = gai_strerror(ret);
-}
-freeaddrinfo(ai);
-{
-       int val = 1;
-       #ifdef HAVE_LINUX_IPV6_V6ONLY_26
-       #define IPV6_V6ONLY 26
-       #endif
-       ret = setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
-                        (const void *)&val, sizeof(val));
-}
-               ],[
-               libreplace_cv_HAVE_IPV6=yes
-               ],[
-               libreplace_cv_HAVE_IPV6=no
-               ])
-])
-if test x"$libreplace_cv_HAVE_IPV6" = x"yes"; then
-    AC_DEFINE(HAVE_IPV6,1,[Whether the system has IPv6 support])
-fi
-
-LIBS=$old_LIBS
-CPPFLAGS="$libreplace_SAVE_CPPFLAGS"
-
-AC_CACHE_CHECK([for SO_PEERCRED],libreplace_cv_HAVE_PEERCRED,[
-AC_TRY_COMPILE([#include <sys/types.h>
-#include <sys/socket.h>],
-[struct ucred cred;
- socklen_t cred_len;
- int ret = getsockopt(0, SOL_SOCKET, SO_PEERCRED, &cred, &cred_len);
-],
-libreplace_cv_HAVE_PEERCRED=yes,libreplace_cv_HAVE_PEERCRED=no,libreplace_cv_HAVE_PEERCRED=cross)])
-if test x"$libreplace_cv_HAVE_PEERCRED" = x"yes"; then
-    AC_DEFINE(HAVE_PEERCRED,1,[Whether we can use SO_PEERCRED to get socket credentials])
-fi
-
-AC_CACHE_CHECK([for getpeereid],libreplace_cv_HAVE_GETPEEREID,[
-AC_TRY_LINK([#include <sys/types.h>
-#include <unistd.h>],
-[uid_t uid; gid_t gid; int ret;
- ret = getpeereid(0, &uid, &gid);
-],
-libreplace_cv_HAVE_GETPEEREID=yes,libreplace_cv_HAVE_GETPEEREID=no)])
-if test x"$libreplace_cv_HAVE_GETPEEREID" = xyes; then
-   AC_DEFINE(HAVE_GETPEEREID,1,
-            [Whether we have getpeereid to get socket credentials])
-fi
-
-LIBREPLACEOBJ="${LIBREPLACEOBJ} ${LIBREPLACE_NETWORK_OBJS}"
-
-echo "LIBREPLACE_NETWORK_CHECKS: END"
-]) dnl end AC_LIBREPLACE_NETWORK_CHECKS
diff --git a/lib/replace/repdir.m4 b/lib/replace/repdir.m4
deleted file mode 100644 (file)
index 682ab44..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-AC_CACHE_CHECK([for broken readdir],libreplace_cv_READDIR_NEEDED,[
-       AC_TRY_RUN([
-#define test_readdir_os2_delete main
-#include "$libreplacedir/test/os2_delete.c"],
-       [libreplace_cv_READDIR_NEEDED=no],
-       [libreplace_cv_READDIR_NEEDED=yes],
-       [libreplace_cv_READDIR_NEEDED="assuming not"])
-])
-
-AC_CHECK_FUNCS(dirfd)
-AC_HAVE_DECL(dirfd, [#include <dirent.h>])
-
-#
-# try to replace with getdirentries() if needed
-#
-if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
-AC_CHECK_FUNCS(getdirentries)
-AC_VERIFY_C_PROTOTYPE([long telldir(const DIR *dir)],
-       [
-       return 0;
-       ],[
-       AC_DEFINE(TELLDIR_TAKES_CONST_DIR, 1, [Whether telldir takes a const pointer])
-       ],[],[
-       #include <dirent.h>
-       ])
-
-AC_VERIFY_C_PROTOTYPE([int seekdir(DIR *dir, long ofs)],
-       [
-       return 0;
-       ],[
-       AC_DEFINE(SEEKDIR_RETURNS_INT, 1, [Whether seekdir returns an int])
-       ],[],[
-       #include <dirent.h>
-       ])
-AC_CACHE_CHECK([for replacing readdir using getdirentries()],libreplace_cv_READDIR_GETDIRENTRIES,[
-       AC_TRY_RUN([
-#define _LIBREPLACE_REPLACE_H
-#include "$libreplacedir/repdir_getdirentries.c"
-#define test_readdir_os2_delete main
-#include "$libreplacedir/test/os2_delete.c"],
-       [libreplace_cv_READDIR_GETDIRENTRIES=yes],
-       [libreplace_cv_READDIR_GETDIRENTRIES=no])
-])
-fi
-if test x"$libreplace_cv_READDIR_GETDIRENTRIES" = x"yes"; then
-       AC_DEFINE(REPLACE_READDIR,1,[replace readdir])
-       AC_DEFINE(REPLACE_READDIR_GETDIRENTRIES,1,[replace readdir using getdirentries()])
-       LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/repdir_getdirentries.o"
-       libreplace_cv_READDIR_NEEDED=no
-fi
-
-#
-# try to replace with getdents() if needed
-#
-if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
-AC_CHECK_FUNCS(getdents)
-AC_CACHE_CHECK([for replacing readdir using getdents()],libreplace_cv_READDIR_GETDENTS,[
-       AC_TRY_RUN([
-#define _LIBREPLACE_REPLACE_H
-#error _donot_use_getdents_replacement_anymore
-#include "$libreplacedir/repdir_getdents.c"
-#define test_readdir_os2_delete main
-#include "$libreplacedir/test/os2_delete.c"],
-       [libreplace_cv_READDIR_GETDENTS=yes],
-       [libreplace_cv_READDIR_GETDENTS=no])
-])
-fi
-if test x"$libreplace_cv_READDIR_GETDENTS" = x"yes"; then
-       AC_DEFINE(REPLACE_READDIR,1,[replace readdir])
-       AC_DEFINE(REPLACE_READDIR_GETDENTS,1,[replace readdir using getdents()])
-       LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/repdir_getdents.o"
-       libreplace_cv_READDIR_NEEDED=no
-fi
-
-AC_MSG_CHECKING([a usable readdir()])
-if test x"$libreplace_cv_READDIR_NEEDED" = x"yes"; then
-       AC_MSG_RESULT(no)
-       AC_MSG_WARN([the provided readdir() is broken])
-else
-       AC_MSG_RESULT(yes)
-fi
diff --git a/lib/replace/strptime.m4 b/lib/replace/strptime.m4
deleted file mode 100644 (file)
index 8ac22f6..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-AC_CHECK_FUNCS(strptime)
-AC_CHECK_DECLS(strptime, [], [], [#include <time.h>])
-AC_CACHE_CHECK([whether strptime is available and works],libreplace_cv_STRPTIME_OK,[
-       AC_TRY_RUN([
-               #define LIBREPLACE_CONFIGURE_TEST_STRPTIME
-               #include "$libreplacedir/test/strptime.c"
-               ],
-               [libreplace_cv_STRPTIME_OK=yes],
-               [libreplace_cv_STRPTIME_OK=no],
-               [libreplace_cv_STRPTIME_OK="assuming not"])
-])
-if test x"$libreplace_cv_STRPTIME_OK" != x"yes"; then
-        LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/strptime.o"
-else
-        AC_DEFINE(HAVE_WORKING_STRPTIME,1,[Whether strptime is working correct])
-fi
diff --git a/lib/replace/system/config.m4 b/lib/replace/system/config.m4
deleted file mode 100644 (file)
index b7cdf14..0000000
+++ /dev/null
@@ -1,145 +0,0 @@
-# filesys
-AC_HEADER_DIRENT 
-AC_CHECK_HEADERS(fcntl.h sys/fcntl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h)
-AC_CHECK_HEADERS(sys/acl.h acl/libacl.h sys/file.h)
-
-# select
-AC_CHECK_HEADERS(sys/select.h)
-
-# poll
-AC_CHECK_HEADERS(poll.h)
-AC_CHECK_FUNCS(poll,[],[LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/poll.o"])
-
-# time
-AC_CHECK_HEADERS(sys/time.h utime.h)
-AC_HEADER_TIME
-AC_CHECK_FUNCS(utime utimes)
-
-AC_CACHE_CHECK([if gettimeofday takes TZ argument],libreplace_cv_HAVE_GETTIMEOFDAY_TZ,[
-AC_TRY_RUN([
-#include <sys/time.h>
-#include <unistd.h>
-main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}],
-           libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=no,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes)])
-if test x"$libreplace_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
-    AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available])
-fi
-
-# wait
-AC_HEADER_SYS_WAIT
-
-# capability
-AC_CHECK_HEADERS(sys/capability.h)
-
-case "$host_os" in
-*linux*)
-AC_CACHE_CHECK([for broken RedHat 7.2 system header files],libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS,[
-AC_TRY_COMPILE([
-       #ifdef HAVE_SYS_VFS_H
-       #include <sys/vfs.h>
-       #endif
-       #ifdef HAVE_SYS_CAPABILITY_H
-       #include <sys/capability.h>
-       #endif
-       ],[
-       int i;
-       ],
-       libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no,
-       libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
-)])
-if test x"$libreplace_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
-       AC_DEFINE(BROKEN_REDHAT_7_SYSTEM_HEADERS,1,[Broken RedHat 7.2 system header files])
-fi
-
-AC_CACHE_CHECK([for broken RHEL5 sys/capability.h],libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER,[
-AC_TRY_COMPILE([
-       #ifdef HAVE_SYS_CAPABILITY_H
-       #include <sys/capability.h>
-       #endif
-       #include <linux/types.h>
-       ],[
-       __s8 i;
-       ],
-       libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=no,
-       libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER=yes
-)])
-if test x"$libreplace_cv_BROKEN_RHEL5_SYS_CAP_HEADER" = x"yes"; then
-       AC_DEFINE(BROKEN_RHEL5_SYS_CAP_HEADER,1,[Broken RHEL5 sys/capability.h])
-fi
-;;
-esac
-
-# passwd
-AC_CHECK_HEADERS(grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h)
-AC_CHECK_FUNCS(getpwnam_r getpwuid_r getpwent_r)
-AC_HAVE_DECL(getpwent_r, [
-       #include <unistd.h>
-       #include <pwd.h>
-       ])
-AC_VERIFY_C_PROTOTYPE([struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)],
-       [
-       #ifndef HAVE_GETPWENT_R_DECL
-       #error missing getpwent_r prototype
-       #endif
-       return NULL;
-       ],[
-       AC_DEFINE(SOLARIS_GETPWENT_R, 1, [getpwent_r solaris function prototype])
-       ],[],[
-       #include <unistd.h>
-       #include <pwd.h>
-       ])
-AC_VERIFY_C_PROTOTYPE([struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)],
-       [
-       #ifndef HAVE_GETPWENT_R_DECL
-       #error missing getpwent_r prototype
-       #endif
-       return NULL;
-       ],[
-       AC_DEFINE(SOLARIS_GETPWENT_R, 1, [getpwent_r irix (similar to solaris) function prototype])
-       ],[],[
-       #include <unistd.h>
-       #include <pwd.h>
-       ])
-AC_CHECK_FUNCS(getgrnam_r getgrgid_r getgrent_r)
-AC_HAVE_DECL(getgrent_r, [
-       #include <unistd.h>
-       #include <grp.h>
-       ])
-AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, int buflen)],
-       [
-       #ifndef HAVE_GETGRENT_R_DECL
-       #error missing getgrent_r prototype
-       #endif
-       return NULL;
-       ],[
-       AC_DEFINE(SOLARIS_GETGRENT_R, 1, [getgrent_r solaris function prototype])
-       ],[],[
-       #include <unistd.h>
-       #include <grp.h>
-       ])
-
-AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, size_t buflen)],
-       [
-       #ifndef HAVE_GETGRENT_R_DECL
-       #error missing getgrent_r prototype
-       #endif
-       return NULL;
-       ],[
-       AC_DEFINE(SOLARIS_GETGRENT_R, 1, [getgrent_r irix (similar to solaris)  function prototype])
-       ],[],[
-       #include <unistd.h>
-       #include <grp.h>
-       ])
-AC_CHECK_FUNCS(getgrouplist)
-
-# locale
-AC_CHECK_HEADERS(ctype.h locale.h langinfo.h)
-
-# glob
-AC_CHECK_HEADERS(fnmatch.h)
-
-# shmem
-AC_CHECK_HEADERS(sys/ipc.h sys/mman.h sys/shm.h )
-
-# terminal
-AC_CHECK_HEADERS(termios.h termio.h sys/termio.h )
diff --git a/lib/replace/timegm.m4 b/lib/replace/timegm.m4
deleted file mode 100644 (file)
index 9b76d0c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-AC_CHECK_FUNCS(timegm,[],[LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/timegm.o"])
diff --git a/lib/replace/win32.m4 b/lib/replace/win32.m4
deleted file mode 100644 (file)
index eb364e2..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-AC_CHECK_HEADERS(direct.h windows.h winsock2.h ws2tcpip.h)
-
-#######################################
-# Check for mkdir mode
-AC_CACHE_CHECK( [whether mkdir supports mode], libreplace_cv_mkdir_has_mode,
-       AC_TRY_COMPILE([
-               #include <stdio.h>
-               #ifdef HAVE_DIRECT_H
-               #include <direct.h>
-               #endif],[
-                       mkdir("foo",0777);
-                       return 0;
-       ],
-    libreplace_cv_mkdir_has_mode="yes",
-    libreplace_cv_mkdir_has_mode="no") )
-
-if test "$libreplace_cv_mkdir_has_mode" = "yes"
-then
-    AC_DEFINE(HAVE_MKDIR_MODE, 1, [Define if target mkdir supports mode option])
-fi
diff --git a/lib/socket_wrapper/config.m4 b/lib/socket_wrapper/config.m4
deleted file mode 100644 (file)
index ff6b67b..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-AC_ARG_ENABLE(socket-wrapper, 
-AS_HELP_STRING([--enable-socket-wrapper], [Turn on socket wrapper library (default=no)]))
-
-DEFAULT_TEST_OPTIONS=
-HAVE_SOCKET_WRAPPER=no
-
-if eval "test x$developer = xyes -o x$selftest = xyes"; then
-       enable_socket_wrapper=yes
-fi
-    
-if eval "test x$enable_socket_wrapper = xyes"; then
-        AC_DEFINE(SOCKET_WRAPPER,1,[Use socket wrapper library])
-       DEFAULT_TEST_OPTIONS=--socket-wrapper
-       HAVE_SOCKET_WRAPPER=yes
-
-       # this is only used for samba3
-       SOCKET_WRAPPER_OBJS="../lib/socket_wrapper/socket_wrapper.o"
-fi
-
-AC_SUBST(DEFAULT_TEST_OPTIONS)
-AC_SUBST(HAVE_SOCKET_WRAPPER)
-AC_SUBST(SOCKET_WRAPPER_OBJS)
diff --git a/lib/talloc/compat/talloc_compat1.m4 b/lib/talloc/compat/talloc_compat1.m4
deleted file mode 100644 (file)
index 2ec530e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-TALLOC_COMPAT1_MK=""
-AC_SUBST(TALLOC_COMPAT1_MK)
-
-AC_ARG_ENABLE(talloc-compat1,
-       [AS_HELP_STRING([--enable-talloc-compat1],
-               [Build talloc 1.x.x compat library [default=no]])],
-       [ enable_talloc_compat1=$enableval ],
-       [ enable_talloc_compat1=no ]
-)
-
-if test "x$enable_talloc_compat1" = x"yes"; then
-       TALLOC_COMPAT1_MK='include $(tallocdir)/compat/talloc_compat1.mk'
-fi
-
diff --git a/lib/talloc/libtalloc.m4 b/lib/talloc/libtalloc.m4
deleted file mode 100644 (file)
index 4b22c8e..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-dnl find the talloc sources. This is meant to work both for 
-dnl talloc standalone builds, and builds of packages using talloc
-tallocdir=""
-tallocpaths=". lib/talloc talloc ../talloc ../lib/talloc"
-for d in $tallocpaths; do
-       if test -f "$srcdir/$d/talloc.c"; then
-               tallocdir="$d"
-               AC_SUBST(tallocdir)
-               break;
-       fi
-done
-if test x"$tallocdir" = "x"; then
-   AC_MSG_ERROR([cannot find talloc source in $tallocpaths])
-fi
-TALLOC_OBJ="talloc.o"
-AC_SUBST(TALLOC_OBJ)
-
-TALLOC_CFLAGS="-I$srcdir/$tallocdir"
-AC_SUBST(TALLOC_CFLAGS)
-
-TALLOC_LIBS=""
-AC_SUBST(TALLOC_LIBS)
-
-AC_CHECK_SIZEOF(size_t,cross)
-AC_CHECK_SIZEOF(void *,cross)
-
-if test $ac_cv_sizeof_size_t -lt $ac_cv_sizeof_void_p; then
-       AC_WARN([size_t cannot represent the amount of used memory of a process])
-       AC_WARN([please report this to <samba-technical@samba.org>])
-       AC_WARN([sizeof(size_t) = $ac_cv_sizeof_size_t])
-       AC_WARN([sizeof(void *) = $ac_cv_sizeof_void_p])
-       AC_ERROR([sizeof(size_t) < sizeof(void *)])
-fi
-
-if test x"$VERSIONSCRIPT" != "x"; then
-    EXPORTSFILE=talloc.exports
-    AC_SUBST(EXPORTSFILE)
-fi
diff --git a/lib/tdb/libtdb.m4 b/lib/tdb/libtdb.m4
deleted file mode 100644 (file)
index 47f098e..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-dnl find the tdb sources. This is meant to work both for 
-dnl tdb standalone builds, and builds of packages using tdb
-tdbdir=""
-tdbpaths=". lib/tdb tdb ../tdb ../lib/tdb"
-for d in $tdbpaths; do
-       if test -f "$srcdir/$d/common/tdb.c"; then
-               tdbdir="$d"             
-               AC_SUBST(tdbdir)
-               break;
-       fi
-done
-if test x"$tdbdir" = "x"; then
-   AC_MSG_ERROR([cannot find tdb source in $tdbpaths])
-fi
-TDB_OBJ="common/tdb.o common/dump.o common/transaction.o common/error.o common/traverse.o"
-TDB_OBJ="$TDB_OBJ common/freelist.o common/freelistcheck.o common/io.o common/lock.o common/open.o common/check.o common/hash.o common/summary.o common/rescue.o"
-AC_SUBST(TDB_OBJ)
-AC_SUBST(LIBREPLACEOBJ)
-
-TDB_LIBS=""
-AC_SUBST(TDB_LIBS)
-
-TDB_DEPS=""
-if test x$libreplace_cv_HAVE_FDATASYNC_IN_LIBRT = xyes ; then
-       TDB_DEPS="$TDB_DEPS -lrt"
-fi
-AC_SUBST(TDB_DEPS)
-
-TDB_CFLAGS="-I$tdbdir/include"
-AC_SUBST(TDB_CFLAGS)
-
-AC_CHECK_FUNCS(mmap pread pwrite getpagesize utime)
-AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h)
-
-AC_HAVE_DECL(pread, [#include <unistd.h>])
-AC_HAVE_DECL(pwrite, [#include <unistd.h>])
-
-if test x"$VERSIONSCRIPT" != "x"; then
-    EXPORTSFILE=tdb.exports
-    AC_SUBST(EXPORTSFILE)
-fi
diff --git a/lib/tevent/libtevent.m4 b/lib/tevent/libtevent.m4
deleted file mode 100644 (file)
index 4d4fd2b..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-dnl find the tevent sources. This is meant to work both for
-dnl standalone builds, and builds of packages using libtevent
-
-AC_SUBST(teventdir)
-
-if test x"$teventdir" = "x"; then
-       teventdir=""
-       teventpaths="$srcdir $srcdir/../lib/tevent $srcdir/tevent $srcdir/../tevent"
-       for d in $teventpaths; do
-               if test -f "$d/tevent.c"; then
-                       teventdir="$d"
-                       break;
-               fi
-       done
-       if test x"$teventdir" = "x"; then
-          AC_MSG_ERROR([cannot find libtevent source in $teventpaths])
-       fi
-fi
-
-TEVENT_OBJ=""
-TEVENT_CFLAGS=""
-TEVENT_LIBS=""
-AC_SUBST(TEVENT_OBJ)
-AC_SUBST(TEVENT_CFLAGS)
-AC_SUBST(TEVENT_LIBS)
-
-TEVENT_CFLAGS="-I$teventdir"
-
-TEVENT_OBJ="tevent.o tevent_debug.o tevent_util.o"
-TEVENT_OBJ="$TEVENT_OBJ tevent_fd.o tevent_timed.o tevent_immediate.o tevent_signal.o"
-TEVENT_OBJ="$TEVENT_OBJ tevent_req.o tevent_wakeup.o tevent_queue.o"
-TEVENT_OBJ="$TEVENT_OBJ tevent_standard.o tevent_select.o"
-TEVENT_OBJ="$TEVENT_OBJ tevent_poll.o"
-
-AC_CHECK_HEADERS(sys/epoll.h)
-AC_CHECK_FUNCS(epoll_create)
-if test x"$ac_cv_header_sys_epoll_h" = x"yes" -a x"$ac_cv_func_epoll_create" = x"yes"; then
-   TEVENT_OBJ="$TEVENT_OBJ tevent_epoll.o"
-   AC_DEFINE(HAVE_EPOLL, 1, [Whether epoll available])
-fi
-
-tevent_num_signals_includes="$ac_includes_default
-#include <signal.h>
-"
-tevent_num_signals=64
-AC_CHECK_VALUEOF(NSIG, [$tevent_num_signals_includes])
-v=$ac_cv_valueof_NSIG
-test -n "$v" && test "$v" -gt "$tevent_num_signals" && {
-       tevent_num_signals=$v
-}
-AC_CHECK_VALUEOF(_NSIG, [$tevent_num_signals_includes])
-v=$ac_cv_valueof__NSIG
-test -n "$v" && test "$v" -gt "$tevent_num_signals" && {
-       tevent_num_signals=$v
-}
-AC_CHECK_VALUEOF(SIGRTMAX, [$tevent_num_signals_includes])
-v=$ac_cv_valueof_SIGRTMAX
-test -n "$v" && test "$v" -gt "$tevent_num_signals" && {
-       tevent_num_signals=$v
-}
-AC_CHECK_VALUEOF(SIGRTMIN, [$tevent_num_signals_includes])
-v=$ac_cv_valueof_SIGRTMIN
-test -n "$v" && {
-       v=`expr $v + $v`
-}
-test -n "$v" && test "$v" -gt "$tevent_num_signals" && {
-       tevent_num_signals=$v
-}
-AC_DEFINE_UNQUOTED(TEVENT_NUM_SIGNALS, $tevent_num_signals, [Max signal number value])
-
-if test x"$VERSIONSCRIPT" != "x"; then
-    EXPORTSFILE=tevent.exports
-    AC_SUBST(EXPORTSFILE)
-fi
-
diff --git a/lib/uid_wrapper/config.m4 b/lib/uid_wrapper/config.m4
deleted file mode 100644 (file)
index a565233..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-AC_ARG_ENABLE(uid-wrapper,
-AS_HELP_STRING([--enable-uid-wrapper], [Turn on uid wrapper library (default=no)]))
-
-HAVE_UID_WRAPPER=no
-
-if eval "test x$developer = xyes -o x$selftest = xyes"; then
-       enable_uid_wrapper=yes
-fi
-
-if eval "test x$enable_uid_wrapper = xyes"; then
-        AC_DEFINE(UID_WRAPPER,1,[Use uid wrapper library])
-       HAVE_UID_WRAPPER=yes
-
-       # this is only used for samba3
-       UID_WRAPPER_OBJS="../lib/uid_wrapper/uid_wrapper.o"
-fi
-
-AC_SUBST(HAVE_UID_WRAPPER)
-AC_SUBST(UID_WRAPPER_OBJS)
diff --git a/lib/zlib/zlib.m4 b/lib/zlib/zlib.m4
deleted file mode 100644 (file)
index 32d747c..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-AC_DEFUN([AC_ZLIB],[
-AC_CHECK_HEADERS(zlib.h)
-
-AC_CHECK_LIB_EXT(z, ZLIB_LIBS, zlibVersion)
-
-AC_CACHE_CHECK([for zlib >= 1.2.3], samba_cv_zlib_1_2_3, [
-       AC_TRY_COMPILE([
-               #include <zlib.h>
-               ],[
-               #if (ZLIB_VERNUM >= 0x1230)
-               #else
-               #error "ZLIB_VERNUM < 0x1230"
-               #endif
-               ],[
-               samba_cv_zlib_1_2_3=yes
-               ],[
-               samba_cv_zlib_1_2_3=no
-               ])
-])
-
-if test x"$ac_cv_header_zlib_h" = x"yes" -a \
-       x"$ac_cv_lib_ext_z_zlibVersion" = x"yes" -a \
-       x"$samba_cv_zlib_1_2_3" = x"yes"; then
-       $1
-else
-       $2
-fi
-])
-
diff --git a/m4/check_make.m4 b/m4/check_make.m4
deleted file mode 100644 (file)
index 343913f..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-dnl SMB Build Environment make Checks
-dnl -------------------------------------------------------
-dnl  Copyright (C) Stefan (metze) Metzmacher 2004
-dnl  Copyright (C) Jelmer Vernooij 2005
-dnl  Released under the GNU GPL
-dnl -------------------------------------------------------
-dnl
-
-AC_DEFUN([AC_SAMBA_GNU_MAKE],
-[
-AC_PATH_PROGS(MAKE,gmake make)
-
-AC_CACHE_CHECK([whether we have GNU make], samba_cv_gnu_make, [
-if ! $ac_cv_path_MAKE --version | head -1 | grep GNU 2>/dev/null >/dev/null
-then
-       samba_cv_gnu_make=no
-else
-       samba_cv_gnu_make=yes
-fi
-])
-if test x$samba_cv_gnu_make = xyes; then
-       $1
-else
-       $2
-fi
-])
-
-AC_DEFUN([AC_SAMBA_GNU_MAKE_VERSION], 
-[
-AC_CACHE_CHECK([GNU make version], samba_cv_gnu_make_version,[
-               samba_cv_gnu_make_version=`$ac_cv_path_MAKE --version | head -1 | cut -d " " -f 3 2>/dev/null`
-       ])
-])
diff --git a/m4/check_perl.m4 b/m4/check_perl.m4
deleted file mode 100644 (file)
index aaec9cf..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-dnl SMB Build Environment Perl Checks
-dnl -------------------------------------------------------
-dnl  Copyright (C) Stefan (metze) Metzmacher 2004
-dnl  Released under the GNU GPL
-dnl -------------------------------------------------------
-dnl
-
-AC_DEFUN([AC_SAMBA_PERL],
-[
-case "$host_os" in
-       *irix*)
-               # On IRIX, we prefer Freeware or Nekoware Perl, because the
-               # system perl is so ancient.
-               AC_PATH_PROG(PERL, perl, "", "/usr/freeware/bin:/usr/nekoware/bin:$PATH")
-               ;;
-       *)
-               AC_PATH_PROG(PERL, perl)
-               ;;
-esac
-
-if test x"$PERL" = x""; then
-       AC_MSG_WARN([No version of perl was found!])
-       $2
-else
-       if test x"$debug" = x"yes";then
-               PERL="$PERL -W"
-       fi
-       export PERL
-       $1
-fi
-])
-
diff --git a/m4/check_python.m4 b/m4/check_python.m4
deleted file mode 100644 (file)
index 66dadbd..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-dnl Autoconf macros for finding a Python development environment
-dnl
-dnl Copyright (C) 2007-2008 Jelmer Vernooij <jelmer@samba.org>
-dnl Published under the GNU GPL, v3 or later
-dnl
-AC_ARG_VAR([PYTHON_VER],[The installed Python
-       version to use, for example '2.3'. This string 
-       will be appended to the Python interpreter
-       canonical name.])
-
-AC_DEFUN([TRY_LINK_PYTHON],
-[
-       if test $working_python = no; then
-               ac_save_LIBS="$LIBS"
-               ac_save_CFLAGS="$CFLAGS"
-               LIBS="$LIBS $1"
-               CFLAGS="$CFLAGS $2"
-
-               AC_TRY_LINK([
-                                #undef HAVE_UINTPTR_T
-                               /* we have our own configure tests */
-                               #include <Python.h>
-                       ],[
-                               Py_InitModule(NULL, NULL);
-                       ],[
-                               PYTHON_LDFLAGS="$1"
-                               PYTHON_CFLAGS="$2"
-                               working_python=yes
-                       ])
-               LIBS="$ac_save_LIBS"
-               CFLAGS="$ac_save_CFLAGS"
-       fi
-])
-
-dnl Try to find a Python implementation including header files
-dnl AC_SAMBA_PYTHON_DEVEL(RUN-IF-FOUND, RUN-IF-NOT-FOUND)
-dnl
-dnl Will set the following variables:
-dnl $PYTHON
-dnl $PYTHON_CONFIG (if found)
-dnl $PYTHON_CFLAGS
-dnl $PYTHON_LDFLAGS
-AC_DEFUN([AC_SAMBA_PYTHON_DEVEL],
-[
-       if test -z "$PYTHON_VER"; then
-               AC_PATH_PROGS([PYTHON], [python2.6 python2.5 python])
-       else
-               AC_PATH_PROG([PYTHON],[python[$PYTHON_VER]])
-       fi
-       if test -z "$PYTHON"; then
-               working_python=no
-               AC_MSG_WARN([No python found])
-       fi
-
-       dnl assume no working python
-       working_python=no
-
-       if test -z "$PYTHON_VER"; then 
-               AC_PATH_PROGS([PYTHON_CONFIG], [python2.6-config python2.5-config python2.4-config python-config])
-       else 
-               AC_PATH_PROG([PYTHON_CONFIG], [python[$PYTHON_VER]-config])
-       fi
-
-       if test -z "$PYTHON_CONFIG"; then
-               AC_MSG_WARN([No python-config found])
-       else
-               TRY_LINK_PYTHON([`$PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --includes`])
-               TRY_LINK_PYTHON([`$PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --cflags`])
-               if test x$working_python = xno; then
-                       # It seems the library path isn't included on some systems
-                       base=`$PYTHON_CONFIG --prefix`
-                       TRY_LINK_PYTHON([`echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --includes`])
-                       TRY_LINK_PYTHON([`echo -n -L${base}/lib " "; $PYTHON_CONFIG --ldflags`], [`$PYTHON_CONFIG --cflags`])
-               fi
-       fi
-
-       if test x$PYTHON != x
-       then
-               DISTUTILS_CFLAGS=`$PYTHON -c "from distutils import sysconfig; \
-                                             print '-I%s -I%s %s' % ( \
-                                                       sysconfig.get_python_inc(), \
-                                                       sysconfig.get_python_inc(plat_specific=1), \
-                                                       sysconfig.get_config_var('CFLAGS'))"`
-               DISTUTILS_LDFLAGS=`$PYTHON -c "from distutils import sysconfig; \
-                                              print '%s %s -lpython%s -L%s %s -L%s' % ( \
-                                                       sysconfig.get_config_var('LIBS'), \
-                                                       sysconfig.get_config_var('SYSLIBS'), \
-                                                       sysconfig.get_config_var('VERSION'), \
-                                                       sysconfig.get_config_var('LIBDIR'), \
-                                                       sysconfig.get_config_var('LDFLAGS'), \
-                                                       sysconfig.get_config_var('LIBPL'))"`
-               TRY_LINK_PYTHON($DISTUTILS_LDFLAGS, $DISTUTILS_CFLAGS)
-
-               if `$PYTHON -c "import sys; sys.exit(sys.version_info.__getslice__(0, 2) >= (2, 5))"`
-               then
-                       AC_MSG_WARN([Python ($PYTHON) is too old. At least version 2.5 is required])
-                       working_python=no
-               fi
-       fi
-
-       AC_MSG_CHECKING(working python module support)
-       if test $working_python = yes; then
-               AC_MSG_RESULT([yes])
-               $1
-       else
-               AC_MSG_RESULT([no])
-               $2
-       fi
-])
-
-
diff --git a/m4/pkg.m4 b/m4/pkg.m4
deleted file mode 100644 (file)
index a8b3d06..0000000
--- a/m4/pkg.m4
+++ /dev/null
@@ -1,156 +0,0 @@
-# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
-# 
-# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, see <http://www.gnu.org/licenses/>.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# PKG_PROG_PKG_CONFIG([MIN-VERSION])
-# ----------------------------------
-AC_DEFUN([PKG_PROG_PKG_CONFIG],
-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
-m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
-       AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
-fi
-if test -n "$PKG_CONFIG"; then
-       _pkg_min_version=m4_default([$1], [0.9.0])
-       AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
-       if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
-               AC_MSG_RESULT([yes])
-       else
-               AC_MSG_RESULT([no])
-               PKG_CONFIG=""
-       fi
-               
-fi[]dnl
-])# PKG_PROG_PKG_CONFIG
-
-# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-#
-# Check to see whether a particular set of modules exists.  Similar
-# to PKG_CHECK_MODULES(), but does not set variables or print errors.
-#
-#
-# Similar to PKG_CHECK_MODULES, make sure that the first instance of
-# this or PKG_CHECK_MODULES is called, or make sure to call
-# PKG_CHECK_EXISTS manually
-# --------------------------------------------------------------
-AC_DEFUN([PKG_CHECK_EXISTS],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-if test -n "$PKG_CONFIG" && \
-    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
-  m4_ifval([$2], [$2], [:])
-m4_ifvaln([$3], [else
-  $3])dnl
-fi])
-
-
-# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
-# ---------------------------------------------
-m4_define([_PKG_CONFIG],
-[if test -n "$PKG_CONFIG"; then
-    if test -n "$$1"; then
-        pkg_cv_[]$1="$$1"
-    else
-        PKG_CHECK_EXISTS([$3],
-                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
-                        [pkg_failed=yes])
-    fi
-else
-       pkg_failed=untried
-fi[]dnl
-])# _PKG_CONFIG
-
-# _PKG_SHORT_ERRORS_SUPPORTED
-# -----------------------------
-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
-        _pkg_short_errors_supported=yes
-else
-        _pkg_short_errors_supported=no
-fi[]dnl
-])# _PKG_SHORT_ERRORS_SUPPORTED
-
-
-# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
-# [ACTION-IF-NOT-FOUND])
-#
-#
-# Note that if there is a possibility the first call to
-# PKG_CHECK_MODULES might not happen, you should be sure to include an
-# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
-#
-#
-# --------------------------------------------------------------
-AC_DEFUN([PKG_CHECK_MODULES],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
-
-pkg_failed=no
-AC_MSG_CHECKING([for $1])
-
-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
-_PKG_CONFIG([$1][_LIBS], [libs], [$2])
-
-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
-and $1[]_LIBS to avoid the need to call pkg-config.
-See the pkg-config man page for more details.])
-
-if test $pkg_failed = yes; then
-        _PKG_SHORT_ERRORS_SUPPORTED
-        if test $_pkg_short_errors_supported = yes; then
-               $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
-        else 
-               $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
-        fi
-       # Put the nasty error message in config.log where it belongs
-       echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
-
-       ifelse([$4], , [AC_MSG_ERROR(dnl
-[Package requirements ($2) were not met:
-
-$$1_PKG_ERRORS
-
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
-installed software in a non-standard prefix.
-
-_PKG_TEXT
-])],
-               [AC_MSG_RESULT([no])
-                $4])
-elif test $pkg_failed = untried; then
-       ifelse([$4], , [AC_MSG_FAILURE(dnl
-[The pkg-config script could not be found or is too old.  Make sure it
-is in your PATH or set the PKG_CONFIG environment variable to the full
-path to pkg-config.
-
-_PKG_TEXT
-
-To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
-               [$4])
-else
-       $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
-       $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
-        AC_MSG_RESULT([yes])
-       ifelse([$3], , :, [$3])
-fi[]dnl
-])# PKG_CHECK_MODULES
diff --git a/source3/Makefile-smbtorture b/source3/Makefile-smbtorture
deleted file mode 100644 (file)
index d93e8ad..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-WAF_BINARY=buildtools/bin/waf
-WAF=$(WAF_BINARY)
-WAF_BUILD=WAF_MAKE=1 $(WAF_BINARY)
-SAMBA4_BINARIES="smbtorture"
-
-samba4-configure:
-       @(cd .. && \
-               CFLAGS='' $(WAF) reconfigure || \
-               CFLAGS='' $(WAF) configure --enable-selftest --nonshared-binary=$(SAMBA4_BINARIES) --enable-auto-reconfigure --enable-debug)
-
-.PHONY: samba4-configure
-
-bin/smbtorture: $(BINARY_PREREQS) samba4-configure samba4-config-compare
-       cd .. && $(WAF_BUILD)
-       cp ../bin/smbtorture bin/smbtorture
-
-.PHONY: bin/smbtorture
-
-samba4-config-compare: samba4-configure
-       @echo "Comparing config.h from autoconf and waf"
-       @echo "Configure results missing from WAF are:"
-       ../buildtools/compare_config_h3.sh include/autoconf/config.h ../bin/default/include/config.h
-       @echo "Configure results additionaly found by WAF are:"
-       DIFF="comm -13" ../buildtools/compare_config_h3.sh include/autoconf/config.h ../bin/default/include/config.h
diff --git a/source3/Makefile.in b/source3/Makefile.in
deleted file mode 100644 (file)
index efe0694..0000000
+++ /dev/null
@@ -1,3405 +0,0 @@
-#########################################################################
-# Makefile.in for Samba - rewritten for autoconf support
-# Copyright Andrew Tridgell 1992-1998
-# Copyright (C) 2001 by Martin Pool <mbp@samba.org>
-# Copyright Andrew Bartlett 2002
-# Copyright (C) 2003 Jim McDonough <jmcd@us.ibm.com>
-# Copyright (C) 2002-2003 Jelmer Vernooij <jelmer@samba.org>
-# Copyright (C) 2006 Lars Mueller <lars@samba.org>
-# Copyright (C) 2007 James Peach <jpeach@samba.org>
-# Copyright (C) 2008 Michael Adam <obnox@samba.org>
-###########################################################################
-
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-sysconfdir=@sysconfdir@
-localstatedir=@localstatedir@
-datarootdir=@datarootdir@
-
-# the following vars come from ../dynconfig/config.m4
-BINDIR=@BINDIR@
-SBINDIR=@SBINDIR@
-LIBDIR=@LIBDIR@
-#LIBEXECDIR=@LIBEXECDIR@
-MANDIR=@MANDIR@
-DATADIR=@DATADIR@
-LOCALEDIR=@LOCALEDIR@
-#SCRIPTSBINDIR=@SCRIPTSBINDIR@
-#PYTHONDIR=@PYTHONDIR@
-#PYTHONARCHDIR=@PYTHONARCHDIR@
-MODULESDIR=@MODULESDIR@
-INCLUDEDIR=@INCLUDEDIR@
-SETUPDIR=@SETUPDIR@
-#PKGCONFIGDIR=@PKGCONFIGDIR@
-CODEPAGEDIR=@CODEPAGEDIR@
-PAMMODULESDIR=@PAMMODULESDIR@
-CONFIGDIR=@CONFIGDIR@
-PRIVATE_DIR=@PRIVATE_DIR@
-LOCKDIR=@LOCKDIR@
-PIDDIR=@PIDDIR@
-STATEDIR=@STATEDIR@
-CACHEDIR=@CACHEDIR@
-LOGFILEBASE=@LOGFILEBASE@
-SOCKET_DIR=@SOCKET_DIR@
-PRIVILEGED_SOCKET_DIR=@PRIVILEGED_SOCKET_DIR@
-WINBINDD_SOCKET_DIR=@WINBINDD_SOCKET_DIR@
-WINBINDD_PRIVILEGED_SOCKET_DIR=@WINBINDD_PRIVILEGED_SOCKET_DIR@
-NMBDSOCKETDIR=@NMBDSOCKETDIR@
-#NTP_SIGND_SOCKET_DIR=@NTP_SIGND_SOCKET_DIR@
-NCALRPCDIR=@NCALRPCDIR@
-CONFIGFILE=@CONFIGFILE@
-LMHOSTSFILE=@LMHOSTSFILE@
-SMB_PASSWD_FILE=@SMB_PASSWD_FILE@
-
-selftest_prefix=@selftest_prefix@
-
-LIBS=@LIBS@
-CC=@CC@
-SHLD=@SHLD@
-LIB_PATH_VAR=@LIB_PATH_VAR@
-
-## Dynamic shared libraries build settings
-DSO_EXPORTS_CMD=-Wl,--version-script,$(srcdir)/exports/`basename $@ | sed 's:\.@SHLIBEXT@[\.0-9]*$$:.@SYMSEXT@:'`
-DSO_EXPORTS=@DSO_EXPORTS@
-SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS) -o $@
-
-# The MODULE_EXPORTS variable contains the platform-specific linker flags
-# needed to restrict the exports for VFS, IDMAP, RPC and PASSDB modules.
-MODULE_EXPORTS=@MODULE_EXPORTS@
-
-# Add $(DEVELOPER_CFLAGS) to $(CFLAGS) to enable extra compiler
-# (GCC) warnings. This is done automatically for --enable-developer,
-# --enable-picky-developer and --enable-krb5developer.
-DEVELOPER_CFLAGS=@DEVELOPER_CFLAGS@
-CFLAGS=@CFLAGS@
-CPP=@CPP@
-CPPFLAGS=-DHAVE_CONFIG_H @CPPFLAGS@
-PICFLAG=@PICFLAG@
-
-AR=@AR@
-LDSHFLAGS=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
-LDSHFLAGS_MODULES=$(PICFLAG) @LDSHFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@ @LDSHFLAGS_Z_NODEFS@
-LDFLAGS=@PIE_LDFLAGS@ @RELRO_LDFLAGS@ @LDFLAGS@
-
-WINBIND_NSS_LDSHFLAGS=$(PICFLAG) @WINBIND_NSS_LDSHFLAGS@ @LDFLAGS@ -lc @LDSHFLAGS_Z_DEFS@
-AWK=@AWK@
-DYNEXP=@DYNEXP@
-PERL=@PERL@
-PYTHON=@PYTHON@
-LIBDL=@LIBDL@
-
-PIDL_ARGS=@PIDL_ARGS@
-
-TERMLDFLAGS=@TERMLDFLAGS@
-TERMLIBS=@TERMLIBS@
-PRINT_LIBS=@PRINT_LIBS@
-ZLIB_LIBS=@ZLIB_LIBS@
-AUTH_LIBS=@AUTH_LIBS@
-ACL_LIBS=@ACL_LIBS@
-PASSDB_LIBS=@PASSDB_LIBS@
-IDMAP_LIBS=@IDMAP_LIBS@
-KRB5LIBS=@KRB5_LIBS@
-LDAP_LIBS=@LDAP_LIBS@
-NSCD_LIBS=@NSCD_LIBS@
-LIBWBCLIENT=@LIBWBCLIENT_STATIC@ @LIBWBCLIENT_SHARED@
-LIBWBCLIENT_LIBS=@LIBWBCLIENT_LIBS@
-PTHREAD_LDFLAGS=@PTHREAD_LDFLAGS@
-PTHREAD_CFLAGS=@PTHREAD_CFLAGS@
-DNSSD_LIBS=@DNSSD_LIBS@
-AVAHI_LIBS=@AVAHI_LIBS@
-POPT_LIBS=@POPTLIBS@
-LIBTALLOC=@LIBTALLOC_STATIC@
-LIBTALLOC_LIBS=@LIBTALLOC_LIBS@
-LIBREPLACE_LIBS=@LIBREPLACE_LIBS@
-LIBTDB=@LIBTDB_STATIC@
-LIBTDB_LIBS=@LIBTDB_LIBS@
-TDB_DEPS=@TDB_DEPS@
-LIBNTDB=@LIBNTDB_STATIC@
-LIBNTDB_LIBS=@LIBNTDB_LIBS@
-NTDB_DEPS=@NTDB_DEPS@
-LIBNETAPI=@LIBNETAPI_STATIC@ @LIBNETAPI_SHARED@
-LIBNETAPI_LIBS=@LIBNETAPI_LIBS@
-LIBSMBCLIENT_LIBS=@LIBSMBCLIENT_LIBS@
-LIBSMBSHAREMODES_LIBS=@LIBSMBSHAREMODES_LIBS@
-
-TALLOCTORT = @TALLOCTORT@
-
-TDBBACKUP = @TDBBACKUP@
-TDBTOOL = @TDBTOOL@
-TDBDUMP = @TDBDUMP@
-TDBRESTORE = @TDBRESTORE@
-TDBTORTURE = @TDBTORTURE@
-NTDBBACKUP = @NTDBBACKUP@
-NTDBTOOL = @NTDBTOOL@
-NTDBDUMP = @NTDBDUMP@
-NTDBRESTORE = @NTDBRESTORE@
-NTDBTORTURE = @NTDBTORTURE@
-PTHREADPOOLTEST = @PTHREADPOOLTEST@
-
-INSTALLCMD=@INSTALL@
-INSTALLLIBCMD_SH=@INSTALLLIBCMD_SH@
-INSTALLLIBCMD_A=@INSTALLLIBCMD_A@
-UNINSTALLLIBCMD_SH=@UNINSTALLLIBCMD_SH@
-UNINSTALLLIBCMD_A=@UNINSTALLLIBCMD_A@
-
-VPATH=@srcdir@
-srcdir=@abs_srcdir@
-builddir=@abs_builddir@
-# XXX: Perhaps this should be @SHELL@ instead -- apparently autoconf
-# will search for a POSIX-compliant shell, and that might not be
-# /bin/sh on some platforms.  I guess it's not a big problem -- mbp
-SHELL=/bin/sh
-DESTDIR=/
-
-# See the autoconf manual "Installation Directory Variables" for a
-# discussion of the subtle use of these variables.
-
-VFSLIBDIR = $(MODULESDIR)/vfs
-PERFCOUNTLIBDIR = $(MODULESDIR)/perfcount
-PDBLIBDIR = $(MODULESDIR)/pdb
-RPCLIBDIR = $(MODULESDIR)/rpc
-IDMAPLIBDIR = $(MODULESDIR)/idmap
-NSSINFOLIBDIR = $(MODULESDIR)/nss_info
-AUTHLIBDIR = $(MODULESDIR)/auth
-CONFIGLIBDIR = $(MODULESDIR)/config
-GPEXTLIBDIR = $(MODULESDIR)/gpext
-VARDIR = @localstatedir@
-
-# The permissions to give the executables and other data
-INSTALLPERMS_BIN = 0755
-INSTALLPERMS_DATA = 0644
-
-FLAGS = -I. \
-       -I$(srcdir) \
-       @FLAGS1@ \
-       @SAMBA_CPPFLAGS@ \
-       $(CPPFLAGS) \
-       $(ISA) \
-       -I$(srcdir)/lib \
-       -I.. \
-       -I./../lib/ldb/include \
-       -D_SAMBA_BUILD_=3
-
-PATH_FLAGS = -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
-       -DPRIVATE_DIR=\"$(PRIVATE_DIR)\" \
-       -DCONFIGFILE=\"$(CONFIGFILE)\" \
-       -DSBINDIR=\"$(SBINDIR)\" \
-       -DBINDIR=\"$(BINDIR)\" \
-       -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
-       -DLOCKDIR=\"$(LOCKDIR)\" \
-       -DPIDDIR=\"$(PIDDIR)\" \
-       -DLIBDIR=\"$(LIBDIR)\" \
-       -DMODULESDIR=\"$(MODULESDIR)\" \
-       -DLOGFILEBASE=\"$(LOGFILEBASE)\" \
-       -DSHLIBEXT=\"@SHLIBEXT@\" \
-       -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
-       -DCONFIGDIR=\"$(CONFIGDIR)\" \
-       -DCODEPAGEDIR=\"$(CODEPAGEDIR)\" \
-       -DCACHEDIR=\"$(CACHEDIR)\" \
-       -DSTATEDIR=\"$(STATEDIR)\" \
-       -DNMBDSOCKETDIR=\"$(NMBDSOCKETDIR)\" \
-       -DWINBINDD_SOCKET_DIR=\"$(WINBINDD_SOCKET_DIR)\" \
-       -DWINBINDD_PRIVILEGED_SOCKET_DIR=\"$(WINBINDD_PRIVILEGED_SOCKET_DIR)\" \
-       -DLOCALEDIR=\"$(LOCALEDIR)\" \
-       -DDATADIR=\"$(DATADIR)\" \
-       -DSETUPDIR=\"$(SETUPDIR)\"
-
-# You usually want both TDB and NTDB.
-LIBTDBS=$(LIBTDB) $(LIBNTDB)
-LIBTDBS_LIBS=$(LIBTDB_LIBS) $(LIBNTDB_LIBS)
-TDBS_DEPS=$(TDB_DEPS) $(NTDB_DEPS)
-
-# Note that all executable programs now provide for an optional executable suffix.
-
-SBIN_PROGS = bin/smbd bin/nmbd @EXTRA_SBIN_PROGS@
-
-BIN_PROGS1 = bin/smbclient bin/net bin/smbspool \
-       bin/testparm bin/smbstatus bin/smbget \
-       bin/smbta-util
-BIN_PROGS2 = bin/smbcontrol bin/smbtree $(TDBBACKUP) \
-       bin/nmblookup bin/pdbedit $(TDBDUMP) \
-       $(TDBRESTORE) $(TDBTOOL) bin/dbwrap_tool
-BIN_PROGS3 = bin/smbpasswd bin/rpcclient bin/smbcacls \
-       bin/profiles bin/ntlm_auth bin/sharesec \
-       bin/smbcquotas bin/eventlogadm 
-
-TORTURE_PROGS = bin/smbtorture3 bin/msgtest \
-       bin/locktest2 bin/nsstest bin/vfstest \
-       $(TALLOCTORT) bin/replacetort \
-       $(TDBTORTURE) $(PTHREADPOOLTEST) \
-       bin/smbconftort bin/vlp
-
-BIN_PROGS = @EXTRA_BIN_PROGS@ \
-       $(BIN_PROGS1) $(BIN_PROGS2) $(BIN_PROGS3)
-
-EVERYTHING_PROGS = bin/debug2html bin/smbfilter \
-       $(TALLOCTORT) bin/replacetort \
-       bin/log2pcap \
-       bin/vlp \
-       bin/dbwrap_tool \
-       bin/dbwrap_torture
-
-PAM_MODULES = @PAM_MODULES@
-
-NSS_MODULES = @NSS_MODULES@
-
-SCRIPTS = $(srcdir)/script/smbtar $(builddir)/script/findsmb
-
-VFS_MODULES = @VFS_MODULES@
-PERFCOUNT_MODULES = @PERFCOUNT_MODULES@
-PDB_MODULES = @PDB_MODULES@
-IDMAP_MODULES = @IDMAP_MODULES@
-AUTH_MODULES = @AUTH_MODULES@
-NSS_INFO_MODULES = @NSS_INFO_MODULES@
-GPEXT_MODULES = @GPEXT_MODULES@
-MODULES = $(VFS_MODULES) $(PDB_MODULES) $(IDMAP_MODULES) \
-          $(AUTH_MODULES) $(NSS_INFO_MODULES) \
-         $(GPEXT_MODULES) $(PERFCOUNT_MODULES)
-
-EXTRA_ALL_TARGETS = @EXTRA_ALL_TARGETS@
-
-######################################################################
-# object file lists
-######################################################################
-
-TDB_LIB_OBJ = lib/util_tdb.o ../lib/util/util_tdb.o \
-         ../lib/tdb_wrap/tdb_wrap.o \
-         ../lib/dbwrap/dbwrap.o \
-         ../lib/dbwrap/dbwrap_local_open.o \
-         lib/dbwrap/dbwrap_open.o \
-         ../lib/dbwrap/dbwrap_tdb.o \
-         ../lib/util/util_ntdb.o \
-         ../lib/dbwrap/dbwrap_ntdb.o \
-         lib/dbwrap/dbwrap_ctdb.o \
-         lib/g_lock.o \
-         ../lib/dbwrap/dbwrap_cache.o \
-         lib/dbwrap/dbwrap_watch.o \
-         ../lib/dbwrap/dbwrap_rbt.o \
-         ../lib/dbwrap/dbwrap_util.o
-
-TDB_VALIDATE_OBJ = lib/tdb_validate.o
-
-SMBLDAP_OBJ = @SMBLDAP@
-
-VERSION_OBJ = lib/version.o
-
-WBCOMMON_OBJ = ../nsswitch/wb_common.o
-
-AFS_OBJ = lib/afs.o
-
-AFS_SETTOKEN_OBJ = lib/afs_settoken.o
-
-AVAHI_OBJ = @AVAHI_OBJ@
-
-SERVER_MUTEX_OBJ = lib/server_mutex.o
-
-PASSCHANGE_OBJ = libsmb/passchange.o
-
-LIBNDR_DRSUAPI_OBJ = ../librpc/ndr/ndr_drsuapi.o \
-                    ../librpc/ndr/ndr_compression.o \
-                    autoconf/librpc/gen_ndr/ndr_drsuapi.o \
-                    ../librpc/ndr/ndr_drsblobs.o \
-                    autoconf/librpc/gen_ndr/ndr_drsblobs.o
-
-ZLIB_OBJ = @ZLIB_OBJS@
-
-COMPRESSION_OBJ = ../lib/compression/lzxpress.o \
-                 $(ZLIB_OBJ)
-
-DRSUAPI_OBJ = $(LIBNDR_DRSUAPI_OBJ) \
-             $(COMPRESSION_OBJ)
-
-LIBNDR_NTLMSSP_OBJ = autoconf/librpc/gen_ndr/ndr_ntlmssp.o \
-                    ../librpc/ndr/ndr_ntlmssp.o
-
-LIBNDR_OBJ = ../librpc/ndr/ndr_basic.o \
-            ../librpc/ndr/ndr.o \
-            ../librpc/ndr/ndr_misc.o \
-            autoconf/librpc/gen_ndr/ndr_misc.o \
-            autoconf/librpc/gen_ndr/ndr_security.o \
-            ../librpc/ndr/ndr_sec_helper.o \
-            ../librpc/ndr/ndr_string.o \
-            ../librpc/ndr/uuid.o \
-            ../librpc/ndr/util.o \
-            autoconf/librpc/gen_ndr/ndr_server_id.o \
-            autoconf/librpc/gen_ndr/ndr_file_id.o \
-            autoconf/librpc/gen_ndr/ndr_dcerpc.o
-
-LIBNDR_GEN_OBJ0 = autoconf/librpc/gen_ndr/ndr_samr.o \
-                 autoconf/librpc/gen_ndr/ndr_lsa.o
-
-LIBNDR_NETLOGON_OBJ = autoconf/librpc/gen_ndr/ndr_netlogon.o \
-                 ../librpc/ndr/ndr_netlogon.o
-
-LIBNDR_SCHANNEL_OBJ = autoconf/librpc/gen_ndr/ndr_schannel.o \
-                     ../librpc/ndr/ndr_schannel.o
-
-LIBNDR_SPOOLSS_OBJ = autoconf/librpc/gen_ndr/ndr_spoolss.o \
-                 ../librpc/ndr/ndr_spoolss_buf.o
-
-LIBNDR_NTPRINTING_OBJ = autoconf/librpc/gen_ndr/ndr_ntprinting.o \
-                       ../librpc/ndr/ndr_ntprinting.o
-
-LIBNDR_PREG_OBJ = autoconf/librpc/gen_ndr/ndr_preg.o \
-                 ../librpc/ndr/ndr_preg.o
-
-LIBNDR_XATTR_OBJ = autoconf/librpc/gen_ndr/ndr_xattr.o \
-                  ../librpc/ndr/ndr_xattr.o
-
-LIBNDR_NFS4ACL_OBJ = autoconf/librpc/gen_ndr/ndr_nfs4acl.o
-
-LIBCLI_SPOOLSS_OBJ = autoconf/librpc/gen_ndr/ndr_spoolss_c.o \
-                    rpc_client/cli_spoolss.o \
-                    rpc_client/init_spoolss.o \
-                    rpc_client/cli_winreg_spoolss.o \
-                    printing/nt_printing_os2.o
-
-LIBCLI_EVENTLOG_OBJ = autoconf/librpc/gen_ndr/ndr_eventlog_c.o
-
-LIBCLI_WINREG_OBJ = autoconf/librpc/gen_ndr/ndr_winreg_c.o \
-                   rpc_client/cli_winreg.o
-
-LIBCLI_WINREG_INT_OBJ = $(LIBCLI_WINREG_OBJ) \
-                       rpc_client/cli_winreg_int.o
-
-LIBCLI_NTSVCS_OBJ = autoconf/librpc/gen_ndr/ndr_ntsvcs_c.o
-
-LIBCLI_DRSUAPI_OBJ = autoconf/librpc/gen_ndr/ndr_drsuapi_c.o
-
-LIBCLI_DFS_OBJ = autoconf/librpc/gen_ndr/ndr_dfs_c.o
-
-LIBCLI_ECHO_OBJ = autoconf/librpc/gen_ndr/ndr_echo_c.o
-
-LIBCLI_INITSHUTDOWN_OBJ = autoconf/librpc/gen_ndr/ndr_initshutdown_c.o
-
-LIBCLI_DSSETUP_OBJ = autoconf/librpc/gen_ndr/ndr_dssetup_c.o
-
-LIBCLI_SVCCTL_OBJ = autoconf/librpc/gen_ndr/ndr_svcctl_c.o
-
-LIBCLI_WKSSVC_OBJ = autoconf/librpc/gen_ndr/ndr_wkssvc_c.o
-
-LIBCLI_SRVSVC_OBJ = autoconf/librpc/gen_ndr/ndr_srvsvc_c.o
-
-LIBCLI_LSA_OBJ = autoconf/librpc/gen_ndr/ndr_lsa_c.o \
-                rpc_client/cli_lsarpc.o \
-                rpc_client/init_lsa.o
-
-LIBCLI_SAMR_OBJ = autoconf/librpc/gen_ndr/ndr_samr_c.o \
-                 rpc_client/cli_samr.o
-
-LIBCLI_NETLOGON_OBJ = autoconf/librpc/gen_ndr/ndr_netlogon_c.o \
-                     rpc_client/cli_netlogon.o \
-                     rpc_client/util_netlogon.o \
-                     rpc_client/init_netlogon.o
-
-LIBCLI_EPMAPPER_OBJ = autoconf/librpc/gen_ndr/ndr_epmapper_c.o
-
-LIBCLI_FSRVP_OBJ = autoconf/librpc/gen_ndr/ndr_fsrvp_c.o
-
-LIBNDR_GEN_OBJ = autoconf/librpc/gen_ndr/ndr_wkssvc.o \
-                $(LIBNDR_GEN_OBJ0) \
-                autoconf/librpc/gen_ndr/ndr_dfs.o \
-                autoconf/librpc/gen_ndr/ndr_dfsblobs.o \
-                autoconf/librpc/gen_ndr/ndr_echo.o \
-                autoconf/librpc/gen_ndr/ndr_winreg.o \
-                autoconf/librpc/gen_ndr/ndr_initshutdown.o \
-                autoconf/librpc/gen_ndr/ndr_srvsvc.o \
-                autoconf/librpc/gen_ndr/ndr_eventlog.o \
-                $(LIBNDR_NETLOGON_OBJ) \
-                autoconf/librpc/gen_ndr/ndr_dssetup.o \
-                autoconf/librpc/gen_ndr/ndr_epmapper.o \
-                autoconf/librpc/gen_ndr/ndr_ntsvcs.o \
-                $(LIBNDR_SPOOLSS_OBJ) \
-                autoconf/librpc/gen_ndr/ndr_fsrvp.o
-
-# this includes only the low level parse code, not stuff
-# that requires knowledge of security contexts
-REG_PARSE_PRS_OBJ = registry/reg_parse_prs.o
-
-LIBREPLACE_OBJ = @LIBREPLACE_OBJS@
-
-SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
-NSS_WRAPPER_OBJ = @NSS_WRAPPER_OBJS@
-UID_WRAPPER_OBJ = @UID_WRAPPER_OBJS@
-
-LIBSAMBAUTIL_OBJ = \
-               $(LIBREPLACE_OBJ) \
-               $(SOCKET_WRAPPER_OBJ) \
-               $(UID_WRAPPER_OBJ) \
-               $(NSS_WRAPPER_OBJ)
-
-UTIL_OBJ = ../lib/util/rbtree.o ../lib/util/signal.o ../lib/util/time.o \
-                  ../lib/util/xfile.o ../lib/util/util_strlist.o  \
-                  ../lib/util/util_file.o ../lib/util/data_blob.o \
-                  ../lib/util/util.o ../lib/util/util_paths.o ../lib/util/fsusage.o \
-                  ../lib/util/params.o ../lib/util/talloc_stack.o \
-                  ../lib/util/genrand.o ../lib/util/util_net.o \
-                  ../lib/util/become_daemon.o ../lib/util/system.o \
-                  ../lib/util/tevent_unix.o ../lib/util/tevent_ntstatus.o \
-                  ../lib/util/tevent_werror.o ../lib/util/util_process.o\
-                  lib/tevent_barrier.o \
-                  ../lib/util/smb_threads.o ../lib/util/util_id.o \
-                  ../lib/util/blocking.o ../lib/util/rfc1738.o \
-                  ../lib/util/select.o ../lib/util/util_pw.o ../lib/util/server_id.o \
-                  ../lib/util/setid.o ../lib/util/pidfile.o ../lib/util/getpass.o
-
-CRYPTO_OBJ = ../lib/crypto/crc32.o @CRYPTO_MD5_OBJ@ \
-                        ../lib/crypto/hmacmd5.o ../lib/crypto/arcfour.o \
-                        ../lib/crypto/md4.o \
-                        ../lib/crypto/sha256.o ../lib/crypto/hmacsha256.o \
-                        ../lib/crypto/aes.o ../lib/crypto/rijndael-alg-fst.o \
-                        ../lib/crypto/aes_cmac_128.o ../lib/crypto/aes_ccm_128.o
-
-LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) $(LIBTSOCKET_OBJ) \
-         lib/messages.o autoconf/librpc/gen_ndr/ndr_messaging.o lib/messages_local.o \
-         lib/messages_ctdbd.o lib/ctdb_packet.o lib/ctdbd_conn.o \
-         lib/ctdb_conn.o \
-         lib/msg_channel.o \
-         lib/id_cache.o \
-         ../lib/socket/interfaces.o lib/memcache.o \
-         lib/talloc_dict.o \
-         lib/serverid.o \
-         lib/asys/asys.o \
-         lib/util_transfer_file.o ../lib/async_req/async_sock.o \
-         lib/addrchange.o \
-         $(TDB_LIB_OBJ) \
-         $(VERSION_OBJ) lib/charcnv.o ../lib/util/charset/convert_string.o \
-         ../lib/util/charset/pull_push.o \
-         lib/fstring.o ../lib/util/debug.o ../lib/util/debug_s3.o ../lib/util/fault.o \
-         lib/interface.o lib/dumpcore.o \
-         lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \
-         lib/username.o \
-         ../libds/common/flag_mapping.o \
-         lib/access.o lib/smbrun.o \
-         ../lib/util/bitmap.o ../lib/util/dprintf.o $(UTIL_REG_OBJ) \
-         lib/wins_srv.o \
-         lib/util_str.o ../lib/util/util_str_common.o \
-         ../lib/util/util_str.o \
-         ../lib/util/base64.o lib/util_sid.o \
-         ../lib/util/charset/util_unistr.o \
-         ../lib/util/charset/util_unistr_w.o ../lib/util/charset/codepoints.o ../lib/util/charset/util_str.o lib/util_file.o \
-         lib/util.o lib/util_malloc.o lib/namearray.o lib/util_cmdline.o lib/util_names.o \
-         lib/util_sock.o lib/sock_exec.o lib/util_sec.o \
-         lib/substitute.o lib/substitute_generic.o ../lib/util/substitute.o \
-         lib/ms_fnmatch.o ../lib/util/ms_fnmatch.o lib/errmap_unix.o ../libcli/util/errmap_unix.o \
-         lib/tallocmsg.o lib/dmallocmsg.o \
-         ../libcli/smb/smb_signing.o \
-         ../lib/util/charset/iconv.o ../lib/util/charset/weird.o \
-         ../lib/util/charset/charset_macosxfs.o intl/lang_tdb.o \
-         lib/adt_tree.o lib/gencache.o \
-         ../lib/util/modules.o lib/events.o ../lib/util/tevent_debug.o @LIBTEVENT_OBJ0@ \
-         @CCAN_OBJ@ \
-         lib/server_contexts.o \
-         lib/server_prefork.o \
-         lib/server_prefork_util.o \
-         lib/ldap_escape.o \
-         ../libcli/security/secdesc.o ../libcli/security/access_check.o \
-         ../libcli/security/secace.o ../libcli/security/object_tree.o \
-         ../libcli/security/sddl.o ../libcli/security/session.o \
-         ../libcli/security/secacl.o @PTHREADPOOL_OBJ@ \
-         lib/fncall.o \
-         libads/krb5_errs.o lib/system_smbd.o lib/audit.o $(LIBNDR_OBJ) \
-         lib/file_id.o lib/idmap_cache.o \
-         lib/tevent_wait.o \
-         ../libcli/security/dom_sid.o ../libcli/security/security_descriptor.o \
-         ../libcli/security/security_token.o ../libcli/security/util_sid.o \
-         ../libcli/smb/util.o ../lib/util/idtree.o
-
-LIB_DUMMY_OBJ = lib/smbd_shim.o lib/dummyparam.o
-LIB_NONSMBD_OBJ = $(LIB_OBJ) $(LIB_DUMMY_OBJ)
-
-READLINE_OBJ = ../libcli/smbreadline/smbreadline.o
-
-# Also depends on  $(SECRETS_OBJ) $(LIBSAMBA_OBJ)
-# Be sure to include them into your application
-POPT_LIB_OBJ = lib/popt_common.o
-
-PARAM_WITHOUT_REG_OBJ = ../dynconfig/dynconfig.o param/loadparm.o param/loadparm_ctx.o ../lib/param/loadparm_server_role.o param/util.o lib/sharesec.o lib/ldap_debug_handler.o ../lib/param/loadparm.o ../lib/param/util.o
-PARAM_REG_ADD_OBJ = $(REG_SMBCONF_OBJ) $(LIBSMBCONF_OBJ) $(PRIVILEGES_BASIC_OBJ)
-PARAM_OBJ = $(PARAM_WITHOUT_REG_OBJ) $(PARAM_REG_ADD_OBJ)
-
-KRBCLIENT_OBJ = libads/kerberos.o libads/ads_status.o
-
-LIBADDNS_OBJ0 = ../lib/addns/dnsrecord.o ../lib/addns/dnsutils.o  ../lib/addns/dnssock.o \
-              ../lib/addns/dnsgss.o ../lib/addns/dnsmarshall.o ../lib/addns/error.o
-LIBADDNS_OBJ = $(LIBADDNS_OBJ0) $(SOCKET_WRAPPER_OBJ)
-
-GPEXT_OBJ = ../libgpo/gpext/gpext.o @GPEXT_STATIC@
-
-LIBGPO_OBJ0 = ../libgpo/gpo_ldap.o ../libgpo/gpo_ini.o ../libgpo/gpo_util.o \
-             ../libgpo/gpo_fetch.o libgpo/gpo_filesync.o ../libgpo/gpo_sec.o \
-             libgpo/gpo_reg.o \
-             $(GPEXT_OBJ)
-LIBGPO_OBJ = $(LIBGPO_OBJ0)
-
-LIBADS_OBJ = libads/ldap.o \
-            libads/sasl.o libads/sasl_wrapping.o \
-            libads/krb5_setpw.o \
-            libads/kerberos_util.o \
-            libads/ldap_user.o \
-            libads/ads_struct.o libads/kerberos_keytab.o \
-             libads/disp_sec.o libads/ldap_utils.o \
-            libads/ldap_schema.o libads/util.o libads/ndr.o
-
-LIBADS_SERVER_OBJ = libads/authdata.o ../auth/kerberos/kerberos_pac.o \
-                   ../librpc/ndr/ndr_krb5pac.o \
-                   autoconf/librpc/gen_ndr/ndr_krb5pac.o
-
-LIBADS_PRINTER_OBJ = libads/ldap_printer.o
-
-SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_sid.o \
-             autoconf/librpc/gen_ndr/ndr_secrets.o \
-             passdb/secrets_lsa.o
-
-LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
-            ../libcli/netlogon/netlogon.o \
-            autoconf/librpc/gen_ndr/ndr_nbt.o \
-            ../librpc/ndr/ndr_nbt.o \
-            autoconf/librpc/gen_ndr/ndr_svcctl.o \
-            ../librpc/ndr/ndr_svcctl.o
-
-LIBNMB_OBJ = libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o \
-            libsmb/namequery.o ../libcli/nbt/lmhosts.o ../libcli/dns/dns_hosts_file.o libsmb/conncache.o \
-            ../lib/addns/dnsquery.o libads/sitename_cache.o
-
-NTERR_OBJ = ../libcli/util/nterr.o libsmb/smberr.o
-DOSERR_OBJ = ../libcli/util/doserr.o
-ERRORMAP_OBJ = ../libcli/util/errormap.o libsmb/errormap.o
-DCE_RPC_ERR_OBJ = ../librpc/rpc/dcerpc_error.o
-
-LIBSMB_ERR_OBJ0 = $(NTERR_OBJ) $(DOSERR_OBJ) $(ERRORMAP_OBJ) $(DCE_RPC_ERR_OBJ)
-
-LIBSMB_ERR_OBJ1 = ../libcli/auth/smbdes.o ../libcli/auth/smbencrypt.o ../libcli/auth/msrpc_parse.o ../libcli/auth/session.o
-
-LIBSMB_ERR_OBJ = $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) \
-                $(SECRETS_OBJ)
-
-LIBSMB_OBJ0 = \
-              ../lib/util/asn1.o \
-              ../libcli/auth/spnego_parse.o \
-              ../libcli/auth/ntlm_check.o \
-              libsmb/ntlmssp.o \
-              libsmb/ntlmssp_wrap.o \
-              libsmb/auth_generic.o \
-              ../lib/krb5_wrap/krb5_samba.o \
-              libsmb/clispnego.o \
-              ../auth/gensec/gensec.o \
-              ../auth/gensec/gensec_start.o \
-              ../auth/gensec/gensec_util.o \
-              ../auth/gensec/spnego.o \
-              ../auth/credentials/credentials.o \
-              ../auth/credentials/credentials_ntlm.o \
-              ../auth/credentials/credentials_samba3.o \
-              ../auth/ntlmssp/ntlmssp.o \
-              ../auth/ntlmssp/ntlmssp_util.o \
-              ../auth/ntlmssp/ntlmssp_sign.o \
-              ../auth/ntlmssp/ntlmssp_client.o \
-              ../auth/ntlmssp/gensec_ntlmssp.o \
-              ../auth/ntlmssp/gensec_ntlmssp_server.o \
-              $(LIBNDR_NTLMSSP_OBJ) \
-              ../auth/ntlmssp/ntlmssp_ndr.o \
-              ../auth/ntlmssp/ntlmssp_server.o
-
-LIBSAMBA_OBJ = $(LIBSMB_OBJ0) \
-              $(LIBSMB_ERR_OBJ)
-
-LIBCLI_LDAP_MESSAGE_OBJ = ../libcli/ldap/ldap_message.o
-LIBCLI_LDAP_NDR_OBJ = ../libcli/ldap/ldap_ndr.o ../lib/ldb/common/ldb_parse.o
-
-LIBTSOCKET_OBJ = ../lib/tsocket/tsocket.o \
-               ../lib/tsocket/tsocket_helpers.o \
-               ../lib/tsocket/tsocket_bsd.o
-
-CLDAP_OBJ = libads/cldap.o \
-       ../libcli/cldap/cldap.o \
-       $(LIBCLI_LDAP_MESSAGE_OBJ) $(LIBCLI_LDAP_NDR_OBJ)
-
-TLDAP_OBJ = lib/tldap.o lib/tldap_util.o lib/util_tsock.o
-
-SCHANNEL_OBJ = ../libcli/auth/credentials.o \
-              ../libcli/auth/schannel_sign.o \
-              ../libcli/auth/schannel_state_tdb.o \
-              $(LIBNDR_SCHANNEL_OBJ)
-
-LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \
-            libsmb/reparse_symlink.o \
-            libsmb/clisymlink.o \
-            libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o \
-            libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o \
-            libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o \
-            libsmb/clistr.o libsmb/cliquota.o libsmb/clifsinfo.o libsmb/clidfs.o \
-            libsmb/clioplock.o libsmb/clirap2.o \
-            libsmb/async_smb.o \
-            ../libcli/smb/smb_seal.o \
-            ../libcli/smb/read_smb.o \
-            ../libcli/smb/smbXcli_base.o \
-            ../libcli/smb/smb1cli_trans.o \
-            ../libcli/smb/smb1cli_echo.o \
-            ../libcli/smb/smb2cli_session.o \
-            libsmb/smb2cli_tcon.o \
-            ../libcli/smb/smb2cli_create.o \
-            ../libcli/smb/smb2_create_blob.o \
-            ../libcli/smb/smb2_signing.o \
-            ../libcli/smb/smb2cli_close.o \
-            ../libcli/smb/smb2cli_flush.o \
-            ../libcli/smb/smb2cli_read.o \
-            ../libcli/smb/smb2cli_write.o \
-            ../libcli/smb/smb2cli_query_directory.o \
-            ../libcli/smb/smb2cli_ioctl.o \
-            ../libcli/smb/smb2cli_query_info.o \
-            ../libcli/smb/smb2cli_set_info.o \
-            ../libcli/smb/smb2cli_echo.o \
-            libsmb/cli_np_tstream.o \
-            libsmb/smbsock_connect.o \
-            $(LIBSAMBA_OBJ) \
-            $(LIBNMB_OBJ) \
-            $(LIBNBT_OBJ) \
-            $(CLDAP_OBJ) \
-            $(DRSUAPI_OBJ)
-
-LIBMSRPC_OBJ = $(SCHANNEL_OBJ) \
-              rpc_client/cli_pipe.o \
-              $(LIBCLI_NETLOGON_OBJ) \
-              librpc/crypto/gse_krb5.o \
-              librpc/crypto/gse.o \
-              ../auth/kerberos/gssapi_pac.o \
-              ../lib/krb5_wrap/gss_samba.o \
-              librpc/rpc/rpc_common.o \
-              rpc_client/rpc_transport_np.o \
-              rpc_client/rpc_transport_sock.o \
-              rpc_client/rpc_transport_tstream.o \
-              ../librpc/rpc/binding.o \
-              ../librpc/rpc/dcerpc_util.o \
-              ../librpc/rpc/binding_handle.o \
-              librpc/rpc/dcerpc_helpers.o \
-              $(LIBCLI_EPMAPPER_OBJ)
-
-LIBMSRPC_GEN_OBJ = $(LIBNDR_GEN_OBJ)
-
-#
-# registry-related objects
-#
-UTIL_REG_OBJ = ../libcli/registry/util_reg.o
-
-REG_INIT_BASIC_OBJ = registry/reg_init_basic.o
-REG_INIT_SMBCONF_OBJ = registry/reg_init_smbconf.o
-REG_INIT_FULL_OBJ = registry/reg_init_full.o
-
-REGFIO_OBJ = registry/regfio.o \
-            $(REG_PARSE_PRS_OBJ)
-
-REG_API_REGF_OBJ = registry/reg_api_regf.o
-
-REGOBJS_OBJ = registry/reg_objects.o
-
-REG_BACKENDS_BASE_OBJ = registry/reg_backend_db.o
-
-REG_BACKENDS_SMBCONF_OBJ = registry/reg_backend_smbconf.o
-
-REG_BACKENDS_EXTRA_OBJ = registry/reg_backend_printing.o \
-                        registry/reg_backend_shares.o \
-                        registry/reg_backend_netlogon_params.o \
-                        registry/reg_backend_prod_options.o \
-                        registry/reg_backend_tcpip_params.o \
-                        registry/reg_backend_hkpt_params.o \
-                        registry/reg_backend_current_version.o \
-                        registry/reg_backend_perflib.o
-
-REG_BASE_OBJ = registry/reg_api.o \
-              registry/reg_dispatcher.o \
-              registry/reg_cachehook.o \
-              $(REGOBJS_OBJ) \
-              registry/reg_util_internal.o \
-              lib/util_nttoken.o \
-              $(REG_BACKENDS_BASE_OBJ) \
-              registry/reg_parse_internal.o \
-              lib/cbuf.o lib/srprs.o \
-              $(REG_INIT_BASIC_OBJ)
-
-REG_SMBCONF_OBJ = $(REG_BASE_OBJ) \
-                 registry/reg_util_token.o \
-                 registry/reg_api_util.o \
-                 $(REG_BACKENDS_SMBCONF_OBJ) \
-                 $(REG_INIT_SMBCONF_OBJ)
-
-REG_FULL_OBJ = $(REG_SMBCONF_OBJ) \
-              $(REG_BACKENDS_EXTRA_OBJ) \
-              $(REG_INIT_FULL_OBJ) \
-              registry/reg_perfcount.o \
-              autoconf/librpc/gen_ndr/ndr_perfcount.o
-
-LIB_EVENTLOG_OBJ = lib/eventlog/eventlog.o
-
-DCE_RPC_EP_OBJ = librpc/rpc/dcerpc_ep.o
-
-RPC_LSARPC_OBJ = rpc_server/lsa/srv_lsa_nt.o \
-                autoconf/librpc/gen_ndr/srv_lsa.o \
-                ../libcli/lsarpc/util_lsarpc.o
-
-RPC_NETLOGON_OBJ = rpc_server/netlogon/srv_netlog_nt.o \
-                  autoconf/librpc/gen_ndr/srv_netlogon.o
-
-RPC_SAMR_OBJ = rpc_server/samr/srv_samr_nt.o \
-               rpc_server/samr/srv_samr_util.o \
-               rpc_server/samr/srv_samr_chgpasswd.o \
-              autoconf/librpc/gen_ndr/srv_samr.o
-
-RPC_INITSHUTDOWN_OBJ =  autoconf/librpc/gen_ndr/srv_initshutdown.o rpc_server/initshutdown/srv_initshutdown_nt.o
-
-RPC_WINREG_OBJ =  rpc_server/winreg/srv_winreg_nt.o \
-                 autoconf/librpc/gen_ndr/srv_winreg.o
-
-RPC_DSSETUP_OBJ =  rpc_server/dssetup/srv_dssetup_nt.o autoconf/librpc/gen_ndr/srv_dssetup.o
-
-RPC_SRVSVC_OBJ = rpc_server/srvsvc/srv_srvsvc_nt.o \
-                autoconf/librpc/gen_ndr/srv_srvsvc.o
-
-RPC_WKSSVC_OBJ =  autoconf/librpc/gen_ndr/srv_wkssvc.o \
-                 rpc_server/wkssvc/srv_wkssvc_nt.o
-
-RPC_SVCCTL_OBJ =  rpc_server/svcctl/srv_svcctl_nt.o \
-                 rpc_server/svcctl/srv_svcctl_reg.o \
-                 autoconf/librpc/gen_ndr/srv_svcctl.o \
-                 services/svc_winreg_glue.o \
-                  services/svc_spoolss.o services/svc_rcinit.o  \
-                  services/svc_netlogon.o services/svc_winreg.o \
-                  services/svc_wins.o
-
-RPC_NTSVCS_OBJ = rpc_server/ntsvcs/srv_ntsvcs_nt.o \
-                autoconf/librpc/gen_ndr/srv_ntsvcs.o
-
-RPC_NETDFS_OBJ =  autoconf/librpc/gen_ndr/srv_dfs.o \
-                 rpc_server/dfs/srv_dfs_nt.o
-
-RPC_SPOOLSS_OBJ = rpc_server/spoolss/srv_spoolss_nt.o \
-                 rpc_server/spoolss/srv_spoolss_util.o \
-                 autoconf/librpc/gen_ndr/srv_spoolss.o
-
-RPC_EVENTLOG_OBJ = rpc_server/eventlog/srv_eventlog_nt.o \
-                  rpc_server/eventlog/srv_eventlog_reg.o \
-                  $(LIB_EVENTLOG_OBJ) autoconf/librpc/gen_ndr/srv_eventlog.o
-
-NPA_TSTREAM_OBJ = ../libcli/named_pipe_auth/npa_tstream.o \
-                 autoconf/librpc/gen_ndr/ndr_named_pipe_auth.o \
-                 ../auth/auth_sam_reply.o autoconf/librpc/gen_ndr/ndr_auth.o ../librpc/ndr/ndr_auth.o
-
-RPC_NCACN_NP = rpc_server/srv_pipe_register.o rpc_server/rpc_ncacn_np.o \
-              rpc_server/rpc_handles.o rpc_server/rpc_contexts.o \
-              rpc_server/srv_access_check.o
-
-RPC_CONFIG = rpc_server/rpc_config.o
-
-RPC_SERVICE = rpc_server/rpc_server.o
-
-RPC_CRYPTO = rpc_server/dcesrv_auth_generic.o
-
-RPC_PIPE_OBJ = rpc_server/srv_pipe.o rpc_server/srv_pipe_hnd.o \
-              $(RPC_CONFIG) $(RPC_NCACN_NP) $(RPC_SERVICE) $(RPC_CRYPTO)
-
-RPC_RPCECHO_OBJ = rpc_server/echo/srv_echo_nt.o autoconf/librpc/gen_ndr/srv_echo.o
-
-RPC_EPMAPPER_OBJ = rpc_server/epmapper/srv_epmapper.o autoconf/librpc/gen_ndr/srv_epmapper.o
-
-RPC_SERVER_REGISTER_OBJ = rpc_server/rpc_ep_register.o $(DCE_RPC_EP_OBJ)
-
-RPC_SERVER_OBJ = $(RPC_LSARPC_OBJ) $(RPC_WINREG_OBJ) $(RPC_INITSHUTDOWN_OBJ) \
-                $(RPC_DSSETUP_OBJ) $(RPC_WKSSVC_OBJ) $(RPC_SVCCTL_OBJ) \
-                $(RPC_NTSVCS_OBJ) $(RPC_NETLOGON_OBJ) $(RPC_NETDFS_OBJ) \
-                $(RPC_SRVSVC_OBJ) $(RPC_SPOOLSS_OBJ) $(RPC_EVENTLOG_OBJ) \
-                $(RPC_SAMR_OBJ) $(RPC_RPCECHO_OBJ) $(RPC_EPMAPPER_OBJ) \
-                $(RPC_PIPE_OBJ) $(NPA_TSTREAM_OBJ) \
-                $(LIBCLI_SPOOLSS_OBJ) \
-                $(LIBCLI_WINREG_INT_OBJ) \
-                $(LIBCLI_SRVSVC_OBJ) \
-                $(LIBCLI_LSA_OBJ) \
-                $(LIBCLI_SAMR_OBJ) \
-                $(RPC_SERVER_REGISTER_OBJ) \
-                $(RPC_CLIENT_SCHANNEL_OBJ) \
-                rpc_server/rpc_sock_helper.o \
-                rpc_server/rpc_service_setup.o \
-                rpc_client/init_samr.o
-
-RPC_CLIENT_SCHANNEL_OBJ = rpc_client/cli_pipe_schannel.o
-
-LOCKING_OBJ = locking/locking.o locking/brlock.o locking/posix.o \
-               autoconf/librpc/gen_ndr/ndr_open_files.o locking/share_mode_lock.o
-
-PRIVILEGES_BASIC_OBJ = ../libcli/security/privileges.o
-
-PRIVILEGES_OBJ = lib/privileges.o
-
-PASSDB_GET_SET_OBJ = passdb/pdb_get_set.o
-
-PASSDB_OBJ = $(PASSDB_GET_SET_OBJ) passdb/passdb.o passdb/pdb_interface.o \
-               lib/util_wellknown.o lib/util_builtin.o passdb/pdb_compat.o \
-               lib/util_sid_passdb.o \
-               lib/util_unixsids.o passdb/lookup_sid.o \
-               passdb/login_cache.o @PDB_STATIC@ \
-               passdb/account_pol.o $(PRIVILEGES_OBJ) \
-               lib/util_nscd.o lib/winbind_util.o $(SERVER_MUTEX_OBJ) \
-               passdb/pdb_util.o passdb/pdb_ldap_schema.o \
-               passdb/pdb_secrets.o
-
-DEVEL_HELP_WEIRD_OBJ = ../lib/util/charset/weird.o
-CHARSET_MACOSXFS_OBJ = ../lib/util/charset/charset_macosxfs.o
-
-GROUPDB_OBJ = groupdb/mapping.o groupdb/mapping_tdb.o
-
-PROFILE_OBJ = profile/profile.o
-PROFILES_OBJ = utils/profiles.o \
-              $(LIBSMB_ERR_OBJ) \
-              $(PARAM_OBJ) \
-               $(LIB_OBJ) $(LIB_DUMMY_OBJ) \
-               $(POPT_LIB_OBJ) \
-              $(REGFIO_OBJ)
-
-OPLOCK_OBJ = smbd/oplock.o smbd/oplock_irix.o smbd/oplock_linux.o
-
-NOTIFY_OBJ = smbd/notify.o smbd/notify_inotify.o smbd/notify_internal.o \
-            autoconf/librpc/gen_ndr/ndr_notify.o
-
-FNAME_UTIL_OBJ = lib/filename_util.o
-
-NFS4ACL_OBJ = modules/nfs4_acls.o modules/non_posix_acls.o
-
-VFS_DEFAULT_OBJ = modules/vfs_default.o
-VFS_AUDIT_OBJ = modules/vfs_audit.o
-VFS_EXTD_AUDIT_OBJ = modules/vfs_extd_audit.o
-VFS_FULL_AUDIT_OBJ = modules/vfs_full_audit.o
-VFS_FAKE_PERMS_OBJ = modules/vfs_fake_perms.o
-VFS_FAKE_ACLS_OBJ = modules/vfs_fake_acls.o autoconf/librpc/gen_ndr/ndr_smb_acl.o
-VFS_RECYCLE_OBJ = modules/vfs_recycle.o
-VFS_NETATALK_OBJ = modules/vfs_netatalk.o
-VFS_DEFAULT_QUOTA_OBJ = modules/vfs_default_quota.o
-VFS_READONLY_OBJ = modules/vfs_readonly.o modules/getdate.o
-VFS_CAP_OBJ = modules/vfs_cap.o
-VFS_EXPAND_MSDFS_OBJ = modules/vfs_expand_msdfs.o
-VFS_SHADOW_COPY_OBJ = modules/vfs_shadow_copy.o
-VFS_SHADOW_COPY2_OBJ = modules/vfs_shadow_copy2.o
-VFS_AFSACL_OBJ = modules/vfs_afsacl.o
-VFS_XATTR_TDB_OBJ = modules/vfs_xattr_tdb.o lib/xattr_tdb.o
-VFS_POSIXACL_OBJ = modules/vfs_posixacl.o
-VFS_AIXACL_OBJ = modules/vfs_aixacl.o modules/vfs_aixacl_util.o
-VFS_AIXACL2_OBJ = modules/vfs_aixacl2.o modules/vfs_aixacl_util.o $(NFS4ACL_OBJ)
-VFS_SOLARISACL_OBJ = modules/vfs_solarisacl.o
-VFS_ZFSACL_OBJ = modules/vfs_zfsacl.o $(NFS4ACL_OBJ)
-VFS_NFS4ACL_XATTR_OBJ = modules/vfs_nfs4acl_xattr.o $(LIBNDR_NFS4ACL_OBJ) $(NFS4ACL_OBJ)
-VFS_HPUXACL_OBJ = modules/vfs_hpuxacl.o
-VFS_TRU64ACL_OBJ = modules/vfs_tru64acl.o
-VFS_CATIA_OBJ = modules/vfs_catia.o
-VFS_STREAMS_XATTR_OBJ = modules/vfs_streams_xattr.o
-VFS_STREAMS_DEPOT_OBJ = modules/vfs_streams_depot.o
-VFS_CACHEPRIME_OBJ = modules/vfs_cacheprime.o
-VFS_PREALLOC_OBJ = modules/vfs_prealloc.o
-VFS_COMMIT_OBJ = modules/vfs_commit.o
-VFS_GPFS_OBJ = modules/vfs_gpfs.o modules/gpfs.o $(NFS4ACL_OBJ)
-VFS_NOTIFY_FAM_OBJ = modules/vfs_notify_fam.o
-VFS_READAHEAD_OBJ = modules/vfs_readahead.o
-VFS_TSMSM_OBJ = modules/vfs_tsmsm.o
-VFS_FILEID_OBJ = modules/vfs_fileid.o
-VFS_AIO_FORK_OBJ = modules/vfs_aio_fork.o
-VFS_AIO_PTHREAD_OBJ = modules/vfs_aio_pthread.o
-VFS_AIO_POSIX_OBJ = modules/vfs_aio_posix.o
-VFS_AIO_LINUX_OBJ = modules/vfs_aio_linux.o
-VFS_PREOPEN_OBJ = modules/vfs_preopen.o
-VFS_SYNCOPS_OBJ = modules/vfs_syncops.o
-VFS_ACL_XATTR_OBJ = modules/vfs_acl_xattr.o
-VFS_ACL_TDB_OBJ = modules/vfs_acl_tdb.o
-VFS_SMB_TRAFFIC_ANALYZER_OBJ = modules/vfs_smb_traffic_analyzer.o
-PERFCOUNT_TEST_OBJ = modules/perfcount_test.o
-VFS_DIRSORT_OBJ = modules/vfs_dirsort.o
-VFS_SCANNEDONLY_OBJ = modules/vfs_scannedonly.o
-VFS_CROSSRENAME_OBJ = modules/vfs_crossrename.o
-VFS_LINUX_XFS_SGID_OBJ = modules/vfs_linux_xfs_sgid.o
-VFS_TIME_AUDIT_OBJ = modules/vfs_time_audit.o
-VFS_MEDIA_HARMONY_OBJ = modules/vfs_media_harmony.o
-VFS_BTRFS_OBJ = modules/vfs_btrfs.o
-VFS_CEPH_OBJ = modules/vfs_ceph.o
-
-PAM_ERRORS_OBJ = ../libcli/auth/pam_errors.o
-PLAINTEXT_AUTH_OBJ = auth/pampass.o auth/pass_check.o $(PAM_ERRORS_OBJ)
-
-SLCACHE_OBJ = libsmb/samlogon_cache.o
-
-DCUTIL_OBJ  = libsmb/namequery_dc.o libsmb/trustdom_cache.o libsmb/trusts_util.o libsmb/dsgetdcname.o
-
-AUTH_BUILTIN_OBJ = auth/auth_builtin.o
-AUTH_DOMAIN_OBJ = auth/auth_domain.o
-AUTH_SAM_OBJ = auth/auth_sam.o auth/check_samsec.o
-AUTH_UNIX_OBJ = auth/auth_unix.o
-AUTH_WINBIND_OBJ = auth/auth_winbind.o
-AUTH_WBC_OBJ = auth/auth_wbc.o
-AUTH_SCRIPT_OBJ = auth/auth_script.o
-
-AUTH_OBJ = auth/auth.o @AUTH_STATIC@ auth/auth_util.o auth/token_util.o \
-          auth/server_info.o \
-          auth/server_info_sam.o \
-          auth/user_info.o \
-          auth/user_util.o \
-          auth/user_krb5.o \
-          auth/auth_ntlmssp.o auth/auth_generic.o \
-          $(PLAINTEXT_AUTH_OBJ) $(SLCACHE_OBJ) $(DCUTIL_OBJ)
-
-MANGLE_OBJ = smbd/mangle.o smbd/mangle_hash.o smbd/mangle_hash2.o
-
-SMBD_OBJ_MAIN = smbd/server.o smbd/server_exit.o
-
-BUILDOPT_OBJ = smbd/build_options.o
-
-SMBD_OBJ_SRV = smbd/server_reload.o \
-              smbd/files.o smbd/connection.o \
-              smbd/utmp.o smbd/session.o \
-               smbd/dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/conn_idle.o smbd/conn_msg.o \
-              smbd/share_access.o smbd/fileio.o \
-               smbd/ipc.o smbd/lanman.o smbd/negprot.o \
-               smbd/message.o smbd/nttrans.o smbd/pipes.o \
-               smbd/reply.o smbd/sesssetup.o smbd/trans2.o smbd/uid.o \
-              smbd/dosmode.o smbd/filename.o smbd/open.o smbd/close.o \
-              smbd/blocking.o smbd/sec_ctx.o smbd/srvstr.o \
-              smbd/vfs.o smbd/perfcount.o smbd/statcache.o smbd/seal.o \
-               smbd/posix_acls.o lib/sysacls.o autoconf/librpc/gen_ndr/ndr_smb_acl.o\
-              smbd/process.o smbd/service.o param/service.o smbd/error.o \
-              rpc_server/epmd.o \
-              rpc_server/lsasd.o \
-              printing/printspoolss.o printing/spoolssd.o \
-              lib/sysquotas.o lib/sysquotas_linux.o \
-              lib/sysquotas_xfs.o lib/sysquotas_4A.o lib/sysquotas_4B.o \
-              lib/sysquotas_nfs.o \
-              lib/smbd_shim.o \
-              lib/background.o \
-              smbd/fake_file.o \
-              smbd/quotas.o smbd/ntquotas.o $(AFS_OBJ) smbd/msdfs.o \
-              $(AFS_SETTOKEN_OBJ) smbd/aio.o smbd/statvfs.o \
-              smbd/dmapi.o smbd/signing.o \
-              smbd/file_access.o \
-              smbd/dnsregister.o smbd/globals.o \
-              smbd/smb2_server.o \
-              smbd/smb2_glue.o \
-              smbd/smb2_negprot.o \
-              smbd/smb2_sesssetup.o \
-              smbd/smb2_tcon.o \
-              smbd/smb2_create.o \
-              smbd/smb2_close.o \
-              smbd/smb2_flush.o \
-              smbd/smb2_read.o \
-              smbd/smb2_write.o \
-              smbd/smb2_lock.o \
-              smbd/smb2_ioctl.o \
-               smbd/smb2_ioctl_dfs.o \
-               smbd/smb2_ioctl_filesys.o \
-               smbd/smb2_ioctl_named_pipe.o \
-               smbd/smb2_ioctl_network_fs.o \
-              smbd/smb2_keepalive.o \
-              smbd/smb2_find.o \
-              smbd/smb2_notify.o \
-              smbd/smb2_getinfo.o \
-              smbd/smb2_setinfo.o \
-              smbd/smb2_break.o \
-              autoconf/librpc/gen_ndr/ndr_smbXsrv.o \
-              smbd/smbXsrv_version.o \
-              smbd/smbXsrv_session.o \
-              smbd/smbXsrv_tcon.o \
-              smbd/smbXsrv_open.o \
-              smbd/durable.o \
-              smbd/scavenger.o \
-              autoconf/librpc/gen_ndr/ndr_ioctl.o \
-              $(MANGLE_OBJ) @VFS_STATIC@
-
-SMBD_OBJ_BASE = $(PARAM_WITHOUT_REG_OBJ) $(SMBD_OBJ_SRV) $(LIBSMB_OBJ) \
-               $(RPC_SERVER_OBJ) \
-               $(LOCKING_OBJ) $(PASSDB_OBJ) $(PRINTING_OBJ) $(PROFILE_OBJ) \
-               $(LIB_OBJ) $(PRINTBACKEND_OBJ) $(OPLOCK_OBJ) \
-               $(NOTIFY_OBJ) $(FNAME_UTIL_OBJ) $(GROUPDB_OBJ) $(AUTH_OBJ) \
-               $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(AVAHI_OBJ) \
-               $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(LIBADS_SERVER_OBJ) $(LIBADS_PRINTER_OBJ) \
-               $(REG_FULL_OBJ) $(POPT_LIB_OBJ) $(BUILDOPT_OBJ) \
-               $(SMBLDAP_OBJ) $(LIBNET_OBJ) \
-               $(LIBSMBCONF_OBJ) \
-               $(PRIVILEGES_BASIC_OBJ) \
-               $(REGFIO_OBJ) \
-               $(REG_API_REGF_OBJ) \
-               $(LIBNDR_XATTR_OBJ) \
-               lib/conn_tdb.o lib/sessionid_tdb.o
-
-
-PRINTING_OBJ = printing/pcap.o printing/print_svid.o printing/print_aix.o \
-               printing/print_cups.o printing/print_generic.o \
-               printing/lpq_parse.o printing/load.o \
-               printing/print_iprint.o printing/print_standard.o \
-               printing/printer_list.o autoconf/librpc/gen_ndr/ndr_printcap.o
-
-PRINTBASE_OBJ = printing/notify.o printing/printing_db.o
-PRINTBACKEND_OBJ = printing/printing.o \
-                  printing/nt_printing.o \
-                  printing/nt_printing_tdb.o \
-                  printing/nt_printing_migrate.o \
-                  printing/nt_printing_migrate_internal.o \
-                  printing/nt_printing_ads.o \
-                  autoconf/librpc/gen_ndr/ndr_ntprinting.o \
-                   ../librpc/ndr/ndr_ntprinting.o \
-                  printing/queue_process.o \
-                  $(PRINTBASE_OBJ)
-
-SMBD_OBJ = $(SMBD_OBJ_BASE) $(SMBD_OBJ_MAIN)
-
-NMBD_OBJ1 = nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o \
-            nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o \
-            nmbd/nmbd_browsesync.o nmbd/nmbd_elections.o \
-            nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o \
-            nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o \
-            nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o \
-            nmbd/nmbd_nameregister.o nmbd/nmbd_namerelease.o \
-            nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o \
-            nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o \
-            nmbd/nmbd_sendannounce.o nmbd/nmbd_serverlistdb.o \
-            nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o nmbd/nmbd_winsserver.o \
-            nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o
-
-NMBD_OBJ = $(NMBD_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
-           $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
-          $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
-
-
-STATUS_OBJ = utils/status.o utils/status_profile.o $(SMBD_OBJ_BASE)
-
-
-SMBCONTROL_OBJ = utils/smbcontrol.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
-       $(LIBSMB_ERR_OBJ) $(POPT_LIB_OBJ) $(PRINTBASE_OBJ)
-
-SMBTREE_OBJ = utils/smbtree.o $(PARAM_OBJ) \
-             $(PROFILE_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_OBJ) \
-            $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
-            $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
-            $(LIBMSRPC_GEN_OBJ) \
-            $(LIBMSRPC_OBJ) \
-            $(LIBCLI_SRVSVC_OBJ)
-
-TESTPARM_OBJ = utils/testparm.o \
-               $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) \
-              $(LIBSMB_ERR_OBJ)
-
-SMBTA_UTIL_OBJ = utils/smbta-util.o $(PARAM_OBJ) $(POPT_LIB_OBJ) \
-       $(LIB_NONSMBD_OBJ) \
-       $(LIBSMB_ERR_OBJ) $(FNAME_UTIL_OBJ)
-
-TEST_LP_LOAD_OBJ = param/test_lp_load.o \
-                  $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
-                  $(POPT_LIB_OBJ) $(LIBSAMBA_OBJ)
-
-PASSWD_UTIL_OBJ = utils/passwd_util.o
-
-SMBPASSWD_OBJ = utils/smbpasswd.o $(PASSWD_UTIL_OBJ) $(PASSCHANGE_OBJ) \
-               $(PARAM_OBJ) $(LIBSMB_OBJ) $(PASSDB_OBJ) \
-               $(GROUPDB_OBJ) $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
-               $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
-               $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
-               $(LIBCLI_SAMR_OBJ) \
-               rpc_client/init_lsa.o
-
-PDBEDIT_OBJ = utils/pdbedit.o $(PASSWD_UTIL_OBJ) $(PARAM_OBJ) $(PASSDB_OBJ) \
-               $(AFS_SETTOKEN_OBJ) \
-               $(LIB_NONSMBD_OBJ) $(GROUPDB_OBJ) \
-               $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) $(SECRETS_OBJ) \
-               $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
-               ../lib/util/asn1.o $(LIBCLI_LDAP_NDR_OBJ) \
-               $(LIBNDR_DRSUAPI_OBJ) $(LIBNDR_GEN_OBJ0) $(COMPRESSION_OBJ)
-
-SMBGET_OBJ = utils/smbget.o $(POPT_LIB_OBJ) $(LIBSMBCLIENT_OBJ1)
-
-DISPLAY_SEC_OBJ= ../libcli/security/display_sec.o
-
-RPCCLIENT_OBJ1 = rpcclient/rpcclient.o rpcclient/cmd_lsarpc.o \
-                rpcclient/cmd_samr.o rpcclient/cmd_spoolss.o \
-                rpcclient/cmd_netlogon.o rpcclient/cmd_srvsvc.o \
-                rpcclient/cmd_dfs.o rpcclient/cmd_epmapper.o \
-                rpcclient/cmd_dssetup.o rpcclient/cmd_echo.o \
-                rpcclient/cmd_shutdown.o rpcclient/cmd_test.o \
-                rpcclient/cmd_wkssvc.o rpcclient/cmd_ntsvcs.o \
-                rpcclient/cmd_drsuapi.o rpcclient/cmd_eventlog.o \
-                rpcclient/cmd_winreg.o rpcclient/cmd_fss.o \
-                $(DISPLAY_SEC_OBJ)
-
-RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \
-             $(PARAM_OBJ) $(LIBSMB_OBJ) $(LIB_NONSMBD_OBJ) \
-             $(PASSDB_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBMSRPC_OBJ) \
-             $(READLINE_OBJ) $(GROUPDB_OBJ) $(KRBCLIENT_OBJ) \
-            $(LIBADS_OBJ) $(POPT_LIB_OBJ) \
-            $(SMBLDAP_OBJ) $(DCUTIL_OBJ) \
-            $(LIBCLI_SPOOLSS_OBJ) \
-            $(LIBCLI_EVENTLOG_OBJ) \
-            $(LIBCLI_NTSVCS_OBJ) \
-            $(LIBCLI_DRSUAPI_OBJ) \
-            $(LIBCLI_DFS_OBJ) \
-            $(LIBCLI_ECHO_OBJ) \
-            $(LIBCLI_DSSETUP_OBJ) \
-            $(LIBCLI_WKSSVC_OBJ) \
-            $(LIBCLI_SRVSVC_OBJ) \
-            $(LIBCLI_LSA_OBJ) \
-            $(LIBCLI_SAMR_OBJ) \
-            $(LIBCLI_WINREG_OBJ) \
-            $(LIBCLI_FSRVP_OBJ) \
-            $(RPC_CLIENT_SCHANNEL_OBJ) \
-            rpc_client/init_samr.o
-
-PAM_WINBIND_OBJ = ../nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
-                 $(LIBREPLACE_OBJ) @BUILD_INIPARSER@
-
-LIBSMBCLIENT_THREAD_OBJ = \
-                       libsmb/libsmb_thread_impl.o \
-                       libsmb/libsmb_thread_posix.o
-
-LIBSMBCLIENT_OBJ0 = \
-                   libsmb/libsmb_cache.o \
-                   libsmb/libsmb_compat.o \
-                   libsmb/libsmb_context.o \
-                   libsmb/libsmb_dir.o \
-                   libsmb/libsmb_file.o \
-                   libsmb/libsmb_misc.o \
-                   libsmb/libsmb_path.o \
-                   libsmb/libsmb_printjob.o \
-                   libsmb/libsmb_server.o \
-                   libsmb/libsmb_stat.o \
-                   libsmb/libsmb_xattr.o \
-                   libsmb/libsmb_setget.o
-
-LIBSMBCLIENT_OBJ1 = $(LIBSMBCLIENT_OBJ0) \
-                   $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
-                   $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
-                   $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
-                   $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
-                   $(LIBCLI_SRVSVC_OBJ) \
-                   $(LIBCLI_LSA_OBJ)
-
-LIBSMBCLIENT_OBJ = $(LIBSMBCLIENT_OBJ1)
-
-CLIENT_OBJ1 = client/client.o client/clitar.o \
-             client/dnsbrowse.o \
-             $(LIBMSRPC_OBJ)
-
-CLIENT_OBJ = $(CLIENT_OBJ1) $(PARAM_OBJ) $(LIBSMB_OBJ) \
-            $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(LIBMSRPC_GEN_OBJ) \
-             $(READLINE_OBJ) $(POPT_LIB_OBJ) \
-             $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
-            $(DISPLAY_SEC_OBJ) \
-            $(LIBCLI_SRVSVC_OBJ)
-
-LIBSMBCONF_OBJ = ../lib/smbconf/smbconf.o \
-                ../lib/smbconf/smbconf_util.o \
-                ../lib/smbconf/smbconf_txt.o \
-                lib/smbconf/smbconf_reg.o \
-                lib/smbconf/smbconf_init.o
-
-SMBCONFTORT_OBJ0 = lib/smbconf/testsuite.o
-
-SMBCONFTORT_OBJ = $(SMBCONFTORT_OBJ0) \
-                 $(LIB_NONSMBD_OBJ) \
-                 $(PARAM_OBJ) \
-                 $(LIBSMB_ERR_OBJ) \
-                 $(POPT_LIB_OBJ)
-
-PTHREADPOOLTEST_OBJ = lib/pthreadpool/pthreadpool.o \
-               lib/pthreadpool/tests.o $(LIBREPLACE_OBJ)
-
-LIBNET_OBJ = libnet/libnet_join.o \
-            libnet/libnet_keytab.o \
-            autoconf/librpc/gen_ndr/ndr_libnet_join.o
-
-LIBNET_DSSYNC_OBJ = libnet/libnet_dssync.o \
-                   libnet/libnet_dssync_passdb.o \
-                   libnet/libnet_dssync_keytab.o \
-                   ../libcli/drsuapi/repl_decrypt.o
-
-LIBNET_SAMSYNC_OBJ = libnet/libnet_samsync.o \
-                    libnet/libnet_samsync_ldif.o \
-                    libnet/libnet_samsync_passdb.o \
-                    libnet/libnet_samsync_display.o \
-                    libnet/libnet_samsync_keytab.o \
-                    ../libcli/samsync/decrypt.o
-
-NET_OBJ1 = utils/net.o utils/net_ads.o utils/net_help.o \
-          utils/net_rap.o utils/net_rpc.o utils/net_rpc_samsync.o \
-          utils/net_rpc_join.o utils/net_time.o utils/net_lookup.o \
-          utils/net_cache.o utils/net_groupmap.o utils/net_idmap.o \
-          utils/net_idmap_check.o utils/interact.o \
-          utils/net_status.o utils/net_rpc_printer.o utils/net_rpc_rights.o \
-          utils/net_rpc_service.o utils/net_rpc_registry.o utils/net_usershare.o \
-          utils/netlookup.o utils/net_sam.o utils/net_rpc_shell.o \
-          utils/net_util.o utils/net_rpc_sh_acct.o utils/net_rpc_audit.o \
-          $(PASSWD_UTIL_OBJ) utils/net_dns.o utils/net_ads_gpo.o \
-          utils/net_conf.o utils/net_join.o utils/net_user.o \
-          utils/net_group.o utils/net_file.o utils/net_registry.o utils/net_registry_check.o\
-          utils/net_dom.o utils/net_share.o \
-          utils/net_g_lock.o \
-          utils/net_serverid.o \
-          utils/net_eventlog.o \
-          utils/net_printing.o \
-          utils/net_rpc_trust.o \
-          utils/net_rpc_conf.o\
-          $(LIBNDR_PREG_OBJ) \
-          $(LIBCLI_DRSUAPI_OBJ) \
-          $(LIBCLI_INITSHUTDOWN_OBJ) \
-          $(LIBCLI_DSSETUP_OBJ) \
-          $(LIBCLI_SVCCTL_OBJ) \
-          $(LIBCLI_WKSSVC_OBJ) \
-          registry/reg_parse.o registry/reg_format.o \
-          registry/reg_import.o
-
-# these are not processed by make proto
-NET_OBJ2 = utils/net_registry_util.o utils/net_help_common.o
-
-NET_OBJ = $(NET_OBJ1) \
-         $(NET_OBJ2) @FAKE_KASERVER_OBJ@ \
-         $(LIBADDNS_OBJ0) \
-         $(READLINE_OBJ) \
-         $(LIBGPO_OBJ) $(INIPARSER_OBJ) $(DISPLAY_SEC_OBJ) \
-         $(LIBNET_DSSYNC_OBJ) $(LIBNET_SAMSYNC_OBJ) \
-         $(SMBD_OBJ_BASE)
-
-CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
-               $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
-               $(AFS_SETTOKEN_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
-
-NMBLOOKUP_OBJ = utils/nmblookup.o $(PARAM_OBJ) $(LIBNMB_OBJ) \
-               $(LIB_NONSMBD_OBJ) $(POPT_LIB_OBJ) $(LIBSMB_ERR_OBJ)
-
-SMBTORTURE_OBJ1 = torture/torture.o torture/nbio.o torture/scanner.o torture/utable.o \
-               torture/denytest.o torture/mangle_test.o \
-               torture/nbench.o \
-               torture/test_async_echo.o \
-               torture/test_smbsock_any_connect.o \
-               torture/test_nttrans_create.o \
-               torture/test_nttrans_fsctl.o \
-               torture/test_notify_online.o \
-               torture/test_addrchange.o \
-               torture/test_case_insensitive.o \
-               torture/test_posix_append.o \
-               torture/test_smb2.o \
-               torture/test_chain3.o \
-               torture/test_authinfo_structs.o \
-               torture/test_cleanup.o \
-               torture/test_ctdbconn.o \
-               torture/test_msg.o \
-               torture/test_notify.o \
-               torture/test_dbwrap_watch.o \
-               torture/test_idmap_tdb_common.o \
-               torture/test_dbwrap_ctdb.o \
-               torture/t_strappend.o
-
-SMBTORTURE_OBJ = $(SMBTORTURE_OBJ1) $(PARAM_OBJ) $(TLDAP_OBJ) \
-       $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) $(LOCKING_OBJ) \
-       @LIBWBCLIENT_STATIC@ \
-        torture/wbc_async.o \
-        ../nsswitch/wb_reqtrans.o \
-       ../libcli/lsarpc/util_lsarpc.o \
-       lib/filename_util.o \
-       $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(LIBCLI_ECHO_OBJ)
-
-MSGTEST_OBJ = torture/msgtest.o $(PARAM_OBJ) $(LIBSMB_ERR_OBJ) \
-                 $(LIB_NONSMBD_OBJ) \
-                $(LIBNDR_GEN_OBJ0)
-
-NSSTEST_OBJ = ../nsswitch/nsstest.o ../lib/util/setid.o $(LIBSAMBAUTIL_OBJ)
-
-VFSTEST_OBJ = torture/cmd_vfs.o torture/vfstest.o $(SMBD_OBJ_BASE) $(READLINE_OBJ) \
-               torture/vfstest_chain.o
-
-LOG2PCAP_OBJ = utils/log2pcaphex.o
-
-LOCKTEST2_OBJ = torture/locktest2.o $(PARAM_OBJ) $(LOCKING_OBJ) $(LIBSMB_OBJ) \
-               $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
-               $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(FNAME_UTIL_OBJ)
-
-SMBCACLS_OBJ = utils/smbcacls.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
-               $(KRBCLIENT_OBJ) $(LIB_NONSMBD_OBJ) \
-               $(PASSDB_OBJ) $(GROUPDB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
-               $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) \
-               $(LIBCLI_LSA_OBJ)
-
-SMBCQUOTAS_OBJ = utils/smbcquotas.o $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
-               $(PARAM_OBJ) \
-               $(LIB_NONSMBD_OBJ) \
-               $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) $(POPT_LIB_OBJ) \
-               $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
-               $(LIBCLI_LSA_OBJ)
-
-EVTLOGADM_OBJ0 = utils/eventlogadm.o
-
-EVTLOGADM_OBJ  = $(EVTLOGADM_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
-               $(LIBSMB_ERR_OBJ) $(LIB_EVENTLOG_OBJ) \
-               autoconf/librpc/gen_ndr/ndr_eventlog.o \
-               autoconf/librpc/gen_ndr/ndr_lsa.o
-
-SHARESEC_OBJ0 = utils/sharesec.o
-SHARESEC_OBJ  = $(SHARESEC_OBJ0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
-               $(LIBSMB_ERR_OBJ) \
-                $(POPT_LIB_OBJ)
-
-TALLOCTORT_OBJ = @tallocdir@/testsuite.o @tallocdir@/testsuite_main.o \
-               $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ)
-
-REPLACETORT_OBJ = @libreplacedir@/test/testsuite.o \
-               @libreplacedir@/test/getifaddrs.o \
-               @libreplacedir@/test/os2_delete.o \
-               @libreplacedir@/test/strptime.o \
-               @libreplacedir@/test/main.o \
-               $(LIBREPLACE_OBJ) $(SOCKET_WRAPPER_OBJ)
-
-DEBUG2HTML_OBJ = utils/debug2html.o utils/debugparse.o
-
-SMBFILTER_OBJ = utils/smbfilter.o $(PARAM_OBJ) $(LIBSMB_OBJ) \
-               $(LIB_NONSMBD_OBJ) $(KRBCLIENT_OBJ) \
-               $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ)
-
-WINBIND_WINS_NSS_OBJ = ../nsswitch/wins.o $(PARAM_OBJ) \
-       $(LIB_NONSMBD_OBJ) $(LIBSMB_ERR_OBJ) $(LIBNMB_OBJ)
-
-PAM_SMBPASS_OBJ_0 = pam_smbpass/pam_smb_auth.o pam_smbpass/pam_smb_passwd.o \
-               pam_smbpass/pam_smb_acct.o pam_smbpass/support.o
-PAM_SMBPASS_OBJ = $(PAM_SMBPASS_OBJ_0) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
-               $(SMBLDAP_OBJ) \
-               $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
-               $(AFS_SETTOKEN_OBJ) \
-               $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
-               $(PAM_ERRORS_OBJ)
-
-IDMAP_RW_OBJ = winbindd/idmap_rw.o
-
-IDMAP_TDB_COMMON_OBJ = winbindd/idmap_tdb_common.o
-
-IDMAP_UTIL_OBJ = winbindd/idmap_util.o $(IDMAP_RW_OBJ) \
-                $(IDMAP_TDB_COMMON_OBJ)
-
-IDMAP_OBJ     =  winbindd/idmap.o $(IDMAP_UTIL_OBJ) @IDMAP_STATIC@
-
-NSS_INFO_OBJ = winbindd/nss_info.o @NSS_INFO_STATIC@
-
-IDMAP_HASH_OBJ = \
-               winbindd/idmap_hash/idmap_hash.o \
-               winbindd/idmap_hash/mapfile.o
-
-WINBINDD_OBJ1 = \
-               winbindd/winbindd.o       \
-               winbindd/winbindd_group.o \
-               winbindd/winbindd_util.o  \
-               winbindd/winbindd_cache.o \
-               winbindd/winbindd_pam.o   \
-               winbindd/winbindd_misc.o  \
-               winbindd/winbindd_cm.o    \
-               winbindd/winbindd_wins_byip.o  \
-               winbindd/winbindd_wins_byname.o  \
-               winbindd/winbindd_msrpc.o \
-               winbindd/winbindd_rpc.o   \
-               winbindd/winbindd_reconnect.o \
-               winbindd/winbindd_ads.o   \
-               winbindd/winbindd_samr.o \
-               winbindd/winbindd_dual.o  \
-               winbindd/winbindd_dual_ndr.o  \
-               winbindd/winbindd_dual_srv.o  \
-               autoconf/librpc/gen_ndr/ndr_wbint_c.o \
-               autoconf/librpc/gen_ndr/srv_wbint.o \
-               autoconf/librpc/gen_ndr/ndr_wbint.o \
-               autoconf/librpc/gen_ndr/ndr_idmap.o \
-               winbindd/winbindd_async.o \
-               winbindd/winbindd_creds.o \
-               winbindd/winbindd_cred_cache.o \
-               winbindd/winbindd_ccache_access.o \
-               winbindd/winbindd_domain.o \
-               winbindd/winbindd_idmap.o \
-               winbindd/winbindd_locator.o \
-               winbindd/winbindd_ndr.o \
-               winbindd/wb_ping.o \
-               winbindd/wb_lookupsid.o \
-               winbindd/wb_lookupsids.o \
-               winbindd/wb_lookupname.o \
-               winbindd/wb_uid2sid.o \
-               winbindd/wb_gid2sid.o \
-               winbindd/wb_sids2xids.o \
-               winbindd/wb_queryuser.o \
-               winbindd/wb_lookupuseraliases.o \
-               winbindd/wb_lookupusergroups.o \
-               winbindd/wb_getpwsid.o \
-               winbindd/wb_gettoken.o \
-               winbindd/wb_seqnum.o \
-               winbindd/wb_seqnums.o \
-               winbindd/wb_group_members.o \
-               winbindd/wb_getgrsid.o \
-               winbindd/wb_query_user_list.o \
-               winbindd/wb_fill_pwent.o \
-               winbindd/wb_next_pwent.o \
-               winbindd/wb_next_grent.o \
-               winbindd/wb_dsgetdcname.o \
-               winbindd/winbindd_lookupsid.o \
-               winbindd/winbindd_lookupsids.o \
-               winbindd/winbindd_lookupname.o \
-               winbindd/winbindd_sid_to_uid.o \
-               winbindd/winbindd_sid_to_gid.o \
-               winbindd/winbindd_uid_to_sid.o \
-               winbindd/winbindd_gid_to_sid.o \
-               winbindd/winbindd_sids_to_xids.o \
-               winbindd/winbindd_allocate_uid.o \
-               winbindd/winbindd_allocate_gid.o \
-               winbindd/winbindd_getpwsid.o \
-               winbindd/winbindd_getpwnam.o \
-               winbindd/winbindd_getpwuid.o \
-               winbindd/winbindd_getsidaliases.o \
-               winbindd/winbindd_getuserdomgroups.o \
-               winbindd/winbindd_getgroups.o \
-               winbindd/winbindd_show_sequence.o \
-               winbindd/winbindd_getgrgid.o \
-               winbindd/winbindd_getgrnam.o \
-               winbindd/winbindd_getusersids.o \
-               winbindd/winbindd_lookuprids.o \
-               winbindd/winbindd_setpwent.o \
-               winbindd/winbindd_getpwent.o \
-               winbindd/winbindd_endpwent.o \
-               winbindd/winbindd_setgrent.o \
-               winbindd/winbindd_getgrent.o \
-               winbindd/winbindd_endgrent.o \
-               winbindd/winbindd_dsgetdcname.o \
-               winbindd/winbindd_getdcname.o \
-               winbindd/winbindd_list_users.o \
-               winbindd/winbindd_list_groups.o \
-               winbindd/winbindd_check_machine_acct.o \
-               winbindd/winbindd_change_machine_acct.o \
-               winbindd/winbindd_ping_dc.o \
-               winbindd/winbindd_pam_auth.o \
-               winbindd/winbindd_pam_auth_crap.o \
-               winbindd/winbindd_pam_chauthtok.o \
-               winbindd/winbindd_pam_chng_pswd_auth_crap.o \
-               winbindd/winbindd_pam_logoff.o \
-               auth/auth_util.o \
-               auth/token_util.o \
-               auth/user_util.o \
-               auth/check_samsec.o \
-               auth/server_info.o \
-               auth/server_info_sam.o \
-               auth/user_info.o \
-               auth/pampass.o \
-               ../nsswitch/wb_reqtrans.o
-
-WINBINDD_OBJ = \
-               $(WINBINDD_OBJ1) $(PASSDB_OBJ) $(GROUPDB_OBJ) \
-               $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
-               $(LIBSMB_OBJ) $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
-               $(PROFILE_OBJ) $(SLCACHE_OBJ) $(SMBLDAP_OBJ) \
-               $(LIBADS_OBJ) $(KRBCLIENT_OBJ) $(POPT_LIB_OBJ) \
-               $(DCUTIL_OBJ) $(IDMAP_OBJ) $(NSS_INFO_OBJ) \
-               $(RPC_CONFIG) $(RPC_NCACN_NP) \
-               $(RPC_SAMR_OBJ) $(RPC_LSARPC_OBJ) \
-               $(NPA_TSTREAM_OBJ) \
-               $(AFS_OBJ) $(AFS_SETTOKEN_OBJ) \
-               $(LIBADS_SERVER_OBJ) \
-               $(TDB_VALIDATE_OBJ) \
-               $(LIBCLI_DSSETUP_OBJ) \
-               $(LIBCLI_LSA_OBJ) \
-               $(LIBCLI_SAMR_OBJ) \
-               rpc_client/init_samr.o \
-               $(PAM_ERRORS_OBJ)
-
-WBINFO_OBJ = ../nsswitch/wbinfo.o $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) \
-               $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) \
-               lib/winbind_util.o $(WBCOMMON_OBJ) \
-               $(LIBSMB_ERR_OBJ0) $(LIBSMB_ERR_OBJ1) $(SECRETS_OBJ)
-
-WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) $(LIBREPLACE_OBJ) @WINBIND_NSS_EXTRA_OBJS@
-
-WINBIND_KRB5_LOCATOR_OBJ1 = ../nsswitch/winbind_krb5_locator.o
-WINBIND_KRB5_LOCATOR_OBJ = $(WINBIND_KRB5_LOCATOR_OBJ1) $(LIBREPLACE_OBJ)
-
-POPT_OBJ=../lib/popt/findme.o ../lib/popt/popt.o ../lib/popt/poptconfig.o \
-          ../lib/popt/popthelp.o ../lib/popt/poptparse.o
-
-INIPARSER_OBJ = ../lib/iniparser_build/iniparser.o ../lib/iniparser_build/dictionary.o \
-               ../lib/iniparser_build/strlib.o
-
-TDBBACKUP_OBJ = @tdbdir@/tools/tdbbackup.o $(LIBREPLACE_OBJ) \
-       $(SOCKET_WRAPPER_OBJ)
-
-TDBTOOL_OBJ = @tdbdir@/tools/tdbtool.o $(LIBREPLACE_OBJ) \
-       $(SOCKET_WRAPPER_OBJ)
-
-TDBDUMP_OBJ = @tdbdir@/tools/tdbdump.o $(LIBREPLACE_OBJ) \
-       $(SOCKET_WRAPPER_OBJ)
-
-TDBRESTORE_OBJ = @tdbdir@/tools/tdbrestore.o $(LIBREPLACE_OBJ) \
-       $(SOCKET_WRAPPER_OBJ)
-
-TDBTORTURE_OBJ = @tdbdir@/tools/tdbtorture.o $(LIBREPLACE_OBJ) \
-       $(SOCKET_WRAPPER_OBJ)
-
-
-NTLM_AUTH_OBJ1 = utils/ntlm_auth.o utils/ntlm_auth_diagnostics.o
-
-NTLM_AUTH_OBJ = ${NTLM_AUTH_OBJ1} \
-               ${LIBADS_SERVER_OBJ} \
-               $(PASSDB_OBJ) $(GROUPDB_OBJ) \
-               $(WBCOMMON_OBJ) \
-               $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
-               $(AFS_SETTOKEN_OBJ) \
-               $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
-               $(POPT_LIB_OBJ) $(SMBLDAP_OBJ) @BUILD_INIPARSER@
-
-
-VLP_OBJ = printing/tests/vlp.o \
-          ../lib/util/util_tdb.o \
-          ../lib/util/signal.o \
-          ../lib/util/debug.o \
-          ../lib/util/util_strlist.o \
-          ../lib/util/fault.o \
-          ../lib/util/become_daemon.o \
-          ../lib/util/substitute.o \
-          lib/util_sec.o \
-          ../lib/util/time.o \
-          ../lib/util/charset/util_str.o \
-          ../lib/util/charset/pull_push.o \
-          ../lib/util/charset/util_unistr_w.o \
-          ../lib/util/charset/codepoints.o \
-          ../lib/util/charset/iconv.o \
-          ../lib/util/charset/weird.o \
-          ../lib/util/charset/convert_string.o \
-          $(CHARSET_MACOSXFS_OBJ) \
-          ../lib/util/talloc_stack.o \
-          ../lib/util/smb_threads.o \
-          ../lib/util/xfile.o \
-          ../lib/util/util_file.o \
-          ../lib/util/util.o \
-          ../lib/util/util_str_common.o \
-          ../lib/util/data_blob.o \
-          ../dynconfig/dynconfig.o \
-         ../lib/util/setid.o \
-         $(LIBSAMBAUTIL_OBJ) \
-         param/util.o
-
-RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
-                  $(LIBSMB_OBJ) \
-                  $(PARAM_OBJ) \
-                  $(PASSDB_OBJ) \
-                  $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
-                  $(LIB_NONSMBD_OBJ) \
-                  $(KRBCLIENT_OBJ) \
-                  $(LIBMSRPC_OBJ) \
-                  $(LIBMSRPC_GEN_OBJ)
-
-DBWRAP_TOOL_OBJ = utils/dbwrap_tool.o \
-                 $(PARAM_OBJ) \
-                 $(LIB_NONSMBD_OBJ) \
-                 $(LIBSMB_ERR_OBJ) \
-                 $(POPT_LIB_OBJ)
-
-DBWRAP_TORTURE_OBJ = utils/dbwrap_torture.o \
-                    $(PARAM_OBJ) \
-                    $(LIB_NONSMBD_OBJ) \
-                    $(LIBSMB_ERR_OBJ) \
-                    $(POPT_LIB_OBJ)
-
-SPLIT_TOKENS_OBJ = utils/split_tokens.o \
-                   $(PARAM_OBJ) \
-                  $(LIB_NONSMBD_OBJ) \
-                  $(POPT_LIB_OBJ) \
-                  $(LIBSAMBA_OBJ)
-
-######################################################################
-# now the rules...
-######################################################################
-all:: SHOWFLAGS basics libs $(SBIN_PROGS) $(BIN_PROGS) \
-       $(MODULES) $(NSS_MODULES) $(PAM_MODULES) \
-       $(EXTRA_ALL_TARGETS)
-
-basics:: samba3-idl mkparam
-
-nss_modules:: $(NSS_MODULES)
-
-pam_modules:: $(PAM_MODULES)
-
-pam_smbpass: SHOWFLAGS bin/pam_smbpass.@SHLIBEXT@
-
-pam_winbind: SHOWFLAGS bin/pam_winbind.@SHLIBEXT@
-
-gpext_modules:: $(GPEXT_MODULES)
-
-torture:: SHOWFLAGS basics $(TORTURE_PROGS)
-
-smbtorture3 : SHOWFLAGS bin/smbtorture3
-
-masktest : SHOWFLAGS bin/masktest
-
-msgtest : SHOWFLAGS bin/msgtest
-
-locktest : SHOWFLAGS bin/locktest
-
-smbcacls : SHOWFLAGS bin/smbcacls
-
-smbcquotas : SHOWFLAGS bin/smbcquotas
-
-locktest2 : SHOWFLAGS bin/locktest2
-
-debug2html : SHOWFLAGS bin/debug2html
-
-smbfilter : SHOWFLAGS bin/smbfilter
-
-eventlogadm: SHOWFLAGS bin/eventlogadm
-
-sharesec: SHOWFLAGS bin/sharesec
-
-talloctort : SHOWFLAGS $(TALLOCTORT)
-
-replacetort : SHOWFLAGS bin/replacetort
-
-smbconftort : SHOWFLAGS bin/smbconftort
-
-pthreadpooltest : SHOWFLAGS bin/pthreadpooltest
-
-timelimit : SHOWFLAGS bin/timelimit
-
-nsswitch : SHOWFLAGS bin/winbindd bin/wbinfo @WINBIND_NSS@ \
-       @WINBIND_WINS_NSS@ @WINBIND_KRB5_LOCATOR@ \
-       bin/pam_winbind.@SHLIBEXT@ bin/smbcontrol
-
-wins : SHOWFLAGS @WINBIND_WINS_NSS@
-
-modules:: SHOWFLAGS $(MODULES)
-
-
-#####################################################################
-## Perl IDL Compiler
-
-IDL_FILES = librpc/idl/messaging.idl \
-           librpc/idl/libnetapi.idl \
-           librpc/idl/wbint.idl \
-           librpc/idl/perfcount.idl \
-           librpc/idl/secrets.idl \
-           librpc/idl/open_files.idl \
-           librpc/idl/libnet_join.idl
-
-samba3-idl::
-       @PIDL_OUTPUTDIR="autoconf/librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
-        srcdir="$(srcdir)" ../librpc/build_idl.sh ../librpc/idl/*.idl
-       @PIDL_OUTPUTDIR="autoconf/librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
-        srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh $(IDL_FILES)
-
-idl_full::
-       @PIDL_OUTPUTDIR="autoconf/librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
-        srcdir="$(srcdir)" ../librpc/build_idl.sh --full ../librpc/idl/*.idl
-       @PIDL_OUTPUTDIR="autoconf/librpc/gen_ndr" PIDL_ARGS="$(PIDL_ARGS)" CPP="$(CPP)" PIDL="../pidl/pidl" \
-        srcdir="$(srcdir)" $(srcdir)/script/build_idl.sh --full $(IDL_FILES)
-
-mkparam: autoconf/lib/param/param_local.h autoconf/lib/param/param_global.h autoconf/source3/param/param_global.h autoconf/lib/param/param_proto.h autoconf/lib/param/s3_param.h
-
-autoconf/lib/param/param_local.h:
-        $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c --file autoconf/lib/param/param_local.h --generate-scope=LOCAL
-autoconf/lib/param/param_global.h:
-        $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c $(srcdir)/../lib/param/loadparm.c --file autoconf/lib/param/param_global.h --generate-scope=GLOBAL
-autoconf/source3/param/param_global.h:
-        $(PERL) ../script/mkparamdefs.pl $(srcdir)/../lib/param/param_functions.c $(srcdir)/param/loadparm.c --file autoconf/source3/param/param_global.h --generate-scope=GLOBAL
-autoconf/lib/param/param_proto.h:
-        $(PERL) ../source4/script/mkproto.pl $(srcdir)/../lib/param/param_functions.c $(srcdir)/../lib/param/loadparm.c --public autoconf/lib/param/param_proto.h  --private autoconf/lib/param/param_proto.h
-autoconf/lib/param/s3_param.h:
-        $(PERL) ../script/mks3param.pl $(srcdir)/../lib/param/param_functions.c $(srcdir)/../lib/param/loadparm.c --file autoconf/lib/param/s3_param.h
-
-
-#####################################################################
-
-
-everything:: all libtalloc libsmbclient libnetapi debug2html smbfilter talloctort replacetort smbconftort modules torture \
-       $(EVERYTHING_PROGS) \
-       vfs_examples
-
-.SUFFIXES:
-.SUFFIXES: .c .o .lo
-
-.PHONY: showflags SHOWFLAGS
-
-showflags: SHOWFLAGS
-
-SHOWFLAGS::
-       @echo "Using CFLAGS     = $(CFLAGS)"
-       @echo "      PICFLAG    = $(PICFLAG)"
-       @echo "      LIBS       = $(LIBS)"
-       @echo "      LDFLAGS    = $(LDFLAGS)"
-       @echo "      DYNEXP     = $(DYNEXP)"
-       @echo "      LDSHFLAGS  = $(LDSHFLAGS)"
-       @echo "      SHLIBEXT   = @SHLIBEXT@"
-       @echo "      SONAMEFLAG = @SONAMEFLAG@"
-
-# "showcflags" target for debuggin how CFLAGS are composed:
-
-.PHONY: showcflags SHOWCFLAGS
-
-showcflags: SHOWCFLAGS
-
-SHOWCFLAGS::
-       @echo "CFLAGS         = $(CFLAGS)"
-       @echo "FLAGS          = $(FLAGS)"
-       @echo ""
-       @echo "FLAGS1         = @FLAGS1@"
-       @echo "SAMBA_CPPFLAGS = @SAMBA_CPPFLAGS@"
-       @echo "CPPFLAGS       = $(CPPFLAGS)"
-       @echo "ISA            = $(ISA)"
-
-MAKEDIR = || exec false; \
-         if test -d "$$dir"; then :; else \
-         echo mkdir "$$dir"; \
-         mkdir -p "$$dir" >/dev/null 2>&1 || \
-         test -d "$$dir" || \
-         mkdir "$$dir" || \
-         exec false; fi || exec false
-
-# Run a static checker.
-CHECK_CC = $(CC_CHECKER) $(CFLAGS) $(PICFLAG) -c $< -o $@
-# Compile a source file.
-COMPILE_CC = $(CC) $(CFLAGS) $(PICFLAG) -c $< -o $@
-# Compile a source file with the installation paths defined.
-COMPILE_CC_PATH = $(CC) $(PATH_FLAGS) $(CFLAGS) $(PICFLAG) -c $< -o $@
-
-COMPILE = $(COMPILE_CC)
-
-.c.o:
-       @if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
-        dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
-       @if test -n "$(CC_CHECKER)"; then \
-         echo "Checking  $*.c with '$(CC_CHECKER)'";\
-         $(CHECK_CC); \
-        fi
-       @echo Compiling $*.c
-       @$(COMPILE) && exit 0;\
-               echo "The following command failed:" 1>&2;\
-               echo "$(subst ",\",$(COMPILE_CC))" 1>&2;\
-               $(COMPILE_CC) >/dev/null 2>&1
-@BROKEN_CC@    -mv `echo $@ | sed 's%^.*/%%g'` $@
-
-PRECOMPILED_HEADER = $(builddir)/include/includes.h.gch
-
-# this adds support for precompiled headers. To use it, install a snapshot
-# of gcc-3.4 and run 'make pch' before you do the main build.
-pch::
-       rm -f $(PRECOMPILED_HEADER)
-       $(MAKE) $(PRECOMPILED_HEADER)
-
-$(PRECOMPILED_HEADER): $(srcdir)/include/includes.h
-       $(COMPILE)
-
-BINARY_PREREQS = bin/.dummy
-
-# These dependencies are only approximately correct: we want to make
-# sure Samba's paths are updated if ./configure is re-run.  Really it
-# would be nice if "make prefix=/opt/samba all" also rebuilt things,
-# but since we also require "make install prefix=/opt/samba" *not* to
-# rebuild it's a bit hard.
-
-../dynconfig/dynconfig.o: ../dynconfig/dynconfig.c Makefile
-       @echo Compiling $*.c
-       @$(COMPILE_CC_PATH) && exit 0;\
-               echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE_CC_PATH)" 1>&2;\
-               $(COMPILE_CC_PATH) >/dev/null 2>&1
-
-../nsswitch/pam_winbind.o: ../nsswitch/pam_winbind.c Makefile
-       @echo Compiling $*.c
-       @$(COMPILE_CC_PATH) && exit 0;\
-               echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE_CC_PATH)" 1>&2;\
-               $(COMPILE_CC_PATH) >/dev/null 2>&1
-
-../nsswitch/wb_common.o: ../nsswitch/wb_common.c Makefile
-       @echo Compiling $*.c
-       @$(COMPILE_CC_PATH) && exit 0;\
-               echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE_CC_PATH)" 1>&2;\
-               $(COMPILE_CC_PATH) >/dev/null 2>&1
-
-### Start section of object files that require PTHREAD_CFLAGS
-../nsswitch/wins.o: ../nsswitch/wins.c
-       @echo Compiling $*.c
-       @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
-               echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
-               $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
-
-../nsswitch/winbind_nss_linux.o: ../nsswitch/winbind_nss_linux.c
-       @echo Compiling $*.c
-       @$(COMPILE_CC) $(PTHREAD_CFLAGS) && exit 0;\
-               echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
-               $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
-
-libsmb/libsmb_thread_impl.o: libsmb/libsmb_thread_impl.c
-       @echo Compiling $*.c
-       @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
-               echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
-               $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
-
-libsmb/libsmb_thread_posix.o: libsmb/libsmb_thread_posix.c
-       @echo Compiling $*.c
-       @$(COMPILE) $(PTHREAD_CFLAGS) && exit 0;\
-               echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE_CC) $(PTHREAD_CFLAGS)" 1>&2;\
-               $(COMPILE_CC) $(PTHREAD_CFLAGS) >/dev/null 2>&1
-### End section of object files that require PTHREAD_CFLAGS
-
-lib/version.o: lib/version.c include/autoconf/version.h
-       @echo Compiling $*.c
-       @$(COMPILE_CC_PATH) && exit 0;\
-               echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE_CC_PATH)" 1>&2;\
-               $(COMPILE_CC_PATH) >/dev/null 2>&1
-
-smbd/build_options.o: smbd/build_options.c Makefile include/autoconf/config.h include/build_env.h include/proto.h
-       @echo Compiling $*.c
-       @$(COMPILE_CC_PATH) && exit 0;\
-               echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE_CC_PATH)" 1>&2;\
-               $(COMPILE_CC_PATH) >/dev/null 2>&1
-
-smbd/build_options.c: include/autoconf/config.h.in script/mkbuildoptions.awk
-       @echo Generating $@
-       @dir=smbd $(MAKEDIR) && $(AWK) -f $(srcdir)/script/mkbuildoptions.awk > $(builddir)/smbd/build_options.c < $(srcdir)/include/autoconf/config.h.in
-
-bin/.dummy:
-       @if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
-         dir=bin $(MAKEDIR); fi
-       @: >> $@ || : > $@ # what a fancy emoticon!
-
-bin/smbd: $(BINARY_PREREQS) $(SMBD_OBJ) $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT) @BUILD_POPT@
-       @echo Linking $@
-       @$(CC) -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
-               $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
-               $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
-               $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) \
-               $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
-
-bin/nmbd: $(BINARY_PREREQS) $(NMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(NMBD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(POPT_LIBS) \
-               $(KRB5LIBS) $(LDAP_LIBS) $(ZLIB_LIBS)
-
-bin/rpcclient: $(BINARY_PREREQS) $(RPCCLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(LDFLAGS) $(RPCCLIENT_OBJ) \
-               $(DYNEXP) $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
-               $(KRB5LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) \
-               $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(PASSDB_LIBS)
-
-bin/smbclient: $(BINARY_PREREQS) $(CLIENT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(CLIENT_OBJ) $(LDFLAGS) $(DYNEXP) \
-               $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
-               $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(DNSSD_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
-
-bin/net: $(BINARY_PREREQS) $(NET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT) $(LIBNETAPI)
-       @echo Linking $@
-       @$(CC) -o $@ $(NET_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
-               $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
-               $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
-               $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) \
-               $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS) $(LIBNETAPI_LIBS) $(TERMLDFLAGS) $(TERMLIBS)
-
-bin/profiles: $(BINARY_PREREQS) $(PROFILES_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(PROFILES_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
-               $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/smbspool: $(BINARY_PREREQS) $(CUPS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(CUPS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) \
-               @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
-               $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(ZLIB_LIBS)
-
-bin/testparm: $(BINARY_PREREQS) $(TESTPARM_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(TESTPARM_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/smbta-util: $(BINARY_PREREQS) $(SMBTA_UTIL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(SMBTA_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/smbstatus: $(BINARY_PREREQS) $(STATUS_OBJ) $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT) @BUILD_POPT@
-       @echo Linking $@
-       @$(CC) -o $@ $(STATUS_OBJ) $(LDFLAGS) $(LDAP_LIBS) @SMBD_FAM_LIBS@ \
-               $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \
-               $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) $(DNSSD_LIBS) $(AVAHI_LIBS) \
-               $(POPT_LIBS) @SMBD_LIBS@ $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) \
-               $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
-
-bin/smbcontrol: $(BINARY_PREREQS) $(SMBCONTROL_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -DUSING_SMBCONTROL -o $@ \
-               $(SMBCONTROL_OBJ) $(DYNEXP) $(LDFLAGS) \
-               $(LIBS) $(LDAP_LIBS) @LIBUNWIND_PTRACE@ $(POPT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/smbtree: $(BINARY_PREREQS) $(SMBTREE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(SMBTREE_OBJ) $(LDFLAGS) $(DYNEXP) \
-               $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
-
-bin/smbpasswd: $(BINARY_PREREQS) $(SMBPASSWD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(SMBPASSWD_OBJ) $(LDFLAGS) $(PASSDB_LIBS) \
-               $(DYNEXP) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
-
-bin/pdbedit: $(BINARY_PREREQS) $(PDBEDIT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(PDBEDIT_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(POPT_LIBS) $(PASSDB_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) \
-               $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
-
-bin/smbget: $(BINARY_PREREQS) $(SMBGET_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(POPT_LIBS)  $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
-
-bin/nmblookup: $(BINARY_PREREQS) $(NMBLOOKUP_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(NMBLOOKUP_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(POPT_LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/smbtorture3: $(BINARY_PREREQS) $(SMBTORTURE_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT) $(IDMAP_UTIL_OBJ)
-       @echo Linking $@
-       @$(CC) -o $@ $(SMBTORTURE_OBJ) $(IDMAP_UTIL_OBJ) $(LDFLAGS) $(DYNEXP) \
-               $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) \
-               $(LIBTDBS_LIBS) $(ZLIB_LIBS) $(LIBWBCLIENT_LIBS)
-
-bin/talloctort: $(BINARY_PREREQS) $(TALLOCTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(TALLOCTORT_OBJ) $(LDFLAGS) \
-               $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/replacetort: $(REPLACETORT_OBJ) @BUILD_POPT@ $(LIBTALLOC)
-       @echo Linking $@
-       @$(CC) -o $@ $(REPLACETORT_OBJ) $(LDFLAGS) \
-               $(DYNEXP) $(LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS)
-
-bin/smbconftort: $(SMBCONFTORT_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(SMBCONFTORT_OBJ) $(LDFLAGS) \
-               $(DYNEXP) $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/pthreadpooltest: $(PTHREADPOOLTEST_OBJ)
-       @echo Linking $@
-       @$(CC) -o $@ $(PTHREADPOOLTEST_OBJ) $(LDFLAGS) $(LIBS) $(PTHREAD_LDFLAGS)
-
-bin/masktest: $(BINARY_PREREQS) $(MASKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(MASKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
-               $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
-               @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(ZLIB_LIBS)
-
-bin/msgtest: $(BINARY_PREREQS) $(MSGTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(MSGTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
-               $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(ZLIB_LIBS)
-
-bin/smbcacls: $(BINARY_PREREQS) $(SMBCACLS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) \
-               $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
-
-bin/smbcquotas: $(BINARY_PREREQS) $(SMBCQUOTAS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) \
-               $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
-
-bin/eventlogadm: $(BINARY_PREREQS) $(EVTLOGADM_OBJ) $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(EVTLOGADM_OBJ) $(DYNEXP) $(LDFLAGS) \
-               $(LIBS) $(LDAP_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/sharesec: $(BINARY_PREREQS) $(SHARESEC_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(SHARESEC_OBJ) $(DYNEXP) $(LDFLAGS) \
-               $(LIBS) $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/locktest: $(BINARY_PREREQS) $(LOCKTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(LOCKTEST_OBJ) $(LDFLAGS) $(DYNEXP) \
-               $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
-               @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(ZLIB_LIBS)
-
-bin/nsstest: $(BINARY_PREREQS) $(NSSTEST_OBJ) $(LIBTALLOC)
-       @echo Linking $@
-       @$(CC) -o $@ $(NSSTEST_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(LIBTALLOC_LIBS)
-
-bin/vfstest: $(BINARY_PREREQS) $(VFSTEST_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(AVAHI_LIBS) \
-               $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(DNSSD_LIBS) \
-               $(ACL_LIBS) $(LIBS) $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) \
-               @SMBD_LIBS@ $(NSCD_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) \
-               $(LIBWBCLIENT_LIBS) $(ZLIB_LIBS)
-
-bin/log2pcap: $(BINARY_PREREQS) $(LOG2PCAP_OBJ) @BUILD_POPT@ $(LIBTALLOC)
-       @echo Linking $@
-       @$(CC) -o $@ $(LOG2PCAP_OBJ) $(LDFLAGS) $(DYNEXP) \
-               $(POPT_LIBS) $(LIBS) $(LIBTALLOC_LIBS)
-
-bin/locktest2: $(BINARY_PREREQS) $(LOCKTEST2_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(LOCKTEST2_OBJ) $(LDFLAGS) $(DYNEXP) \
-               @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
-               $(LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(ZLIB_LIBS)
-
-bin/debug2html: $(BINARY_PREREQS) $(DEBUG2HTML_OBJ) @BUILD_POPT@ $(LIBTALLOC)
-       @echo Linking $@
-       @$(CC) -o $@ $(DEBUG2HTML_OBJ) $(LDFLAGS) $(DYNEXP) \
-               $(LIBS) $(LIBTALLOC_LIBS)
-
-bin/smbfilter: $(BINARY_PREREQS) $(SMBFILTER_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(SMBFILTER_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(KRB5LIBS) $(LDAP_LIBS) $(POPT_LIBS) \
-               @LIBWBCLIENT_STATIC@ $(LIBWBCLIENT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(ZLIB_LIBS)
-
-bin/versiontest: $(BINARY_PREREQS) lib/version_test.o $(VERSION_OBJ)
-       @echo Linking $@
-       @$(CC) $(FLAGS) -o $@ $(VERSION_OBJ) lib/version_test.o
-
-
-#####################################################################
-#
-# libraries
-#
-#####################################################################
-
-MKSYMS_SH = $(srcdir)/script/mksyms.sh
-
-
-#-------------------------------------------------------------------
-#
-# libtalloc
-#
-#-------------------------------------------------------------------
-
-
-LIBTALLOC_OBJ0 = @LIBTALLOC_OBJ0@
-LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ)
-
-LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@
-
-$(LIBTALLOC_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTALLOC_OBJ0)
-       @echo Linking non-shared library $@
-       @-$(AR) -rc $@ $(LIBTALLOC_OBJ0)
-libtalloc: $(LIBTALLOC)
-
-cleanlibtalloc::
-       -rm -f \
-               $(LIBTALLOC_STATIC_TARGET)
-
-libs:: libtalloc
-cleanlibs:: cleanlibtalloc
-
-showlibtalloc:
-       @echo  ""
-       @echo "LIBTALLOC_STATIC                = @LIBTALLOC_STATIC@"
-       @echo "LIBTALLOC_STATIC_TARGET         = $(LIBTALLOC_STATIC_TARGET)"
-       @echo "LIBTALLOC                       = $(LIBTALLOC)"
-
-showlibs:: showlibtalloc
-
-#-------------------------------------------------------------------
-#
-# libtdb
-#
-#-------------------------------------------------------------------
-
-LIBTDB_OBJ0 = @LIBTDB_OBJ0@
-LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ)
-
-LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
-
-$(LIBTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBTDB_OBJ0)
-       @echo Linking non-shared library $@
-       @-$(AR) -rc $@ $(LIBTDB_OBJ0)
-
-libtdb: $(LIBTDB)
-
-cleanlibtdb::
-       -rm -f \
-               $(LIBTDB_STATIC_TARGET)
-
-libs:: libtdb
-cleanlibs:: cleanlibtdb
-
-showlibtdb:
-       @echo  ""
-       @echo "LIBTDB_STATIC                = @LIBTDB_STATIC@"
-       @echo "LIBTDB_STATIC_TARGET         = $(LIBTDB_STATIC_TARGET)"
-       @echo "LIBTDB                       = $(LIBTDB)"
-
-showlibs:: showlibtdb
-
-#-------------------------------------------------------------------
-#
-# libntdb
-#
-#-------------------------------------------------------------------
-
-LIBNTDB_OBJ0 = @LIBNTDB_OBJ0@
-LIBNTDB_OBJ = $(LIBNTDB_OBJ0) $(LIBREPLACE_OBJ)
-
-LIBNTDB_STATIC_TARGET=@LIBNTDB_STATIC_TARGET@
-
-$(LIBNTDB_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNTDB_OBJ0)
-       @echo Linking non-shared library $@
-       @-$(AR) -rc $@ $(LIBNTDB_OBJ0)
-
-libntdb: $(LIBNTDB)
-
-cleanlibntdb::
-       -rm -f \
-               $(LIBNTDB_STATIC_TARGET)
-
-libs:: libntdb
-cleanlibs:: cleanlibntdb
-
-showlibntdb:
-       @echo  ""
-       @echo "LIBNTDB_STATIC                = @LIBNTDB_STATIC@"
-       @echo "LIBNTDB_STATIC_TARGET         = $(LIBNTDB_STATIC_TARGET)"
-       @echo "LIBNTDB                       = $(LIBNTDB)"
-
-showlibs:: showlibntdb
-
-#-------------------------------------------------------------------
-#
-# libwbclient
-#
-#-------------------------------------------------------------------
-
-LIBWBCLIENT_OBJ0 = ../nsswitch/libwbclient/wbclient.o \
-                 ../nsswitch/libwbclient/wbc_util.o \
-                 ../nsswitch/libwbclient/wbc_pwd.o \
-                 ../nsswitch/libwbclient/wbc_idmap.o \
-                 ../nsswitch/libwbclient/wbc_sid.o \
-                 ../nsswitch/libwbclient/wbc_guid.o \
-                 ../nsswitch/libwbclient/wbc_pam.o
-
-LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \
-                 $(WBCOMMON_OBJ) \
-                 $(LIBREPLACE_OBJ) \
-                 ../lib/util/blocking.o \
-                 $(SOCKET_WRAPPER_OBJ)
-
-LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@
-LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@
-LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@
-LIBWBCLIENT_SHARED_TARGET_SONAME=@LIBWBCLIENT_SHARED_TARGET_SOVER@
-LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@
-LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@
-LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h
-
-$(LIBWBCLIENT_SYMS): $(LIBWBCLIENT_HEADERS)
-       @$(MKSYMS_SH) $(AWK) $@ $(LIBWBCLIENT_HEADERS)
-
-$(LIBWBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ) $(LIBWBCLIENT_SYMS)
-       @echo Linking shared library $@
-       @$(SHLD_DSO) $(LIBWBCLIENT_OBJ) $(LIBREPLACE_LIBS) \
-               @SONAMEFLAG@`basename $@`
-
-$(LIBWBCLIENT_SHARED_TARGET): $(LIBWBCLIENT_SHARED_TARGET_SONAME)
-       @rm -f $@
-       @ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` $@
-
-$(LIBWBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
-       @echo Linking non-shared library $@
-       @-$(AR) -rc $@ $(LIBWBCLIENT_OBJ0) $(WBCOMMON_OBJ)
-
-libwbclient: $(LIBWBCLIENT)
-
-cleanlibwbclient::
-       -rm -f \
-               $(LIBWBCLIENT_SYMS) \
-               $(LIBWBCLIENT_STATIC_TARGET) \
-               $(LIBWBCLIENT_SHARED_TARGET) \
-               $(LIBWBCLIENT_SHARED_TARGET_SONAME)
-
-installlibwbclient:: installdirs libwbclient
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
-       -$(INSTALLLIBCMD_SH) $(LIBWBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
-       @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
-       -if test -r $(LIBWBCLIENT_SHARED_TARGET_SONAME) ; then \
-               ln -f -s `basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)` \
-                       $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)` ; \
-       fi
-       -$(INSTALLLIBCMD_A) bin/libwbclient.a $(DESTDIR)$(LIBDIR)
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
-       -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBWBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
-
-uninstalllibwbclient::
-       -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET)`
-       -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_SHARED_TARGET_SONAME)`
-       -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBWBCLIENT_STATIC_TARGET)`
-       -rm -f $(DESTDIR)${prefix}/include/wbclient.h
-
-libs:: libwbclient
-installlibs:: @INSTALL_LIBWBCLIENT@
-uninstalllibs:: uninstalllibwbclient
-cleanlibs:: cleanlibwbclient
-shlibs test_shlibs: @LIBWBCLIENT_SHARED@
-
-showlibwbclient:
-       @echo  ""
-       @echo "LIBWBCLIENT_SHARED               = @LIBWBCLIENT_SHARED@"
-       @echo "LIBWBCLIENT_STATIC               = @LIBWBCLIENT_STATIC@"
-       @echo "LIBWBCLIENT_LIBS                 = $(LIBWBCLIENT_LIBS)"
-       @echo ""
-       @echo "LIBWBCLIENT_SHARED_TARGET        = $(LIBWBCLIENT_SHARED_TARGET)"
-       @echo "LIBWBCLIENT_SOVER                = $(LIBWBCLIENT_SOVER)"
-       @echo "LIBWBCLIENT_FULLVER              = $(LIBWBCLIENT_FULLVER)"
-       @echo "LIBWBCLIENT_SHARED TARGET_SONAME = $(LIBWBCLIENT_SHARED_TARGET_SONAME)"
-       @echo "LIBWBCLIENT_STATIC_TARGET        = $(LIBWBCLIENT_STATIC_TARGET)"
-       @echo "LIBWBCLIENT                      = $(LIBWBCLIENT)"
-
-showlibs:: showlibwbclient
-
-
-#-------------------------------------------------------------------
-#
-# libnetapi
-#
-#-------------------------------------------------------------------
-
-LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
-                lib/netapi/cm.o \
-                autoconf/librpc/gen_ndr/ndr_libnetapi.o \
-                lib/netapi/libnetapi.o \
-                lib/netapi/joindomain.o \
-                lib/netapi/serverinfo.o \
-                lib/netapi/getdc.o \
-                lib/netapi/user.o \
-                lib/netapi/group.o \
-                lib/netapi/localgroup.o \
-                lib/netapi/samr.o \
-                lib/netapi/sid.o \
-                lib/netapi/share.o \
-                lib/netapi/file.o \
-                lib/netapi/shutdown.o \
-                lib/netapi/netlogon.o
-
-LIBNETAPI_OBJ  = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
-                $(LIBSMBCONF_OBJ) \
-                $(REG_SMBCONF_OBJ) \
-                $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
-                $(LIBSMB_OBJ) $(KRBCLIENT_OBJ) \
-                $(LIBMSRPC_OBJ) $(LIBMSRPC_GEN_OBJ) \
-                $(PASSDB_OBJ) $(SMBLDAP_OBJ) $(GROUPDB_OBJ) \
-                $(DCUTIL_OBJ) $(LIBADS_OBJ) $(PRIVILEGES_BASIC_OBJ) \
-                auth/token_util.o \
-                $(LIBCLI_INITSHUTDOWN_OBJ) \
-                $(LIBCLI_WKSSVC_OBJ) \
-                $(LIBCLI_SRVSVC_OBJ) \
-                $(LIBCLI_LSA_OBJ) \
-                $(LIBCLI_SAMR_OBJ) \
-                $(RPC_CLIENT_SCHANNEL_OBJ) \
-                rpc_client/init_samr.o
-
-LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@
-LIBNETAPI_SOVER=@LIBNETAPI_SOVER@
-LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@
-LIBNETAPI_SHARED_TARGET_SONAME=@LIBNETAPI_SHARED_TARGET_SOVER@
-LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@
-LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@
-LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h
-
-$(LIBNETAPI_SYMS): $(LIBNETAPI_HEADERS)
-       @$(MKSYMS_SH) $(AWK) $@ $(LIBNETAPI_HEADERS)
-
-$(LIBNETAPI_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBNETAPI_OBJ) $(LIBNETAPI_SYMS) $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking shared library $@
-       @$(SHLD_DSO) $(LIBNETAPI_OBJ) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
-               $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) \
-               @SONAMEFLAG@`basename $@`
-
-$(LIBNETAPI_SHARED_TARGET): $(LIBNETAPI_SHARED_TARGET_SONAME)
-       @rm -f $@
-       @ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
-
-$(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
-       @echo Linking non-shared library $@
-       @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
-
-libnetapi: $(LIBNETAPI)
-
-cleanlibnetapi::
-       -rm -f \
-               $(LIBNETAPI_SYMS) \
-               $(LIBNETAPI_STATIC_TARGET) \
-               $(LIBNETAPI_SHARED_TARGET) \
-               $(LIBNETAPI_SHARED_TARGET_SONAME)
-
-installlibnetapi:: installdirs libnetapi
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
-       -$(INSTALLLIBCMD_SH) $(LIBNETAPI_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
-       @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
-       -if test -r $(LIBNETAPI_SHARED_TARGET_SONAME) ; then \
-               ln -f -s `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` \
-                       $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)` ; \
-       fi
-       -$(INSTALLLIBCMD_A) $(LIBNETAPI_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
-       -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
-
-uninstalllibnetapi::
-       -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
-       -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
-       -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
-       -rm -f $(DESTDIR)${prefix}/include/netapi.h
-
-libs:: libnetapi
-installlibs:: @INSTALL_LIBNETAPI@
-uninstalllibs:: @UNINSTALL_LIBNETAPI@
-cleanlibs:: cleanlibnetapi
-shlibs test_shlibs: @LIBNETAPI_SHARED@
-
-showlibnetapi:
-       @echo  ""
-       @echo "LIBNETAPI_SHARED               = @LIBNETAPI_SHARED@"
-       @echo "LIBNETAPI_STATIC               = @LIBNETAPI_STATIC@"
-       @echo "LIBNETAPI_LIBS                 = $(LIBNETAPI_LIBS)"
-       @echo ""
-       @echo "LIBNETAPI_SHARED_TARGET        = $(LIBNETAPI_SHARED_TARGET)"
-       @echo "LIBNETAPI_SOVER                = $(LIBNETAPI_SOVER)"
-       @echo "LIBNETAPI_FULLVER              = $(LIBNETAPI_FULLVER)"
-       @echo "LIBNETAPI_SHARED TARGET_SONAME = $(LIBNETAPI_SHARED_TARGET_SONAME)"
-       @echo "LIBNETAPI_STATIC_TARGET        = $(LIBNETAPI_STATIC_TARGET)"
-       @echo "LIBNETAPI                      = $(LIBNETAPI)"
-
-showlibs:: showlibnetapi
-
-#-------------------------------------------------------------------
-#
-# libsmbclient
-#
-#-------------------------------------------------------------------
-
-LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@
-LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@
-LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@
-LIBSMBCLIENT_SHARED_TARGET_SONAME=@LIBSMBCLIENT_SHARED_TARGET_SOVER@
-LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@
-LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@
-LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@
-LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
-
-$(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
-       @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
-
-$(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) $(LIBSMBCLIENT_SYMS) $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking shared library $@
-       @$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) $(LIBSMBCLIENT_THREAD_OBJ) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) $(LIBS) \
-               $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(ZLIB_LIBS) $(PTHREAD_LDFLAGS) \
-               @SONAMEFLAG@`basename $@`
-
-$(LIBSMBCLIENT_SHARED_TARGET): $(LIBSMBCLIENT_SHARED_TARGET_SONAME)
-       @rm -f $@
-       @ln -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` $@
-
-$(LIBSMBCLIENT_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ1)
-       @echo Linking non-shared library $@
-       @-$(AR) -rc $@ $(LIBSMBCLIENT_OBJ1)
-
-libsmbclient: $(LIBSMBCLIENT)
-
-cleanlibsmbclient::
-       -rm -f \
-               $(LIBSMBCLIENT_SHARED_TARGET) \
-               $(LIBSMBCLIENT_SHARED_TARGET_SONAME) \
-               $(LIBSMBCLIENT_STATIC_TARGET)
-
-installlibsmbclient:: installdirs libsmbclient
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
-       -$(INSTALLLIBCMD_SH) $(LIBSMBCLIENT_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
-       @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
-       -if test -r $(LIBSMBCLIENT_SHARED_TARGET_SONAME) ; then \
-               ln -f -s `basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)` \
-                       $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)` ; \
-       fi
-       -$(INSTALLLIBCMD_A) $(LIBSMBCLIENT_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
-       -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBCLIENT_HEADERS) $(DESTDIR)${prefix}/include
-
-installclientlib:: installlibsmbclient
-
-uninstalllibsmbclient::
-       -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET)`
-       -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_SHARED_TARGET_SONAME)`
-       -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBCLIENT_STATIC_TARGET)`
-       -rm -f $(DESTDIR)${prefix}/include/libsmbclient.h
-
-uninstallclientlib:: uninstalllibsmbclient
-
-libs:: libsmbclient
-installlibs:: @INSTALL_LIBSMBCLIENT@
-uninstalllibs:: @UNINSTALL_LIBSMBCLIENT@
-cleanlibs:: cleanlibsmbclient
-shlibs test_shlibs: @LIBSMBCLIENT_SHARED@
-
-showlibsmbclient:
-       @echo  ""
-       @echo "LIBSMBCLIENT_SHARED               = @LIBSMBCLIENT_SHARED@"
-       @echo "LIBSMBCLIENT_STATIC               = @LIBSMBCLIENT_STATIC@"
-       @echo "LIBSMBCLIENT_LIBS                 = $(LIBSMBCLIENT_LIBS)"
-       @echo ""
-       @echo "LIBSMBCLIENT_SHARED_TARGET        = $(LIBSMBCLIENT_SHARED_TARGET)"
-       @echo "LIBSMBCLIENT_SOVER                = $(LIBSMBCLIENT_SOVER)"
-       @echo "LIBSMBCLIENT_FULLVER              = $(LIBSMBCLIENT_FULLVER)"
-       @echo "LIBSMBCLIENT_SHARED TARGET_SONAME = $(LIBSMBCLIENT_SHARED_TARGET_SONAME)"
-       @echo "LIBSMBCLIENT_STATIC_TARGET        = $(LIBSMBCLIENT_STATIC_TARGET)"
-       @echo "LIBSMBCLIENT                      = $(LIBSMBCLIENT)"
-
-showlibs:: showlibsmbclient
-
-#-------------------------------------------------------------------
-#
-# libsmbsharemodes
-#
-#-------------------------------------------------------------------
-
-LIBSMBSHAREMODES_OBJ0 = libsmb/smb_share_modes.o ../lib/ccan/hash/hash.o
-
-LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0)
-
-LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@
-LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@
-LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@
-LIBSMBSHAREMODES_SHARED_TARGET_SONAME=@LIBSMBSHAREMODES_SHARED_TARGET_SOVER@
-LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@
-LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@
-LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@
-LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
-
-$(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
-       @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
-
-$(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking shared library $@
-       @$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
-               $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) \
-               @SONAMEFLAG@`basename $@`
-
-$(LIBSMBSHAREMODES_SHARED_TARGET): $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)
-       @rm -f $@
-       @ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` $@
-
-$(LIBSMBSHAREMODES_STATIC_TARGET): $(BINARY_PREREQS) $(LIBSMBSHAREMODES_OBJ0)
-       @echo Linking non-shared library $@
-       @-$(AR) -rc $@ $(LIBSMBSHAREMODES_OBJ0)
-
-libsmbsharemodes: $(LIBSMBSHAREMODES)
-
-cleanlibsmbsharemodes::
-       -rm -f \
-               $(LIBSMBSHAREMODES_SHARED_TARGET) \
-               $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) \
-               $(LIBSMBSHAREMODES_STATIC_TARGET)
-
-installlibsmbsharemodes:: installdirs libsmbsharemodes
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(LIBDIR)
-       -$(INSTALLLIBCMD_SH) $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) $(DESTDIR)$(LIBDIR)
-       @rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
-       -if test -r $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME) ; then \
-               ln -f -s `basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)` \
-                       $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)` ; \
-       fi
-       -$(INSTALLLIBCMD_A) $(LIBSMBSHAREMODES_STATIC_TARGET) $(DESTDIR)$(LIBDIR)
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
-       -$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(LIBSMBSHAREMODES_HEADERS) $(DESTDIR)${prefix}/include
-
-uninstalllibsmbsharemodes::
-       -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET)`
-       -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)`
-       -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBSMBSHAREMODES_STATIC_TARGET)`
-       -rm -f $(DESTDIR)${prefix}/include/smb_share_modes.h
-
-libs:: libsmbsharemodes
-installlibs:: @INSTALL_LIBSMBSHAREMODES@
-uninstalllibs:: @UNINSTALL_LIBSMBSHAREMODES@
-cleanlibs:: cleanlibsmbsharemodes
-shlibs test_shlibs: @LIBSMBSHAREMODES_SHARED@
-
-showlibsmbsharemodes:
-       @echo  ""
-       @echo "LIBSMBSHAREMODES_SHARED               = @LIBSMBSHAREMODES_SHARED@"
-       @echo "LIBSMBSHAREMODES_STATIC               = @LIBSMBSHAREMODES_STATIC@"
-       @echo "LIBSMBSHAREMODES_TARGET               = @LIBSMBSHAREMODES_TARGET@"
-       @echo "LIBSMBSHAREMODES_LIBS                 = $(LIBSMBSHAREMODES_LIBS)"
-       @echo ""
-       @echo "LIBSMBSHAREMODES_SHARED_TARGET        = $(LIBSMBSHAREMODES_SHARED_TARGET)"
-       @echo "LIBSMBSHAREMODES_SOVER                = $(LIBSMBSHAREMODES_SOVER)"
-       @echo "LIBSMBSHAREMODES_FULLVER              = $(LIBSMBSHAREMODES_FULLVER)"
-       @echo "LIBSMBSHAREMODES_SHARED TARGET_SONAME = $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME)"
-       @echo "LIBSMBSHAREMODES_STATIC_TARGET        = $(LIBSMBSHAREMODES_STATIC_TARGET)"
-       @echo "LIBSMBSHAREMODES                      = $(LIBSMBSHAREMODES)"
-
-showlibs:: showlibsmbsharemodes
-
-#####################################################################
-#
-# shared modules
-#
-#####################################################################
-
-# Linker command to link our shared libraries:
-SHLD_LIBRARY = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
-             -o $@ @SONAMEFLAG@`basename $@`
-# Linker command to link samba internal plugin modules:
-SHLD_MODULE = $(SHLD) $(LDSHFLAGS_MODULES) $(MODULE_EXPORTS) \
-       -o $@ @SONAMEFLAG@`basename $@`
-
-bin/librpc_lsarpc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_LSARPC_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_LSARPC_OBJ)
-
-bin/librpc_samr.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SAMR_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_SAMR_OBJ)
-
-bin/librpc_srvsvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SRVSVC_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_SRVSVC_OBJ)
-
-bin/librpc_svcctl.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SVCCTL_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_SVCCTL_OBJ)
-
-bin/librpc_ntsvcs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NTSVCS_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_NTSVCS_OBJ)
-
-bin/librpc_wkssvc.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WKSSVC_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_WKSSVC_OBJ)
-
-bin/librpc_NETLOGON.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETLOGON_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_NETLOGON_OBJ)
-
-bin/librpc_winreg.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_WINREG_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_WINREG_OBJ)
-
-bin/librpc_initshutdown.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_INITSHUTDOWN_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_INITSHUTDOWN_OBJ)
-
-bin/librpc_dssetup.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_DSSETUP_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_DSSETUP_OBJ)
-
-bin/librpc_spoolss.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_SPOOLSS_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_SPOOLSS_OBJ)
-
-bin/librpc_eventlog.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_EVENTLOG_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_EVENTLOG_OBJ)
-
-bin/librpc_netdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_NETDFS_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_NETDFS_OBJ)
-
-bin/librpc_rpcecho.@SHLIBEXT@: $(BINARY_PREREQS) $(RPC_RPCECHO_OBJ)
-       @echo "Linking $@"
-       @$(SHLD_LIBRARY) $(RPC_RPCECHO_OBJ)
-
-bin/winbindd: $(BINARY_PREREQS) $(WINBINDD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo "Linking $@"
-       @$(CC) -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(AUTH_LIBS) \
-               $(PASSDB_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) \
-               $(ZLIB_LIBS)
-
-bin/vlp: $(BINARY_PREREQS) $(VLP_OBJ) $(LIBTDBS) $(LIBTALLOC)
-       @echo "Linking $@"
-       @$(CC) -o $@ $(VLP_OBJ) $(LDFLAGS) $(DYNEXP) \
-               $(TERMLDFLAGS) $(TERMLIBS) $(LIBS) $(POPT_LIBS) \
-               $(LIBTALLOC_LIBS) \
-               $(LIBTDBS_LIBS)
-
-@WINBIND_NSS@: $(BINARY_PREREQS) $(WINBIND_NSS_OBJ)
-       @echo "Linking $@"
-       @$(SHLD) $(WINBIND_NSS_LDSHFLAGS) -o $@ $(WINBIND_NSS_OBJ) \
-               $(LIBREPLACE_LIBS) $(PTHREAD_LDFLAGS) \
-               @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
-
-@WINBIND_WINS_NSS@: $(BINARY_PREREQS) $(WINBIND_WINS_NSS_OBJ) $(LIBTALLOC) $(LIBTDBS)
-       @echo "Linking $@"
-       @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
-               $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(ZLIB_LIBS) \
-               @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
-
-bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)
-       @echo "Linking $@"
-       @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT_LIBS) $(KRB5LIBS) \
-               $(LIBREPLACE_LIBS) @SONAMEFLAG@`basename $@`
-
-bin/pam_winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_WINBIND_OBJ) $(LIBTALLOC) $(LIBWBCLIENT)
-       @echo "Linking shared library $@"
-       @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ \
-               $(LIBREPLACE_LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) @SONAMEFLAG@`basename $@`
-
-##########
-# Plugins:
-##########
-
-bin/builtin.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_BUILTIN_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(AUTH_BUILTIN_OBJ)
-
-bin/domain.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_DOMAIN_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(AUTH_DOMAIN_OBJ)
-
-bin/script.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SCRIPT_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(AUTH_SCRIPT_OBJ)
-
-bin/winbind.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WINBIND_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(AUTH_WINBIND_OBJ)
-
-bin/wbc.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_WBC_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(AUTH_WBC_OBJ)
-
-bin/unix.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_UNIX_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(AUTH_UNIX_OBJ)
-
-bin/sam.@SHLIBEXT@: $(BINARY_PREREQS) $(AUTH_SAM_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(AUTH_SAM_OBJ)
-
-bin/ldapsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_ldap.o passdb/pdb_nds.o \
-                       passdb/pdb_ipa.o passdb/pdb_ldap_util.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) passdb/pdb_ldap.o passdb/pdb_nds.o passdb/pdb_ipa.o \
-                       passdb/pdb_ldap_util.o $(LDAP_LIBS)
-
-bin/tdbsam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_tdb.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) passdb/pdb_tdb.o
-
-bin/wbc_sam.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_wbc_sam.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) passdb/pdb_wbc_sam.o
-
-bin/smbpasswd.@SHLIBEXT@: $(BINARY_PREREQS) passdb/pdb_smbpasswd.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) passdb/pdb_smbpasswd.o
-
-bin/rid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rid.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) winbindd/idmap_rid.o
-
-bin/passdb.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_passdb.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) winbindd/idmap_passdb.o
-
-bin/autorid.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_autorid.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) winbindd/idmap_autorid.o
-
-bin/ad.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ad.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) winbindd/idmap_ad.o
-
-bin/rfc2307.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_rfc2307.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) winbindd/idmap_rfc2307.o
-
-bin/hash.@SHLIBEXT@: $(BINARY_PREREQS) $(IDMAP_HASH_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(IDMAP_HASH_OBJ)
-
-bin/tdb2.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) winbindd/idmap_tdb2.o $(IDMAP_RW_OBJ)
-
-bin/ldap.@SHLIBEXT@: $(BINARY_PREREQS) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) winbindd/idmap_ldap.o $(IDMAP_RW_OBJ)
-
-# NOTE, there is no build rule for a dynamic default VFS module because
-# this one MUST MUST MUST be built statically.
-
-bin/audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AUDIT_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_AUDIT_OBJ)
-
-bin/extd_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXTD_AUDIT_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_EXTD_AUDIT_OBJ)
-
-bin/full_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FULL_AUDIT_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_FULL_AUDIT_OBJ)
-
-bin/recycle.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_RECYCLE_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_RECYCLE_OBJ)
-
-bin/netatalk.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NETATALK_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_NETATALK_OBJ)
-
-bin/fake_perms.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_PERMS_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_FAKE_PERMS_OBJ)
-
-bin/fake_acls.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FAKE_ACLS_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_FAKE_ACLS_OBJ)
-
-bin/default_quota.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DEFAULT_QUOTA_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_DEFAULT_QUOTA_OBJ)
-
-bin/readonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READONLY_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_READONLY_OBJ)
-
-bin/shadow_copy.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_SHADOW_COPY_OBJ)
-
-bin/shadow_copy2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SHADOW_COPY2_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_SHADOW_COPY2_OBJ)
-
-bin/syncops.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SYNCOPS_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_SYNCOPS_OBJ)
-
-bin/cap.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CAP_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_CAP_OBJ)
-
-bin/expand_msdfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_EXPAND_MSDFS_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_EXPAND_MSDFS_OBJ)
-
-bin/afsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AFSACL_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_AFSACL_OBJ)
-
-bin/xattr_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_XATTR_TDB_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_XATTR_TDB_OBJ)
-
-bin/posixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_POSIXACL_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_POSIXACL_OBJ)
-
-bin/aixacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_AIXACL_OBJ)
-
-bin/aixacl2.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIXACL2_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_AIXACL2_OBJ)
-
-bin/solarisacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SOLARISACL_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_SOLARISACL_OBJ)
-
-bin/zfsacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ZFSACL_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_ZFSACL_OBJ) @ZFSACL_LIBS@
-
-bin/nfs4acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NFS4ACL_XATTR_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_NFS4ACL_XATTR_OBJ)
-
-bin/hpuxacl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_HPUXACL_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_HPUXACL_OBJ)
-
-bin/tru64acl.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TRU64ACL_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_TRU64ACL_OBJ)
-
-bin/catia.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CATIA_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_CATIA_OBJ)
-
-bin/streams_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_XATTR_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_STREAMS_XATTR_OBJ)
-
-bin/streams_depot.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_STREAMS_DEPOT_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_STREAMS_DEPOT_OBJ)
-
-bin/cacheprime.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CACHEPRIME_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_CACHEPRIME_OBJ)
-
-bin/prealloc.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREALLOC_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_PREALLOC_OBJ)
-
-bin/commit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_COMMIT_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_COMMIT_OBJ)
-
-bin/gpfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_GPFS_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_GPFS_OBJ)
-
-bin/notify_fam.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_NOTIFY_FAM_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_NOTIFY_FAM_OBJ) @SMB_FAM_LIBS@
-
-bin/readahead.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_READAHEAD_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_READAHEAD_OBJ)
-
-bin/tsmsm.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TSMSM_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_TSMSM_OBJ)
-
-bin/fileid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_FILEID_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_FILEID_OBJ)
-
-bin/aio_fork.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_FORK_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_AIO_FORK_OBJ)
-
-bin/aio_pthread.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_PTHREAD_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_AIO_PTHREAD_OBJ)
-
-bin/aio_posix.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_POSIX_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_AIO_POSIX_OBJ)
-
-bin/aio_linux.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_AIO_LINUX_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_AIO_LINUX_OBJ)
-
-bin/preopen.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_PREOPEN_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_PREOPEN_OBJ)
-
-bin/acl_xattr.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_XATTR_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_ACL_XATTR_OBJ)
-
-bin/smb_traffic_analyzer.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_SMB_TRAFFIC_ANALYZER_OBJ)
-
-bin/acl_tdb.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_ACL_TDB_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_ACL_TDB_OBJ)
-
-bin/pc_test.@SHLIBEXT@: $(BINARY_PREREQS) $(PERFCOUNT_TEST_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(PERFCOUNT_TEST_OBJ)
-
-bin/registry.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/registry.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) libgpo/gpext/registry.o
-
-bin/scripts.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/scripts.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) libgpo/gpext/scripts.o
-
-bin/security.@SHLIBEXT@: $(BINARY_PREREQS) libgpo/gpext/security.o
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) libgpo/gpext/security.o
-
-bin/dirsort.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_DIRSORT_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_DIRSORT_OBJ)
-
-bin/scannedonly.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_SCANNEDONLY_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_SCANNEDONLY_OBJ)
-
-bin/crossrename.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CROSSRENAME_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_CROSSRENAME_OBJ)
-
-bin/linux_xfs_sgid.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_LINUX_XFS_SGID_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_LINUX_XFS_SGID_OBJ)
-
-bin/time_audit.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_TIME_AUDIT_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_TIME_AUDIT_OBJ)
-
-bin/media_harmony.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_MEDIA_HARMONY_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_MEDIA_HARMONY_OBJ)
-
-bin/btrfs.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_BTRFS_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_BTRFS_OBJ)
-
-bin/ceph.@SHLIBEXT@: $(BINARY_PREREQS) $(VFS_CEPH_OBJ)
-       @echo "Building plugin $@"
-       @$(SHLD_MODULE) $(VFS_CEPH_OBJ)
-
-#########################################################
-## IdMap NSS plugins
-
-## None here right now
-#########################################################
-
-bin/wbinfo: $(BINARY_PREREQS) $(WBINFO_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(LDFLAGS) $(WBINFO_OBJ) $(DYNEXP) $(LIBS) \
-               $(LDAP_LIBS) $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) \
-               $(LIBWBCLIENT_LIBS)
-
-bin/ntlm_auth: $(BINARY_PREREQS) $(NTLM_AUTH_OBJ) $(PARAM_OBJ) \
-       $(LIB_NONSMBD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo Linking $@
-       @$(CC) -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \
-               $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) $(ZLIB_LIBS) \
-               $(POPT_LIBS) $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS) @INIPARSERLIBS@
-
-bin/pam_smbpass.@SHLIBEXT@: $(BINARY_PREREQS) $(PAM_SMBPASS_OBJ) $(LIBTALLOC) $(LIBWBCLIENT) $(LIBTDBS)
-       @echo "Linking shared library $@"
-       @$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_SMBPASS_OBJ) -lpam $(DYNEXP) \
-               $(LIBS) $(LDAP_LIBS) $(NSCD_LIBS) $(KRB5LIBS) $(ZLIB_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS) $(LIBWBCLIENT_LIBS)
-
-bin/tdbbackup: $(BINARY_PREREQS) $(TDBBACKUP_OBJ) $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(LDFLAGS) $(TDBBACKUP_OBJ) $(DYNEXP) \
-               $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/tdbtool: $(BINARY_PREREQS) $(TDBTOOL_OBJ) $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(LDFLAGS) $(TDBTOOL_OBJ) $(DYNEXP) \
-               $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/tdbdump: $(BINARY_PREREQS) $(TDBDUMP_OBJ) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(LDFLAGS) $(TDBDUMP_OBJ) $(DYNEXP) $(LIBTDBS_LIBS) $(LIBREPLACE_LIBS)
-
-bin/tdbrestore: $(BINARY_PREREQS) $(TDBRESTORE_OBJ) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(LDFLAGS) $(TDBRESTORE_OBJ) $(DYNEXP) $(LIBTDBS_LIBS) $(LIBREPLACE_LIBS)
-
-bin/tdbtorture: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDBS)
-       @echo Linking $@
-       @$(CC) -o $@ $(LDFLAGS) $(TDBTORTURE_OBJ) $(DYNEXP) \
-               $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/timelimit: script/tests/timelimit.o
-       @echo Linking $@
-       @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o $(LDFLAGS)
-
-bin/rpc_open_tcp: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo "Linking $@"
-       @$(CC) -o $@ $(RPC_OPEN_TCP_OBJ) $(LDFLAGS) $(DYNEXP) \
-               $(LIBS) $(LIBTALLOC_LIBS) $(LIBWBCLIENT_LIBS) \
-               $(LDAP_LIBS) $(KRB5LIBS) $(NSCD_LIBS)
-
-bin/test_lp_load: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo "Linking $@"
-       @$(CC) -o $@ $(TEST_LP_LOAD_OBJ) \
-               $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
-               $(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-bin/dbwrap_tool: $(DBWRAP_TOOL_OBJ) $(LIBTALLOC) $(LIBTDBS)
-       @echo "Linking $@"
-       @$(CC) -o $@ $(DBWRAP_TOOL_OBJ)\
-               $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(LDAP_LIBS) \
-               $(POPT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-install-dbwrap_tool:: bin/dbwrap_tool
-       @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
-
-bin/dbwrap_torture: $(DBWRAP_TORTURE_OBJ) $(LIBTALLOC) $(LIBTDBS) $(POPT_LIBS)
-       @echo "Linking $@"
-       @$(CC) -o $@ $(DBWRAP_TORTURE_OBJ)\
-               $(LDFLAGS) $(DYNEXP) $(LIBS) \
-               $(LDAP_LIBS) \
-               $(POPT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-install-dbwrap_torture:: bin/dbwrap_torture
-       @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $<
-
-bin/split_tokens: $(BINARY_PREREQS) $(SPLIT_TOKENS_OBJ) @BUILD_POPT@ $(LIBTALLOC) $(LIBTDBS) $(LIBWBCLIENT)
-       @echo "Linking $@"
-       @$(CC) -o $@ $(SPLIT_TOKENS_OBJ) \
-               $(LDFLAGS) $(DYNEXP) \
-               $(LIBS) $(POPT_LIBS) \
-               $(LDAP_LIBS) $(LIBWBCLIENT_LIBS) \
-               $(LIBTALLOC_LIBS) $(LIBTDBS_LIBS)
-
-install:: installservers installbin installman \
-               installscripts installdat installmodules \
-               @INSTALL_PAM_MODULES@ installlibs installmo
-
-install-everything:: install installmodules
-
-# DESTDIR is used here to prevent packagers wasting their time
-# duplicating the Makefile. Remove it and you will have the privelege
-# of package each samba release for muliple versions of multiple
-# distributions and operating systems, or at least supplying patches
-# to all the packaging files required for this, prior to committing
-# the removal of DESTDIR. Do not remove it even though you think it
-# is not used
-
-installdirs::
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) \
-               $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) \
-               $(VARDIR) $(PRIVATE_DIR) $(PIDDIR) $(LOCKDIR) $(STATEDIR) \
-               $(NMBDSOCKETDIR) $(WINBINDD_SOCKET_DIR) $(WINBINDD_PRIVILEGED_SOCKET_DIR) \
-               $(CACHEDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR)
-
-installservers:: all installdirs
-       @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
-
-installbin:: all installdirs
-       @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
-
-# Some symlinks are required for the 'probing' of modules.
-# This mechanism should go at some point..
-installmodules:: modules installdirs
-       @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
-       @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
-       @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
-       @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(NSSINFOLIBDIR) $(NSS_INFO_MODULES)
-       @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
-       @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
-       @$(SHELL) $(srcdir)/script/installmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
-       @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(PDBLIBDIR) ldapsam.@SHLIBEXT@ NDS_ldapsam.@SHLIBEXT@
-       @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) rhosts.@SHLIBEXT@ hostsequiv.@SHLIBEXT@
-       @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) sam.@SHLIBEXT@ sam_ignoredomain.@SHLIBEXT@
-       @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) domain.@SHLIBEXT@ trustdomain.@SHLIBEXT@ ntdomain.@SHLIBEXT@
-       @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(AUTHLIBDIR) builtin.@SHLIBEXT@ guest.@SHLIBEXT@ fixed_challenge.@SHLIBEXT@ name_to_ntstatus.@SHLIBEXT@
-       @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/ad.@SHLIBEXT@ rfc2307.@SHLIBEXT@ sfu.@SHLIBEXT@ sfu20.@SHLIBEXT@
-       @$(SHELL) $(srcdir)/script/linkmodules.sh $(DESTDIR)$(NSSINFOLIBDIR) ../idmap/hash.@SHLIBEXT@ hash.@SHLIBEXT@
-
-installscripts:: installdirs
-       @$(SHELL) $(srcdir)/script/installscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
-
-installdat:: installdirs
-       @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR) $(CODEPAGEDIR) $(srcdir)
-
-installpammodules:: $(PAM_MODULES)
-       @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(PAMMODULESDIR)
-       @for module in $(PAM_MODULES); do \
-               echo "Installing module $${module} as $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
-               $(INSTALLCMD) -m $(INSTALLPERMS_BIN) bin/$${module}.@SHLIBEXT@ \
-                       "$(DESTDIR)/$(PAMMODULESDIR)"; \
-       done
-
-# revert to the previously installed version
-revert::
-       @$(SHELL) $(srcdir)/script/revert.sh $(SBINDIR) $(SBIN_PROGS)
-       @$(SHELL) $(srcdir)/script/revert.sh $(BINDIR) $(BIN_PROGS) $(SCRIPTS)
-
-installman:: installdirs
-       @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C "@ROFF@"
-
-installmo:: all installdirs
-       @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
-
-.PHONY: showlayout
-
-showlayout::
-       @echo "Samba will be installed into:"
-       @echo " prefix:                $(prefix)"
-       @echo " exec_prefix:           $(exec_prefix)"
-       @echo " sysconfdir:            $(sysconfdir)"
-       @echo " localstatedir:         $(localstatedir)"
-       @echo " datarootdir:           $(datarootdir)"
-       @echo " BINDIR:                $(BINDIR)"
-       @echo " SBINDIR:               $(SBINDIR)"
-       @echo " LIBDIR:                $(LIBDIR)"
-#      @echo " LIBEXECDIR:            $(LIBEXECDIR)"
-       @echo " MANDIR:                $(MANDIR)"
-       @echo " DATADIR:               $(DATADIR)"
-       @echo " LOCALEDIR:             $(LOCALEDIR)"
-#      @echo " SCRIPTSBINDIR:         $(SCRIPTSBINDIR)"
-#      @echo " PYTHONDIR:             $(PYTHONDIR)"
-#      @echo " PYTHONARCHDIR:         $(PYTHONARCHDIR)"
-       @echo " MODULESDIR:            $(MODULESDIR)"
-       @echo " INCLUDEDIR:            $(INCLUDEDIR)"
-       @echo " SETUPDIR:              $(SETUPDIR)"
-#      @echo " PKGCONFIGDIR:          $(PKGCONFIGDIR)"
-       @echo " CODEPAGEDIR:           $(CODEPAGEDIR)"
-       @echo " PAMMODULESDIR:         $(PAMMODULESDIR)"
-       @echo " CONFIGDIR:             $(CONFIGDIR)"
-       @echo " PRIVATE_DIR:           $(PRIVATE_DIR)"
-       @echo " LOCKDIR:               $(LOCKDIR)"
-       @echo " PIDDIR:                $(PIDDIR)"
-       @echo " STATEDIR:              $(STATEDIR)"
-       @echo " CACHEDIR:              $(CACHEDIR)"
-       @echo " LOGFILEBASE:           $(LOGFILEBASE)"
-       @echo " SOCKET_DIR:            $(SOCKET_DIR)"
-       @echo " PRIVILEGED_SOCKET_DIR: $(PRIVILEGED_SOCKET_DIR)"
-       @echo " WINBINDD_SOCKET_DIR:   $(WINBINDD_SOCKET_DIR)"
-       @echo " WINBINDD_PRIVILEGED_SOCKET_DIR: $(WINBINDD_PRIVILEGED_SOCKET_DIR)"
-       @echo " NMBDSOCKETDIR:         $(NMBDSOCKETDIR)"
-#      @echo " NTP_SIGND_SOCKET_DIR:  $(NTP_SIGND_SOCKET_DIR)"
-       @echo " NCALRPCDIR:            $(NCALRPCDIR)"
-       @echo " CONFIGFILE:            $(CONFIGFILE)"
-       @echo " LMHOSTSFILE:           $(LMHOSTSFILE)"
-       @echo " SMB_PASSWD_FILE:       $(SMB_PASSWD_FILE)"
-
-
-uninstall:: uninstallmo uninstallman uninstallservers uninstallbin uninstallscripts uninstalldat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@
-
-uninstallmo::
-       @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir)
-
-uninstallman::
-       @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(srcdir) C
-
-uninstallservers::
-       @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS)
-
-uninstallbin::
-       @$(SHELL) script/uninstallbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(BIN_PROGS)
-
-uninstallmodules::
-       @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(VFSLIBDIR) $(VFS_MODULES)
-       @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PDBLIBDIR) $(PDB_MODULES)
-       @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(IDMAPLIBDIR) $(IDMAP_MODULES)
-       @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(AUTHLIBDIR) $(AUTH_MODULES)
-       @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(GPEXTLIBDIR) $(GPEXT_MODULES)
-       @$(SHELL) $(srcdir)/script/uninstallmodules.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(PERFCOUNTLIBDIR) $(PERFCOUNT_MODULES)
-
-uninstallscripts::
-       @$(SHELL) $(srcdir)/script/uninstallscripts.sh $(INSTALLPERMS_BIN) $(DESTDIR)$(BINDIR) $(SCRIPTS)
-
-uninstalldat::
-       @$(SHELL) $(srcdir)/script/uninstalldat.sh $(DESTDIR) $(LIBDIR) $(srcdir)
-
-uninstallpammodules::
-       @for module in $(PAM_MODULES); do \
-               echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \
-               rm -f "$(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@"; \
-       done
-
-cleanlibs::
-       -rm -f ../lib/*/*.o ../lib/*/*/*.o \
-               ../lib/*/*.ho \
-               ../libcli/*.o ../libcli/*/*.o ../libcli/*/*/*.o \
-               ../librpc/*/*.o \
-               ../libgpo/*.o ../libgpo/*/*.o \
-               ../libds/*.o ../libds/*/*.o ../dynconfig/*.o ../auth/*.o ../auth/*/*.o
-
-clean:: cleanlibs
-       -rm -f include/build_env.h
-       -rm -f smbd/build_options.c
-       -rm -f autoconf/lib/param/param_local.h
-       -rm -f autoconf/lib/param/param_global.h
-       -rm -f autoconf/lib/param/param_proto.h
-       -rm -f autoconf/lib/param/s3_param.h
-       -rm -f autoconf/source3/param/param_global.h
-       -rm -f $(PRECOMPILED_HEADER)
-       -rm -f core */*~ *~ \
-               */*.o */*/*.o */*/*/*.o */*/*/*/*.o \
-               ../testsuite/*/*.o \
-               ../nsswitch/*.o ../nsswitch/*/*.o ../nsswitch/*/*/*.o ../nsswitch/*.@SHLIBEXT@ \
-               ../client/*.o \
-               */*.@SHLIBEXT@ */*/*.@SHLIBEXT@ */*/*/*.@SHLIBEXT@ \
-               $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) \
-               $(MODULES) $(TORTURE_PROGS) \
-               $(EVERYTHING_PROGS) \
-               bin/timelimit \
-               .headers.stamp */src/*.o
-       -rm -rf t_dir
-
-include/build_env.h: script/build_env.sh
-       @echo Building include/build_env.h
-       @$(SHELL) $(srcdir)/script/build_env.sh $(srcdir) $(builddir) $(CC) \
-         > $(builddir)/include/build_env.h
-
-proto::
-
-etags::
-       rm -f TAGS
-       find $(srcdir)/.. -name "*.[ch]" | xargs -n 100 etags --append $(ETAGS_OPTIONS)
-
-ctags::
-       ctags $(CTAGS_OPTIONS) `find $(srcdir)/.. -name "*.[ch]" | grep -v proto\.h`
-
-realclean:: clean
-       -rm -f config.log bin/.dummy script/findsmb script/gen-8bit-gap.sh
-       -rm -f script/installbin.sh script/uninstallbin.sh
-
-distclean:: realclean
-       -rm -f smbadduser
-       -rm -f include/autoconf/config.h Makefile
-       -rm -f config.status config.cache so_locations
-       -rm -rf .deps TAGS
-
-realdistclean:: distclean
-       -rm -f include/autoconf/config.h.in
-       -rm -f include/autoconf/version.h
-       -rm -f autoconf/librpc/gen_ndr/*.[ch]
-       -rm -f configure
-
-# when configure.in is updated, reconfigure
-$(srcdir)/configure: $(srcdir)/configure.in
-       @echo "WARNING: you need to rerun ./autogen.sh"
-
-config.status: $(srcdir)/configure
-       @echo "WARNING: you need to run ./configure"
-
-Makefile: $(srcdir)/Makefile.in config.status
-       @echo "WARNING: you need to run ./config.status"
-
-######################################################################
-# Samba Testing Framework
-
-# Check shared libs for unresolved symbols
-test_shlibs:
-       @echo "Testing $? "
-       @$(LIB_PATH_VAR)=./bin && \
-       export $(LIB_PATH_VAR) && \
-       for module in $?; do \
-               ./script/tests/dlopen.sh $(LIBDL) $${module} \
-                       || exit 1; \
-       done
-
-# Check for NSS module problems.
-test_nss_modules:: nss_modules
-       @echo "Testing $(NSS_MODULES) "
-       @$(LIB_PATH_VAR)=./bin && \
-       export $(LIB_PATH_VAR) && \
-       for module in $(NSS_MODULES); do \
-               ./script/tests/dlopen.sh $(LIBDL) $${module} \
-                       || exit 1; \
-       done
-
-# Check for PAM module problems.  Specifically, check that every module we
-# built can actually be loaded by a minimal PAM-aware application.
-test_pam_modules:: pam_modules
-       @echo "Testing $(PAM_MODULES) "
-       @$(LIB_PATH_VAR)=./bin && \
-       export $(LIB_PATH_VAR) && \
-       for module in $(PAM_MODULES); do \
-               ./script/tests/dlopen.sh -lpam $(LIBDL) bin/$${module}.@SHLIBEXT@ \
-                       || exit 1; \
-       done
-
-
-##
-## Targets for 'make test'
-##
-
-valgrindtest:: all torture timelimit bin/smbtorture
-       @echo Running Test suite with valgrind
-       @$(MAKE) test \
-        NMBD_VALGRIND="xterm -n nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
-        WINBINDD_VALGRIND="xterm -n winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
-        SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
-        VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log"
-
-selftestdir = ../selftest
-
-S3_LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)="$(builddir)/bin:$$$(LIB_PATH_VAR)"
-
-test:: all torture timelimit bin/smbtorture
-       @LIB_PATH_VAR=$(LIB_PATH_VAR) $(S3_LD_LIBPATH_OVERRIDE) \
-               NSS_WRAPPER_WINBIND_SO_PATH="$(srcdir)/../nsswitch/libnss_winbind.so" \
-               SELFTESTDIR="$(selftestdir)" SELFTESTPREFIX="$(selftest_prefix)" \
-               SOURCEDIR="$(srcdir)" \
-               VFSLIBDIR="$(builddir)/bin" \
-               RUN_FROM_BUILD_FARM="$(RUN_FROM_BUILD_FARM)" \
-               SUBUNIT_FORMATTER="$(SUBUNIT_FORMATTER)" \
-               PERL="$(PERL)" PYTHON="$(PYTHON)" PYTHONPATH="$(srcdir)/../bin/python" \
-               $(srcdir)/selftest/s3-selftest.sh
-
-test-%:
-       $(MAKE) test TESTS=$*
-
-buildfarm-test:
-       $(MAKE) test RUN_FROM_BUILD_FARM=yes
-
-subunit-test:
-       $(MAKE) test SUBUNIT_FORMATTER=cat
-
-SELFTEST_TESTENV = s3dc
-
-testenv:
-       $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) TESTS="--testenv"
-
-gdbtestenv:
-       $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
-               NMBD_VALGRIND="xterm -n nmbd -title nmbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
-               WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
-               SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
-               TESTS="--testenv"
-
-valgrindtestenv:
-       $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
-               NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
-               WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
-               SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
-               TESTS="--testenv"
-
-
-# Check for Winbind struct 32/64bit padding
-test_wbpad:
-       @echo "Testing winbind request/response structure for 32/64bit padding"
-       @./script/tests/wb_pad.sh || exit 1;
-
-##
-## Examples:
-##
-
-libsmbclient_examples: libsmbclient
-       $(MAKE) -C ../examples/libsmbclient -f Makefile.internal
-
-clean_libsmbclient_examples:
-       $(MAKE) -C ../examples/libsmbclient -f Makefile.internal clean
-
-libnetapi_examples: libnetapi
-       $(MAKE) -C lib/netapi/examples
-
-clean_libnetapi_examples:
-       $(MAKE) -C lib/netapi/examples clean
-
-.PHONY: bin/smbtorture
-
-bin/smbtorture: $(BINARY_PREREQS)
-       $(MAKE) -f Makefile-smbtorture bin/smbtorture
-
-.PHONY: vfs_examples
-
-vfs_examples:
-       ( \
-       cd ../examples/VFS && \
-       ./configure && \
-       $(MAKE) clean && \
-       $(MAKE) \
-       )
diff --git a/source3/autogen.sh b/source3/autogen.sh
deleted file mode 100755 (executable)
index 4f39e10..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
-#!/bin/sh
-
-# Run this script to build samba from GIT.
-
-
-_exit() {
-       echo $@ >&2
-       cd ${OLD_DIR}
-       exit 1
-}
-
-OLD_DIR=$(pwd)
-BASE_DIR=$(dirname $0)
-SCRIPT_NAME=$(basename $0)
-
-cd ${BASE_DIR} || exit 1
-
-
-while true; do
-    case $1 in
-       --version-file)
-           VERSION_FILE=$2
-           shift 2
-           ;;
-       *)
-           break
-           ;;
-    esac
-done
-
-## insert all possible names (only works with 
-## autoconf 2.x)
-TESTAUTOHEADER="autoheader autoheader-2.53 autoheader2.50 autoheader259 autoheader253"
-TESTAUTOCONF="autoconf autoconf-2.53 autoconf2.50 autoconf259 autoconf253"
-
-AUTOHEADERFOUND="0"
-AUTOCONFFOUND="0"
-
-
-##
-## Look for autoheader 
-##
-for i in $TESTAUTOHEADER; do
-       if which $i > /dev/null 2>&1; then
-               if test `$i --version | head -n 1 | cut -d.  -f 2 | sed "s/[^0-9]//g"` -ge 53; then
-                       AUTOHEADER=$i
-                       AUTOHEADERFOUND="1"
-                       break
-               fi
-       fi
-done
-
-## 
-## Look for autoconf
-##
-
-for i in $TESTAUTOCONF; do
-       if which $i > /dev/null 2>&1; then
-               if test `$i --version | head -n 1 | cut -d.  -f 2 | sed "s/[^0-9]//g"` -ge 53; then
-                       AUTOCONF=$i
-                       AUTOCONFFOUND="1"
-                       break
-               fi
-       fi
-done
-
-
-## 
-## do we have it?
-##
-if test "$AUTOCONFFOUND" = "0" -o "$AUTOHEADERFOUND" = "0"; then
-       _exit "$0: need autoconf 2.53 or later to build samba from GIT"
-fi
-
-echo "$0: running script/mkversion.sh"
-./script/mkversion.sh $VERSION_FILE || exit 1
-
-rm -rf autom4te*.cache
-rm -f configure include/config.h*
-
-IPATHS="-Im4 -I../m4 -I../lib/replace"
-
-echo "$0: running $AUTOHEADER $IPATHS"
-$AUTOHEADER $IPATHS || _exit "ERROR running autoheader"
-
-echo "$0: running $AUTOCONF $IPATHS"
-$AUTOCONF $IPATHS || _exit "ERROR running autoconf"
-
-rm -rf autom4te*.cache
-
-( cd ../examples/VFS || exit 1
-  echo "$0: running $AUTOHEADER in ../examples/VFS/"
-  $AUTOHEADER || exit 1
-  echo "$0: running $AUTOCONF in ../examples/VFS/"
-  $AUTOCONF || exit 1
-  rm -rf autom4te*.cache
-) || _exit "ERROR running autoheader/autoconf in examples/VFS"
-
-
-if gcc -E tests/preproc-dummy.c -o /dev/null ;
-then
-    PIDL_OUTPUTDIR="autoconf/librpc/gen_ndr" CPP="gcc -E" PIDL=../pidl/pidl \
-       srcdir=. ../librpc/build_idl.sh ../librpc/idl/*.idl
-    PIDL_OUTPUTDIR="autoconf/librpc/gen_ndr" CPP="gcc -E" PIDL=../pidl/pidl \
-       srcdir=. script/build_idl.sh librpc/idl/*.idl
-else
-   echo "Warning: Could not compile idl files in autogen, "
-   echo "some autconf tests might not work properly"
-fi
-
-perl ../script/mkparamdefs.pl ../lib/param/param_functions.c --file autoconf/lib/param/param_local.h --generate-scope=LOCAL
-perl ../script/mkparamdefs.pl ../lib/param/loadparm.c ../lib/param/param_functions.c --file autoconf/lib/param/param_global.h --generate-scope=GLOBAL
-perl ../script/mkparamdefs.pl param/loadparm.c ../lib/param/param_functions.c --file autoconf/source3/param/param_global.h --generate-scope=GLOBAL
-perl ../source4/script/mkproto.pl ../lib/param/loadparm.c ../lib/param/param_functions.c --public autoconf/lib/param/param_proto.h --private autoconf/lib/param/param_proto.h
-perl ../script/mks3param.pl ../lib/param/loadparm.c ../lib/param/param_functions.c --file autoconf/lib/param/s3_param.h
-
-echo "Now run ./configure (or ./configure.developer) and then make."
-
-cd ${OLD_DIR}
-exit 0
-
diff --git a/source3/config.guess b/source3/config.guess
deleted file mode 100755 (executable)
index da83314..0000000
+++ /dev/null
@@ -1,1561 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
-#   Free Software Foundation, Inc.
-
-timestamp='2009-04-27'
-
-# This file is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner <per@bothner.com>.
-# Please send patches to <config-patches@gnu.org>.  Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub.  If it succeeds, it prints the system name on stdout, and
-# exits with 0.  Otherwise, it exits with 1.
-#
-# The plan is that this can be called by configure scripts if you
-# don't specify an explicit build system type.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
-  -h, --help         print this help, then exit
-  -t, --time-stamp   print date of last modification, then exit
-  -v, --version      print version number, then exit
-
-Report bugs and patches to <config-patches@gnu.org>."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions.  There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
-  case $1 in
-    --time-stamp | --time* | -t )
-       echo "$timestamp" ; exit ;;
-    --version | -v )
-       echo "$version" ; exit ;;
-    --help | --h* | -h )
-       echo "$usage"; exit ;;
-    -- )     # Stop option processing
-       shift; break ;;
-    - )        # Use stdin as input.
-       break ;;
-    -* )
-       echo "$me: invalid option $1$help" >&2
-       exit 1 ;;
-    * )
-       break ;;
-  esac
-done
-
-if test $# != 0; then
-  echo "$me: too many arguments$help" >&2
-  exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# Portable tmp directory creation inspired by the Autoconf team.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,)    echo "int x;" > $dummy.c ;
-       for c in cc gcc c89 c99 ; do
-         if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
-            CC_FOR_BUILD="$c"; break ;
-         fi ;
-       done ;
-       if test x"$CC_FOR_BUILD" = x ; then
-         CC_FOR_BUILD=no_compiler_found ;
-       fi
-       ;;
- ,,*)   CC_FOR_BUILD=$CC ;;
- ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
-esac ; set_cc_for_build= ;'
-
-# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
-# (ghazi@noc.rutgers.edu 1994-08-24)
-if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
-       PATH=$PATH:/.attbin ; export PATH
-fi
-
-UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
-UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
-UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
-UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
-
-# Note: order is significant - the case branches are not exclusive.
-
-case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
-    *:NetBSD:*:*)
-       # NetBSD (nbsd) targets should (where applicable) match one or
-       # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
-       # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
-       # switched to ELF, *-*-netbsd* would select the old
-       # object file format.  This provides both forward
-       # compatibility and a consistent mechanism for selecting the
-       # object file format.
-       #
-       # Note: NetBSD doesn't particularly care about the vendor
-       # portion of the name.  We always set it to "unknown".
-       sysctl="sysctl -n hw.machine_arch"
-       UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
-           /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
-       case "${UNAME_MACHINE_ARCH}" in
-           armeb) machine=armeb-unknown ;;
-           arm*) machine=arm-unknown ;;
-           sh3el) machine=shl-unknown ;;
-           sh3eb) machine=sh-unknown ;;
-           sh5el) machine=sh5le-unknown ;;
-           *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
-       esac
-       # The Operating System including object format, if it has switched
-       # to ELF recently, or will in the future.
-       case "${UNAME_MACHINE_ARCH}" in
-           arm*|i386|m68k|ns32k|sh3*|sparc|vax)
-               eval $set_cc_for_build
-               if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
-                       | grep __ELF__ >/dev/null
-               then
-                   # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
-                   # Return netbsd for either.  FIX?
-                   os=netbsd
-               else
-                   os=netbsdelf
-               fi
-               ;;
-           *)
-               os=netbsd
-               ;;
-       esac
-       # The OS release
-       # Debian GNU/NetBSD machines have a different userland, and
-       # thus, need a distinct triplet. However, they do not need
-       # kernel version information, so it can be replaced with a
-       # suitable tag, in the style of linux-gnu.
-       case "${UNAME_VERSION}" in
-           Debian*)
-               release='-gnu'
-               ;;
-           *)
-               release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
-               ;;
-       esac
-       # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
-       # contains redundant information, the shorter form:
-       # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
-       echo "${machine}-${os}${release}"
-       exit ;;
-    *:OpenBSD:*:*)
-       UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
-       echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
-       exit ;;
-    *:ekkoBSD:*:*)
-       echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
-       exit ;;
-    *:SolidBSD:*:*)
-       echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
-       exit ;;
-    macppc:MirBSD:*:*)
-       echo powerpc-unknown-mirbsd${UNAME_RELEASE}
-       exit ;;
-    *:MirBSD:*:*)
-       echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
-       exit ;;
-    alpha:OSF1:*:*)
-       case $UNAME_RELEASE in
-       *4.0)
-               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
-               ;;
-       *5.*)
-               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
-               ;;
-       esac
-       # According to Compaq, /usr/sbin/psrinfo has been available on
-       # OSF/1 and Tru64 systems produced since 1995.  I hope that
-       # covers most systems running today.  This code pipes the CPU
-       # types through head -n 1, so we only detect the type of CPU 0.
-       ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
-       case "$ALPHA_CPU_TYPE" in
-           "EV4 (21064)")
-               UNAME_MACHINE="alpha" ;;
-           "EV4.5 (21064)")
-               UNAME_MACHINE="alpha" ;;
-           "LCA4 (21066/21068)")
-               UNAME_MACHINE="alpha" ;;
-           "EV5 (21164)")
-               UNAME_MACHINE="alphaev5" ;;
-           "EV5.6 (21164A)")
-               UNAME_MACHINE="alphaev56" ;;
-           "EV5.6 (21164PC)")
-               UNAME_MACHINE="alphapca56" ;;
-           "EV5.7 (21164PC)")
-               UNAME_MACHINE="alphapca57" ;;
-           "EV6 (21264)")
-               UNAME_MACHINE="alphaev6" ;;
-           "EV6.7 (21264A)")
-               UNAME_MACHINE="alphaev67" ;;
-           "EV6.8CB (21264C)")
-               UNAME_MACHINE="alphaev68" ;;
-           "EV6.8AL (21264B)")
-               UNAME_MACHINE="alphaev68" ;;
-           "EV6.8CX (21264D)")
-               UNAME_MACHINE="alphaev68" ;;
-           "EV6.9A (21264/EV69A)")
-               UNAME_MACHINE="alphaev69" ;;
-           "EV7 (21364)")
-               UNAME_MACHINE="alphaev7" ;;
-           "EV7.9 (21364A)")
-               UNAME_MACHINE="alphaev79" ;;
-       esac
-       # A Pn.n version is a patched version.
-       # A Vn.n version is a released version.
-       # A Tn.n version is a released field test version.
-       # A Xn.n version is an unreleased experimental baselevel.
-       # 1.2 uses "1.2" for uname -r.
-       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
-       exit ;;
-    Alpha\ *:Windows_NT*:*)
-       # How do we know it's Interix rather than the generic POSIX subsystem?
-       # Should we change UNAME_MACHINE based on the output of uname instead
-       # of the specific Alpha model?
-       echo alpha-pc-interix
-       exit ;;
-    21064:Windows_NT:50:3)
-       echo alpha-dec-winnt3.5
-       exit ;;
-    Amiga*:UNIX_System_V:4.0:*)
-       echo m68k-unknown-sysv4
-       exit ;;
-    *:[Aa]miga[Oo][Ss]:*:*)
-       echo ${UNAME_MACHINE}-unknown-amigaos
-       exit ;;
-    *:[Mm]orph[Oo][Ss]:*:*)
-       echo ${UNAME_MACHINE}-unknown-morphos
-       exit ;;
-    *:OS/390:*:*)
-       echo i370-ibm-openedition
-       exit ;;
-    *:z/VM:*:*)
-       echo s390-ibm-zvmoe
-       exit ;;
-    *:OS400:*:*)
-        echo powerpc-ibm-os400
-       exit ;;
-    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
-       echo arm-acorn-riscix${UNAME_RELEASE}
-       exit ;;
-    arm:riscos:*:*|arm:RISCOS:*:*)
-       echo arm-unknown-riscos
-       exit ;;
-    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
-       echo hppa1.1-hitachi-hiuxmpp
-       exit ;;
-    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
-       # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
-       if test "`(/bin/universe) 2>/dev/null`" = att ; then
-               echo pyramid-pyramid-sysv3
-       else
-               echo pyramid-pyramid-bsd
-       fi
-       exit ;;
-    NILE*:*:*:dcosx)
-       echo pyramid-pyramid-svr4
-       exit ;;
-    DRS?6000:unix:4.0:6*)
-       echo sparc-icl-nx6
-       exit ;;
-    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
-       case `/usr/bin/uname -p` in
-           sparc) echo sparc-icl-nx7; exit ;;
-       esac ;;
-    s390x:SunOS:*:*)
-       echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-       exit ;;
-    sun4H:SunOS:5.*:*)
-       echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-       exit ;;
-    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
-       echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-       exit ;;
-    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
-       eval $set_cc_for_build
-       SUN_ARCH="i386"
-       # If there is a compiler, see if it is configured for 64-bit objects.
-       # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
-       # This test works for both compilers.
-       if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
-           if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
-               (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
-               grep IS_64BIT_ARCH >/dev/null
-           then
-               SUN_ARCH="x86_64"
-           fi
-       fi
-       echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-       exit ;;
-    sun4*:SunOS:6*:*)
-       # According to config.sub, this is the proper way to canonicalize
-       # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
-       # it's likely to be more like Solaris than SunOS4.
-       echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-       exit ;;
-    sun4*:SunOS:*:*)
-       case "`/usr/bin/arch -k`" in
-           Series*|S4*)
-               UNAME_RELEASE=`uname -v`
-               ;;
-       esac
-       # Japanese Language versions have a version number like `4.1.3-JL'.
-       echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
-       exit ;;
-    sun3*:SunOS:*:*)
-       echo m68k-sun-sunos${UNAME_RELEASE}
-       exit ;;
-    sun*:*:4.2BSD:*)
-       UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
-       test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
-       case "`/bin/arch`" in
-           sun3)
-               echo m68k-sun-sunos${UNAME_RELEASE}
-               ;;
-           sun4)
-               echo sparc-sun-sunos${UNAME_RELEASE}
-               ;;
-       esac
-       exit ;;
-    aushp:SunOS:*:*)
-       echo sparc-auspex-sunos${UNAME_RELEASE}
-       exit ;;
-    # The situation for MiNT is a little confusing.  The machine name
-    # can be virtually everything (everything which is not
-    # "atarist" or "atariste" at least should have a processor
-    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
-    # to the lowercase version "mint" (or "freemint").  Finally
-    # the system name "TOS" denotes a system which is actually not
-    # MiNT.  But MiNT is downward compatible to TOS, so this should
-    # be no problem.
-    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
-        echo m68k-atari-mint${UNAME_RELEASE}
-       exit ;;
-    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
-       echo m68k-atari-mint${UNAME_RELEASE}
-        exit ;;
-    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
-        echo m68k-atari-mint${UNAME_RELEASE}
-       exit ;;
-    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
-        echo m68k-milan-mint${UNAME_RELEASE}
-        exit ;;
-    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
-        echo m68k-hades-mint${UNAME_RELEASE}
-        exit ;;
-    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
-        echo m68k-unknown-mint${UNAME_RELEASE}
-        exit ;;
-    m68k:machten:*:*)
-       echo m68k-apple-machten${UNAME_RELEASE}
-       exit ;;
-    powerpc:machten:*:*)
-       echo powerpc-apple-machten${UNAME_RELEASE}
-       exit ;;
-    RISC*:Mach:*:*)
-       echo mips-dec-mach_bsd4.3
-       exit ;;
-    RISC*:ULTRIX:*:*)
-       echo mips-dec-ultrix${UNAME_RELEASE}
-       exit ;;
-    VAX*:ULTRIX*:*:*)
-       echo vax-dec-ultrix${UNAME_RELEASE}
-       exit ;;
-    2020:CLIX:*:* | 2430:CLIX:*:*)
-       echo clipper-intergraph-clix${UNAME_RELEASE}
-       exit ;;
-    mips:*:*:UMIPS | mips:*:*:RISCos)
-       eval $set_cc_for_build
-       sed 's/^        //' << EOF >$dummy.c
-#ifdef __cplusplus
-#include <stdio.h>  /* for printf() prototype */
-       int main (int argc, char *argv[]) {
-#else
-       int main (argc, argv) int argc; char *argv[]; {
-#endif
-       #if defined (host_mips) && defined (MIPSEB)
-       #if defined (SYSTYPE_SYSV)
-         printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
-       #endif
-       #if defined (SYSTYPE_SVR4)
-         printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
-       #endif
-       #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
-         printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
-       #endif
-       #endif
-         exit (-1);
-       }
-EOF
-       $CC_FOR_BUILD -o $dummy $dummy.c &&
-         dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
-         SYSTEM_NAME=`$dummy $dummyarg` &&
-           { echo "$SYSTEM_NAME"; exit; }
-       echo mips-mips-riscos${UNAME_RELEASE}
-       exit ;;
-    Motorola:PowerMAX_OS:*:*)
-       echo powerpc-motorola-powermax
-       exit ;;
-    Motorola:*:4.3:PL8-*)
-       echo powerpc-harris-powermax
-       exit ;;
-    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
-       echo powerpc-harris-powermax
-       exit ;;
-    Night_Hawk:Power_UNIX:*:*)
-       echo powerpc-harris-powerunix
-       exit ;;
-    m88k:CX/UX:7*:*)
-       echo m88k-harris-cxux7
-       exit ;;
-    m88k:*:4*:R4*)
-       echo m88k-motorola-sysv4
-       exit ;;
-    m88k:*:3*:R3*)
-       echo m88k-motorola-sysv3
-       exit ;;
-    AViiON:dgux:*:*)
-        # DG/UX returns AViiON for all architectures
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
-       if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
-       then
-           if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
-              [ ${TARGET_BINARY_INTERFACE}x = x ]
-           then
-               echo m88k-dg-dgux${UNAME_RELEASE}
-           else
-               echo m88k-dg-dguxbcs${UNAME_RELEASE}
-           fi
-       else
-           echo i586-dg-dgux${UNAME_RELEASE}
-       fi
-       exit ;;
-    M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
-       echo m88k-dolphin-sysv3
-       exit ;;
-    M88*:*:R3*:*)
-       # Delta 88k system running SVR3
-       echo m88k-motorola-sysv3
-       exit ;;
-    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
-       echo m88k-tektronix-sysv3
-       exit ;;
-    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
-       echo m68k-tektronix-bsd
-       exit ;;
-    *:IRIX*:*:*)
-       echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
-       exit ;;
-    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
-       echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
-       exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
-    i*86:AIX:*:*)
-       echo i386-ibm-aix
-       exit ;;
-    ia64:AIX:*:*)
-       if [ -x /usr/bin/oslevel ] ; then
-               IBM_REV=`/usr/bin/oslevel`
-       else
-               IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
-       fi
-       echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
-       exit ;;
-    *:AIX:2:3)
-       if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
-               eval $set_cc_for_build
-               sed 's/^                //' << EOF >$dummy.c
-               #include <sys/systemcfg.h>
-
-               main()
-                       {
-                       if (!__power_pc())
-                               exit(1);
-                       puts("powerpc-ibm-aix3.2.5");
-                       exit(0);
-                       }
-EOF
-               if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
-               then
-                       echo "$SYSTEM_NAME"
-               else
-                       echo rs6000-ibm-aix3.2.5
-               fi
-       elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
-               echo rs6000-ibm-aix3.2.4
-       else
-               echo rs6000-ibm-aix3.2
-       fi
-       exit ;;
-    *:AIX:*:[456])
-       IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
-       if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
-               IBM_ARCH=rs6000
-       else
-               IBM_ARCH=powerpc
-       fi
-       if [ -x /usr/bin/oslevel ] ; then
-               IBM_REV=`/usr/bin/oslevel`
-       else
-               IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
-       fi
-       echo ${IBM_ARCH}-ibm-aix${IBM_REV}
-       exit ;;
-    *:AIX:*:*)
-       echo rs6000-ibm-aix
-       exit ;;
-    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
-       echo romp-ibm-bsd4.4
-       exit ;;
-    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
-       echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
-       exit ;;                             # report: romp-ibm BSD 4.3
-    *:BOSX:*:*)
-       echo rs6000-bull-bosx
-       exit ;;
-    DPX/2?00:B.O.S.:*:*)
-       echo m68k-bull-sysv3
-       exit ;;
-    9000/[34]??:4.3bsd:1.*:*)
-       echo m68k-hp-bsd
-       exit ;;
-    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
-       echo m68k-hp-bsd4.4
-       exit ;;
-    9000/[34678]??:HP-UX:*:*)
-       HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
-       case "${UNAME_MACHINE}" in
-           9000/31? )            HP_ARCH=m68000 ;;
-           9000/[34]?? )         HP_ARCH=m68k ;;
-           9000/[678][0-9][0-9])
-               if [ -x /usr/bin/getconf ]; then
-                   sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
-                    case "${sc_cpu_version}" in
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
-                      532)                      # CPU_PA_RISC2_0
-                        case "${sc_kernel_bits}" in
-                          32) HP_ARCH="hppa2.0n" ;;
-                          64) HP_ARCH="hppa2.0w" ;;
-                         '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
-                        esac ;;
-                    esac
-               fi
-               if [ "${HP_ARCH}" = "" ]; then
-                   eval $set_cc_for_build
-                   sed 's/^              //' << EOF >$dummy.c
-
-              #define _HPUX_SOURCE
-              #include <stdlib.h>
-              #include <unistd.h>
-
-              int main ()
-              {
-              #if defined(_SC_KERNEL_BITS)
-                  long bits = sysconf(_SC_KERNEL_BITS);
-              #endif
-                  long cpu  = sysconf (_SC_CPU_VERSION);
-
-                  switch (cpu)
-               {
-               case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
-               case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
-               case CPU_PA_RISC2_0:
-              #if defined(_SC_KERNEL_BITS)
-                   switch (bits)
-                       {
-                       case 64: puts ("hppa2.0w"); break;
-                       case 32: puts ("hppa2.0n"); break;
-                       default: puts ("hppa2.0"); break;
-                       } break;
-              #else  /* !defined(_SC_KERNEL_BITS) */
-                   puts ("hppa2.0"); break;
-              #endif
-               default: puts ("hppa1.0"); break;
-               }
-                  exit (0);
-              }
-EOF
-                   (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
-                   test -z "$HP_ARCH" && HP_ARCH=hppa
-               fi ;;
-       esac
-       if [ ${HP_ARCH} = "hppa2.0w" ]
-       then
-           eval $set_cc_for_build
-
-           # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
-           # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
-           # generating 64-bit code.  GNU and HP use different nomenclature:
-           #
-           # $ CC_FOR_BUILD=cc ./config.guess
-           # => hppa2.0w-hp-hpux11.23
-           # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
-           # => hppa64-hp-hpux11.23
-
-           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
-               grep __LP64__ >/dev/null
-           then
-               HP_ARCH="hppa2.0w"
-           else
-               HP_ARCH="hppa64"
-           fi
-       fi
-       echo ${HP_ARCH}-hp-hpux${HPUX_REV}
-       exit ;;
-    ia64:HP-UX:*:*)
-       HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
-       echo ia64-hp-hpux${HPUX_REV}
-       exit ;;
-    3050*:HI-UX:*:*)
-       eval $set_cc_for_build
-       sed 's/^        //' << EOF >$dummy.c
-       #include <unistd.h>
-       int
-       main ()
-       {
-         long cpu = sysconf (_SC_CPU_VERSION);
-         /* The order matters, because CPU_IS_HP_MC68K erroneously returns
-            true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
-            results, however.  */
-         if (CPU_IS_PA_RISC (cpu))
-           {
-             switch (cpu)
-               {
-                 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
-                 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
-                 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
-                 default: puts ("hppa-hitachi-hiuxwe2"); break;
-               }
-           }
-         else if (CPU_IS_HP_MC68K (cpu))
-           puts ("m68k-hitachi-hiuxwe2");
-         else puts ("unknown-hitachi-hiuxwe2");
-         exit (0);
-       }
-EOF
-       $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
-               { echo "$SYSTEM_NAME"; exit; }
-       echo unknown-hitachi-hiuxwe2
-       exit ;;
-    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
-       echo hppa1.1-hp-bsd
-       exit ;;
-    9000/8??:4.3bsd:*:*)
-       echo hppa1.0-hp-bsd
-       exit ;;
-    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
-       echo hppa1.0-hp-mpeix
-       exit ;;
-    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
-       echo hppa1.1-hp-osf
-       exit ;;
-    hp8??:OSF1:*:*)
-       echo hppa1.0-hp-osf
-       exit ;;
-    i*86:OSF1:*:*)
-       if [ -x /usr/sbin/sysversion ] ; then
-           echo ${UNAME_MACHINE}-unknown-osf1mk
-       else
-           echo ${UNAME_MACHINE}-unknown-osf1
-       fi
-       exit ;;
-    parisc*:Lites*:*:*)
-       echo hppa1.1-hp-lites
-       exit ;;
-    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
-       echo c1-convex-bsd
-        exit ;;
-    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
-       if getsysinfo -f scalar_acc
-       then echo c32-convex-bsd
-       else echo c2-convex-bsd
-       fi
-        exit ;;
-    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
-       echo c34-convex-bsd
-        exit ;;
-    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
-       echo c38-convex-bsd
-        exit ;;
-    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
-       echo c4-convex-bsd
-        exit ;;
-    CRAY*Y-MP:*:*:*)
-       echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-       exit ;;
-    CRAY*[A-Z]90:*:*:*)
-       echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
-       | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
-             -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
-             -e 's/\.[^.]*$/.X/'
-       exit ;;
-    CRAY*TS:*:*:*)
-       echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-       exit ;;
-    CRAY*T3E:*:*:*)
-       echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-       exit ;;
-    CRAY*SV1:*:*:*)
-       echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-       exit ;;
-    *:UNICOS/mp:*:*)
-       echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
-       exit ;;
-    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
-       FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
-        exit ;;
-    5000:UNIX_System_V:4.*:*)
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
-       exit ;;
-    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
-       echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
-       exit ;;
-    sparc*:BSD/OS:*:*)
-       echo sparc-unknown-bsdi${UNAME_RELEASE}
-       exit ;;
-    *:BSD/OS:*:*)
-       echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
-       exit ;;
-    *:FreeBSD:*:*)
-       case ${UNAME_MACHINE} in
-           pc98)
-               echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
-           amd64)
-               echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
-           *)
-               echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
-       esac
-       exit ;;
-    i*:CYGWIN*:*)
-       echo ${UNAME_MACHINE}-pc-cygwin
-       exit ;;
-    *:MINGW*:*)
-       echo ${UNAME_MACHINE}-pc-mingw32
-       exit ;;
-    i*:windows32*:*)
-       # uname -m includes "-pc" on this system.
-       echo ${UNAME_MACHINE}-mingw32
-       exit ;;
-    i*:PW*:*)
-       echo ${UNAME_MACHINE}-pc-pw32
-       exit ;;
-    *:Interix*:[3456]*)
-       case ${UNAME_MACHINE} in
-           x86)
-               echo i586-pc-interix${UNAME_RELEASE}
-               exit ;;
-           EM64T | authenticamd | genuineintel)
-               echo x86_64-unknown-interix${UNAME_RELEASE}
-               exit ;;
-           IA64)
-               echo ia64-unknown-interix${UNAME_RELEASE}
-               exit ;;
-       esac ;;
-    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
-       echo i${UNAME_MACHINE}-pc-mks
-       exit ;;
-    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
-       # How do we know it's Interix rather than the generic POSIX subsystem?
-       # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
-       # UNAME_MACHINE based on the output of uname instead of i386?
-       echo i586-pc-interix
-       exit ;;
-    i*:UWIN*:*)
-       echo ${UNAME_MACHINE}-pc-uwin
-       exit ;;
-    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
-       echo x86_64-unknown-cygwin
-       exit ;;
-    p*:CYGWIN*:*)
-       echo powerpcle-unknown-cygwin
-       exit ;;
-    prep*:SunOS:5.*:*)
-       echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
-       exit ;;
-    *:GNU:*:*)
-       # the GNU system
-       echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
-       exit ;;
-    *:GNU/*:*:*)
-       # other systems with GNU libc and userland
-       echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
-       exit ;;
-    i*86:Minix:*:*)
-       echo ${UNAME_MACHINE}-pc-minix
-       exit ;;
-    arm*:Linux:*:*)
-       eval $set_cc_for_build
-       if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
-           | grep -q __ARM_EABI__
-       then
-           echo ${UNAME_MACHINE}-unknown-linux-gnu
-       else
-           echo ${UNAME_MACHINE}-unknown-linux-gnueabi
-       fi
-       exit ;;
-    avr32*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
-       exit ;;
-    cris:Linux:*:*)
-       echo cris-axis-linux-gnu
-       exit ;;
-    crisv32:Linux:*:*)
-       echo crisv32-axis-linux-gnu
-       exit ;;
-    frv:Linux:*:*)
-       echo frv-unknown-linux-gnu
-       exit ;;
-    ia64:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
-       exit ;;
-    m32r*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
-       exit ;;
-    m68*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
-       exit ;;
-    mips:Linux:*:*)
-       eval $set_cc_for_build
-       sed 's/^        //' << EOF >$dummy.c
-       #undef CPU
-       #undef mips
-       #undef mipsel
-       #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
-       CPU=mipsel
-       #else
-       #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
-       CPU=mips
-       #else
-       CPU=
-       #endif
-       #endif
-EOF
-       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
-           /^CPU/{
-               s: ::g
-               p
-           }'`"
-       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
-       ;;
-    mips64:Linux:*:*)
-       eval $set_cc_for_build
-       sed 's/^        //' << EOF >$dummy.c
-       #undef CPU
-       #undef mips64
-       #undef mips64el
-       #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
-       CPU=mips64el
-       #else
-       #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
-       CPU=mips64
-       #else
-       CPU=
-       #endif
-       #endif
-EOF
-       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
-           /^CPU/{
-               s: ::g
-               p
-           }'`"
-       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
-       ;;
-    or32:Linux:*:*)
-       echo or32-unknown-linux-gnu
-       exit ;;
-    ppc:Linux:*:*)
-       echo powerpc-unknown-linux-gnu
-       exit ;;
-    ppc64:Linux:*:*)
-       echo powerpc64-unknown-linux-gnu
-       exit ;;
-    alpha:Linux:*:*)
-       case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
-         EV5)   UNAME_MACHINE=alphaev5 ;;
-         EV56)  UNAME_MACHINE=alphaev56 ;;
-         PCA56) UNAME_MACHINE=alphapca56 ;;
-         PCA57) UNAME_MACHINE=alphapca56 ;;
-         EV6)   UNAME_MACHINE=alphaev6 ;;
-         EV67)  UNAME_MACHINE=alphaev67 ;;
-         EV68*) UNAME_MACHINE=alphaev68 ;;
-        esac
-       objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
-       if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
-       echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
-       exit ;;
-    padre:Linux:*:*)
-       echo sparc-unknown-linux-gnu
-       exit ;;
-    parisc:Linux:*:* | hppa:Linux:*:*)
-       # Look for CPU level
-       case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
-         PA7*) echo hppa1.1-unknown-linux-gnu ;;
-         PA8*) echo hppa2.0-unknown-linux-gnu ;;
-         *)    echo hppa-unknown-linux-gnu ;;
-       esac
-       exit ;;
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
-       echo hppa64-unknown-linux-gnu
-       exit ;;
-    s390:Linux:*:* | s390x:Linux:*:*)
-       echo ${UNAME_MACHINE}-ibm-linux
-       exit ;;
-    sh64*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
-       exit ;;
-    sh*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
-       exit ;;
-    sparc:Linux:*:* | sparc64:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
-       exit ;;
-    vax:Linux:*:*)
-       echo ${UNAME_MACHINE}-dec-linux-gnu
-       exit ;;
-    x86_64:Linux:*:*)
-       echo x86_64-unknown-linux-gnu
-       exit ;;
-    xtensa*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
-       exit ;;
-    i*86:Linux:*:*)
-       # The BFD linker knows what the default object file format is, so
-       # first see if it will tell us. cd to the root directory to prevent
-       # problems with other programs or directories called `ld' in the path.
-       # Set LC_ALL=C to ensure ld outputs messages in English.
-       ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
-                        | sed -ne '/supported targets:/!d
-                                   s/[         ][      ]*/ /g
-                                   s/.*supported targets: *//
-                                   s/ .*//
-                                   p'`
-        case "$ld_supported_targets" in
-         elf32-i386)
-               TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
-               ;;
-         a.out-i386-linux)
-               echo "${UNAME_MACHINE}-pc-linux-gnuaout"
-               exit ;;
-         "")
-               # Either a pre-BFD a.out linker (linux-gnuoldld) or
-               # one that does not give us useful --help.
-               echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
-               exit ;;
-       esac
-       # Determine whether the default compiler is a.out or elf
-       eval $set_cc_for_build
-       sed 's/^        //' << EOF >$dummy.c
-       #include <features.h>
-       #ifdef __ELF__
-       # ifdef __GLIBC__
-       #  if __GLIBC__ >= 2
-       LIBC=gnu
-       #  else
-       LIBC=gnulibc1
-       #  endif
-       # else
-       LIBC=gnulibc1
-       # endif
-       #else
-       #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
-       LIBC=gnu
-       #else
-       LIBC=gnuaout
-       #endif
-       #endif
-       #ifdef __dietlibc__
-       LIBC=dietlibc
-       #endif
-EOF
-       eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
-           /^LIBC/{
-               s: ::g
-               p
-           }'`"
-       test x"${LIBC}" != x && {
-               echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
-               exit
-       }
-       test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
-       ;;
-    i*86:DYNIX/ptx:4*:*)
-       # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
-       # earlier versions are messed up and put the nodename in both
-       # sysname and nodename.
-       echo i386-sequent-sysv4
-       exit ;;
-    i*86:UNIX_SV:4.2MP:2.*)
-        # Unixware is an offshoot of SVR4, but it has its own version
-        # number series starting with 2...
-        # I am not positive that other SVR4 systems won't match this,
-       # I just have to hope.  -- rms.
-        # Use sysv4.2uw... so that sysv4* matches it.
-       echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
-       exit ;;
-    i*86:OS/2:*:*)
-       # If we were able to find `uname', then EMX Unix compatibility
-       # is probably installed.
-       echo ${UNAME_MACHINE}-pc-os2-emx
-       exit ;;
-    i*86:XTS-300:*:STOP)
-       echo ${UNAME_MACHINE}-unknown-stop
-       exit ;;
-    i*86:atheos:*:*)
-       echo ${UNAME_MACHINE}-unknown-atheos
-       exit ;;
-    i*86:syllable:*:*)
-       echo ${UNAME_MACHINE}-pc-syllable
-       exit ;;
-    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
-       echo i386-unknown-lynxos${UNAME_RELEASE}
-       exit ;;
-    i*86:*DOS:*:*)
-       echo ${UNAME_MACHINE}-pc-msdosdjgpp
-       exit ;;
-    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
-       UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
-       if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
-               echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
-       else
-               echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
-       fi
-       exit ;;
-    i*86:*:5:[678]*)
-       # UnixWare 7.x, OpenUNIX and OpenServer 6.
-       case `/bin/uname -X | grep "^Machine"` in
-           *486*)           UNAME_MACHINE=i486 ;;
-           *Pentium)        UNAME_MACHINE=i586 ;;
-           *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
-       esac
-       echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
-       exit ;;
-    i*86:*:3.2:*)
-       if test -f /usr/options/cb.name; then
-               UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
-               echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
-       elif /bin/uname -X 2>/dev/null >/dev/null ; then
-               UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
-               (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
-               (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
-                       && UNAME_MACHINE=i586
-               (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
-                       && UNAME_MACHINE=i686
-               (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
-                       && UNAME_MACHINE=i686
-               echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
-       else
-               echo ${UNAME_MACHINE}-pc-sysv32
-       fi
-       exit ;;
-    pc:*:*:*)
-       # Left here for compatibility:
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
-        # the processor, so we play safe by assuming i586.
-       # Note: whatever this is, it MUST be the same as what config.sub
-       # prints for the "djgpp" host, or else GDB configury will decide that
-       # this is a cross-build.
-       echo i586-pc-msdosdjgpp
-        exit ;;
-    Intel:Mach:3*:*)
-       echo i386-pc-mach3
-       exit ;;
-    paragon:*:*:*)
-       echo i860-intel-osf1
-       exit ;;
-    i860:*:4.*:*) # i860-SVR4
-       if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
-         echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
-       else # Add other i860-SVR4 vendors below as they are discovered.
-         echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
-       fi
-       exit ;;
-    mini*:CTIX:SYS*5:*)
-       # "miniframe"
-       echo m68010-convergent-sysv
-       exit ;;
-    mc68k:UNIX:SYSTEM5:3.51m)
-       echo m68k-convergent-sysv
-       exit ;;
-    M680?0:D-NIX:5.3:*)
-       echo m68k-diab-dnix
-       exit ;;
-    M68*:*:R3V[5678]*:*)
-       test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
-    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
-       OS_REL=''
-       test -r /etc/.relid \
-       && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
-       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
-         && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
-       /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
-         && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
-    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
-          && { echo i486-ncr-sysv4; exit; } ;;
-    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
-       OS_REL='.3'
-       test -r /etc/.relid \
-           && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
-       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
-           && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
-       /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
-           && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
-       /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
-           && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
-    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
-       echo m68k-unknown-lynxos${UNAME_RELEASE}
-       exit ;;
-    mc68030:UNIX_System_V:4.*:*)
-       echo m68k-atari-sysv4
-       exit ;;
-    TSUNAMI:LynxOS:2.*:*)
-       echo sparc-unknown-lynxos${UNAME_RELEASE}
-       exit ;;
-    rs6000:LynxOS:2.*:*)
-       echo rs6000-unknown-lynxos${UNAME_RELEASE}
-       exit ;;
-    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
-       echo powerpc-unknown-lynxos${UNAME_RELEASE}
-       exit ;;
-    SM[BE]S:UNIX_SV:*:*)
-       echo mips-dde-sysv${UNAME_RELEASE}
-       exit ;;
-    RM*:ReliantUNIX-*:*:*)
-       echo mips-sni-sysv4
-       exit ;;
-    RM*:SINIX-*:*:*)
-       echo mips-sni-sysv4
-       exit ;;
-    *:SINIX-*:*:*)
-       if uname -p 2>/dev/null >/dev/null ; then
-               UNAME_MACHINE=`(uname -p) 2>/dev/null`
-               echo ${UNAME_MACHINE}-sni-sysv4
-       else
-               echo ns32k-sni-sysv
-       fi
-       exit ;;
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
-        echo i586-unisys-sysv4
-        exit ;;
-    *:UNIX_System_V:4*:FTX*)
-       # From Gerald Hewes <hewes@openmarket.com>.
-       # How about differentiating between stratus architectures? -djm
-       echo hppa1.1-stratus-sysv4
-       exit ;;
-    *:*:*:FTX*)
-       # From seanf@swdc.stratus.com.
-       echo i860-stratus-sysv4
-       exit ;;
-    i*86:VOS:*:*)
-       # From Paul.Green@stratus.com.
-       echo ${UNAME_MACHINE}-stratus-vos
-       exit ;;
-    *:VOS:*:*)
-       # From Paul.Green@stratus.com.
-       echo hppa1.1-stratus-vos
-       exit ;;
-    mc68*:A/UX:*:*)
-       echo m68k-apple-aux${UNAME_RELEASE}
-       exit ;;
-    news*:NEWS-OS:6*:*)
-       echo mips-sony-newsos6
-       exit ;;
-    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
-       if [ -d /usr/nec ]; then
-               echo mips-nec-sysv${UNAME_RELEASE}
-       else
-               echo mips-unknown-sysv${UNAME_RELEASE}
-       fi
-        exit ;;
-    BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
-       echo powerpc-be-beos
-       exit ;;
-    BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
-       echo powerpc-apple-beos
-       exit ;;
-    BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
-       echo i586-pc-beos
-       exit ;;
-    BePC:Haiku:*:*)    # Haiku running on Intel PC compatible.
-       echo i586-pc-haiku
-       exit ;;
-    SX-4:SUPER-UX:*:*)
-       echo sx4-nec-superux${UNAME_RELEASE}
-       exit ;;
-    SX-5:SUPER-UX:*:*)
-       echo sx5-nec-superux${UNAME_RELEASE}
-       exit ;;
-    SX-6:SUPER-UX:*:*)
-       echo sx6-nec-superux${UNAME_RELEASE}
-       exit ;;
-    SX-7:SUPER-UX:*:*)
-       echo sx7-nec-superux${UNAME_RELEASE}
-       exit ;;
-    SX-8:SUPER-UX:*:*)
-       echo sx8-nec-superux${UNAME_RELEASE}
-       exit ;;
-    SX-8R:SUPER-UX:*:*)
-       echo sx8r-nec-superux${UNAME_RELEASE}
-       exit ;;
-    Power*:Rhapsody:*:*)
-       echo powerpc-apple-rhapsody${UNAME_RELEASE}
-       exit ;;
-    *:Rhapsody:*:*)
-       echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
-       exit ;;
-    *:Darwin:*:*)
-       UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
-       case $UNAME_PROCESSOR in
-           unknown) UNAME_PROCESSOR=powerpc ;;
-       esac
-       echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
-       exit ;;
-    *:procnto*:*:* | *:QNX:[0123456789]*:*)
-       UNAME_PROCESSOR=`uname -p`
-       if test "$UNAME_PROCESSOR" = "x86"; then
-               UNAME_PROCESSOR=i386
-               UNAME_MACHINE=pc
-       fi
-       echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
-       exit ;;
-    *:QNX:*:4*)
-       echo i386-pc-qnx
-       exit ;;
-    NSE-?:NONSTOP_KERNEL:*:*)
-       echo nse-tandem-nsk${UNAME_RELEASE}
-       exit ;;
-    NSR-?:NONSTOP_KERNEL:*:*)
-       echo nsr-tandem-nsk${UNAME_RELEASE}
-       exit ;;
-    *:NonStop-UX:*:*)
-       echo mips-compaq-nonstopux
-       exit ;;
-    BS2000:POSIX*:*:*)
-       echo bs2000-siemens-sysv
-       exit ;;
-    DS/*:UNIX_System_V:*:*)
-       echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
-       exit ;;
-    *:Plan9:*:*)
-       # "uname -m" is not consistent, so use $cputype instead. 386
-       # is converted to i386 for consistency with other x86
-       # operating systems.
-       if test "$cputype" = "386"; then
-           UNAME_MACHINE=i386
-       else
-           UNAME_MACHINE="$cputype"
-       fi
-       echo ${UNAME_MACHINE}-unknown-plan9
-       exit ;;
-    *:TOPS-10:*:*)
-       echo pdp10-unknown-tops10
-       exit ;;
-    *:TENEX:*:*)
-       echo pdp10-unknown-tenex
-       exit ;;
-    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
-       echo pdp10-dec-tops20
-       exit ;;
-    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
-       echo pdp10-xkl-tops20
-       exit ;;
-    *:TOPS-20:*:*)
-       echo pdp10-unknown-tops20
-       exit ;;
-    *:ITS:*:*)
-       echo pdp10-unknown-its
-       exit ;;
-    SEI:*:*:SEIUX)
-        echo mips-sei-seiux${UNAME_RELEASE}
-       exit ;;
-    *:DragonFly:*:*)
-       echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
-       exit ;;
-    *:*VMS:*:*)
-       UNAME_MACHINE=`(uname -p) 2>/dev/null`
-       case "${UNAME_MACHINE}" in
-           A*) echo alpha-dec-vms ; exit ;;
-           I*) echo ia64-dec-vms ; exit ;;
-           V*) echo vax-dec-vms ; exit ;;
-       esac ;;
-    *:XENIX:*:SysV)
-       echo i386-pc-xenix
-       exit ;;
-    i*86:skyos:*:*)
-       echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
-       exit ;;
-    i*86:rdos:*:*)
-       echo ${UNAME_MACHINE}-pc-rdos
-       exit ;;
-    i*86:AROS:*:*)
-       echo ${UNAME_MACHINE}-pc-aros
-       exit ;;
-esac
-
-#echo '(No uname command or uname output not recognized.)' 1>&2
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
-
-eval $set_cc_for_build
-cat >$dummy.c <<EOF
-#ifdef _SEQUENT_
-# include <sys/types.h>
-# include <sys/utsname.h>
-#endif
-main ()
-{
-#if defined (sony)
-#if defined (MIPSEB)
-  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
-     I don't know....  */
-  printf ("mips-sony-bsd\n"); exit (0);
-#else
-#include <sys/param.h>
-  printf ("m68k-sony-newsos%s\n",
-#ifdef NEWSOS4
-          "4"
-#else
-         ""
-#endif
-         ); exit (0);
-#endif
-#endif
-
-#if defined (__arm) && defined (__acorn) && defined (__unix)
-  printf ("arm-acorn-riscix\n"); exit (0);
-#endif
-
-#if defined (hp300) && !defined (hpux)
-  printf ("m68k-hp-bsd\n"); exit (0);
-#endif
-
-#if defined (NeXT)
-#if !defined (__ARCHITECTURE__)
-#define __ARCHITECTURE__ "m68k"
-#endif
-  int version;
-  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
-  if (version < 4)
-    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
-  else
-    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
-  exit (0);
-#endif
-
-#if defined (MULTIMAX) || defined (n16)
-#if defined (UMAXV)
-  printf ("ns32k-encore-sysv\n"); exit (0);
-#else
-#if defined (CMU)
-  printf ("ns32k-encore-mach\n"); exit (0);
-#else
-  printf ("ns32k-encore-bsd\n"); exit (0);
-#endif
-#endif
-#endif
-
-#if defined (__386BSD__)
-  printf ("i386-pc-bsd\n"); exit (0);
-#endif
-
-#if defined (sequent)
-#if defined (i386)
-  printf ("i386-sequent-dynix\n"); exit (0);
-#endif
-#if defined (ns32000)
-  printf ("ns32k-sequent-dynix\n"); exit (0);
-#endif
-#endif
-
-#if defined (_SEQUENT_)
-    struct utsname un;
-
-    uname(&un);
-
-    if (strncmp(un.version, "V2", 2) == 0) {
-       printf ("i386-sequent-ptx2\n"); exit (0);
-    }
-    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
-       printf ("i386-sequent-ptx1\n"); exit (0);
-    }
-    printf ("i386-sequent-ptx\n"); exit (0);
-
-#endif
-
-#if defined (vax)
-# if !defined (ultrix)
-#  include <sys/param.h>
-#  if defined (BSD)
-#   if BSD == 43
-      printf ("vax-dec-bsd4.3\n"); exit (0);
-#   else
-#    if BSD == 199006
-      printf ("vax-dec-bsd4.3reno\n"); exit (0);
-#    else
-      printf ("vax-dec-bsd\n"); exit (0);
-#    endif
-#   endif
-#  else
-    printf ("vax-dec-bsd\n"); exit (0);
-#  endif
-# else
-    printf ("vax-dec-ultrix\n"); exit (0);
-# endif
-#endif
-
-#if defined (alliant) && defined (i860)
-  printf ("i860-alliant-bsd\n"); exit (0);
-#endif
-
-  exit (1);
-}
-EOF
-
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
-       { echo "$SYSTEM_NAME"; exit; }
-
-# Apollos put the system type in the environment.
-
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
-
-# Convex versions that predate uname can use getsysinfo(1)
-
-if [ -x /usr/convex/getsysinfo ]
-then
-    case `getsysinfo -f cpu_type` in
-    c1*)
-       echo c1-convex-bsd
-       exit ;;
-    c2*)
-       if getsysinfo -f scalar_acc
-       then echo c32-convex-bsd
-       else echo c2-convex-bsd
-       fi
-       exit ;;
-    c34*)
-       echo c34-convex-bsd
-       exit ;;
-    c38*)
-       echo c38-convex-bsd
-       exit ;;
-    c4*)
-       echo c4-convex-bsd
-       exit ;;
-    esac
-fi
-
-cat >&2 <<EOF
-$0: unable to guess system type
-
-This script, last modified $timestamp, has failed to recognize
-the operating system you are using. It is advised that you
-download the most up to date version of the config scripts from
-
-  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
-and
-  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
-
-If the version you run ($0) is already up to date, please
-send the following data and any information you think might be
-pertinent to <config-patches@gnu.org> in order to provide the needed
-information to handle your system.
-
-config.guess timestamp = $timestamp
-
-uname -m = `(uname -m) 2>/dev/null || echo unknown`
-uname -r = `(uname -r) 2>/dev/null || echo unknown`
-uname -s = `(uname -s) 2>/dev/null || echo unknown`
-uname -v = `(uname -v) 2>/dev/null || echo unknown`
-
-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
-/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
-
-hostinfo               = `(hostinfo) 2>/dev/null`
-/bin/universe          = `(/bin/universe) 2>/dev/null`
-/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
-/bin/arch              = `(/bin/arch) 2>/dev/null`
-/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
-
-UNAME_MACHINE = ${UNAME_MACHINE}
-UNAME_RELEASE = ${UNAME_RELEASE}
-UNAME_SYSTEM  = ${UNAME_SYSTEM}
-UNAME_VERSION = ${UNAME_VERSION}
-EOF
-
-exit 1
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/source3/config.sub b/source3/config.sub
deleted file mode 100755 (executable)
index a39437d..0000000
+++ /dev/null
@@ -1,1686 +0,0 @@
-#! /bin/sh
-# Configuration validation subroutine script.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
-#   Free Software Foundation, Inc.
-
-timestamp='2009-04-17'
-
-# This file is (in principle) common to ALL GNU software.
-# The presence of a machine in this file suggests that SOME GNU software
-# can handle that machine.  It does not imply ALL GNU software can.
-#
-# This file is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Please send patches to <config-patches@gnu.org>.  Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# Configuration subroutine to validate and canonicalize a configuration type.
-# Supply the specified configuration type as an argument.
-# If it is invalid, we print an error message on stderr and exit with code 1.
-# Otherwise, we print the canonical config type on stdout and succeed.
-
-# This file is supposed to be the same for all GNU packages
-# and recognize all the CPU types, system types and aliases
-# that are meaningful with *any* GNU software.
-# Each package is responsible for reporting which valid configurations
-# it does not support.  The user should be able to distinguish
-# a failure to support a valid configuration from a meaningless
-# configuration.
-
-# The goal of this file is to map all the various variations of a given
-# machine specification into a single specification in the form:
-#      CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
-# or in some cases, the newer four-part form:
-#      CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
-# It is wrong to echo any other type of specification.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION] CPU-MFR-OPSYS
-       $0 [OPTION] ALIAS
-
-Canonicalize a configuration name.
-
-Operation modes:
-  -h, --help         print this help, then exit
-  -t, --time-stamp   print date of last modification, then exit
-  -v, --version      print version number, then exit
-
-Report bugs and patches to <config-patches@gnu.org>."
-
-version="\
-GNU config.sub ($timestamp)
-
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions.  There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
-  case $1 in
-    --time-stamp | --time* | -t )
-       echo "$timestamp" ; exit ;;
-    --version | -v )
-       echo "$version" ; exit ;;
-    --help | --h* | -h )
-       echo "$usage"; exit ;;
-    -- )     # Stop option processing
-       shift; break ;;
-    - )        # Use stdin as input.
-       break ;;
-    -* )
-       echo "$me: invalid option $1$help"
-       exit 1 ;;
-
-    *local*)
-       # First pass through any local machine types.
-       echo $1
-       exit ;;
-
-    * )
-       break ;;
-  esac
-done
-
-case $# in
- 0) echo "$me: missing argument$help" >&2
-    exit 1;;
- 1) ;;
- *) echo "$me: too many arguments$help" >&2
-    exit 1;;
-esac
-
-# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
-# Here we must recognize all the valid KERNEL-OS combinations.
-maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
-case $maybe_os in
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
-  kopensolaris*-gnu* | \
-  storm-chaos* | os2-emx* | rtmk-nova*)
-    os=-$maybe_os
-    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
-    ;;
-  *)
-    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
-    if [ $basic_machine != $1 ]
-    then os=`echo $1 | sed 's/.*-/-/'`
-    else os=; fi
-    ;;
-esac
-
-### Let's recognize common machines as not being operating systems so
-### that things like config.sub decstation-3100 work.  We also
-### recognize some manufacturers as not being operating systems, so we
-### can provide default operating systems below.
-case $os in
-       -sun*os*)
-               # Prevent following clause from handling this invalid input.
-               ;;
-       -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
-       -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
-       -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
-       -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-       -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-       -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
-       -apple | -axis | -knuth | -cray)
-               os=
-               basic_machine=$1
-               ;;
-       -sim | -cisco | -oki | -wec | -winbond)
-               os=
-               basic_machine=$1
-               ;;
-       -scout)
-               ;;
-       -wrs)
-               os=-vxworks
-               basic_machine=$1
-               ;;
-       -chorusos*)
-               os=-chorusos
-               basic_machine=$1
-               ;;
-       -chorusrdb)
-               os=-chorusrdb
-               basic_machine=$1
-               ;;
-       -hiux*)
-               os=-hiuxwe2
-               ;;
-       -sco6)
-               os=-sco5v6
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-               ;;
-       -sco5)
-               os=-sco3.2v5
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-               ;;
-       -sco4)
-               os=-sco3.2v4
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-               ;;
-       -sco3.2.[4-9]*)
-               os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-               ;;
-       -sco3.2v[4-9]*)
-               # Don't forget version if it is 3.2v4 or newer.
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-               ;;
-       -sco5v6*)
-               # Don't forget version if it is 3.2v4 or newer.
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-               ;;
-       -sco*)
-               os=-sco3.2v2
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-               ;;
-       -udk*)
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-               ;;
-       -isc)
-               os=-isc2.2
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-               ;;
-       -clix*)
-               basic_machine=clipper-intergraph
-               ;;
-       -isc*)
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
-               ;;
-       -lynx*)
-               os=-lynxos
-               ;;
-       -ptx*)
-               basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
-               ;;
-       -windowsnt*)
-               os=`echo $os | sed -e 's/windowsnt/winnt/'`
-               ;;
-       -psos*)
-               os=-psos
-               ;;
-       -mint | -mint[0-9]*)
-               basic_machine=m68k-atari
-               os=-mint
-               ;;
-esac
-
-# Decode aliases for certain CPU-COMPANY combinations.
-case $basic_machine in
-       # Recognize the basic CPU types without company name.
-       # Some are omitted here because they have special meanings below.
-       1750a | 580 \
-       | a29k \
-       | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
-       | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
-       | am33_2.0 \
-       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
-       | bfin \
-       | c4x | clipper \
-       | d10v | d30v | dlx | dsp16xx \
-       | fido | fr30 | frv \
-       | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
-       | i370 | i860 | i960 | ia64 \
-       | ip2k | iq2000 \
-       | lm32 \
-       | m32c | m32r | m32rle | m68000 | m68k | m88k \
-       | maxq | mb | microblaze | mcore | mep | metag \
-       | mips | mipsbe | mipseb | mipsel | mipsle \
-       | mips16 \
-       | mips64 | mips64el \
-       | mips64octeon | mips64octeonel \
-       | mips64orion | mips64orionel \
-       | mips64r5900 | mips64r5900el \
-       | mips64vr | mips64vrel \
-       | mips64vr4100 | mips64vr4100el \
-       | mips64vr4300 | mips64vr4300el \
-       | mips64vr5000 | mips64vr5000el \
-       | mips64vr5900 | mips64vr5900el \
-       | mipsisa32 | mipsisa32el \
-       | mipsisa32r2 | mipsisa32r2el \
-       | mipsisa64 | mipsisa64el \
-       | mipsisa64r2 | mipsisa64r2el \
-       | mipsisa64sb1 | mipsisa64sb1el \
-       | mipsisa64sr71k | mipsisa64sr71kel \
-       | mipstx39 | mipstx39el \
-       | mn10200 | mn10300 \
-       | moxie \
-       | mt \
-       | msp430 \
-       | nios | nios2 \
-       | ns16k | ns32k \
-       | or32 \
-       | pdp10 | pdp11 | pj | pjl \
-       | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
-       | pyramid \
-       | score \
-       | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
-       | sh64 | sh64le \
-       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
-       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
-       | spu | strongarm \
-       | tahoe | thumb | tic4x | tic80 | tron \
-       | v850 | v850e \
-       | we32k \
-       | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
-       | z8k | z80)
-               basic_machine=$basic_machine-unknown
-               ;;
-       m6811 | m68hc11 | m6812 | m68hc12)
-               # Motorola 68HC11/12.
-               basic_machine=$basic_machine-unknown
-               os=-none
-               ;;
-       m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
-               ;;
-       ms1)
-               basic_machine=mt-unknown
-               ;;
-
-       # We use `pc' rather than `unknown'
-       # because (1) that's what they normally are, and
-       # (2) the word "unknown" tends to confuse beginning users.
-       i*86 | x86_64)
-         basic_machine=$basic_machine-pc
-         ;;
-       # Object if more than one company name word.
-       *-*-*)
-               echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
-               exit 1
-               ;;
-       # Recognize the basic CPU types with company name.
-       580-* \
-       | a29k-* \
-       | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
-       | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
-       | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
-       | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
-       | avr-* | avr32-* \
-       | bfin-* | bs2000-* \
-       | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
-       | clipper-* | craynv-* | cydra-* \
-       | d10v-* | d30v-* | dlx-* \
-       | elxsi-* \
-       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
-       | h8300-* | h8500-* \
-       | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
-       | i*86-* | i860-* | i960-* | ia64-* \
-       | ip2k-* | iq2000-* \
-       | lm32-* \
-       | m32c-* | m32r-* | m32rle-* \
-       | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
-       | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
-       | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
-       | mips16-* \
-       | mips64-* | mips64el-* \
-       | mips64octeon-* | mips64octeonel-* \
-       | mips64orion-* | mips64orionel-* \
-       | mips64r5900-* | mips64r5900el-* \
-       | mips64vr-* | mips64vrel-* \
-       | mips64vr4100-* | mips64vr4100el-* \
-       | mips64vr4300-* | mips64vr4300el-* \
-       | mips64vr5000-* | mips64vr5000el-* \
-       | mips64vr5900-* | mips64vr5900el-* \
-       | mipsisa32-* | mipsisa32el-* \
-       | mipsisa32r2-* | mipsisa32r2el-* \
-       | mipsisa64-* | mipsisa64el-* \
-       | mipsisa64r2-* | mipsisa64r2el-* \
-       | mipsisa64sb1-* | mipsisa64sb1el-* \
-       | mipsisa64sr71k-* | mipsisa64sr71kel-* \
-       | mipstx39-* | mipstx39el-* \
-       | mmix-* \
-       | mt-* \
-       | msp430-* \
-       | nios-* | nios2-* \
-       | none-* | np1-* | ns16k-* | ns32k-* \
-       | orion-* \
-       | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
-       | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
-       | pyramid-* \
-       | romp-* | rs6000-* \
-       | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
-       | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
-       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
-       | sparclite-* \
-       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
-       | tahoe-* | thumb-* \
-       | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
-       | tron-* \
-       | v850-* | v850e-* | vax-* \
-       | we32k-* \
-       | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
-       | xstormy16-* | xtensa*-* \
-       | ymp-* \
-       | z8k-* | z80-*)
-               ;;
-       # Recognize the basic CPU types without company name, with glob match.
-       xtensa*)
-               basic_machine=$basic_machine-unknown
-               ;;
-       # Recognize the various machine names and aliases which stand
-       # for a CPU type and a company and sometimes even an OS.
-       386bsd)
-               basic_machine=i386-unknown
-               os=-bsd
-               ;;
-       3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
-               basic_machine=m68000-att
-               ;;
-       3b*)
-               basic_machine=we32k-att
-               ;;
-       a29khif)
-               basic_machine=a29k-amd
-               os=-udi
-               ;;
-       abacus)
-               basic_machine=abacus-unknown
-               ;;
-       adobe68k)
-               basic_machine=m68010-adobe
-               os=-scout
-               ;;
-       alliant | fx80)
-               basic_machine=fx80-alliant
-               ;;
-       altos | altos3068)
-               basic_machine=m68k-altos
-               ;;
-       am29k)
-               basic_machine=a29k-none
-               os=-bsd
-               ;;
-       amd64)
-               basic_machine=x86_64-pc
-               ;;
-       amd64-*)
-               basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
-               ;;
-       amdahl)
-               basic_machine=580-amdahl
-               os=-sysv
-               ;;
-       amiga | amiga-*)
-               basic_machine=m68k-unknown
-               ;;
-       amigaos | amigados)
-               basic_machine=m68k-unknown
-               os=-amigaos
-               ;;
-       amigaunix | amix)
-               basic_machine=m68k-unknown
-               os=-sysv4
-               ;;
-       apollo68)
-               basic_machine=m68k-apollo
-               os=-sysv
-               ;;
-       apollo68bsd)
-               basic_machine=m68k-apollo
-               os=-bsd
-               ;;
-       aros)
-               basic_machine=i386-pc
-               os=-aros
-               ;;
-       aux)
-               basic_machine=m68k-apple
-               os=-aux
-               ;;
-       balance)
-               basic_machine=ns32k-sequent
-               os=-dynix
-               ;;
-       blackfin)
-               basic_machine=bfin-unknown
-               os=-linux
-               ;;
-       blackfin-*)
-               basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
-               os=-linux
-               ;;
-       c90)
-               basic_machine=c90-cray
-               os=-unicos
-               ;;
-        cegcc)
-               basic_machine=arm-unknown
-               os=-cegcc
-               ;;
-       convex-c1)
-               basic_machine=c1-convex
-               os=-bsd
-               ;;
-       convex-c2)
-               basic_machine=c2-convex
-               os=-bsd
-               ;;
-       convex-c32)
-               basic_machine=c32-convex
-               os=-bsd
-               ;;
-       convex-c34)
-               basic_machine=c34-convex
-               os=-bsd
-               ;;
-       convex-c38)
-               basic_machine=c38-convex
-               os=-bsd
-               ;;
-       cray | j90)
-               basic_machine=j90-cray
-               os=-unicos
-               ;;
-       craynv)
-               basic_machine=craynv-cray
-               os=-unicosmp
-               ;;
-       cr16)
-               basic_machine=cr16-unknown
-               os=-elf
-               ;;
-       crds | unos)
-               basic_machine=m68k-crds
-               ;;
-       crisv32 | crisv32-* | etraxfs*)
-               basic_machine=crisv32-axis
-               ;;
-       cris | cris-* | etrax*)
-               basic_machine=cris-axis
-               ;;
-       crx)
-               basic_machine=crx-unknown
-               os=-elf
-               ;;
-       da30 | da30-*)
-               basic_machine=m68k-da30
-               ;;
-       decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
-               basic_machine=mips-dec
-               ;;
-       decsystem10* | dec10*)
-               basic_machine=pdp10-dec
-               os=-tops10
-               ;;
-       decsystem20* | dec20*)
-               basic_machine=pdp10-dec
-               os=-tops20
-               ;;
-       delta | 3300 | motorola-3300 | motorola-delta \
-             | 3300-motorola | delta-motorola)
-               basic_machine=m68k-motorola
-               ;;
-       delta88)
-               basic_machine=m88k-motorola
-               os=-sysv3
-               ;;
-       dicos)
-               basic_machine=i686-pc
-               os=-dicos
-               ;;
-