initial version
[vlendec/samba-autobuild/.git] / ctdb / configure.ac
1 AC_PREREQ(2.50)
2 AC_DEFUN([AC_CHECK_LIB_EXT], [
3         AC_CHECK_LIB([$1],[$3],[$4],[$5],[$7])
4         ac_cv_lib_ext_$1_$3=$ac_cv_lib_$1_$3
5 ])
6 AC_DEFUN([AC_CHECK_FUNC_EXT], [
7         AC_CHECK_FUNC([$1],[$3],[$4])
8         ac_cv_func_ext_$1=$ac_cv_func_$1
9 ])
10 AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ""])
11 AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ""])
12 AC_DEFUN([SMB_EXT_LIB], [echo -n ""])
13 AC_DEFUN([SMB_ENABLE], [echo -n ""])
14 AC_INIT(ctdb.h)
15 AC_CONFIG_SRCDIR([ctdb_daemon.c])
16
17 AC_LIBREPLACE_ALL_CHECKS
18
19 if test "$ac_cv_prog_gcc" = yes; then
20    CFLAGS="$CFLAGS -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings"
21 fi
22
23 AC_CONFIG_HEADER(config.h)
24
25 EXTRA_OBJ=""
26
27 m4_include(libtalloc.m4)
28 m4_include(libtdb.m4)
29
30 AC_SUBST(EXTRA_OBJ)
31
32 AC_OUTPUT(Makefile)