|
|
|
@ -279,6 +279,27 @@ AC_ARG_WITH( |
|
|
|
|
#fi |
|
|
|
|
export USE_PERL |
|
|
|
|
|
|
|
|
|
dnl We disable odbc support unless we override it with --enable-odbc |
|
|
|
|
#USE_ODBC=false |
|
|
|
|
AC_MSG_CHECKING(setting USE_ODBC) |
|
|
|
|
AC_ARG_WITH( |
|
|
|
|
odbc, |
|
|
|
|
[ --with-odbc use odbc ], |
|
|
|
|
[ |
|
|
|
|
case "$withval" in |
|
|
|
|
y | ye | yes) USE_ODBC=true; AC_MSG_RESULT(enabled) ;; |
|
|
|
|
*) USE_ODBC=false; AC_MSG_RESULT(disabled) ;; |
|
|
|
|
esac |
|
|
|
|
], |
|
|
|
|
[ USE_ODBC=false; AC_MSG_RESULT(disabled) ] |
|
|
|
|
) |
|
|
|
|
# |
|
|
|
|
#if test "$enable_odbc." != "." |
|
|
|
|
#then |
|
|
|
|
# USE_ODBC=$enable_odbc |
|
|
|
|
#fi |
|
|
|
|
export USE_ODBC |
|
|
|
|
|
|
|
|
|
dnl Unless we specify the command line options |
|
|
|
|
dnl --enable cassert to explicitly enable it |
|
|
|
|
dnl If you do not explicitly do it, it defaults to disabled |
|
|
|
@ -334,6 +355,7 @@ AC_SUBST(DLSUFFIX) |
|
|
|
|
AC_SUBST(DL_LIB) |
|
|
|
|
AC_SUBST(USE_TCL) |
|
|
|
|
AC_SUBST(USE_PERL) |
|
|
|
|
AC_SUBST(USE_ODBC) |
|
|
|
|
AC_SUBST(MULTIBYTE) |
|
|
|
|
|
|
|
|
|
dnl Check for C++ support (allow override if needed) |
|
|
|
@ -822,4 +844,16 @@ then |
|
|
|
|
LDFLAGS="$ice_save_LDFLAGS" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h) |
|
|
|
|
dnl cause configure to recurse into subdirectories with their own configure |
|
|
|
|
dnl Darn, setting AC_CONFIG_SUBDIRS sets a list $subdirs$ in the configure output |
|
|
|
|
dnl file, but then configure doesn't bother using that list. Probably a bug in |
|
|
|
|
dnl this version of autoconf. |
|
|
|
|
dnl So at the moment interfaces/odbc gets configured unconditionally. |
|
|
|
|
dnl - thomas 1998-10-05 |
|
|
|
|
#if test "X$USE_ODBC" = "Xtrue" |
|
|
|
|
#then |
|
|
|
|
# AC_CONFIG_SUBDIRS(interfaces/odbc) |
|
|
|
|
#fi |
|
|
|
|
# |
|
|
|
|
#AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h) |
|
|
|
|
AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h interfaces/odbc/Makefile.global interfaces/odbc/GNUmakefile) |
|
|
|
|