|
2715 | 2715 |
|
2716 | 2716 | # The Intel compiler on Linux supports most gcc options, but not
|
2717 | 2717 | # all of them, so only add these options if we are really using
|
2718 |
| -# gcc. Intel compiler has a bug in checking for division by NAN |
2719 |
| -# (NaN == 0), -mp1 fixes it, so someday we might way to add it. |
| 2718 | +# gcc. |
2720 | 2719 |
|
2721 | 2720 | if test "$GCC" = yes; then
|
2722 | 2721 |
|
@@ -2934,6 +2933,61 @@ echo "${ECHO_T}no" >&6
|
2934 | 2933 | fi
|
2935 | 2934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
2936 | 2935 |
|
| 2936 | +elif test ${CC} = "xlc"; then |
| 2937 | + # AIX xlc has to have strict aliasing turned off too |
| 2938 | + echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5 |
| 2939 | +echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6 |
| 2940 | +pgac_save_CFLAGS=$CFLAGS |
| 2941 | +CFLAGS="$pgac_save_CFLAGS -qnoansialias" |
| 2942 | +cat >conftest.$ac_ext <<_ACEOF |
| 2943 | +/* confdefs.h. */ |
| 2944 | +_ACEOF |
| 2945 | +cat confdefs.h >>conftest.$ac_ext |
| 2946 | +cat >>conftest.$ac_ext <<_ACEOF |
| 2947 | +/* end confdefs.h. */ |
| 2948 | + |
| 2949 | +int |
| 2950 | +main () |
| 2951 | +{ |
| 2952 | + |
| 2953 | + ; |
| 2954 | + return 0; |
| 2955 | +} |
| 2956 | +_ACEOF |
| 2957 | +rm -f conftest.$ac_objext |
| 2958 | +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2959 | + (eval $ac_compile) 2>conftest.er1 |
| 2960 | + ac_status=$? |
| 2961 | + grep -v '^ *+' conftest.er1 >conftest.err |
| 2962 | + rm -f conftest.er1 |
| 2963 | + cat conftest.err >&5 |
| 2964 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2965 | + (exit $ac_status); } && |
| 2966 | + { ac_try='test -z "$ac_c_werror_flag" |
| 2967 | + || test ! -s conftest.err' |
| 2968 | + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2969 | + (eval $ac_try) 2>&5 |
| 2970 | + ac_status=$? |
| 2971 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2972 | + (exit $ac_status); }; } && |
| 2973 | + { ac_try='test -s conftest.$ac_objext' |
| 2974 | + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2975 | + (eval $ac_try) 2>&5 |
| 2976 | + ac_status=$? |
| 2977 | + echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2978 | + (exit $ac_status); }; }; then |
| 2979 | + echo "$as_me:$LINENO: result: yes" >&5 |
| 2980 | +echo "${ECHO_T}yes" >&6 |
| 2981 | +else |
| 2982 | + echo "$as_me: failed program was:" >&5 |
| 2983 | +sed 's/^/| /' conftest.$ac_ext >&5 |
| 2984 | + |
| 2985 | +CFLAGS="$pgac_save_CFLAGS" |
| 2986 | + echo "$as_me:$LINENO: result: no" >&5 |
| 2987 | +echo "${ECHO_T}no" >&6 |
| 2988 | +fi |
| 2989 | +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2990 | + |
2937 | 2991 | fi
|
2938 | 2992 |
|
2939 | 2993 | # supply -g if --enable-debug
|
|
0 commit comments