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 # TODO: Check for GTK+ presence
240 TRAY_MONITOR_DIR=src/tray-monitor
242 AC_SUBST(TRAY_MONITOR_DIR)
244 # -------------------------------------------
245 # smartalloc (default off)
246 # -------------------------------------------
247 AC_ARG_ENABLE(smartalloc,
248 [ --enable-smartalloc enable smartalloc debugging support [disabled]],
249 [if test x$enableval = xno; then
250 support_smartalloc=no
253 if test x$support_smartalloc = xyes; then
254 AC_DEFINE(SMARTALLOC)
257 # -------------------------------------------
258 # static-tools (default off)
259 # -------------------------------------------
260 AC_ARG_ENABLE(static-tools,
261 [ --enable-static-tools enable static tape tools [disabled]],
262 [if test x$enableval = xyes; then
263 support_static_tools=yes
267 if test x$support_static_tools = xyes; then
268 TTOOL_LDFLAGS="-static"
270 AC_SUBST(TTOOL_LDFLAGS)
272 # -------------------------------------------
273 # static-fd (default off)
274 # -------------------------------------------
275 AC_ARG_ENABLE(static-fd,
276 [ --enable-static-fd enable static File daemon [disabled]],
277 [if test x$enableval = xyes; then
278 support_static_fd=yes
282 if test x$support_static_fd = xyes; then
283 STATIC_FD="static-bacula-fd"
287 # -------------------------------------------
288 # static-sd (default off)
289 # -------------------------------------------
290 AC_ARG_ENABLE(static-sd,
291 [ --enable-static-sd enable static Storage daemon [disabled]],
292 [if test x$enableval = xyes; then
293 support_static_sd=yes
297 if test x$support_static_sd = xyes; then
298 STATIC_SD="static-bacula-sd"
302 # -------------------------------------------
303 # static-dir (default off)
304 # -------------------------------------------
305 AC_ARG_ENABLE(static-dir,
306 [ --enable-static-dir enable static Director [disabled]],
307 [if test x$enableval = xyes; then
308 support_static_dir=yes
312 if test x$support_static_dir = xyes; then
313 STATIC_DIR="static-bacula-dir"
317 # -------------------------------------------
318 # static-cons (default off)
319 # -------------------------------------------
320 AC_ARG_ENABLE(static-cons,
321 [ --enable-static-cons enable static Console [disabled]],
322 [if test x$enableval = xyes; then
323 support_static_cons=yes
329 if test x$support_static_cons = xyes; then
330 STATIC_CONS="static-bconsole"
331 STATIC_GNOME_CONS="static-gnome-console"
332 STATIC_WX_CONS="static-wx-console"
334 AC_SUBST(STATIC_CONS)
335 AC_SUBST(STATIC_GNOME_CONS)
336 AC_SUBST(STATIC_WX_CONS)
338 # -------------------------------------------
339 # client_only (default off)
340 # -------------------------------------------
341 AC_ARG_ENABLE(client-only,
342 [ --enable-client-only build client (File daemon) only [disabled]],
343 [if test x$enableval = xyes; then
344 build_client_only=yes
348 if test x$build_client_only = xno; then
355 # ---------------------------------------------------
356 # Check for conio (Bacula readline substitute)(
357 # ---------------------------------------------------
358 # this allows you to turn it completely off
360 [ --disable-conio disable conio support [enabled]
362 [if test x$enableval = xno; then
367 if test x$support_conio = xyes; then
368 AC_CHECK_HEADER(termcap.h,
369 [ AC_CHECK_LIB(termcap, tgetent,
370 [ CONS_LIBS="-ltermcap"
375 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
377 [ AC_CHECK_LIB(ncurses, tgetent,
378 [ CONS_LIBS="-lncurses"
383 AC_DEFINE(HAVE_CONIO, 1, [Set if Bacula conio support enabled])
385 [ echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "])
387 ],[echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "])
391 # ---------------------------------------------------
392 # Check for readline support/directory (default off)
393 # ---------------------------------------------------
394 # this allows you to turn it completely off
395 AC_ARG_ENABLE(readline,
396 [ --disable-readline disable readline support [disable]
398 [if test x$enableval = xno; then
404 if test x$support_readline = xyes; then
405 AC_ARG_WITH(readline,
406 [ --with-readline=DIR specify readline library directory],
408 case "$with_readline" in
411 if test "$with_readline" != "yes"; then
412 CONS_INC="-I${with_readline}"
413 CONS_LDFLAGS="-L$with_readline"
415 with_readline="/usr/include/readline"
417 AC_CHECK_HEADER(${with_readline}/readline.h,
418 [ AC_DEFINE(HAVE_READLINE)
419 CONS_LIBS="-lreadline -ltermcap"
423 echo "readline.h not found. readline turned off ..."
430 # check for standard readline library
431 AC_CHECK_HEADER(/usr/include/readline/readline.h,
432 [ AC_DEFINE(HAVE_READLINE)
434 CONS_INC="-I/usr/include/readline"
435 CONS_LIBS="-lreadline -ltermcap"
437 # Did not find standard library, so try Bacula's default
438 AC_CHECK_HEADER(${TOP_DIR}/depkgs/readline/readline.h,
439 [ AC_DEFINE(HAVE_READLINE)
441 CONS_INC="-I${TOP_DIR}/depkgs/readline"
442 CONS_LIBS="-lreadline -lhistory -ltermcap"
443 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
444 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
447 echo "readline.h not found. readline turned off ..."
463 AC_SUBST(CONS_LDFLAGS)
464 AC_SUBST(READLINE_SRC)
466 # Minimal stuff for readline Makefile configuration
471 AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat lchown)
472 AC_CHECK_FUNCS(nanosleep nl_langinfo)
473 AC_CHECK_HEADERS(varargs.h)
475 # End of readline/conio stuff
476 # -----------------------------------------------------------------------
479 # ---------------------------------------------------
480 # Check for GMP support/directory
481 # ---------------------------------------------------
485 # [ --with-gmp[=DIR] Specify gmp library directory],
487 # case "$with_gmp" in
490 # if test "$with_gmp" != "yes"; then
491 # GMP_INC="-I$with_gmp"
493 # GMP_LDFLAGS="-L$with_gmp"
495 # with_gmp="/usr/include"
497 # AC_CHECK_HEADER($with_gmp/gmp.h,
498 # [ AC_MSG_RESULT(yes)
499 # AC_DEFINE(HAVE_GMP)
503 # [ AC_MSG_ERROR([*** gmp library missing])
509 # # check for standard gmp library
510 # AC_CHECK_HEADER(/usr/include/gmp.h,
511 # [ AC_MSG_RESULT(yes)
512 # AC_DEFINE(HAVE_GMP)
517 # # Did not find standard library, so use our own
519 # AC_DEFINE(HAVE_GMP)
522 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
524 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
525 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
531 #AC_SUBST(GMP_LDFLAGS)
535 # -----------------------------------------------------------------------
538 # ---------------------------------------------------
539 # Check for CWEB support/directory
540 # ---------------------------------------------------
545 # [ --with-cweb[=DIR] Specify cweb library directory],
547 # case "$with_cweb" in
550 # if test "$with_cweb" != "yes"; then
551 # CWEB_INC="-I$with_cweb"
553 # CWEB_LDFLAGS="-L$with_cweb"
555 # with_cweb="/usr/include"
557 # AC_CHECK_HEADER($with_cweb/cweb.h,
558 # [ AC_MSG_RESULT(yes)
559 # AC_DEFINE(HAVE_CWEB)
563 # [ AC_MSG_ERROR([*** cweb library missing])
569 # # check for standard cweb library
570 # AC_CHECK_HEADER(/usr/include/cweb.h,
571 # [ AC_MSG_RESULT(yes)
572 # AC_DEFINE(HAVE_CWEB)
577 # # Did not find starndard library, so use our own
579 # AC_DEFINE(HAVE_CWEB)
582 # CWEB=${TOP_DIR}/depkgs/cweb
583 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
585 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
586 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
593 #AC_SUBST(CWEB_LDFLAGS)
597 # -----------------------------------------------------------------------
601 # -----------------------------------------------------------
602 # Check whether user wants TCP wrappers support (default off)
603 # -----------------------------------------------------------
605 AC_ARG_WITH(tcp-wrappers,
606 [ --with-tcp-wrappers=DIR enable tcpwrappers support],
608 if test "x$withval" != "xno" ; then
610 LIBS="$saved_LIBS -lwrap"
611 AC_MSG_CHECKING(for libwrap)
614 int deny_severity = 0;
615 int allow_severity = 0;
616 struct request_info *req; ],
617 [ hosts_access(req); ],
620 AC_DEFINE(HAVE_LIBWRAP)
623 LIBS="$saved_LIBS -lwrap -lnsl"
626 int deny_severity = 0;
627 int allow_severity = 0;
628 struct request_info *req; ],
629 [ hosts_access(req); ],
632 AC_DEFINE(HAVE_LIBWRAP)
635 [AC_MSG_ERROR([*** libwrap missing]) ] ]
642 # ------------------------------------------
643 # Where to place working dir
644 # ------------------------------------------
645 working_dir=`eval echo ${prefix}/var/bacula/working`
646 AC_ARG_WITH(working-dir,
647 [ --with-working-dir=PATH specify path of Bacula working directory],
649 if test "x$withval" != "xno" ; then
655 AC_SUBST(working_dir)
658 # ------------------------------------------
659 # Where to place scriptdir (script files)
660 # ------------------------------------------
661 scriptdir=`eval echo ${sysconfdir}`
662 AC_ARG_WITH(scriptdir,
663 [ --with-scriptdir=PATH specify path of Bacula scripts directory],
665 if test "x$withval" != "xno" ; then
674 # ------------------------------------------
675 # Where to send dump email
676 # ------------------------------------------
677 dump_email=root@localhost
678 AC_ARG_WITH(dump-email,
679 [ --with-dump-email=EMAIL dump email address],
681 if test "x$withval" != "xno" ; then
689 # ------------------------------------------
690 # Where to send job email
691 # ------------------------------------------
692 job_email=root@localhost
693 AC_ARG_WITH(job-email,
694 [ --with-job-email=EMAIL job output email address],
696 if test "x$withval" != "xno" ; then
704 # ------------------------------------------
705 # Where to find smtp host
706 # ------------------------------------------
708 AC_ARG_WITH(smtp_host,
709 [ --with-smtp-host=HOST SMTP mail host address],
711 if test "x$withval" != "xno" ; then
720 # ------------------------------------
721 # Where to place pid files
722 # ------------------------------------
725 [ --with-pid-dir=PATH specify location of Bacula pid files],
727 if test "x$withval" != "xno" ; then
733 AC_DEFINE_UNQUOTED(_PATH_BACULA_PIDDIR, "$piddir")
737 # ------------------------------------
738 # Where to place subsys "lock file"
739 # ------------------------------------
740 subsysdir=/var/run/subsys
741 AC_ARG_WITH(subsys-dir,
742 [ --with-subsys-dir=PATH specify location of Bacula subsys file],
744 if test "x$withval" != "xno" ; then
754 # ------------------------------------
755 # Where to start assigning ports
756 # ------------------------------------
758 AC_ARG_WITH(baseport,
759 [ --with-baseport=PORT specify base port address for daemons],
761 if test "x$withval" != "xno" ; then
768 dir_port=`expr $baseport`
769 fd_port=`expr $baseport + 1`
770 sd_port=`expr $fd_port + 1`
777 # ------------------------------------------
779 # ------------------------------------------
781 AC_ARG_WITH(dir-password,
782 [ --with-dir-password=PASSWORD specify Director's password],
784 if test "x$withval" != "xno" ; then
785 dir_password=$withval
790 if test "x$dir_password" = "x" ; then
791 if test "x$OPENSSL" = "xnone" ; then
792 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
793 key=`autoconf/randpass 33`
795 key=`openssl rand -base64 33`
801 AC_ARG_WITH(fd-password,
802 [ --with-fd-password=PASSWORD specify Client's password],
804 if test "x$withval" != "xno" ; then
810 if test "x$fd_password" = "x" ; then
811 if test "x$OPENSSL" = "xnone" ; then
812 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
813 key=`autoconf/randpass 37`
815 key=`openssl rand -base64 33`
821 AC_ARG_WITH(sd-password,
822 [ --with-sd-password=PASSWORD specify Storage daemon's password],
824 if test "x$withval" != "xno" ; then
830 if test "x$sd_password" = "x" ; then
831 if test "x$OPENSSL" = "xnone" ; then
832 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
833 key=`autoconf/randpass 41`
835 key=`openssl rand -base64 33`
841 AC_SUBST(dir_password)
842 AC_SUBST(fd_password)
843 AC_SUBST(sd_password)
847 # Handle users and groups for each daemon
850 AC_ARG_WITH(dir_user,
851 [ --with-dir-user=USER specify user for Director daemon],
853 if test "x$withval" != "x" ; then
860 AC_ARG_WITH(dir_group,
861 [ --with-dir-group=GROUP specify group for Director daemon],
863 if test "x$withval" != "x" ; then
871 [ --with-sd-user=USER specify user for Storage daemon],
873 if test "x$withval" != "x" ; then
880 AC_ARG_WITH(sd_group,
881 [ --with-sd-group=GROUP specify group for Storage daemon],
883 if test "x$withval" != "x" ; then
891 [ --with-fd-user=USER specify user for File daemon],
893 if test "x$withval" != "x" ; then
900 AC_ARG_WITH(fd_group,
901 [ --with-fd-group=GROUP specify group for File daemon],
903 if test "x$withval" != "x" ; then
920 # allow setting default executable permissions
923 AC_ARG_WITH(sbin-perm,
924 [ --with-sbin-perm=MODE specify permissions for sbin binaries (0754)],
926 if test "x$withval" != "x" ; then
934 # ------------------------------------------------
935 # Bacula check for various SQL database engines
936 # ------------------------------------------------
937 BA_CHECK_POSTGRESQL_DB
946 AC_DEFINE(PROTOTYPES)
948 dnl# --------------------------------------------------------------------------
949 dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure'
951 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
952 if test -z "$CCOPTS"; then
953 CCOPTS='-g -O2 -Wall'
962 dnl See if we can use 64 bit file addresses
963 largefile_support="no"
969 dnl# --------------------------------------------------------------------------
970 dnl# CHECKING FOR HEADER FILES
971 dnl# --------------------------------------------------------------------------
1005 AC_STRUCT_ST_BLKSIZE
1009 dnl# --------------------------------------------------------------------------
1010 dnl# Check for utime.h structure
1011 dnl# --------------------------------------------------------------------------
1012 AC_CACHE_CHECK(for utime.h, ba_cv_header_utime_h,
1014 #include <sys/types.h>
1015 #include <utime.h>], [struct utimbuf foo],
1016 ba_cv_header_utime_h=yes, ba_cv_header_utime_h=no)])
1017 test $ba_cv_header_utime_h = yes && AC_DEFINE(HAVE_UTIME_H)
1019 dnl# --------------------------------------------------------------------------
1020 dnl# Check for socklen_t
1021 dnl# --------------------------------------------------------------------------
1022 AC_CACHE_CHECK(for socklen_t, ba_cv_header_socklen_t,
1024 #include <sys/types.h>
1025 #include <sys/socket.h>],
1027 ba_cv_header_socklen_t=yes, ba_cv_header_socklen_t=no)])
1028 test $ba_cv_header_socklen_t = yes && AC_DEFINE(HAVE_SOCKLEN_T)
1030 dnl# --------------------------------------------------------------------------
1031 dnl# Check for bigendian
1032 dnl# --------------------------------------------------------------------------
1033 AC_CACHE_CHECK([for bigendian], ba_cv_bigendian,
1035 [main(){long a=1L; char *p=(char *)&a; exit(*p);}],
1036 [ba_cv_bigendian=yes],
1037 [ba_cv_bigendian=no],
1038 [ba_cv_bigendian=no])])
1039 test $ba_cv_bigendian = yes && AC_DEFINE(HAVE_BIGENDIAN)
1045 dnl# --------------------------------------------------------------------------
1046 dnl# CHECKING FOR FILESYSTEM TYPE
1047 dnl# --------------------------------------------------------------------------
1048 AC_MSG_CHECKING(how to get filesystem type)
1050 # The order of these tests is important.
1051 AC_TRY_CPP([#include <sys/statvfs.h>
1052 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=SVR4)
1053 if test $fstype = no; then
1054 AC_TRY_CPP([#include <sys/statfs.h>
1055 #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=SVR3)
1057 if test $fstype = no; then
1058 AC_TRY_CPP([#include <sys/statfs.h>
1059 #include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=AIX)
1061 if test $fstype = no; then
1062 AC_TRY_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT) fstype=4.3BSD)
1064 if test $fstype = no; then
1065 AC_EGREP_HEADER(f_type;, sys/mount.h, AC_DEFINE(FSTYPE_STATFS) fstype=4.4BSD/OSF1)
1067 if test $fstype = no; then
1068 AC_TRY_CPP([#include <sys/mount.h>
1069 #include <sys/fs_types.h>], AC_DEFINE(FSTYPE_GETMNT) fstype=Ultrix)
1071 AC_MSG_RESULT($fstype)
1073 dnl# --------------------------------------------------------------------------
1074 dnl# CHECKING FOR TYPEDEFS, STRUCTURES, AND COMPILER CHARACTERISTICS.
1075 dnl# --------------------------------------------------------------------------
1083 AC_CHECK_TYPE(ino_t, unsigned long)
1084 AC_CHECK_TYPE(dev_t, unsigned long)
1085 AC_CHECK_TYPE(daddr_t, long)
1086 AC_CHECK_TYPE(major_t, int)
1087 AC_CHECK_TYPE(minor_t, int)
1088 AC_CHECK_TYPE(ssize_t, int)
1095 AC_CHECK_SIZEOF(char, 1)
1096 AC_CHECK_SIZEOF(short int, 2)
1097 AC_CHECK_SIZEOF(int, 4)
1098 AC_CHECK_SIZEOF(long int, 4)
1099 AC_CHECK_SIZEOF(long long int, 8)
1100 AC_CHECK_SIZEOF(int *, 4)
1102 # Check for sys/types.h types
1103 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
1105 [ #include <sys/types.h> ],
1107 [ ac_cv_have_u_int="yes" ],
1108 [ ac_cv_have_u_int="no" ]
1111 if test "x$ac_cv_have_u_int" = "xyes" ; then
1112 AC_DEFINE(HAVE_U_INT)
1116 AC_CACHE_CHECK([for intmax_t type], ac_cv_have_intmax_t, [
1118 [ #include <sys/types.h> ],
1119 [ intmax_t a; a = 1;],
1120 [ ac_cv_have_intmax_t="yes" ],
1123 [ #include <stdint.h> ],
1124 [ intmax_t a; a = 1;],
1125 [ ac_cv_have_intmax_t="yes" ],
1126 [ ac_cv_have_intmax_t="no" ]
1132 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
1133 AC_DEFINE(HAVE_INTMAX_T)
1138 AC_CACHE_CHECK([for u_intmax_t type], ac_cv_have_u_intmax_t, [
1140 [ #include <sys/types.h> ],
1141 [ u_intmax_t a; a = 1;],
1142 [ ac_cv_have_u_intmax_t="yes" ],
1145 [ #include <stdint.h> ],
1146 [ u_intmax_t a; a = 1;],
1147 [ ac_cv_have_u_intmax_t="yes" ],
1148 [ ac_cv_have_u_intmax_t="no" ]
1153 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
1154 AC_DEFINE(HAVE_U_INTMAX_T)
1159 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
1161 [ #include <sys/types.h> ],
1162 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
1163 [ ac_cv_have_intxx_t="yes" ],
1164 [ ac_cv_have_intxx_t="no" ]
1167 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
1168 AC_DEFINE(HAVE_INTXX_T)
1172 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
1174 [ #include <sys/types.h> ],
1175 [ int64_t a; a = 1;],
1176 [ ac_cv_have_int64_t="yes" ],
1177 [ ac_cv_have_int64_t="no" ]
1180 if test "x$ac_cv_have_int64_t" = "xyes" ; then
1181 AC_DEFINE(HAVE_INT64_T)
1185 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
1187 [ #include <sys/types.h> ],
1188 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
1189 [ ac_cv_have_u_intxx_t="yes" ],
1190 [ ac_cv_have_u_intxx_t="no" ]
1193 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
1194 AC_DEFINE(HAVE_U_INTXX_T)
1198 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
1200 [ #include <sys/types.h> ],
1201 [ u_int64_t a; a = 1;],
1202 [ ac_cv_have_u_int64_t="yes" ],
1203 [ ac_cv_have_u_int64_t="no" ]
1206 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
1207 AC_DEFINE(HAVE_U_INT64_T)
1211 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
1212 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1214 AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
1216 [ #include <sys/bitypes.h> ],
1217 [ int8_t a; int16_t b; int32_t c;
1218 u_int8_t e; u_int16_t f; u_int32_t g;
1219 a = b = c = e = f = g = 1; ],
1220 [ AC_DEFINE(HAVE_U_INTXX_T)
1221 AC_DEFINE(HAVE_INTXX_T)
1222 AC_DEFINE(HAVE_SYS_BITYPES_H)
1223 AC_MSG_RESULT(yes) ],
1224 [ AC_MSG_RESULT(no)]
1228 if test -z "$have_u_intxx_t" ; then
1229 AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
1231 [ #include <sys/types.h> ],
1232 [ uint8_t a; uint16_t b;
1233 uint32_t c; a = b = c = 1; ],
1234 [ ac_cv_have_uintxx_t="yes" ],
1235 [ ac_cv_have_uintxx_t="no" ]
1238 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
1239 AC_DEFINE(HAVE_UINTXX_T)
1243 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
1244 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1246 AC_MSG_CHECKING([for int64_t and u_int64_t types in sys/bitypes.h])
1248 [ #include <sys/bitypes.h> ],
1249 [ int64_t a; u_int64_t b;
1251 [ AC_DEFINE(HAVE_U_INT64_T)
1252 AC_DEFINE(HAVE_INT64_T)
1253 AC_MSG_RESULT(yes) ],
1254 [ AC_MSG_RESULT(no)]
1258 if (test -z "$have_uintxx_t" && \
1259 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
1261 AC_MSG_CHECKING([for uintXX_t types in sys/bitypes.h])
1263 [ #include <sys/bitypes.h> ],
1264 [ uint8_t a; uint16_t b;
1265 uint32_t c; a = b = c = 1; ],
1266 [ AC_DEFINE(HAVE_UINTXX_T)
1267 AC_MSG_RESULT(yes) ],
1268 [ AC_MSG_RESULT(no)]
1276 dnl# --------------------------------------------------------------------------
1277 dnl# CHECKING FOR REQUIRED LIBRARY FUNCTIONS
1278 dnl# --------------------------------------------------------------------------
1294 [echo 'configure: cannot find needed function.'; exit 1]
1297 AC_CHECK_FUNCS(fchdir, [AC_DEFINE(HAVE_FCHDIR)])
1298 AC_CHECK_FUNCS(strtoll, [AC_DEFINE(HAVE_STRTOLL)])
1300 AC_CHECK_FUNCS(chflags)
1302 AC_CHECK_FUNCS(snprintf vsnprintf gethostid getdomainname)
1304 dnl# --------------------------------------------------------------------------
1305 dnl# CHECKING FOR THREAD SAFE FUNCTIONS
1306 dnl# --------------------------------------------------------------------------
1307 AC_CHECK_FUNCS(localtime_r readdir_r strerror_r gethostbyname_r)
1309 # If resolver functions are not in libc check for -lnsl or -lresolv.
1310 AC_CHECK_FUNC(gethostbyname_r,
1311 AC_MSG_RESULT(using libc's resolver),
1312 AC_CHECK_LIB(nsl,gethostbyname_r)
1313 AC_CHECK_LIB(resolv,gethostbyname_r))
1316 # Find where sockets are (especially for Solaris)
1317 AC_CHECK_FUNC(socket,
1318 AC_MSG_RESULT(using libc's socket),
1319 AC_CHECK_LIB(xnet,socket)
1320 AC_CHECK_LIB(socket,socket)
1321 AC_CHECK_LIB(inet,socket))
1323 AC_CHECK_FUNCS(inet_pton, [AC_DEFINE(HAVE_INET_PTON)])
1324 AC_CHECK_FUNCS(inet_ntop, [AC_DEFINE(HAVE_INET_NTOP)])
1325 AC_CHECK_FUNCS(gethostbyname2, [AC_DEFINE(HAVE_GETHOSTBYNAME2)])
1327 dnl ----------------------------
1328 dnl check sa_len of sockaddr
1329 dnl ----------------------------
1330 AC_CACHE_CHECK(for struct sockaddr has a sa_len field, ac_cv_struct_sockaddr_sa_len,
1331 [AC_TRY_COMPILE([#include <sys/socket.h>], [struct sockaddr s; s.sa_len;],
1332 ac_cv_struct_sockaddr_sa_len=yes, ac_cv_struct_sockaddr_sa_len=no)])
1334 if test $ac_cv_struct_sockaddr_sa_len = yes; then
1335 AC_DEFINE(HAVE_SA_LEN, 1, [Define if sa_len field exists in struct sockaddr])
1339 dnl Check for IPv6 support
1340 AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support,
1341 [AC_TRY_LINK([ #include <sys/types.h>
1342 #include <sys/socket.h>
1343 #include <netinet/in.h>], [struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
1345 [ac_cv_ipv6_support=yes], [ac_cv_ipv6_support=no])])
1347 if test "$ac_cv_ipv6_support" = yes; then
1348 AC_DEFINE(HAVE_IPV6,1,[Whether to enable IPv6 support])
1357 AC_FUNC_CLOSEDIR_VOID
1358 AC_FUNC_SETPGRP dnl check for BSD setpgrp.
1362 dnl# FreeBSD needs to link libxpg4
1363 AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])
1366 AC_CHECK_LIB(sun, getpwnam)
1368 AC_CHECK_HEADERS(zlib.h)
1369 AC_CHECK_LIB(z, deflate, [FDLIBS="-lz"])
1371 if test x$FDLIBS = x-lz; then
1372 AC_DEFINE(HAVE_LIBZ)
1376 AC_CHECK_HEADER(sys/acl.h)
1377 AC_CHECK_LIB(acl, acl_get_file, [FDLIBS="-lacl $FDLIBS"])
1379 if test $ac_cv_lib_acl_acl_get_file = yes; then
1384 dnl Check for pthread libraries
1386 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread",
1387 [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads",
1388 [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r",
1389 [AC_CHECK_FUNC(pthread_create)]
1399 LDFLAGS=${LDFLAGS--O}
1400 DB_LIBS="${SQL_LFLAGS}"
1402 CPPFLAGS="$CPPFLAGS"
1413 AC_SUBST(X_EXTRA_LIBS)
1417 dnl# extra configurable objects
1428 # Finally we set appropriate distribution specific
1429 # variables and defaults
1431 # PFILES are platform specific files
1432 PFILES="platforms/Makefile"
1436 hostname=`uname -n | cut -d '.' -f 1`
1440 PSCMD="ps -e -o pid,comm"
1442 platforms/aix/Makefile"
1443 TAPEDRIVE="/dev/rmt0.1"
1447 PTHREAD_LIB="-lpthread -lexc"
1448 if test "${CC}" = "gcc" ; then
1455 TAPEDRIVE="/dev/nrmt0"
1458 DISTVER=`uname -a |awk '{print $3}'`
1459 TAPEDRIVE="/dev/nrmt0"
1460 PTHREAD_LIB="-pthread"
1461 CFLAGS="${CFLAGS} -pthread"
1462 PSCMD="ps -x -o pid,command"
1466 platforms/bsdi/Makefile \
1467 platforms/bsdi/bacula-fd \
1468 platforms/bsdi/bacula-sd \
1469 platforms/bsdi/bacula-dir"
1470 largefile_support="yes"
1473 DISTVER=`uname -a |awk '{print $3}'`
1474 TAPEDRIVE="/dev/nrst0"
1477 WLDFLAGS="-mwindows"
1481 TAPEDRIVE="/dev/nst0"
1482 PSCMD="ps -e -o pid,command"
1485 platforms/darwin/Makefile"
1488 DISTVER=`cat /etc/debian_version`
1489 TAPEDRIVE="/dev/nrst0"
1490 PSCMD="ps -e -o pid,command"
1493 DISTVER=`uname -a |awk '{print $3}'`
1494 VER=`echo $DISTVER | cut -c 1`
1495 if test x$VER = x4 ; then
1496 PTHREAD_LIB="-pthread"
1497 CFLAGS="${CFLAGS} -pthread"
1501 TAPEDRIVE="/dev/nrsa0"
1502 PSCMD="ps -x -o pid,command"
1504 platforms/freebsd/Makefile \
1505 platforms/freebsd/bacula-fd \
1506 platforms/freebsd/bacula-sd \
1507 platforms/freebsd/bacula-dir"
1508 largefile_support="yes"
1511 PSCMD="UNIX95=1 ps -e -o pid,comm"
1512 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
1514 TAPEDRIVE="/dev/rmt/0hnb"
1518 TAPEDRIVE="/dev/rmt/0cbn"
1519 PSCMD="ps -e -o pid,comm"
1521 platforms/irix/Makefile \
1522 platforms/irix/bacula-fd \
1523 platforms/irix/bacula-sd \
1524 platforms/irix/bacula-dir"
1527 DISTVER=`uname -a |awk '{print $3}'`
1530 TAPEDRIVE="/dev/nrst0"
1531 PSCMD="ps -a -o pid,command"
1532 PTHREAD_LIB="-pthread"
1533 CFLAGS="${CFLAGS} -pthread"
1536 DISTVER=`uname -a |awk '{print $3}'`
1539 TAPEDRIVE="/dev/nrst0"
1540 PSCMD="ps -a -o pid,command"
1541 PTHREAD_LIB="-pthread"
1542 CFLAGS="${CFLAGS} -pthread"
1544 platforms/openbsd/Makefile \
1545 platforms/openbsd/bacula-fd \
1546 platforms/openbsd/bacula-sd \
1547 platforms/openbsd/bacula-dir"
1550 if test -f /etc/whitebox-release ; then
1551 f=/etc/whitebox-release
1553 f=/etc/redhat-release
1555 if test `cat $f | grep release |\
1556 cut -f 3 -d ' '`x = "Enterprise"x ; then
1557 DISTVER="Enterprise "`cat $f | grep release |\
1560 DISTVER=`cat /etc/redhat-release | grep release |\
1563 TAPEDRIVE="/dev/nst0"
1564 PSCMD="ps -e -o pid,command"
1566 platforms/redhat/Makefile \
1567 platforms/redhat/bacula-fd \
1568 platforms/redhat/bacula-sd \
1569 platforms/redhat/bacula-dir \
1570 platforms/redhat/bacula.spec \
1572 hostname=`hostname -s`
1575 DISTVER=`cat /etc/mandrake-release | grep release |\
1577 TAPEDRIVE="/dev/nst0"
1578 PSCMD="ps -e -o pid,command"
1580 platforms/mandrake/Makefile \
1581 platforms/mandrake/bacula-fd \
1582 platforms/mandrake/bacula-sd \
1583 platforms/mandrake/bacula-dir \
1584 platforms/mandrake/bacula.spec \
1588 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
1589 TAPEDRIVE="/dev/nst0"
1590 PSCMD="ps -e -o pid,command"
1592 platforms/gentoo/Makefile \
1593 platforms/gentoo/bacula-fd \
1594 platforms/gentoo/bacula-sd \
1595 platforms/gentoo/bacula-dir"
1598 DISTVER=`cat /etc/slackware-version`
1599 TAPEDRIVE="/dev/nst0"
1600 PSCMD="ps -e -o pid,command"
1602 platforms/slackware/Makefile \
1603 platforms/slackware/rc.bacula-fd \
1604 platforms/slackware/rc.bacula-sd \
1605 platforms/slackware/rc.bacula-dir\
1606 platforms/slackware/functions.bacula"
1610 TAPEDRIVE="/dev/rmt/0cbn"
1611 PSCMD="ps -e -o pid,comm"
1613 platforms/solaris/Makefile \
1614 platforms/solaris/bacula-fd \
1615 platforms/solaris/bacula-sd \
1616 platforms/solaris/bacula-dir"
1617 if test x$DISTVER = x5.6 ; then
1618 AC_DEFINE(HAVE_OLD_SOCKOPT)
1622 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
1624 TAPEDRIVE="/dev/nst0"
1625 PSCMD="ps -e -o pid,command"
1627 platforms/suse/Makefile \
1628 platforms/suse/bacula-fd \
1629 platforms/suse/bacula-sd \
1630 platforms/suse/bacula-dir \
1631 platforms/suse/bacula \
1632 platforms/suse/bacula.spec"
1637 TAPEDRIVE="/dev/nst0"
1638 PSCMD="ps -e -o pid,command"
1640 platforms/suse/Makefile \
1641 platforms/suse/bacula-fd \
1642 platforms/suse/bacula-sd \
1643 platforms/suse/bacula-dir"
1647 TAPEDRIVE="/dev/nst0"
1650 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
1656 LIBS="$PTHREAD_LIB $LIBS"
1658 AC_DEFINE_UNQUOTED(lld, "$lld")
1659 AC_DEFINE_UNQUOTED(llu, "$llu")
1667 dnl# common parts of the Makefile
1668 MCOMMON=./autoconf/Make.common
1669 AC_SUBST_FILE(MCOMMON)
1672 if test "x${subsysdir}" = "x${sbindir}" ; then
1675 echo "You have set both --sbindir and --with-subsys-dir"
1676 echo " equal to: ${subsysdir} "
1677 echo "This is not permitted. Please reconfigure."
1679 echo "Aborting configuration ..."
1685 AC_OUTPUT([autoconf/Make.common \
1688 rescue/linux/Makefile \
1689 rescue/freebsd/Makefile \
1690 rescue/solaris/Makefile \
1691 scripts/startmysql \
1693 scripts/btraceback \
1699 scripts/devel_bacula \
1702 scripts/bacula.desktop.gnome1 \
1703 scripts/bacula.desktop.gnome2 \
1704 scripts/bacula.desktop.gnome1.consolehelper \
1705 scripts/bacula.desktop.gnome2.consolehelper \
1706 scripts/bacula.desktop.gnome1.xsu \
1707 scripts/bacula.desktop.gnome2.xsu \
1708 scripts/gnome-console.console_apps \
1709 scripts/mtx-changer \
1713 src/console/Makefile \
1714 src/console/bconsole.conf \
1715 src/gnome-console/Makefile \
1716 src/gnome-console/gnome-console.conf \
1717 src/gnome2-console/Makefile \
1718 src/gnome2-console/gnome-console.conf \
1719 src/wx-console/Makefile \
1720 src/wx-console/wx-console.conf \
1721 src/tray-monitor/Makefile \
1722 src/tray-monitor/tray-monitor.conf \
1724 src/dird/bacula-dir.conf \
1726 src/stored/Makefile \
1727 src/stored/bacula-sd.conf \
1728 src/filed/Makefile \
1729 src/filed/bacula-fd.conf \
1730 src/filed/win32/Makefile \
1732 src/cats/make_catalog_backup \
1733 src/cats/delete_catalog_backup \
1734 src/cats/create_postgresql_database \
1735 src/cats/update_postgresql_tables \
1736 src/cats/make_postgresql_tables \
1737 src/cats/grant_postgresql_privileges \
1738 src/cats/drop_postgresql_tables \
1739 src/cats/drop_postgresql_database \
1740 src/cats/create_mysql_database \
1741 src/cats/update_mysql_tables \
1742 src/cats/make_mysql_tables \
1743 src/cats/grant_mysql_privileges \
1744 src/cats/drop_mysql_tables \
1745 src/cats/drop_mysql_database \
1746 src/cats/create_sqlite_database \
1747 src/cats/update_sqlite_tables \
1748 src/cats/make_sqlite_tables \
1749 src/cats/grant_sqlite_privileges \
1750 src/cats/drop_sqlite_tables \
1751 src/cats/drop_sqlite_database \
1754 src/cats/create_bdb_database \
1755 src/cats/update_bdb_tables \
1756 src/cats/make_bdb_tables \
1757 src/cats/grant_bdb_privileges \
1758 src/cats/drop_bdb_tables \
1759 src/cats/drop_bdb_database \
1760 src/cats/create_bacula_database \
1761 src/cats/update_bacula_tables \
1762 src/cats/grant_bacula_privileges \
1763 src/cats/make_bacula_tables \
1764 src/cats/drop_bacula_tables \
1765 src/cats/drop_bacula_database \
1766 src/findlib/Makefile \
1767 src/tools/Makefile \
1768 src/win32/winbacula.nsi \
1769 src/win32/baculafd/bacula-fd.conf \
1770 src/win32/Makefile \
1771 src/win32/console/bconsole.conf \
1772 src/win32/wx-console/wx-console.conf \
1774 [(echo "Doing make of dependencies"; ${MAKE:-make} depend;) ]
1778 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
1779 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
1784 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
1785 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
1787 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
1788 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
1790 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
1791 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
1793 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
1794 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
1796 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
1797 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
1799 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
1803 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
1804 largefile_support="yes"
1808 # A whole lot of hand springs to get the compiler version.
1809 # This is because gcc changed the output in version 3.0
1811 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
1812 if test "x${CCVERSION}" = "x" ; then
1813 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
1815 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
1816 if test x"${CXXVERSION}" = x ; then
1817 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
1820 if test "x${subsysdir}" = "x${sbindir}" ; then
1823 echo "You have set --sbindir and --with-subsys-dir"
1824 echo " both equal to: ${subsysdir} "
1825 echo " This is not permitted. Please reconfigure."
1827 echo "Aborting configuration ..."
1833 if test "x${db_name}" = "xInternal" ; then
1836 echo "You have not specified either --enable-client-only or one of the"
1837 echo " supported databases: MySQL, PostgreSQL, or SQLite".
1838 echo " This is not permitted. Please reconfigure."
1840 echo "Aborting the configuration ..."
1847 Configuration on `date`:
1849 Host: $host -- ${DISTNAME} ${DISTVER}
1850 Bacula version: ${VERSION} (${DATE})
1851 Source code location: ${srcdir}
1852 Install binaries: ${sbindir}
1853 Install config files: ${sysconfdir}
1854 Scripts directory: ${scriptdir}
1855 Working directory: ${working_dir}
1856 PID directory: ${piddir}
1857 Subsys directory: ${subsysdir}
1858 C Compiler: ${CC} ${CCVERSION}
1859 C++ Compiler: ${CXX} ${CXXVERSION}
1860 Compiler flags: ${WCFLAGS} ${CFLAGS}
1861 Linker flags: ${WLDFLAGS} ${LDFLAGS}
1863 Statically Linked Tools: ${support_static_tools}
1864 Statically Linked FD: ${support_static_fd}
1865 Statically Linked SD: ${support_static_sd}
1866 Statically Linked DIR: ${support_static_dir}
1867 Statically Linked CONS: ${support_static_cons}
1868 Database type: ${db_name}
1869 Database lib: ${DB_LIBS}
1871 Job Output Email: ${job_email}
1872 Traceback Email: ${dump_email}
1873 SMTP Host Address: ${smtp_host}
1875 Director Port: ${dir_port}
1876 File daemon Port: ${fd_port}
1877 Storage daemon Port: ${sd_port}
1879 Director User: ${dir_user}
1880 Director Group: ${dir_group}
1881 Storage Daemon User: ${sd_user}
1882 Storage DaemonGroup: ${sd_group}
1883 File Daemon User: ${fd_user}
1884 File Daemon Group: ${fd_group}
1886 SQL binaries Directory ${SQL_BINDIR}
1888 Large file support: $largefile_support
1889 Bacula conio support: ${got_conio} ${CONS_LIBS}
1890 readline support: ${got_readline} ${PRTREADLINE_SRC}
1891 TCP Wrappers support: ${TCPW_MSG}
1892 ZLIB support: ${have_zlib}
1893 enable-smartalloc: ${support_smartalloc}
1894 enable-gnome: ${support_gnome} ${gnome_version}
1895 enable-wx-console: ${support_wx_console}
1896 enable-tray-monitor: ${support_tray_monitor}
1897 client-only: ${build_client_only}
1898 ACL support: ${have_acl}
1905 # cweb support: ${got_cweb} ${CWEB_SRC}
1906 # gmp support: ${got_gmp} ${GMP_SRC}