]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
check for missing unixodbc-dev during configure
authorTravis Cross <tc@traviscross.com>
Mon, 23 Apr 2012 17:00:30 +0000 (17:00 +0000)
committerTravis Cross <tc@traviscross.com>
Mon, 23 Apr 2012 17:21:25 +0000 (17:21 +0000)
Previously if --enable-core-odbc-support was set but unixodbc-dev was
not available, we would fail during make rather during configure.

configure.in

index 4228883fd313b0a2bd66d82502010ae163e35e01..f6d2e091ef9b61e62db7ac2b26fd8d9a82a2178e 100644 (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,