Revert "Improve configure ODBC handling"

This reverts commit 60c56109bc, reversing
changes made to d7d5847dda.
This commit is contained in:
Travis Cross 2014-01-31 22:36:51 +00:00
parent 613f156da4
commit 418dd16643
1 changed files with 5 additions and 7 deletions

View File

@ -397,16 +397,14 @@ AM_CONDITIONAL([ENABLE_ZRTP],[test "x$enable_zrtp" != "xno"])
AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
enable_core_odbc_support="no"
AC_ARG_ENABLE(core-odbc-support,
[AS_HELP_STRING([--enable-core-odbc-support], [Compile with ODBC Support])],,[enable_core_odbc_support="no"])
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
AX_LIB_ODBC
if test "x$ac_cv_found_odbc" = "xyes" ; then
enable_core_odbc_support="yes"
elif test "x$enable_core_odbc_support" = "xyes" ; then
AC_MSG_ERROR([no usable libodbc; please install unixodbc devel package or equivalent])
fi
AC_CHECK_LIB([odbc], [SQLDisconnect],, AC_MSG_ERROR([no usable libodbc; please install unixodbc devel package or equivalent]))
fi
CHECK_LIBUUID