From 000dbac4248066a9d3dd83bad50193c147e083d1 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 15 Nov 2007 17:23:50 +0000 Subject: [PATCH] Fix ODBC checks. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8e8b586..fe73526 100644 --- a/configure.ac +++ b/configure.ac @@ -733,13 +733,14 @@ if test "$build_odbc" = "yes" ; then odbc_dir="$with_odbc/bin" if test "$with_odbc" != /usr ; then ODBC_CFLAGS="-I$with_odbc/include" - ODBC_LIBS="-L$with_odbc/lib -lodbc" + ODBC_LIBS="-L$with_odbc/lib" fi fi ]) AC_PATH_PROG(ODBC_CONFIG, odbc_config, no, $odbc_dir $PATH ) if test "$ODBC_CONFIG" = no ; then AC_MSG_WARN(Cannot find odbc_config, will try to guess settings.) + ODBC_LIBS="$ODBC_LIBS -lodbc" else ODBC_CFLAGS=`$ODBC_CONFIG --cflags` ODBC_LIBS=`$ODBC_CONFIG --libs` -- 2.1.4