git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5085 
91ce42f0-d328-0410-95d8-
f526ca767f89
 
 #undef HAVE_BAT
 
 /* Set if DB batch insert code enabled */
-#undef HAVE_BATCH_INSERT
+#undef HAVE_BATCH_FILE_INSERT
 
 /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
    CoreFoundation framework. */
 
      [if test x$enableval = xno; then
        support_batch_insert=no
       else
-       AC_DEFINE(HAVE_BATCH_INSERT, 1, [Set if DB batch insert code enabled]) 
        support_batch_insert=yes
      fi])
 fi
                                                          
-
+if test $support_batch_insert = yes ; then
+   AC_DEFINE(HAVE_BATCH_FILE_INSERT, 1, [Set if DB batch insert code enabled])
+fi
 
 
 AC_DEFINE(PROTOTYPES)