Deleted Added
sdiff udiff text old ( 161660 ) new ( 169699 )
full compact
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##

--- 295 unchanged lines hidden (view full) ---

304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP GNATBIND ac_ct_GNATBIND strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default set_gcc_lib_path LIBOBJS LTLIBOBJS'
313ac_subst_files='language_hooks'
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null

--- 444 unchanged lines hidden (view full) ---

765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF

--- 68 unchanged lines hidden (view full) ---

849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-generated-files-in-srcdir
854 put copies of generated files in source dir
855 intended for creating source tarballs for users
856 without texinfo bison or flex.
857 --enable-werror enable -Werror in bootstrap stage2 and later
858 --enable-checking=LIST
859 enable expensive run-time checks. With LIST,
860 enable only specific categories of checks.
861 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
862 default is no checking
863 --enable-coverage=LEVEL
864 enable compiler\'s code coverage collection.
865 Use to measure compiler performance and locate
866 unused parts of the compiler. With LEVEL, specify
867 optimization. Values are opt, noopt,
868 default is noopt
869 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
870 --enable-multilib enable library support for multiple ABIs
871 --enable-__cxa_atexit enable __cxa_atexit for C++
872 --enable-threads enable thread usage for target GCC
873 --enable-threads=LIB use LIB thread package for target GCC
874 --enable-objc-gc enable the use of Boehm's garbage collector with
875 the GNU Objective-C runtime
876 --disable-shared don't provide a shared libgcc
877 --enable-intermodule build the compiler in one step
878 --enable-initfini-array use .init_array/.fini_array sections
879 --enable-sjlj-exceptions
880 arrange to use setjmp/longjmp exception handling
881 --disable-win32-registry
882 disable lookup of installation paths in the
883 Registry on Windows hosts
884 --enable-win32-registry enable registry lookup (default)
885 --enable-win32-registry=KEY
886 use KEY instead of GCC version as the last portion
887 of the registry key
888 --enable-maintainer-mode
889 enable make rules and dependencies not useful
890 (and sometimes confusing) to the casual installer
891 --enable-version-specific-runtime-libs
892 specify that runtime libraries should be
893 installed in a compiler-specific directory
894
895Optional Packages:
896 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
897 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
898 --with-local-prefix=DIR specifies directory to put local include
899 --with-gxx-include-dir=DIR
900 specifies directory to put g++ header files
901 --with-cpp-install-dir=DIR
902 install the user visible C preprocessor in DIR
903 (relative to PREFIX) as well as PREFIX/bin
904 --with-gnu-ld arrange to work with GNU ld.
905 --with-ld arrange to use the specified ld (full pathname)
906 --with-gnu-as arrange to work with GNU as
907 --with-as arrange to use the specified as (full pathname)
908 --with-stabs arrange to use stabs instead of host debug format
909 --with-dwarf2 force the default debug format to be DWARF 2
910 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
911 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
912 --with-system-libunwind use installed libunwind
913 --with-gc={simple,page,zone} choose the garbage collection mechanism to use
914 with the compiler
915 --with-system-zlib use installed libz
916 --with-slibdir=DIR shared libraries in DIR LIBDIR
917
918Some influential environment variables:
919 CC C compiler command
920 CFLAGS C compiler flags
921 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
922 nonstandard directory <lib dir>
923 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
924 headers in a nonstandard directory <include dir>
925 CPP C preprocessor
926
927Use these variables to override the choices made by `configure' or to help
928it to find libraries and programs with nonstandard names/locations.
929
930_ACEOF
931fi
932
933if test "$ac_init_help" = "recursive"; then

--- 427 unchanged lines hidden (view full) ---

1361
1362
1363
1364
1365
1366 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1367
1368
1369# Determine the host, build, and target systems
1370ac_aux_dir=
1371for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1372 if test -f $ac_dir/install-sh; then
1373 ac_aux_dir=$ac_dir
1374 ac_install_sh="$ac_aux_dir/install-sh -c"
1375 break
1376 elif test -f $ac_dir/install.sh; then

--- 110 unchanged lines hidden (view full) ---

1487esac
1488
1489 case ${target_alias} in
1490 "") target_noncanonical=${host_noncanonical} ;;
1491 *) target_noncanonical=${target_alias} ;;
1492esac
1493
1494
1495# Determine the target- and build-specific subdirectories
1496 # Prefix 'build-' so this never conflicts with target_subdir.
1497build_subdir="build-${build_noncanonical}"
1498# Not really a subdirectory, but here for completeness.
1499host_subdir=.
1500# No prefix.
1501target_subdir=${target_noncanonical}
1502
1503
1504# Set program_transform_name
1505test "$program_prefix" != NONE &&
1506 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1507# Use a double $ so make ignores it.

--- 108 unchanged lines hidden (view full) ---

1616yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1617echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1618 { (exit 1); exit 1; }; } ;;
1619no) ;;
1620*) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1621esac
1622fi;
1623
1624if test x${gcc_gxx_include_dir} = x; then
1625 if test x${enable_version_specific_runtime_libs} = xyes; then
1626 gcc_gxx_include_dir='${libsubdir}/include/c++'
1627 else
1628 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1629 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1630 fi
1631fi
1632
1633
1634# Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1635if test "${with_cpp_install_dir+set}" = set; then
1636 withval="$with_cpp_install_dir"
1637 if test x$withval = xyes; then

--- 49 unchanged lines hidden (view full) ---

1687
1688# Check whether --with-ld or --without-ld was given.
1689if test "${with_ld+set}" = set; then
1690 withval="$with_ld"
1691 DEFAULT_LINKER="$with_ld"
1692fi;
1693if test x"${DEFAULT_LINKER+set}" = x"set"; then
1694 if test ! -x "$DEFAULT_LINKER"; then
1695 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1696echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1697 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1698 gnu_ld_flag=yes
1699 fi
1700
1701cat >>confdefs.h <<_ACEOF
1702#define DEFAULT_LINKER "$DEFAULT_LINKER"
1703_ACEOF
1704

--- 9 unchanged lines hidden (view full) ---

1714 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1715echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1716 fi
1717else
1718 echo "$as_me:$LINENO: result: no" >&5
1719echo "${ECHO_T}no" >&6
1720fi
1721
1722# ----------------------
1723# Find default assembler
1724# ----------------------
1725
1726# With GNU as
1727
1728# Check whether --with-gnu-as or --without-gnu-as was given.
1729if test "${with_gnu_as+set}" = set; then

--- 6 unchanged lines hidden (view full) ---

1736
1737# Check whether --with-as or --without-as was given.
1738if test "${with_as+set}" = set; then
1739 withval="$with_as"
1740 DEFAULT_ASSEMBLER="$with_as"
1741fi;
1742if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1743 if test ! -x "$DEFAULT_ASSEMBLER"; then
1744 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1745echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1746 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1747 gas_flag=yes
1748 fi
1749
1750cat >>confdefs.h <<_ACEOF
1751#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1752_ACEOF
1753

--- 1043 unchanged lines hidden (view full) ---

2797echo "${ECHO_T}no" >&6
2798
2799cat >>confdefs.h <<\_ACEOF
2800#define NO_MINUS_C_MINUS_O 1
2801_ACEOF
2802
2803fi
2804
2805# autoconf is lame and doesn't give us any substitution variable for this.
2806if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2807 NO_MINUS_C_MINUS_O=yes
2808else
2809 OUTPUT_OPTION='-o $@'
2810fi
2811
2812
2813
2814# -------------------------
2815# Check C compiler features
2816# -------------------------
2817
2818
2819echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2820echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2821if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2823else
2824 save_CFLAGS="$CFLAGS"
2825CFLAGS="-Wno-long-long"
2826cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h. */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h. */
2832
2833int
2834main ()
2835{
2836
2837 ;
2838 return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_prog_cc_no_long_long=yes
2864else
2865 echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868ac_cv_prog_cc_no_long_long=no
2869fi
2870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871CFLAGS="$save_CFLAGS"
2872fi
2873echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2874echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2875
2876ac_ext=c
2877ac_cpp='$CPP $CPPFLAGS'
2878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883# On Suns, sometimes $CPP names a directory.

--- 218 unchanged lines hidden (view full) ---

3102fi
3103
3104ac_ext=c
3105ac_cpp='$CPP $CPPFLAGS'
3106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109
3110echo "$as_me:$LINENO: checking for inline" >&5
3111echo $ECHO_N "checking for inline... $ECHO_C" >&6
3112if test "${ac_cv_c_inline+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 ac_cv_c_inline=no
3116for ac_kw in inline __inline__ __inline; do
3117 cat >conftest.$ac_ext <<_ACEOF

--- 56 unchanged lines hidden (view full) ---

3174#ifndef __cplusplus
3175#define inline $ac_val
3176#endif
3177_ACEOF
3178 ;;
3179esac
3180
3181
3182echo "$as_me:$LINENO: checking for long long int" >&5
3183echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3184if test "${ac_cv_c_long_long+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187 cat >conftest.$ac_ext <<_ACEOF
3188/* confdefs.h. */
3189_ACEOF
3190cat confdefs.h >>conftest.$ac_ext
3191cat >>conftest.$ac_ext <<_ACEOF
3192/* end confdefs.h. */
3193
3194int
3195main ()
3196{
3197long long int i;
3198 ;
3199 return 0;
3200}
3201_ACEOF
3202rm -f conftest.$ac_objext
3203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204 (eval $ac_compile) 2>conftest.er1
3205 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; } &&
3218 { ac_try='test -s conftest.$ac_objext'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
3224 ac_cv_c_long_long=yes
3225else
3226 echo "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
3228
3229ac_cv_c_long_long=no
3230fi
3231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3232fi
3233echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3234echo "${ECHO_T}$ac_cv_c_long_long" >&6
3235 if test $ac_cv_c_long_long = yes; then
3236
3237cat >>confdefs.h <<\_ACEOF
3238#define HAVE_LONG_LONG 1
3239_ACEOF
3240
3241 fi
3242echo "$as_me:$LINENO: checking for __int64" >&5
3243echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3244if test "${ac_cv_c___int64+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3253
3254int
3255main ()
3256{
3257__int64 i;
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262rm -f conftest.$ac_objext
3263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3264 (eval $ac_compile) 2>conftest.er1
3265 ac_status=$?
3266 grep -v '^ *+' conftest.er1 >conftest.err
3267 rm -f conftest.er1
3268 cat conftest.err >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5

--- 6 unchanged lines hidden (view full) ---

3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; } &&
3278 { ac_try='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280 (eval $ac_try) 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3284 ac_cv_c___int64=yes
3285else
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3289ac_cv_c___int64=no
3290fi
3291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292fi
3293echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3294echo "${ECHO_T}$ac_cv_c___int64" >&6
3295 if test $ac_cv_c___int64 = yes; then
3296
3297cat >>confdefs.h <<\_ACEOF
3298#define HAVE___INT64 1
3299_ACEOF
3300
3301 fi
3302
3303echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3304echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3305if test "${gcc_cv_c__bool+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308 cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h. */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h. */
3314
3315int
3316main ()
3317{
3318_Bool foo;
3319 ;
3320 return 0;
3321}
3322_ACEOF
3323rm -f conftest.$ac_objext
3324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3326 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 gcc_cv_c__bool=yes
3346else
3347 echo "$as_me: failed program was:" >&5
3348sed 's/^/| /' conftest.$ac_ext >&5
3349
3350gcc_cv_c__bool=no
3351fi
3352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3353
3354fi
3355echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3356echo "${ECHO_T}$gcc_cv_c__bool" >&6
3357if test $gcc_cv_c__bool = yes; then
3358
3359cat >>confdefs.h <<\_ACEOF
3360#define HAVE__BOOL 1
3361_ACEOF
3362
3363fi
3364
3365
3366# sizeof(char) is 1 by definition.
3367echo "$as_me:$LINENO: checking size of void *" >&5
3368echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3369if test "${ac_cv_sizeof_void_p+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3373 cat >conftest.$ac_ext <<_ACEOF
3374/* confdefs.h. */
3375_ACEOF
3376cat confdefs.h >>conftest.$ac_ext
3377cat >>conftest.$ac_ext <<_ACEOF
3378/* end confdefs.h. */
3379#include "confdefs.h"
3380#include <sys/types.h>
3381
3382
3383int
3384main ()
3385{
3386switch (0) case 0: case (sizeof (void *) == $ac_size):;
3387 ;
3388 return 0;
3389}
3390_ACEOF
3391rm -f conftest.$ac_objext
3392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3393 (eval $ac_compile) 2>conftest.er1
3394 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 ac_cv_sizeof_void_p=$ac_size
3414else
3415 echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
3418fi
3419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3421done
3422
3423fi
3424
3425if test x$ac_cv_sizeof_void_p = x ; then
3426 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3427echo "$as_me: error: cannot determine a size for void *" >&2;}
3428 { (exit 1); exit 1; }; }
3429fi
3430echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3431echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3432
3433cat >>confdefs.h <<_ACEOF
3434#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3435_ACEOF
3436
3437
3438echo "$as_me:$LINENO: checking size of short" >&5
3439echo $ECHO_N "checking size of short... $ECHO_C" >&6
3440if test "${ac_cv_sizeof_short+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3443 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3444 cat >conftest.$ac_ext <<_ACEOF
3445/* confdefs.h. */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h. */
3450#include "confdefs.h"
3451#include <sys/types.h>
3452
3453
3454int
3455main ()
3456{
3457switch (0) case 0: case (sizeof (short) == $ac_size):;
3458 ;
3459 return 0;
3460}
3461_ACEOF
3462rm -f conftest.$ac_objext
3463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464 (eval $ac_compile) 2>conftest.er1
3465 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; } &&
3478 { ac_try='test -s conftest.$ac_objext'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 (eval $ac_try) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 ac_cv_sizeof_short=$ac_size
3485else
3486 echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489fi
3490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3491 if test x$ac_cv_sizeof_short != x ; then break; fi
3492done
3493
3494fi
3495
3496if test x$ac_cv_sizeof_short = x ; then
3497 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3498echo "$as_me: error: cannot determine a size for short" >&2;}
3499 { (exit 1); exit 1; }; }
3500fi
3501echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3502echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3503
3504cat >>confdefs.h <<_ACEOF
3505#define SIZEOF_SHORT $ac_cv_sizeof_short
3506_ACEOF
3507
3508
3509echo "$as_me:$LINENO: checking size of int" >&5
3510echo $ECHO_N "checking size of int... $ECHO_C" >&6
3511if test "${ac_cv_sizeof_int+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3515 cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
3521#include "confdefs.h"
3522#include <sys/types.h>
3523
3524
3525int
3526main ()
3527{
3528switch (0) case 0: case (sizeof (int) == $ac_size):;
3529 ;
3530 return 0;
3531}
3532_ACEOF
3533rm -f conftest.$ac_objext
3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>conftest.er1
3536 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_cv_sizeof_int=$ac_size
3556else
3557 echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
3560fi
3561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3562 if test x$ac_cv_sizeof_int != x ; then break; fi
3563done
3564
3565fi
3566
3567if test x$ac_cv_sizeof_int = x ; then
3568 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3569echo "$as_me: error: cannot determine a size for int" >&2;}
3570 { (exit 1); exit 1; }; }
3571fi
3572echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3573echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3574
3575cat >>confdefs.h <<_ACEOF
3576#define SIZEOF_INT $ac_cv_sizeof_int
3577_ACEOF
3578
3579
3580echo "$as_me:$LINENO: checking size of long" >&5
3581echo $ECHO_N "checking size of long... $ECHO_C" >&6
3582if test "${ac_cv_sizeof_long+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3586 cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h. */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h. */
3592#include "confdefs.h"
3593#include <sys/types.h>
3594
3595
3596int
3597main ()
3598{
3599switch (0) case 0: case (sizeof (long) == $ac_size):;
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604rm -f conftest.$ac_objext
3605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>conftest.er1
3607 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest.$ac_objext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_cv_sizeof_long=$ac_size
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631fi
3632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633 if test x$ac_cv_sizeof_long != x ; then break; fi
3634done
3635
3636fi
3637
3638if test x$ac_cv_sizeof_long = x ; then
3639 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3640echo "$as_me: error: cannot determine a size for long" >&2;}
3641 { (exit 1); exit 1; }; }
3642fi
3643echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3644echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3645
3646cat >>confdefs.h <<_ACEOF
3647#define SIZEOF_LONG $ac_cv_sizeof_long
3648_ACEOF
3649
3650
3651if test $ac_cv_c_long_long = yes; then
3652 echo "$as_me:$LINENO: checking size of long long" >&5
3653echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3654if test "${ac_cv_sizeof_long_long+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3658 cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
3664#include "confdefs.h"
3665#include <sys/types.h>
3666
3667
3668int
3669main ()
3670{
3671switch (0) case 0: case (sizeof (long long) == $ac_size):;
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676rm -f conftest.$ac_objext
3677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>conftest.er1
3679 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; } &&
3692 { ac_try='test -s conftest.$ac_objext'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 ac_cv_sizeof_long_long=$ac_size
3699else
3700 echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
3703fi
3704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3706done
3707
3708fi
3709
3710if test x$ac_cv_sizeof_long_long = x ; then
3711 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3712echo "$as_me: error: cannot determine a size for long long" >&2;}
3713 { (exit 1); exit 1; }; }
3714fi
3715echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3716echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3717
3718cat >>confdefs.h <<_ACEOF
3719#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3720_ACEOF
3721
3722
3723fi
3724if test $ac_cv_c___int64 = yes; then
3725 echo "$as_me:$LINENO: checking size of __int64" >&5
3726echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3727if test "${ac_cv_sizeof___int64+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729else
3730 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3731 cat >conftest.$ac_ext <<_ACEOF
3732/* confdefs.h. */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h. */
3737#include "confdefs.h"
3738#include <sys/types.h>
3739
3740
3741int
3742main ()
3743{
3744switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3745 ;
3746 return 0;
3747}
3748_ACEOF
3749rm -f conftest.$ac_objext
3750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>conftest.er1
3752 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; } &&
3765 { ac_try='test -s conftest.$ac_objext'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; }; then
3771 ac_cv_sizeof___int64=$ac_size
3772else
3773 echo "$as_me: failed program was:" >&5
3774sed 's/^/| /' conftest.$ac_ext >&5
3775
3776fi
3777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3778 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3779done
3780
3781fi
3782
3783if test x$ac_cv_sizeof___int64 = x ; then
3784 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3785echo "$as_me: error: cannot determine a size for __int64" >&2;}
3786 { (exit 1); exit 1; }; }
3787fi
3788echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3789echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3790
3791cat >>confdefs.h <<_ACEOF
3792#define SIZEOF___INT64 $ac_cv_sizeof___int64
3793_ACEOF
3794
3795
3796fi
3797
3798# -----------------
3799# Find Ada compiler
3800# -----------------
3801
3802# See if GNAT has been installed
3803
3804
3805
3806if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3808set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3809echo "$as_me:$LINENO: checking for $ac_word" >&5
3810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811if test "${ac_cv_prog_GNATBIND+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814 if test -n "$GNATBIND"; then
3815 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3816else
3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818for as_dir in $PATH
3819do
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3827 fi
3828done
3829done
3830
3831fi
3832fi
3833GNATBIND=$ac_cv_prog_GNATBIND
3834if test -n "$GNATBIND"; then
3835 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3836echo "${ECHO_T}$GNATBIND" >&6
3837else
3838 echo "$as_me:$LINENO: result: no" >&5
3839echo "${ECHO_T}no" >&6
3840fi
3841
3842fi
3843if test -z "$ac_cv_prog_GNATBIND"; then
3844 ac_ct_GNATBIND=$GNATBIND
3845 # Extract the first word of "gnatbind", so it can be a program name with args.
3846set dummy gnatbind; ac_word=$2
3847echo "$as_me:$LINENO: checking for $ac_word" >&5
3848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851else
3852 if test -n "$ac_ct_GNATBIND"; then
3853 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3854else
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3865 fi
3866done
3867done
3868
3869 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3870fi
3871fi
3872ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3873if test -n "$ac_ct_GNATBIND"; then
3874 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3875echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3876else
3877 echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
3879fi
3880
3881 GNATBIND=$ac_ct_GNATBIND
3882else
3883 GNATBIND="$ac_cv_prog_GNATBIND"
3884fi
3885
3886echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3887echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3888if test "${gcc_cv_cc_supports_ada+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 cat >conftest.adb <<EOF
3892procedure conftest is begin null; end conftest;
3893EOF
3894gcc_cv_cc_supports_ada=no
3895# There is a bug in old released versions of GCC which causes the
3896# driver to exit successfully when the appropriate language module
3897# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3898# Therefore we must check for the error message as well as an
3899# unsuccessful exit.
3900# Other compilers, like HP Tru64 UNIX cc, exit successfully when
3901# given a .adb file, but produce no object file. So we must check
3902# if an object file was really produced to guard against this.
3903errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3904if test x"$errors" = x && test -f conftest.$ac_objext; then
3905 gcc_cv_cc_supports_ada=yes
3906 break
3907fi
3908rm -f conftest.*
3909fi
3910echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3911echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3912
3913if test x$GNATBIND != xno && test x$gcc_cv_cc_supports_ada != xno; then
3914 have_gnat=yes
3915else
3916 have_gnat=no
3917fi
3918
3919
3920# ---------------------
3921# Warnings and checking
3922# ---------------------
3923
3924strict1_warn=
3925if test $ac_cv_prog_cc_no_long_long = yes ; then
3926 strict1_warn="-pedantic -Wno-long-long"
3927fi
3928
3929
3930# If the native compiler is GCC, we can enable warnings even in stage1.
3931# That's useful for people building cross-compilers, or just running a
3932# quick `make'.
3933warn_cflags=
3934if test "x$GCC" = "xyes"; then
3935 warn_cflags='$(GCC_WARN_CFLAGS)'
3936fi
3937
3938
3939# Enable -Werror in bootstrap stage2 and later.
3940# Change the default to "no" on release branches.
3941# Check whether --enable-werror or --disable-werror was given.
3942if test "${enable_werror+set}" = set; then
3943 enableval="$enable_werror"
3944
3945else
3946 enable_werror=no
3947fi;
3948if test x$enable_werror = xyes ; then
3949 WERROR=-Werror
3950fi
3951
3952
3953# Enable expensive internal checks
3954# Check whether --enable-checking or --disable-checking was given.
3955if test "${enable_checking+set}" = set; then
3956 enableval="$enable_checking"
3957 ac_checking=
3958ac_tree_checking=
3959ac_rtl_checking=
3960ac_rtlflag_checking=
3961ac_gc_checking=
3962ac_gc_always_collect=
3963ac_fold_checking=
3964case "${enableval}" in
3965yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3966 ac_rtlflag_checking=1 ;;
3967no) ;;
3968*) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3969 set fnord $enableval; shift
3970 IFS="$ac_save_IFS"
3971 for check
3972 do
3973 case $check in
3974 misc) ac_checking=1 ;;
3975 tree) ac_tree_checking=1 ;;
3976 rtlflag) ac_rtlflag_checking=1 ;;
3977 rtl) ac_rtl_checking=1 ;;
3978 gc) ac_gc_checking=1 ;;
3979 gcac) ac_gc_always_collect=1 ;;
3980 fold) ac_fold_checking=1 ;;
3981 valgrind) ac_checking_valgrind=1 ;;
3982 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3983echo "$as_me: error: unknown check category $check" >&2;}
3984 { (exit 1); exit 1; }; } ;;
3985 esac
3986 done
3987 ;;
3988esac
3989
3990else
3991 # By default, disable all checks for release versions of GCC.
3992ac_checking=; ac_tree_checking=; ac_gc_checking=; ac_rtlflag_checking=;
3993fi;
3994nocommon_flag=""
3995if test x$ac_checking != x ; then
3996
3997cat >>confdefs.h <<\_ACEOF
3998#define ENABLE_CHECKING 1
3999_ACEOF
4000
4001 nocommon_flag=-fno-common
4002fi
4003
4004if test x$ac_tree_checking != x ; then
4005
4006cat >>confdefs.h <<\_ACEOF
4007#define ENABLE_TREE_CHECKING 1
4008_ACEOF
4009
4010fi
4011if test x$ac_rtl_checking != x ; then
4012
4013cat >>confdefs.h <<\_ACEOF
4014#define ENABLE_RTL_CHECKING 1
4015_ACEOF
4016
4017fi
4018if test x$ac_rtlflag_checking != x ; then
4019
4020cat >>confdefs.h <<\_ACEOF
4021#define ENABLE_RTL_FLAG_CHECKING 1
4022_ACEOF
4023
4024fi
4025if test x$ac_gc_checking != x ; then
4026
4027cat >>confdefs.h <<\_ACEOF
4028#define ENABLE_GC_CHECKING 1
4029_ACEOF
4030
4031fi
4032if test x$ac_gc_always_collect != x ; then
4033
4034cat >>confdefs.h <<\_ACEOF
4035#define ENABLE_GC_ALWAYS_COLLECT 1
4036_ACEOF
4037
4038fi
4039if test x$ac_fold_checking != x ; then
4040
4041cat >>confdefs.h <<\_ACEOF
4042#define ENABLE_FOLD_CHECKING 1
4043_ACEOF
4044
4045fi
4046valgrind_path_defines=
4047valgrind_command=
4048
4049
4050echo "$as_me:$LINENO: checking for egrep" >&5
4051echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4052if test "${ac_cv_prog_egrep+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
4055 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4056 then ac_cv_prog_egrep='grep -E'
4057 else ac_cv_prog_egrep='egrep'
4058 fi
4059fi
4060echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4061echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4062 EGREP=$ac_cv_prog_egrep
4063
4064
4065echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4066echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4067if test "${ac_cv_header_stdc+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070 cat >conftest.$ac_ext <<_ACEOF
4071/* confdefs.h. */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h. */
4076#include <stdlib.h>
4077#include <stdarg.h>
4078#include <string.h>
4079#include <float.h>
4080
4081int
4082main ()
4083{
4084
4085 ;
4086 return 0;
4087}
4088_ACEOF
4089rm -f conftest.$ac_objext
4090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>conftest.er1

