mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-27 01:04:01 +00:00
make mysql cdr build conditional on mysql being installed. Fixes auto build of mod_cdr on machines without mysql
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4132 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
74c5c120af
commit
40e96b94d6
@ -1,11 +1,13 @@
|
||||
|
||||
#CFLAGS += $(shell mysql_config --include)
|
||||
#CFLAGS += -DSWITCH_QUEUE_ENHANCED
|
||||
#LDFLAGS += $(shell mysql_config --libs)
|
||||
#LDFLAGS += -lcurl
|
||||
|
||||
CPPCC = g++
|
||||
OBJS=cdrcontainer.o basecdr.o baseregistry.o mysqlcdr.o pddcdr.o csvcdr.o xmlcdr.o sqlitecdr.o
|
||||
OBJS=cdrcontainer.o basecdr.o baseregistry.o pddcdr.o csvcdr.o xmlcdr.o sqlitecdr.o
|
||||
|
||||
ifneq ($(shell which mysql_config),)
|
||||
CFLAGS += $(shell mysql_config --include)
|
||||
LDFLAGS += $(shell mysql_config --libs)
|
||||
OBJS += mysqlcdr.o
|
||||
endif
|
||||
|
||||
all: depends $(OBJS) $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user