check for missing unixodbc-dev during configure

Previously if --enable-core-odbc-support was set but unixodbc-dev was
not available, we would fail during make rather during configure.
This commit is contained in:
Travis Cross 2012-04-23 17:00:30 +00:00
parent 5e5a2ff84b
commit ffc8e81b76
1 changed files with 4 additions and 0 deletions

View File

@ -391,6 +391,10 @@ AX_LIB_ODBC
if test "$ac_cv_found_odbc" = "yes" ; then
enable_core_odbc_support="yes"
fi
if test "x$enable_core_odbc_support" != "xno"; then
AC_CHECK_LIB([odbc], [SQLDisconnect],, AC_MSG_ERROR([no usable libodbc; please install unixodbc devel package or equivalent]))
fi
AC_ARG_ENABLE(timerfd-wrapper,