diff options
author | Linus Nordberg <linus@nordberg.se> | 2000-04-16 21:52:08 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2000-04-16 21:52:08 +0200 |
commit | c2fb29decedfa46b847096cb6910ee5101b41b4c (patch) | |
tree | e5aec280ccea15b84193f33b6f6a1392110a594b | |
parent | 786dc05a001f95284f1395dcf13432bafecc7a24 (diff) | |
download | gmp-c2fb29decedfa46b847096cb6910ee5101b41b4c.tar.gz |
Regenerate for:
(*-*-cygwin*): Select BSD_SYNTAX to avoid
.type/.size in PROLOGUE for ELF_SYNTAX. Override ALIGN definition
from x86/syntax.h.
(gmp_xoptcflags_${CC}): New set of variables, indicating
``exclusive optional cflags''.
(most sparcs): Use gmp_xoptcflags instead of gmp_optcflags to
ensure that we pass CPU type to older gcc.
(CFLAGS): CFLAGS on the command line was spoiled.
-rwxr-xr-x | configure | 310 |
1 files changed, 192 insertions, 118 deletions
@@ -1146,38 +1146,37 @@ case "$target" in ultrasparc*-*-solaris2.[7-9] | sparcv9-*-solaris2.[7-9]) os_64bit=yes gmp_cflags_gcc="$gmp_cflags_gcc -Wa,-xarch=v8plus" - gmp_optcflags_gcc="-mcpu=v9" - gmp_cflags64_gcc="$gmp_cflags_gcc -Wa,-xarch=v9" - gmp_optcflags64_gcc="-mcpu=v9" + gmp_xoptcflags_gcc="-mcpu=v9 -mcpu=v8 -mv8" + gmp_cflags64_gcc="$gmp_cflags_gcc -Wa,-xarch=v9 -mcpu=v9" gmp_cflags_cc="-xtarget=native -xarch=v8 -xO4" gmp_cflags64_cc="-xtarget=native -xarch=v9 -xO4" ;; ultrasparc*-*-* | sparcv9-*-*) gmp_cflags_gcc="$gmp_cflags_gcc -Wa,-xarch=v8plus" - gmp_optcflags_gcc="-mcpu=v9" + gmp_xoptcflags_gcc="-mcpu=v9 -mcpu=v8 -mv8" gmp_cflags_cc="-xtarget=native -xarch=v8 -xO4" ;; sparcv8*-*-solaris2.* | microsparc*-*-solaris2.*) gmp_cflags_gcc="$gmp_cflags_gcc" - gmp_optcflags_gcc="-mcpu=v8" + gmp_xoptcflags_gcc="-mcpu=v8 -mv8" gmp_cflags_cc="-xtarget=native -xarch=v8 -xO4" ;; sparcv8*-*-* | microsparc*-*-*) # SunOS, Linux, *BSD cclist="gcc acc cc" gmp_cflags_gcc="$gmp_cflags_gcc" - gmp_optcflags_gcc="-mcpu=v8" + gmp_xoptcflags_gcc="-mcpu=v8 -mv8" gmp_cflags_acc="-g -O2 -cg92" gmp_cflags_cc="-O2" # FIXME: Flag for v8? ;; supersparc*-*-solaris2.*) gmp_cflags_gcc="$gmp_cflags_gcc -DSUPERSPARC" - gmp_optcflags_gcc="-mcpu=v8" + gmp_xoptcflags_gcc="-mcpu=v8 -mv8" gmp_cflags_cc="-xtarget=native -xarch=v8 -xO4 -DSUPERSPARC" ;; supersparc*-*-*) # SunOS, Linux, *BSD cclist="gcc acc cc" gmp_cflags_gcc="$gmp_cflags_gcc -DSUPERSPARC" - gmp_optcflags_gcc="-mcpu=v8" + gmp_xoptcflags_gcc="-mcpu=v8 -mv8" gmp_cflags_acc="-g -O2 -cg92 -DSUPERSPARC" gmp_cflags_cc="-O2 -DSUPERSPARC" # FIXME: Flag for v8? ;; @@ -1273,6 +1272,9 @@ case "$target" in # removed -march=pentiumpro, see i686 above for details esac +# Save CFLAGS given on command line. +gmp_user_CFLAGS="$CFLAGS" + if test -z "$CC"; then # Find compiler. @@ -1295,7 +1297,7 @@ for c in $gmp_cc_list; do # Extract the first word of "${ac_tool_prefix}$c", so it can be a program name with args. set dummy ${ac_tool_prefix}$c; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:1299: checking for $ac_word" 1>&5 +echo "configure:1301: checking for $ac_word" 1>&5 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -1329,7 +1331,7 @@ if test -z "$ac_cv_prog_CC"; then # Extract the first word of "$c", so it can be a program name with args. set dummy $c; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:1333: checking for $ac_word" 1>&5 +echo "configure:1335: checking for $ac_word" 1>&5 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -1378,12 +1380,12 @@ CFLAGS="$c_flags" # Simple test for all targets. cat >conftest.$ac_ext <<EOF -#line 1382 "configure" +#line 1384 "configure" #include "confdefs.h" int main(){return(0);} EOF -if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then tmp_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1403,9 +1405,9 @@ if test "$tmp_works" = "yes"; then case "$target" in *-*-aix*) # Returning a funcptr. echo $ECHO_N "checking if the C compiler ($CC $CFLAGS) works (returning a function pointer)... $ECHO_C" 1>&6 -echo "configure:1407: checking if the C compiler ($CC $CFLAGS) works (returning a function pointer)" 1>&5 +echo "configure:1409: checking if the C compiler ($CC $CFLAGS) works (returning a function pointer)" 1>&5 cat >conftest.$ac_ext <<EOF -#line 1409 "configure" +#line 1411 "configure" #include "confdefs.h" int @@ -1416,7 +1418,7 @@ main () return 0; } EOF -if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* tmp_works=yes else @@ -1451,7 +1453,7 @@ fi gmp_tmp_CC_save="$CC" CC="$c" echo $ECHO_N "checking whether the C compiler ($CC) is 64-bit capable... $ECHO_C" 1>&6 -echo "configure:1455: checking whether the C compiler ($CC) is 64-bit capable" 1>&5 +echo "configure:1457: checking whether the C compiler ($CC) is 64-bit capable" 1>&5 gmp_tmp_CFLAGS_save="$CFLAGS" CFLAGS="$c_flags" @@ -1485,7 +1487,7 @@ echo "configure:1455: checking whether the C compiler ($CC) is 64-bit capable" 1 # Simply try to compile an empty main. If that succeeds return # true. cat >conftest.$ac_ext <<EOF -#line 1489 "configure" +#line 1491 "configure" #include "confdefs.h" int @@ -1496,7 +1498,7 @@ main () return 0; } EOF -if { (eval echo configure:1500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gmp_cv_cc_64bit=yes else @@ -1516,13 +1518,13 @@ rm -f conftest* gmp_cv_cc_64bit=no else cat >conftest.$ac_ext <<EOF -#line 1520 "configure" +#line 1522 "configure" #include "confdefs.h" int main() { return (sizeof (void *) != 8); } EOF -if { (eval echo configure:1526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then gmp_cv_cc_64bit=yes else @@ -1565,12 +1567,13 @@ CC="$CC32" fi # Try compiler flags that may work with only some compiler versions. + # gmp_optcflags: All or nothing. eval optcflags=\$gmp_optcflags_$CC if test -n "$optcflags"; then CFLAGS_save="$CFLAGS" CFLAGS="$CFLAGS $optcflags" echo $ECHO_N "checking whether $CC accepts $optcflags... $ECHO_C" 1>&6 -echo "configure:1574: checking whether $CC accepts $optcflags" 1>&5 +echo "configure:1577: checking whether $CC accepts $optcflags" 1>&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' @@ -1580,12 +1583,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat >conftest.$ac_ext <<EOF -#line 1584 "configure" +#line 1587 "configure" #include "confdefs.h" int main(){return(0);} EOF -if { (eval echo configure:1589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then optok=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1606,12 +1609,69 @@ rm -fr conftest* CFLAGS="$CFLAGS_save" fi fi + # gmp_xoptcflags: First is best, one has to work. + eval xoptcflags=\$gmp_xoptcflags_$CC + if test -n "$xoptcflags"; then + gmp_found="no" + for xopt in $xoptcflags; do + CFLAGS_save="$CFLAGS" + CFLAGS="$CFLAGS $xopt" + echo $ECHO_N "checking whether $CC accepts $xopt... $ECHO_C" 1>&6 +echo "configure:1621: checking whether $CC accepts $xopt" 1>&5 + ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + + cat >conftest.$ac_ext <<EOF + +#line 1631 "configure" +#include "confdefs.h" + +int main(){return(0);} +EOF +if { (eval echo configure:1636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + optok=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + cross=no + else + cross=yes + fi +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + optok=no +fi +rm -fr conftest* + if test "$optok" = "yes"; then + echo "$ECHO_T""yes" 1>&6 + gmp_found="yes" + break + else + echo "$ECHO_T""no" 1>&6 + CFLAGS="$CFLAGS_save" + fi + done + if test "$gmp_found" = "no"; then + echo "$0: fatal: need a compiler that understands one of $xoptcflags" + exit 1 + fi + fi fi +# Restore CFLAGS given on command line. +# FIXME: We've run through quite some unnecessary code looking for a +# nice compiler and working flags for it, just to spoil that with user +# supplied flags. +test -n "$gmp_user_CFLAGS" && CFLAGS="$gmp_user_CFLAGS" + # Select chosen compiler. echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ECHO_C" 1>&6 -echo "configure:1615: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5 +echo "configure:1675: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1622,12 +1682,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat >conftest.$ac_ext <<EOF -#line 1626 "configure" +#line 1686 "configure" #include "confdefs.h" int main(){return(0);} EOF -if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1653,12 +1713,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 77; } fi echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ECHO_C" 1>&6 -echo "configure:1657: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5 +echo "configure:1717: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5 echo "$ECHO_T""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" 1>&6 -echo "configure:1662: checking whether we are using GNU C" 1>&5 +echo "configure:1722: checking whether we are using GNU C" 1>&5 if test "${ac_cv_prog_gcc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -1667,7 +1727,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1699,7 +1759,7 @@ fi CCAS="$CC -c" echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6 -echo "configure:1703: checking how to run the C preprocessor" 1>&5 +echo "configure:1763: checking how to run the C preprocessor" 1>&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -1715,13 +1775,13 @@ else # not just through cpp. cat >conftest.$ac_ext <<EOF -#line 1719 "configure" +#line 1779 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1733,13 +1793,13 @@ else CPP="${CC-cc} -E -traditional-cpp" cat >conftest.$ac_ext <<EOF -#line 1737 "configure" +#line 1797 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1751,13 +1811,13 @@ else CPP="${CC-cc} -nologo -E" cat >conftest.$ac_ext <<EOF -#line 1755 "configure" +#line 1815 "configure" #include "confdefs.h" #include <assert.h> Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1793,7 +1853,7 @@ echo "$ECHO_T""$CPP" 1>&6 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6 -echo "configure:1797: checking for a BSD compatible install" 1>&5 +echo "configure:1857: checking for a BSD compatible install" 1>&5 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 @@ -1850,7 +1910,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ECHO_N "checking whether ln -s works... $ECHO_C" 1>&6 -echo "configure:1854: checking whether ln -s works" 1>&5 +echo "configure:1914: checking whether ln -s works" 1>&5 if test "${ac_cv_prog_LN_S+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -1873,7 +1933,7 @@ fi # Extract the first word of "m4", so it can be a program name with args. set dummy m4; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:1877: checking for $ac_word" 1>&5 +echo "configure:1937: checking for $ac_word" 1>&5 if test "${ac_cv_prog_M4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -1911,7 +1971,7 @@ fi # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:1915: checking for $ac_word" 1>&5 +echo "configure:1975: checking for $ac_word" 1>&5 if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -1945,7 +2005,7 @@ if test -z "$ac_cv_prog_AR"; then # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:1949: checking for $ac_word" 1>&5 +echo "configure:2009: checking for $ac_word" 1>&5 if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -1983,7 +2043,7 @@ fi # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. set dummy ${ac_tool_prefix}nm; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:1987: checking for $ac_word" 1>&5 +echo "configure:2047: checking for $ac_word" 1>&5 if test "${ac_cv_prog_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2017,7 +2077,7 @@ if test -z "$ac_cv_prog_NM"; then # Extract the first word of "nm", so it can be a program name with args. set dummy nm; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:2021: checking for $ac_word" 1>&5 +echo "configure:2081: checking for $ac_word" 1>&5 if test "${ac_cv_prog_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2066,7 +2126,7 @@ esac if test "$gmp_no_asm_syntax_testing" != "yes"; then echo $ECHO_N "checking how to switch to text section... $ECHO_C" 1>&6 -echo "configure:2070: checking how to switch to text section" 1>&5 +echo "configure:2130: checking how to switch to text section" 1>&5 if test "${gmp_cv_check_asm_text+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2085,7 +2145,7 @@ echo "$ECHO_T""$gmp_cv_check_asm_text" 1>&6 echo "define(<TEXT>, <$gmp_cv_check_asm_text>)" >> $gmp_tmpconfigm4 echo $ECHO_N "checking how to switch to data section... $ECHO_C" 1>&6 -echo "configure:2089: checking how to switch to data section" 1>&5 +echo "configure:2149: checking how to switch to data section" 1>&5 if test "${gmp_cv_check_asm_data+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2103,7 +2163,7 @@ echo "$ECHO_T""$gmp_cv_check_asm_data" 1>&6 echo "define(<DATA>, <$gmp_cv_check_asm_data>)" >> $gmp_tmpconfigm4 echo $ECHO_N "checking how to export a symbol... $ECHO_C" 1>&6 -echo "configure:2107: checking how to export a symbol" 1>&5 +echo "configure:2167: checking how to export a symbol" 1>&5 if test "${gmp_cv_check_asm_globl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2117,7 +2177,7 @@ echo "$ECHO_T""$gmp_cv_check_asm_globl" 1>&6 echo "define(<GLOBL>, <$gmp_cv_check_asm_globl>)" >> $gmp_tmpconfigm4 echo $ECHO_N "checking what assembly label suffix to use... $ECHO_C" 1>&6 -echo "configure:2121: checking what assembly label suffix to use" 1>&5 +echo "configure:2181: checking what assembly label suffix to use" 1>&5 if test "${gmp_cv_check_asm_label_suffix+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2131,14 +2191,14 @@ echo "$ECHO_T""$gmp_cv_check_asm_label_suffix" 1>&6 echo "define(<LABEL_SUFFIX>, <\$1$gmp_cv_check_asm_label_suffix>)" >> $gmp_tmpconfigm4 echo $ECHO_N "checking how the .type assembly directive should be used... $ECHO_C" 1>&6 -echo "configure:2135: checking how the .type assembly directive should be used" 1>&5 +echo "configure:2195: checking how the .type assembly directive should be used" 1>&5 if test "${gmp_cv_check_asm_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_assemble="$CCAS $CFLAGS conftest.s 1>&5" for gmp_tmp_prefix in @ \# %; do echo " .type sym,${gmp_tmp_prefix}function" > conftest.s - if { (eval echo configure:2142: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then + if { (eval echo configure:2202: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then gmp_cv_check_asm_type=".type \$1,${gmp_tmp_prefix}\$2" break fi @@ -2152,13 +2212,13 @@ echo "$ECHO_T""$gmp_cv_check_asm_type" 1>&6 echo "define(<TYPE>, <$gmp_cv_check_asm_type>)" >> $gmp_tmpconfigm4 echo $ECHO_N "checking if the .size assembly directive works... $ECHO_C" 1>&6 -echo "configure:2156: checking if the .size assembly directive works" 1>&5 +echo "configure:2216: checking if the .size assembly directive works" 1>&5 if test "${gmp_cv_check_asm_size+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else ac_assemble="$CCAS $CFLAGS conftest.s 1>&5" echo ' .size sym,1' > conftest.s -if { (eval echo configure:2162: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then +if { (eval echo configure:2222: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then gmp_cv_check_asm_size=".size \$1,\$2" else gmp_cv_check_asm_size="dnl" @@ -2169,7 +2229,7 @@ echo "$ECHO_T""$gmp_cv_check_asm_size" 1>&6 echo "define(<SIZE>, <$gmp_cv_check_asm_size>)" >> $gmp_tmpconfigm4 echo $ECHO_N "checking what prefix to use for a local label... $ECHO_C" 1>&6 -echo "configure:2173: checking what prefix to use for a local label" 1>&5 +echo "configure:2233: checking what prefix to use for a local label" 1>&5 if test "${gmp_cv_check_asm_lsym_prefix+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2185,7 +2245,7 @@ dummy${gmp_cv_check_asm_label_suffix} ${gmp_tmp_pre}gurkmacka${gmp_cv_check_asm_label_suffix} .byte 0 EOF - if { (eval echo configure:2189: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then + if { (eval echo configure:2249: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then $NM conftest.o >/dev/null 2>&1 gmp_rc=$? if test "$gmp_rc" != "0"; then @@ -2209,7 +2269,7 @@ echo "$ECHO_T""$gmp_cv_check_asm_lsym_prefix" 1>&6 echo "define(<LSYM_PREFIX>, <${gmp_cv_check_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4 echo $ECHO_N "checking how to define a 32-bit word... $ECHO_C" 1>&6 -echo "configure:2213: checking how to [define] a 32-bit word" 1>&5 +echo "configure:2273: checking how to [define] a 32-bit word" 1>&5 if test "${gmp_cv_check_asm_w32+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2238,7 +2298,7 @@ case "$target" in foo${gmp_cv_check_asm_label_suffix} .byte 0 EOF - if { (eval echo configure:2242: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then + if { (eval echo configure:2302: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then gmp_tmp_val=`$NM conftest.o | grep foo | sed -e 's;[[][0-9][]]\(.*\);\1;' \ -e 's;[^1-9]*\([0-9]*\).*;\1;'` @@ -2262,17 +2322,17 @@ echo "$ECHO_T""$gmp_cv_check_asm_w32" 1>&6 echo "define(<W32>, <$gmp_cv_check_asm_w32>)" >> $gmp_tmpconfigm4 echo $ECHO_N "checking if symbols are prefixed by underscore... $ECHO_C" 1>&6 -echo "configure:2266: checking if symbols are prefixed by underscore" 1>&5 +echo "configure:2326: checking if symbols are prefixed by underscore" 1>&5 if test "${gmp_cv_check_asm_underscore+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 2271 "configure" +#line 2331 "configure" #include "confdefs.h" int underscore_test() { return; } EOF -if { (eval echo configure:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if grep _underscore_test conftest* >/dev/null; then gmp_cv_check_asm_underscore=yes else @@ -2299,7 +2359,7 @@ echo 'define(<GSYM_PREFIX>, <>)' >> $gmp_tmpconfigm4 fi echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" 1>&6 -echo "configure:2303: checking if .align assembly directive is logarithmic" 1>&5 +echo "configure:2363: checking if .align assembly directive is logarithmic" 1>&5 if test "${gmp_cv_check_asm_align_log+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2317,7 +2377,7 @@ foo$gmp_cv_check_asm_label_suffix .byte 2 EOF ac_assemble="$CCAS $CFLAGS conftest.s 1>&5" -if { (eval echo configure:2321: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then +if { (eval echo configure:2381: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then gmp_tmp_val=`$NM conftest.o | grep foo | sed -e 's;[[][0-9][]]\(.*\);\1;' \ -e 's;[^1-9]*\([0-9]*\).*;\1;'` @@ -2430,7 +2490,7 @@ case ${target} in path= echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" 1>&6 -echo "configure:2434: checking if the assembler knows about MMX instructions" 1>&5 +echo "configure:2494: checking if the assembler knows about MMX instructions" 1>&5 if test "${gmp_cv_check_asm_mmx+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2439,7 +2499,7 @@ else por %mm0, %mm0 EOF ac_assemble="$CCAS $CFLAGS conftest.s 1>&5" -if { (eval echo configure:2443: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then +if { (eval echo configure:2503: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then gmp_cv_check_asm_mmx=yes else gmp_cv_check_asm_mmx=no @@ -2474,7 +2534,7 @@ fi path= echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" 1>&6 -echo "configure:2478: checking if the assembler knows about MMX instructions" 1>&5 +echo "configure:2538: checking if the assembler knows about MMX instructions" 1>&5 if test "${gmp_cv_check_asm_mmx+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2483,7 +2543,7 @@ else por %mm0, %mm0 EOF ac_assemble="$CCAS $CFLAGS conftest.s 1>&5" -if { (eval echo configure:2487: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then +if { (eval echo configure:2547: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then gmp_cv_check_asm_mmx=yes else gmp_cv_check_asm_mmx=no @@ -2512,7 +2572,7 @@ fi k6*-*-*) echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" 1>&6 -echo "configure:2516: checking if the assembler knows about MMX instructions" 1>&5 +echo "configure:2576: checking if the assembler knows about MMX instructions" 1>&5 if test "${gmp_cv_check_asm_mmx+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2521,7 +2581,7 @@ else por %mm0, %mm0 EOF ac_assemble="$CCAS $CFLAGS conftest.s 1>&5" -if { (eval echo configure:2525: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then +if { (eval echo configure:2585: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then gmp_cv_check_asm_mmx=yes else gmp_cv_check_asm_mmx=no @@ -2562,7 +2622,7 @@ fi path= echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" 1>&6 -echo "configure:2566: checking if the assembler knows about MMX instructions" 1>&5 +echo "configure:2626: checking if the assembler knows about MMX instructions" 1>&5 if test "${gmp_cv_check_asm_mmx+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2571,7 +2631,7 @@ else por %mm0, %mm0 EOF ac_assemble="$CCAS $CFLAGS conftest.s 1>&5" -if { (eval echo configure:2575: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then +if { (eval echo configure:2635: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then gmp_cv_check_asm_mmx=yes else gmp_cv_check_asm_mmx=no @@ -2645,7 +2705,7 @@ case ${target} in extra_functions="$extra_functions copyi copyd" echo $ECHO_N "checking if the assembler takes cl with shldl... $ECHO_C" 1>&6 -echo "configure:2649: checking if the assembler takes cl with shldl" 1>&5 +echo "configure:2709: checking if the assembler takes cl with shldl" 1>&5 if test "${gmp_cv_check_asm_shldl_cl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2654,7 +2714,7 @@ else shldl %cl, %eax, %ebx EOF ac_assemble="$CCAS $CFLAGS conftest.s 1>&5" -if { (eval echo configure:2658: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then +if { (eval echo configure:2718: \"$ac_assemble\") 1>&5; (eval $ac_assemble) 2>&5; }; then gmp_cv_check_asm_shldl_cl=yes else gmp_cv_check_asm_shldl_cl=no @@ -2677,12 +2737,12 @@ fi esac echo $ECHO_N "checking for Cygwin environment... $ECHO_C" 1>&6 -echo "configure:2681: checking for Cygwin environment" 1>&5 +echo "configure:2741: checking for Cygwin environment" 1>&5 if test "${ac_cv_cygwin+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <<EOF -#line 2686 "configure" +#line 2746 "configure" #include "confdefs.h" int @@ -2696,7 +2756,7 @@ return __CYGWIN__; return 0; } EOF -if { (eval echo configure:2700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cygwin=yes else @@ -2711,12 +2771,12 @@ echo "$ECHO_T""$ac_cv_cygwin" 1>&6 CYGWIN= test "$ac_cv_cygwin" = yes && CYGWIN=yes echo $ECHO_N "checking for mingw32 environment... $ECHO_C" 1>&6 -echo "configure:2715: checking for mingw32 environment" 1>&5 +echo "configure:2775: checking for mingw32 environment" 1>&5 if test "${ac_cv_mingw32+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <<EOF -#line 2720 "configure" +#line 2780 "configure" #include "confdefs.h" int @@ -2727,7 +2787,7 @@ return __MINGW32__; return 0; } EOF -if { (eval echo configure:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mingw32=yes else @@ -2742,12 +2802,12 @@ echo "$ECHO_T""$ac_cv_mingw32" 1>&6 MINGW32= test "$ac_cv_mingw32" = yes && MINGW32=yes echo $ECHO_N "checking for EMX OS/2 environment... $ECHO_C" 1>&6 -echo "configure:2746: checking for EMX OS/2 environment" 1>&5 +echo "configure:2806: checking for EMX OS/2 environment" 1>&5 if test "${ac_cv_emxos2+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <<EOF -#line 2751 "configure" +#line 2811 "configure" #include "confdefs.h" int @@ -2758,7 +2818,7 @@ return __EMX__; return 0; } EOF -if { (eval echo configure:2762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_emxos2=yes else @@ -2774,7 +2834,7 @@ EMXOS2= test "$ac_cv_emxos2" = yes && EMXOS2=yes echo $ECHO_N "checking for executable suffix... $ECHO_C" 1>&6 -echo "configure:2778: checking for executable suffix" 1>&5 +echo "configure:2838: checking for executable suffix" 1>&5 if test "${ac_cv_exeext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -2784,7 +2844,7 @@ else rm -f conftest* echo 'int main () { return 0; }' >conftest.$ac_ext ac_cv_exeext= - if { (eval echo configure:2788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then + if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for ac_file in conftest.*; do case $ac_file in *.c | *.C | *.o | *.obj | *.xcoff) ;; @@ -2805,13 +2865,13 @@ echo "$ECHO_T""${ac_cv_exeext}" 1>&6 ac_exeext=$EXEEXT echo $ECHO_N "checking for object suffix... $ECHO_C" 1>&6 -echo "configure:2809: checking for object suffix" 1>&5 +echo "configure:2869: checking for object suffix" 1>&5 if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else rm -f conftest* echo 'int i = 1;' >conftest.$ac_ext -if { (eval echo configure:2815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then for ac_file in conftest.*; do case $ac_file in *.c) ;; @@ -2900,7 +2960,7 @@ else fi echo $ECHO_N "checking build system type... $ECHO_C" 1>&6 -echo "configure:2904: checking build system type" 1>&5 +echo "configure:2964: checking build system type" 1>&5 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then # Make sure we can run config.sub. @@ -2946,7 +3006,7 @@ ac_prog=ld if test "$ac_cv_prog_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" 1>&6 -echo "configure:2950: checking for ld used by GCC" 1>&5 +echo "configure:3010: checking for ld used by GCC" 1>&5 case $lt_target in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -2976,10 +3036,10 @@ echo "configure:2950: checking for ld used by GCC" 1>&5 esac elif test "$with_gnu_ld" = yes; then echo $ECHO_N "checking for GNU ld... $ECHO_C" 1>&6 -echo "configure:2980: checking for GNU ld" 1>&5 +echo "configure:3040: checking for GNU ld" 1>&5 else echo $ECHO_N "checking for non-GNU ld... $ECHO_C" 1>&6 -echo "configure:2983: checking for non-GNU ld" 1>&5 +echo "configure:3043: checking for non-GNU ld" 1>&5 fi if test "${ac_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 @@ -3014,7 +3074,7 @@ else fi test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" 1>&6 -echo "configure:3018: checking if the linker ($LD) is GNU ld" 1>&5 +echo "configure:3078: checking if the linker ($LD) is GNU ld" 1>&5 if test "${ac_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3029,7 +3089,7 @@ echo "$ECHO_T""$ac_cv_prog_gnu_ld" 1>&6 with_gnu_ld=$ac_cv_prog_gnu_ld echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" 1>&6 -echo "configure:3033: checking for $LD option to reload object files" 1>&5 +echo "configure:3093: checking for $LD option to reload object files" 1>&5 if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3040,7 +3100,7 @@ reload_flag=$lt_cv_ld_reload_flag test -n "$reload_flag" && reload_flag=" $reload_flag" echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" 1>&6 -echo "configure:3044: checking for BSD-compatible nm" 1>&5 +echo "configure:3104: checking for BSD-compatible nm" 1>&5 if test "${ac_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3076,7 +3136,7 @@ NM="$ac_cv_path_NM" echo "$ECHO_T""$NM" 1>&6 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" 1>&6 -echo "configure:3080: checking how to recognise dependant libraries" 1>&5 +echo "configure:3140: checking how to recognise dependant libraries" 1>&5 if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3200,7 +3260,7 @@ file_magic*) if test "$file_magic_cmd" = '${MAGIC}'; then echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" 1>&6 -echo "configure:3204: checking for ${ac_tool_prefix}file" 1>&5 +echo "configure:3264: checking for ${ac_tool_prefix}file" 1>&5 if test "${lt_cv_path_MAGIC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3262,7 +3322,7 @@ fi if test -z "$lt_cv_path_MAGIC"; then if test -n "$ac_tool_prefix"; then echo $ECHO_N "checking for file... $ECHO_C" 1>&6 -echo "configure:3266: checking for file" 1>&5 +echo "configure:3326: checking for file" 1>&5 if test "${lt_cv_path_MAGIC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3338,7 +3398,7 @@ esac # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:3342: checking for $ac_word" 1>&5 +echo "configure:3402: checking for $ac_word" 1>&5 if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3372,7 +3432,7 @@ if test -z "$ac_cv_prog_RANLIB"; then # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:3376: checking for $ac_word" 1>&5 +echo "configure:3436: checking for $ac_word" 1>&5 if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3410,7 +3470,7 @@ fi # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:3414: checking for $ac_word" 1>&5 +echo "configure:3474: checking for $ac_word" 1>&5 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3444,7 +3504,7 @@ if test -z "$ac_cv_prog_STRIP"; then # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6 -echo "configure:3448: checking for $ac_word" 1>&5 +echo "configure:3508: checking for $ac_word" 1>&5 if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3510,8 +3570,8 @@ test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" case "$lt_target" in *-*-irix6*) # Find out which ABI we are using. - echo '#line 3514 "configure"' > conftest.$ac_ext - if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + echo '#line 3574 "configure"' > conftest.$ac_ext + if { (eval echo configure:3575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then case "`/usr/bin/file conftest.o`" in *32-bit*) LD="${LD-ld} -32" @@ -3532,7 +3592,7 @@ case "$lt_target" in SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" 1>&6 -echo "configure:3536: checking whether the C compiler needs -belf" 1>&5 +echo "configure:3596: checking whether the C compiler needs -belf" 1>&5 if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else @@ -3545,7 +3605,7 @@ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$a cross_compiling=$ac_cv_prog_cc_cross cat >conftest.$ac_ext <<EOF -#line 3549 "configure" +#line 3609 "configure" #include "confdefs.h" int @@ -3556,7 +3616,7 @@ main() return 0; } EOF -if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* lt_cv_cc_needs_belf=yes else @@ -3661,12 +3721,12 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool' exec 5>>./config.log echo $ECHO_N "checking whether optarg is declared... $ECHO_C" 1>&6 -echo "configure:3665: checking whether optarg is declared" 1>&5 +echo "configure:3725: checking whether optarg is declared" 1>&5 if test "${ac_cv_have_decl_optarg+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <<EOF -#line 3670 "configure" +#line 3730 "configure" #include "confdefs.h" $ac_includes_default int @@ -3680,7 +3740,7 @@ main () return 0; } EOF -if { (eval echo configure:3684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_decl_optarg=yes else @@ -3705,13 +3765,13 @@ EOF fi echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6 -echo "configure:3709: checking for ANSI C header files" 1>&5 +echo "configure:3769: checking for ANSI C header files" 1>&5 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <<EOF -#line 3715 "configure" +#line 3775 "configure" #include "confdefs.h" #include <stdlib.h> #include <stdarg.h> @@ -3720,7 +3780,7 @@ cat >conftest.$ac_ext <<EOF EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3738,7 +3798,7 @@ if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<EOF -#line 3742 "configure" +#line 3802 "configure" #include "confdefs.h" #include <string.h> @@ -3758,7 +3818,7 @@ if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<EOF -#line 3762 "configure" +#line 3822 "configure" #include "confdefs.h" #include <stdlib.h> @@ -3780,7 +3840,7 @@ if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<EOF -#line 3784 "configure" +#line 3844 "configure" #include "confdefs.h" #include <ctype.h> #if ((' ' & 0x0FF) == 0x020) @@ -3805,7 +3865,7 @@ main () exit (0); } EOF -if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -3829,12 +3889,12 @@ EOF fi echo $ECHO_N "checking for void... $ECHO_C" 1>&6 -echo "configure:3833: checking for void" 1>&5 +echo "configure:3893: checking for void" 1>&5 if test "${ac_cv_type_void+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <<EOF -#line 3838 "configure" +#line 3898 "configure" #include "confdefs.h" $ac_includes_default int @@ -3848,7 +3908,7 @@ if (sizeof (void)) return 0; } EOF -if { (eval echo configure:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_void=yes else @@ -3868,13 +3928,13 @@ EOF fi echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" 1>&6 -echo "configure:3872: checking for preprocessor stringizing operator" 1>&5 +echo "configure:3932: checking for preprocessor stringizing operator" 1>&5 if test "${ac_cv_c_stringize+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" 1>&6 else cat >conftest.$ac_ext <<EOF -#line 3878 "configure" +#line 3938 "configure" #include "confdefs.h" #define x(y) #y @@ -3917,6 +3977,9 @@ case "${target}" in m680[234]0*-*-* | m68k*-*-*) syntax=mit ;; + *-*-cygwin*) # x86-cygwin kludge + syntax=cygwin + ;; esac # Now build an asm-syntax.h file for targets that include that from the @@ -3931,7 +3994,18 @@ case "${family}-${underscore}-${asm_align}-${syntax}" in echo '#define ELF_SYNTAX' >asm-syntax.h echo '#define C_SYMBOL_NAME(name) name' >>asm-syntax.h echo '#include "'$srcdir'/mpn/x86/syntax.h"' >>asm-syntax.h;; - x86-yes-nolog-*) # FIXME: For x86-cygwin + x86-yes-nolog-cygwin) # x86-cygwin kludge. + # Select BSD_SYNTAX to avoid .type/.size in PROLOGUE. + echo '#define BSD_SYNTAX' >asm-syntax.h + cat $srcdir/mpn/underscore.h >>asm-syntax.h + echo '#include "'$srcdir'/mpn/x86/syntax.h"' >>asm-syntax.h + # KLUDGE: Override ALIGN definition. + echo '#ifdef ALIGN' >>asm-syntax.h + echo '#undef ALIGN' >>asm-syntax.h + echo '#endif' >>asm-syntax.h + echo '#define ALIGN(log) .align 1<<(log)' >>asm-syntax.h + ;; + x86-yes-nolog-*) # FIXME: Anyone using this? echo '#define ELF_SYNTAX' >asm-syntax.h cat $srcdir/mpn/underscore.h >>asm-syntax.h echo '#include "'$srcdir'/mpn/x86/syntax.h"' >>asm-syntax.h |