Using iodbc-config --cflags --libs to get config

This commit is contained in:
Nirgal Vourgère 2014-10-17 12:49:49 +02:00
parent 4b08559d66
commit 70ee236de9

View File

@ -86,8 +86,8 @@ AC_ARG_WITH(iodbc,
[ --with-iodbc=/path/to/iodbc build odbc driver against iODBC])
if test "$with_iodbc"; then
HAVE_ODBC=true
ODBC_CFLAGS="-I$with_iodbc/include"
ODBC_LIBS="-L$with_iodbc/lib"
ODBC_CFLAGS=$(iodbc-config --prefix="$with_iodbc" --cflags)
ODBC_LIBS=$(iodbc-config --prefix="$with_iodbc" --libs)
CFLAGS="$CFLAGS -DIODBC"
OLDLDFLAGS=$LDFLAGS