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 := $(firstword $(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