Mercurial > mplayer.hg
comparison configure @ 12929:e31bab90b91c
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.
author | atmos4 |
---|---|
date | Mon, 02 Aug 2004 04:24:36 +0000 |
parents | 2abd8e24eb69 |
children | d7e2549b377a |
comparison
equal
deleted
inserted
replaced
12928:bc760f3f129e | 12929:e31bab90b91c |
---|---|
509 _ldd="otool -L" | 509 _ldd="otool -L" |
510 fi | 510 fi |
511 | 511 |
512 # Checking CC version... | 512 # Checking CC version... |
513 if test "$_skip_cc_check" != yes ; then | 513 if test "$_skip_cc_check" != yes ; then |
514 for _cc in "$_cc" gcc gcc-3.3 gcc-3.2 gcc-3.1 gcc3 gcc-3.0 cc ; do | 514 # Intel C++ Compilers (no autoselect, use CC=/some/binary ./configure) |
515 if test "`basename $_cc`" = "icc" || test "`basename $_cc`" = "ecc"; then | |
515 echocheck "$_cc version" | 516 echocheck "$_cc version" |
517 cc_vendor=intel | |
518 cc_name=`( $_cc -V ) 2>&1 | head -1 | cut -d ',' -f 1` | |
519 cc_version=`( $_cc -V ) 2>&1 | head -1 | cut -d ',' -f 2 | cut -d ' ' -f 3` | |
520 _cc_major=`echo $cc_version | cut -d '.' -f 1` | |
521 _cc_minor=`echo $cc_version | cut -d '.' -f 2` | |
522 # TODO verify older icc/ecc compatibility | |
523 case $cc_version in | |
524 '') | |
525 cc_version="v. ?.??, bad" | |
526 cc_verc_fail=yes | |
527 ;; | |
528 8.0) | |
529 cc_version="$cc_version, ok" | |
530 cc_verc_fail=no | |
531 ;; | |
532 *) | |
533 cc_version="$cc_version, bad" | |
534 cc_verc_fail=yes | |
535 ;; | |
536 esac | |
537 echores "$cc_version" | |
538 else | |
539 for _cc in "$_cc" gcc gcc-3.4 gcc-3.3 gcc-3.2 gcc-3.1 gcc3 gcc-3.0 cc ; do | |
540 echocheck "$_cc version" | |
541 cc_vendor=gnu | |
516 cc_name=`( $_cc -v ) 2>&1 | tail -1 | cut -d ' ' -f 1` | 542 cc_name=`( $_cc -v ) 2>&1 | tail -1 | cut -d ' ' -f 1` |
517 cc_version=`( $_cc -dumpversion ) 2>&1` | 543 cc_version=`( $_cc -dumpversion ) 2>&1` |
518 if test "$?" -gt 0; then | 544 if test "$?" -gt 0; then |
519 cc_version="not found" | 545 cc_version="not found" |
520 fi | 546 fi |
539 ;; | 565 ;; |
540 esac | 566 esac |
541 echores "$cc_version" | 567 echores "$cc_version" |
542 (test "$cc_verc_fail" = "no") && break | 568 (test "$cc_verc_fail" = "no") && break |
543 done | 569 done |
570 fi # icc | |
544 if test "$cc_verc_fail" = yes ; then | 571 if test "$cc_verc_fail" = yes ; then |
545 cat <<EOF | 572 cat <<EOF |
546 | 573 |
547 *** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! *** | 574 *** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! *** |
548 | 575 |
740 # LGB: check -mcpu and -march swithing step by step with enabling | 767 # LGB: check -mcpu and -march swithing step by step with enabling |
741 # to fall back till 386. | 768 # to fall back till 386. |
742 | 769 |
743 # gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead | 770 # gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead |
744 | 771 |
745 if [ "$_cc_major" -gt 3 ] || ( [ "$_cc_major" = 3 ] && [ "$_cc_minor" -ge 4 ]) ; then | 772 if [ "$cc_vendor" = "gnu" ] && ([ "$_cc_major" -gt 3 ] || ( [ "$_cc_major" = 3 ] && [ "$_cc_minor" -ge 4 ])) ; then |
746 cpuopt=-mtune | 773 cpuopt=-mtune |
747 else | 774 else |
748 cpuopt=-mcpu | 775 cpuopt=-mcpu |
749 fi | 776 fi |
750 | 777 |