2992 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2993 |
else |
else |
2994 |
|
|
2995 |
saved_CPPFLAGS=$CPPFLAGS |
saved_CPPFLAGS="$CPPFLAGS" |
2996 |
CPPFLAGS="-Wundef" |
CPPFLAGS="-Wundef" |
2997 |
cat >conftest.$ac_ext <<_ACEOF |
cat >conftest.$ac_ext <<_ACEOF |
2998 |
#line $LINENO "configure" |
#line $LINENO "configure" |
3031 |
undef_flag=no |
undef_flag=no |
3032 |
fi |
fi |
3033 |
rm -f conftest.$ac_objext conftest.$ac_ext |
rm -f conftest.$ac_objext conftest.$ac_ext |
3034 |
CPPFLAGS=$saved_CPPFLAGS |
CPPFLAGS="$saved_CPPFLAGS" |
3035 |
|
|
3036 |
fi |
fi |
3037 |
echo "$as_me:$LINENO: result: $undef_flag" >&5 |
echo "$as_me:$LINENO: result: $undef_flag" >&5 |
3038 |
echo "${ECHO_T}$undef_flag" >&6 |
echo "${ECHO_T}$undef_flag" >&6 |
3039 |
|
|
3040 |
|
# The options `-falign-*' are supported by gcc 3.0 or later. |
3041 |
|
# Probably it is sufficient to only check for -falign-loops. |
3042 |
|
echo "$as_me:$LINENO: checking whether -falign-loops works" >&5 |
3043 |
|
echo $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6 |
3044 |
|
if test "${falign_loop_flag+set}" = set; then |
3045 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3046 |
|
else |
3047 |
|
|
3048 |
|
saved_CPPFLAGS="$CPPFLAGS" |
3049 |
|
CPPFLAGS="-falign-loops=1" |
3050 |
|
cat >conftest.$ac_ext <<_ACEOF |
3051 |
|
#line $LINENO "configure" |
3052 |
|
#include "confdefs.h" |
3053 |
|
|
3054 |
|
#ifdef F77_DUMMY_MAIN |
3055 |
|
# ifdef __cplusplus |
3056 |
|
extern "C" |
3057 |
|
# endif |
3058 |
|
int F77_DUMMY_MAIN() { return 1; } |
3059 |
|
#endif |
3060 |
|
int |
3061 |
|
main () |
3062 |
|
{ |
3063 |
|
|
3064 |
|
; |
3065 |
|
return 0; |
3066 |
|
} |
3067 |
|
_ACEOF |
3068 |
|
rm -f conftest.$ac_objext |
3069 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3070 |
|
(eval $ac_compile) 2>&5 |
3071 |
|
ac_status=$? |
3072 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3073 |
|
(exit $ac_status); } && |
3074 |
|
{ ac_try='test -s conftest.$ac_objext' |
3075 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3076 |
|
(eval $ac_try) 2>&5 |
3077 |
|
ac_status=$? |
3078 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3079 |
|
(exit $ac_status); }; }; then |
3080 |
|
falign_loop_flag=yes |
3081 |
|
else |
3082 |
|
echo "$as_me: failed program was:" >&5 |
3083 |
|
cat conftest.$ac_ext >&5 |
3084 |
|
falign_loop_flag=no |
3085 |
|
fi |
3086 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
3087 |
|
CPPFLAGS="$saved_CPPFLAGS" |
3088 |
|
|
3089 |
|
fi |
3090 |
|
echo "$as_me:$LINENO: result: $falign_loop_flag" >&5 |
3091 |
|
echo "${ECHO_T}$falign_loop_flag" >&6 |
3092 |
|
|
3093 |
# Force no alignment to save space. |
# Force no alignment to save space. |
3094 |
CPPFLAGS="$CPPFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1" |
if test "x$falign_loop_flag" = xyes; then |
3095 |
|
CPPFLAGS="$CPPFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1" |
3096 |
|
else |
3097 |
|
CPPFLAGS="$CPPFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1" |
3098 |
|
fi |
3099 |
|
|
3100 |
if test "x$undef_flag" = xyes; then |
if test "x$undef_flag" = xyes; then |
3101 |
CPPFLAGS="$CPPFLAGS -Wundef" |
CPPFLAGS="$CPPFLAGS -Wundef" |