summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2011-03-18 08:33:29 +0000
committerBenny Prijono <bennylp@teluu.com>2011-03-18 08:33:29 +0000
commit0bd22c0e56690372a559b82a6e3d63500aa80845 (patch)
treeab6f0e9d92e06e14af12b6df6e082eb90ffbdb11 /aconfigure.ac
parenta68e0257ef0b14151b5cba3a44ce043586df96cd (diff)
Intel IPP version 7 support on Linux. This closes #1200
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3464 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac28
1 files changed, 25 insertions, 3 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 6cf9614b..7c7db55f 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -799,16 +799,38 @@ if test "x$enable_ipp" != "xno"; then
SAVED_LIBS="$LIBS"
IPP_CFLAGS="-I$IPPROOT/include"
- IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
+ IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${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"
+ # Find out where the libraries live.
+ IPP7_ARCH=""
+ if test -d $IPPROOT/lib/intel64; then
+ IPP7_ARCH="intel64"
+ elif test -d $IPPROOT/lib/ia32; then
+ IPP7_ARCH="ia32"
+ elif test -d $IPPROOT/lib/mic; then
+ IPP7_ARCH="mic"
+ fi
+
+ if test -z "$IPP7_ARCH"; then
+ # IPP6 (and possibly below)
+ IPP_LDFLAGS="-L$IPPROOT/sharedlib"
+ IPP_LIBS="$IPP_LIBS -lippsr${IPP_SUFFIX} -lguide"
+ else
+ # IPP7
+ if ! test -d $IPPROOT/../compiler; then
+ AC_MSG_ERROR([Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly])
+ fi
+ IPP_CFLAGS="$IPP_CFLAGS"
+ IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
+ IPP_LIBS="$IPP_LIBS -liomp5"
+ fi
;;
esac