--- 11 unchanged lines hidden (view full) ---

4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 (eval $ac_try) 2>&5
4108 ac_status=$?
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 ac_cv_header_stdc=yes
4112else
4113 echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
4115
4116ac_cv_header_stdc=no
4117fi
4118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4119
4120if test $ac_cv_header_stdc = yes; then
4121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4122 cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h. */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h. */
4128#include <string.h>
4129
4130_ACEOF
4131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132 $EGREP "memchr" >/dev/null 2>&1; then
4133 :
4134else
4135 ac_cv_header_stdc=no
4136fi
4137rm -f conftest*
4138
4139fi
4140
4141if test $ac_cv_header_stdc = yes; then
4142 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4143 cat >conftest.$ac_ext <<_ACEOF
4144/* confdefs.h. */
4145_ACEOF
4146cat confdefs.h >>conftest.$ac_ext
4147cat >>conftest.$ac_ext <<_ACEOF
4148/* end confdefs.h. */
4149#include <stdlib.h>
4150
4151_ACEOF
4152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153 $EGREP "free" >/dev/null 2>&1; then
4154 :
4155else
4156 ac_cv_header_stdc=no
4157fi
4158rm -f conftest*
4159
4160fi
4161
4162if test $ac_cv_header_stdc = yes; then
4163 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4164 if test "$cross_compiling" = yes; then
4165 :
4166else
4167 cat >conftest.$ac_ext <<_ACEOF
4168/* confdefs.h. */
4169_ACEOF
4170cat confdefs.h >>conftest.$ac_ext
4171cat >>conftest.$ac_ext <<_ACEOF
4172/* end confdefs.h. */
4173#include <ctype.h>
4174#if ((' ' & 0x0FF) == 0x020)
4175# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4176# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4177#else
4178# define ISLOWER(c) \
4179 (('a' <= (c) && (c) <= 'i') \
4180 || ('j' <= (c) && (c) <= 'r') \
4181 || ('s' <= (c) && (c) <= 'z'))
4182# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4183#endif
4184
4185#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4186int
4187main ()
4188{
4189 int i;
4190 for (i = 0; i < 256; i++)
4191 if (XOR (islower (i), ISLOWER (i))
4192 || toupper (i) != TOUPPER (i))
4193 exit(2);
4194 exit (0);
4195}
4196_ACEOF
4197rm -f conftest$ac_exeext
4198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4199 (eval $ac_link) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 :
4209else
4210 echo "$as_me: program exited with status $ac_status" >&5
4211echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214( exit $ac_status )
4215ac_cv_header_stdc=no
4216fi
4217rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4218fi
4219fi
4220fi
4221echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4222echo "${ECHO_T}$ac_cv_header_stdc" >&6
4223if test $ac_cv_header_stdc = yes; then
4224
4225cat >>confdefs.h <<\_ACEOF
4226#define STDC_HEADERS 1
4227_ACEOF
4228
4229fi
4230
4231# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4242 inttypes.h stdint.h unistd.h
4243do
4244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4245echo "$as_me:$LINENO: checking for $ac_header" >&5
4246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4247if eval "test \"\${$as_ac_Header+set}\" = set"; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
4250 cat >conftest.$ac_ext <<_ACEOF
4251/* confdefs.h. */
4252_ACEOF
4253cat confdefs.h >>conftest.$ac_ext
4254cat >>conftest.$ac_ext <<_ACEOF
4255/* end confdefs.h. */
4256$ac_includes_default
4257
4258#include <$ac_header>
4259_ACEOF
4260rm -f conftest.$ac_objext
4261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262 (eval $ac_compile) 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5

