don't blow up if multiple copies of the headers are found
authorKevin P. Fleming <kpfleming@digium.com>
Sat, 11 Feb 2006 20:48:48 +0000 (20:48 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sat, 11 Feb 2006 20:48:48 +0000 (20:48 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9628 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/Makefile

index f2a48be..23e6ba1 100644 (file)
@@ -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=