From: Kevin P. Fleming Date: Sat, 11 Feb 2006 20:48:48 +0000 (+0000) Subject: don't blow up if multiple copies of the headers are found X-Git-Tag: 1.4.0-beta1~2659 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80b1a195669f5107efc0ca0e3ac5de31ae62827f;p=thirdparty%2Fasterisk.git don't blow up if multiple copies of the headers are found git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9628 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/codecs/Makefile b/codecs/Makefile index f2a48bef3d..23e6ba1a49 100644 --- a/codecs/Makefile +++ b/codecs/Makefile @@ -33,7 +33,7 @@ else endif SPEEX_PATH:=/usr/local/include /usr/include /usr/include/speex /usr/local/include/speex -SPEEX_SYSTEM_HEADERS:=$(wildcard $(SPEEX_PATH:%=$(CROSS_COMPILE_TARGET)%/speex.h)) +SPEEX_SYSTEM_HEADERS:=$(firstword $(wildcard $(SPEEX_PATH:%=$(CROSS_COMPILE_TARGET)%/speex.h))) ifeq (${SPEEX_SYSTEM_HEADERS},) MODS:=$(filter-out codec_speex.so,$(MODS)) else @@ -48,7 +48,7 @@ else endif LIBGSM_PATH:=/usr/local/include /usr/include -LIBGSM_SYSTEM_HEADERS:=$(wildcard $(LIBGSM_PATH:%=$(CROSS_COMPILE_TARGET)%/gsm/gsm.h)) +LIBGSM_SYSTEM_HEADERS:=$(firstword $(wildcard $(LIBGSM_PATH:%=$(CROSS_COMPILE_TARGET)%/gsm/gsm.h))) ifneq ($(LIBGSM_SYSTEM_HEADERS),) LIBGSM=-lgsm LIBGSMT=