mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge TDS cdr fixes (bug #5517, with slight mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6892 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -40,6 +40,15 @@ endif
|
||||
# FreeTDS stuff...
|
||||
#
|
||||
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/tds.h),)
|
||||
ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h | grep -c 0.63),1)
|
||||
CFLAGS += -DFREETDS_0_63
|
||||
else
|
||||
ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h | grep -c 0.62),1)
|
||||
CFLAGS += -DFREETDS_0_62
|
||||
else
|
||||
CFLAGS += -DFREETDS_PRE_0_62
|
||||
endif
|
||||
endif
|
||||
MODS+=cdr_tds.so
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user