--- 7 unchanged lines hidden (view full) ---

4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 eval "$as_ac_Header=yes"
4283else
4284 echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
4287eval "$as_ac_Header=no"
4288fi
4289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4290fi
4291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4293if test `eval echo '${'$as_ac_Header'}'` = yes; then
4294 cat >>confdefs.h <<_ACEOF
4295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4296_ACEOF
4297
4298fi
4299
4300done
4301
4302
4303if test "${ac_cv_header_valgrind_h+set}" = set; then
4304 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4305echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4306if test "${ac_cv_header_valgrind_h+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308fi
4309echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4310echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6

--- 129 unchanged lines hidden (view full) ---

4440if test $ac_cv_header_valgrind_h = yes; then
4441 have_valgrind_h=yes
4442else
4443 have_valgrind_h=no
4444fi
4445
4446
4447
4448if test x$ac_checking_valgrind != x ; then
4449 # It is certainly possible that there's valgrind but no valgrind.h.
4450 # GCC relies on making annotations so we must have both.
4451 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4452echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4453 cat >conftest.$ac_ext <<_ACEOF
4454/* confdefs.h. */
4455_ACEOF
4456cat confdefs.h >>conftest.$ac_ext

--- 168 unchanged lines hidden (view full) ---

4625#define HAVE_MEMCHECK_H 1
4626_ACEOF
4627
4628 fi
4629fi
4630
4631
4632
4633# Enable code coverage collection
4634# Check whether --enable-coverage or --disable-coverage was given.
4635if test "${enable_coverage+set}" = set; then
4636 enableval="$enable_coverage"
4637 case "${enableval}" in
4638yes|noopt)
4639 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4640 ;;
4641opt)
4642 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4643 ;;
4644*)
4645 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4646echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4647 { (exit 1); exit 1; }; }
4648 ;;
4649esac
4650else
4651 coverage_flags=""
4652fi;
4653
4654
4655# Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4656if test "${enable_gather_detailed_mem_stats+set}" = set; then

--- 36 unchanged lines hidden (view full) ---

4693
4694# Enable __cxa_atexit for C++.
4695# Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4696if test "${enable___cxa_atexit+set}" = set; then
4697 enableval="$enable___cxa_atexit"
4698
4699fi;
4700
4701# Enable threads
4702# Pass with no value to take the default
4703# Pass with a value to specify a thread package
4704# Check whether --enable-threads or --disable-threads was given.
4705if test "${enable_threads+set}" = set; then
4706 enableval="$enable_threads"
4707
4708else
4709 enable_threads=''
4710fi;
4711# Save in case it gets overwritten in config.gcc
4712enable_threads_flag=$enable_threads
4713
4714# Check whether --enable-objc-gc or --disable-objc-gc was given.
4715if test "${enable_objc_gc+set}" = set; then
4716 enableval="$enable_objc_gc"
4717 if test x$enable_objc_gc = xno; then
4718 objc_boehm_gc=''
4719else
4720 objc_boehm_gc=1
4721fi

--- 29 unchanged lines hidden (view full) ---

4751 esac
4752
4753else
4754 enable_shared=yes
4755fi;
4756
4757
4758
4759# Check whether --with-sysroot or --without-sysroot was given.
4760if test "${with_sysroot+set}" = set; then
4761 withval="$with_sysroot"
4762
4763 case ${with_sysroot} in
4764 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4765 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4766 esac

--- 37 unchanged lines hidden (view full) ---

4804 yes) onestep="-onestep";;
4805 *) onestep="";;
4806esac
4807else
4808 onestep=""
4809fi;
4810
4811
4812# -------------------------
4813# Checks for other programs
4814# -------------------------
4815
4816echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4817echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4818set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4819if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then

--- 59 unchanged lines hidden (view full) ---

4879else
4880 echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882fi
4883
4884 test -n "$AWK" && break
4885done
4886
4887# We need awk to run opts.sh (to create options.c and options.h).
4888# Bail out if it's missing.
4889case ${AWK} in
4890 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4891echo "$as_me: error: can't build without awk, bailing out" >&2;}
4892 { (exit 1); exit 1; }; } ;;
4893esac
4894
4895echo "$as_me:$LINENO: checking whether ln works" >&5
4896echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4897if test "${gcc_cv_prog_LN+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900 rm -f conftestdata_t
4901echo >conftestdata_f
4902if ln conftestdata_f conftestdata_t 2>/dev/null
4903then
4904 gcc_cv_prog_LN="ln"
4905else
4906 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4907 then
4908 gcc_cv_prog_LN="ln -s"
4909 else
4910 gcc_cv_prog_LN=cp
4911 fi
4912fi
4913rm -f conftestdata_f conftestdata_t
4914
4915fi
4916LN="$gcc_cv_prog_LN"
4917if test "$gcc_cv_prog_LN" = "ln"; then
4918 echo "$as_me:$LINENO: result: yes" >&5
4919echo "${ECHO_T}yes" >&6
4920else
4921 if test "$gcc_cv_prog_LN" = "ln -s"; then
4922 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4923echo "${ECHO_T}no, using ln -s" >&6
4924 else
4925 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4926echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4927 fi
4928fi
4929
4930echo "$as_me:$LINENO: checking whether ln -s works" >&5
4931echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4932if test "${gcc_cv_prog_LN_S+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935 rm -f conftestdata_t
4936echo >conftestdata_f
4937if ln -s conftestdata_f conftestdata_t 2>/dev/null
4938then
4939 gcc_cv_prog_LN_S="ln -s"
4940else
4941 if ln conftestdata_f conftestdata_t 2>/dev/null
4942 then
4943 gcc_cv_prog_LN_S=ln
4944 else
4945 gcc_cv_prog_LN_S=cp
4946 fi
4947fi
4948rm -f conftestdata_f conftestdata_t
4949
4950fi
4951LN_S="$gcc_cv_prog_LN_S"
4952if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4953 echo "$as_me:$LINENO: result: yes" >&5
4954echo "${ECHO_T}yes" >&6
4955else
4956 if test "$gcc_cv_prog_LN_S" = "ln"; then
4957 echo "$as_me:$LINENO: result: no, using ln" >&5
4958echo "${ECHO_T}no, using ln" >&6
4959 else
4960 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4961echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4962 fi
4963fi
4964
4965if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4967set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4968echo "$as_me:$LINENO: checking for $ac_word" >&5
4969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4970if test "${ac_cv_prog_RANLIB+set}" = set; then

--- 66 unchanged lines hidden (view full) ---

5037echo "${ECHO_T}no" >&6
5038fi
5039
5040 RANLIB=$ac_ct_RANLIB
5041else
5042 RANLIB="$ac_cv_prog_RANLIB"
5043fi
5044
5045# Find a good install program. We prefer a C program (faster),
5046# so one script is as good as another. But avoid the broken or
5047# incompatible versions:
5048# SysV /etc/install, /usr/sbin/install
5049# SunOS /usr/etc/install
5050# IRIX /sbin/install
5051# AIX /bin/install
5052# AFS /usr/afsws/bin/install, which mishandles nonexistent args

--- 118 unchanged lines hidden (view full) ---

5171 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5172echo "${ECHO_T}$have_mktemp_command" >&6
5173else
5174 echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
5176fi
5177
5178
5179# Do we have a single-tree copy of texinfo?
5180if test -f $srcdir/../texinfo/Makefile.in; then
5181 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5182 gcc_cv_prog_makeinfo_modern=yes
5183 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5184echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5185else
5186 # See if makeinfo has been installed and is modern enough
5187 # that we can use it.
5188 # Extract the first word of "makeinfo", so it can be a program name with args.
5189set dummy makeinfo; ac_word=$2
5190echo "$as_me:$LINENO: checking for $ac_word" >&5
5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195 if test -n "$MAKEINFO"; then
5196 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.

--- 27 unchanged lines hidden (view full) ---

