X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fconfigure;h=8dbe3edd15f6843d95ad83e496e0f8fc2b5732d2;hb=11a8ca07364cc782101c13138a71707359bc229b;hp=9e30edf9a7ae311175869fb2e5dd63690665e446;hpb=66a93a3924fcc325406695a8c643520c08b39d79;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/configure b/gcc/configure index 9e30edf9a7a..8dbe3edd15f 100755 --- a/gcc/configure +++ b/gcc/configure @@ -2344,10 +2344,12 @@ fi # Check whether --enable-intermodule or --disable-intermodule was given. if test "${enable_intermodule+set}" = set; then enableval="$enable_intermodule" - case "${enable_intermodule}" in - yes) onestep=-onestep : ;; - *) onestep= : ;; + case ${enable_intermodule} in + yes) onestep="-onestep";; + *) onestep="";; esac +else + onestep="" fi @@ -2357,7 +2359,7 @@ fi # ------------------------- echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:2361: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:2363: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2385,12 +2387,12 @@ fi # Find some useful tools -for ac_prog in mawk gawk nawk awk +for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2394: checking for $ac_word" >&5 +echo "configure:2396: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2420,7 +2422,7 @@ test -n "$AWK" && break done echo $ac_n "checking whether ln works""... $ac_c" 1>&6 -echo "configure:2424: checking whether ln works" >&5 +echo "configure:2426: checking whether ln works" >&5 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2452,7 +2454,7 @@ else fi echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:2456: checking whether ln -s works" >&5 +echo "configure:2458: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2486,7 +2488,7 @@ fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2490: checking for $ac_word" >&5 +echo "configure:2492: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2524,7 +2526,7 @@ fi # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:2528: checking for a BSD compatible install" >&5 +echo "configure:2530: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2574,11 +2576,37 @@ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' +# See if cmp has --ignore-initial. +echo $ac_n "checking for cmp's capabilities""... $ac_c" 1>&6 +echo "configure:2582: checking for cmp's capabilities" >&5 +if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo abfoo >t1 + echo cdfoo >t2 + if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then + if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then + gcc_cv_prog_cmp_skip=slowcompare + else + gcc_cv_prog_cmp_skip=gnucompare + fi + else + gcc_cv_prog_cmp_skip=slowcompare + fi + rm t1 t2 + +fi + +echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6 +make_compare_target=$gcc_cv_prog_cmp_skip + + + # See if we have the mktemp command. # Extract the first word of "mktemp", so it can be a program name with args. set dummy mktemp; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2582: checking for $ac_word" >&5 +echo "configure:2610: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2617,7 +2645,7 @@ else # Extract the first word of "makeinfo", so it can be a program name with args. set dummy makeinfo; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2621: checking for $ac_word" >&5 +echo "configure:2649: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2646,13 +2674,13 @@ fi if test -n "$MAKEINFO"; then # Found it, now check the version. echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6 -echo "configure:2650: checking for modern makeinfo" >&5 +echo "configure:2678: checking for modern makeinfo" >&5 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` - echo "configure:2656: version of makeinfo is $ac_prog_version" >&5 + echo "configure:2684: version of makeinfo is $ac_prog_version" >&5 case $ac_prog_version in '') gcc_cv_prog_makeinfo_modern=no;; 4.[2-9]*) @@ -2680,7 +2708,7 @@ fi # Is pod2man recent enough to regenerate manpages? echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6 -echo "configure:2684: checking for recent Pod::Man" >&5 +echo "configure:2712: checking for recent Pod::Man" >&5 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then echo "$ac_t""yes" 1>&6 GENERATED_MANPAGES=generated-manpages @@ -2689,34 +2717,6 @@ else GENERATED_MANPAGES= fi -# 'make compare' can be significantly faster, if cmp itself can -# skip bytes instead of using tail. The test being performed is -# "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2" -# but we need to sink errors and handle broken shells. -echo $ac_n "checking for cmp's capabilities""... $ac_c" 1>&6 -echo "configure:2698: checking for cmp's capabilities" >&5 -if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo abfoo >t1 - echo cdfoo >t2 - if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then - if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then - gcc_cv_prog_cmp_skip=slowcompare - else - gcc_cv_prog_cmp_skip=gnucompare - fi - else - gcc_cv_prog_cmp_skip=slowcompare - fi - rm t1 t2 - -fi - -echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6 -make_compare_target=$gcc_cv_prog_cmp_skip - - # How about lex? if test -f $srcdir/../flex/skel.c; then FLEX='$(objdir)/../flex/flex' @@ -5136,21 +5136,16 @@ fi # Build, host, and target specific configuration fragments # -------------------------------------------------------- +# Collect build-machine-specific information. +. ${srcdir}/config.build + +# Collect host-machine-specific information. +. ${srcdir}/config.host + target_gtfiles= -build_xm_file= -build_xm_defines= -build_install_headers_dir=install-headers-tar -build_exeext= -host_xm_file= -host_xm_defines= -host_xmake_file= -host_exeext= - -# Decode the host machine, then the target machine. -# For the host machine, we save the xm_file variable as host_xm_file; -# then we decode the target machine and forget everything else -# that came from the host machine. -for machine in $build $host $target; do + +# Collect target-machine-specific information. +for machine in $target ; do . ${srcdir}/config.gcc done @@ -5285,7 +5280,7 @@ if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then extra_modes_file='$(srcdir)'/config/${extra_modes} cat >> confdefs.h <> confdefs.h <<\EOF @@ -5390,7 +5385,7 @@ if test -f ../intl/config.intl; then . ../intl/config.intl fi echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 -echo "configure:5394: checking whether NLS is requested" >&5 +echo "configure:5389: checking whether NLS is requested" >&5 if test x"$USE_NLS" != xyes; then echo "$ac_t""no" 1>&6 else @@ -5401,7 +5396,7 @@ EOF echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 -echo "configure:5405: checking for catalogs to be installed" >&5 +echo "configure:5400: checking for catalogs to be installed" >&5 # Look for .po and .gmo files in the source directory. CATALOGS= XLINGUAS= @@ -5451,7 +5446,7 @@ fi case $host_os in win32 | pe | cygwin* | mingw32* | uwin*) echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6 -echo "configure:5455: checking whether windows registry support is requested" >&5 +echo "configure:5450: checking whether windows registry support is requested" >&5 if test "x$enable_win32_registry" != xno; then cat >> confdefs.h <<\EOF #define ENABLE_WIN32_REGISTRY 1 @@ -5460,14 +5455,14 @@ EOF echo "$ac_t""yes" 1>&6 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6 -echo "configure:5464: checking for library containing RegOpenKeyExA" >&5 +echo "configure:5459: checking for library containing RegOpenKeyExA" >&5 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_func_search_save_LIBS="$LIBS" ac_cv_search_RegOpenKeyExA="no" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_RegOpenKeyExA="none required" else @@ -5489,7 +5484,7 @@ rm -f conftest* test "$ac_cv_search_RegOpenKeyExA" = "no" && for i in advapi32; do LIBS="-l$i $ac_func_search_save_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_RegOpenKeyExA="-l$i" break @@ -5542,7 +5537,7 @@ esac if test "x$enable_win32_registry" != xno; then echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6 -echo "configure:5546: checking registry key on windows hosts" >&5 +echo "configure:5541: checking registry key on windows hosts" >&5 cat >> confdefs.h <target assembler and hope that it will have the same features # as the host->target assembler we'll be using. echo $ac_n "checking what assembler to use""... $ac_c" 1>&6 -echo "configure:5756: checking what assembler to use" >&5 +echo "configure:5800: checking what assembler to use" >&5 in_tree_gas=no gcc_cv_as= gcc_cv_gas_major_version= @@ -5876,7 +5920,7 @@ esac # build->target linker and hope that it will have the same features # as the host->target linker we'll be using. echo $ac_n "checking what linker to use""... $ac_c" 1>&6 -echo "configure:5880: checking what linker to use" >&5 +echo "configure:5924: checking what linker to use" >&5 in_tree_ld=no gcc_cv_ld= gcc_cv_gld_major_version= @@ -5984,7 +6028,7 @@ esac # Figure out what nm we will be using. gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils echo $ac_n "checking what nm to use""... $ac_c" 1>&6 -echo "configure:5988: checking what nm to use" >&5 +echo "configure:6032: checking what nm to use" >&5 in_tree_nm=no if test -x nm$host_exeext; then gcc_cv_nm=./nm$host_exeext @@ -6007,7 +6051,7 @@ esac # Figure out what objdump we will be using. echo $ac_n "checking what objdump to use""... $ac_c" 1>&6 -echo "configure:6011: checking what objdump to use" >&5 +echo "configure:6055: checking what objdump to use" >&5 in_tree_objdump=no if test -x objdump$host_exeext; then gcc_cv_objdump=./objdump$host_exeext @@ -6032,7 +6076,7 @@ esac # Figure out what assembler alignment features are present. echo $ac_n "checking assembler for .balign and .p2align""... $ac_c" 1>&6 -echo "configure:6036: checking assembler for .balign and .p2align" >&5 +echo "configure:6080: checking assembler for .balign and .p2align" >&5 if eval "test \"`echo '$''{'gcc_cv_as_balign_and_p2align'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6044,7 +6088,7 @@ fi elif test x$gcc_cv_as != x; then echo '.balign 4 .p2align 2' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_balign_and_p2align=yes else @@ -6064,7 +6108,7 @@ EOF fi echo $ac_n "checking assembler for .p2align with maximum skip""... $ac_c" 1>&6 -echo "configure:6068: checking assembler for .p2align with maximum skip" >&5 +echo "configure:6112: checking assembler for .p2align with maximum skip" >&5 if eval "test \"`echo '$''{'gcc_cv_as_max_skip_p2align'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6075,7 +6119,7 @@ else fi elif test x$gcc_cv_as != x; then echo '.p2align 4,,7' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_max_skip_p2align=yes else @@ -6095,7 +6139,7 @@ EOF fi echo $ac_n "checking assembler for working .subsection -1""... $ac_c" 1>&6 -echo "configure:6099: checking assembler for working .subsection -1" >&5 +echo "configure:6143: checking assembler for working .subsection -1" >&5 if eval "test \"`echo '$''{'gcc_cv_as_subsection_m1'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6110,7 +6154,7 @@ fi .subsection -1 conftest_label2: .word 0 .previous' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then if test x$gcc_cv_nm != x; then $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1 @@ -6138,7 +6182,7 @@ EOF fi echo $ac_n "checking assembler for .weak""... $ac_c" 1>&6 -echo "configure:6142: checking assembler for .weak" >&5 +echo "configure:6186: checking assembler for .weak" >&5 if eval "test \"`echo '$''{'gcc_cv_as_weak'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6149,7 +6193,7 @@ else fi elif test x$gcc_cv_as != x; then echo ' .weak foobar' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_weak=yes else @@ -6176,7 +6220,7 @@ fi # to be safe. # The gcc_GAS_CHECK_FEATURE call just sets a cache variable. echo $ac_n "checking assembler for .hidden""... $ac_c" 1>&6 -echo "configure:6180: checking assembler for .hidden" >&5 +echo "configure:6224: checking assembler for .hidden" >&5 if eval "test \"`echo '$''{'gcc_cv_as_hidden'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6189,7 +6233,7 @@ fi elif test x$gcc_cv_as != x; then echo ' .hidden foobar foobar:' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_hidden=yes else @@ -6204,7 +6248,7 @@ echo "$ac_t""$gcc_cv_as_hidden" 1>&6 echo $ac_n "checking linker for .hidden support""... $ac_c" 1>&6 -echo "configure:6208: checking linker for .hidden support" >&5 +echo "configure:6252: checking linker for .hidden support" >&5 if eval "test \"`echo '$''{'gcc_cv_ld_hidden'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6216,7 +6260,7 @@ else fi else gcc_cv_ld_hidden=yes - ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1` + ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q` if echo "$ld_ver" | grep GNU > /dev/null; then ld_vers=`echo $ld_ver | sed -n \ -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \ @@ -6248,19 +6292,10 @@ else fi fi else - case "$target" in - mips-sgi-irix[56]*) - if test x"$gnu_ld_flag" = x"no"; then - # Even if using gas with .hidden support, the resulting object files - # cannot be linked with the IRIX 5 and IRIX 6 O32 linkers. With - # the IRIX 6 N32 and N64 linkers, the problem is that the linker - # refuses to accept -call_shared (passed by default to the - # linker) and -r (used to link the object file generated without - # .hidden directives with one that hides symbols), so we also lose. - gcc_cv_ld_hidden=no - fi - ;; - esac + # non-GNU linkers don't seem to support .hidden yet + if test x"$gnu_ld_flag" = x"no"; then + gcc_cv_ld_hidden=no + fi fi fi fi @@ -6278,7 +6313,7 @@ fi # Check if we have .[us]leb128, and support symbol arithmetic with it. echo $ac_n "checking assembler for .sleb128 and .uleb128""... $ac_c" 1>&6 -echo "configure:6282: checking assembler for .sleb128 and .uleb128" >&5 +echo "configure:6317: checking assembler for .sleb128 and .uleb128" >&5 if eval "test \"`echo '$''{'gcc_cv_as_leb128'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6295,14 +6330,14 @@ L1: .uleb128 1280 .sleb128 -1010 L2:' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then # GAS versions before 2.11 do not support uleb128, # despite appearing to. # ??? There exists an elf-specific test that will crash # the assembler. Perhaps it's better to figure out whether # arbitrary sections are supported and try the test. - as_ver=`$gcc_cv_as --version 2>/dev/null | head -1` + as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q` if echo "$as_ver" | grep GNU > /dev/null; then as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'` as_major=`echo $as_ver | sed 's/\..*//'` @@ -6331,7 +6366,7 @@ fi # GAS versions up to and including 2.11.0 may mis-optimize # .eh_frame data. echo $ac_n "checking assembler for eh_frame optimization""... $ac_c" 1>&6 -echo "configure:6335: checking assembler for eh_frame optimization" >&5 +echo "configure:6370: checking assembler for eh_frame optimization" >&5 if eval "test \"`echo '$''{'gcc_cv_as_eh_frame'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6374,7 +6409,7 @@ __FRAME_BEGIN__: .byte 0x4 .4byte .L1-.LFB1 .LEFDE1:' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then cat > conftest.lit < /dev/null 2>&1; } then gcc_cv_as_eh_frame=yes - elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'; { (eval echo configure:6399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then + elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'; { (eval echo configure:6434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then gcc_cv_as_eh_frame=buggy else # Uh oh, what do we do now? @@ -6420,7 +6455,7 @@ EOF fi echo $ac_n "checking assembler for section merging support""... $ac_c" 1>&6 -echo "configure:6424: checking assembler for section merging support" >&5 +echo "configure:6459: checking assembler for section merging support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_shf_merge'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6432,7 +6467,7 @@ else fi elif test x$gcc_cv_as != x; then echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s - if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'; { (eval echo configure:6436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'; { (eval echo configure:6471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_shf_merge=yes else @@ -6626,12 +6661,39 @@ foo: .long 25 tls_first_minor=14 tls_as_opt="-m64 -Aesame" ;; + sparc*-*-*) + conftest_s=' + .section ".tdata","awT",@progbits +foo: .long 25 + .text + sethi %tgd_hi22(foo), %o0 + add %o0, %tgd_lo10(foo), %o1 + add %l7, %o1, %o0, %tgd_add(foo) + call __tls_get_addr, %tgd_call(foo) + sethi %tldm_hi22(foo), %l1 + add %l1, %tldm_lo10(foo), %l2 + add %l7, %l2, %o0, %tldm_add(foo) + call __tls_get_addr, %tldm_call(foo) + sethi %tldo_hix22(foo), %l3 + xor %l3, %tldo_lox10(foo), %l4 + add %o0, %l4, %l5, %tldo_add(foo) + sethi %tie_hi22(foo), %o3 + add %o3, %tie_lo10(foo), %o3 + ld [%l7 + %o3], %o2, %tie_ld(foo) + add %g7, %o2, %o4, %tie_add(foo) + sethi %tle_hix22(foo), %l1 + xor %l1, %tle_lox10(foo), %o5 + ld [%g7 + %o5], %o1' + tls_first_major=2 + tls_first_minor=14 + tls_as_opt=-32 + ;; esac if test -z "$tls_first_major"; then : # If we don't have a check, assume no support. else echo $ac_n "checking assembler for thread-local storage support""... $ac_c" 1>&6 -echo "configure:6635: checking assembler for thread-local storage support" >&5 +echo "configure:6697: checking assembler for thread-local storage support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_tls'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6642,7 +6704,7 @@ else fi elif test x$gcc_cv_as != x; then echo "$conftest_s" > conftest.s - if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'; { (eval echo configure:6646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'; { (eval echo configure:6708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_tls=yes else @@ -6668,7 +6730,7 @@ case "$target" in # All TARGET_ABI_OSF targets. alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*) echo $ac_n "checking assembler for explicit relocation support""... $ac_c" 1>&6 -echo "configure:6672: checking assembler for explicit relocation support" >&5 +echo "configure:6734: checking assembler for explicit relocation support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_alpha_explicit_relocs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6691,7 +6753,7 @@ fi ldah $1, d($29) !gprelhigh lda $1, d($1) !gprellow lda $29, 0($29) !gpdisp!3' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_alpha_explicit_relocs=yes else @@ -6713,14 +6775,14 @@ fi sparc*-*-*) echo $ac_n "checking assembler for .register""... $ac_c" 1>&6 -echo "configure:6717: checking assembler for .register" >&5 +echo "configure:6779: checking assembler for .register" >&5 if eval "test \"`echo '$''{'gcc_cv_as_sparc_register_op'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else gcc_cv_as_sparc_register_op=no if test x$gcc_cv_as != x; then echo '.register %g2, #scratch' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_sparc_register_op=yes else @@ -6740,14 +6802,14 @@ EOF fi echo $ac_n "checking assembler for -relax option""... $ac_c" 1>&6 -echo "configure:6744: checking assembler for -relax option" >&5 +echo "configure:6806: checking assembler for -relax option" >&5 if eval "test \"`echo '$''{'gcc_cv_as_sparc_relax'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else gcc_cv_as_sparc_relax=no if test x$gcc_cv_as != x; then echo '.text' > conftest.s - if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'; { (eval echo configure:6751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'; { (eval echo configure:6813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_sparc_relax=yes else @@ -6767,7 +6829,7 @@ EOF fi echo $ac_n "checking assembler for unaligned pcrel relocs""... $ac_c" 1>&6 -echo "configure:6771: checking assembler for unaligned pcrel relocs" >&5 +echo "configure:6833: checking assembler for unaligned pcrel relocs" >&5 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6780,7 +6842,7 @@ foo: .align 4 .byte 0 .uaword %r_disp32(foo)' > conftest.s - if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'; { (eval echo configure:6784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'; { (eval echo configure:6846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then if test x$gcc_cv_ld != x \ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then @@ -6803,7 +6865,7 @@ EOF echo $ac_n "checking assembler for unaligned pcrel relocs against hidden symbols""... $ac_c" 1>&6 -echo "configure:6807: checking assembler for unaligned pcrel relocs against hidden symbols" >&5 +echo "configure:6869: checking assembler for unaligned pcrel relocs against hidden symbols" >&5 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6818,7 +6880,7 @@ else .hidden foo foo: .skip 4' > conftest.s - if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'; { (eval echo configure:6822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'; { (eval echo configure:6884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \ @@ -6851,7 +6913,7 @@ fi fi # unaligned pcrel relocs echo $ac_n "checking assembler for offsetable %lo()""... $ac_c" 1>&6 -echo "configure:6855: checking assembler for offsetable %lo()" >&5 +echo "configure:6917: checking assembler for offsetable %lo()" >&5 if eval "test \"`echo '$''{'gcc_cv_as_sparc_offsetable_lo10'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6860,7 +6922,7 @@ else echo '.text or %g1, %lo(ab) + 12, %g1 or %g1, %lo(ab + 12), %g1' > conftest.s - if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'; { (eval echo configure:6864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'; { (eval echo configure:6926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then if test x$gcc_cv_objdump != x \ && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \ @@ -6886,7 +6948,7 @@ fi i[34567]86-*-* | x86_64-*-*) echo $ac_n "checking assembler for filds and fists mnemonics""... $ac_c" 1>&6 -echo "configure:6890: checking assembler for filds and fists mnemonics" >&5 +echo "configure:6952: checking assembler for filds and fists mnemonics" >&5 if eval "test \"`echo '$''{'gcc_cv_as_ix86_filds_fists'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6897,7 +6959,7 @@ else fi elif test x$gcc_cv_as != x; then echo 'filds mem; fists mem' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_ix86_filds_fists=yes else @@ -6916,10 +6978,37 @@ EOF fi + echo $ac_n "checking assembler for cmov syntax""... $ac_c" 1>&6 +echo "configure:6983: checking assembler for cmov syntax" >&5 +if eval "test \"`echo '$''{'gcc_cv_as_ix86_cmov_sun_syntax'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + gcc_cv_as_ix86_cmov_sun_syntax=no + if test x$gcc_cv_as != x; then + echo 'cmovl.l %edx, %eax' > conftest.s + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + then + gcc_cv_as_ix86_cmov_sun_syntax=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi + +echo "$ac_t""$gcc_cv_as_ix86_cmov_sun_syntax" 1>&6 +if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1 +EOF + +fi + # This one is used unconditionally by i386.[ch]; it is to be defined # to 1 if the feature is present, 0 otherwise. echo $ac_n "checking assembler for GOTOFF in data""... $ac_c" 1>&6 -echo "configure:6923: checking assembler for GOTOFF in data" >&5 +echo "configure:7012: checking assembler for GOTOFF in data" >&5 if eval "test \"`echo '$''{'gcc_cv_as_ix86_gotoff_in_data'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6934,7 +7023,7 @@ fi nop .data .long .L0@GOTOFF' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_ix86_gotoff_in_data=yes else @@ -6955,7 +7044,7 @@ EOF ia64*-*-*) echo $ac_n "checking assembler for ltoffx and ldxmov relocs""... $ac_c" 1>&6 -echo "configure:6959: checking assembler for ltoffx and ldxmov relocs" >&5 +echo "configure:7048: checking assembler for ltoffx and ldxmov relocs" >&5 if eval "test \"`echo '$''{'gcc_cv_as_ia64_ltoffx_ldxmov_relocs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6969,7 +7058,7 @@ fi addl r15 = @ltoffx(x#), gp ;; ld8.mov r16 = [r15], x#' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:6973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes else @@ -6999,7 +7088,7 @@ fi mfcr 3,128" echo $ac_n "checking assembler for mfcr field support""... $ac_c" 1>&6 -echo "configure:7003: checking assembler for mfcr field support" >&5 +echo "configure:7092: checking assembler for mfcr field support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_powerpc_mfcrf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7010,7 +7099,7 @@ else fi elif test x$gcc_cv_as != x; then echo "$conftest_s" > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_powerpc_mfcrf=yes else @@ -7032,7 +7121,7 @@ fi mips*-*-*) echo $ac_n "checking assembler for explicit relocation support""... $ac_c" 1>&6 -echo "configure:7036: checking assembler for explicit relocation support" >&5 +echo "configure:7125: checking assembler for explicit relocation support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_mips_explicit_relocs'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7043,7 +7132,7 @@ else fi elif test x$gcc_cv_as != x; then echo ' lw $4,%gp_rel(foo)($4)' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_mips_explicit_relocs=yes else @@ -7089,7 +7178,7 @@ if test x"$insn" != x; then .loc 1 3 0 $insn" echo $ac_n "checking assembler for dwarf2 debug_line support""... $ac_c" 1>&6 -echo "configure:7093: checking assembler for dwarf2 debug_line support" >&5 +echo "configure:7182: checking assembler for dwarf2 debug_line support" >&5 if eval "test \"`echo '$''{'gcc_cv_as_dwarf2_debug_line'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7101,7 +7190,7 @@ else fi elif test x$gcc_cv_as != x; then echo "$conftest_s" > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then # ??? This fails with non-gnu grep. Maybe use objdump? if grep debug_line conftest.o > /dev/null 2>&1; then @@ -7123,7 +7212,7 @@ echo "$ac_t""$gcc_cv_as_dwarf2_debug_line" 1>&6 # by DW_AT_decl_file. Approximate this test by testing if # the assembler bitches if the same index is assigned twice. echo $ac_n "checking assembler for buggy dwarf2 .file directive""... $ac_c" 1>&6 -echo "configure:7127: checking assembler for buggy dwarf2 .file directive" >&5 +echo "configure:7216: checking assembler for buggy dwarf2 .file directive" >&5 if eval "test \"`echo '$''{'gcc_cv_as_dwarf2_file_buggy'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7131,7 +7220,7 @@ else if test x$gcc_cv_as != x; then echo ' .file 1 "foo.s" .file 1 "bar.s"' > conftest.s - if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'; { (eval echo configure:7224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_dwarf2_file_buggy=yes else @@ -7154,7 +7243,7 @@ EOF fi echo $ac_n "checking assembler for --gdwarf2 option""... $ac_c" 1>&6 -echo "configure:7158: checking assembler for --gdwarf2 option" >&5 +echo "configure:7247: checking assembler for --gdwarf2 option" >&5 if eval "test \"`echo '$''{'gcc_cv_as_gdwarf2_flag'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7166,7 +7255,7 @@ else fi elif test x$gcc_cv_as != x; then echo "$insn" > conftest.s - if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'; { (eval echo configure:7170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'; { (eval echo configure:7259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then gcc_cv_as_gdwarf2_flag=yes else @@ -7186,7 +7275,7 @@ EOF fi echo $ac_n "checking assembler for --gstabs option""... $ac_c" 1>&6 -echo "configure:7190: checking assembler for --gstabs option" >&5 +echo "configure:7279: checking assembler for --gstabs option" >&5 if eval "test \"`echo '$''{'gcc_cv_as_gstabs_flag'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7198,12 +7287,12 @@ else fi elif test x$gcc_cv_as != x; then echo "$insn" > conftest.s - if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'; { (eval echo configure:7202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'; { (eval echo configure:7291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then # The native Solaris 9/Intel assembler doesn't understand --gstabs # and warns about it, but still exits successfully. So check for # this. - if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'; { (eval echo configure:7207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } + if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'; { (eval echo configure:7296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } then : else gcc_cv_as_gstabs_flag=yes fi @@ -7225,7 +7314,7 @@ fi fi echo $ac_n "checking linker read-only and read-write section mixing""... $ac_c" 1>&6 -echo "configure:7229: checking linker read-only and read-write section mixing" >&5 +echo "configure:7318: checking linker read-only and read-write section mixing" >&5 gcc_cv_ld_ro_rw_mix=unknown if test $in_tree_ld = yes ; then if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \ @@ -7264,7 +7353,7 @@ fi echo "$ac_t""$gcc_cv_ld_ro_rw_mix" 1>&6 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6 -echo "configure:7268: checking linker PT_GNU_EH_FRAME support" >&5 +echo "configure:7357: checking linker PT_GNU_EH_FRAME support" >&5 gcc_cv_ld_eh_frame_hdr=no if test $in_tree_ld = yes ; then if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \ @@ -7286,7 +7375,7 @@ fi echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6 echo $ac_n "checking linker position independent executable support""... $ac_c" 1>&6 -echo "configure:7290: checking linker position independent executable support" >&5 +echo "configure:7379: checking linker position independent executable support" >&5 gcc_cv_ld_pie=no if test $in_tree_ld = yes ; then if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \ @@ -7311,7 +7400,7 @@ echo "$ac_t""$gcc_cv_ld_pie" 1>&6 case "$target" in mips*-*-*) echo $ac_n "checking whether libgloss uses STARTUP directives consistently""... $ac_c" 1>&6 -echo "configure:7315: checking whether libgloss uses STARTUP directives consistently" >&5 +echo "configure:7404: checking whether libgloss uses STARTUP directives consistently" >&5 gcc_cv_mips_libgloss_startup=no gcc_cv_libgloss_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss if test "x$exec_prefix" = xNONE; then @@ -7373,11 +7462,9 @@ enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/ # First scan to see if an enabled language requires some other language. # We assume that a given config-lang.in will list all the language # front ends it requires, even if some are required indirectly. -for lang in ${srcdir}/*/config-lang.in .. +for lang in ${srcdir}/*/config-lang.in do case $lang in - ..) - ;; # The odd quoting in the next line works around # an apparent bug in bash 1.12 on linux. ${srcdir}/[*]/config-lang.in) @@ -7404,10 +7491,9 @@ done expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'` found_languages= subdirs= -for lang in ${srcdir}/*/config-lang.in .. +for lang in ${srcdir}/*/config-lang.in do case $lang in - ..) ;; # The odd quoting in the next line works around # an apparent bug in bash 1.12 on linux. ${srcdir}/[*]/config-lang.in) ;; @@ -7516,7 +7602,7 @@ fi echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:7520: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo "configure:7606: checking whether to enable maintainer-specific portions of Makefiles" >&5 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" @@ -7561,6 +7647,8 @@ all_compilers= all_stagestuff= all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders' # List of language makefile fragments. +all_lang_makefrags= +# List of language subdirectory makefiles. Deprecated. all_lang_makefiles= # Files for gengtype all_gtfiles="$target_gtfiles" @@ -7575,13 +7663,10 @@ all_gtfiles_files_files= # The other mechanism is a set of hooks for each of the main targets # like `clean', `install', etc. -language_fragments="Make-lang" language_hooks="Make-hooks" -for s in .. $subdirs +for s in $subdirs do - if test $s != ".." - then language= boot_language= compilers= @@ -7594,9 +7679,9 @@ do echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2 exit 1 fi - all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in" + all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in" if test -f ${srcdir}/$s/Makefile.in - then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in" + then all_lang_makefiles="$s/Makefile" fi all_languages="$all_languages $language" if test "x$boot_language" = xyes @@ -7607,15 +7692,11 @@ do all_stagestuff="$all_stagestuff $stagestuff" all_outputs="$all_outputs $outputs" all_gtfiles="$all_gtfiles $gtfiles" - for f in .. $gtfiles + for f in $gtfiles do - if test $f != ".." - then all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} " all_gtfiles_files_files="$all_gtfiles_files_files ${f} " - fi done - fi done # Pick up gtfiles for c @@ -7623,22 +7704,16 @@ gtfiles= s="c" . ${srcdir}/c-config-lang.in all_gtfiles="$all_gtfiles $gtfiles" -for f in .. $gtfiles +for f in $gtfiles do - if test $f != ".." - then all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} " all_gtfiles_files_files="$all_gtfiles_files_files ${f} " - fi done check_languages= -for language in .. $all_languages +for language in $all_languages do - if test $language != ".." - then check_languages="$check_languages check-$language" - fi done # Since we can't use `::' targets, we link each language in @@ -7655,11 +7730,9 @@ target_list="all.build all.cross start.encap rest.encap tags \ for t in $target_list do x= - for lang in .. $all_languages + for lang in $all_languages do - if test $lang != ".."; then x="$x $lang.$t" - fi done echo "lang.$t: $x" >> Make-hooks done @@ -7745,9 +7818,6 @@ fi objdir=`${PWDCMD-pwd}` -# Process the language and host/target makefile fragments. -${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file" - # Substitute configuration variables @@ -7817,7 +7887,6 @@ ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xma - # Echo that links are built if test x$host = x$target then @@ -8027,11 +8096,11 @@ s%@RANLIB@%$RANLIB%g s%@INSTALL@%$INSTALL%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_DATA@%$INSTALL_DATA%g +s%@make_compare_target@%$make_compare_target%g s%@have_mktemp_command@%$have_mktemp_command%g s%@MAKEINFO@%$MAKEINFO%g s%@BUILD_INFO@%$BUILD_INFO%g s%@GENERATED_MANPAGES@%$GENERATED_MANPAGES%g -s%@make_compare_target@%$make_compare_target%g s%@FLEX@%$FLEX%g s%@BISON@%$BISON%g s%@stage1_cflags@%$stage1_cflags%g @@ -8082,20 +8151,21 @@ s%@all_compilers@%$all_compilers%g s%@all_gtfiles@%$all_gtfiles%g s%@all_gtfiles_files_langs@%$all_gtfiles_files_langs%g s%@all_gtfiles_files_files@%$all_gtfiles_files_files%g +s%@all_lang_makefrags@%$all_lang_makefrags%g s%@all_lang_makefiles@%$all_lang_makefiles%g s%@all_languages@%$all_languages%g s%@all_stagestuff@%$all_stagestuff%g s%@build_exeext@%$build_exeext%g s%@build_install_headers_dir@%$build_install_headers_dir%g s%@build_xm_file_list@%$build_xm_file_list%g -s%@build_xm_file@%$build_xm_file%g +s%@build_xm_include_list@%$build_xm_include_list%g s%@build_xm_defines@%$build_xm_defines%g s%@check_languages@%$check_languages%g s%@cc_set_by_configure@%$cc_set_by_configure%g s%@quoted_cc_set_by_configure@%$quoted_cc_set_by_configure%g s%@cpp_install_dir@%$cpp_install_dir%g -s%@dep_host_xmake_file@%$dep_host_xmake_file%g -s%@dep_tmake_file@%$dep_tmake_file%g +s%@xmake_file@%$xmake_file%g +s%@tmake_file@%$tmake_file%g s%@extra_headers_list@%$extra_headers_list%g s%@extra_objs@%$extra_objs%g s%@extra_parts@%$extra_parts%g @@ -8111,7 +8181,7 @@ s%@gcc_version_trigger@%$gcc_version_trigger%g s%@host_exeext@%$host_exeext%g s%@host_extra_gcc_objs@%$host_extra_gcc_objs%g s%@host_xm_file_list@%$host_xm_file_list%g -s%@host_xm_file@%$host_xm_file%g +s%@host_xm_include_list@%$host_xm_include_list%g s%@host_xm_defines@%$host_xm_defines%g s%@out_host_hook_obj@%$out_host_hook_obj%g s%@install@%$install%g @@ -8128,21 +8198,16 @@ s%@quoted_stage_prefix_set_by_configure@%$quoted_stage_prefix_set_by_configure%g s%@symbolic_link@%$symbolic_link%g s%@thread_file@%$thread_file%g s%@tm_file_list@%$tm_file_list%g -s%@tm_file@%$tm_file%g +s%@tm_include_list@%$tm_include_list%g s%@tm_defines@%$tm_defines%g s%@tm_p_file_list@%$tm_p_file_list%g -s%@tm_p_file@%$tm_p_file%g -s%@xm_file@%$xm_file%g +s%@tm_p_include_list@%$tm_p_include_list%g +s%@xm_file_list@%$xm_file_list%g +s%@xm_include_list@%$xm_include_list%g s%@xm_defines@%$xm_defines%g s%@c_target_objs@%$c_target_objs%g s%@cxx_target_objs@%$cxx_target_objs%g s%@target_cpu_default@%$target_cpu_default%g -/@target_overrides@/r $target_overrides -s%@target_overrides@%%g -/@host_overrides@/r $host_overrides -s%@host_overrides@%%g -/@language_fragments@/r $language_fragments -s%@language_fragments@%%g /@language_hooks@/r $language_hooks s%@language_hooks@%%g @@ -8359,6 +8424,11 @@ case x$CONFIG_HEADERS in xauto-host.h:config.in) echo > cstamp-h ;; esac +# Make sure all the subdirs exist. +for d in $subdirs +do + test -d $d || mkdir $d +done # If the host supports symlinks, point stage[1234] at ../stage[1234] so # bootstrapping and the installation procedure can still use # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks, @@ -8366,8 +8436,7 @@ esac # This is virtually a duplicate of what happens in configure.lang; we do # an extra check to make sure this only happens if ln -s can be used. if test "$symbolic_link" = "ln -s"; then - for d in .. ${subdirs} fixinc ; do - if test $d != ..; then + for d in ${subdirs} fixinc ; do STARTDIR=`${PWDCMD-pwd}` cd $d for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include @@ -8376,7 +8445,6 @@ if test "$symbolic_link" = "ln -s"; then $symbolic_link ../$t $t 2>/dev/null done cd $STARTDIR - fi done else true ; fi