r1836: - as abartlet said to me, we need to contact the users domain pdcfor doing a
[jelmer/samba4-debian.git] / source / configure.in
1 dnl -*- mode: m4-mode -*-
2 dnl Process this file with autoconf to produce a configure script.
3
4 dnl disabled 2.53 requirement - we do work with 2.52 on suse 7.3 for example
5 dnl AC_PREREQ(2.53)
6
7 AC_INIT(include/includes.h)
8 AC_CONFIG_HEADER(include/config.h)
9
10 sinclude(build/smb_build/env.m4)
11
12 SMB_INCLUDE_M4(build/m4/rewrite.m4)
13
14 SMB_INCLUDE_M4(lib/popt/config.m4)
15 SMB_INCLUDE_M4(lib/iconv.m4)
16 SMB_INCLUDE_M4(lib/basic.m4)
17 SMB_INCLUDE_M4(lib/tdb/config.m4)
18 SMB_INCLUDE_M4(lib/ldb/config.m4)
19 SMB_INCLUDE_M4(lib/cmdline/config.m4)
20 SMB_INCLUDE_M4(param/config.m4)
21 SMB_INCLUDE_M4(libcli/auth/config.m4)
22 SMB_INCLUDE_M4(libcli/auth/gensec.m4)
23 SMB_INCLUDE_M4(libcli/ldap/config.m4)
24 SMB_INCLUDE_M4(libcli/config.m4)
25 SMB_INCLUDE_M4(librpc/config.m4)
26 SMB_INCLUDE_M4(libcli/libsmb.m4)
27 SMB_INCLUDE_M4(libnet/config.m4)
28 SMB_INCLUDE_M4(smbd/process_model.m4)
29 SMB_INCLUDE_M4(smb_server/config.m4)
30 SMB_INCLUDE_M4(auth/config.m4)
31 SMB_INCLUDE_M4(ntvfs/config.m4)
32 SMB_INCLUDE_M4(rpc_server/config.m4)
33 SMB_INCLUDE_M4(lib/registry/config.m4)
34 SMB_INCLUDE_M4(torture/config.m4)
35 SMB_INCLUDE_M4(scripting/config.m4)
36 SMB_INCLUDE_M4(client/config.m4)
37 SMB_INCLUDE_M4(utils/config.m4)
38 SMB_INCLUDE_M4(smbd/config.m4)
39 SMB_INCLUDE_M4(gtk/config.m4)
40 SMB_INCLUDE_M4(lib/dcom/config.m4)
41
42 ALLLIBS_LIBS="$LIBS"
43 ALLLIBS_CFLAGS="$CFLAGS"
44 ALLLIBS_CPPFLAGS="$CPPFLAGS"
45 ALLLIBS_LDFLAGS="$LDFLAGS"
46
47 SMB_EXT_LIB_ENABLE(ALLLIBS,YES)
48
49 SMB_EXT_LIB(ALLLIBS,
50                 [${ALLLIBS_LIBS}],
51                 [${ALLLIBS_CFLAGS}],
52                 [${ALLLIBS_CPPFLAGS}],
53                 [${ALLLIBS_LDFLAGS}])
54
55 AC_DEFINE_UNQUOTED(STRING_STATIC_MODULES, "$string_static_modules", [String list of builtin modules])
56
57 #################################################
58 # do extra things if we are running insure
59
60 if test "${ac_cv_prog_CC}" = "insure"; then
61         CPPFLAGS="$CPPFLAGS -D__INSURE__"
62 fi
63
64 #################################################
65 # final configure stuff
66
67 AC_MSG_CHECKING([configure summary])
68 AC_TRY_RUN([#include "${srcdir-.}/build/tests/summary.c"],
69            AC_MSG_RESULT(yes),
70            AC_MSG_ERROR([summary failure. Aborting config]); exit 1;,
71            AC_MSG_WARN([cannot run when cross-compiling]))
72
73 builddir=`pwd`
74 AC_SUBST(builddir)
75
76 dnl Remove -L/usr/lib/? from LDFLAGS and LIBS
77 LIB_REMOVE_USR_LIB(LDFLAGS)
78 LIB_REMOVE_USR_LIB(LIBS)
79
80 dnl Remove -I/usr/include/? from CFLAGS and CPPFLAGS
81 CFLAGS_REMOVE_USR_INCLUDE(CFLAGS)
82 CFLAGS_REMOVE_USR_INCLUDE(CPPFLAGS)
83
84 SMB_AC_OUTPUT(Makefile)