[asterisk-users] asterisk 1.2 branch revision 53132 failed to
compile
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Fri Mar 16 10:00:42 MST 2007
On Fri, Mar 16, 2007 at 11:28:43AM -0400, Sean Bright wrote:
> Whats the non-workaround solution? Is there one?
I haven't really tested, but it should be along the lines of:
Index: codecs/Makefile
===================================================================
--- codecs/Makefile (revision 58959)
+++ codecs/Makefile (working copy)
@@ -10,7 +10,9 @@
# This program is free software, distributed under the terms of
# the GNU General Public License
#
+zaptel_h := $(first $(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h $(CROSS_COMPILE_TARGET)/usr/pkg/include/zaptel.h))
+
ifeq (${OSARCH},CYGWIN)
CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols
CYGSOLIB=-L.. -L. -lasterisk.dll
@@ -29,7 +31,7 @@
endif
ifndef WITHOUT_ZAPTEL
-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/linux/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/zaptel.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/pkg/include/zaptel.h),)
+ifneq (,$(shell grep ZT_TRANSCODE_OP $(zaptel_h) 2>/dev/null))
ifeq (${OSARCH},NetBSD)
SOLINK+=-L$(CROSS_COMPILE_TARGET)/usr/pkg/lib
endif
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir at jabber.org
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list