]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Revert "Improve configure ODBC handling"
authorTravis Cross <tc@traviscross.com>
Fri, 31 Jan 2014 22:35:03 +0000 (22:35 +0000)
committerTravis Cross <tc@traviscross.com>
Fri, 31 Jan 2014 22:35:03 +0000 (22:35 +0000)
This reverts commit dfd591e9f52cdc71f3837e123db5bace9c5474b8, reversing
changes made to 998b656799fd8f99a0d572c105fb1cf237127661.

configure.in

index ac7e468af034864a7a2217c263f790fd239e145f..a41fb924b9b72436604753e9d89979d92e40e284 100644 (file)
@@ -402,16 +402,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