From 72ecf194838e1b70cef430cd6db887bbc214130d Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Wed, 12 Nov 2003 00:45:36 +0100 Subject: Regenerate for: * acinclude.m4 (GMP_PROG_CC_WORKS): Add case provoking AIX power2 assembler, test code by Torbjorn. --- configure | 184 +++++++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 157 insertions(+), 27 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 531342c99..3c5c3ecc6 100755 --- a/configure +++ b/configure @@ -4143,6 +4143,71 @@ fi fi +if test "$gmp_prog_cc_works" = yes; then + cat >conftest.c <= 0 ? x : -x); + return a * fp[0]; +} + +int main () { return 0; } +EOF + echo "Test compile: abs int -> double conversion" >&5 + gmp_compile="$cc $cflags $cppflags conftest.c >&5" + if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5 + (eval $gmp_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + cc_works_part=yes + if test "$cross_compiling" = no; then + if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then :; + else + cc_works_part=norun + fi + fi + else + cc_works_part=no + fi + if test "$cc_works_part" != yes; then + echo "failed program was:" >&5 + cat conftest.c >&5 + fi + rm -f conftest* a.out b.out a.exe a_out.exe + case $cc_works_part in + yes) + + ;; + no) + gmp_prog_cc_works="no, abs int -> double conversion" + ;; + norun) + gmp_prog_cc_works="no, abs int -> double conversion, program does not run" + ;; + esac +fi + + + echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5 echo "${ECHO_T}$gmp_prog_cc_works" >&6 case $gmp_prog_cc_works in @@ -5091,6 +5156,71 @@ fi fi +if test "$gmp_prog_cc_works" = yes; then + cat >conftest.c <= 0 ? x : -x); + return a * fp[0]; +} + +int main () { return 0; } +EOF + echo "Test compile: abs int -> double conversion" >&5 + gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" + if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5 + (eval $gmp_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + cc_works_part=yes + if test "$cross_compiling" = no; then + if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then :; + else + cc_works_part=norun + fi + fi + else + cc_works_part=no + fi + if test "$cc_works_part" != yes; then + echo "failed program was:" >&5 + cat conftest.c >&5 + fi + rm -f conftest* a.out b.out a.exe a_out.exe + case $cc_works_part in + yes) + + ;; + no) + gmp_prog_cc_works="no, abs int -> double conversion" + ;; + norun) + gmp_prog_cc_works="no, abs int -> double conversion, program does not run" + ;; + esac +fi + + + echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5 echo "${ECHO_T}$gmp_prog_cc_works" >&6 case $gmp_prog_cc_works in @@ -8982,7 +9112,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 8985 "configure"' > conftest.$ac_ext + echo '#line 9115 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -10402,11 +10532,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10405: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10535: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:10409: \$? = $ac_status" >&5 + echo "$as_me:10539: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -10634,11 +10764,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10637: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10767: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:10641: \$? = $ac_status" >&5 + echo "$as_me:10771: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -10701,11 +10831,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:10704: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10834: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:10708: \$? = $ac_status" >&5 + echo "$as_me:10838: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -12713,7 +12843,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:15076: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:14950: \$? = $ac_status" >&5 + echo "$as_me:15080: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -15010,11 +15140,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:15013: $lt_compile\"" >&5) + (eval echo "\"\$as_me:15143: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:15017: \$? = $ac_status" >&5 + echo "$as_me:15147: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -16253,7 +16383,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:17306: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:17180: \$? = $ac_status" >&5 + echo "$as_me:17310: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -17240,11 +17370,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17243: $lt_compile\"" >&5) + (eval echo "\"\$as_me:17373: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:17247: \$? = $ac_status" >&5 + echo "$as_me:17377: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -19180,11 +19310,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19183: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19313: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:19187: \$? = $ac_status" >&5 + echo "$as_me:19317: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -19412,11 +19542,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19415: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19545: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:19419: \$? = $ac_status" >&5 + echo "$as_me:19549: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings @@ -19479,11 +19609,11 @@ else -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19482: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19612: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:19486: \$? = $ac_status" >&5 + echo "$as_me:19616: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -21491,7 +21621,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <