Ignore:
Timestamp:
Mar 18, 2011 8:33:29 AM (13 years ago)
Author:
bennylp
Message:

Intel IPP version 7 support on Linux. This closes #1200

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r3428 r3464  
    800800 
    801801        IPP_CFLAGS="-I$IPPROOT/include" 
    802         IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" 
    803  
     802        IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" 
     803 
     804# 
    804805        # Some differences between Mac OS X and Linux 
    805806        case $target in  
     
    808809                ;; 
    809810            *) 
    810                 IPP_LDFLAGS="-L$IPPROOT/sharedlib" 
    811                 IPP_LIBS="$IPP_LIBS -lguide" 
     811                # Find out where the libraries live. 
     812                IPP7_ARCH="" 
     813                if test -d $IPPROOT/lib/intel64; then 
     814                   IPP7_ARCH="intel64" 
     815                elif test -d $IPPROOT/lib/ia32; then 
     816                   IPP7_ARCH="ia32" 
     817                elif test -d $IPPROOT/lib/mic; then 
     818                   IPP7_ARCH="mic" 
     819                fi 
     820 
     821                if test -z "$IPP7_ARCH"; then 
     822                   # IPP6 (and possibly below) 
     823                   IPP_LDFLAGS="-L$IPPROOT/sharedlib" 
     824                   IPP_LIBS="$IPP_LIBS  -lippsr${IPP_SUFFIX} -lguide" 
     825                else 
     826                   # IPP7 
     827                   if ! test -d $IPPROOT/../compiler; then 
     828                        AC_MSG_ERROR([Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly]) 
     829                   fi 
     830                   IPP_CFLAGS="$IPP_CFLAGS" 
     831                   IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH" 
     832                   IPP_LIBS="$IPP_LIBS -liomp5" 
     833                fi 
    812834                ;; 
    813835        esac 
Note: See TracChangeset for help on using the changeset viewer.