]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/autoconf/configure.in
Autochanger for read + 64 bit addrs + Session key, see kes14Sep02
[bacula/bacula] / bacula / autoconf / configure.in
index 77dab536cfc2ba4f495ca2f6719422c2cfdf4923..3d0b9808578146ca8c9ad99193925609e1427656 100644 (file)
@@ -12,7 +12,7 @@ AC_CONFIG_AUX_DIR(${BUILD_DIR}/autoconf)
 AC_CONFIG_HEADER(src/config.h:autoconf/config.h.in)
 
 dnl require a recent autoconf
-AC_PREREQ(2.12)
+AC_PREREQ(2.13)
 
 
 dnl search for true and false programs.
@@ -139,6 +139,9 @@ fi
 support_mysql=no
 support_sqlite=no
 support_smartalloc=yes
+support_readline=yes
+support_gnome=no
+support_static_tools=yes
 cats=
 db_name=Internal
 DB_NAME=bdb
@@ -155,7 +158,6 @@ AC_ARG_ENABLE(everything,
 # -------------------------------------------
 # gnome (default off)
 # -------------------------------------------
-support_gnome=no
 AC_ARG_ENABLE(gnome,
   [  --enable-gnome    enable build of gnome-console GUI                     *],
   [if test x$enableval = xyes; then
@@ -183,12 +185,27 @@ if test x$support_smartalloc = xyes; then
    AC_DEFINE(SMARTALLOC)
 fi
 
+# -------------------------------------------
+# static-tools (default on)
+# -------------------------------------------
+AC_ARG_ENABLE(static-tools,
+   [  --enable-static-tools    enable static tape tools                           *],
+   [if test x$enableval = xno; then
+     support_static_tools=no
+   fi])
+
+TTOOL_LDFLAGS=
+if test x$support_static_tools = xyes; then
+   TTOOL_LDFLAGS="-static"
+fi
+AC_SUBST(TTOOL_LDFLAGS)
+
+
 
 
 # ---------------------------------------------------
 # Check for readline support/directory (default on)
 # ---------------------------------------------------
-support_readline=yes
 # this allows you to turn it completely off
 AC_ARG_ENABLE(readline,
   [  --disable-readline      disable readline support ],
@@ -572,7 +589,8 @@ AC_ARG_WITH(dir-password,
 
 if test "x$dir_password" = "x" ; then
    if test "x$OPENSSL" = "xnone" ; then
-      key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
+#     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
+      key=`./randpass 33`
    else
       key=`openssl rand -base64 33`
    fi
@@ -591,7 +609,8 @@ AC_ARG_WITH(fd-password,
 
 if test "x$fd_password" = "x" ; then
    if test "x$OPENSSL" = "xnone" ; then
-      key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
+#     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
+      key=`./randpass 37`
    else
       key=`openssl rand -base64 33`
    fi
@@ -610,7 +629,8 @@ AC_ARG_WITH(sd-password,
 
 if test "x$sd_password" = "x" ; then
    if test "x$OPENSSL" = "xnone" ; then
-      key=`date | uuencode 1 | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
+#     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
+      key=`./randpass 41`
    else
       key=`openssl rand -base64 33`
    fi
@@ -659,9 +679,9 @@ fi
 
 dnl A few others 
 AC_EXEEXT
-dnl # AC_SYS_LARGEFILE must modify aclocal.m4
-dnl LARGE_FILE_SUPPORT
-  
+
+dnl See if we can use 64 bit file addresses
+AC_SYS_LARGEFILE
 
 
 AC_PATH_XTRA
@@ -931,7 +951,7 @@ AC_CHECK_FUNCS( \
 
 AC_CHECK_FUNCS(fchdir, [AC_DEFINE(HAVE_FCHDIR)])
 
-AC_CHECK_FUNCS(snprintf vsnprintf)
+AC_CHECK_FUNCS(snprintf vsnprintf gethostid getdomainname)
 
 dnl# --------------------------------------------------------------------------
 dnl# CHECKING FOR THREAD SAFE FUNCTIONS
@@ -1073,6 +1093,7 @@ freebsd)
            platforms/freebsd/bacula-sd \
            platforms/freebsd/bacula-dir"
        hostname=`hostname -s`
+       ac_cv_sys_largefile_CFLAGS="yes"
   ;;
 hpux)
        DISTVER=`uname -r`
@@ -1212,6 +1233,8 @@ AC_OUTPUT([autoconf/Make.common \
           src/cats/create_bdb_database \
           src/cats/make_bdb_tables \
           src/cats/drop_bdb_tables \
+          src/cats/make_bacula_tables \
+          src/cats/drop_bacula_tables \
           src/findlib/Makefile \
           src/tools/Makefile \
           $PFILES ],  
@@ -1250,6 +1273,7 @@ Configuration on `date`:
   Compiler flags:            ${CFLAGS} 
   Linker flags:              ${LDFLAGS}
   Libraries:                 ${LIBS}
+  Statically Linked Tools:    ${support_static_tools}
   Database found:            ${have_db}
   Database type:             ${db_name}
   Database lib:              ${DB_LIBS}
@@ -1263,6 +1287,7 @@ Configuration on `date`:
   Working directory          ${working_dir}
   SQL binaries Directory      ${SQL_BINDIR}
 
+  Large file support:        $ac_cv_sys_largefile_CFLAGS
   readline support:          ${got_readline} ${PRTREADLINE_SRC}
   cweb support:              ${got_cweb} ${CWEB_SRC}
   TCP Wrappers support:       ${TCPW_MSG}