]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/autoconf/configure.in
Make sure we unload the right slot when swapping.
[bacula/bacula] / bacula / autoconf / configure.in
index 9341be235e3bb23eb01540df469c0e58ebad6a7e..ae994edfe29918db17c53718af383a4dd04f578d 100644 (file)
@@ -184,7 +184,7 @@ then
     AM_GNU_GETTEXT
 fi
 
-
+support_faketape=no
 support_mysql=no
 support_sqlite=no
 support_sqlite3=no
@@ -396,6 +396,19 @@ if test x$support_smartalloc = xyes; then
    AC_DEFINE(SMARTALLOC, 1, [Set if you want Smartalloc enabled])
 fi
 
+# -------------------------------------------
+# faketape (default off)
+# -------------------------------------------
+AC_ARG_ENABLE(faketape,
+  [  --enable-faketape       enable faketape debugging support [disabled]],
+  [if test x$enableval = xyes; then
+    support_faketape=yes
+  fi])
+
+if test x$support_faketape = xyes; then
+   AC_DEFINE(USE_FAKETAPE, 1, [Set if you want faketape enabled])
+fi
+
 # -------------------------------------------
 # static-tools (default off)
 # -------------------------------------------
@@ -1366,6 +1379,27 @@ fi
 if test x$DB_TYPE = xdbi; then
    DB_TYPE=$DB_PROG
    db_type=$DB_PROG
+   pkg=1
+   # Check for batch insert
+   if test $DB_PROG = postgresql; then
+      A=`nm $DB_PROG_LIB | grep PQputCopyData`
+      pkg=$?
+   fi
+
+   if test $DB_PROG = mysql; then
+      A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
+      pkg=$?     
+   fi
+
+   if test $pkg = 0; then
+      AC_ARG_ENABLE(batch-insert,
+      [        --enable-batch-insert       enable the DB batch insert code [disabled]],
+      [if test x$enableval = xno; then
+         support_batch_insert=no
+       else
+         support_batch_insert=yes
+      fi])
+   fi  
 fi
 
 if test $support_batch_insert = yes ; then
@@ -2442,6 +2476,7 @@ Configuration on `date`:
   Encryption support:        ${support_crypto} 
   ZLIB support:              ${have_zlib}
   enable-smartalloc:         ${support_smartalloc} 
+  enable-faketape:           ${support_faketape} 
   bat support:               ${support_bat} ${QWT_LDFLAGS}
   enable-gnome:              ${support_gnome} ${gnome_version}
   enable-bwx-console:        ${support_wx_console} ${wx_version}