From df53d8b122ceb11094c3b8f00f327746d81166f9 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Fri, 12 Feb 2010 14:12:41 +0000 Subject: More ticket #1009: Initial support for IPP on Mac git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3099 74dad513-b988-da41-8d7b-12977e46ad98 --- aconfigure.ac | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'aconfigure.ac') diff --git a/aconfigure.ac b/aconfigure.ac index 412aea3f..76d73fb3 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -730,9 +730,21 @@ if test "x$enable_ipp" != "xno"; then SAVED_LIBS="$LIBS" IPP_CFLAGS="-I$IPPROOT/include" - IPP_LDFLAGS="-L$IPPROOT/sharedlib" - IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX} -lguide" + IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" + + # Some differences between Mac OS X and Linux + case $target in + *darwin* ) + IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib" + ;; + *) + IPP_LDFLAGS="-L$IPPROOT/sharedlib" + IPP_LIBS="$IPP_LIBS -lguide" + ;; + esac + #IPP_LDFLAGS="-L$IPPROOT/sharedlib" + #Static: #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" CFLAGS="$CFLAGS $IPP_CFLAGS" @@ -786,7 +798,15 @@ if test "x$enable_ipp" != "xno"; then IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1` elif test -d $IPPSAMPLES/speech-codecs/_bin; then IPPVER=6 - IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` + if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then + # gcc compiler + IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` + elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then + # icc compiler + IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` + else + AC_MSG_FAILURE([Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?]) + fi else AC_MSG_FAILURE([unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?]) fi -- cgit v1.2.3