Index: apps/Makefile =================================================================== RCS file: /usr/cvsroot/asterisk/apps/Makefile,v retrieving revision 1.85 diff -u -r1.85 Makefile --- apps/Makefile 14 Dec 2004 23:36:29 -0000 1.85 +++ apps/Makefile 22 Dec 2004 22:32:51 -0000 @@ -51,6 +51,11 @@ APPS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi) APPS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi) +CURLLIBS=$(shell curl-config --libs) +ifneq (${CURLLIBS},) + APPS+=app_curl.so +endif + CFLAGS+=-fPIC # # If you have MySQL 4.1 or later you can use ODBC @@ -74,6 +79,9 @@ rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so +app_curl.so: app_curl.o + $(CC) $(SOLINK) -o $@ $< $(CURLLIBS) + app_voicemail.so : app_voicemail.o ifeq ($(USE_MYSQL_VM_INTERFACE),1) $(CC) $(SOLINK) -o $@ $(MLFLAGS) $< -L/usr/lib/mysql -lmysqlclient -lz