5224 # Found it, now check the version.
5225 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5226echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5227if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 ac_prog_version=`$MAKEINFO --version 2>&1 |
5231 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5232 echo "configure:5232: version of makeinfo is $ac_prog_version" >&5
5233 case $ac_prog_version in
5234 '') gcc_cv_prog_makeinfo_modern=no;;
5235 4.[2-9]*)
5236 gcc_cv_prog_makeinfo_modern=yes;;
5237 *) gcc_cv_prog_makeinfo_modern=no;;
5238 esac
5239
5240fi
5241echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5242echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5243else
5244 gcc_cv_prog_makeinfo_modern=no
5245fi
5246
5247fi
5248
5249if test $gcc_cv_prog_makeinfo_modern = no; then
5250 { echo "$as_me:$LINENO: WARNING:
5251*** Makeinfo is missing or too old.
5252*** Info documentation will not be built." >&5
5253echo "$as_me: WARNING:
5254*** Makeinfo is missing or too old.
5255*** Info documentation will not be built." >&2;}
5256 BUILD_INFO=
5257else
5258 BUILD_INFO=info
5259fi
5260
5261# Is pod2man recent enough to regenerate manpages?
5262echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5263echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5264if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5265 echo "$as_me:$LINENO: result: yes" >&5
5266echo "${ECHO_T}yes" >&6
5267 GENERATED_MANPAGES=generated-manpages
5268else
5269 echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
5271 GENERATED_MANPAGES=
5272fi
5273
5274# How about lex?
5275if test -f $srcdir/../flex/skel.c; then
5276 FLEX='$(objdir)/../flex/flex'
5277else
5278 # Extract the first word of "flex", so it can be a program name with args.
5279set dummy flex; ac_word=$2
5280echo "$as_me:$LINENO: checking for $ac_word" >&5
5281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282if test "${ac_cv_prog_FLEX+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5284else
5285 if test -n "$FLEX"; then
5286 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5287else
5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH
5290do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_FLEX="flex"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299done
5300done
5301
5302 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5303fi
5304fi
5305FLEX=$ac_cv_prog_FLEX
5306if test -n "$FLEX"; then
5307 echo "$as_me:$LINENO: result: $FLEX" >&5
5308echo "${ECHO_T}$FLEX" >&6
5309else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312fi
5313
5314fi
5315
5316# Bison?
5317# The -L switch is so bison can find its skeleton file.
5318if test -f $srcdir/../bison/bison.simple; then
5319 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5320else
5321 # Extract the first word of "bison", so it can be a program name with args.
5322set dummy bison; ac_word=$2
5323echo "$as_me:$LINENO: checking for $ac_word" >&5
5324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325if test "${ac_cv_prog_BISON+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5327else
5328 if test -n "$BISON"; then
5329 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_BISON="bison"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5341 fi
5342done
5343done
5344
5345 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5346fi
5347fi
5348BISON=$ac_cv_prog_BISON
5349if test -n "$BISON"; then
5350 echo "$as_me:$LINENO: result: $BISON" >&5
5351echo "${ECHO_T}$BISON" >&6
5352else
5353 echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355fi
5356
5357fi
5358
5359# --------------------
5360# Checks for C headers
5361# --------------------
5362
5363echo "$as_me:$LINENO: checking for GNU C library" >&5
5364echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5365if test "${gcc_cv_glibc+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6

--- 289 unchanged lines hidden (view full) ---

5656if test $ac_cv_header_time = yes; then
5657
5658cat >>confdefs.h <<\_ACEOF
5659#define TIME_WITH_SYS_TIME 1
5660_ACEOF
5661
5662fi
5663
5664echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5665echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5666if test "${ac_cv_header_stdbool_h+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 cat >conftest.$ac_ext <<_ACEOF
5670/* confdefs.h. */
5671_ACEOF
5672cat confdefs.h >>conftest.$ac_ext
5673cat >>conftest.$ac_ext <<_ACEOF
5674/* end confdefs.h. */
5675#include <stdbool.h>
5676int
5677main ()
5678{
5679bool foo = false;
5680 ;
5681 return 0;
5682}
5683_ACEOF
5684rm -f conftest.$ac_objext
5685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag"
5694 || test ! -s conftest.err'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 (eval $ac_try) 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5702 (eval $ac_try) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_cv_header_stdbool_h=yes
5707else
5708 echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
5711ac_cv_header_stdbool_h=no
5712fi
5713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5714fi
5715echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5716echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5717if test $ac_cv_header_stdbool_h = yes; then
5718
5719cat >>confdefs.h <<\_ACEOF
5720#define HAVE_STDBOOL_H 1
5721_ACEOF
5722
5723fi
5724
5725echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5726echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5727if test "${gcc_cv_header_string+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h. */
5732_ACEOF

--- 138 unchanged lines hidden (view full) ---

5871
5872
5873
5874
5875
5876
5877
5878
5879for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5880 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5881 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5882 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5883do
5884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5885echo "$as_me:$LINENO: checking for $ac_header" >&5
5886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5887if eval "test \"\${$as_ac_Header+set}\" = set"; then

--- 249 unchanged lines hidden (view full) ---

6137
6138fi
6139fi
6140echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6141echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6142if test "${ac_cv_c_bigendian+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145 ac_cv_c_bigendian=unknown
6146# See if sys/param.h defines the BYTE_ORDER macro.
6147cat >conftest.$ac_ext <<_ACEOF
6148/* confdefs.h. */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h. */
6153#include <sys/types.h>
6154#include <sys/param.h>
6155int
6156main ()
6157{
6158
6159#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6160 bogus endian macros
6161#endif
6162 ;
6163 return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext
6167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>conftest.er1
6169 ac_status=$?

--- 19 unchanged lines hidden (view full) ---

6189cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
6195#include <sys/types.h>
6196#include <sys/param.h>
6197int
6198main ()
6199{
6200
6201#if BYTE_ORDER != BIG_ENDIAN
6202 not big endian
6203#endif
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext
6209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210 (eval $ac_compile) 2>conftest.er1
6211 ac_status=$?

--- 22 unchanged lines hidden (view full) ---

6234
6235ac_cv_c_bigendian=no
6236fi
6237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6238else
6239 echo "$as_me: failed program was:" >&5
6240sed 's/^/| /' conftest.$ac_ext >&5
6241
6242fi
6243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244if test $ac_cv_c_bigendian = unknown; then
6245if test "$cross_compiling" = yes; then
6246 echo $ac_n "cross-compiling... " 2>&6
6247else
6248 cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h. */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h. */
6254main () {
6255 /* Are we little or big endian? From Harbison&Steele. */
6256 union
6257 {
6258 long l;
6259 char c[sizeof (long)];
6260 } u;
6261 u.l = 1;
6262 exit (u.c[sizeof (long) - 1] == 1);

--- 17 unchanged lines hidden (view full) ---

6280sed 's/^/| /' conftest.$ac_ext >&5
6281
6282( exit $ac_status )
6283ac_cv_c_bigendian=yes
6284fi
6285rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6286fi
6287fi
6288fi
6289echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6290echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6291if test $ac_cv_c_bigendian = unknown; then
6292echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6293echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6294
6295cat >conftest.c <<EOF
6296short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6297short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6298void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6299short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6300short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6301void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6302int main() { _ascii (); _ebcdic (); return 0; }
6303EOF
6304 if test -f conftest.c ; then
6305 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6306 if test `grep -l BIGenDianSyS conftest.o` ; then
6307 echo $ac_n ' big endian probe OK, ' 1>&6
6308 ac_cv_c_bigendian=yes
6309 fi
6310 if test `grep -l LiTTleEnDian conftest.o` ; then
6311 echo $ac_n ' little endian probe OK, ' 1>&6
6312 if test $ac_cv_c_bigendian = yes ; then
6313 ac_cv_c_bigendian=unknown;
6314 else
6315 ac_cv_c_bigendian=no
6316 fi
6317 fi
6318 echo $ac_n 'guessing bigendian ... ' >&6
6319 fi
6320 fi
6321echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6322echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6323fi
6324if test $ac_cv_c_bigendian = yes; then
6325
6326cat >>confdefs.h <<\_ACEOF
6327#define WORDS_BIGENDIAN 1
6328_ACEOF
6329
6330
6331cat >>confdefs.h <<\_ACEOF
6332#define HOST_WORDS_BIG_ENDIAN 1
6333_ACEOF
6334
6335 BYTEORDER=4321
6336else
6337 BYTEORDER=1234
6338fi
6339
6340cat >>confdefs.h <<_ACEOF
6341#define BYTEORDER $BYTEORDER
6342_ACEOF
6343
6344if test $ac_cv_c_bigendian = unknown; then
6345 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6346echo "$as_me: error: unknown endianess - sorry" >&2;}
6347 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6348fi
6349
6350
6351# --------
6352# UNSORTED
6353# --------
6354
6355# Stage specific cflags for build.
6356stage1_cflags=
6357case $build in
6358vax-*-*)
6359 if test x$GCC = xyes
6360 then
6361 stage1_cflags="-Wa,-J"
6362 else
6363 stage1_cflags="-J"
6364 fi
6365 ;;
6366powerpc-*-darwin*)
6367 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6368 # sources; use -no-cpp-precomp to get to GNU cpp.
6369 # Apple's GCC has bugs in designated initializer handling, so disable
6370 # that too.
6371 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6372 ;;
6373esac
6374
6375
6376# These libraries may be used by collect2.
6377# We may need a special search path to get them linked.
6378echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6379echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6380if test "${gcc_cv_collect2_libs+set}" = set; then

--- 423 unchanged lines hidden (view full) ---

6804
6805
6806
6807
6808
6809
6810
6811
6812for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6813 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6814 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6815 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6816 setlocale
6817do
6818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6819echo "$as_me:$LINENO: checking for $ac_func" >&5
6820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6821if eval "test \"\${$as_ac_var+set}\" = set"; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823else
6824 cat >conftest.$ac_ext <<_ACEOF

--- 352 unchanged lines hidden (view full) ---

7177 ;;
7178 *)
7179 TARGET_GETGROUPS_T=gid_t
7180 ;;
7181 esac
7182fi
7183
7184
7185echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7186echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7187if test "${gcc_cv_func_printf_ptr+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190 if test "$cross_compiling" = yes; then
7191 gcc_cv_func_printf_ptr=no
7192else
7193 cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h. */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h. */
7199#include <stdio.h>
7200
7201int main()
7202{
7203 char buf[64];
7204 char *p = buf, *q = NULL;
7205 sprintf(buf, "%p", p);
7206 sscanf(buf, "%p", &q);
7207 return (p != q);
7208}
7209_ACEOF
7210rm -f conftest$ac_exeext
7211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 (eval $ac_try) 2>&5
7218 ac_status=$?
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
7221 gcc_cv_func_printf_ptr=yes
7222else
7223 echo "$as_me: program exited with status $ac_status" >&5
7224echo "$as_me: failed program was:" >&5
7225sed 's/^/| /' conftest.$ac_ext >&5
7226
7227( exit $ac_status )
7228gcc_cv_func_printf_ptr=no
7229fi
7230rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7231fi
7232rm -f core core.* *.core
7233fi
7234echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7235echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7236if test $gcc_cv_func_printf_ptr = yes ; then
7237
7238cat >>confdefs.h <<\_ACEOF
7239#define HAVE_PRINTF_PTR 1
7240_ACEOF
7241
7242fi
7243
7244if test $ac_cv_header_sys_mman_h != yes \
7245 || test $ac_cv_func_mmap != yes; then
7246 gcc_cv_func_mmap_file=no
7247 gcc_cv_func_mmap_dev_zero=no
7248 gcc_cv_func_mmap_anon=no
7249else
7250 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7251echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7252if test "${gcc_cv_func_mmap_file+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6

--- 607 unchanged lines hidden (view full) ---

7861cat >>confdefs.h <<\_ACEOF
7862#define HAVE_WORKING_FORK 1
7863_ACEOF
7864
7865fi
7866
7867
7868
7869
7870 am_cv_lib_iconv_ldpath=
7871
7872# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7873if test "${with_libiconv_prefix+set}" = set; then
7874 withval="$with_libiconv_prefix"
7875
7876 for dir in `echo "$withval" | tr : ' '`; do
7877 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7878 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7879 done
7880
7881fi;
7882
7883
7884for ac_header in iconv.h
7885do
7886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7887echo "$as_me:$LINENO: checking for $ac_header" >&5
7888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7889if eval "test \"\${$as_ac_Header+set}\" = set"; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7891else
7892 cat >conftest.$ac_ext <<_ACEOF
7893/* confdefs.h. */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h. */
7898#include <$ac_header>
7899_ACEOF
7900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } >/dev/null; then
7908 if test -s conftest.err; then
7909 ac_cpp_err=$ac_c_preproc_warn_flag
7910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7911 else
7912 ac_cpp_err=
7913 fi
7914else
7915 ac_cpp_err=yes
7916fi
7917if test -z "$ac_cpp_err"; then
7918 eval "$as_ac_Header=yes"
7919else
7920 echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 eval "$as_ac_Header=no"
7924fi
7925rm -f conftest.err conftest.$ac_ext
7926fi
7927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7929if test `eval echo '${'$as_ac_Header'}'` = yes; then
7930 cat >>confdefs.h <<_ACEOF
7931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932_ACEOF
7933
7934fi
7935done
7936
7937
7938 echo "$as_me:$LINENO: checking for iconv" >&5
7939echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7940if test "${am_cv_func_iconv+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943
7944 am_cv_func_iconv="no, consider installing GNU libiconv"
7945 am_cv_lib_iconv=no

--- 42 unchanged lines hidden (view full) ---

7988 echo "$as_me: failed program was:" >&5
7989sed 's/^/| /' conftest.$ac_ext >&5
7990
7991fi
7992rm -f conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994 if test "$am_cv_func_iconv" != yes; then
7995 am_save_LIBS="$LIBS"
7996 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7997 cat >conftest.$ac_ext <<_ACEOF
7998/* confdefs.h. */
7999_ACEOF
8000cat confdefs.h >>conftest.$ac_ext
8001cat >>conftest.$ac_ext <<_ACEOF
8002/* end confdefs.h. */
8003#include <stdlib.h>
8004#include <iconv.h>

--- 45 unchanged lines hidden (view full) ---

8050echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8051echo "${ECHO_T}$am_cv_func_iconv" >&6
8052 if test "$am_cv_func_iconv" = yes; then
8053
8054cat >>confdefs.h <<\_ACEOF
8055#define HAVE_ICONV 1
8056_ACEOF
8057
8058 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8059echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8060 if test "${am_cv_proto_iconv+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063
8064 cat >conftest.$ac_ext <<_ACEOF
8065/* confdefs.h. */

--- 61 unchanged lines hidden (view full) ---

8127echo "${ECHO_T}${ac_t:-
8128 }$am_cv_proto_iconv" >&6
8129
8130cat >>confdefs.h <<_ACEOF
8131#define ICONV_CONST $am_cv_proto_iconv_arg1
8132_ACEOF
8133
8134 fi
8135 LIBICONV=
8136 if test "$am_cv_lib_iconv" = yes; then
8137 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8138 fi
8139
8140
8141# Until we have in-tree GNU iconv:
8142LIBICONV_DEP=
8143
8144
8145
8146 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8147echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8148if test "${am_cv_val_LC_MESSAGES+set}" = set; then

--- 52 unchanged lines hidden (view full) ---

8201
8202cat >>confdefs.h <<\_ACEOF
8203#define HAVE_LC_MESSAGES 1
8204_ACEOF
8205
8206 fi
8207
8208
8209# We will need to find libiberty.h and ansidecl.h
8210saved_CFLAGS="$CFLAGS"
8211CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8212for ac_func in getenv atol sbrk abort atof getcwd getwd \
8213 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8214 fprintf_unlocked strstr errno snprintf vasprintf \
8215 malloc realloc calloc free basename getopt clock
8216do
8217 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8218echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8219echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8220if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else
8223 cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF

--- 58 unchanged lines hidden (view full) ---

8284 echo "$as_me:$LINENO: result: no" >&5
8285echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8286#define $ac_tr_decl 0
8287_ACEOF
8288
8289fi
8290
8291done
8292if test x = y ; then
8293
8294cat >>confdefs.h <<\_ACEOF
8295#define HAVE_DECL_GETENV 1
8296_ACEOF
8297
8298cat >>confdefs.h <<\_ACEOF
8299#define HAVE_DECL_ATOL 1
8300_ACEOF
8301
8302cat >>confdefs.h <<\_ACEOF
8303#define HAVE_DECL_SBRK 1
8304_ACEOF
8305
8306cat >>confdefs.h <<\_ACEOF
8307#define HAVE_DECL_ABORT 1
8308_ACEOF
8309
8310cat >>confdefs.h <<\_ACEOF
8311#define HAVE_DECL_ATOF 1
8312_ACEOF
8313
8314cat >>confdefs.h <<\_ACEOF
8315#define HAVE_DECL_GETCWD 1
8316_ACEOF
8317
8318cat >>confdefs.h <<\_ACEOF
8319#define HAVE_DECL_GETWD 1
8320_ACEOF
8321 \
8322
8323cat >>confdefs.h <<\_ACEOF
8324#define HAVE_DECL_STRSIGNAL 1
8325_ACEOF
8326
8327cat >>confdefs.h <<\_ACEOF
8328#define HAVE_DECL_PUTC_UNLOCKED 1
8329_ACEOF
8330
8331cat >>confdefs.h <<\_ACEOF
8332#define HAVE_DECL_FPUTS_UNLOCKED 1
8333_ACEOF
8334
8335cat >>confdefs.h <<\_ACEOF
8336#define HAVE_DECL_FWRITE_UNLOCKED 1
8337_ACEOF
8338 \
8339
8340cat >>confdefs.h <<\_ACEOF
8341#define HAVE_DECL_FPRINTF_UNLOCKED 1
8342_ACEOF
8343
8344cat >>confdefs.h <<\_ACEOF
8345#define HAVE_DECL_STRSTR 1
8346_ACEOF
8347
8348cat >>confdefs.h <<\_ACEOF
8349#define HAVE_DECL_ERRNO 1
8350_ACEOF
8351
8352cat >>confdefs.h <<\_ACEOF
8353#define HAVE_DECL_SNPRINTF 1
8354_ACEOF
8355
8356cat >>confdefs.h <<\_ACEOF
8357#define HAVE_DECL_VASPRINTF 1
8358_ACEOF
8359 \
8360
8361cat >>confdefs.h <<\_ACEOF
8362#define HAVE_DECL_MALLOC 1
8363_ACEOF
8364
8365cat >>confdefs.h <<\_ACEOF
8366#define HAVE_DECL_REALLOC 1
8367_ACEOF
8368
8369cat >>confdefs.h <<\_ACEOF
8370#define HAVE_DECL_CALLOC 1
8371_ACEOF
8372
8373cat >>confdefs.h <<\_ACEOF
8374#define HAVE_DECL_FREE 1
8375_ACEOF
8376
8377cat >>confdefs.h <<\_ACEOF
8378#define HAVE_DECL_BASENAME 1
8379_ACEOF
8380
8381cat >>confdefs.h <<\_ACEOF
8382#define HAVE_DECL_GETOPT 1
8383_ACEOF
8384
8385cat >>confdefs.h <<\_ACEOF
8386#define HAVE_DECL_CLOCK 1
8387_ACEOF
8388fi
8389
8390
8391for ac_func in getrlimit setrlimit getrusage
8392do
8393 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8394echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8395echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8396if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398else
8399 cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF

--- 62 unchanged lines hidden (view full) ---

8464 echo "$as_me:$LINENO: result: no" >&5
8465echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8466#define $ac_tr_decl 0
8467_ACEOF
8468
8469fi
8470
8471done
8472if test x = y ; then
8473
8474cat >>confdefs.h <<\_ACEOF
8475#define HAVE_DECL_GETRLIMIT 1
8476_ACEOF
8477
8478cat >>confdefs.h <<\_ACEOF
8479#define HAVE_DECL_SETRLIMIT 1
8480_ACEOF
8481
8482cat >>confdefs.h <<\_ACEOF
8483#define HAVE_DECL_GETRUSAGE 1
8484_ACEOF
8485fi
8486
8487
8488cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
8494
8495#include "ansidecl.h"

--- 40 unchanged lines hidden (view full) ---

8536
8537cat >>confdefs.h <<\_ACEOF
8538#define rlim_t long
8539_ACEOF
8540
8541fi
8542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8543
8544for ac_func in ldgetname
8545do
8546 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8547echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8548echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8549if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551else
8552 cat >conftest.$ac_ext <<_ACEOF
8553/* confdefs.h. */
8554_ACEOF
8555cat confdefs.h >>conftest.$ac_ext
8556cat >>conftest.$ac_ext <<_ACEOF
8557/* end confdefs.h. */
8558#undef $ac_tr_decl
8559#define $ac_tr_decl 1
8560
8561#include "ansidecl.h"
8562#include "system.h"
8563#ifdef HAVE_LDFCN_H
8564#include <ldfcn.h>
8565#endif
8566
8567
8568int
8569main ()
8570{
8571#ifndef $ac_func

--- 45 unchanged lines hidden (view full) ---

8617 echo "$as_me:$LINENO: result: no" >&5
8618echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8619#define $ac_tr_decl 0
8620_ACEOF
8621
8622fi
8623
8624done
8625if test x = y ; then
8626
8627cat >>confdefs.h <<\_ACEOF
8628#define HAVE_DECL_LDGETNAME 1
8629_ACEOF
8630fi
8631
8632
8633for ac_func in times
8634do
8635 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8636echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8637echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8638if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640else
8641 cat >conftest.$ac_ext <<_ACEOF
8642/* confdefs.h. */
8643_ACEOF

--- 62 unchanged lines hidden (view full) ---

8706 echo "$as_me:$LINENO: result: no" >&5
8707echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8708#define $ac_tr_decl 0
8709_ACEOF
8710
8711fi
8712
8713done
8714if test x = y ; then
8715
8716cat >>confdefs.h <<\_ACEOF
8717#define HAVE_DECL_TIMES 1
8718_ACEOF
8719fi
8720
8721
8722# More time-related stuff.
8723echo "$as_me:$LINENO: checking for struct tms" >&5
8724echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8725if test "${ac_cv_struct_tms+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
8728
8729cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h. */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h. */
8735
8736#include "ansidecl.h"
8737#include "system.h"
8738#ifdef HAVE_SYS_TIMES_H
8739#include <sys/times.h>
8740#endif
8741
8742int
8743main ()
8744{
8745struct tms tms;
8746 ;
8747 return 0;
8748}
8749_ACEOF
8750rm -f conftest.$ac_objext
8751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>conftest.er1
8753 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest.$ac_objext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_cv_struct_tms=yes
8773else
8774 echo "$as_me: failed program was:" >&5
8775sed 's/^/| /' conftest.$ac_ext >&5
8776
8777ac_cv_struct_tms=no
8778fi
8779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8780fi
8781echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8782echo "${ECHO_T}$ac_cv_struct_tms" >&6
8783if test $ac_cv_struct_tms = yes; then
8784
8785cat >>confdefs.h <<\_ACEOF
8786#define HAVE_STRUCT_TMS 1
8787_ACEOF
8788
8789fi
8790
8791# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8792# revisit after autoconf 2.50.
8793echo "$as_me:$LINENO: checking for clock_t" >&5
8794echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8795if test "${gcc_cv_type_clock_t+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797else
8798
8799cat >conftest.$ac_ext <<_ACEOF
8800/* confdefs.h. */
8801_ACEOF
8802cat confdefs.h >>conftest.$ac_ext
8803cat >>conftest.$ac_ext <<_ACEOF
8804/* end confdefs.h. */
8805
8806#include "ansidecl.h"
8807#include "system.h"
8808
8809int
8810main ()
8811{
8812clock_t x;
8813 ;
8814 return 0;
8815}
8816_ACEOF
8817rm -f conftest.$ac_objext
8818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819 (eval $ac_compile) 2>conftest.er1
8820 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest.$ac_objext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 gcc_cv_type_clock_t=yes
8840else
8841 echo "$as_me: failed program was:" >&5
8842sed 's/^/| /' conftest.$ac_ext >&5
8843
8844gcc_cv_type_clock_t=no
8845fi
8846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847fi
8848echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8849echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8850if test $gcc_cv_type_clock_t = yes; then
8851
8852cat >>confdefs.h <<\_ACEOF
8853#define HAVE_CLOCK_T 1
8854_ACEOF
8855
8856fi
8857
8858echo "$as_me:$LINENO: checking for uchar" >&5
8859echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8860if test "${gcc_cv_type_uchar+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
8863 cat >conftest.$ac_ext <<_ACEOF
8864/* confdefs.h. */
8865_ACEOF
8866cat confdefs.h >>conftest.$ac_ext
8867cat >>conftest.$ac_ext <<_ACEOF
8868/* end confdefs.h. */
8869
8870#include "ansidecl.h"
8871#include "system.h"
8872
8873int
8874main ()
8875{
8876if ((uchar *)0) return 0;
8877 if (sizeof(uchar)) return 0;
8878 ;
8879 return 0;
8880}
8881_ACEOF
8882rm -f conftest.$ac_objext
8883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8884 (eval $ac_compile) 2>conftest.er1
8885 ac_status=$?

--- 10 unchanged lines hidden (view full) ---

8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest.$ac_objext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 (eval $ac_try) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 ac_cv_type_uchar=yes
8905else
8906 echo "$as_me: failed program was:" >&5
8907sed 's/^/| /' conftest.$ac_ext >&5
8908
8909ac_cv_type_uchar=no
8910fi
8911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8912fi
8913echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8914echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8915if test $ac_cv_type_uchar = yes; then
8916
8917cat >>confdefs.h <<\_ACEOF
8918#define HAVE_UCHAR 1
8919_ACEOF
8920
8921fi
8922
8923# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8924CFLAGS="$saved_CFLAGS"
8925
8926# Check whether --enable-initfini-array or --disable-initfini-array was given.

--- 153 unchanged lines hidden (view full) ---

9080# libunwind, we can choose to use the system libunwind.
9081
9082# Check whether --with-system-libunwind or --without-system-libunwind was given.
9083if test "${with_system_libunwind+set}" = set; then
9084 withval="$with_system_libunwind"
9085
9086fi;
9087
9088# --------------------------------------------------------
9089# Build, host, and target specific configuration fragments
9090# --------------------------------------------------------
9091
9092# Collect build-machine-specific information.
9093. ${srcdir}/config.build
9094
9095# Collect host-machine-specific information.

--- 81 unchanged lines hidden (view full) ---

9177if test x$need_64bit_hwint = xyes; then
9178
9179cat >>confdefs.h <<\_ACEOF
9180#define NEED_64BIT_HOST_WIDE_INT 1
9181_ACEOF
9182
9183fi
9184
9185count=a
9186for f in $host_xm_file; do
9187 count=${count}x
9188done
9189if test $count = a; then
9190 :
9191elif test $count = ax; then
9192 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."

--- 17 unchanged lines hidden (view full) ---

9210 else
9211 echo "Using the following build machine macro files:"
9212 for f in $build_xm_file; do
9213 echo " $srcdir/config/$f"
9214 done
9215 fi
9216fi
9217
9218# Check if a valid thread package
9219case ${enable_threads_flag} in
9220 "" | no)
9221 # No threads
9222 target_thread_file='single'
9223 ;;
9224 yes)
9225 # default
9226 target_thread_file='single'
9227 ;;
9228 aix | dce | gnat | irix | posix | rtems | \
9229 single | solaris | vxworks | win32 )
9230 target_thread_file=${enable_threads_flag}
9231 ;;
9232 *)
9233 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9234 exit 1
9235 ;;
9236esac
9237
9238if test x${thread_file} = x; then
9239 # No thread file set by target-specific clauses in config.gcc,
9240 # so use file chosen by default logic above
9241 thread_file=${target_thread_file}
9242fi
9243
9244if test x$enable___cxa_atexit = xyes || \
9245 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9246 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9247echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9248if test "${ac_cv_func___cxa_atexit+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250else
9251 cat >conftest.$ac_ext <<_ACEOF
9252/* confdefs.h. */
9253_ACEOF
9254cat confdefs.h >>conftest.$ac_ext

--- 74 unchanged lines hidden (view full) ---

9329ac_cv_func___cxa_atexit=no
9330fi
9331rm -f conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333fi
9334echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9335echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9336if test $ac_cv_func___cxa_atexit = yes; then
9337
9338cat >>confdefs.h <<\_ACEOF
9339#define DEFAULT_USE_CXA_ATEXIT 1
9340_ACEOF
9341
9342else
9343 echo "__cxa_atexit can't be enabled on this target"
9344fi
9345
9346fi
9347
9348# Look for a file containing extra machine modes.
9349if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9350 extra_modes_file='$(srcdir)'/config/${extra_modes}
9351
9352
9353cat >>confdefs.h <<_ACEOF
9354#define EXTRA_MODES_FILE "config/$extra_modes"
9355_ACEOF
9356
9357fi
9358
9359# auto-host.h is the file containing items generated by autoconf and is
9360# the first file included by config.h.
9361# If host=build, it is correct to have bconfig include auto-host.h
9362# as well. If host!=build, we are in error and need to do more
9363# work to find out the build config parameters.
9364if test x$host = x$build
9365then
9366 build_auto=auto-host.h
9367 FORBUILD=..
9368else
9369 # We create a subdir, then run autoconf in the subdir.
9370 # To prevent recursion we set host and build for the new
9371 # invocation of configure to the build for this invocation
9372 # of configure.
9373 tempdir=build.$$
9374 rm -rf $tempdir
9375 mkdir $tempdir
9376 cd $tempdir
9377 case ${srcdir} in
9378 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9379 *) realsrcdir=../${srcdir};;
9380 esac
9381 saved_CFLAGS="${CFLAGS}"
9382 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9383 ${realsrcdir}/configure \
9384 --target=$target_alias --host=$build_alias --build=$build_alias
9385 CFLAGS="${saved_CFLAGS}"
9386
9387 # We just finished tests for the build machine, so rename
9388 # the file auto-build.h in the gcc directory.
9389 mv auto-host.h ../auto-build.h
9390 cd ..
9391 rm -rf $tempdir
9392 build_auto=auto-build.h
9393 FORBUILD=../${build_subdir}
9394fi
9395
9396
9397tm_file="${tm_file} defaults.h"
9398tm_p_file="${tm_p_file} tm-preds.h"
9399host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9400build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9401# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9402# put this back in temporarily.
9403xm_file="ansidecl.h ${xm_file}"
9404
9405# --------
9406# UNSORTED
9407# --------
9408
9409# Get the version trigger filename from the toplevel
9410if test "${with_gcc_version_trigger+set}" = set; then
9411 gcc_version_trigger=$with_gcc_version_trigger
9412else
9413 gcc_version_trigger=${srcdir}/version.c
9414fi
9415gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9416gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9417
9418# Compile in configure arguments.
9419if test -f configargs.h ; then
9420 # Being re-configured.
9421 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9422 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9423else
9424 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9425fi

--- 12 unchanged lines hidden (view full) ---

9438static const char thread_model[] = "$thread_file";
9439
9440static const struct {
9441 const char *name, *value;
9442} configure_default_options[] = $configure_default_options;
9443EOF
9444
9445# Internationalization
9446PACKAGE=gcc
9447VERSION="$gcc_version"
9448
9449
9450
9451# If we haven't got the data from the intl directory,
9452# assume NLS is disabled.
9453USE_NLS=no
9454LIBINTL=
9455LIBINTL_DEP=
9456INCINTL=
9457XGETTEXT=
9458GMSGFMT=
9459POSUB=
9460if test -f ../intl/config.intl; then
9461 . ../intl/config.intl
9462fi
9463echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9464echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9465if test x"$USE_NLS" != xyes; then
9466 echo "$as_me:$LINENO: result: no" >&5
9467echo "${ECHO_T}no" >&6
9468else
9469 echo "$as_me:$LINENO: result: yes" >&5

--- 15 unchanged lines hidden (view full) ---

9485 # weeded out.
9486 case "$cat" in *\**)
9487 continue;;
9488 esac
9489 # The quadruple backslash is collapsed to a double backslash
9490 # by the backticks, then collapsed again by the double quotes,
9491 # leaving us with one backslash in the sed expression (right
9492 # before the dot that mustn't act as a wildcard).
9493 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9494 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9495 # The user is allowed to set LINGUAS to a list of languages to
9496 # install catalogs for. If it's empty that means "all of them."
9497 if test "x$LINGUAS" = x; then
9498 CATALOGS="$CATALOGS $cat"
9499 XLINGUAS="$XLINGUAS $lang"
9500 else
9501 case "$LINGUAS" in *$lang*)
9502 CATALOGS="$CATALOGS $cat"
9503 XLINGUAS="$XLINGUAS $lang"
9504 ;;
9505 esac
9506 fi
9507 done
9508 LINGUAS="$XLINGUAS"
9509 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9510echo "${ECHO_T}$LINGUAS" >&6
9511fi
9512
9513# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9514# -liconv on the link line twice.
9515case "$LIBINTL" in *$LIBICONV*)
9516 LIBICONV= ;;
9517esac
9518
9519# Windows32 Registry support for specifying GCC installation paths.
9520# Check whether --enable-win32-registry or --disable-win32-registry was given.
9521if test "${enable_win32_registry+set}" = set; then
9522 enableval="$enable_win32_registry"
9523
9524fi;
9525case $host_os in
9526 win32 | pe | cygwin* | mingw32* | uwin*)
9527echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9528echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9529if test "x$enable_win32_registry" != xno; then
9530
9531cat >>confdefs.h <<\_ACEOF
9532#define ENABLE_WIN32_REGISTRY 1
9533_ACEOF
9534
9535 echo "$as_me:$LINENO: result: yes" >&5
9536echo "${ECHO_T}yes" >&6
9537 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9538echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9539if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541else
9542 ac_func_search_save_LIBS=$LIBS
9543ac_cv_search_RegOpenKeyExA=no
9544cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h. */

--- 107 unchanged lines hidden (view full) ---

9653fi
9654LIBS=$ac_func_search_save_LIBS
9655fi
9656echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9657echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9658if test "$ac_cv_search_RegOpenKeyExA" != no; then
9659 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9660
9661fi
9662
9663else
9664 echo "$as_me:$LINENO: result: no" >&5
9665echo "${ECHO_T}no" >&6
9666fi
9667
9668# Check if user specified a different registry key.
9669case "x${enable_win32_registry}" in
9670x | xyes)
9671 # default.
9672 gcc_cv_win32_registry_key="$VERSION"
9673 ;;
9674xno)
9675 # no registry lookup.
9676 gcc_cv_win32_registry_key=''
9677 ;;
9678*)
9679 # user-specified key.
9680 gcc_cv_win32_registry_key="$enable_win32_registry"
9681 ;;
9682esac
9683
9684if test "x$enable_win32_registry" != xno; then
9685 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9686echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9687
9688cat >>confdefs.h <<_ACEOF
9689#define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9690_ACEOF
9691
9692 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9693echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9694fi
9695;;
9696esac
9697
9698# Get an absolute path to the GCC top-level source directory
9699holddir=`${PWDCMD-pwd}`
9700cd $srcdir
9701topdir=`${PWDCMD-pwd}`
9702cd $holddir
9703

--- 13 unchanged lines hidden (view full) ---

9717do
9718 if test -f ${srcdir}/config/$f
9719 then
9720 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9721 fi
9722done
9723tmake_file="${tmake_file_}"
9724
9725symbolic_link='ln -s'
9726
9727# If the host doesn't support symlinks, modify CC in
9728# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9729# Otherwise, we can use "CC=$(CC)".
9730rm -f symtest.tem
9731if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9732then
9733 cc_set_by_configure="\$(CC)"
9734 quoted_cc_set_by_configure="\$(CC)"
9735 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9736 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9737else
9738 rm -f symtest.tem
9739 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9740 then
9741 symbolic_link="cp -p"
9742 else
9743 symbolic_link="cp"
9744 fi
9745 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9746 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9747 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9748 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9749fi
9750rm -f symtest.tem
9751
9752out_object_file=`basename $out_file .c`.o
9753
9754tm_file_list=
9755tm_include_list=
9756for f in $tm_file; do
9757 case $f in
9758 defaults.h )
9759 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9760 tm_include_list="${tm_include_list} $f"
9761 ;;
9762 * )
9763 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"

--- 72 unchanged lines hidden (view full) ---

9836 esac
9837done
9838
9839# Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9840# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9841CROSS=
9842ALL=all.internal
9843SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9844if test x$host != x$target
9845then
9846 CROSS="-DCROSS_COMPILE"
9847 ALL=all.cross
9848 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9849 case "$host","$target" in
9850 # Darwin crosses can use the host system's libraries and headers,
9851 # because of the fat library support. Of course, it must be the
9852 # same version of Darwin on both sides. Allow the user to
9853 # just say --target=foo-darwin without a version number to mean
9854 # "the version on this system".
9855 *-*-darwin*,*-*-darwin*)
9856 hostos=`echo $host | sed 's/.*-darwin/darwin/'`

--- 5 unchanged lines hidden (view full) ---

9862 fi
9863 ;;
9864
9865 i?86-*-*,x86_64-*-* \
9866 | powerpc*-*-*,powerpc64*-*-*)
9867 CROSS="$CROSS -DNATIVE_CROSS" ;;
9868 esac
9869elif test "x$TARGET_SYSTEM_ROOT" != x; then
9870 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9871 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9872fi
9873
9874# If this is a cross-compiler that does not
9875# have its own set of headers then define
9876# inhibit_libc
9877
9878# If this is using newlib, without having the headers available now,
9879# then define inhibit_libc in LIBGCC2_CFLAGS.
9880# This prevents libgcc2 from containing any code which requires libc
9881# support.
9882inhibit_libc=
9883if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9884 test x$with_newlib = xyes ; } &&
9885 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9886 inhibit_libc=-Dinhibit_libc
9887fi
9888
9889
9890# When building gcc with a cross-compiler, we need to adjust things so
9891# that the generator programs are still built with the native compiler.
9892# Also, we cannot run fixincludes or fix-header.
9893
9894# These are the normal (build=host) settings:
9895BUILD_PREFIX=
9896BUILD_PREFIX_1=ignore-
9897CC_FOR_BUILD='$(CC)'
9898BUILD_CFLAGS='$(ALL_CFLAGS)'
9899
9900STMP_FIXINC=stmp-fixinc
9901
9902# Possibly disable fixproto, on a per-target basis.
9903case ${use_fixproto} in
9904 no)
9905 STMP_FIXPROTO=
9906 ;;
9907 yes)
9908 STMP_FIXPROTO=stmp-fixproto
9909 ;;
9910esac
9911
9912
9913# And these apply if build != host, or we are generating coverage data
9914if test x$build != x$host || test "x$coverage_flags" != x
9915then
9916 BUILD_PREFIX=build-
9917 BUILD_PREFIX_1=build-
9918 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9919
9920 if test "x$TARGET_SYSTEM_ROOT" = x; then
9921 STMP_FIXINC=
9922 STMP_FIXPROTO=
9923 fi
9924fi
9925
9926# Expand extra_headers to include complete path.
9927# This substitutes for lots of t-* files.
9928extra_headers_list=
9929# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9930for file in ${extra_headers} ; do
9931 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9932done
9933
9934# Add a definition of USE_COLLECT2 if system wants one.
9935case $use_collect2 in
9936 no) use_collect2= ;;
9937 "") ;;
9938 *)
9939 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9940 xm_defines="${xm_defines} USE_COLLECT2"
9941 ;;
9942esac
9943
9944# Identify the assembler which will work hand-in-glove with the newly
9945# built GCC, so that we can examine its features. This is the assembler
9946# which will be driven by the driver program.
9947#
9948# If build != host, and we aren't building gas in-tree, we identify a
9949# build->target assembler and hope that it will have the same features
9950# as the host->target assembler we'll be using.
9951echo "$as_me:$LINENO: checking what assembler to use" >&5
9952echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9953in_tree_gas=no
9954gcc_cv_as=
9955gcc_cv_gas_major_version=
9956gcc_cv_gas_minor_version=
9957gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9958if test -x "$DEFAULT_ASSEMBLER"; then
9959 gcc_cv_as="$DEFAULT_ASSEMBLER"
9960elif test -x "$AS"; then
9961 gcc_cv_as="$AS"
9962elif test -x as$host_exeext; then
9963 # Build using assembler in the current directory.
9964 gcc_cv_as=./as$host_exeext
9965elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9966 && test -f ../gas/Makefile; then
9967 # Single tree build which includes gas.
9968 in_tree_gas=yes
9969 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9970for f in $gcc_cv_as_bfd_srcdir/configure \
9971 $gcc_cv_as_gas_srcdir/configure \
9972 $gcc_cv_as_gas_srcdir/configure.in \
9973 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9974 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9975 if test x$gcc_cv_gas_version != x; then
9976 break
9977 fi
9978done
9979gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9980gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9981gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9982case $gcc_cv_gas_patch_version in
9983 "") gcc_cv_gas_patch_version="0" ;;
9984esac
9985gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9986 + $gcc_cv_gas_minor_version \) \* 1000 \
9987 + $gcc_cv_gas_patch_version`
9988
9989 rm -f as$host_exeext
9990 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9991 in_tree_gas_is_elf=no
9992 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9993 || (grep 'obj_format = multi' ../gas/Makefile \
9994 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9995 then
9996 in_tree_gas_is_elf=yes
9997 fi
9998fi
9999
10000if test "x$gcc_cv_as" = x; then
10001 # Search the same directories that the installed compiler will
10002 # search. Else we may find the wrong assembler and lose. If we
10003 # do not find a suitable assembler binary, then try the user's
10004 # path.
10005 #
10006 # Also note we have to check MD_EXEC_PREFIX before checking the
10007 # user's path. Unfortunately, there is no good way to get at the
10008 # value of MD_EXEC_PREFIX here. So we do a brute force search
10009 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10010 # to be fixed as part of the make/configure rewrite too.
10011
10012 if test "x$exec_prefix" = xNONE; then
10013 if test "x$prefix" = xNONE; then
10014 test_prefix=/usr/local
10015 else
10016 test_prefix=$prefix
10017 fi
10018 else
10019 test_prefix=$exec_prefix
10020 fi
10021
10022 # If the loop below does not find an assembler, then use whatever
10023 # one we can find in the users's path.
10024 # user's path.
10025 if test "x$program_prefix" != xNONE; then
10026 gcc_cv_as=${program_prefix}as$host_exeext
10027 else
10028 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
10029 fi
10030
10031 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10032 $test_prefix/libexec/gcc/$target_noncanonical \
10033 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10034 /usr/lib/gcc/$target_noncanonical \
10035 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10036 $test_prefix/$target_noncanonical/bin"
10037
10038 if test x$host = x$target; then
10039 test_dirs="$test_dirs \
10040 /usr/libexec \
10041 /usr/ccs/gcc \
10042 /usr/ccs/bin \
10043 /udk/usr/ccs/bin \
10044 /bsd43/usr/lib/cmplrs/cc \
10045 /usr/cross64/usr/bin \
10046 /usr/lib/cmplrs/cc \
10047 /sysv/usr/lib/cmplrs/cc \
10048 /svr4/usr/lib/cmplrs/cc \
10049 /usr/bin"
10050 fi
10051
10052 for dir in $test_dirs; do
10053 if test -x $dir/as$host_exeext; then
10054 gcc_cv_as=$dir/as$host_exeext
10055 break;
10056 fi
10057 done
10058fi
10059case $in_tree_gas in
10060 yes)
10061 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10062echo "${ECHO_T}\"newly built gas\"" >&6
10063 ;;
10064 no)
10065 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10066echo "${ECHO_T}$gcc_cv_as" >&6
10067 ;;
10068esac
10069
10070# Identify the linker which will work hand-in-glove with the newly
10071# built GCC, so that we can examine its features. This is the linker
10072# which will be driven by the driver program.
10073#
10074# If build != host, and we aren't building gas in-tree, we identify a
10075# build->target linker and hope that it will have the same features
10076# as the host->target linker we'll be using.
10077echo "$as_me:$LINENO: checking what linker to use" >&5
10078echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10079in_tree_ld=no
10080gcc_cv_ld=
10081gcc_cv_gld_major_version=
10082gcc_cv_gld_minor_version=
10083gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10084gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10085if test -x "$DEFAULT_LINKER"; then
10086 gcc_cv_ld="$DEFAULT_LINKER"
10087elif test -x "$LD"; then
10088 gcc_cv_ld="$LD"
10089elif test -x collect-ld$host_exeext; then
10090 # Build using linker in the current directory.
10091 gcc_cv_ld=./collect-ld$host_exeext
10092elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10093 && test -f ../ld/Makefile; then
10094 # Single tree build which includes ld.
10095 in_tree_ld=yes
10096 in_tree_ld_is_elf=no
10097 if (grep 'EMUL = .*elf' ../ld/Makefile \
10098 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10099 in_tree_ld_is_elf=yes
10100 fi
10101 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
10102 do
10103 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10104 if test x$gcc_cv_gld_version != x; then
10105 break
10106 fi
10107 done
10108 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10109 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10110 rm -f collect-ld$host_exeext
10111 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10112 2>/dev/null
10113fi
10114
10115if test "x$gcc_cv_ld" = x; then
10116 # Search the same directories that the installed compiler will
10117 # search. Else we may find the wrong linker and lose. If we
10118 # do not find a suitable linker binary, then try the user's
10119 # path.
10120 #
10121 # Also note we have to check MD_EXEC_PREFIX before checking the
10122 # user's path. Unfortunately, there is no good way to get at the
10123 # value of MD_EXEC_PREFIX here. So we do a brute force search
10124 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10125 # to be fixed as part of the make/configure rewrite too.
10126
10127 if test "x$exec_prefix" = xNONE; then
10128 if test "x$prefix" = xNONE; then
10129 test_prefix=/usr/local
10130 else
10131 test_prefix=$prefix
10132 fi
10133 else
10134 test_prefix=$exec_prefix
10135 fi
10136
10137 # If the loop below does not find an linker, then use whatever
10138 # one we can find in the users's path.
10139 # user's path.
10140 if test "x$program_prefix" != xNONE; then
10141 gcc_cv_ld=${program_prefix}ld$host_exeext
10142 else
10143 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
10144 fi
10145
10146 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10147 $test_prefix/libexec/gcc/$target_noncanonical \
10148 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10149 /usr/lib/gcc/$target_noncanonical \
10150 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10151 $test_prefix/$target_noncanonical/bin"
10152
10153 if test x$host = x$target; then
10154 test_dirs="$test_dirs \
10155 /usr/libexec \
10156 /usr/ccs/gcc \
10157 /usr/ccs/bin \
10158 /udk/usr/ccs/bin \
10159 /bsd43/usr/lib/cmplrs/cc \
10160 /usr/cross64/usr/bin \
10161 /usr/lib/cmplrs/cc \
10162 /sysv/usr/lib/cmplrs/cc \
10163 /svr4/usr/lib/cmplrs/cc \
10164 /usr/bin"
10165 fi
10166
10167 for dir in $test_dirs; do
10168 if test -x $dir/ld$host_exeext; then
10169 gcc_cv_ld=$dir/ld$host_exeext
10170 break;
10171 fi
10172 done
10173fi
10174case $in_tree_ld in
10175 yes)
10176 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10177echo "${ECHO_T}\"newly built ld\"" >&6
10178 ;;
10179 no)
10180 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10181echo "${ECHO_T}$gcc_cv_ld" >&6
10182 ;;
10183esac
10184
10185# Figure out what nm we will be using.
10186gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10187echo "$as_me:$LINENO: checking what nm to use" >&5
10188echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10189in_tree_nm=no
10190if test -x nm$host_exeext; then
10191 gcc_cv_nm=./nm$host_exeext
10192elif test -f $gcc_cv_binutils_srcdir/configure.in \
10193 && test -f ../binutils/Makefile; then
10194 # Single tree build which includes binutils.
10195 in_tree_nm=yes
10196 gcc_cv_nm=./nm$host_exeext
10197 rm -f nm$host_exeext
10198 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10199elif test "x$program_prefix" != xNONE; then
10200 gcc_cv_nm=${program_prefix}nm$host_exeext
10201else
10202 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
10203fi
10204case $in_tree_nm in
10205 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10206echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10207 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10208echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10209esac
10210
10211# Figure out what objdump we will be using.
10212echo "$as_me:$LINENO: checking what objdump to use" >&5
10213echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10214in_tree_objdump=no
10215if test -x objdump$host_exeext; then
10216 gcc_cv_objdump=./objdump$host_exeext
10217elif test -f $gcc_cv_binutils_srcdir/configure.in \
10218 && test -f ../binutils/Makefile; then
10219 # Single tree build which includes binutils.
10220 in_tree_objdump=yes
10221 gcc_cv_objdump=./objdump$host_exeext
10222 rm -f objdump$host_exeext
10223 $symbolic_link ../binutils/objdump$host_exeext \
10224 objdump$host_exeext 2>/dev/null
10225elif test "x$program_prefix" != xNONE; then
10226 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10227else
10228 gcc_cv_objdump=`echo objdump | \
10229 sed ${program_transform_name}`$host_exeext
10230fi
10231case $in_tree_objdump in
10232 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10233echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10234 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10235echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10236esac
10237
10238# Figure out what assembler alignment features are present.
10239echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10240echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10241if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243else
10244 gcc_cv_as_balign_and_p2align=no

