Revision
15812
Author
mikej
Date
2009-12-07 01:07:43 -0600 (Mon, 07 Dec 2009)

Log Message

move mod_enum to use automake

Modified Paths

Added Paths

Removed Paths

Diff

Modified: freeswitch/trunk/configure.in (15811 => 15812)


--- freeswitch/trunk/configure.in	2009-12-07 06:47:28 UTC (rev 15811)
+++ freeswitch/trunk/configure.in	2009-12-07 07:07:43 UTC (rev 15812)
@@ -787,6 +787,7 @@
 AC_CONFIG_FILES([Makefile
                 src/Makefile
                 src/mod/Makefile
+                src/mod/applications/mod_enum/Makefile
                 src/mod/endpoints/mod_sofia/Makefile
                 src/mod/asr_tts/mod_unimrcp/Makefile
                 src/mod/languages/mod_java/Makefile

Modified: freeswitch/trunk/libs/udns/udns_resolver.c (15811 => 15812)


--- freeswitch/trunk/libs/udns/udns_resolver.c	2009-12-07 06:47:28 UTC (rev 15811)
+++ freeswitch/trunk/libs/udns/udns_resolver.c	2009-12-07 07:07:43 UTC (rev 15812)
@@ -45,6 +45,9 @@
 # undef HAVE_POLL
 #else
 #define udns_inet_pton inet_pton
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
 # include <sys/types.h>
 # include <sys/socket.h>
 # include <netinet/in.h>

Deleted: freeswitch/trunk/src/mod/applications/mod_enum/Makefile

Added: freeswitch/trunk/src/mod/applications/mod_enum/Makefile.am (0 => 15812)


--- freeswitch/trunk/src/mod/applications/mod_enum/Makefile.am	                        (rev 0)
+++ freeswitch/trunk/src/mod/applications/mod_enum/Makefile.am	2009-12-07 07:07:43 UTC (rev 15812)
@@ -0,0 +1,14 @@
+include $(top_srcdir)/build/modmake.rulesam
+MODNAME=mod_enum
+
+UDNS_DIR=$(switch_srcdir)/libs/udns
+AM_CFLAGS += -I$(UDNS_DIR) -DHAVE_POLL
+
+mod_LTLIBRARIES = mod_enum.la
+mod_enum_la_SOURCES  = mod_enum.c 
+mod_enum_la_SOURCES += $(UDNS_DIR)/udns_dn.c $(UDNS_DIR)/udns_dntosp.c $(UDNS_DIR)/udns_parse.c $(UDNS_DIR)/udns_misc.c
+mod_enum_la_SOURCES += $(UDNS_DIR)/udns_rr_a.c $(UDNS_DIR)/udns_rr_ptr.c $(UDNS_DIR)/udns_rr_mx.c $(UDNS_DIR)/udns_rr_txt.c $(UDNS_DIR)/udns_bl.c
+mod_enum_la_SOURCES += $(UDNS_DIR)/udns_rr_srv.c $(UDNS_DIR)/udns_rr_naptr.c $(UDNS_DIR)/udns_codes.c $(UDNS_DIR)/udns_resolver.c
+mod_enum_la_CFLAGS   = $(AM_CFLAGS)
+mod_enum_la_LIBADD   = $(switch_builddir)/libfreeswitch.la
+mod_enum_la_LDFLAGS  = -avoid-version -module -no-undefined