From 1578712f5d3866b0e2fd4254608dd23258dc71e3 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 5 Feb 2009 20:44:13 +0000 Subject: [PATCH] add libpri mod configure stuff git-svn-id: http://svn.openzap.org/svn/openzap/trunk@650 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/Makefile.am | 9 ++++++++- libs/freetdm/configure.ac | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/libs/freetdm/Makefile.am b/libs/freetdm/Makefile.am index 35beef1053..dba1a1e187 100644 --- a/libs/freetdm/Makefile.am +++ b/libs/freetdm/Makefile.am @@ -130,7 +130,7 @@ install-data-local: @[ -f "$(DESTDIR)$(PREFIX)/conf/openzap.conf" ] || ( cp conf/*.conf $(DESTDIR)$(PREFIX)/conf) @echo OpenZAP Installed -mod_LTLIBRARIES = ozmod_zt.la ozmod_skel.la ozmod_wanpipe.la ozmod_isdn.la ozmod_analog.la ozmod_analog_em.la ozmod_ss7_boost.la +mod_LTLIBRARIES = ozmod_zt.la ozmod_skel.la ozmod_wanpipe.la ozmod_isdn.la ozmod_analog.la ozmod_analog_em.la ozmod_ss7_boost.la #ozmod_libpri.la ozmod_zt_la_SOURCES = $(SRC)/ozmod/ozmod_zt/ozmod_zt.c ozmod_zt_la_CFLAGS = $(AM_CFLAGS) $(MY_CFLAGS) ozmod_zt_la_LDFLAGS = -module @@ -191,3 +191,10 @@ ozmod_ss7_boost_la_SOURCES = $(SRC)/ozmod/ozmod_ss7_boost/ss7_boost_client.c $(S ozmod_ss7_boost_la_CFLAGS = $(AM_CFLAGS) $(MY_CFLAGS) ozmod_ss7_boost_la_LDFLAGS = -module ozmod_ss7_boost_la_LIBADD = $(MYLIB) + +if LIBPRI +#ozmod_libpri_la_SOURCES = $(SRC)/ozmod/ozmod_libpri/ozmod_libpri.c +#ozmod_libpri_la_CFLAGS = $(AM_CFLAGS) $(MY_CFLAGS) +#ozmod_libpri_la_LDFLAGS = -module -lpri +#ozmod_libpri_la_LIBADD = $(MYLIB) +endif diff --git a/libs/freetdm/configure.ac b/libs/freetdm/configure.ac index 501896a239..222a1d309d 100644 --- a/libs/freetdm/configure.ac +++ b/libs/freetdm/configure.ac @@ -149,6 +149,14 @@ AC_ARG_WITH([modinstdir], AC_SUBST(modinstdir) + +# libpri? +AC_ARG_WITH([libpri], + [AS_HELP_STRING([--with-libpri], [Install ozmod_libpri])], [enable_libpri="yes"], [enable_libpri="no"]) +AC_SUBST(enable_libpri) + +AM_CONDITIONAL([LIBPRI],[test "${enable_libpri}" = "yes"]) + COMP_VENDOR_CFLAGS="$COMP_VENDOR_CFLAGS" AC_SUBST(COMP_VENDOR_CFLAGS) AC_CONFIG_FILES([Makefile