diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-08-02 04:24:36 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-08-02 04:24:36 +0000 |
commit | 28d141a2bbff34a758b675cc3cfc50381070f073 (patch) | |
tree | 7646ec644c1cc972c9d5e0c0f0a62190e15f6f61 /configure | |
parent | b0f5574d7abda77fe5a5eed67b7f78ec6bf574cb (diff) | |
download | mpv-28d141a2bbff34a758b675cc3cfc50381070f073.tar.bz2 mpv-28d141a2bbff34a758b675cc3cfc50381070f073.tar.xz |
Preliminary Support for building MPlayer with Intel C++ compiler.
Still needs some work to use the proper optimization parameters.
I haven't yet fixed the loader/dmo/dshow code so compile those dirs using
make -C loader CC=gcc [...] for the meantime.
To try use CC=icc ./configure with ICC 8.0 or later.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12930 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 31 |
1 files changed, 29 insertions, 2 deletions
@@ -511,8 +511,34 @@ fi # Checking CC version... if test "$_skip_cc_check" != yes ; then - for _cc in "$_cc" gcc gcc-3.3 gcc-3.2 gcc-3.1 gcc3 gcc-3.0 cc ; do + # Intel C++ Compilers (no autoselect, use CC=/some/binary ./configure) + if test "`basename $_cc`" = "icc" || test "`basename $_cc`" = "ecc"; then echocheck "$_cc version" + cc_vendor=intel + cc_name=`( $_cc -V ) 2>&1 | head -1 | cut -d ',' -f 1` + cc_version=`( $_cc -V ) 2>&1 | head -1 | cut -d ',' -f 2 | cut -d ' ' -f 3` + _cc_major=`echo $cc_version | cut -d '.' -f 1` + _cc_minor=`echo $cc_version | cut -d '.' -f 2` + # TODO verify older icc/ecc compatibility + case $cc_version in + '') + cc_version="v. ?.??, bad" + cc_verc_fail=yes + ;; + 8.0) + cc_version="$cc_version, ok" + cc_verc_fail=no + ;; + *) + cc_version="$cc_version, bad" + cc_verc_fail=yes + ;; + esac + echores "$cc_version" + else + for _cc in "$_cc" gcc gcc-3.4 gcc-3.3 gcc-3.2 gcc-3.1 gcc3 gcc-3.0 cc ; do + echocheck "$_cc version" + cc_vendor=gnu cc_name=`( $_cc -v ) 2>&1 | tail -1 | cut -d ' ' -f 1` cc_version=`( $_cc -dumpversion ) 2>&1` if test "$?" -gt 0; then @@ -541,6 +567,7 @@ if test "$_skip_cc_check" != yes ; then echores "$cc_version" (test "$cc_verc_fail" = "no") && break done + fi # icc if test "$cc_verc_fail" = yes ; then cat <<EOF @@ -742,7 +769,7 @@ case "$host_arch" in # gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead - if [ "$_cc_major" -gt 3 ] || ( [ "$_cc_major" = 3 ] && [ "$_cc_minor" -ge 4 ]) ; then + if [ "$cc_vendor" = "gnu" ] && ([ "$_cc_major" -gt 3 ] || ( [ "$_cc_major" = 3 ] && [ "$_cc_minor" -ge 4 ])) ; then cpuopt=-mtune else cpuopt=-mcpu |