mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-19 18:47:54 +08:00
Using iodbc-config --cflags --libs to get config
This commit is contained in:
@@ -86,8 +86,8 @@ AC_ARG_WITH(iodbc,
|
|||||||
[ --with-iodbc=/path/to/iodbc build odbc driver against iODBC])
|
[ --with-iodbc=/path/to/iodbc build odbc driver against iODBC])
|
||||||
if test "$with_iodbc"; then
|
if test "$with_iodbc"; then
|
||||||
HAVE_ODBC=true
|
HAVE_ODBC=true
|
||||||
ODBC_CFLAGS="-I$with_iodbc/include"
|
ODBC_CFLAGS=$(iodbc-config --prefix="$with_iodbc" --cflags)
|
||||||
ODBC_LIBS="-L$with_iodbc/lib"
|
ODBC_LIBS=$(iodbc-config --prefix="$with_iodbc" --libs)
|
||||||
CFLAGS="$CFLAGS -DIODBC"
|
CFLAGS="$CFLAGS -DIODBC"
|
||||||
|
|
||||||
OLDLDFLAGS=$LDFLAGS
|
OLDLDFLAGS=$LDFLAGS
|
||||||
|
Reference in New Issue
Block a user