mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 04:57:05 +00:00
Ungetlib libmemcached
Tested with several libmemcached versions between 0.31 and 1.0.18. Unfortunately the API is extremely volatile and awkward to use. Packaging scripts still need addressing. FS-353
This commit is contained in:
1 parent
23fe7f5c9f
commit
4bdb7129ba
3 files changed
+119
-53
No files matched your search
@@ -1,30 +1,17 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_memcache
|
||||
MEMCACHED=libmemcached-0.32
|
||||
MEMCACHED_DIR=$(switch_srcdir)/libs/$(MEMCACHED)
|
||||
MEMCACHED_BUILDDIR=$(switch_builddir)/libs/$(MEMCACHED)
|
||||
|
||||
MEMCACHEDLA=$(MEMCACHED_BUILDDIR)/libmemcached/libmemcached.la
|
||||
if HAVE_MEMCACHED
|
||||
|
||||
mod_LTLIBRARIES = mod_memcache.la
|
||||
mod_memcache_la_SOURCES = mod_memcache.c
|
||||
mod_memcache_la_CFLAGS = $(AM_CFLAGS) -I$(MEMCACHED_DIR) -I$(MEMCACHED_BUILDDIR)
|
||||
mod_memcache_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(MEMCACHEDLA)
|
||||
mod_memcache_la_CFLAGS = $(AM_CFLAGS) $(MEMCACHED_CFLAGS)
|
||||
mod_memcache_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(MEMCACHED_LIBS)
|
||||
mod_memcache_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
|
||||
MY_DEFAULT_ARGS=--build=$(build) --host=$(host) --target=$(target) --disable-shared --with-pic
|
||||
|
||||
BUILT_SOURCES=$(MEMCACHEDLA)
|
||||
|
||||
$(MEMCACHED_DIR):
|
||||
$(GETLIB) $(MEMCACHED).tar.gz
|
||||
|
||||
$(MEMCACHED_BUILDDIR)/Makefile: $(MEMCACHED_DIR)
|
||||
mkdir -p $(MEMCACHED_BUILDDIR)
|
||||
echo $(MY_DEFAULT_ARGS)
|
||||
cd $(MEMCACHED_BUILDDIR) && $(DEFAULT_VARS) $(MEMCACHED_DIR)/configure $(MY_DEFAULT_ARGS) --with-memcached=no --srcdir=$(MEMCACHED_DIR) CPPFLAGS= LDFLAGS=
|
||||
$(TOUCH_TARGET)
|
||||
|
||||
$(MEMCACHEDLA): $(MEMCACHED_BUILDDIR)/Makefile
|
||||
cd $(MEMCACHED_BUILDDIR) && $(MAKE)
|
||||
$(TOUCH_TARGET)
|
||||
else
|
||||
install: error
|
||||
all: error
|
||||
error:
|
||||
$(error You must install libmemcached-dev to build mod_memcache)
|
||||
endif
|
||||
Reference in new issue
Block a user