File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1+ Summary of important user-visible changes for odbc 0.0.2:
2+ -------------------------------------------------------------------
3+
4+ ** Use pkg-config if cant find odbc_config tool
5+
16Summary of important user-visible changes for odbc 0.0.1:
27-------------------------------------------------------------------
38
Original file line number Diff line number Diff line change @@ -196,11 +196,12 @@ if test $have_windows = yes; then
196196else
197197 # look for unix odbc
198198 AC_CHECK_TOOL ( [ ODBC_CONFIG] , [ odbc_config] , [ none] )
199- if [ test "x$ODBC_CONFIG" = "xnone" ] ; then
200- AC_MSG_ERROR ( [ *** 'odbc_config' not found.] )
199+ if ! [ test "x$ODBC_CONFIG" = "xnone" ] ; then
200+ ODBC_LIBS=`$ODBC_CONFIG --libs`
201+ ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
202+ else
203+ PKG_CHECK_MODULES([ ODBC] , [ odbc] )
201204 fi
202- ODBC_LIBS=`$ODBC_CONFIG --libs`
203- ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
204205fi
205206AC_SUBST ( [ ODBC_LIBS] )
206207AC_SUBST ( [ ODBC_CFLAGS] )
You can’t perform that action at this time.
0 commit comments