--- 147 unchanged lines hidden (view full) ---

10392if test $gcc_cv_as_weak = yes; then
10393
10394cat >>confdefs.h <<\_ACEOF
10395#define HAVE_GAS_WEAK 1
10396_ACEOF
10397
10398fi
10399
10400echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
10401echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
10402if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404else
10405 gcc_cv_as_nsubspa_comdat=no
10406 if test $in_tree_gas = yes; then
10407 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`

--- 83 unchanged lines hidden (view full) ---

10491 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10492 if echo "$ld_ver" | grep GNU > /dev/null; then
10493 ld_vers=`echo $ld_ver | sed -n \
10494 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10495 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10496 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10497 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10498 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10499 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10500 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
10501 if test 0"$ld_date" -lt 20020404; then
10502 if test -n "$ld_date"; then
10503 # If there was date string, but was earlier than 2002-04-04, fail
10504 gcc_cv_ld_hidden=no
10505 elif test -z "$ld_vers"; then
10506 # If there was no date string nor ld version number, something is wrong
10507 gcc_cv_ld_hidden=no
10508 else
10509 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10510 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10511 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10512 test -z "$ld_vers_patch" && ld_vers_patch=0
10513 if test "$ld_vers_major" -lt 2; then
10514 gcc_cv_ld_hidden=no
10515 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10516 gcc_cv_ld_hidden="no"
10517 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10518 gcc_cv_ld_hidden=no
10519 fi

