From 2444eea5a750ed8c7dc8774dc5ef5a5e8d88d50d Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Wed, 13 Oct 2010 23:07:02 +0100 Subject: [PATCH] fix odbc configure for OSX9 --- configure | 11 +++++++++-- configure.in | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/configure b/configure index b35cb1d52..b64d73dac 100755 --- a/configure +++ b/configure @@ -5787,7 +5787,7 @@ $as_echo "$yap_cv_mysql" >&6; } if test "$yap_cv_mysql" = yes then YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL" - LIBS="$LIBS -L${yap_cv_myddas}/lib/mysql -lmysqlclient" + LIBS="$LIBS -L${yap_cv_myddas}/lib/mysql -lmysqlclient " fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lodbc" >&5 @@ -5825,7 +5825,14 @@ $as_echo "$yap_cv_odbc" >&6; } if test "$yap_cv_odbc" = yes then YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC" - LIBS="$LIBS -lodbc " + case "$target_os" in + *darwin9*) + LIBS="$LIBS -lodbc -framework CoreFoundation" + ;; + **) + LIBS="$LIBS -lodbc" + ;; + esac fi fi diff --git a/configure.in b/configure.in index 652347c1c..69e1101fc 100755 --- a/configure.in +++ b/configure.in @@ -657,7 +657,7 @@ then if test "$yap_cv_mysql" = yes then YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL" - LIBS="$LIBS -L${yap_cv_myddas}/lib/mysql -lmysqlclient" + LIBS="$LIBS -L${yap_cv_myddas}/lib/mysql -lmysqlclient " fi dnl check for odbc @@ -676,7 +676,14 @@ then if test "$yap_cv_odbc" = yes then YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC" - LIBS="$LIBS -lodbc " + case "$target_os" in + *darwin9*) + LIBS="$LIBS -lodbc -framework CoreFoundation" + ;; + **) + LIBS="$LIBS -lodbc" + ;; + esac fi fi