comparison configure @ 30254:00300a5f2638

Add very experimetal support for the Sun C compiler. To actually work, all "packed" attributes have to be replaced by equivalent pragmas and make DEPS=no must be used to compile.
author reimar
date Tue, 12 Jan 2010 21:16:01 +0000
parents 0fe4119d6115
children 5c3dacc19ab8
comparison
equal deleted inserted replaced
30253:0fe4119d6115 30254:00300a5f2638
1565 cc_fail=yes 1565 cc_fail=yes
1566 ;; 1566 ;;
1567 esac 1567 esac
1568 echores "$cc_version" 1568 echores "$cc_version"
1569 else 1569 else
1570 for _cc in "$_cc" cc gcc ; do 1570 for _cc in "$_cc" gcc cc ; do
1571 cc_name_tmp=$($_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1) 1571 cc_name_tmp=$($_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1)
1572 if test "$cc_name_tmp" = "gcc"; then 1572 if test "$cc_name_tmp" = "gcc"; then
1573 cc_name=$cc_name_tmp 1573 cc_name=$cc_name_tmp
1574 echocheck "$_cc version" 1574 echocheck "$_cc version"
1575 cc_vendor=gnu 1575 cc_vendor=gnu
1584 _cc_mini=$(echo $cc_version | cut -d '.' -f 3) 1584 _cc_mini=$(echo $cc_version | cut -d '.' -f 3)
1585 ;; 1585 ;;
1586 esac 1586 esac
1587 echores "$cc_version" 1587 echores "$cc_version"
1588 break 1588 break
1589 fi
1590 cc_name_tmp=$($_cc -V 2>&1 | head -n 1 | cut -d ' ' -f 2,3)
1591 if test "$cc_name_tmp" = "Sun C"; then
1592 echocheck "$_cc version"
1593 cc_vendor=sun
1594 cc_version=$($_cc -V 2>&1 | head -n 1 | cut -d ' ' -f 4)
1595 _res_comment="experimental support only"
1596 echores "Sun C $cc_version"
1597 break
1589 fi 1598 fi
1590 done 1599 done
1591 fi # icc 1600 fi # icc
1592 test "$cc_fail" = yes && die "unsupported compiler version" 1601 test "$cc_fail" = yes && die "unsupported compiler version"
1593 1602
2455 CFLAGS="-W -Wall -O2 $_march $_mcpu $_pipe $_debug $_profile" 2464 CFLAGS="-W -Wall -O2 $_march $_mcpu $_pipe $_debug $_profile"
2456 _install_strip= 2465 _install_strip=
2457 elif test -z "$CFLAGS" ; then 2466 elif test -z "$CFLAGS" ; then
2458 if test "$cc_vendor" = "intel" ; then 2467 if test "$cc_vendor" = "intel" ; then
2459 CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144" 2468 CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144"
2469 elif test "$cc_vendor" = "sun" ; then
2470 CFLAGS="-O2 $_march $_mcpu $_pipe -xc99 -xregs=frameptr"
2460 elif test "$cc_vendor" != "gnu" ; then 2471 elif test "$cc_vendor" != "gnu" ; then
2461 CFLAGS="-O2 $_march $_mcpu $_pipe" 2472 CFLAGS="-O2 $_march $_mcpu $_pipe"
2462 else 2473 else
2463 CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer" 2474 CFLAGS="-Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer"
2464 extra_ldflags="$extra_ldflags -ffast-math" 2475 extra_ldflags="$extra_ldflags -ffast-math"