-#BA_CHECK_INGRES_DB
-
-#BA_CHECK_DBI_DB
-
-#BA_CHECK_DBI_DRIVER
-
-if test "x${db_backends}" = "x" ; then
- echo " "
- echo " "
- echo "You have not specified either --enable-client-only or one of the"
- echo "supported databases: MySQL, PostgreSQL, or SQLite3."
- echo "This is not permitted. Please reconfigure."
- echo " "
- echo "Aborting the configuration ..."
- echo " "
- echo " "
- exit 1
-fi
-
-case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
- 1)
- DEFAULT_DB_TYPE="${DB_BACKENDS}"
- if test x$use_libtool = xno; then
- SHARED_CATALOG_TARGETS=""
- else
- SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
- fi
- ;;
- *)
- DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
-
- if test x$use_libtool = xno; then
- echo " "
- echo " "
- echo "You have specified two or more of the"
- echo "supported databases: MySQL, PostgreSQL, or SQLite3."
- echo "This is not permitted when not using libtool Please reconfigure."
- echo " "
- echo "Aborting the configuration ..."
- echo " "
- echo " "
- exit 1
- fi
-
- SHARED_CATALOG_TARGETS=""
- for db_type in ${DB_BACKENDS}
- do
- if test -z "${SHARED_CATALOG_TARGETS}"; then
- SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
- else
- SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
- fi
- done
- ;;
-esac
-
-if test x$use_libtool = xyes; then
- DB_LIBS=""
-fi
-
-
-
-
-
-
-support_batch_insert=yes
-# Check whether --enable-batch-insert was given.
-if test "${enable_batch_insert+set}" = set; then :
- enableval=$enable_batch_insert;
- if test x$enableval = xno; then
- support_batch_insert=no
- fi
-
-
-fi
-
-
-if test x$support_batch_insert = xyes; then
-
-$as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
-
-fi
-
-if test ! -z "$MYSQL_LIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
-$as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
-if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lmysql_r $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-#ifdef __cplusplus
-extern "C"
-#endif
-char mysql_thread_safe ();
-int
-main ()
-{
-return mysql_thread_safe ();
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_mysql_r_mysql_thread_safe=yes
-else
- ac_cv_lib_mysql_r_mysql_thread_safe=no
-fi
-rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
-$as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
-if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
-
-$as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
-
-fi
-
-fi
-
-if test ! -z "SQLITE_LIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
-$as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
-if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
- $as_echo_n "(cached) " >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsqlite3 $LIBS"
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */