fix odbc configure for OSX9

This commit is contained in:
Vitor Santos Costa 2010-10-13 23:07:02 +01:00
parent 7a29007eb5
commit 2444eea5a7
2 changed files with 18 additions and 4 deletions

11
configure vendored
View File

@ -5787,7 +5787,7 @@ $as_echo "$yap_cv_mysql" >&6; }
if test "$yap_cv_mysql" = yes if test "$yap_cv_mysql" = yes
then then
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL" 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 fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lodbc" >&5 { $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 if test "$yap_cv_odbc" = yes
then then
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC" 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
fi fi

View File

@ -657,7 +657,7 @@ then
if test "$yap_cv_mysql" = yes if test "$yap_cv_mysql" = yes
then then
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_MYSQL" 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 fi
dnl check for odbc dnl check for odbc
@ -676,7 +676,14 @@ then
if test "$yap_cv_odbc" = yes if test "$yap_cv_odbc" = yes
then then
YAP_EXTRAS="$YAP_EXTRAS -DMYDDAS_ODBC" 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
fi fi