--- 10 unchanged lines hidden (view full) ---

10530 esac
10531 fi
10532fi
10533fi
10534echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10535echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10536libgcc_visibility=no
10537
10538if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10539 libgcc_visibility=yes
10540
10541cat >>confdefs.h <<\_ACEOF
10542#define HAVE_GAS_HIDDEN 1
10543_ACEOF
10544
10545fi

--- 116 unchanged lines hidden (view full) ---

10662EOF
10663cat > conftest.big <<EOF
10664 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10665 0010 00000001 00000012 00000018 00000000 ................
10666 0020 00000008 04000000 0844 .........D
10667EOF
10668 # If the assembler didn't choke, and we can objdump,
10669 # and we got the correct data, then succeed.
10670 if test x$gcc_cv_objdump != x \
10671 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10672 | tail -3 > conftest.got \
10673 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10674 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10675 then
10676 gcc_cv_as_eh_frame=yes
10677 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then

--- 47 unchanged lines hidden (view full) ---

10730 cat conftest.s >&5
10731 fi
10732 rm -f conftest.o conftest.s
10733 fi
10734fi
10735echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10736echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10737
10738
10739cat >>confdefs.h <<_ACEOF
10740#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10741_ACEOF
10742
10743
10744# Thread-local storage - the check is heavily parametrized.
10745conftest_s=
10746tls_first_major=
10747tls_first_minor=
10748tls_as_opt=
10749case "$target" in
10750 alpha*-*-*)
10751 conftest_s='

