From 2068f13bc42cf3a47374aa2765f82724a5782028 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Mon, 24 Oct 2011 09:28:13 +0000 Subject: Re #1395: Backport of PJSIP 1.x branch into PJSIP 2.0 trunk * Backport of r3557:r3832 TODO: ticket #1268 (Option for automatic/manual sending of RTCP SDES/BYE for the stream) for video stream. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3841 74dad513-b988-da41-8d7b-12977e46ad98 --- configure-iphone | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) (limited to 'configure-iphone') diff --git a/configure-iphone b/configure-iphone index 6f7a281f..29dfcbc2 100755 --- a/configure-iphone +++ b/configure-iphone @@ -71,20 +71,29 @@ fi # full path as it's not normally in user's PATH if test "${CC}" = ""; then - for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do - archname=`basename ${archpath}` - for gccver in `ls ${archpath}`; do - gccpath="${DEVPATH}/usr/bin/${archname}-gcc-${gccver}" - if test -e ${gccpath}; then - export CC="${gccpath}" -# break - fi - done - if test ! "${CC}" = ""; then - echo "$F: CC is not specified, choosing ${CC}" - break + # Try to use llvm-gcc if available + gccpath="${DEVPATH}/usr/bin/llvm-gcc" + if test -e ${gccpath}; then + export CC="${gccpath}" + + if test "${ARCH}" = ""; then + export ARCH="-arch armv7" + echo "$F: ARCH is not specified, choosing ${ARCH}" fi - done + else + for archpath in `ls -d ${SDKPATH}/usr/lib/gcc/arm-apple-darwin*`; do + archname=`basename ${archpath}` + for gccver in `ls ${archpath}`; do + gccpath="${DEVPATH}/usr/bin/${archname}-gcc-${gccver}" + if test -e ${gccpath}; then + export CC="${gccpath}" + fi + done + done + fi + if test ! "${CC}" = ""; then + echo "$F: CC is not specified, choosing ${CC}" + fi fi if test "${CC}" = ""; then -- cgit v1.2.3