3 dnl# Process this file with autoconf to produce a configure script.
11 AC_CONFIG_AUX_DIR(${BUILD_DIR}/autoconf)
12 AC_CONFIG_HEADER(src/config.h:autoconf/config.h.in)
14 dnl require a recent autoconf
18 dnl search for true and false programs.
19 AC_PATH_PROGS(TRUEPRG, true, :)
20 AC_PATH_PROGS(FALSEPRG, false, :)
25 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
26 DATE=`sed -n -e 's/^.*[ \t]*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
27 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
31 echo "configuring for bacula $VERSION ($DATE)"
34 dnl -------------------------------------------------------
35 dnl# Check for compiler.
36 dnl ------------------------------------------------------
40 AC_PROG_CC_C_O dnl Determine if C compiler support -c -o.
41 AC_PROG_GCC_TRADITIONAL dnl Determine if ioctl() need -traditional.
48 dnl -------------------------------------------------------
49 dnl# Check for programs.
50 dnl ------------------------------------------------------
53 AC_PATH_PROG(MV, mv, mv)
54 AC_PATH_PROG(RM, rm, rm)
55 AC_PATH_PROG(CP, cp, cp)
56 AC_PATH_PROG(SED, sed, sed)
57 AC_PATH_PROG(AWK, awk, awk)
58 AC_PATH_PROG(ECHO, echo, echo)
59 AC_PATH_PROG(CMP, cmp, cmp)
60 AC_PATH_PROG(TBL, tbl, tbl)
61 AC_PATH_PROG(AR, ar, ar)
62 dnl AC_PATH_PROG(RANLIB, ranlib, ranlib)
63 AC_PATH_PROG(OPENSSL, openssl, none)
64 AC_PATH_PROG(MTX, mtx, mtx)
65 AC_PATH_PROG(PKGCONFIG, pkg-config, pkg-config)
66 AC_PATH_PROG(WXCONFIG, wx-config, wx-config)
68 test -n "$ARFLAG" || ARFLAGS="cr"
75 AC_SUBST(LOCAL_CFLAGS)
76 AC_SUBST(LOCAL_LDFLAGS)
81 dnl --------------------------------------------------
82 dnl Bacula OP Sys determination (see aclocal.m4)
83 dnl --------------------------------------------------
86 # -----------------------------------------------------------
87 dnl Bacula OPSys Distribution determination (see aclocal.m4)
88 # ----------------------------------------------------------
89 BA_CHECK_OPSYS_DISTNAME
91 # -----------------------------------------------------------
92 dnl Check for gnome stuff for gnome-console
93 # ----------------------------------------------------------
94 AM_ACLOCAL_INCLUDE(gnome-macros)
96 # ------------------------------------------------------------------
97 # If the user has not set --prefix, we set our default to nothing.
98 # In this case, if the user has not set --sysconfdir, we set it
99 # to the package default of /etc/bacula. If either --prefix or
100 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
101 # ------------------------------------------------------------------
102 if test x${prefix} = xNONE ; then
103 if test `eval echo ${sysconfdir}` = NONE/etc ; then
104 sysconfdir=/etc/bacula
108 sysconfdir=`eval echo ${sysconfdir}`
110 # -------------------------------------------------------------------------
111 # If the user has not set --exec-prefix, we default to ${prefix}
112 # -------------------------------------------------------------------------
113 if test x${exec_prefix} = xNONE ; then
114 exec_prefix=${prefix}
117 # ------------------------------------------------------------------
118 # If the user has not set --sbindir, we set our default as /sbin
119 # ------------------------------------------------------------------
120 if test x$sbindir = x'${exec_prefix}/sbin' ; then
121 sbindir=${exec_prefix}/sbin
123 sbindir=`eval echo ${sbindir}`
125 # ------------------------------------------------------------------
126 # All list of languages for which a translation exist. Each
127 # language is separated by a space.
128 # ------------------------------------------------------------------
131 AC_PATH_PROGS(MSGFMT, msgfmt, no)
132 if test "$MSGFMT" = "no"
134 echo 'msgfmt program not found, disabling NLS !'
136 USE_INCLUDED_LIBINTL=no
144 support_postgresql=no
145 support_smartalloc=yes
149 support_wx_console=no
151 support_static_tools=no
154 support_static_dir=no
155 support_static_cons=no
161 dnl# --------------------------------------------------------------------------
162 dnl# CHECKING COMMAND LINE OPTIONS
163 dnl# --------------------------------------------------------------------------
165 # -------------------------------------------
166 # gnome (default off)
167 # -------------------------------------------
169 [ --enable-gnome enable build of gnome-console GUI [disabled]],
170 [if test x$enableval = xyes; then
175 if test x$support_gnome = xyes; then
176 abc=`$PKGCONFIG --exists libgnomeui-2.0`
178 if test $pkg = 0; then
179 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
180 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
181 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
182 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
183 AC_SUBST(GNOME_INCLUDEDIR)
184 AC_SUBST(GNOMEUI_LIBS)
185 AC_SUBST(GNOME_LIBDIR)
187 GNOME_DIR=src/gnome2-console
188 gnome_version="Version 2.x"
192 GNOME_DIR=src/gnome-console
193 gnome_version="Version 1.4"
199 # -------------------------------------------
200 # wx-console (default off)
201 # -------------------------------------------
202 AC_ARG_ENABLE(wx-console,
203 [ --enable-wx-console enable build of wxWidgets console [disabled]],
204 [if test x$enableval = xyes; then
205 support_wx_console=yes
209 if test x$support_wx_console = xyes; then
210 abc=`$WXCONFIG --cppflags`
212 if test $pkg = 0; then
213 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
214 WXCONS_LDFLAGS=`$WXCONFIG --libs`
215 AC_SUBST(WXCONS_CPPFLAGS)
216 AC_SUBST(WXCONS_LDFLAGS)
217 WX_DIR=src/wx-console
220 echo "wx-config program not found. wx-console disabled."
222 support_wx_console=no
228 # -------------------------------------------
229 # tray-monitor (default off)
230 # -------------------------------------------
231 AC_ARG_ENABLE(tray-monitor,
232 [ --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) [disabled]],
233 [if test x$enableval = xyes; then
234 support_tray_monitor=yes
238 if test x$support_tray_monitor = xyes; then
239 abc=`$PKGCONFIG --exists gtk+-2.0`
241 if test $pkg = 0; then
242 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
243 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
244 AC_SUBST(TRAY_MONITOR_CPPFLAGS)
245 AC_SUBST(TRAY_MONITOR_LDFLAGS)
246 TRAY_MONITOR_DIR=src/tray-monitor
249 AC_SUBST(TRAY_MONITOR_DIR)
251 # -------------------------------------------
252 # smartalloc (default off)
253 # -------------------------------------------
254 AC_ARG_ENABLE(smartalloc,
255 [ --enable-smartalloc enable smartalloc debugging support [disabled]],
256 [if test x$enableval = xno; then
257 support_smartalloc=no
260 if test x$support_smartalloc = xyes; then
261 AC_DEFINE(SMARTALLOC)
264 # -------------------------------------------
265 # static-tools (default off)
266 # -------------------------------------------
267 AC_ARG_ENABLE(static-tools,
268 [ --enable-static-tools enable static tape tools [disabled]],
269 [if test x$enableval = xyes; then
270 support_static_tools=yes
274 if test x$support_static_tools = xyes; then
275 TTOOL_LDFLAGS="-static"
277 AC_SUBST(TTOOL_LDFLAGS)
279 # -------------------------------------------
280 # static-fd (default off)
281 # -------------------------------------------
282 AC_ARG_ENABLE(static-fd,
283 [ --enable-static-fd enable static File daemon [disabled]],
284 [if test x$enableval = xyes; then
285 support_static_fd=yes
289 if test x$support_static_fd = xyes; then
290 STATIC_FD="static-bacula-fd"
294 # -------------------------------------------
295 # static-sd (default off)
296 # -------------------------------------------
297 AC_ARG_ENABLE(static-sd,
298 [ --enable-static-sd enable static Storage daemon [disabled]],
299 [if test x$enableval = xyes; then
300 support_static_sd=yes
304 if test x$support_static_sd = xyes; then
305 STATIC_SD="static-bacula-sd"
309 # -------------------------------------------
310 # static-dir (default off)
311 # -------------------------------------------
312 AC_ARG_ENABLE(static-dir,
313 [ --enable-static-dir enable static Director [disabled]],
314 [if test x$enableval = xyes; then
315 support_static_dir=yes
319 if test x$support_static_dir = xyes; then
320 STATIC_DIR="static-bacula-dir"
324 # -------------------------------------------
325 # static-cons (default off)
326 # -------------------------------------------
327 AC_ARG_ENABLE(static-cons,
328 [ --enable-static-cons enable static Console [disabled]],
329 [if test x$enableval = xyes; then
330 support_static_cons=yes
336 if test x$support_static_cons = xyes; then
337 STATIC_CONS="static-bconsole"
338 STATIC_GNOME_CONS="static-gnome-console"
339 STATIC_WX_CONS="static-wx-console"
341 AC_SUBST(STATIC_CONS)
342 AC_SUBST(STATIC_GNOME_CONS)
343 AC_SUBST(STATIC_WX_CONS)
345 # -------------------------------------------
346 # client_only (default off)
347 # -------------------------------------------
348 AC_ARG_ENABLE(client-only,
349 [ --enable-client-only build client (File daemon) only [disabled]],
350 [if test x$enableval = xyes; then
351 build_client_only=yes
355 if test x$build_client_only = xno; then
362 # ---------------------------------------------------
363 # Check for conio (Bacula readline substitute)(
364 # ---------------------------------------------------
365 # this allows you to turn it completely off
367 [ --disable-conio disable conio support [enabled]
369 [if test x$enableval = xno; then
374 if test x$support_conio = xyes; then
375 AC_CHECK_HEADER(termcap.h,
376 [ AC_CHECK_LIB(termcap, tgetent,
377 [ CONS_LIBS="-ltermcap"
382 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
384 [ AC_CHECK_LIB(ncurses, tgetent,
385 [ CONS_LIBS="-lncurses"
390 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
392 [ echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "])
394 ],[echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "])
398 # ---------------------------------------------------
399 # Check for readline support/directory (default off)
400 # ---------------------------------------------------
401 # this allows you to turn it completely off
402 AC_ARG_ENABLE(readline,
403 [ --disable-readline disable readline support [disable]
405 [if test x$enableval = xno; then
411 if test x$support_readline = xyes; then
412 AC_ARG_WITH(readline,
413 [ --with-readline=DIR specify readline library directory],
415 case "$with_readline" in
418 if test "$with_readline" != "yes"; then
419 CONS_INC="-I${with_readline}"
420 CONS_LDFLAGS="-L$with_readline"
422 with_readline="/usr/include/readline"
424 AC_CHECK_HEADER(${with_readline}/readline.h,
425 [ AC_DEFINE(HAVE_READLINE)
426 CONS_LIBS="-lreadline -ltermcap"
430 echo "readline.h not found. readline turned off ..."
437 # check for standard readline library
438 AC_CHECK_HEADER(/usr/include/readline/readline.h,
439 [ AC_DEFINE(HAVE_READLINE)
441 CONS_INC="-I/usr/include/readline"
442 CONS_LIBS="-lreadline -ltermcap"
444 # Did not find standard library, so try Bacula's default
445 AC_CHECK_HEADER(${TOP_DIR}/depkgs/readline/readline.h,
446 [ AC_DEFINE(HAVE_READLINE)
448 CONS_INC="-I${TOP_DIR}/depkgs/readline"
449 CONS_LIBS="-lreadline -lhistory -ltermcap"
450 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
451 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
454 echo "readline.h not found. readline turned off ..."
470 AC_SUBST(CONS_LDFLAGS)
471 AC_SUBST(READLINE_SRC)
473 # Minimal stuff for readline Makefile configuration
478 AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat lchown)
479 AC_CHECK_FUNCS(nanosleep nl_langinfo)
480 AC_CHECK_HEADERS(varargs.h)
482 # End of readline/conio stuff
483 # -----------------------------------------------------------------------
486 # ---------------------------------------------------
487 # Check for GMP support/directory
488 # ---------------------------------------------------
492 # [ --with-gmp[=DIR] Specify gmp library directory],
494 # case "$with_gmp" in
497 # if test "$with_gmp" != "yes"; then
498 # GMP_INC="-I$with_gmp"
500 # GMP_LDFLAGS="-L$with_gmp"
502 # with_gmp="/usr/include"
504 # AC_CHECK_HEADER($with_gmp/gmp.h,
505 # [ AC_MSG_RESULT(yes)
506 # AC_DEFINE(HAVE_GMP)
510 # [ AC_MSG_ERROR([*** gmp library missing])
516 # # check for standard gmp library
517 # AC_CHECK_HEADER(/usr/include/gmp.h,
518 # [ AC_MSG_RESULT(yes)
519 # AC_DEFINE(HAVE_GMP)
524 # # Did not find standard library, so use our own
526 # AC_DEFINE(HAVE_GMP)
529 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
531 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
532 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
538 #AC_SUBST(GMP_LDFLAGS)
542 # -----------------------------------------------------------------------
545 # ---------------------------------------------------
546 # Check for CWEB support/directory
547 # ---------------------------------------------------
552 # [ --with-cweb[=DIR] Specify cweb library directory],
554 # case "$with_cweb" in
557 # if test "$with_cweb" != "yes"; then
558 # CWEB_INC="-I$with_cweb"
560 # CWEB_LDFLAGS="-L$with_cweb"
562 # with_cweb="/usr/include"
564 # AC_CHECK_HEADER($with_cweb/cweb.h,
565 # [ AC_MSG_RESULT(yes)
566 # AC_DEFINE(HAVE_CWEB)
570 # [ AC_MSG_ERROR([*** cweb library missing])
576 # # check for standard cweb library
577 # AC_CHECK_HEADER(/usr/include/cweb.h,
578 # [ AC_MSG_RESULT(yes)
579 # AC_DEFINE(HAVE_CWEB)
584 # # Did not find starndard library, so use our own
586 # AC_DEFINE(HAVE_CWEB)
589 # CWEB=${TOP_DIR}/depkgs/cweb
590 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
592 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
593 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
600 #AC_SUBST(CWEB_LDFLAGS)
604 # -----------------------------------------------------------------------
608 # -----------------------------------------------------------
609 # Check whether user wants TCP wrappers support (default off)
610 # -----------------------------------------------------------
612 AC_ARG_WITH(tcp-wrappers,
613 [ --with-tcp-wrappers=DIR enable tcpwrappers support],
615 if test "x$withval" != "xno" ; then
617 LIBS="$saved_LIBS -lwrap"
618 AC_MSG_CHECKING(for libwrap)
621 int deny_severity = 0;
622 int allow_severity = 0;
623 struct request_info *req; ],
624 [ hosts_access(req); ],
627 AC_DEFINE(HAVE_LIBWRAP)
630 LIBS="$saved_LIBS -lwrap -lnsl"
633 int deny_severity = 0;
634 int allow_severity = 0;
635 struct request_info *req; ],
636 [ hosts_access(req); ],
639 AC_DEFINE(HAVE_LIBWRAP)
642 [AC_MSG_ERROR([*** libwrap missing]) ] ]
649 # ------------------------------------------
650 # Where to place working dir
651 # ------------------------------------------
652 working_dir=`eval echo ${prefix}/var/bacula/working`
653 AC_ARG_WITH(working-dir,
654 [ --with-working-dir=PATH specify path of Bacula working directory],
656 if test "x$withval" != "xno" ; then
662 AC_SUBST(working_dir)
665 # ------------------------------------------
666 # Where to place scriptdir (script files)
667 # ------------------------------------------
668 scriptdir=`eval echo ${sysconfdir}`
669 AC_ARG_WITH(scriptdir,
670 [ --with-scriptdir=PATH specify path of Bacula scripts directory],
672 if test "x$withval" != "xno" ; then
681 # ------------------------------------------
682 # Where to send dump email
683 # ------------------------------------------
684 dump_email=root@localhost
685 AC_ARG_WITH(dump-email,
686 [ --with-dump-email=EMAIL dump email address],
688 if test "x$withval" != "xno" ; then
696 # ------------------------------------------
697 # Where to send job email
698 # ------------------------------------------
699 job_email=root@localhost
700 AC_ARG_WITH(job-email,
701 [ --with-job-email=EMAIL job output email address],
703 if test "x$withval" != "xno" ; then
711 # ------------------------------------------
712 # Where to find smtp host
713 # ------------------------------------------
715 AC_ARG_WITH(smtp_host,
716 [ --with-smtp-host=HOST SMTP mail host address],
718 if test "x$withval" != "xno" ; then
727 # ------------------------------------
728 # Where to place pid files
729 # ------------------------------------
732 [ --with-pid-dir=PATH specify location of Bacula pid files],
734 if test "x$withval" != "xno" ; then
740 AC_DEFINE_UNQUOTED(_PATH_BACULA_PIDDIR, "$piddir")
744 # ------------------------------------
745 # Where to place subsys "lock file"
746 # ------------------------------------
747 subsysdir=/var/run/subsys
748 AC_ARG_WITH(subsys-dir,
749 [ --with-subsys-dir=PATH specify location of Bacula subsys file],
751 if test "x$withval" != "xno" ; then
761 # ------------------------------------
762 # Where to start assigning ports
763 # ------------------------------------
765 AC_ARG_WITH(baseport,
766 [ --with-baseport=PORT specify base port address for daemons],
768 if test "x$withval" != "xno" ; then
775 dir_port=`expr $baseport`
776 fd_port=`expr $baseport + 1`
777 sd_port=`expr $fd_port + 1`
784 # ------------------------------------------
786 # ------------------------------------------
788 AC_ARG_WITH(dir-password,
789 [ --with-dir-password=PASSWORD specify Director's password],
791 if test "x$withval" != "xno" ; then
792 dir_password=$withval
797 if test "x$dir_password" = "x" ; then
798 if test "x$OPENSSL" = "xnone" ; then
799 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
800 key=`autoconf/randpass 33`
802 key=`openssl rand -base64 33`
808 AC_ARG_WITH(fd-password,
809 [ --with-fd-password=PASSWORD specify Client's password],
811 if test "x$withval" != "xno" ; then
817 if test "x$fd_password" = "x" ; then
818 if test "x$OPENSSL" = "xnone" ; then
819 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
820 key=`autoconf/randpass 37`
822 key=`openssl rand -base64 33`
828 AC_ARG_WITH(sd-password,
829 [ --with-sd-password=PASSWORD specify Storage daemon's password],
831 if test "x$withval" != "xno" ; then
837 if test "x$sd_password" = "x" ; then
838 if test "x$OPENSSL" = "xnone" ; then
839 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
840 key=`autoconf/randpass 41`
842 key=`openssl rand -base64 33`
848 AC_SUBST(dir_password)
849 AC_SUBST(fd_password)
850 AC_SUBST(sd_password)
854 # Handle users and groups for each daemon
857 AC_ARG_WITH(dir_user,
858 [ --with-dir-user=USER specify user for Director daemon],
860 if test "x$withval" != "x" ; then
867 AC_ARG_WITH(dir_group,
868 [ --with-dir-group=GROUP specify group for Director daemon],
870 if test "x$withval" != "x" ; then
878 [ --with-sd-user=USER specify user for Storage daemon],
880 if test "x$withval" != "x" ; then
887 AC_ARG_WITH(sd_group,
888 [ --with-sd-group=GROUP specify group for Storage daemon],
890 if test "x$withval" != "x" ; then
898 [ --with-fd-user=USER specify user for File daemon],
900 if test "x$withval" != "x" ; then
907 AC_ARG_WITH(fd_group,
908 [ --with-fd-group=GROUP specify group for File daemon],
910 if test "x$withval" != "x" ; then
927 # allow setting default executable permissions
930 AC_ARG_WITH(sbin-perm,
931 [ --with-sbin-perm=MODE specify permissions for sbin binaries (0754)],
933 if test "x$withval" != "x" ; then
941 # ------------------------------------------------
942 # Bacula check for various SQL database engines
943 # ------------------------------------------------
944 BA_CHECK_POSTGRESQL_DB
953 AC_DEFINE(PROTOTYPES)
955 dnl# --------------------------------------------------------------------------
956 dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
958 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
959 if test -z "$CCOPTS"; then
960 CCOPTS='-g -O2 -Wall'
969 dnl See if we can use 64 bit file addresses
970 largefile_support="no"
976 dnl# --------------------------------------------------------------------------
977 dnl# CHECKING FOR HEADER FILES
978 dnl# --------------------------------------------------------------------------
1013 AC_STRUCT_ST_BLKSIZE
1017 dnl# --------------------------------------------------------------------------
1018 dnl# Check for utime.h structure
1019 dnl# --------------------------------------------------------------------------
1020 AC_CACHE_CHECK(for utime.h, ba_cv_header_utime_h,
1022 #include <sys/types.h>
1023 #include <utime.h>], [struct utimbuf foo],
1024 ba_cv_header_utime_h=yes, ba_cv_header_utime_h=no)])
1025 test $ba_cv_header_utime_h = yes && AC_DEFINE(HAVE_UTIME_H)
1027 dnl# --------------------------------------------------------------------------
1028 dnl# Check for socklen_t
1029 dnl# --------------------------------------------------------------------------
1030 AC_CACHE_CHECK(for socklen_t, ba_cv_header_socklen_t,
1032 #include <sys/types.h>
1033 #include <sys/socket.h>],
1035 ba_cv_header_socklen_t=yes, ba_cv_header_socklen_t=no)])
1036 test $ba_cv_header_socklen_t = yes && AC_DEFINE(HAVE_SOCKLEN_T)
1038 dnl# --------------------------------------------------------------------------
1039 dnl# Check for bigendian
1040 dnl# --------------------------------------------------------------------------
1041 AC_CACHE_CHECK([for bigendian], ba_cv_bigendian,
1043 [main(){long a=1L; char *p=(char *)&a; exit(*p);}],
1044 [ba_cv_bigendian=yes],
1045 [ba_cv_bigendian=no],
1046 [ba_cv_bigendian=no])])
1047 test $ba_cv_bigendian = yes && AC_DEFINE(HAVE_BIGENDIAN)
1053 dnl# --------------------------------------------------------------------------
1054 dnl# CHECKING FOR FILESYSTEM TYPE
1055 dnl# --------------------------------------------------------------------------
1056 AC_MSG_CHECKING(how to get filesystem type)
1058 # The order of these tests is important.
1059 AC_TRY_CPP([#include <sys/statvfs.h>
1060 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
1061 if test $fstype = no; then
1062 AC_TRY_CPP([#include <sys/statfs.h>
1063 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
1065 if test $fstype = no; then
1066 AC_TRY_CPP([#include <sys/statfs.h>
1067 #include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
1069 if test $fstype = no; then
1070 AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT) fstype=4.3BSD)
1072 if test $fstype = no; then
1073 AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS) fstype=4.4BSD/OSF1)
1075 if test $fstype = no; then
1076 AC_TRY_CPP([#include <sys/mount.h>
1077 #include <sys/fs_types.h>], AC_DEFINE(FSTYPE_GETMNT) fstype=Ultrix)
1079 AC_MSG_RESULT($fstype)
1081 dnl# --------------------------------------------------------------------------
1082 dnl# CHECKING FOR TYPEDEFS, STRUCTURES, AND COMPILER CHARACTERISTICS.
1083 dnl# --------------------------------------------------------------------------
1091 AC_CHECK_TYPE(ino_t, unsigned long)
1092 AC_CHECK_TYPE(dev_t, unsigned long)
1093 AC_CHECK_TYPE(daddr_t, long)
1094 AC_CHECK_TYPE(major_t, int)
1095 AC_CHECK_TYPE(minor_t, int)
1096 AC_CHECK_TYPE(ssize_t, int)
1103 AC_CHECK_SIZEOF(char, 1)
1104 AC_CHECK_SIZEOF(short int, 2)
1105 AC_CHECK_SIZEOF(int, 4)
1106 AC_CHECK_SIZEOF(long int, 4)
1107 AC_CHECK_SIZEOF(long long int, 8)
1108 AC_CHECK_SIZEOF(int *, 4)
1110 # Check for sys/types.h types
1111 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
1113 [ #include <sys/types.h> ],
1115 [ ac_cv_have_u_int="yes" ],
1116 [ ac_cv_have_u_int="no" ]
1119 if test "x$ac_cv_have_u_int" = "xyes" ; then
1120 AC_DEFINE(HAVE_U_INT)
1124 AC_CACHE_CHECK([for intmax_t type], ac_cv_have_intmax_t, [
1126 [ #include <sys/types.h> ],
1127 [ intmax_t a; a = 1;],
1128 [ ac_cv_have_intmax_t="yes" ],
1131 [ #include <stdint.h> ],
1132 [ intmax_t a; a = 1;],
1133 [ ac_cv_have_intmax_t="yes" ],
1134 [ ac_cv_have_intmax_t="no" ]
1140 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
1141 AC_DEFINE(HAVE_INTMAX_T)
1146 AC_CACHE_CHECK([for u_intmax_t type], ac_cv_have_u_intmax_t, [
1148 [ #include <sys/types.h> ],
1149 [ u_intmax_t a; a = 1;],
1150 [ ac_cv_have_u_intmax_t="yes" ],
1153 [ #include <stdint.h> ],
1154 [ u_intmax_t a; a = 1;],
1155 [ ac_cv_have_u_intmax_t="yes" ],
1156 [ ac_cv_have_u_intmax_t="no" ]
1161 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
1162 AC_DEFINE(HAVE_U_INTMAX_T)
1167 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
1169 [ #include <sys/types.h> ],
1170 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
1171 [ ac_cv_have_intxx_t="yes" ],
1172 [ ac_cv_have_intxx_t="no" ]
1175 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
1176 AC_DEFINE(HAVE_INTXX_T)
1180 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
1182 [ #include <sys/types.h> ],
1183 [ int64_t a; a = 1;],
1184 [ ac_cv_have_int64_t="yes" ],
1185 [ ac_cv_have_int64_t="no" ]
1188 if test "x$ac_cv_have_int64_t" = "xyes" ; then
1189 AC_DEFINE(HAVE_INT64_T)
1193 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
1195 [ #include <sys/types.h> ],
1196 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
1197 [ ac_cv_have_u_intxx_t="yes" ],
1198 [ ac_cv_have_u_intxx_t="no" ]
1201 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
1202 AC_DEFINE(HAVE_U_INTXX_T)
1206 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
1208 [ #include <sys/types.h> ],
1209 [ u_int64_t a; a = 1;],
1210 [ ac_cv_have_u_int64_t="yes" ],
1211 [ ac_cv_have_u_int64_t="no" ]
1214 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
1215 AC_DEFINE(HAVE_U_INT64_T)
1219 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
1220 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1222 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
1224 [ #include <sys/bitypes.h> ],
1225 [ int8_t a; int16_t b; int32_t c;
1226 u_int8_t e; u_int16_t f; u_int32_t g;
1227 a = b = c = e = f = g = 1; ],
1228 [ AC_DEFINE(HAVE_U_INTXX_T)
1229 AC_DEFINE(HAVE_INTXX_T)
1230 AC_DEFINE(HAVE_SYS_BITYPES_H)
1231 AC_MSG_RESULT(yes) ],
1232 [ AC_MSG_RESULT(no)]
1236 if test -z "$have_u_intxx_t" ; then
1237 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
1239 [ #include <sys/types.h> ],
1240 [ uint8_t a; uint16_t b;
1241 uint32_t c; a = b = c = 1; ],
1242 [ ac_cv_have_uintxx_t="yes" ],
1243 [ ac_cv_have_uintxx_t="no" ]
1246 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
1247 AC_DEFINE(HAVE_UINTXX_T)
1251 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
1252 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1254 AC_MSG_CHECKING([for int64_t and u_int64_t types in sys/bitypes.h])
1256 [ #include <sys/bitypes.h> ],
1257 [ int64_t a; u_int64_t b;
1259 [ AC_DEFINE(HAVE_U_INT64_T)
1260 AC_DEFINE(HAVE_INT64_T)
1261 AC_MSG_RESULT(yes) ],
1262 [ AC_MSG_RESULT(no)]
1266 if (test -z "$have_uintxx_t" && \
1267 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1269 AC_MSG_CHECKING([for uintXX_t types in sys/bitypes.h])
1271 [ #include <sys/bitypes.h> ],
1272 [ uint8_t a; uint16_t b;
1273 uint32_t c; a = b = c = 1; ],
1274 [ AC_DEFINE(HAVE_UINTXX_T)
1275 AC_MSG_RESULT(yes) ],
1276 [ AC_MSG_RESULT(no)]
1284 dnl# --------------------------------------------------------------------------
1285 dnl# CHECKING FOR REQUIRED LIBRARY FUNCTIONS
1286 dnl# --------------------------------------------------------------------------
1302 [echo 'configure: cannot find needed function.'; exit 1]
1305 AC_CHECK_FUNCS(fchdir, [AC_DEFINE(HAVE_FCHDIR)])
1306 AC_CHECK_FUNCS(strtoll, [AC_DEFINE(HAVE_STRTOLL)])
1308 AC_CHECK_FUNCS(chflags)
1310 AC_CHECK_FUNCS(snprintf vsnprintf gethostid getdomainname)
1312 dnl# --------------------------------------------------------------------------
1313 dnl# CHECKING FOR THREAD SAFE FUNCTIONS
1314 dnl# --------------------------------------------------------------------------
1315 AC_CHECK_FUNCS(localtime_r readdir_r strerror_r gethostbyname_r)
1317 # If resolver functions are not in libc check for -lnsl or -lresolv.
1318 AC_CHECK_FUNC(gethostbyname_r,
1319 AC_MSG_RESULT(using libc's resolver),
1320 AC_CHECK_LIB(nsl,gethostbyname_r)
1321 AC_CHECK_LIB(resolv,gethostbyname_r))
1324 # Find where sockets are (especially for Solaris)
1325 AC_CHECK_FUNC(socket,
1326 AC_MSG_RESULT(using libc's socket),
1327 AC_CHECK_LIB(xnet,socket)
1328 AC_CHECK_LIB(socket,socket)
1329 AC_CHECK_LIB(inet,socket))
1331 AC_CHECK_FUNCS(inet_pton, [AC_DEFINE(HAVE_INET_PTON)])
1332 AC_CHECK_FUNCS(inet_ntop, [AC_DEFINE(HAVE_INET_NTOP)])
1333 AC_CHECK_FUNCS(gethostbyname2, [AC_DEFINE(HAVE_GETHOSTBYNAME2)])
1335 dnl ----------------------------
1336 dnl check sa_len of sockaddr
1337 dnl ----------------------------
1338 AC_CACHE_CHECK(for struct sockaddr has a sa_len field, ac_cv_struct_sockaddr_sa_len,
1339 [AC_TRY_COMPILE([#include <sys/socket.h>], [struct sockaddr s; s.sa_len;],
1340 ac_cv_struct_sockaddr_sa_len=yes, ac_cv_struct_sockaddr_sa_len=no)])
1342 if test $ac_cv_struct_sockaddr_sa_len = yes; then
1343 AC_DEFINE(HAVE_SA_LEN, 1, [Define if sa_len field exists in struct sockaddr])
1347 dnl Check for IPv6 support
1348 AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,
1349 [AC_TRY_LINK([ #include <sys/types.h>
1350 #include <sys/socket.h>
1351 #include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
1353 [ac_cv_ipv6_support=yes], [ac_cv_ipv6_support=no])])
1355 if test "$ac_cv_ipv6_support" = yes; then
1356 AC_DEFINE(HAVE_IPV6,1,[Whether to enable IPv6 support])
1365 AC_FUNC_CLOSEDIR_VOID
1366 AC_FUNC_SETPGRP dnl check for BSD setpgrp.
1370 dnl# FreeBSD needs to link libxpg4
1371 AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])
1374 AC_CHECK_LIB(sun, getpwnam)
1376 AC_CHECK_HEADERS(zlib.h)
1377 AC_CHECK_LIB(z, deflate, [FDLIBS="-lz"])
1379 if test x$FDLIBS = x-lz; then
1380 AC_DEFINE(HAVE_LIBZ)
1384 AC_CHECK_HEADER(sys/acl.h)
1385 AC_CHECK_LIB(acl, acl_get_file, [FDLIBS="-lacl $FDLIBS"])
1387 if test $ac_cv_lib_acl_acl_get_file = yes; then
1392 dnl Check for pthread libraries
1394 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
1395 [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
1396 [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
1397 [AC_CHECK_FUNC(pthread_create)]
1407 LDFLAGS=${LDFLAGS--O}
1408 DB_LIBS="${SQL_LFLAGS}"
1410 CPPFLAGS="$CPPFLAGS"
1421 AC_SUBST(X_EXTRA_LIBS)
1425 dnl# extra configurable objects
1436 # Finally we set appropriate distribution specific
1437 # variables and defaults
1439 # PFILES are platform specific files
1440 PFILES="platforms/Makefile"
1444 hostname=`uname -n | cut -d '.' -f 1`
1448 PSCMD="ps -e -o pid,comm"
1450 platforms/aix/Makefile"
1451 TAPEDRIVE="/dev/rmt0.1"
1455 PTHREAD_LIB="-lpthread -lexc"
1456 if test "${CC}" = "gcc" ; then
1463 TAPEDRIVE="/dev/nrmt0"
1466 DISTVER=`uname -a |awk '{print $3}'`
1467 TAPEDRIVE="/dev/nrmt0"
1468 PTHREAD_LIB="-pthread"
1469 CFLAGS="${CFLAGS} -pthread"
1470 PSCMD="ps -x -o pid,command"
1474 platforms/bsdi/Makefile \
1475 platforms/bsdi/bacula-fd \
1476 platforms/bsdi/bacula-sd \
1477 platforms/bsdi/bacula-dir"
1478 largefile_support="yes"
1481 DISTVER=`uname -a |awk '{print $3}'`
1482 TAPEDRIVE="/dev/nrst0"
1485 WLDFLAGS="-mwindows"
1489 TAPEDRIVE="/dev/nst0"
1490 PSCMD="ps -e -o pid,command"
1493 platforms/darwin/Makefile"
1496 DISTVER=`cat /etc/debian_version`
1497 TAPEDRIVE="/dev/nrst0"
1498 PSCMD="ps -e -o pid,command"
1501 DISTVER=`uname -a |awk '{print $3}'`
1502 VER=`echo $DISTVER | cut -c 1`
1503 if test x$VER = x4 ; then
1504 PTHREAD_LIB="-pthread"
1505 CFLAGS="${CFLAGS} -pthread"
1509 TAPEDRIVE="/dev/nrsa0"
1510 PSCMD="ps -x -o pid,command"
1512 platforms/freebsd/Makefile \
1513 platforms/freebsd/bacula-fd \
1514 platforms/freebsd/bacula-sd \
1515 platforms/freebsd/bacula-dir"
1516 largefile_support="yes"
1519 PSCMD="UNIX95=1 ps -e -o pid,comm"
1520 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
1522 TAPEDRIVE="/dev/rmt/0hnb"
1526 TAPEDRIVE="/dev/rmt/0cbn"
1527 PSCMD="ps -e -o pid,comm"
1529 platforms/irix/Makefile \
1530 platforms/irix/bacula-fd \
1531 platforms/irix/bacula-sd \
1532 platforms/irix/bacula-dir"
1535 DISTVER=`uname -a |awk '{print $3}'`
1538 TAPEDRIVE="/dev/nrst0"
1539 PSCMD="ps -a -o pid,command"
1540 PTHREAD_LIB="-pthread"
1541 CFLAGS="${CFLAGS} -pthread"
1544 DISTVER=`uname -a |awk '{print $3}'`
1547 TAPEDRIVE="/dev/nrst0"
1548 PSCMD="ps -a -o pid,command"
1549 PTHREAD_LIB="-pthread"
1550 CFLAGS="${CFLAGS} -pthread"
1552 platforms/openbsd/Makefile \
1553 platforms/openbsd/bacula-fd \
1554 platforms/openbsd/bacula-sd \
1555 platforms/openbsd/bacula-dir"
1558 if test -f /etc/whitebox-release ; then
1559 f=/etc/whitebox-release
1561 f=/etc/redhat-release
1563 if test `cat $f | grep release |\
1564 cut -f 3 -d ' '`x = "Enterprise"x ; then
1565 DISTVER="Enterprise "`cat $f | grep release |\
1568 DISTVER=`cat /etc/redhat-release | grep release |\
1571 TAPEDRIVE="/dev/nst0"
1572 PSCMD="ps -e -o pid,command"
1574 platforms/redhat/Makefile \
1575 platforms/redhat/bacula-fd \
1576 platforms/redhat/bacula-sd \
1577 platforms/redhat/bacula-dir \
1578 platforms/redhat/bacula.spec \
1580 hostname=`hostname -s`
1583 DISTVER=`cat /etc/mandrake-release | grep release |\
1585 TAPEDRIVE="/dev/nst0"
1586 PSCMD="ps -e -o pid,command"
1588 platforms/mandrake/Makefile \
1589 platforms/mandrake/bacula-fd \
1590 platforms/mandrake/bacula-sd \
1591 platforms/mandrake/bacula-dir \
1592 platforms/mandrake/bacula.spec \
1596 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
1597 TAPEDRIVE="/dev/nst0"
1598 PSCMD="ps -e -o pid,command"
1600 platforms/gentoo/Makefile \
1601 platforms/gentoo/bacula-fd \
1602 platforms/gentoo/bacula-sd \
1603 platforms/gentoo/bacula-dir"
1606 DISTVER=`cat /etc/slackware-version`
1607 TAPEDRIVE="/dev/nst0"
1608 PSCMD="ps -e -o pid,command"
1610 platforms/slackware/Makefile \
1611 platforms/slackware/rc.bacula-fd \
1612 platforms/slackware/rc.bacula-sd \
1613 platforms/slackware/rc.bacula-dir\
1614 platforms/slackware/functions.bacula"
1618 TAPEDRIVE="/dev/rmt/0cbn"
1619 PSCMD="ps -e -o pid,comm"
1621 platforms/solaris/Makefile \
1622 platforms/solaris/bacula-fd \
1623 platforms/solaris/bacula-sd \
1624 platforms/solaris/bacula-dir"
1625 if test x$DISTVER = x5.6 ; then
1626 AC_DEFINE(HAVE_OLD_SOCKOPT)
1630 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
1632 TAPEDRIVE="/dev/nst0"
1633 PSCMD="ps -e -o pid,command"
1635 platforms/suse/Makefile \
1636 platforms/suse/bacula-fd \
1637 platforms/suse/bacula-sd \
1638 platforms/suse/bacula-dir \
1639 platforms/suse/bacula \
1640 platforms/suse/bacula.spec"
1645 TAPEDRIVE="/dev/nst0"
1646 PSCMD="ps -e -o pid,command"
1648 platforms/suse/Makefile \
1649 platforms/suse/bacula-fd \
1650 platforms/suse/bacula-sd \
1651 platforms/suse/bacula-dir"
1655 TAPEDRIVE="/dev/nst0"
1658 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
1664 LIBS="$PTHREAD_LIB $LIBS"
1666 AC_DEFINE_UNQUOTED(lld, "$lld")
1667 AC_DEFINE_UNQUOTED(llu, "$llu")
1675 dnl# common parts of the Makefile
1676 MCOMMON=./autoconf/Make.common
1677 AC_SUBST_FILE(MCOMMON)
1680 if test "x${subsysdir}" = "x${sbindir}" ; then
1683 echo "You have set both --sbindir and --with-subsys-dir"
1684 echo " equal to: ${subsysdir} "
1685 echo "This is not permitted. Please reconfigure."
1687 echo "Aborting configuration ..."
1693 AC_OUTPUT([autoconf/Make.common \
1696 rescue/linux/Makefile \
1697 rescue/freebsd/Makefile \
1698 rescue/solaris/Makefile \
1699 scripts/startmysql \
1701 scripts/btraceback \
1707 scripts/devel_bacula \
1710 scripts/bacula.desktop.gnome1 \
1711 scripts/bacula.desktop.gnome2 \
1712 scripts/bacula.desktop.gnome1.consolehelper \
1713 scripts/bacula.desktop.gnome2.consolehelper \
1714 scripts/bacula.desktop.gnome1.xsu \
1715 scripts/bacula.desktop.gnome2.xsu \
1716 scripts/gnome-console.console_apps \
1717 scripts/mtx-changer \
1721 src/console/Makefile \
1722 src/console/bconsole.conf \
1723 src/gnome-console/Makefile \
1724 src/gnome-console/gnome-console.conf \
1725 src/gnome2-console/Makefile \
1726 src/gnome2-console/gnome-console.conf \
1727 src/wx-console/Makefile \
1728 src/wx-console/wx-console.conf \
1729 src/tray-monitor/Makefile \
1730 src/tray-monitor/tray-monitor.conf \
1732 src/dird/bacula-dir.conf \
1734 src/stored/Makefile \
1735 src/stored/bacula-sd.conf \
1736 src/filed/Makefile \
1737 src/filed/bacula-fd.conf \
1738 src/filed/win32/Makefile \
1740 src/cats/make_catalog_backup \
1741 src/cats/delete_catalog_backup \
1742 src/cats/create_postgresql_database \
1743 src/cats/update_postgresql_tables \
1744 src/cats/make_postgresql_tables \
1745 src/cats/grant_postgresql_privileges \
1746 src/cats/drop_postgresql_tables \
1747 src/cats/drop_postgresql_database \
1748 src/cats/create_mysql_database \
1749 src/cats/update_mysql_tables \
1750 src/cats/make_mysql_tables \
1751 src/cats/grant_mysql_privileges \
1752 src/cats/drop_mysql_tables \
1753 src/cats/drop_mysql_database \
1754 src/cats/create_sqlite_database \
1755 src/cats/update_sqlite_tables \
1756 src/cats/make_sqlite_tables \
1757 src/cats/grant_sqlite_privileges \
1758 src/cats/drop_sqlite_tables \
1759 src/cats/drop_sqlite_database \
1762 src/cats/create_bdb_database \
1763 src/cats/update_bdb_tables \
1764 src/cats/make_bdb_tables \
1765 src/cats/grant_bdb_privileges \
1766 src/cats/drop_bdb_tables \
1767 src/cats/drop_bdb_database \
1768 src/cats/create_bacula_database \
1769 src/cats/update_bacula_tables \
1770 src/cats/grant_bacula_privileges \
1771 src/cats/make_bacula_tables \
1772 src/cats/drop_bacula_tables \
1773 src/cats/drop_bacula_database \
1774 src/findlib/Makefile \
1775 src/tools/Makefile \
1776 src/win32/winbacula.nsi \
1777 src/win32/baculafd/bacula-fd.conf \
1778 src/win32/Makefile \
1779 src/win32/console/bconsole.conf \
1780 src/win32/wx-console/wx-console.conf \
1782 [(echo "Doing make of dependencies"; ${MAKE:-make} depend;) ]
1786 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
1787 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
1792 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
1793 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
1795 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
1796 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
1798 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
1799 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
1801 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
1802 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
1804 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
1805 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
1807 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
1811 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
1812 largefile_support="yes"
1816 # A whole lot of hand springs to get the compiler version.
1817 # This is because gcc changed the output in version 3.0
1819 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
1820 if test "x${CCVERSION}" = "x" ; then
1821 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
1823 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
1824 if test x"${CXXVERSION}" = x ; then
1825 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
1828 if test "x${subsysdir}" = "x${sbindir}" ; then
1831 echo "You have set --sbindir and --with-subsys-dir"
1832 echo " both equal to: ${subsysdir} "
1833 echo " This is not permitted. Please reconfigure."
1835 echo "Aborting configuration ..."
1841 if test "x${db_name}" = "xInternal" ; then
1844 echo "You have not specified either --enable-client-only or one of the"
1845 echo " supported databases: MySQL, PostgreSQL, or SQLite".
1846 echo " This is not permitted. Please reconfigure."
1848 echo "Aborting the configuration ..."
1855 Configuration on `date`:
1857 Host: $host -- ${DISTNAME} ${DISTVER}
1858 Bacula version: ${VERSION} (${DATE})
1859 Source code location: ${srcdir}
1860 Install binaries: ${sbindir}
1861 Install config files: ${sysconfdir}
1862 Scripts directory: ${scriptdir}
1863 Working directory: ${working_dir}
1864 PID directory: ${piddir}
1865 Subsys directory: ${subsysdir}
1866 C Compiler: ${CC} ${CCVERSION}
1867 C++ Compiler: ${CXX} ${CXXVERSION}
1868 Compiler flags: ${WCFLAGS} ${CFLAGS}
1869 Linker flags: ${WLDFLAGS} ${LDFLAGS}
1871 Statically Linked Tools: ${support_static_tools}
1872 Statically Linked FD: ${support_static_fd}
1873 Statically Linked SD: ${support_static_sd}
1874 Statically Linked DIR: ${support_static_dir}
1875 Statically Linked CONS: ${support_static_cons}
1876 Database type: ${db_name}
1877 Database lib: ${DB_LIBS}
1879 Job Output Email: ${job_email}
1880 Traceback Email: ${dump_email}
1881 SMTP Host Address: ${smtp_host}
1883 Director Port: ${dir_port}
1884 File daemon Port: ${fd_port}
1885 Storage daemon Port: ${sd_port}
1887 Director User: ${dir_user}
1888 Director Group: ${dir_group}
1889 Storage Daemon User: ${sd_user}
1890 Storage DaemonGroup: ${sd_group}
1891 File Daemon User: ${fd_user}
1892 File Daemon Group: ${fd_group}
1894 SQL binaries Directory ${SQL_BINDIR}
1896 Large file support: $largefile_support
1897 Bacula conio support: ${got_conio} ${CONS_LIBS}
1898 readline support: ${got_readline} ${PRTREADLINE_SRC}
1899 TCP Wrappers support: ${TCPW_MSG}
1900 ZLIB support: ${have_zlib}
1901 enable-smartalloc: ${support_smartalloc}
1902 enable-gnome: ${support_gnome} ${gnome_version}
1903 enable-wx-console: ${support_wx_console}
1904 enable-tray-monitor: ${support_tray_monitor}
1905 client-only: ${build_client_only}
1906 ACL support: ${have_acl}
1913 # cweb support: ${got_cweb} ${CWEB_SRC}
1914 # gmp support: ${got_gmp} ${GMP_SRC}