--- 13 unchanged lines hidden (view full) ---

10765 ldq $1,foo($29) !gottprel
10766 ldah $2,foo($29) !tprelhi
10767 lda $3,foo($2) !tprello
10768 lda $4,foo($29) !tprel'
10769 tls_first_major=2
10770 tls_first_minor=13
10771 tls_as_opt=--fatal-warnings
10772 ;;
10773 i[34567]86-*-*)
10774 conftest_s='
10775 .section ".tdata","awT",@progbits
10776foo: .long 25
10777 .text
10778 movl %gs:0, %eax
10779 leal foo@TLSGD(,%ebx,1), %eax
10780 leal foo@TLSLDM(%ebx), %eax

--- 37 unchanged lines hidden (view full) ---

10818 movl r23 = @dtprel(foo#)
10819 addl r20 = @tprel(foo#), gp
10820 adds r22 = @tprel(foo#), r13
10821 movl r24 = @tprel(foo#)'
10822 tls_first_major=2
10823 tls_first_minor=13
10824 tls_as_opt=--fatal-warnings
10825 ;;
10826 powerpc-*-*)
10827 conftest_s='
10828 .section ".tdata","awT",@progbits
10829 .align 2
10830ld0: .space 4
10831ld1: .space 4
10832x1: .space 4
10833x2: .space 4

--- 97 unchanged lines hidden (view full) ---

10931 .long foo@GOTTPOFF
10932 .long foo@TPOFF'
10933 tls_first_major=2
10934 tls_first_minor=13
10935 tls_as_opt=--fatal-warnings
10936 ;;
10937 sparc*-*-*)
10938 case "$target" in
10939 sparc*-sun-solaris2.*)
10940 on_solaris=yes
10941 ;;
10942 *)
10943 on_solaris=no
10944 ;;
10945 esac
10946 if test x$on_solaris = xyes && test x$gas_flag = xno; then

--- 45 unchanged lines hidden (view full) ---

10992 xor %l1, %tle_lox10(foo), %o5
10993 ld [%g7 + %o5], %o1'
10994 tls_first_major=2
10995 tls_first_minor=14
10996 tls_as_opt="-32 --fatal-warnings"
10997 fi
10998 ;;
10999esac
11000if test -z "$tls_first_major"; then
11001 : # If we don't have a check, assume no support.
11002else
11003 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11004echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11005if test "${gcc_cv_as_tls+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 gcc_cv_as_tls=no

--- 16 unchanged lines hidden (view full) ---

11025 cat conftest.s >&5
11026 fi
11027 rm -f conftest.o conftest.s
11028 fi
11029fi
11030echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11031echo "${ECHO_T}$gcc_cv_as_tls" >&6
11032if test $gcc_cv_as_tls = yes; then
11033
11034cat >>confdefs.h <<\_ACEOF
11035#define HAVE_AS_TLS 1
11036_ACEOF
11037
11038fi
11039fi
11040
11041# Target-specific assembler checks.
11042
11043case "$target" in
11044 # All TARGET_ABI_OSF targets.
11045 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11046 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11047echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11048if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050else

--- 319 unchanged lines hidden (view full) ---

11370cat >>confdefs.h <<\_ACEOF
11371#define HAVE_AS_OFFSETABLE_LO10 1
11372_ACEOF
11373
11374fi
11375 ;;
11376
11377 i[34567]86-*-* | x86_64-*-*)
11378 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11379echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11380if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382else
11383 gcc_cv_as_ix86_filds_fists=no
11384 if test $in_tree_gas = yes; then
11385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`

--- 54 unchanged lines hidden (view full) ---

11440if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11441
11442cat >>confdefs.h <<\_ACEOF
11443#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11444_ACEOF
11445
11446fi
11447
11448 # This one is used unconditionally by i386.[ch]; it is to be defined
11449 # to 1 if the feature is present, 0 otherwise.
11450 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11451echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11452if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11454else
11455 gcc_cv_as_ix86_gotoff_in_data=no

--- 72 unchanged lines hidden (view full) ---

11528_ACEOF
11529
11530fi
11531
11532 ;;
11533
11534 powerpc*-*-*)
11535 case $target in
11536 *-*-aix*) conftest_s=' .csect .text[PR]
11537 mfcr 3,128';;
11538 *-*-darwin*) conftest_s=' .text
11539 mfcr r3,128';;
11540 *) conftest_s=' .text
11541 mfcr 3,128';;
11542 esac
11543
11544 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11545echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11546if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548else

--- 23 unchanged lines hidden (view full) ---

11572echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11573if test $gcc_cv_as_powerpc_mfcrf = yes; then
11574
11575cat >>confdefs.h <<\_ACEOF
11576#define HAVE_AS_MFCRF 1
11577_ACEOF
11578
11579fi
11580 ;;
11581
11582 mips*-*-*)
11583 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11584echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11585if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11586 echo $ECHO_N "(cached) $ECHO_C" >&6
11587else

--- 22 unchanged lines hidden (view full) ---

11610echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11611echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11612if test $gcc_cv_as_mips_explicit_relocs = yes; then
11613 if test x$target_cpu_default = x
11614 then target_cpu_default=MASK_EXPLICIT_RELOCS
11615 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11616 fi
11617fi
11618
11619 ;;
11620esac
11621# ??? Not all targets support dwarf2 debug_line, even within a version
11622# of gas. Moreover, we need to emit a valid instruction to trigger any
11623# info to the output file. So, as supported targets are added to gas 2.11,
11624# add some instruction here to (also) show we expect this might work.
11625# ??? Once 2.11 is released, probably need to add first known working
11626# version to the per-target configury.
11627case "$target" in
11628 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11629 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11630 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11631 insn="nop"
11632 ;;
11633 ia64*-*-* | s390*-*-*)
11634 insn="nop 0"
11635 ;;
11636 mmix-*-*)
11637 insn="swym 0"
11638 ;;

--- 18 unchanged lines hidden (view full) ---

11657 echo "$conftest_s" > conftest.s
11658 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }
11664 then
11665 # ??? This fails with non-gnu grep. Maybe use objdump?
11666 if grep debug_line conftest.o > /dev/null 2>&1; then
11667 gcc_cv_as_dwarf2_debug_line=yes
11668 fi
11669 else
11670 echo "configure: failed program was" >&5
11671 cat conftest.s >&5
11672 fi
11673 rm -f conftest.o conftest.s
11674 fi

--- 181 unchanged lines hidden (view full) ---

11856 gcc_cv_ld_eh_frame_hdr=yes
11857 fi
11858elif test x$gcc_cv_ld != x; then
11859 # Check if linker supports --eh-frame-hdr option
11860 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11861 gcc_cv_ld_eh_frame_hdr=yes
11862 fi
11863fi
11864if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11865
11866cat >>confdefs.h <<\_ACEOF
11867#define HAVE_LD_EH_FRAME_HDR 1
11868_ACEOF
11869
11870fi
11871echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5

--- 18 unchanged lines hidden (view full) ---

11890cat >>confdefs.h <<\_ACEOF
11891#define HAVE_LD_PIE 1
11892_ACEOF
11893
11894fi
11895echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11896echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11897
11898echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
11899echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
11900gcc_cv_ld_static_dynamic=no
11901if test $in_tree_ld = yes ; then
11902 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
11903 gcc_cv_ld_static_dynamic=yes
11904 fi
11905elif test x$gcc_cv_ld != x; then
11906 # Check if linker supports -Bstatic/-Bdynamic option
11907 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
11908 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
11909 gcc_cv_ld_static_dynamic=yes
11910 fi
11911fi
11912if test x"$gcc_cv_ld_static_dynamic" = xyes; then
11913
11914cat >>confdefs.h <<\_ACEOF
11915#define HAVE_LD_STATIC_DYNAMIC 1
11916_ACEOF
11917
11918fi
11919echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
11920echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
11921
11922case "$target" in
11923 *-*-linux*)
11924 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11925echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11926if test "${gcc_cv_ld_as_needed+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
11929 gcc_cv_ld_as_needed=no
11930 if test $in_tree_ld = yes ; then
11931 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
11932 && test $in_tree_ld_is_elf = yes; then
11933 gcc_cv_ld_as_needed=yes
11934 fi
11935 elif test x$gcc_cv_ld != x; then
11936 # Check if linker supports --as-needed and --no-as-needed options
11937 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11938 gcc_cv_ld_as_needed=yes
11939 fi
11940 fi
11941
11942fi
11943echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11944echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11945 if test x"$gcc_cv_ld_as_needed" = xyes; then
11946
11947cat >>confdefs.h <<\_ACEOF
11948#define HAVE_LD_AS_NEEDED 1
11949_ACEOF
11950
11951 fi
11952 ;;
11953esac
11954
11955if test x$with_sysroot = x && test x$host = x$target \
11956 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11957
11958cat >>confdefs.h <<_ACEOF
11959#define PREFIX_INCLUDE_DIR "$prefix/include"
11960_ACEOF
11961
11962fi
11963
11964# Figure out what language subdirectories are present.
11965# Look if the user specified --enable-languages="..."; if not, use
11966# the environment variable $LANGUAGES if defined. $LANGUAGES might
11967# go away some day.
11968# NB: embedded tabs in this IF block -- do not untabify
11969if test x"${enable_languages+set}" != xset; then
11970 if test x"${LANGUAGES+set}" = xset; then
11971 enable_languages="${LANGUAGES}"
11972 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11973echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11974
11975 else
11976 enable_languages=all
11977 fi
11978else
11979 if test x"${enable_languages}" = x \
11980 || test x"${enable_languages}" = xyes;
11981 then
11982 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11983echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11984 { (exit 1); exit 1; }; }
11985 fi
11986fi
11987enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11988
11989# First scan to see if an enabled language requires some other language.
11990# We assume that a given config-lang.in will list all the language
11991# front ends it requires, even if some are required indirectly.
11992for lang in ${srcdir}/*/config-lang.in
11993do
11994 case $lang in
11995 # The odd quoting in the next line works around
11996 # an apparent bug in bash 1.12 on linux.
11997 ${srcdir}/[*]/config-lang.in)
11998 ;;
11999 *)
12000 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
12001 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
12002 for other in $this_lang_requires
12003 do
12004 case ,${enable_languages}, in
12005 *,$other,*)
12006 ;;
12007 *,all,*)
12008 ;;
12009 *,$lang_alias,*)
12010 enable_languages="$enable_languages,$other"
12011 ;;
12012 esac
12013 done
12014 ;;
12015 esac
12016done
12017
12018expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
12019found_languages=
12020subdirs=
12021for lang in ${srcdir}/*/config-lang.in
12022do
12023 case $lang in
12024 # The odd quoting in the next line works around
12025 # an apparent bug in bash 1.12 on linux.
12026 ${srcdir}/[*]/config-lang.in) ;;
12027 *)
12028 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
12029 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
12030 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
12031 if test "x$lang_alias" = x
12032 then
12033 echo "$lang doesn't set \$language." 1>&2
12034 exit 1
12035 fi
12036 case ${build_by_default},${enable_languages}, in
12037 *,$lang_alias,*) add_this_lang=yes ;;
12038 no,*) add_this_lang=no ;;
12039 *,all,*) add_this_lang=yes ;;
12040 *) add_this_lang=no ;;
12041 esac
12042 found_languages="${found_languages} ${lang_alias}"
12043 if test x"${add_this_lang}" = xyes; then
12044 case $lang in
12045 ${srcdir}/ada/config-lang.in)
12046 if test x$have_gnat = xyes ; then
12047 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12048 fi
12049 ;;
12050 *)
12051 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12052 ;;
12053 esac
12054 fi
12055 ;;
12056 esac
12057done
12058
12059missing_languages=
12060for expected_language in ${expected_languages} ..
12061do
12062 if test "${expected_language}" != ..; then
12063 missing_language="${expected_language}"
12064 if test "${expected_language}" = "c" \
12065 || test "${expected_language}" = "all"; then
12066 missing_language=
12067 fi
12068 for found_language in ${found_languages} ..
12069 do
12070 if test "${found_language}" != ..; then
12071 if test "${expected_language}" = "${found_language}"; then
12072 missing_language=
12073 fi
12074 fi
12075 done
12076 if test "x${missing_language}" != x; then
12077 missing_languages="${missing_languages} ${missing_language}"
12078 fi
12079 fi
12080done
12081
12082if test "x$missing_languages" != x; then
12083 { { echo "$as_me:$LINENO: error:
12084The following requested languages were not found:${missing_languages}
12085The following languages were available: c${found_languages}" >&5
12086echo "$as_me: error:
12087The following requested languages were not found:${missing_languages}
12088The following languages were available: c${found_languages}" >&2;}
12089 { (exit 1); exit 1; }; }
12090fi
12091
12092# Make gthr-default.h if we have a thread file.
12093gthread_flags=
12094if test $thread_file != single; then
12095 rm -f gthr-default.h
12096 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12097 gthread_flags=-DHAVE_GTHR_DEFAULT
12098fi
12099
12100
12101# Find out what GC implementation we want, or may, use.
12102
12103# Check whether --with-gc or --without-gc was given.
12104if test "${with_gc+set}" = set; then
12105 withval="$with_gc"
12106 case "$withval" in
12107 simple | page | zone)
12108 GGC=ggc-$withval
12109 ;;
12110 *)
12111 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12112echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12113 { (exit 1); exit 1; }; }
12114 ;;
12115esac
12116else
12117 GGC=ggc-page

--- 30 unchanged lines hidden (view full) ---

12148echo "${ECHO_T}$maintainer_mode" >&6
12149
12150if test "$maintainer_mode" = "yes"; then
12151 MAINT=''
12152else
12153 MAINT='#'
12154fi
12155
12156# Make empty files to contain the specs and options for each language.
12157# Then add #include lines to for a compiler that has specs and/or options.
12158
12159lang_opt_files=
12160lang_specs_files=
12161lang_tree_files=
12162for subdir in . $subdirs
12163do
12164 if test -f $srcdir/$subdir/lang.opt; then
12165 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12166 fi
12167 if test -f $srcdir/$subdir/lang-specs.h; then
12168 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12169 fi
12170 if test -f $srcdir/$subdir/$subdir-tree.def; then
12171 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12172 fi
12173done
12174
12175# These (without "all_") are set in each config-lang.in.
12176# `language' must be a single word so is spelled singularly.
12177all_languages=
12178all_boot_languages=
12179all_compilers=
12180all_stagestuff=
12181all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
12182# List of language makefile fragments.
12183all_lang_makefrags=
12184# List of language subdirectory makefiles. Deprecated.
12185all_lang_makefiles=
12186# Files for gengtype
12187all_gtfiles="$target_gtfiles"
12188# Files for gengtype with language
12189all_gtfiles_files_langs=
12190all_gtfiles_files_files=
12191
12192# Add the language fragments.
12193# Languages are added via two mechanisms. Some information must be
12194# recorded in makefile variables, these are defined in config-lang.in.
12195# We accumulate them and plug them into the main Makefile.
12196# The other mechanism is a set of hooks for each of the main targets
12197# like `clean', `install', etc.
12198
12199language_hooks="Make-hooks"
12200
12201for s in $subdirs
12202do
12203 language=
12204 boot_language=
12205 compilers=
12206 stagestuff=
12207 outputs=
12208 gtfiles=
12209 . ${srcdir}/$s/config-lang.in
12210 if test "x$language" = x
12211 then
12212 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12213 exit 1
12214 fi
12215 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12216 if test -f ${srcdir}/$s/Makefile.in
12217 then all_lang_makefiles="$s/Makefile"
12218 fi
12219 all_languages="$all_languages $language"
12220 if test "x$boot_language" = xyes
12221 then
12222 all_boot_languages="$all_boot_languages $language"
12223 fi
12224 all_compilers="$all_compilers $compilers"
12225 all_stagestuff="$all_stagestuff $stagestuff"
12226 all_outputs="$all_outputs $outputs"
12227 all_gtfiles="$all_gtfiles $gtfiles"
12228 for f in $gtfiles
12229 do
12230 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12231 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12232 done
12233done
12234
12235# Pick up gtfiles for c
12236gtfiles=
12237s="c"
12238. ${srcdir}/c-config-lang.in
12239all_gtfiles="$all_gtfiles $gtfiles"
12240for f in $gtfiles
12241do
12242 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12243 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12244done
12245
12246check_languages=
12247for language in $all_languages
12248do
12249 check_languages="$check_languages check-$language"
12250done
12251
12252# We link each language in with a set of hooks, reached indirectly via
12253# lang.${target}.
12254
12255rm -f Make-hooks
12256touch Make-hooks
12257target_list="all.build all.cross start.encap rest.encap tags \
12258 install-normal install-common install-man \
12259 uninstall info man srcextra srcman srcinfo \
12260 mostlyclean clean distclean maintainer-clean \
12261 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12262for t in $target_list
12263do
12264 x=
12265 for lang in $all_languages
12266 do
12267 x="$x $lang.$t"
12268 done
12269 echo "lang.$t: $x" >> Make-hooks
12270done
12271
12272# Create .gdbinit.
12273
12274echo "dir ." > .gdbinit
12275echo "dir ${srcdir}" >> .gdbinit
12276if test x$gdb_needs_out_file_path = xyes
12277then
12278 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12279fi

