mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 15:49:56 +00:00
Merge in changes from my cdr-tds-conversion branch. This changes the internal
implementation from using the volatile libtds, to using the db-lib front end. The unintended side effect of this is that we support (at least) versions 0.62 through 0.82 of the FreeTDS distribution without any #ifdef ugliness. (closes issue #12844) Reported by: jcollie git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@126226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
29
configure.ac
29
configure.ac
@@ -1389,34 +1389,7 @@ fi
|
||||
|
||||
AST_EXT_TOOL_CHECK([GMIME], [gmime])
|
||||
|
||||
AST_EXT_LIB_CHECK([FREETDS], [tds], [tds_version], [tds.h])
|
||||
if test "${PBX_FREETDS}" != "0";
|
||||
then
|
||||
if test "${FREETDS_DIR}x" = "x";
|
||||
then
|
||||
for tds_dir in /usr /usr/local;
|
||||
do
|
||||
if test -f "${tds_dir}/include/tdsver.h";
|
||||
then
|
||||
FREETDS_DIR="${tds_dir}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
case `${GREP} TDS_VERSION_NO ${FREETDS_DIR:-/usr}/include/tdsver.h` in
|
||||
*0.64*)
|
||||
FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_64"
|
||||
;;
|
||||
*0.63*)
|
||||
FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_63"
|
||||
;;
|
||||
*0.62*)
|
||||
FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_0_62"
|
||||
;;
|
||||
*)
|
||||
FREETDS_INCLUDE="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
AST_EXT_LIB_CHECK([FREETDS], [sybdb], [dbinit], [sybdb.h])
|
||||
|
||||
AST_EXT_LIB_CHECK([TERMCAP], [termcap], [tgetent], [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user