1 dnl -*- mode: m4-mode -*-
2 dnl Process this file with autoconf to produce a configure script.
4 dnl disabled 2.53 requirement - we do work with 2.52 on suse 7.3 for example
7 AC_INIT(include/includes.h)
8 AC_CONFIG_HEADER(include/config.h)
10 sinclude(build/smb_build/env.m4)
12 SMB_INCLUDE_M4(build/m4/rewrite.m4)
14 SMB_INCLUDE_M4(lib/popt/config.m4)
15 SMB_INCLUDE_M4(lib/iconv.m4)
16 SMB_INCLUDE_M4(lib/socket/config.m4)
17 SMB_INCLUDE_M4(lib/talloc/config.m4)
18 SMB_INCLUDE_M4(lib/tdb/config.m4)
19 SMB_INCLUDE_M4(lib/ldb/config.m4)
20 SMB_INCLUDE_M4(lib/events/config.m4)
21 SMB_INCLUDE_M4(lib/cmdline/config.m4)
22 SMB_INCLUDE_M4(param/config.m4)
23 SMB_INCLUDE_M4(libcli/auth/gensec.m4)
24 SMB_INCLUDE_M4(libcli/config.m4)
25 SMB_INCLUDE_M4(smbd/process_model.m4)
26 SMB_INCLUDE_M4(lib/registry/config.m4)
27 SMB_INCLUDE_M4(scripting/config.m4)
28 SMB_INCLUDE_M4(gtk/config.m4)
29 SMB_INCLUDE_M4(ntvfs/posix/config.m4)
32 ALLLIBS_CFLAGS="$CFLAGS"
33 ALLLIBS_CPPFLAGS="$CPPFLAGS"
34 ALLLIBS_LDFLAGS="$LDFLAGS"
36 SMB_EXT_LIB_ENABLE(ALLLIBS,YES)
41 [${ALLLIBS_CPPFLAGS}],
44 AC_DEFINE_UNQUOTED(STRING_STATIC_MODULES, "$string_static_modules", [String list of builtin modules])
46 #################################################
47 # do extra things if we are running insure
49 if test "${ac_cv_prog_CC}" = "insure"; then
50 CPPFLAGS="$CPPFLAGS -D__INSURE__"
53 #################################################
54 # add DEVELOPER_CFLAGS only for the real build
55 CFLAGS="${CFLAGS} ${DEVELOPER_CFLAGS}"
57 #################################################
58 # final configure stuff
60 AC_MSG_CHECKING([configure summary])
61 AC_TRY_RUN([#include "${srcdir-.}/build/tests/summary.c"],
63 AC_MSG_ERROR([summary failure. Aborting config]); exit 1;,
64 AC_MSG_WARN([cannot run when cross-compiling]))
69 dnl Remove -L/usr/lib/? from LDFLAGS and LIBS
70 LIB_REMOVE_USR_LIB(LDFLAGS)
71 LIB_REMOVE_USR_LIB(LIBS)
73 dnl Remove -I/usr/include/? from CFLAGS and CPPFLAGS
74 CFLAGS_REMOVE_USR_INCLUDE(CFLAGS)
75 CFLAGS_REMOVE_USR_INCLUDE(CPPFLAGS)
77 SMB_AC_OUTPUT(Makefile)