--- 64 unchanged lines hidden (view full) ---

12344 slibdir='$(libdir)'
12345fi
12346fi;
12347
12348
12349objdir=`${PWDCMD-pwd}`
12350
12351
12352# Substitute configuration variables
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369

--- 45 unchanged lines hidden (view full) ---

12415
12416
12417
12418
12419
12420
12421
12422
12423if test x"$SET_GCC_LIB_PATH_CMD" != x; then
12424 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
12425 #
12426 # eval "set_gcc_lib_path=XXX=path; export XXX;"
12427 #
12428 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
12429 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
12430 set_gcc_lib_path="export $set_gcc_lib_path"
12431else
12432 set_gcc_lib_path=
12433fi
12434
12435
12436
12437# If it doesn't already exist, create document directory
12438echo "checking for the document directory." 1>&2
12439if test -d doc ; then
12440 true
12441else
12442 mkdir doc
12443fi
12444
12445# Echo link setup.
12446if test x${build} = x${host} ; then
12447 if test x${host} = x${target} ; then
12448 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12449 else
12450 echo "Links are now set up to build a cross-compiler" 1>&2
12451 echo " from ${host} to ${target}." 1>&2
12452 fi
12453else
12454 if test x${host} = x${target} ; then
12455 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12456 echo " for ${target}." 1>&2
12457 else
12458 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12459 echo " from ${host} to ${target}." 1>&2
12460 fi
12461fi
12462
12463# Configure the subdirectories
12464# AC_CONFIG_SUBDIRS($subdirs)
12465
12466# Create the Makefile
12467# and configure language subdirectories
12468 ac_config_files="$ac_config_files $all_outputs"
12469
12470

--- 518 unchanged lines hidden (view full) ---

12989_ACEOF
12990
12991cat >>$CONFIG_STATUS <<_ACEOF
12992#
12993# INIT-COMMANDS section.
12994#
12995
12996subdirs='$subdirs'
12997symbolic_link='$symbolic_link'
12998
12999
13000_ACEOF
13001
13002
13003
13004cat >>$CONFIG_STATUS <<\_ACEOF
13005for ac_config_target in $ac_config_targets
13006do
13007 case "$ac_config_target" in

--- 93 unchanged lines hidden (view full) ---

13101s,@host@,$host,;t t
13102s,@host_cpu@,$host_cpu,;t t
13103s,@host_vendor@,$host_vendor,;t t
13104s,@host_os@,$host_os,;t t
13105s,@target@,$target,;t t
13106s,@target_cpu@,$target_cpu,;t t
13107s,@target_vendor@,$target_vendor,;t t
13108s,@target_os@,$target_os,;t t
13109s,@build_subdir@,$build_subdir,;t t
13110s,@host_subdir@,$host_subdir,;t t
13111s,@target_subdir@,$target_subdir,;t t
13112s,@GENINSRC@,$GENINSRC,;t t
13113s,@CC@,$CC,;t t
13114s,@CFLAGS@,$CFLAGS,;t t
13115s,@LDFLAGS@,$LDFLAGS,;t t
13116s,@CPPFLAGS@,$CPPFLAGS,;t t
13117s,@ac_ct_CC@,$ac_ct_CC,;t t
13118s,@EXEEXT@,$EXEEXT,;t t
13119s,@OBJEXT@,$OBJEXT,;t t
13120s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13121s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13122s,@CPP@,$CPP,;t t
13123s,@GNATBIND@,$GNATBIND,;t t
13124s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13125s,@strict1_warn@,$strict1_warn,;t t
13126s,@warn_cflags@,$warn_cflags,;t t
13127s,@WERROR@,$WERROR,;t t
13128s,@nocommon_flag@,$nocommon_flag,;t t
13129s,@EGREP@,$EGREP,;t t
13130s,@valgrind_path@,$valgrind_path,;t t
13131s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13132s,@valgrind_command@,$valgrind_command,;t t
13133s,@coverage_flags@,$coverage_flags,;t t
13134s,@enable_multilib@,$enable_multilib,;t t
13135s,@enable_shared@,$enable_shared,;t t
13136s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13137s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13138s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13139s,@onestep@,$onestep,;t t
13140s,@SET_MAKE@,$SET_MAKE,;t t
13141s,@AWK@,$AWK,;t t
13142s,@LN@,$LN,;t t
13143s,@LN_S@,$LN_S,;t t
13144s,@RANLIB@,$RANLIB,;t t
13145s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13146s,@INSTALL@,$INSTALL,;t t
13147s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13148s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13149s,@make_compare_target@,$make_compare_target,;t t
13150s,@have_mktemp_command@,$have_mktemp_command,;t t
13151s,@MAKEINFO@,$MAKEINFO,;t t
13152s,@BUILD_INFO@,$BUILD_INFO,;t t
13153s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13154s,@FLEX@,$FLEX,;t t
13155s,@BISON@,$BISON,;t t
13156s,@stage1_cflags@,$stage1_cflags,;t t
13157s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13158s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13159s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13160s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13161s,@LIBICONV@,$LIBICONV,;t t
13162s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13163s,@manext@,$manext,;t t
13164s,@objext@,$objext,;t t
13165s,@extra_modes_file@,$extra_modes_file,;t t
13166s,@FORBUILD@,$FORBUILD,;t t
13167s,@PACKAGE@,$PACKAGE,;t t
13168s,@VERSION@,$VERSION,;t t
13169s,@USE_NLS@,$USE_NLS,;t t
13170s,@LIBINTL@,$LIBINTL,;t t
13171s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13172s,@INCINTL@,$INCINTL,;t t
13173s,@XGETTEXT@,$XGETTEXT,;t t
13174s,@GMSGFMT@,$GMSGFMT,;t t
13175s,@POSUB@,$POSUB,;t t
13176s,@CATALOGS@,$CATALOGS,;t t
13177s,@CROSS@,$CROSS,;t t
13178s,@ALL@,$ALL,;t t
13179s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13180s,@inhibit_libc@,$inhibit_libc,;t t
13181s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13182s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13183s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13184s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13185s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13186s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13187s,@libgcc_visibility@,$libgcc_visibility,;t t
13188s,@gthread_flags@,$gthread_flags,;t t
13189s,@GGC@,$GGC,;t t
13190s,@zlibdir@,$zlibdir,;t t
13191s,@zlibinc@,$zlibinc,;t t
13192s,@MAINT@,$MAINT,;t t
13193s,@gcc_tooldir@,$gcc_tooldir,;t t
13194s,@dollar@,$dollar,;t t
13195s,@slibdir@,$slibdir,;t t
13196s,@objdir@,$objdir,;t t
13197s,@subdirs@,$subdirs,;t t
13198s,@srcdir@,$srcdir,;t t
13199s,@all_boot_languages@,$all_boot_languages,;t t
13200s,@all_compilers@,$all_compilers,;t t
13201s,@all_gtfiles@,$all_gtfiles,;t t
13202s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13203s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13204s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13205s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13206s,@all_languages@,$all_languages,;t t
13207s,@all_stagestuff@,$all_stagestuff,;t t
13208s,@build_exeext@,$build_exeext,;t t
13209s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13210s,@build_xm_file_list@,$build_xm_file_list,;t t
13211s,@build_xm_include_list@,$build_xm_include_list,;t t
13212s,@build_xm_defines@,$build_xm_defines,;t t
13213s,@check_languages@,$check_languages,;t t
13214s,@cc_set_by_configure@,$cc_set_by_configure,;t t

--- 5 unchanged lines hidden (view full) ---

13220s,@extra_headers_list@,$extra_headers_list,;t t
13221s,@extra_objs@,$extra_objs,;t t
13222s,@extra_parts@,$extra_parts,;t t
13223s,@extra_passes@,$extra_passes,;t t
13224s,@extra_programs@,$extra_programs,;t t
13225s,@float_h_file@,$float_h_file,;t t
13226s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13227s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13228s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13229s,@gcc_version@,$gcc_version,;t t
13230s,@gcc_version_full@,$gcc_version_full,;t t
13231s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13232s,@host_exeext@,$host_exeext,;t t
13233s,@host_xm_file_list@,$host_xm_file_list,;t t
13234s,@host_xm_include_list@,$host_xm_include_list,;t t
13235s,@host_xm_defines@,$host_xm_defines,;t t
13236s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13237s,@install@,$install,;t t
13238s,@lang_opt_files@,$lang_opt_files,;t t
13239s,@lang_specs_files@,$lang_specs_files,;t t
13240s,@lang_tree_files@,$lang_tree_files,;t t
13241s,@local_prefix@,$local_prefix,;t t
13242s,@md_file@,$md_file,;t t
13243s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13244s,@out_file@,$out_file,;t t
13245s,@out_object_file@,$out_object_file,;t t
13246s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13247s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13248s,@symbolic_link@,$symbolic_link,;t t
13249s,@thread_file@,$thread_file,;t t
13250s,@tm_file_list@,$tm_file_list,;t t
13251s,@tm_include_list@,$tm_include_list,;t t
13252s,@tm_defines@,$tm_defines,;t t
13253s,@tm_p_file_list@,$tm_p_file_list,;t t
13254s,@tm_p_include_list@,$tm_p_include_list,;t t
13255s,@xm_file_list@,$xm_file_list,;t t
13256s,@xm_include_list@,$xm_include_list,;t t
13257s,@xm_defines@,$xm_defines,;t t
13258s,@target_noncanonical@,$target_noncanonical,;t t
13259s,@c_target_objs@,$c_target_objs,;t t
13260s,@cxx_target_objs@,$cxx_target_objs,;t t
13261s,@target_cpu_default@,$target_cpu_default,;t t
13262s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
13263s,@LIBOBJS@,$LIBOBJS,;t t
13264s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13265/@language_hooks@/r $language_hooks
13266s,@language_hooks@,,;t t
13267CEOF
13268
13269_ACEOF
13270

--- 564 unchanged lines hidden (view full) ---

13835echo "$as_me: executing $ac_dest commands" >&6;}
13836 case $ac_dest in
13837 default )
13838case ${CONFIG_HEADERS} in
13839 *auto-host.h:config.in*)
13840 echo > cstamp-h ;;
13841esac
13842# Make sure all the subdirs exist.
13843for d in $subdirs
13844do
13845 test -d $d || mkdir $d
13846done
13847# If the host supports symlinks, point stage[1234] at ../stage[1234] so
13848# bootstrapping and the installation procedure can still use
13849# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13850# FLAGS_TO_PASS has been modified to solve the problem there.
13851# This is virtually a duplicate of what happens in configure.lang; we do
13852# an extra check to make sure this only happens if ln -s can be used.
13853if test "$symbolic_link" = "ln -s"; then
13854 for d in ${subdirs} fixinc ; do
13855 STARTDIR=`${PWDCMD-pwd}`
13856 cd $d
13857 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13858 do
13859 rm -f $t
13860 $symbolic_link ../$t $t 2>/dev/null
13861 done
13862 cd $STARTDIR
13863 done
13864else true ; fi
13865 ;;
13866 esac
13867done
13868_ACEOF
13869
13870cat >>$CONFIG_STATUS <<\_ACEOF
13871
13872{ (exit 0); exit 0; }

--- 26 unchanged lines hidden ---