Mercurial > hg > xemacs-beta
comparison configure.in @ 1756:b5db5c9230b1
[xemacs-hg @ 2003-10-16 19:44:34 by james]
Support icc, the Intel compiler.
author | james |
---|---|
date | Thu, 16 Oct 2003 19:44:37 +0000 |
parents | cf42e3b47b41 |
children | 6c853dd06f0d |
comparison
equal
deleted
inserted
replaced
1755:e2e5b8d4abd5 | 1756:b5db5c9230b1 |
---|---|
1780 return 11; | 1780 return 11; |
1781 #elif defined __DECC | 1781 #elif defined __DECC |
1782 return 12; | 1782 return 12; |
1783 #elif defined __USLC__ && defined __SCO_VERSION__ | 1783 #elif defined __USLC__ && defined __SCO_VERSION__ |
1784 return 13; | 1784 return 13; |
1785 #elif defined __INTEL_COMPILER | |
1786 return 14; | |
1785 #else | 1787 #else |
1786 return 0; | 1788 return 0; |
1787 #endif | 1789 #endif |
1788 }], [], | 1790 }], [], |
1789 [case "$conftest_rc" in | 1791 [case "$conftest_rc" in |
1790 11) echo "You appear to be using the SunPro C compiler."; __SUNPRO_C=yes ;; | 1792 11) echo "You appear to be using the SunPro C compiler." ; __SUNPRO_C=yes ;; |
1791 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;; | 1793 12) echo "You appear to be using the DEC C compiler." ; __DECC=yes ;; |
1792 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;; | 1794 13) echo "You appear to be using the SCO C compiler." ; __USLC__=yes ;; |
1795 14) echo "You appear to be using the Intel C++ compiler."; __ICC=yes ;; | |
1793 esac]) | 1796 esac]) |
1794 | 1797 |
1795 | 1798 |
1796 dnl case "$canonical" in | 1799 dnl case "$canonical" in |
1797 dnl *-sun-sunos* ) test "$CPP" = "acc -E" && CPP="acc -E -Xs" ;; | 1800 dnl *-sun-sunos* ) test "$CPP" = "acc -E" && CPP="acc -E -Xs" ;; |
2004 esac | 2007 esac |
2005 elif test "$__DECC" = "yes"; then | 2008 elif test "$__DECC" = "yes"; then |
2006 CFLAGS="-O3" | 2009 CFLAGS="-O3" |
2007 elif test "$CC" = "xlc"; then | 2010 elif test "$CC" = "xlc"; then |
2008 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000" | 2011 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000" |
2012 elif test "$__ICC" = "yes"; then | |
2013 CFLAGS="-g -O3 -Ob2" | |
2009 dnl ### Add optimal CFLAGS support for other compilers HERE! | 2014 dnl ### Add optimal CFLAGS support for other compilers HERE! |
2010 else | 2015 else |
2011 CFLAGS="-O" ;dnl The only POSIX-approved flag | 2016 CFLAGS="-O" ;dnl The only POSIX-approved flag |
2012 fi | 2017 fi |
2013 fi | 2018 fi |
2047 case "$opsys" in | 2052 case "$opsys" in |
2048 sol2 ) cflags_warning="-v" ;; | 2053 sol2 ) cflags_warning="-v" ;; |
2049 esac | 2054 esac |
2050 elif test "$CC" = "xlc"; then | 2055 elif test "$CC" = "xlc"; then |
2051 cflags_warning="-qinfo" | 2056 cflags_warning="-qinfo" |
2057 elif test "$__ICC" = "yes"; then | |
2058 cflags_warning="-Wall -w1" | |
2052 dnl ### Add optimal cflags_warning support for other compilers HERE! | 2059 dnl ### Add optimal cflags_warning support for other compilers HERE! |
2053 fi | 2060 fi |
2054 fi | 2061 fi |
2055 | 2062 |
2056 dnl Now combine all C flags. Put the warning flags first so that | 2063 dnl Now combine all C flags. Put the warning flags first so that |