Deleted Added
full compact
configure (161660) configure (169699)
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
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'
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 target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility 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_selected_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 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 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 c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC 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
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
773ac_env_GMPLIBS_set=${GMPLIBS+set}
774ac_env_GMPLIBS_value=$GMPLIBS
775ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776ac_cv_env_GMPLIBS_value=$GMPLIBS
777ac_env_GMPINC_set=${GMPINC+set}
778ac_env_GMPINC_value=$GMPINC
779ac_cv_env_GMPINC_set=${GMPINC+set}
780ac_cv_env_GMPINC_value=$GMPINC
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.
781
782#
783# Report the --help message.
784#
785if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF

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

857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
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.
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
861 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
862 default is no checking
870 Categories are: yes,no,all,none,release.
871 Flags are: assert,fold,gc,gcac,misc,
872 rtlflag,rtl,runtime,tree,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
863 --enable-coverage=LEVEL
874 --enable-coverage=LEVEL
864 enable compiler\'s code coverage collection.
875 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++
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
879 default is noopt
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
872 --enable-threads enable thread usage for target GCC
873 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
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
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
878 --enable-initfini-array use .init_array/.fini_array sections
879 --enable-sjlj-exceptions
880 arrange to use setjmp/longjmp exception handling
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
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 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
904 of the registry key
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
911
912Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-build-libsubdir=DIR Directory where to find libraries for build system
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)
916 --with-local-prefix=DIR specifies directory to put local include
917 --with-gxx-include-dir=DIR
918 specifies directory to put g++ header files
919 --with-cpp-install-dir=DIR
920 install the user visible C preprocessor in DIR
921 (relative to PREFIX) as well as PREFIX/bin
922 --with-gnu-ld arrange to work with GNU ld.
923 --with-ld arrange to use the specified ld (full pathname)
924 --with-demangler-in-ld try to use demangler in GNU ld.
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
925 --with-gnu-as arrange to work with GNU as
926 --with-as arrange to use the specified as (full pathname)
927 --with-stabs arrange to use stabs instead of host debug format
928 --with-dwarf2 force the default debug format to be DWARF 2
929 --with-build-sysroot=sysroot
930 use sysroot as the system root during the build
910 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --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
932 --with-gnu-ld assume the C compiler uses GNU ld default=no
933 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
934 --without-libiconv-prefix don't search for libiconv in includedir and libdir
912 --with-system-libunwind use installed libunwind
935 --with-system-libunwind use installed libunwind
913 --with-gc={simple,page,zone} choose the garbage collection mechanism to use
936 --with-long-double-128 Use 128-bit long double by default.
937 --with-gc={page,zone} choose the garbage collection mechanism to use
914 with the compiler
915 --with-system-zlib use installed libz
938 with the compiler
939 --with-system-zlib use installed libz
916 --with-slibdir=DIR shared libraries in DIR LIBDIR
940 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
941 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
942 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
943 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
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
944
945Some influential environment variables:
946 CC C compiler command
947 CFLAGS C compiler flags
948 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
949 nonstandard directory <lib dir>
950 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
951 headers in a nonstandard directory <include dir>
952 CPP C preprocessor
953 GMPLIBS How to link GMP
954 GMPINC How to find GMP include files
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
955
956Use these variables to override the choices made by `configure' or to help
957it to find libraries and programs with nonstandard names/locations.
958
959_ACEOF
960fi
961
962if test "$ac_init_help" = "recursive"; then

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

1390
1391
1392
1393
1394
1395 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1396
1397
1398gcc_version=`cat $srcdir/BASE-VER`
1399
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
1400# Determine the host, build, and target systems
1401ac_aux_dir=
1402for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1403 if test -f $ac_dir/install-sh; then
1404 ac_aux_dir=$ac_dir
1405 ac_install_sh="$ac_aux_dir/install-sh -c"
1406 break
1407 elif test -f $ac_dir/install.sh; then

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

1518esac
1519
1520 case ${target_alias} in
1521 "") target_noncanonical=${host_noncanonical} ;;
1522 *) target_noncanonical=${target_alias} ;;
1523esac
1524
1525
1526
1527
1495# Determine the target- and build-specific subdirectories
1528# Determine the target- and build-specific subdirectories
1496 # Prefix 'build-' so this never conflicts with target_subdir.
1529
1530# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1531# have matching libraries, they should use host libraries: Makefile.tpl
1532# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1533# However, they still use the build modules, because the corresponding
1534# host modules (e.g. bison) are only built for the host when bootstrap
1535# finishes. So:
1536# - build_subdir is where we find build modules, and never changes.
1537# - build_libsubdir is where we find build libraries, and can be overridden.
1538
1539# Prefix 'build-' so this never conflicts with target_subdir.
1497build_subdir="build-${build_noncanonical}"
1540build_subdir="build-${build_noncanonical}"
1498# Not really a subdirectory, but here for completeness.
1499host_subdir=.
1541
1542# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1543if test "${with_build_libsubdir+set}" = set; then
1544 withval="$with_build_libsubdir"
1545 build_libsubdir="$withval"
1546else
1547 build_libsubdir="$build_subdir"
1548fi;
1549# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1550if ( test $srcdir = . && test -d gcc ) \
1551 || test -d $srcdir/../host-${host_noncanonical}; then
1552 host_subdir="host-${host_noncanonical}"
1553else
1554 host_subdir=.
1555fi
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
1556# No prefix.
1557target_subdir=${target_noncanonical}
1558
1559
1560# Set program_transform_name
1561test "$program_prefix" != NONE &&
1562 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1563# Use a double $ so make ignores it.

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

1672yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1673echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1674 { (exit 1); exit 1; }; } ;;
1675no) ;;
1676*) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1677esac
1678fi;
1679
1680# This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
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
1681if test x${gcc_gxx_include_dir} = x; then
1682 if test x${enable_version_specific_runtime_libs} = xyes; then
1683 gcc_gxx_include_dir='${libsubdir}/include/c++'
1684 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}
1685 libstdcxx_incdir='include/c++/$(version)'
1686 if test x$host != x$target; then
1687 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1688 fi
1689 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$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
1690 fi
1691fi
1692
1693
1694# Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1695if test "${with_cpp_install_dir+set}" = set; then
1696 withval="$with_cpp_install_dir"
1697 if test x$withval = xyes; then

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

1747
1748# Check whether --with-ld or --without-ld was given.
1749if test "${with_ld+set}" = set; then
1750 withval="$with_ld"
1751 DEFAULT_LINKER="$with_ld"
1752fi;
1753if test x"${DEFAULT_LINKER+set}" = x"set"; then
1754 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;}
1755 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1756echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1757 { (exit 1); exit 1; }; }
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
1758 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1759 gnu_ld_flag=yes
1760 fi
1761
1762cat >>confdefs.h <<_ACEOF
1763#define DEFAULT_LINKER "$DEFAULT_LINKER"
1764_ACEOF
1765

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

1775 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1776echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1777 fi
1778else
1779 echo "$as_me:$LINENO: result: no" >&5
1780echo "${ECHO_T}no" >&6
1781fi
1782
1783# With demangler in GNU ld
1784
1785# Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1786if test "${with_demangler_in_ld+set}" = set; then
1787 withval="$with_demangler_in_ld"
1788 demangler_in_ld="$with_demangler_in_ld"
1789else
1790 demangler_in_ld=no
1791fi;
1792
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
1793# ----------------------
1794# Find default assembler
1795# ----------------------
1796
1797# With GNU as
1798
1799# Check whether --with-gnu-as or --without-gnu-as was given.
1800if test "${with_gnu_as+set}" = set; then

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

1807
1808# Check whether --with-as or --without-as was given.
1809if test "${with_as+set}" = set; then
1810 withval="$with_as"
1811 DEFAULT_ASSEMBLER="$with_as"
1812fi;
1813if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1814 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;}
1815 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1816echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1817 { (exit 1); exit 1; }; }
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
1818 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1819 gas_flag=yes
1820 fi
1821
1822cat >>confdefs.h <<_ACEOF
1823#define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1824_ACEOF
1825

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

2869echo "${ECHO_T}no" >&6
2870
2871cat >>confdefs.h <<\_ACEOF
2872#define NO_MINUS_C_MINUS_O 1
2873_ACEOF
2874
2875fi
2876
2877# expand $ac_aux_dir to an absolute path
2878am_aux_dir=`cd $ac_aux_dir && pwd`
2879
2880# FIXME: we rely on the cache variable name because
2881# there is no other way.
2882set dummy $CC
2883ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2884if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2885 # Losing compiler, so override with the script.
2886 # FIXME: It is wrong to rewrite CC.
2887 # But if we don't then we get into trouble of one sort or another.
2888 # A longer-term fix would be to have automake use am__CC in this case,
2889 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2890 CC="$am_aux_dir/compile $CC"
2891fi
2892
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
2893# autoconf is lame and doesn't give us any substitution variable for this.
2894if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2895 NO_MINUS_C_MINUS_O=yes
2896else
2897 OUTPUT_OPTION='-o $@'
2898fi
2899
2900
2901
2902# Remove the -O2: for historical reasons, unless bootstrapping we prefer
2903# optimizations to be activated explicitly by the toplevel.
2904case "$CC" in
2905 */prev-gcc/xgcc*) ;;
2906 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2907esac
2908
2909
2814# -------------------------
2815# Check C compiler features
2816# -------------------------
2817
2910# -------------------------
2911# Check C compiler features
2912# -------------------------
2913
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
2914ac_ext=c
2915ac_cpp='$CPP $CPPFLAGS'
2916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2920echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2921# On Suns, sometimes $CPP names a directory.

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

3140fi
3141
3142ac_ext=c
3143ac_cpp='$CPP $CPPFLAGS'
3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
3148
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
3149echo "$as_me:$LINENO: checking for inline" >&5
3150echo $ECHO_N "checking for inline... $ECHO_C" >&6
3151if test "${ac_cv_c_inline+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154 ac_cv_c_inline=no
3155for ac_kw in inline __inline__ __inline; do
3156 cat >conftest.$ac_ext <<_ACEOF

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

3213#ifndef __cplusplus
3214#define inline $ac_val
3215#endif
3216_ACEOF
3217 ;;
3218esac
3219
3220
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
3221# sizeof(char) is 1 by definition.
3222
3223echo "$as_me:$LINENO: checking for egrep" >&5
3224echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3225if test "${ac_cv_prog_egrep+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3229 then ac_cv_prog_egrep='grep -E'
3230 else ac_cv_prog_egrep='egrep'
3231 fi
3232fi
3233echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3234echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3235 EGREP=$ac_cv_prog_egrep
3236
3237
3238echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3239echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3240if test "${ac_cv_header_stdc+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242else
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. */
3243 cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h. */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h. */
3249#include <stdlib.h>
3250#include <stdarg.h>
3251#include <string.h>
3252#include <float.h>
3193
3194int
3195main ()
3196{
3253
3254int
3255main ()
3256{
3197long long int i;
3257
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
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=$?

--- 10 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
3224 ac_cv_c_long_long=yes
3284 ac_cv_header_stdc=yes
3225else
3226 echo "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
3228
3285else
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3229ac_cv_c_long_long=no
3289ac_cv_header_stdc=no
3230fi
3231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290fi
3291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292
3293if test $ac_cv_header_stdc = yes; then
3294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
3301#include <string.h>
3302
3303_ACEOF
3304if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 $EGREP "memchr" >/dev/null 2>&1; then
3306 :
3307else
3308 ac_cv_header_stdc=no
3232fi
3309fi
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
3310rm -f conftest*
3236
3311
3237cat >>confdefs.h <<\_ACEOF
3238#define HAVE_LONG_LONG 1
3312fi
3313
3314if test $ac_cv_header_stdc = yes; then
3315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3316 cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h. */
3239_ACEOF
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
3322#include <stdlib.h>
3240
3323
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
3324_ACEOF
3325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 $EGREP "free" >/dev/null 2>&1; then
3327 :
3246else
3328else
3329 ac_cv_header_stdc=no
3330fi
3331rm -f conftest*
3332
3333fi
3334
3335if test $ac_cv_header_stdc = yes; then
3336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3337 if test "$cross_compiling" = yes; then
3338 :
3339else
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. */
3340 cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h. */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h. */
3346#include <ctype.h>
3347#if ((' ' & 0x0FF) == 0x020)
3348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3350#else
3351# define ISLOWER(c) \
3352 (('a' <= (c) && (c) <= 'i') \
3353 || ('j' <= (c) && (c) <= 'r') \
3354 || ('s' <= (c) && (c) <= 'z'))
3355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3356#endif
3253
3357
3358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3254int
3255main ()
3256{
3359int
3360main ()
3361{
3257__int64 i;
3258 ;
3259 return 0;
3362 int i;
3363 for (i = 0; i < 256; i++)
3364 if (XOR (islower (i), ISLOWER (i))
3365 || toupper (i) != TOUPPER (i))
3366 exit(2);
3367 exit (0);
3260}
3261_ACEOF
3368}
3369_ACEOF
3370rm -f conftest$ac_exeext
3371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3372 (eval $ac_link) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 (eval $ac_try) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 :
3382else
3383 echo "$as_me: program exited with status $ac_status" >&5
3384echo "$as_me: failed program was:" >&5
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
3387( exit $ac_status )
3388ac_cv_header_stdc=no
3389fi
3390rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3391fi
3392fi
3393fi
3394echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3395echo "${ECHO_T}$ac_cv_header_stdc" >&6
3396if test $ac_cv_header_stdc = yes; then
3397
3398cat >>confdefs.h <<\_ACEOF
3399#define STDC_HEADERS 1
3400_ACEOF
3401
3402fi
3403
3404# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3415 inttypes.h stdint.h unistd.h
3416do
3417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3418echo "$as_me:$LINENO: checking for $ac_header" >&5
3419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3420if eval "test \"\${$as_ac_Header+set}\" = set"; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423 cat >conftest.$ac_ext <<_ACEOF
3424/* confdefs.h. */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h. */
3429$ac_includes_default
3430
3431#include <$ac_header>
3432_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
3433rm -f conftest.$ac_objext
3434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5

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

3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3284 ac_cv_c___int64=yes
3455 eval "$as_ac_Header=yes"
3285else
3286 echo "$as_me: failed program was:" >&5
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3289ac_cv_c___int64=no
3460eval "$as_ac_Header=no"
3290fi
3291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292fi
3461fi
3462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463fi
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
3464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3466if test `eval echo '${'$as_ac_Header'}'` = yes; then
3467 cat >>confdefs.h <<_ACEOF
3468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3299_ACEOF
3300
3469_ACEOF
3470
3301 fi
3471fi
3302
3472
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
3473done
3474
3475
3476echo "$as_me:$LINENO: checking for void *" >&5
3477echo $ECHO_N "checking for void *... $ECHO_C" >&6
3478if test "${ac_cv_type_void_p+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. */
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480else
3481 cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h. */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h. */
3314
3487$ac_includes_default
3315int
3316main ()
3317{
3488int
3489main ()
3490{
3318_Bool foo;
3491if ((void * *) 0)
3492 return 0;
3493if (sizeof (void *))
3494 return 0;
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
3495 ;
3496 return 0;
3497}
3498_ACEOF
3499rm -f conftest.$ac_objext
3500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3502 ac_status=$?

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

3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3345 gcc_cv_c__bool=yes
3521 ac_cv_type_void_p=yes
3346else
3347 echo "$as_me: failed program was:" >&5
3348sed 's/^/| /' conftest.$ac_ext >&5
3349
3522else
3523 echo "$as_me: failed program was:" >&5
3524sed 's/^/| /' conftest.$ac_ext >&5
3525
3350gcc_cv_c__bool=no
3526ac_cv_type_void_p=no
3351fi
3352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527fi
3528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3353
3354fi
3529fi
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
3530echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3531echo "${ECHO_T}$ac_cv_type_void_p" >&6
3358
3532
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
3533echo "$as_me:$LINENO: checking size of void *" >&5
3534echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3535if test "${ac_cv_sizeof_void_p+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537else
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
3538 if test "$ac_cv_type_void_p" = yes; then
3539 # The cast to unsigned long works around a bug in the HP C Compiler
3540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3542 # This bug is HP SR number 8606223364.
3543 if test "$cross_compiling" = yes; then
3544 # Depending upon the size, compute the lo and hi bounds.
3545cat >conftest.$ac_ext <<_ACEOF
3374/* confdefs.h. */
3375_ACEOF
3376cat confdefs.h >>conftest.$ac_ext
3377cat >>conftest.$ac_ext <<_ACEOF
3378/* end confdefs.h. */
3546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
3379#include "confdefs.h"
3380#include <sys/types.h>
3551$ac_includes_default
3552int
3553main ()
3554{
3555static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3556test_array [0] = 0
3381
3557
3558 ;
3559 return 0;
3560}
3561_ACEOF
3562rm -f conftest.$ac_objext
3563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3564 (eval $ac_compile) 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } &&
3571 { ac_try='test -z "$ac_c_werror_flag"
3572 || test ! -s conftest.err'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; } &&
3578 { ac_try='test -s conftest.$ac_objext'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; }; then
3584 ac_lo=0 ac_mid=0
3585 while :; do
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$ac_includes_default
3593int
3594main ()
3595{
3596static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3597test_array [0] = 0
3382
3598
3599 ;
3600 return 0;
3601}
3602_ACEOF
3603rm -f conftest.$ac_objext
3604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -z "$ac_c_werror_flag"
3613 || test ! -s conftest.err'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; } &&
3619 { ac_try='test -s conftest.$ac_objext'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; }; then
3625 ac_hi=$ac_mid; break
3626else
3627 echo "$as_me: failed program was:" >&5
3628sed 's/^/| /' conftest.$ac_ext >&5
3629
3630ac_lo=`expr $ac_mid + 1`
3631 if test $ac_lo -le $ac_mid; then
3632 ac_lo= ac_hi=
3633 break
3634 fi
3635 ac_mid=`expr 2 '*' $ac_mid + 1`
3636fi
3637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 done
3639else
3640 echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
3643cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
3649$ac_includes_default
3383int
3384main ()
3385{
3650int
3651main ()
3652{
3386switch (0) case 0: case (sizeof (void *) == $ac_size):;
3653static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3654test_array [0] = 0
3655
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
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3663 ac_status=$?

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

3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3413 ac_cv_sizeof_void_p=$ac_size
3682 ac_hi=-1 ac_mid=-1
3683 while :; do
3684 cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h. */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h. */
3690$ac_includes_default
3691int
3692main ()
3693{
3694static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3695test_array [0] = 0
3696
3697 ;
3698 return 0;
3699}
3700_ACEOF
3701rm -f conftest.$ac_objext
3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 ac_lo=$ac_mid; break
3414else
3415 echo "$as_me: failed program was:" >&5
3416sed 's/^/| /' conftest.$ac_ext >&5
3417
3724else
3725 echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728ac_hi=`expr '(' $ac_mid ')' - 1`
3729 if test $ac_mid -le $ac_hi; then
3730 ac_lo= ac_hi=
3731 break
3732 fi
3733 ac_mid=`expr 2 '*' $ac_mid`
3418fi
3419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734fi
3735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3421done
3736 done
3737else
3738 echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3422
3740
3741ac_lo= ac_hi=
3423fi
3742fi
3743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3744fi
3745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3746# Binary search between lo and hi bounds.
3747while test "x$ac_lo" != "x$ac_hi"; do
3748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3749 cat >conftest.$ac_ext <<_ACEOF
3750/* confdefs.h. */
3751_ACEOF
3752cat confdefs.h >>conftest.$ac_ext
3753cat >>conftest.$ac_ext <<_ACEOF
3754/* end confdefs.h. */
3755$ac_includes_default
3756int
3757main ()
3758{
3759static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3760test_array [0] = 0
3424
3761
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;}
3762 ;
3763 return 0;
3764}
3765_ACEOF
3766rm -f conftest.$ac_objext
3767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -z "$ac_c_werror_flag"
3776 || test ! -s conftest.err'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; } &&
3782 { ac_try='test -s conftest.$ac_objext'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3788 ac_hi=$ac_mid
3789else
3790 echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793ac_lo=`expr '(' $ac_mid ')' + 1`
3794fi
3795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3796done
3797case $ac_lo in
3798?*) ac_cv_sizeof_void_p=$ac_lo;;
3799'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3800See \`config.log' for more details." >&5
3801echo "$as_me: error: cannot compute sizeof (void *), 77
3802See \`config.log' for more details." >&2;}
3803 { (exit 1); exit 1; }; } ;;
3804esac
3805else
3806 if test "$cross_compiling" = yes; then
3807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3808See \`config.log' for more details." >&5
3809echo "$as_me: error: cannot run test program while cross compiling
3810See \`config.log' for more details." >&2;}
3428 { (exit 1); exit 1; }; }
3811 { (exit 1); exit 1; }; }
3812else
3813 cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h. */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
3818/* end confdefs.h. */
3819$ac_includes_default
3820long longval () { return (long) (sizeof (void *)); }
3821unsigned long ulongval () { return (long) (sizeof (void *)); }
3822#include <stdio.h>
3823#include <stdlib.h>
3824int
3825main ()
3826{
3827
3828 FILE *f = fopen ("conftest.val", "w");
3829 if (! f)
3830 exit (1);
3831 if (((long) (sizeof (void *))) < 0)
3832 {
3833 long i = longval ();
3834 if (i != ((long) (sizeof (void *))))
3835 exit (1);
3836 fprintf (f, "%ld\n", i);
3837 }
3838 else
3839 {
3840 unsigned long i = ulongval ();
3841 if (i != ((long) (sizeof (void *))))
3842 exit (1);
3843 fprintf (f, "%lu\n", i);
3844 }
3845 exit (ferror (f) || fclose (f) != 0);
3846
3847 ;
3848 return 0;
3849}
3850_ACEOF
3851rm -f conftest$ac_exeext
3852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853 (eval $ac_link) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_cv_sizeof_void_p=`cat conftest.val`
3863else
3864 echo "$as_me: program exited with status $ac_status" >&5
3865echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867
3868( exit $ac_status )
3869{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3870See \`config.log' for more details." >&5
3871echo "$as_me: error: cannot compute sizeof (void *), 77
3872See \`config.log' for more details." >&2;}
3873 { (exit 1); exit 1; }; }
3429fi
3874fi
3875rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3876fi
3877fi
3878rm -f conftest.val
3879else
3880 ac_cv_sizeof_void_p=0
3881fi
3882fi
3430echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3431echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3883echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3884echo "${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
3885cat >>confdefs.h <<_ACEOF
3886#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3887_ACEOF
3888
3889
3890echo "$as_me:$LINENO: checking for short" >&5
3891echo $ECHO_N "checking for short... $ECHO_C" >&6
3892if test "${ac_cv_type_short+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894else
3895 cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
3901$ac_includes_default
3902int
3903main ()
3904{
3905if ((short *) 0)
3906 return 0;
3907if (sizeof (short))
3908 return 0;
3909 ;
3910 return 0;
3911}
3912_ACEOF
3913rm -f conftest.$ac_objext
3914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3915 (eval $ac_compile) 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -z "$ac_c_werror_flag"
3923 || test ! -s conftest.err'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; } &&
3929 { ac_try='test -s conftest.$ac_objext'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_type_short=yes
3936else
3937 echo "$as_me: failed program was:" >&5
3938sed 's/^/| /' conftest.$ac_ext >&5
3939
3940ac_cv_type_short=no
3941fi
3942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3943fi
3944echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3945echo "${ECHO_T}$ac_cv_type_short" >&6
3946
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
3947echo "$as_me:$LINENO: checking size of short" >&5
3948echo $ECHO_N "checking size of short... $ECHO_C" >&6
3949if test "${ac_cv_sizeof_short+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
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
3952 if test "$ac_cv_type_short" = yes; then
3953 # The cast to unsigned long works around a bug in the HP C Compiler
3954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3956 # This bug is HP SR number 8606223364.
3957 if test "$cross_compiling" = yes; then
3958 # Depending upon the size, compute the lo and hi bounds.
3959cat >conftest.$ac_ext <<_ACEOF
3445/* confdefs.h. */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h. */
3960/* confdefs.h. */
3961_ACEOF
3962cat confdefs.h >>conftest.$ac_ext
3963cat >>conftest.$ac_ext <<_ACEOF
3964/* end confdefs.h. */
3450#include "confdefs.h"
3451#include <sys/types.h>
3965$ac_includes_default
3966int
3967main ()
3968{
3969static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3970test_array [0] = 0
3452
3971
3972 ;
3973 return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext
3977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 (eval $ac_compile) 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -z "$ac_c_werror_flag"
3986 || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_lo=0 ac_mid=0
3999 while :; do
4000 cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
4006$ac_includes_default
4007int
4008main ()
4009{
4010static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4011test_array [0] = 0
3453
4012
4013 ;
4014 return 0;
4015}
4016_ACEOF
4017rm -f conftest.$ac_objext
4018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 ac_hi=$ac_mid; break
4040else
4041 echo "$as_me: failed program was:" >&5
4042sed 's/^/| /' conftest.$ac_ext >&5
4043
4044ac_lo=`expr $ac_mid + 1`
4045 if test $ac_lo -le $ac_mid; then
4046 ac_lo= ac_hi=
4047 break
4048 fi
4049 ac_mid=`expr 2 '*' $ac_mid + 1`
4050fi
4051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4052 done
4053else
4054 echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
4056
4057cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h. */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h. */
4063$ac_includes_default
3454int
3455main ()
3456{
4064int
4065main ()
4066{
3457switch (0) case 0: case (sizeof (short) == $ac_size):;
4067static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4068test_array [0] = 0
4069
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
4070 ;
4071 return 0;
4072}
4073_ACEOF
4074rm -f conftest.$ac_objext
4075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4077 ac_status=$?

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

4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
3484 ac_cv_sizeof_short=$ac_size
4096 ac_hi=-1 ac_mid=-1
4097 while :; do
4098 cat >conftest.$ac_ext <<_ACEOF
4099/* confdefs.h. */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h. */
4104$ac_includes_default
4105int
4106main ()
4107{
4108static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4109test_array [0] = 0
4110
4111 ;
4112 return 0;
4113}
4114_ACEOF
4115rm -f conftest.$ac_objext
4116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_lo=$ac_mid; break
3485else
3486 echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
4138else
4139 echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142ac_hi=`expr '(' $ac_mid ')' - 1`
4143 if test $ac_mid -le $ac_hi; then
4144 ac_lo= ac_hi=
4145 break
4146 fi
4147 ac_mid=`expr 2 '*' $ac_mid`
3489fi
3490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4148fi
4149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3491 if test x$ac_cv_sizeof_short != x ; then break; fi
3492done
4150 done
4151else
4152 echo "$as_me: failed program was:" >&5
4153sed 's/^/| /' conftest.$ac_ext >&5
3493
4154
4155ac_lo= ac_hi=
3494fi
4156fi
4157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4158fi
4159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4160# Binary search between lo and hi bounds.
4161while test "x$ac_lo" != "x$ac_hi"; do
4162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4163 cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h. */
4169$ac_includes_default
4170int
4171main ()
4172{
4173static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4174test_array [0] = 0
3495
4175
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;}
4176 ;
4177 return 0;
4178}
4179_ACEOF
4180rm -f conftest.$ac_objext
4181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4182 (eval $ac_compile) 2>conftest.er1
4183 ac_status=$?
4184 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -f conftest.er1
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } &&
4189 { ac_try='test -z "$ac_c_werror_flag"
4190 || test ! -s conftest.err'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_hi=$ac_mid
4203else
4204 echo "$as_me: failed program was:" >&5
4205sed 's/^/| /' conftest.$ac_ext >&5
4206
4207ac_lo=`expr '(' $ac_mid ')' + 1`
4208fi
4209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210done
4211case $ac_lo in
4212?*) ac_cv_sizeof_short=$ac_lo;;
4213'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4214See \`config.log' for more details." >&5
4215echo "$as_me: error: cannot compute sizeof (short), 77
4216See \`config.log' for more details." >&2;}
4217 { (exit 1); exit 1; }; } ;;
4218esac
4219else
4220 if test "$cross_compiling" = yes; then
4221 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4222See \`config.log' for more details." >&5
4223echo "$as_me: error: cannot run test program while cross compiling
4224See \`config.log' for more details." >&2;}
3499 { (exit 1); exit 1; }; }
4225 { (exit 1); exit 1; }; }
4226else
4227 cat >conftest.$ac_ext <<_ACEOF
4228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
4232/* end confdefs.h. */
4233$ac_includes_default
4234long longval () { return (long) (sizeof (short)); }
4235unsigned long ulongval () { return (long) (sizeof (short)); }
4236#include <stdio.h>
4237#include <stdlib.h>
4238int
4239main ()
4240{
4241
4242 FILE *f = fopen ("conftest.val", "w");
4243 if (! f)
4244 exit (1);
4245 if (((long) (sizeof (short))) < 0)
4246 {
4247 long i = longval ();
4248 if (i != ((long) (sizeof (short))))
4249 exit (1);
4250 fprintf (f, "%ld\n", i);
4251 }
4252 else
4253 {
4254 unsigned long i = ulongval ();
4255 if (i != ((long) (sizeof (short))))
4256 exit (1);
4257 fprintf (f, "%lu\n", i);
4258 }
4259 exit (ferror (f) || fclose (f) != 0);
4260
4261 ;
4262 return 0;
4263}
4264_ACEOF
4265rm -f conftest$ac_exeext
4266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4272 (eval $ac_try) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_sizeof_short=`cat conftest.val`
4277else
4278 echo "$as_me: program exited with status $ac_status" >&5
4279echo "$as_me: failed program was:" >&5
4280sed 's/^/| /' conftest.$ac_ext >&5
4281
4282( exit $ac_status )
4283{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4284See \`config.log' for more details." >&5
4285echo "$as_me: error: cannot compute sizeof (short), 77
4286See \`config.log' for more details." >&2;}
4287 { (exit 1); exit 1; }; }
3500fi
4288fi
4289rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4290fi
4291fi
4292rm -f conftest.val
4293else
4294 ac_cv_sizeof_short=0
4295fi
4296fi
3501echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3502echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4297echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4298echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3503
3504cat >>confdefs.h <<_ACEOF
3505#define SIZEOF_SHORT $ac_cv_sizeof_short
3506_ACEOF
3507
3508
4299cat >>confdefs.h <<_ACEOF
4300#define SIZEOF_SHORT $ac_cv_sizeof_short
4301_ACEOF
4302
4303
4304echo "$as_me:$LINENO: checking for int" >&5
4305echo $ECHO_N "checking for int... $ECHO_C" >&6
4306if test "${ac_cv_type_int+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309 cat >conftest.$ac_ext <<_ACEOF
4310/* confdefs.h. */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h. */
4315$ac_includes_default
4316int
4317main ()
4318{
4319if ((int *) 0)
4320 return 0;
4321if (sizeof (int))
4322 return 0;
4323 ;
4324 return 0;
4325}
4326_ACEOF
4327rm -f conftest.$ac_objext
4328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_type_int=yes
4350else
4351 echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
4354ac_cv_type_int=no
4355fi
4356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357fi
4358echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4359echo "${ECHO_T}$ac_cv_type_int" >&6
4360
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
4361echo "$as_me:$LINENO: checking size of int" >&5
4362echo $ECHO_N "checking size of int... $ECHO_C" >&6
4363if test "${ac_cv_sizeof_int+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
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
4366 if test "$ac_cv_type_int" = yes; then
4367 # The cast to unsigned long works around a bug in the HP C Compiler
4368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4370 # This bug is HP SR number 8606223364.
4371 if test "$cross_compiling" = yes; then
4372 # Depending upon the size, compute the lo and hi bounds.
4373cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
4374/* confdefs.h. */
4375_ACEOF
4376cat confdefs.h >>conftest.$ac_ext
4377cat >>conftest.$ac_ext <<_ACEOF
4378/* end confdefs.h. */
3521#include "confdefs.h"
3522#include <sys/types.h>
4379$ac_includes_default
4380int
4381main ()
4382{
4383static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4384test_array [0] = 0
3523
4385
3524
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390rm -f conftest.$ac_objext
4391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag"
4400 || test ! -s conftest.err'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest.$ac_objext'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 ac_lo=0 ac_mid=0
4413 while :; do
4414 cat >conftest.$ac_ext <<_ACEOF
4415/* confdefs.h. */
4416_ACEOF
4417cat confdefs.h >>conftest.$ac_ext
4418cat >>conftest.$ac_ext <<_ACEOF
4419/* end confdefs.h. */
4420$ac_includes_default
3525int
3526main ()
3527{
4421int
4422main ()
4423{
3528switch (0) case 0: case (sizeof (int) == $ac_size):;
4424static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4425test_array [0] = 0
4426
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
4427 ;
4428 return 0;
4429}
4430_ACEOF
4431rm -f conftest.$ac_objext
4432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4434 ac_status=$?

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

4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
3555 ac_cv_sizeof_int=$ac_size
4453 ac_hi=$ac_mid; break
3556else
3557 echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
4454else
4455 echo "$as_me: failed program was:" >&5
4456sed 's/^/| /' conftest.$ac_ext >&5
4457
4458ac_lo=`expr $ac_mid + 1`
4459 if test $ac_lo -le $ac_mid; then
4460 ac_lo= ac_hi=
4461 break
4462 fi
4463 ac_mid=`expr 2 '*' $ac_mid + 1`
3560fi
3561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4464fi
4465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3562 if test x$ac_cv_sizeof_int != x ; then break; fi
3563done
4466 done
4467else
4468 echo "$as_me: failed program was:" >&5
4469sed 's/^/| /' conftest.$ac_ext >&5
3564
4470
3565fi
4471cat >conftest.$ac_ext <<_ACEOF
4472/* confdefs.h. */
4473_ACEOF
4474cat confdefs.h >>conftest.$ac_ext
4475cat >>conftest.$ac_ext <<_ACEOF
4476/* end confdefs.h. */
4477$ac_includes_default
4478int
4479main ()
4480{
4481static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4482test_array [0] = 0
3566
4483
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
4484 ;
4485 return 0;
4486}
4487_ACEOF
4488rm -f conftest.$ac_objext
4489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_hi=-1 ac_mid=-1
4511 while :; do
4512 cat >conftest.$ac_ext <<_ACEOF
4513/* confdefs.h. */
4514_ACEOF
4515cat confdefs.h >>conftest.$ac_ext
4516cat >>conftest.$ac_ext <<_ACEOF
4517/* end confdefs.h. */
4518$ac_includes_default
4519int
4520main ()
4521{
4522static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4523test_array [0] = 0
3574
4524
3575cat >>confdefs.h <<_ACEOF
3576#define SIZEOF_INT $ac_cv_sizeof_int
4525 ;
4526 return 0;
4527}
3577_ACEOF
4528_ACEOF
4529rm -f conftest.$ac_objext
4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_c_werror_flag"
4539 || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try='test -s conftest.$ac_objext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_lo=$ac_mid; break
4552else
4553 echo "$as_me: failed program was:" >&5
4554sed 's/^/| /' conftest.$ac_ext >&5
3578
4555
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
4556ac_hi=`expr '(' $ac_mid ')' - 1`
4557 if test $ac_mid -le $ac_hi; then
4558 ac_lo= ac_hi=
4559 break
4560 fi
4561 ac_mid=`expr 2 '*' $ac_mid`
4562fi
4563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4564 done
3584else
4565else
3585 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4566 echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569ac_lo= ac_hi=
4570fi
4571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572fi
4573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4574# Binary search between lo and hi bounds.
4575while test "x$ac_lo" != "x$ac_hi"; do
4576 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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. */
4577 cat >conftest.$ac_ext <<_ACEOF
4578/* confdefs.h. */
4579_ACEOF
4580cat confdefs.h >>conftest.$ac_ext
4581cat >>conftest.$ac_ext <<_ACEOF
4582/* end confdefs.h. */
3592#include "confdefs.h"
3593#include <sys/types.h>
3594
3595
4583$ac_includes_default
3596int
3597main ()
3598{
4584int
4585main ()
4586{
3599switch (0) case 0: case (sizeof (long) == $ac_size):;
4587static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4588test_array [0] = 0
4589
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
4590 ;
4591 return 0;
4592}
4593_ACEOF
4594rm -f conftest.$ac_objext
4595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4596 (eval $ac_compile) 2>conftest.er1
4597 ac_status=$?

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

4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
3626 ac_cv_sizeof_long=$ac_size
4616 ac_hi=$ac_mid
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
4617else
4618 echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621ac_lo=`expr '(' $ac_mid ')' + 1`
3631fi
3632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622fi
4623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3633 if test x$ac_cv_sizeof_long != x ; then break; fi
3634done
4624done
4625case $ac_lo in
4626?*) ac_cv_sizeof_int=$ac_lo;;
4627'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4628See \`config.log' for more details." >&5
4629echo "$as_me: error: cannot compute sizeof (int), 77
4630See \`config.log' for more details." >&2;}
4631 { (exit 1); exit 1; }; } ;;
4632esac
4633else
4634 if test "$cross_compiling" = yes; then
4635 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4636See \`config.log' for more details." >&5
4637echo "$as_me: error: cannot run test program while cross compiling
4638See \`config.log' for more details." >&2;}
4639 { (exit 1); exit 1; }; }
4640else
4641 cat >conftest.$ac_ext <<_ACEOF
4642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
4647$ac_includes_default
4648long longval () { return (long) (sizeof (int)); }
4649unsigned long ulongval () { return (long) (sizeof (int)); }
4650#include <stdio.h>
4651#include <stdlib.h>
4652int
4653main ()
4654{
3635
4655
3636fi
4656 FILE *f = fopen ("conftest.val", "w");
4657 if (! f)
4658 exit (1);
4659 if (((long) (sizeof (int))) < 0)
4660 {
4661 long i = longval ();
4662 if (i != ((long) (sizeof (int))))
4663 exit (1);
4664 fprintf (f, "%ld\n", i);
4665 }
4666 else
4667 {
4668 unsigned long i = ulongval ();
4669 if (i != ((long) (sizeof (int))))
4670 exit (1);
4671 fprintf (f, "%lu\n", i);
4672 }
4673 exit (ferror (f) || fclose (f) != 0);
3637
4674
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;}
4675 ;
4676 return 0;
4677}
4678_ACEOF
4679rm -f conftest$ac_exeext
4680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4682 ac_status=$?
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 ac_cv_sizeof_int=`cat conftest.val`
4691else
4692 echo "$as_me: program exited with status $ac_status" >&5
4693echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696( exit $ac_status )
4697{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4698See \`config.log' for more details." >&5
4699echo "$as_me: error: cannot compute sizeof (int), 77
4700See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3642fi
4701 { (exit 1); exit 1; }; }
4702fi
3643echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3644echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3645
4703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4704fi
4705fi
4706rm -f conftest.val
4707else
4708 ac_cv_sizeof_int=0
4709fi
4710fi
4711echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4712echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3646cat >>confdefs.h <<_ACEOF
4713cat >>confdefs.h <<_ACEOF
3647#define SIZEOF_LONG $ac_cv_sizeof_long
4714#define SIZEOF_INT $ac_cv_sizeof_int
3648_ACEOF
3649
3650
4715_ACEOF
4716
4717
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
4718echo "$as_me:$LINENO: checking for long" >&5
4719echo $ECHO_N "checking for long... $ECHO_C" >&6
4720if test "${ac_cv_type_long+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
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. */
4723 cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h. */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h. */
3664#include "confdefs.h"
3665#include <sys/types.h>
3666
3667
4729$ac_includes_default
3668int
3669main ()
3670{
4730int
4731main ()
4732{
3671switch (0) case 0: case (sizeof (long long) == $ac_size):;
4733if ((long *) 0)
4734 return 0;
4735if (sizeof (long))
4736 return 0;
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
4737 ;
4738 return 0;
4739}
4740_ACEOF
4741rm -f conftest.$ac_objext
4742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4743 (eval $ac_compile) 2>conftest.er1
4744 ac_status=$?

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

4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; } &&
4757 { ac_try='test -s conftest.$ac_objext'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; }; then
3698 ac_cv_sizeof_long_long=$ac_size
4763 ac_cv_type_long=yes
3699else
3700 echo "$as_me: failed program was:" >&5
3701sed 's/^/| /' conftest.$ac_ext >&5
3702
4764else
4765 echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768ac_cv_type_long=no
3703fi
3704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769fi
4770rm -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
4771fi
4772echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4773echo "${ECHO_T}$ac_cv_type_long" >&6
3709
4774
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
4775echo "$as_me:$LINENO: checking size of long" >&5
4776echo $ECHO_N "checking size of long... $ECHO_C" >&6
4777if test "${ac_cv_sizeof_long+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780 if test "$ac_cv_type_long" = yes; then
4781 # The cast to unsigned long works around a bug in the HP C Compiler
4782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4784 # This bug is HP SR number 8606223364.
4785 if test "$cross_compiling" = yes; then
4786 # Depending upon the size, compute the lo and hi bounds.
4787cat >conftest.$ac_ext <<_ACEOF
4788/* confdefs.h. */
4789_ACEOF
4790cat confdefs.h >>conftest.$ac_ext
4791cat >>conftest.$ac_ext <<_ACEOF
4792/* end confdefs.h. */
4793$ac_includes_default
4794int
4795main ()
4796{
4797static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4798test_array [0] = 0
3717
4799
3718cat >>confdefs.h <<_ACEOF
3719#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4800 ;
4801 return 0;
4802}
3720_ACEOF
4803_ACEOF
4804rm -f conftest.$ac_objext
4805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4806 (eval $ac_compile) 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try='test -z "$ac_c_werror_flag"
4814 || test ! -s conftest.err'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; } &&
4820 { ac_try='test -s conftest.$ac_objext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_lo=0 ac_mid=0
4827 while :; do
4828 cat >conftest.$ac_ext <<_ACEOF
4829/* confdefs.h. */
4830_ACEOF
4831cat confdefs.h >>conftest.$ac_ext
4832cat >>conftest.$ac_ext <<_ACEOF
4833/* end confdefs.h. */
4834$ac_includes_default
4835int
4836main ()
4837{
4838static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4839test_array [0] = 0
3721
4840
4841 ;
4842 return 0;
4843}
4844_ACEOF
4845rm -f conftest.$ac_objext
4846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847 (eval $ac_compile) 2>conftest.er1
4848 ac_status=$?
4849 grep -v '^ *+' conftest.er1 >conftest.err
4850 rm -f conftest.er1
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -z "$ac_c_werror_flag"
4855 || test ! -s conftest.err'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; } &&
4861 { ac_try='test -s conftest.$ac_objext'
4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); }; }; then
4867 ac_hi=$ac_mid; break
4868else
4869 echo "$as_me: failed program was:" >&5
4870sed 's/^/| /' conftest.$ac_ext >&5
3722
4871
4872ac_lo=`expr $ac_mid + 1`
4873 if test $ac_lo -le $ac_mid; then
4874 ac_lo= ac_hi=
4875 break
4876 fi
4877 ac_mid=`expr 2 '*' $ac_mid + 1`
3723fi
4878fi
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
4879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4880 done
3729else
4881else
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
4882 echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
4885cat >conftest.$ac_ext <<_ACEOF
3732/* confdefs.h. */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h. */
4886/* confdefs.h. */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h. */
3737#include "confdefs.h"
3738#include <sys/types.h>
4891$ac_includes_default
4892int
4893main ()
4894{
4895static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4896test_array [0] = 0
3739
4897
3740
4898 ;
4899 return 0;
4900}
4901_ACEOF
4902rm -f conftest.$ac_objext
4903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_hi=-1 ac_mid=-1
4925 while :; do
4926 cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h. */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h. */
4932$ac_includes_default
3741int
3742main ()
3743{
4933int
4934main ()
4935{
3744switch (0) case 0: case (sizeof (__int64) == $ac_size):;
4936static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4937test_array [0] = 0
4938
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
4939 ;
4940 return 0;
4941}
4942_ACEOF
4943rm -f conftest.$ac_objext
4944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>conftest.er1
4946 ac_status=$?

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

4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try='test -s conftest.$ac_objext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
3771 ac_cv_sizeof___int64=$ac_size
4965 ac_lo=$ac_mid; break
3772else
3773 echo "$as_me: failed program was:" >&5
3774sed 's/^/| /' conftest.$ac_ext >&5
3775
4966else
4967 echo "$as_me: failed program was:" >&5
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
4970ac_hi=`expr '(' $ac_mid ')' - 1`
4971 if test $ac_mid -le $ac_hi; then
4972 ac_lo= ac_hi=
4973 break
4974 fi
4975 ac_mid=`expr 2 '*' $ac_mid`
3776fi
3777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4976fi
4977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3778 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3779done
4978 done
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
3780
4982
4983ac_lo= ac_hi=
3781fi
4984fi
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; }; }
4985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3787fi
4986fi
3788echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3789echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
4987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988# Binary search between lo and hi bounds.
4989while test "x$ac_lo" != "x$ac_hi"; do
4990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4991 cat >conftest.$ac_ext <<_ACEOF
4992/* confdefs.h. */
4993_ACEOF
4994cat confdefs.h >>conftest.$ac_ext
4995cat >>conftest.$ac_ext <<_ACEOF
4996/* end confdefs.h. */
4997$ac_includes_default
4998int
4999main ()
5000{
5001static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5002test_array [0] = 0
3790
5003
3791cat >>confdefs.h <<_ACEOF
3792#define SIZEOF___INT64 $ac_cv_sizeof___int64
5004 ;
5005 return 0;
5006}
3793_ACEOF
5007_ACEOF
5008rm -f conftest.$ac_objext
5009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try='test -z "$ac_c_werror_flag"
5018 || test ! -s conftest.err'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_hi=$ac_mid
5031else
5032 echo "$as_me: failed program was:" >&5
5033sed 's/^/| /' conftest.$ac_ext >&5
3794
5034
3795
5035ac_lo=`expr '(' $ac_mid ')' + 1`
3796fi
5036fi
5037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038done
5039case $ac_lo in
5040?*) ac_cv_sizeof_long=$ac_lo;;
5041'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5042See \`config.log' for more details." >&5
5043echo "$as_me: error: cannot compute sizeof (long), 77
5044See \`config.log' for more details." >&2;}
5045 { (exit 1); exit 1; }; } ;;
5046esac
5047else
5048 if test "$cross_compiling" = yes; then
5049 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5050See \`config.log' for more details." >&5
5051echo "$as_me: error: cannot run test program while cross compiling
5052See \`config.log' for more details." >&2;}
5053 { (exit 1); exit 1; }; }
5054else
5055 cat >conftest.$ac_ext <<_ACEOF
5056/* confdefs.h. */
5057_ACEOF
5058cat confdefs.h >>conftest.$ac_ext
5059cat >>conftest.$ac_ext <<_ACEOF
5060/* end confdefs.h. */
5061$ac_includes_default
5062long longval () { return (long) (sizeof (long)); }
5063unsigned long ulongval () { return (long) (sizeof (long)); }
5064#include <stdio.h>
5065#include <stdlib.h>
5066int
5067main ()
5068{
3797
5069
3798# -----------------
3799# Find Ada compiler
3800# -----------------
5070 FILE *f = fopen ("conftest.val", "w");
5071 if (! f)
5072 exit (1);
5073 if (((long) (sizeof (long))) < 0)
5074 {
5075 long i = longval ();
5076 if (i != ((long) (sizeof (long))))
5077 exit (1);
5078 fprintf (f, "%ld\n", i);
5079 }
5080 else
5081 {
5082 unsigned long i = ulongval ();
5083 if (i != ((long) (sizeof (long))))
5084 exit (1);
5085 fprintf (f, "%lu\n", i);
5086 }
5087 exit (ferror (f) || fclose (f) != 0);
3801
5088
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
5089 ;
5090 return 0;
5091}
5092_ACEOF
5093rm -f conftest$ac_exeext
5094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095 (eval $ac_link) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 ac_cv_sizeof_long=`cat conftest.val`
3813else
5105else
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
5106 echo "$as_me: program exited with status $ac_status" >&5
5107echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
3830
5109
5110( exit $ac_status )
5111{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5112See \`config.log' for more details." >&5
5113echo "$as_me: error: cannot compute sizeof (long), 77
5114See \`config.log' for more details." >&2;}
5115 { (exit 1); exit 1; }; }
3831fi
5116fi
5117rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3832fi
5118fi
3833GNATBIND=$ac_cv_prog_GNATBIND
3834if test -n "$GNATBIND"; then
3835 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3836echo "${ECHO_T}$GNATBIND" >&6
5119fi
5120rm -f conftest.val
3837else
5121else
3838 echo "$as_me:$LINENO: result: no" >&5
3839echo "${ECHO_T}no" >&6
5122 ac_cv_sizeof_long=0
3840fi
5123fi
3841
3842fi
5124fi
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
5125echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5126echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5127cat >>confdefs.h <<_ACEOF
5128#define SIZEOF_LONG $ac_cv_sizeof_long
5129_ACEOF
5130
5131
5132echo "$as_me:$LINENO: checking for long long" >&5
5133echo $ECHO_N "checking for long long... $ECHO_C" >&6
5134if test "${ac_cv_type_long_long+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851else
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
3852 if test -n "$ac_ct_GNATBIND"; then
3853 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5137 cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h. */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h. */
5143$ac_includes_default
5144int
5145main ()
5146{
5147if ((long long *) 0)
5148 return 0;
5149if (sizeof (long long))
5150 return 0;
5151 ;
5152 return 0;
5153}
5154_ACEOF
5155rm -f conftest.$ac_objext
5156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>conftest.er1
5158 ac_status=$?
5159 grep -v '^ *+' conftest.er1 >conftest.err
5160 rm -f conftest.er1
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } &&
5164 { ac_try='test -z "$ac_c_werror_flag"
5165 || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167 (eval $ac_try) 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 (eval $ac_try) 2>&5
5174 ac_status=$?
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_type_long_long=yes
3854else
5178else
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
5179 echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
3868
5181
3869 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
5182ac_cv_type_long_long=no
3870fi
5183fi
5184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3871fi
5185fi
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
5186echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5187echo "${ECHO_T}$ac_cv_type_long_long" >&6
5188if test $ac_cv_type_long_long = yes; then
3880
5189
3881 GNATBIND=$ac_ct_GNATBIND
3882else
3883 GNATBIND="$ac_cv_prog_GNATBIND"
3884fi
5190cat >>confdefs.h <<_ACEOF
5191#define HAVE_LONG_LONG 1
5192_ACEOF
3885
5193
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
5194echo "$as_me:$LINENO: checking for long long" >&5
5195echo $ECHO_N "checking for long long... $ECHO_C" >&6
5196if test "${ac_cv_type_long_long+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
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
5199 cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h. */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h. */
5205$ac_includes_default
5206int
5207main ()
5208{
5209if ((long long *) 0)
5210 return 0;
5211if (sizeof (long long))
5212 return 0;
5213 ;
5214 return 0;
5215}
5216_ACEOF
5217rm -f conftest.$ac_objext
5218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -z "$ac_c_werror_flag"
5227 || test ! -s conftest.err'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 (eval $ac_try) 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; } &&
5233 { ac_try='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_cv_type_long_long=yes
5240else
5241 echo "$as_me: failed program was:" >&5
5242sed 's/^/| /' conftest.$ac_ext >&5
5243
5244ac_cv_type_long_long=no
3907fi
5245fi
3908rm -f conftest.*
5246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3909fi
5247fi
3910echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3911echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
5248echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5249echo "${ECHO_T}$ac_cv_type_long_long" >&6
3912
5250
3913if test x$GNATBIND != xno && test x$gcc_cv_cc_supports_ada != xno; then
3914 have_gnat=yes
5251echo "$as_me:$LINENO: checking size of long long" >&5
5252echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5253if test "${ac_cv_sizeof_long_long+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
5255else
3916 have_gnat=no
3917fi
5256 if test "$ac_cv_type_long_long" = yes; then
5257 # The cast to unsigned long works around a bug in the HP C Compiler
5258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5260 # This bug is HP SR number 8606223364.
5261 if test "$cross_compiling" = yes; then
5262 # Depending upon the size, compute the lo and hi bounds.
5263cat >conftest.$ac_ext <<_ACEOF
5264/* confdefs.h. */
5265_ACEOF
5266cat confdefs.h >>conftest.$ac_ext
5267cat >>conftest.$ac_ext <<_ACEOF
5268/* end confdefs.h. */
5269$ac_includes_default
5270int
5271main ()
5272{
5273static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5274test_array [0] = 0
3918
5275
5276 ;
5277 return 0;
5278}
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -z "$ac_c_werror_flag"
5290 || test ! -s conftest.err'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try='test -s conftest.$ac_objext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 ac_lo=0 ac_mid=0
5303 while :; do
5304 cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h. */
5310$ac_includes_default
5311int
5312main ()
5313{
5314static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5315test_array [0] = 0
3919
5316
3920# ---------------------
3921# Warnings and checking
3922# ---------------------
5317 ;
5318 return 0;
5319}
5320_ACEOF
5321rm -f conftest.$ac_objext
5322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5323 (eval $ac_compile) 2>conftest.er1
5324 ac_status=$?
5325 grep -v '^ *+' conftest.er1 >conftest.err
5326 rm -f conftest.er1
5327 cat conftest.err >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } &&
5330 { ac_try='test -z "$ac_c_werror_flag"
5331 || test ! -s conftest.err'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_hi=$ac_mid; break
5344else
5345 echo "$as_me: failed program was:" >&5
5346sed 's/^/| /' conftest.$ac_ext >&5
3923
5347
3924strict1_warn=
3925if test $ac_cv_prog_cc_no_long_long = yes ; then
3926 strict1_warn="-pedantic -Wno-long-long"
5348ac_lo=`expr $ac_mid + 1`
5349 if test $ac_lo -le $ac_mid; then
5350 ac_lo= ac_hi=
5351 break
5352 fi
5353 ac_mid=`expr 2 '*' $ac_mid + 1`
3927fi
5354fi
5355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 done
5357else
5358 echo "$as_me: failed program was:" >&5
5359sed 's/^/| /' conftest.$ac_ext >&5
3928
5360
5361cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
5367$ac_includes_default
5368int
5369main ()
5370{
5371static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5372test_array [0] = 0
3929
5373
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
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext
5379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380 (eval $ac_compile) 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_c_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest.$ac_objext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 ac_hi=-1 ac_mid=-1
5401 while :; do
5402 cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h. */
5408$ac_includes_default
5409int
5410main ()
5411{
5412static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5413test_array [0] = 0
3937
5414
5415 ;
5416 return 0;
5417}
5418_ACEOF
5419rm -f conftest.$ac_objext
5420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag"
5429 || test ! -s conftest.err'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431 (eval $ac_try) 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_lo=$ac_mid; break
5442else
5443 echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
3938
5445
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
5446ac_hi=`expr '(' $ac_mid ')' - 1`
5447 if test $ac_mid -le $ac_hi; then
5448 ac_lo= ac_hi=
5449 break
5450 fi
5451 ac_mid=`expr 2 '*' $ac_mid`
5452fi
5453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5454 done
3945else
5455else
3946 enable_werror=no
3947fi;
3948if test x$enable_werror = xyes ; then
3949 WERROR=-Werror
5456 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
5459ac_lo= ac_hi=
3950fi
5460fi
5461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5462fi
5463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464# Binary search between lo and hi bounds.
5465while test "x$ac_lo" != "x$ac_hi"; do
5466 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5467 cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h. */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h. */
5473$ac_includes_default
5474int
5475main ()
5476{
5477static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5478test_array [0] = 0
3951
5479
5480 ;
5481 return 0;
5482}
5483_ACEOF
5484rm -f conftest.$ac_objext
5485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486 (eval $ac_compile) 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try='test -z "$ac_c_werror_flag"
5494 || test ! -s conftest.err'
5495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 (eval $ac_try) 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; } &&
5500 { ac_try='test -s conftest.$ac_objext'
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 (eval $ac_try) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 ac_hi=$ac_mid
5507else
5508 echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
3952
5510
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;}
5511ac_lo=`expr '(' $ac_mid ')' + 1`
5512fi
5513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5514done
5515case $ac_lo in
5516?*) ac_cv_sizeof_long_long=$ac_lo;;
5517'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5518See \`config.log' for more details." >&5
5519echo "$as_me: error: cannot compute sizeof (long long), 77
5520See \`config.log' for more details." >&2;}
3984 { (exit 1); exit 1; }; } ;;
5521 { (exit 1); exit 1; }; } ;;
3985 esac
3986 done
3987 ;;
3988esac
5522esac
3989
3990else
5523else
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
5524 if test "$cross_compiling" = yes; then
5525 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5526See \`config.log' for more details." >&5
5527echo "$as_me: error: cannot run test program while cross compiling
5528See \`config.log' for more details." >&2;}
5529 { (exit 1); exit 1; }; }
5530else
5531 cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h. */
3999_ACEOF
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h. */
5537$ac_includes_default
5538long longval () { return (long) (sizeof (long long)); }
5539unsigned long ulongval () { return (long) (sizeof (long long)); }
5540#include <stdio.h>
5541#include <stdlib.h>
5542int
5543main ()
5544{
4000
5545
4001 nocommon_flag=-fno-common
4002fi
5546 FILE *f = fopen ("conftest.val", "w");
5547 if (! f)
5548 exit (1);
5549 if (((long) (sizeof (long long))) < 0)
5550 {
5551 long i = longval ();
5552 if (i != ((long) (sizeof (long long))))
5553 exit (1);
5554 fprintf (f, "%ld\n", i);
5555 }
5556 else
5557 {
5558 unsigned long i = ulongval ();
5559 if (i != ((long) (sizeof (long long))))
5560 exit (1);
5561 fprintf (f, "%lu\n", i);
5562 }
5563 exit (ferror (f) || fclose (f) != 0);
4003
5564
4004if test x$ac_tree_checking != x ; then
4005
4006cat >>confdefs.h <<\_ACEOF
4007#define ENABLE_TREE_CHECKING 1
5565 ;
5566 return 0;
5567}
4008_ACEOF
5568_ACEOF
5569rm -f conftest$ac_exeext
5570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571 (eval $ac_link) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 (eval $ac_try) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
5580 ac_cv_sizeof_long_long=`cat conftest.val`
5581else
5582 echo "$as_me: program exited with status $ac_status" >&5
5583echo "$as_me: failed program was:" >&5
5584sed 's/^/| /' conftest.$ac_ext >&5
4009
5585
5586( exit $ac_status )
5587{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5588See \`config.log' for more details." >&5
5589echo "$as_me: error: cannot compute sizeof (long long), 77
5590See \`config.log' for more details." >&2;}
5591 { (exit 1); exit 1; }; }
4010fi
5592fi
4011if test x$ac_rtl_checking != x ; then
4012
4013cat >>confdefs.h <<\_ACEOF
4014#define ENABLE_RTL_CHECKING 1
4015_ACEOF
4016
5593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4017fi
5594fi
4018if test x$ac_rtlflag_checking != x ; then
4019
4020cat >>confdefs.h <<\_ACEOF
4021#define ENABLE_RTL_FLAG_CHECKING 1
4022_ACEOF
4023
4024fi
5595fi
4025if test x$ac_gc_checking != x ; then
4026
4027cat >>confdefs.h <<\_ACEOF
4028#define ENABLE_GC_CHECKING 1
5596rm -f conftest.val
5597else
5598 ac_cv_sizeof_long_long=0
5599fi
5600fi
5601echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5602echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5603cat >>confdefs.h <<_ACEOF
5604#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4029_ACEOF
4030
5605_ACEOF
5606
5607
4031fi
5608fi
4032if test x$ac_gc_always_collect != x ; then
4033
5609
4034cat >>confdefs.h <<\_ACEOF
4035#define ENABLE_GC_ALWAYS_COLLECT 1
5610echo "$as_me:$LINENO: checking for __int64" >&5
5611echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5612if test "${ac_cv_type___int64+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614else
5615 cat >conftest.$ac_ext <<_ACEOF
5616/* confdefs.h. */
4036_ACEOF
5617_ACEOF
5618cat confdefs.h >>conftest.$ac_ext
5619cat >>conftest.$ac_ext <<_ACEOF
5620/* end confdefs.h. */
5621$ac_includes_default
5622int
5623main ()
5624{
5625if ((__int64 *) 0)
5626 return 0;
5627if (sizeof (__int64))
5628 return 0;
5629 ;
5630 return 0;
5631}
5632_ACEOF
5633rm -f conftest.$ac_objext
5634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5635 (eval $ac_compile) 2>conftest.er1
5636 ac_status=$?
5637 grep -v '^ *+' conftest.er1 >conftest.err
5638 rm -f conftest.er1
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } &&
5642 { ac_try='test -z "$ac_c_werror_flag"
5643 || test ! -s conftest.err'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; } &&
5649 { ac_try='test -s conftest.$ac_objext'
5650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 (eval $ac_try) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
5655 ac_cv_type___int64=yes
5656else
5657 echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
4037
5659
5660ac_cv_type___int64=no
4038fi
5661fi
4039if test x$ac_fold_checking != x ; then
5662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663fi
5664echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5665echo "${ECHO_T}$ac_cv_type___int64" >&6
5666if test $ac_cv_type___int64 = yes; then
4040
5667
4041cat >>confdefs.h <<\_ACEOF
4042#define ENABLE_FOLD_CHECKING 1
5668cat >>confdefs.h <<_ACEOF
5669#define HAVE___INT64 1
4043_ACEOF
4044
5670_ACEOF
5671
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
5672echo "$as_me:$LINENO: checking for __int64" >&5
5673echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5674if test "${ac_cv_type___int64+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
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
5677 cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h. */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h. */
5683$ac_includes_default
5684int
5685main ()
5686{
5687if ((__int64 *) 0)
5688 return 0;
5689if (sizeof (__int64))
5690 return 0;
5691 ;
5692 return 0;
5693}
5694_ACEOF
5695rm -f conftest.$ac_objext
5696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -z "$ac_c_werror_flag"
5705 || test ! -s conftest.err'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; } &&
5711 { ac_try='test -s conftest.$ac_objext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_type___int64=yes
5718else
5719 echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722ac_cv_type___int64=no
4059fi
5723fi
4060echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4061echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4062 EGREP=$ac_cv_prog_egrep
5724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5725fi
5726echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5727echo "${ECHO_T}$ac_cv_type___int64" >&6
4063
5728
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
5729echo "$as_me:$LINENO: checking size of __int64" >&5
5730echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5731if test "${ac_cv_sizeof___int64+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
4070 cat >conftest.$ac_ext <<_ACEOF
5734 if test "$ac_cv_type___int64" = yes; then
5735 # The cast to unsigned long works around a bug in the HP C Compiler
5736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5738 # This bug is HP SR number 8606223364.
5739 if test "$cross_compiling" = yes; then
5740 # Depending upon the size, compute the lo and hi bounds.
5741cat >conftest.$ac_ext <<_ACEOF
4071/* confdefs.h. */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h. */
5742/* confdefs.h. */
5743_ACEOF
5744cat confdefs.h >>conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */
4076#include <stdlib.h>
4077#include <stdarg.h>
4078#include <string.h>
4079#include <float.h>
5747$ac_includes_default
5748int
5749main ()
5750{
5751static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5752test_array [0] = 0
4080
5753
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext
5759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_c_werror_flag"
5768 || test ! -s conftest.err'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 (eval $ac_try) 2>&5
5771 ac_status=$?
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; } &&
5774 { ac_try='test -s conftest.$ac_objext'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; }; then
5780 ac_lo=0 ac_mid=0
5781 while :; do
5782 cat >conftest.$ac_ext <<_ACEOF
5783/* confdefs.h. */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h. */
5788$ac_includes_default
4081int
4082main ()
4083{
5789int
5790main ()
5791{
5792static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5793test_array [0] = 0
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
5794
5795 ;
5796 return 0;
5797}
5798_ACEOF
5799rm -f conftest.$ac_objext
5800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1

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

5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
4111 ac_cv_header_stdc=yes
5821 ac_hi=$ac_mid; break
4112else
4113 echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
4115
5822else
5823 echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
4116ac_cv_header_stdc=no
5826ac_lo=`expr $ac_mid + 1`
5827 if test $ac_lo -le $ac_mid; then
5828 ac_lo= ac_hi=
5829 break
5830 fi
5831 ac_mid=`expr 2 '*' $ac_mid + 1`
4117fi
4118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5832fi
5833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834 done
5835else
5836 echo "$as_me: failed program was:" >&5
5837sed 's/^/| /' conftest.$ac_ext >&5
4119
5838
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
5839cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h. */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h. */
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
4128#include <string.h>
5845$ac_includes_default
5846int
5847main ()
5848{
5849static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5850test_array [0] = 0
4129
5851
5852 ;
5853 return 0;
5854}
4130_ACEOF
5855_ACEOF
4131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132 $EGREP "memchr" >/dev/null 2>&1; then
4133 :
5856rm -f conftest.$ac_objext
5857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_c_werror_flag"
5866 || test ! -s conftest.err'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 (eval $ac_try) 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 ac_hi=-1 ac_mid=-1
5879 while :; do
5880 cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h. */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h. */
5886$ac_includes_default
5887int
5888main ()
5889{
5890static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5891test_array [0] = 0
5892
5893 ;
5894 return 0;
5895}
5896_ACEOF
5897rm -f conftest.$ac_objext
5898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899 (eval $ac_compile) 2>conftest.er1
5900 ac_status=$?
5901 grep -v '^ *+' conftest.er1 >conftest.err
5902 rm -f conftest.er1
5903 cat conftest.err >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } &&
5906 { ac_try='test -z "$ac_c_werror_flag"
5907 || test ! -s conftest.err'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try='test -s conftest.$ac_objext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 ac_lo=$ac_mid; break
4134else
5920else
4135 ac_cv_header_stdc=no
4136fi
4137rm -f conftest*
5921 echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
4138
5923
5924ac_hi=`expr '(' $ac_mid ')' - 1`
5925 if test $ac_mid -le $ac_hi; then
5926 ac_lo= ac_hi=
5927 break
5928 fi
5929 ac_mid=`expr 2 '*' $ac_mid`
4139fi
5930fi
5931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932 done
5933else
5934 echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
4140
5936
4141if test $ac_cv_header_stdc = yes; then
4142 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5937ac_lo= ac_hi=
5938fi
5939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940fi
5941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5942# Binary search between lo and hi bounds.
5943while test "x$ac_lo" != "x$ac_hi"; do
5944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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. */
5945 cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h. */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h. */
4149#include <stdlib.h>
5951$ac_includes_default
5952int
5953main ()
5954{
5955static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5956test_array [0] = 0
4150
5957
5958 ;
5959 return 0;
5960}
4151_ACEOF
5961_ACEOF
4152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4153 $EGREP "free" >/dev/null 2>&1; then
4154 :
5962rm -f conftest.$ac_objext
5963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_c_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_hi=$ac_mid
4155else
5985else
4156 ac_cv_header_stdc=no
4157fi
4158rm -f conftest*
5986 echo "$as_me: failed program was:" >&5
5987sed 's/^/| /' conftest.$ac_ext >&5
4159
5988
5989ac_lo=`expr '(' $ac_mid ')' + 1`
4160fi
5990fi
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.
5991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992done
5993case $ac_lo in
5994?*) ac_cv_sizeof___int64=$ac_lo;;
5995'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5996See \`config.log' for more details." >&5
5997echo "$as_me: error: cannot compute sizeof (__int64), 77
5998See \`config.log' for more details." >&2;}
5999 { (exit 1); exit 1; }; } ;;
6000esac
6001else
4164 if test "$cross_compiling" = yes; then
6002 if test "$cross_compiling" = yes; then
4165 :
6003 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6004See \`config.log' for more details." >&5
6005echo "$as_me: error: cannot run test program while cross compiling
6006See \`config.log' for more details." >&2;}
6007 { (exit 1); exit 1; }; }
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. */
6008else
6009 cat >conftest.$ac_ext <<_ACEOF
6010/* confdefs.h. */
6011_ACEOF
6012cat confdefs.h >>conftest.$ac_ext
6013cat >>conftest.$ac_ext <<_ACEOF
6014/* 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)))
6015$ac_includes_default
6016long longval () { return (long) (sizeof (__int64)); }
6017unsigned long ulongval () { return (long) (sizeof (__int64)); }
6018#include <stdio.h>
6019#include <stdlib.h>
4186int
4187main ()
4188{
6020int
6021main ()
6022{
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);
6023
6024 FILE *f = fopen ("conftest.val", "w");
6025 if (! f)
6026 exit (1);
6027 if (((long) (sizeof (__int64))) < 0)
6028 {
6029 long i = longval ();
6030 if (i != ((long) (sizeof (__int64))))
6031 exit (1);
6032 fprintf (f, "%ld\n", i);
6033 }
6034 else
6035 {
6036 unsigned long i = ulongval ();
6037 if (i != ((long) (sizeof (__int64))))
6038 exit (1);
6039 fprintf (f, "%lu\n", i);
6040 }
6041 exit (ferror (f) || fclose (f) != 0);
6042
6043 ;
6044 return 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
6045}
6046_ACEOF
6047rm -f conftest$ac_exeext
6048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6049 (eval $ac_link) 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
4208 :
6058 ac_cv_sizeof___int64=`cat conftest.val`
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 )
6059else
6060 echo "$as_me: program exited with status $ac_status" >&5
6061echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064( exit $ac_status )
4215ac_cv_header_stdc=no
6065{ { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6066See \`config.log' for more details." >&5
6067echo "$as_me: error: cannot compute sizeof (__int64), 77
6068See \`config.log' for more details." >&2;}
6069 { (exit 1); exit 1; }; }
4216fi
4217rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4218fi
4219fi
6070fi
6071rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6072fi
6073fi
6074rm -f conftest.val
6075else
6076 ac_cv_sizeof___int64=0
4220fi
6077fi
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
6078fi
6079echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6080echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6081cat >>confdefs.h <<_ACEOF
6082#define SIZEOF___INT64 $ac_cv_sizeof___int64
6083_ACEOF
4224
6084
4225cat >>confdefs.h <<\_ACEOF
4226#define STDC_HEADERS 1
6085
6086fi
6087
6088
6089# ---------------------
6090# Warnings and checking
6091# ---------------------
6092
6093# Check $CC warning features (if it's GCC).
6094# We want to use -pedantic, but we don't want warnings about
6095# * 'long long'
6096# * variadic macros
6097# * overlong strings
6098# So, we only use -pedantic if we can disable those warnings.
6099
6100echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6101echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6102if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105 save_CFLAGS="$CFLAGS"
6106 CFLAGS="-Wno-long-long"
6107 cat >conftest.$ac_ext <<_ACEOF
6108/* confdefs.h. */
4227_ACEOF
6109_ACEOF
6110cat confdefs.h >>conftest.$ac_ext
6111cat >>conftest.$ac_ext <<_ACEOF
6112/* end confdefs.h. */
4228
6113
6114_ACEOF
6115rm -f conftest.$ac_objext
6116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6117 (eval $ac_compile) 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 (eval $ac_try) 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 (eval $ac_try) 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_prog_cc_w_no_long_long=yes
6138else
6139 echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
6141
6142ac_cv_prog_cc_w_no_long_long=no
4229fi
6143fi
6144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145 CFLAGS="$save_CFLAGS"
4230
6146
4231# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6147fi
6148echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6149echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
4232
6150
6151echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6152echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6153if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156 save_CFLAGS="$CFLAGS"
6157 CFLAGS="-Wno-variadic-macros"
6158 cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h. */
4233
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=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -z "$ac_c_werror_flag"
6176 || test ! -s conftest.err'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; } &&
6182 { ac_try='test -s conftest.$ac_objext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 ac_cv_prog_cc_w_no_variadic_macros=yes
6189else
6190 echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
4234
6192
6193ac_cv_prog_cc_w_no_variadic_macros=no
6194fi
6195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6196 CFLAGS="$save_CFLAGS"
4235
6197
6198fi
6199echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6200echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
4236
6201
6202echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6203echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6204if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206else
6207 save_CFLAGS="$CFLAGS"
6208 CFLAGS="-Wno-overlength-strings"
6209 cat >conftest.$ac_ext <<_ACEOF
6210/* confdefs.h. */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h. */
4237
6215
6216_ACEOF
6217rm -f conftest.$ac_objext
6218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219 (eval $ac_compile) 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -z "$ac_c_werror_flag"
6227 || test ! -s conftest.err'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6239 ac_cv_prog_cc_w_no_overlength_strings=yes
6240else
6241 echo "$as_me: failed program was:" >&5
6242sed 's/^/| /' conftest.$ac_ext >&5
4238
6243
6244ac_cv_prog_cc_w_no_overlength_strings=no
6245fi
6246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6247 CFLAGS="$save_CFLAGS"
4239
6248
6249fi
6250echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6251echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
4240
6252
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
6253strict1_warn=
6254if test $ac_cv_prog_cc_w_no_long_long = yes \
6255 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6256 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6257 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6258fi
6259
6260# Add -Wold-style-definition if it's accepted
6261echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6262echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6263if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249else
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266 save_CFLAGS="$CFLAGS"
6267 CFLAGS="-Wold-style-definition"
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. */
6268 cat >conftest.$ac_ext <<_ACEOF
6269/* confdefs.h. */
6270_ACEOF
6271cat confdefs.h >>conftest.$ac_ext
6272cat >>conftest.$ac_ext <<_ACEOF
6273/* end confdefs.h. */
4256$ac_includes_default
4257
6274
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
6275_ACEOF
6276rm -f conftest.$ac_objext
6277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278 (eval $ac_compile) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5

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

6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
4282 eval "$as_ac_Header=yes"
6298 ac_cv_prog_cc_w_old_style_definition=yes
4283else
4284 echo "$as_me: failed program was:" >&5
4285sed 's/^/| /' conftest.$ac_ext >&5
4286
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
4287eval "$as_ac_Header=no"
6303ac_cv_prog_cc_w_old_style_definition=no
4288fi
4289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6304fi
6305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6306 CFLAGS="$save_CFLAGS"
6307
4290fi
6308fi
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
6309echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6310echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6311if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6312 strict1_warn="${strict1_warn} -Wold-style-definition"
6313fi
6314
6315# Add -Wmissing-format-attribute if it's accepted
6316echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6317echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6318if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321 save_CFLAGS="$CFLAGS"
6322 CFLAGS="-Wmissing-format-attribute"
6323 cat >conftest.$ac_ext <<_ACEOF
6324/* confdefs.h. */
4296_ACEOF
6325_ACEOF
6326cat confdefs.h >>conftest.$ac_ext
6327cat >>conftest.$ac_ext <<_ACEOF
6328/* end confdefs.h. */
4297
6329
6330_ACEOF
6331rm -f conftest.$ac_objext
6332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333 (eval $ac_compile) 2>conftest.er1
6334 ac_status=$?
6335 grep -v '^ *+' conftest.er1 >conftest.err
6336 rm -f conftest.er1
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -z "$ac_c_werror_flag"
6341 || test ! -s conftest.err'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest.$ac_objext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_prog_cc_w_missing_format_attribute=yes
6354else
6355 echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
6358ac_cv_prog_cc_w_missing_format_attribute=no
4298fi
6359fi
6360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6361 CFLAGS="$save_CFLAGS"
4299
6362
6363fi
6364echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6365echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6366if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6367 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6368fi
6369
6370# Enable -Werror, period.
6371# Check whether --enable-werror_always or --disable-werror_always was given.
6372if test "${enable_werror_always+set}" = set; then
6373 enableval="$enable_werror_always"
6374
6375else
6376 enable_werror_always=no
6377fi;
6378if test x${enable_werror_always} = xyes ; then
6379 strict1_warn="${strict1_warn} -Werror"
6380 WERROR=-Werror
6381fi
6382
6383
6384
6385# Get C++ compatibility warning flag, if supported.
6386echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6387echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6388if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 save_CFLAGS="$CFLAGS"
6392 CFLAGS="-Wc++-compat"
6393 cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h. */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h. */
6399
6400_ACEOF
6401rm -f conftest.$ac_objext
6402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6403 (eval $ac_compile) 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_cv_prog_cc_w_cxx_compat=yes
6424else
6425 echo "$as_me: failed program was:" >&5
6426sed 's/^/| /' conftest.$ac_ext >&5
6427
6428ac_cv_prog_cc_w_cxx_compat=no
6429fi
6430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6431 CFLAGS="$save_CFLAGS"
6432
6433fi
6434echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6435echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6436if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6437 cxx_compat_warn="-Wc++-compat"
6438fi
6439
6440
6441
6442# If the native compiler is GCC, we can enable warnings even in stage1.
6443# That's useful for people building cross-compilers, or just running a
6444# quick `make'.
6445warn_cflags=
6446if test "x$GCC" = "xyes"; then
6447 warn_cflags='$(GCC_WARN_CFLAGS)'
6448fi
6449
6450
6451# Enable -Werror in bootstrap stage2 and later.
6452is_release=
6453if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6454 is_release=yes
6455fi
6456# Check whether --enable-werror or --disable-werror was given.
6457if test "${enable_werror+set}" = set; then
6458 enableval="$enable_werror"
6459
6460else
6461 if test x$is_release = x ; then
6462 # Default to "yes" on development branches.
6463 enable_werror=yes
6464else
6465 # Default to "no" on release branches.
6466 enable_werror=no
6467fi
6468fi;
6469if test x$enable_werror = xyes ; then
6470 WERROR=-Werror
6471fi
6472
6473
6474# Enable expensive internal checks
6475# Check whether --enable-checking or --disable-checking was given.
6476if test "${enable_checking+set}" = set; then
6477 enableval="$enable_checking"
6478 ac_checking_flags="${enableval}"
6479else
6480
6481# Determine the default checks.
6482if test x$is_release = x ; then
6483 ac_checking_flags=yes
6484else
6485 ac_checking_flags=release
6486fi
6487fi;
6488ac_assert_checking=1
6489ac_checking=
6490ac_fold_checking=
6491ac_gc_checking=
6492ac_gc_always_collect=
6493ac_rtl_checking=
6494ac_rtlflag_checking=
6495ac_runtime_checking=1
6496ac_tree_checking=
6497ac_valgrind_checking=
6498IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6499for check in $ac_checking_flags
6500do
6501 case $check in
6502 # these set all the flags to specific states
6503 yes) ac_assert_checking=1 ; ac_checking=1 ;
6504 ac_fold_checking= ; ac_gc_checking=1 ;
6505 ac_gc_always_collect= ; ac_rtl_checking= ;
6506 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6507 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6508 no|none) ac_assert_checking= ; ac_checking= ;
6509 ac_fold_checking= ; ac_gc_checking= ;
6510 ac_gc_always_collect= ; ac_rtl_checking= ;
6511 ac_rtlflag_checking= ; ac_runtime_checking= ;
6512 ac_tree_checking= ; ac_valgrind_checking= ;;
6513 all) ac_assert_checking=1 ; ac_checking=1 ;
6514 ac_fold_checking=1 ; ac_gc_checking=1 ;
6515 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6516 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6517 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6518 release) ac_assert_checking=1 ; ac_checking= ;
6519 ac_fold_checking= ; ac_gc_checking= ;
6520 ac_gc_always_collect= ; ac_rtl_checking= ;
6521 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6522 ac_tree_checking= ; ac_valgrind_checking= ;;
6523 # these enable particular checks
6524 assert) ac_assert_checking=1 ;;
6525 fold) ac_fold_checking=1 ;;
6526 gc) ac_gc_checking=1 ;;
6527 gcac) ac_gc_always_collect=1 ;;
6528 misc) ac_checking=1 ;;
6529 rtl) ac_rtl_checking=1 ;;
6530 rtlflag) ac_rtlflag_checking=1 ;;
6531 runtime) ac_runtime_checking=1 ;;
6532 tree) ac_tree_checking=1 ;;
6533 valgrind) ac_valgrind_checking=1 ;;
6534 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6535echo "$as_me: error: unknown check category $check" >&2;}
6536 { (exit 1); exit 1; }; } ;;
6537 esac
4300done
6538done
6539IFS="$ac_save_IFS"
4301
6540
6541nocommon_flag=""
6542if test x$ac_checking != x ; then
4302
6543
6544cat >>confdefs.h <<\_ACEOF
6545#define ENABLE_CHECKING 1
6546_ACEOF
6547
6548 nocommon_flag=-fno-common
6549fi
6550
6551if test x$ac_assert_checking != x ; then
6552
6553cat >>confdefs.h <<\_ACEOF
6554#define ENABLE_ASSERT_CHECKING 1
6555_ACEOF
6556
6557fi
6558
6559if test x$ac_runtime_checking != x ; then
6560
6561cat >>confdefs.h <<\_ACEOF
6562#define ENABLE_RUNTIME_CHECKING 1
6563_ACEOF
6564
6565fi
6566if test x$ac_tree_checking != x ; then
6567
6568cat >>confdefs.h <<\_ACEOF
6569#define ENABLE_TREE_CHECKING 1
6570_ACEOF
6571
6572 TREEBROWSER=tree-browser.o
6573fi
6574
6575if test x$ac_rtl_checking != x ; then
6576
6577cat >>confdefs.h <<\_ACEOF
6578#define ENABLE_RTL_CHECKING 1
6579_ACEOF
6580
6581fi
6582if test x$ac_rtlflag_checking != x ; then
6583
6584cat >>confdefs.h <<\_ACEOF
6585#define ENABLE_RTL_FLAG_CHECKING 1
6586_ACEOF
6587
6588fi
6589if test x$ac_gc_checking != x ; then
6590
6591cat >>confdefs.h <<\_ACEOF
6592#define ENABLE_GC_CHECKING 1
6593_ACEOF
6594
6595fi
6596if test x$ac_gc_always_collect != x ; then
6597
6598cat >>confdefs.h <<\_ACEOF
6599#define ENABLE_GC_ALWAYS_COLLECT 1
6600_ACEOF
6601
6602fi
6603if test x$ac_fold_checking != x ; then
6604
6605cat >>confdefs.h <<\_ACEOF
6606#define ENABLE_FOLD_CHECKING 1
6607_ACEOF
6608
6609fi
6610valgrind_path_defines=
6611valgrind_command=
6612
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
6613if test "${ac_cv_header_valgrind_h+set}" = set; then
6614 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6615echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6616if test "${ac_cv_header_valgrind_h+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618fi
6619echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6620echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6

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

6750if test $ac_cv_header_valgrind_h = yes; then
6751 have_valgrind_h=yes
6752else
6753 have_valgrind_h=no
6754fi
6755
6756
6757
4448if test x$ac_checking_valgrind != x ; then
6758if test x$ac_valgrind_checking != 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
6759 # It is certainly possible that there's valgrind but no valgrind.h.
6760 # GCC relies on making annotations so we must have both.
6761 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6762echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6763 cat >conftest.$ac_ext <<_ACEOF
6764/* confdefs.h. */
6765_ACEOF
6766cat confdefs.h >>conftest.$ac_ext

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

6935#define HAVE_MEMCHECK_H 1
6936_ACEOF
6937
6938 fi
6939fi
6940
6941
6942
6943# Check whether --enable-mapped-location or --disable-mapped-location was given.
6944if test "${enable_mapped_location+set}" = set; then
6945 enableval="$enable_mapped_location"
6946
6947else
6948 enable_mapped_location=no
6949fi;
6950
6951if test "$enable_mapped_location" = yes ; then
6952
6953cat >>confdefs.h <<\_ACEOF
6954#define USE_MAPPED_LOCATION 1
6955_ACEOF
6956
6957fi
6958
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
6959# Enable code coverage collection
6960# Check whether --enable-coverage or --disable-coverage was given.
6961if test "${enable_coverage+set}" = set; then
6962 enableval="$enable_coverage"
6963 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
6964 yes|noopt)
6965 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6966 ;;
6967 opt)
6968 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6969 ;;
6970 no)
6971 # a.k.a. --disable-coverage
6972 coverage_flags=""
6973 ;;
6974 *)
6975 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4646echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4647 { (exit 1); exit 1; }; }
6976echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6977 { (exit 1); exit 1; }; }
4648 ;;
6978 ;;
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
6979esac
6980else
6981 coverage_flags=""
6982fi;
6983
6984
6985# Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6986if test "${enable_gather_detailed_mem_stats+set}" = set; then

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

7023
7024# Enable __cxa_atexit for C++.
7025# Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7026if test "${enable___cxa_atexit+set}" = set; then
7027 enableval="$enable___cxa_atexit"
7028
7029fi;
7030
7031# Enable C extension for decimal float if target supports it.
7032# Check whether --enable-decimal-float or --disable-decimal-float was given.
7033if test "${enable_decimal_float+set}" = set; then
7034 enableval="$enable_decimal_float"
7035
7036 if test x$enablevar = xyes ; then
7037 case $target in
7038 powerpc*-*-linux* | i?86*-*-linux*)
7039 enable_decimal_float=yes
7040 ;;
7041 *)
7042 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7043echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7044 enable_decimal_float=no
7045 ;;
7046 esac
7047 fi
7048
7049else
7050 enable_decimal_float=no
7051fi;
7052
7053
7054
7055dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7056
7057cat >>confdefs.h <<_ACEOF
7058#define ENABLE_DECIMAL_FLOAT $dfp
7059_ACEOF
7060
7061
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;
7062# Enable threads
7063# Pass with no value to take the default
7064# Pass with a value to specify a thread package
7065# Check whether --enable-threads or --disable-threads was given.
7066if test "${enable_threads+set}" = set; then
7067 enableval="$enable_threads"
7068
7069else
7070 enable_threads=''
7071fi;
4711# Save in case it gets overwritten in config.gcc
4712enable_threads_flag=$enable_threads
4713
7072
7073# Check whether --enable-tls or --disable-tls was given.
7074if test "${enable_tls+set}" = set; then
7075 enableval="$enable_tls"
7076
7077 case $enable_tls in
7078 yes | no) ;;
7079 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7080Valid choices are 'yes' and 'no'." >&5
7081echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7082Valid choices are 'yes' and 'no'." >&2;}
7083 { (exit 1); exit 1; }; } ;;
7084 esac
7085
7086else
7087 enable_tls=''
7088fi;
7089
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
7090# Check whether --enable-objc-gc or --disable-objc-gc was given.
7091if test "${enable_objc_gc+set}" = set; then
7092 enableval="$enable_objc_gc"
7093 if test x$enable_objc_gc = xno; then
7094 objc_boehm_gc=''
7095else
7096 objc_boehm_gc=1
7097fi

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

7127 esac
7128
7129else
7130 enable_shared=yes
7131fi;
7132
7133
7134
7135# Check whether --with-build-sysroot or --without-build-sysroot was given.
7136if test "${with_build_sysroot+set}" = set; then
7137 withval="$with_build_sysroot"
7138
7139fi;
7140
7141
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
7142# Check whether --with-sysroot or --without-sysroot was given.
7143if test "${with_sysroot+set}" = set; then
7144 withval="$with_sysroot"
7145
7146 case ${with_sysroot} in
7147 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7148 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7149 esac

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

7187 yes) onestep="-onestep";;
7188 *) onestep="";;
7189esac
7190else
7191 onestep=""
7192fi;
7193
7194
7195# Sanity check enable_languages in case someone does not run the toplevel
7196# configure # script.
7197# Check whether --enable-languages or --disable-languages was given.
7198if test "${enable_languages+set}" = set; then
7199 enableval="$enable_languages"
7200 case ,${enable_languages}, in
7201 ,,|,yes,)
7202 # go safe -- we cannot be much sure without the toplevel
7203 # configure's
7204 # analysis of which target libs are present and usable
7205 enable_languages=c
7206 ;;
7207 *,all,*)
7208 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7209echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7210 { (exit 1); exit 1; }; }
7211 ;;
7212 *,c,*)
7213 ;;
7214 *)
7215 enable_languages=c,${enable_languages}
7216 ;;
7217esac
7218else
7219 enable_languages=c
7220fi;
7221
7222# Used by documentation targets
7223
7224
7225
7226
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
7227# -------------------------
7228# Checks for other programs
7229# -------------------------
7230
7231echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7232echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7233set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7234if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then

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

7294else
7295 echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6
7297fi
7298
7299 test -n "$AWK" && break
7300done
7301
4887# We need awk to run opts.sh (to create options.c and options.h).
7302# We need awk 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
7303# Bail out if it's missing.
7304case ${AWK} in
7305 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7306echo "$as_me: error: can't build without awk, bailing out" >&2;}
7307 { (exit 1); exit 1; }; } ;;
7308esac
7309
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
7310echo "$as_me:$LINENO: checking whether ln -s works" >&5
7311echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7312if test "${gcc_cv_prog_LN_S+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900 rm -f conftestdata_t
4901echo >conftestdata_f
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314else
7315 rm -f conftestdata_t
7316echo >conftestdata_f
4902if ln conftestdata_f conftestdata_t 2>/dev/null
7317if ln -s conftestdata_f conftestdata_t 2>/dev/null
4903then
7318then
4904 gcc_cv_prog_LN="ln"
7319 gcc_cv_prog_LN_S="ln -s"
4905else
7320else
4906 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7321 if ln conftestdata_f conftestdata_t 2>/dev/null
4907 then
7322 then
4908 gcc_cv_prog_LN="ln -s"
7323 gcc_cv_prog_LN_S=ln
4909 else
7324 else
4910 gcc_cv_prog_LN=cp
7325 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7326 then
7327 gcc_cv_prog_LN_S="cp -p"
7328 else
7329 gcc_cv_prog_LN_S=cp
7330 fi
4911 fi
4912fi
4913rm -f conftestdata_f conftestdata_t
4914
4915fi
7331 fi
7332fi
7333rm -f conftestdata_f conftestdata_t
7334
7335fi
4916LN="$gcc_cv_prog_LN"
4917if test "$gcc_cv_prog_LN" = "ln"; then
7336LN_S="$gcc_cv_prog_LN_S"
7337if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4918 echo "$as_me:$LINENO: result: yes" >&5
4919echo "${ECHO_T}yes" >&6
4920else
7338 echo "$as_me:$LINENO: result: yes" >&5
7339echo "${ECHO_T}yes" >&6
7340else
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
7341 if test "$gcc_cv_prog_LN_S" = "ln"; then
7342 echo "$as_me:$LINENO: result: no, using ln" >&5
7343echo "${ECHO_T}no, using ln" >&6
4924 else
7344 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
7345 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7346echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
4927 fi
4928fi
4929
7347 fi
7348fi
7349
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
7350echo "$as_me:$LINENO: checking whether ln works" >&5
7351echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7352if test "${acx_cv_prog_LN+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935 rm -f conftestdata_t
4936echo >conftestdata_f
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354else
7355 rm -f conftestdata_t
7356echo >conftestdata_f
4937if ln -s conftestdata_f conftestdata_t 2>/dev/null
7357if ln conftestdata_f conftestdata_t 2>/dev/null
4938then
7358then
4939 gcc_cv_prog_LN_S="ln -s"
7359 acx_cv_prog_LN=ln
4940else
7360else
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
7361 acx_cv_prog_LN=no
4947fi
4948rm -f conftestdata_f conftestdata_t
4949
4950fi
7362fi
7363rm -f conftestdata_f conftestdata_t
7364
7365fi
4951LN_S="$gcc_cv_prog_LN_S"
4952if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7366if test $acx_cv_prog_LN = no; then
7367 LN="$LN_S"
7368 echo "$as_me:$LINENO: result: no, using $LN" >&5
7369echo "${ECHO_T}no, using $LN" >&6
7370else
7371 LN="$acx_cv_prog_LN"
4953 echo "$as_me:$LINENO: result: yes" >&5
4954echo "${ECHO_T}yes" >&6
7372 echo "$as_me:$LINENO: result: yes" >&5
7373echo "${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
7374fi
7375
7376if test -n "$ac_tool_prefix"; then
7377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7378set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7379echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7381if test "${ac_cv_prog_RANLIB+set}" = set; then

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

7448echo "${ECHO_T}no" >&6
7449fi
7450
7451 RANLIB=$ac_ct_RANLIB
7452else
7453 RANLIB="$ac_cv_prog_RANLIB"
7454fi
7455
7456case "${host}" in
7457*-*-darwin*)
7458 # By default, the Darwin ranlib will not treat common symbols as
7459 # definitions when building the archive table of contents. Other
7460 # ranlibs do that; pass an option to the Darwin ranlib that makes
7461 # it behave similarly.
7462 ranlib_flags="-c"
7463 ;;
7464*)
7465 ranlib_flags=""
7466esac
7467
7468
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
7469# Find a good install program. We prefer a C program (faster),
7470# so one script is as good as another. But avoid the broken or
7471# incompatible versions:
7472# SysV /etc/install, /usr/sbin/install
7473# SunOS /usr/etc/install
7474# IRIX /sbin/install
7475# AIX /bin/install
7476# AFS /usr/afsws/bin/install, which mishandles nonexistent args

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

7595 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7596echo "${ECHO_T}$have_mktemp_command" >&6
7597else
7598 echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6
7600fi
7601
7602
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.
7603MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7604
7605# See if makeinfo has been installed and is modern enough
7606# that we can use it.
7607
7608ac_executable_extensions="$build_exeext"
7609
7610# 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'`
7611set dummy makeinfo; ac_word=$2
7612echo "$as_me:$LINENO: checking for $ac_word" >&5
7613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7614if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616else
7617 if test -n "$MAKEINFO"; then
7618 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.

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

7646 # Found it, now check the version.
7647 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7648echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7649if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652 ac_prog_version=`$MAKEINFO --version 2>&1 |
7653 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5232 echo "configure:5232: version of makeinfo is $ac_prog_version" >&5
7654 echo "configure:7654: version of makeinfo is $ac_prog_version" >&5
5233 case $ac_prog_version in
5234 '') gcc_cv_prog_makeinfo_modern=no;;
7655 case $ac_prog_version in
7656 '') gcc_cv_prog_makeinfo_modern=no;;
5235 4.[2-9]*)
7657 4.[4-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
7658 gcc_cv_prog_makeinfo_modern=yes;;
7659 *) gcc_cv_prog_makeinfo_modern=no;;
7660 esac
7661
7662fi
7663echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7664echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7665else
7666 gcc_cv_prog_makeinfo_modern=no
7667fi
7668
5247fi
5248
5249if test $gcc_cv_prog_makeinfo_modern = no; then
7669if test $gcc_cv_prog_makeinfo_modern = no; then
7670 MAKEINFO="$MISSING makeinfo"
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
7671 { echo "$as_me:$LINENO: WARNING:
7672*** Makeinfo is missing or too old.
7673*** Info documentation will not be built." >&5
7674echo "$as_me: WARNING:
7675*** Makeinfo is missing or too old.
7676*** Info documentation will not be built." >&2;}
7677 BUILD_INFO=
7678else
7679 BUILD_INFO=info
7680fi
7681
7682
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
7683# Is pod2man recent enough to regenerate manpages?
7684echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7685echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7686if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7687 echo "$as_me:$LINENO: result: yes" >&5
7688echo "${ECHO_T}yes" >&6
7689 GENERATED_MANPAGES=generated-manpages
7690else
7691 echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6
7693 GENERATED_MANPAGES=
7694fi
7695
7696
5274# How about lex?
7697# 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
7698for ac_prog in flex
7699do
7700 # Extract the first word of "$ac_prog", so it can be a program name with args.
7701set dummy $ac_prog; 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
7702echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7704if test "${ac_cv_prog_FLEX+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 if test -n "$FLEX"; then
7708 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7709else
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_FLEX="flex"
7717 ac_cv_prog_FLEX="$ac_prog"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299done
5300done
5301
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721done
7722done
7723
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
7724fi
7725fi
7726FLEX=$ac_cv_prog_FLEX
7727if test -n "$FLEX"; then
7728 echo "$as_me:$LINENO: result: $FLEX" >&5
7729echo "${ECHO_T}$FLEX" >&6
7730else
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
7733fi
7734
5314fi
7735 test -n "$FLEX" && break
7736done
7737test -n "$FLEX" || FLEX="$MISSING flex"
5315
7738
7739
5316# Bison?
7740# 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
7741for ac_prog in bison
7742do
7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
7744set dummy $ac_prog; 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
7745echo "$as_me:$LINENO: checking for $ac_word" >&5
7746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7747if test "${ac_cv_prog_BISON+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749else
7750 if test -n "$BISON"; then
7751 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7752else
7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_BISON="bison"
7760 ac_cv_prog_BISON="$ac_prog"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5341 fi
5342done
5343done
5344
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764done
7765done
7766
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
7767fi
7768fi
7769BISON=$ac_cv_prog_BISON
7770if test -n "$BISON"; then
7771 echo "$as_me:$LINENO: result: $BISON" >&5
7772echo "${ECHO_T}$BISON" >&6
7773else
7774 echo "$as_me:$LINENO: result: no" >&5
7775echo "${ECHO_T}no" >&6
7776fi
7777
7778 test -n "$BISON" && break
7779done
7780test -n "$BISON" || BISON="$MISSING bison"
7781
7782
7783# Binutils are not build modules, unlike bison/flex/makeinfo. So we
7784# check for build == host before using them.
7785
7786# NM
7787if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7788 && test -d ../binutils ; then
7789 NM='$(objdir)/../binutils/nm-new'
7790else
7791 # Extract the first word of "nm", so it can be a program name with args.
7792set dummy nm; ac_word=$2
7793echo "$as_me:$LINENO: checking for $ac_word" >&5
7794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7795if test "${ac_cv_prog_NM+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798 if test -n "$NM"; then
7799 ac_cv_prog_NM="$NM" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_NM="nm"
7809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812done
7813done
7814
7815 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5357fi
7816fi
7817fi
7818NM=$ac_cv_prog_NM
7819if test -n "$NM"; then
7820 echo "$as_me:$LINENO: result: $NM" >&5
7821echo "${ECHO_T}$NM" >&6
7822else
7823 echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
7825fi
5358
7826
7827fi
7828
7829# AR
7830if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7831 && test -d ../binutils ; then
7832 AR='$(objdir)/../binutils/ar'
7833else
7834 # Extract the first word of "ar", so it can be a program name with args.
7835set dummy ar; ac_word=$2
7836echo "$as_me:$LINENO: checking for $ac_word" >&5
7837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7838if test "${ac_cv_prog_AR+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7840else
7841 if test -n "$AR"; then
7842 ac_cv_prog_AR="$AR" # Let the user override the test.
7843else
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_AR="ar"
7852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7854 fi
7855done
7856done
7857
7858 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7859fi
7860fi
7861AR=$ac_cv_prog_AR
7862if test -n "$AR"; then
7863 echo "$as_me:$LINENO: result: $AR" >&5
7864echo "${ECHO_T}$AR" >&6
7865else
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868fi
7869
7870fi
7871
7872
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
7873# --------------------
7874# Checks for C headers
7875# --------------------
7876
7877echo "$as_me:$LINENO: checking for GNU C library" >&5
7878echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7879if test "${gcc_cv_glibc+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6

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

8170if test $ac_cv_header_time = yes; then
8171
8172cat >>confdefs.h <<\_ACEOF
8173#define TIME_WITH_SYS_TIME 1
8174_ACEOF
8175
8176fi
8177
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
8178echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8179echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8180if test "${gcc_cv_header_string+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182else
8183 cat >conftest.$ac_ext <<_ACEOF
8184/* confdefs.h. */
8185_ACEOF

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

8324
8325
8326
8327
8328
8329
8330
8331
5879for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
8332
8333for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.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
8334 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8335 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8336 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8337do
8338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8339echo "$as_me:$LINENO: checking for $ac_header" >&5
8340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8341if eval "test \"\${$as_ac_Header+set}\" = set"; then

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

8591
8592fi
8593fi
8594echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8595echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8596if test "${ac_cv_c_bigendian+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598else
6145 ac_cv_c_bigendian=unknown
6146# See if sys/param.h defines the BYTE_ORDER macro.
8599 # 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>
8600cat >conftest.$ac_ext <<_ACEOF
8601/* confdefs.h. */
8602_ACEOF
8603cat confdefs.h >>conftest.$ac_ext
8604cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */
8606#include <sys/types.h>
8607#include <sys/param.h>
8608
6155int
6156main ()
6157{
8609int
8610main ()
8611{
6158
6159#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6160 bogus endian macros
6161#endif
8612#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8613 bogus endian macros
8614#endif
8615
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>
8616 ;
8617 return 0;
8618}
8619_ACEOF
8620rm -f conftest.$ac_objext
8621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622 (eval $ac_compile) 2>conftest.er1
8623 ac_status=$?

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

8643cat >conftest.$ac_ext <<_ACEOF
8644/* confdefs.h. */
8645_ACEOF
8646cat confdefs.h >>conftest.$ac_ext
8647cat >>conftest.$ac_ext <<_ACEOF
8648/* end confdefs.h. */
8649#include <sys/types.h>
8650#include <sys/param.h>
8651
6197int
6198main ()
6199{
8652int
8653main ()
8654{
6200
6201#if BYTE_ORDER != BIG_ENDIAN
6202 not big endian
6203#endif
8655#if BYTE_ORDER != BIG_ENDIAN
8656 not big endian
8657#endif
8658
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
8659 ;
8660 return 0;
8661}
8662_ACEOF
8663rm -f conftest.$ac_objext
8664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8665 (eval $ac_compile) 2>conftest.er1
8666 ac_status=$?

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

8689
8690ac_cv_c_bigendian=no
8691fi
8692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8693else
8694 echo "$as_me: failed program was:" >&5
8695sed 's/^/| /' conftest.$ac_ext >&5
8696
8697# It does not; compile a test program.
8698if test "$cross_compiling" = yes; then
8699 # try to guess the endianness by grepping values into an object file
8700 ac_cv_c_bigendian=unknown
8701 cat >conftest.$ac_ext <<_ACEOF
8702/* confdefs.h. */
8703_ACEOF
8704cat confdefs.h >>conftest.$ac_ext
8705cat >>conftest.$ac_ext <<_ACEOF
8706/* end confdefs.h. */
8707short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8708short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8709void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8710short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8711short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8712void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8713int
8714main ()
8715{
8716 _ascii (); _ebcdic ();
8717 ;
8718 return 0;
8719}
8720_ACEOF
8721rm -f conftest.$ac_objext
8722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8723 (eval $ac_compile) 2>conftest.er1
8724 ac_status=$?
8725 grep -v '^ *+' conftest.er1 >conftest.err
8726 rm -f conftest.er1
8727 cat conftest.err >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } &&
8730 { ac_try='test -z "$ac_c_werror_flag"
8731 || test ! -s conftest.err'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; } &&
8737 { ac_try='test -s conftest.$ac_objext'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 (eval $ac_try) 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8743 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8744 ac_cv_c_bigendian=yes
6242fi
8745fi
8746if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8747 if test "$ac_cv_c_bigendian" = unknown; then
8748 ac_cv_c_bigendian=no
8749 else
8750 # finding both strings is unlikely to happen, but who knows?
8751 ac_cv_c_bigendian=unknown
8752 fi
8753fi
8754else
8755 echo "$as_me: failed program was:" >&5
8756sed 's/^/| /' conftest.$ac_ext >&5
8757
8758fi
6243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759rm -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. */
8760else
8761 cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h. */
8763_ACEOF
8764cat confdefs.h >>conftest.$ac_ext
8765cat >>conftest.$ac_ext <<_ACEOF
8766/* end confdefs.h. */
6254main () {
8767int
8768main ()
8769{
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
8770 /* Are we little or big endian? From Harbison&Steele. */
8771 union
8772 {
8773 long l;
8774 char c[sizeof (long)];
8775 } u;
8776 u.l = 1;
8777 exit (u.c[sizeof (long) - 1] == 1);

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

8795sed 's/^/| /' conftest.$ac_ext >&5
8796
8797( exit $ac_status )
8798ac_cv_c_bigendian=yes
8799fi
8800rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8801fi
8802fi
8803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6288fi
6289echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6290echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8804fi
8805echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8806echo "${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
8807case $ac_cv_c_bigendian in
8808 yes)
6294
8809
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
8810cat >>confdefs.h <<\_ACEOF
8811#define WORDS_BIGENDIAN 1
8812_ACEOF
8813 ;;
8814 no)
8815 ;;
8816 *)
8817 { { echo "$as_me:$LINENO: error: unknown endianness
8818presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8819echo "$as_me: error: unknown endianness
8820presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8821 { (exit 1); exit 1; }; } ;;
8822esac
6329
6330
8823
8824
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 ;;
8825# --------
8826# UNSORTED
8827# --------
8828
8829# Stage specific cflags for build.
8830stage1_cflags=
8831case $build in
8832vax-*-*)
8833 if test x$GCC = xyes
8834 then
8835 stage1_cflags="-Wa,-J"
8836 else
8837 stage1_cflags="-J"
8838 fi
8839 ;;
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
8840esac
8841
8842
8843# These libraries may be used by collect2.
8844# We may need a special search path to get them linked.
8845echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8846echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8847if test "${gcc_cv_collect2_libs+set}" = set; then

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

9271
9272
9273
9274
9275
9276
9277
9278
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
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9291 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9292 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9293 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
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
9294do
9295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9296echo "$as_me:$LINENO: checking for $ac_func" >&5
9297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9298if eval "test \"\${$as_ac_var+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" >&6
9300else
9301 cat >conftest.$ac_ext <<_ACEOF

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

9654 ;;
9655 *)
9656 TARGET_GETGROUPS_T=gid_t
9657 ;;
9658 esac
9659fi
9660
9661
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
9662
9663echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9664echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9665if test "${ac_cv_header_sys_mman_h+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
7190 if test "$cross_compiling" = yes; then
7191 gcc_cv_func_printf_ptr=no
9668 cat >conftest.$ac_ext <<_ACEOF
9669/* confdefs.h. */
9670_ACEOF
9671cat confdefs.h >>conftest.$ac_ext
9672cat >>conftest.$ac_ext <<_ACEOF
9673/* end confdefs.h. */
9674#include <sys/mman.h>
9675_ACEOF
9676if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9678 ac_status=$?
9679 grep -v '^ *+' conftest.er1 >conftest.err
9680 rm -f conftest.er1
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } >/dev/null; then
9684 if test -s conftest.err; then
9685 ac_cpp_err=$ac_c_preproc_warn_flag
9686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9687 else
9688 ac_cpp_err=
9689 fi
7192else
9690else
9691 ac_cpp_err=yes
9692fi
9693if test -z "$ac_cpp_err"; then
9694 ac_cv_header_sys_mman_h=yes
9695else
9696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
9698
9699 ac_cv_header_sys_mman_h=no
9700fi
9701rm -f conftest.err conftest.$ac_ext
9702fi
9703echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9704echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9705if test $ac_cv_header_sys_mman_h = yes; then
9706 gcc_header_sys_mman_h=yes
9707else
9708 gcc_header_sys_mman_h=no
9709fi
9710
9711echo "$as_me:$LINENO: checking for mmap" >&5
9712echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9713if test "${ac_cv_func_mmap+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715else
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. */
9716 cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
7199#include <stdio.h>
9722/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724#define mmap innocuous_mmap
7200
9725
7201int main()
9726/* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char mmap (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9730
9731#ifdef __STDC__
9732# include <limits.h>
9733#else
9734# include <assert.h>
9735#endif
9736
9737#undef mmap
9738
9739/* Override any gcc2 internal prototype to avoid an error. */
9740#ifdef __cplusplus
9741extern "C"
7202{
9742{
7203 char buf[64];
7204 char *p = buf, *q = NULL;
7205 sprintf(buf, "%p", p);
7206 sscanf(buf, "%p", &q);
7207 return (p != q);
9743#endif
9744/* We use char because int might match the return type of a gcc2
9745 builtin and then its argument prototype would still apply. */
9746char mmap ();
9747/* The GNU C library defines this for functions which it implements
9748 to always fail with ENOSYS. Some functions are actually named
9749 something starting with __ and the normal name is an alias. */
9750#if defined (__stub_mmap) || defined (__stub___mmap)
9751choke me
9752#else
9753char (*f) () = mmap;
9754#endif
9755#ifdef __cplusplus
7208}
9756}
9757#endif
9758
9759int
9760main ()
9761{
9762return f != mmap;
9763 ;
9764 return 0;
9765}
7209_ACEOF
9766_ACEOF
7210rm -f conftest$ac_exeext
9767rm -f conftest.$ac_objext conftest$ac_exeext
7211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212 (eval $ac_link) 2>&5
9769 (eval $ac_link) 2>conftest.er1
7213 ac_status=$?
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9775 (exit $ac_status); } &&
9776 { ac_try='test -z "$ac_c_werror_flag"
9777 || test ! -s conftest.err'
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
9778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); }; } &&
9783 { ac_try='test -s conftest$ac_exeext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
9788 (exit $ac_status); }; }; then
7221 gcc_cv_func_printf_ptr=yes
9789 ac_cv_func_mmap=yes
7222else
9790else
7223 echo "$as_me: program exited with status $ac_status" >&5
7224echo "$as_me: failed program was:" >&5
9791 echo "$as_me: failed program was:" >&5
7225sed 's/^/| /' conftest.$ac_ext >&5
7226
9792sed 's/^/| /' conftest.$ac_ext >&5
9793
7227( exit $ac_status )
7228gcc_cv_func_printf_ptr=no
9794ac_cv_func_mmap=no
7229fi
9795fi
7230rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9796rm -f conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
7231fi
9798fi
7232rm -f core core.* *.core
9799echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9800echo "${ECHO_T}$ac_cv_func_mmap" >&6
9801if test $ac_cv_func_mmap = yes; then
9802 gcc_func_mmap=yes
9803else
9804 gcc_func_mmap=no
7233fi
9805fi
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
9806
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
9807if test "$gcc_header_sys_mman_h" != yes \
9808 || test "$gcc_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
9809 gcc_cv_func_mmap_file=no
9810 gcc_cv_func_mmap_dev_zero=no
9811 gcc_cv_func_mmap_anon=no
9812else
9813 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9814echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9815if test "${gcc_cv_func_mmap_file+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6

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

10424cat >>confdefs.h <<\_ACEOF
10425#define HAVE_WORKING_FORK 1
10426_ACEOF
10427
10428fi
10429
10430
10431
10432 if test "X$prefix" = "XNONE"; then
10433 acl_final_prefix="$ac_default_prefix"
10434 else
10435 acl_final_prefix="$prefix"
10436 fi
10437 if test "X$exec_prefix" = "XNONE"; then
10438 acl_final_exec_prefix='${prefix}'
10439 else
10440 acl_final_exec_prefix="$exec_prefix"
10441 fi
10442 acl_save_prefix="$prefix"
10443 prefix="$acl_final_prefix"
10444 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10445 prefix="$acl_save_prefix"
7869
10446
7870 am_cv_lib_iconv_ldpath=
7871
10447
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
10448# Check whether --with-gnu-ld or --without-gnu-ld was given.
10449if test "${with_gnu_ld+set}" = set; then
10450 withval="$with_gnu_ld"
10451 test "$withval" = no || with_gnu_ld=yes
7891else
10452else
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
10453 with_gnu_ld=no
10454fi;
10455# Prepare PATH_SEPARATOR.
10456# The user is always right.
10457if test "${PATH_SEPARATOR+set}" != set; then
10458 echo "#! /bin/sh" >conf$$.sh
10459 echo "exit 0" >>conf$$.sh
10460 chmod +x conf$$.sh
10461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10462 PATH_SEPARATOR=';'
7911 else
10463 else
7912 ac_cpp_err=
10464 PATH_SEPARATOR=:
7913 fi
10465 fi
10466 rm -f conf$$.sh
10467fi
10468ac_prog=ld
10469if test "$GCC" = yes; then
10470 # Check if gcc -print-prog-name=ld gives a path.
10471 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10472echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10473 case $host in
10474 *-*-mingw*)
10475 # gcc leaves a trailing carriage return which upsets mingw
10476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10477 *)
10478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10479 esac
10480 case $ac_prog in
10481 # Accept absolute paths.
10482 [\\/]* | [A-Za-z]:[\\/]*)
10483 re_direlt='/[^/][^/]*/\.\./'
10484 # Canonicalize the path of ld
10485 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10486 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10487 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10488 done
10489 test -z "$LD" && LD="$ac_prog"
10490 ;;
10491 "")
10492 # If it fails, then pretend we aren't using GCC.
10493 ac_prog=ld
10494 ;;
10495 *)
10496 # If it is relative, then search for the first ld in PATH.
10497 with_gnu_ld=unknown
10498 ;;
10499 esac
10500elif test "$with_gnu_ld" = yes; then
10501 echo "$as_me:$LINENO: checking for GNU ld" >&5
10502echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7914else
10503else
7915 ac_cpp_err=yes
10504 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10505echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7916fi
10506fi
7917if test -z "$ac_cpp_err"; then
7918 eval "$as_ac_Header=yes"
10507if test "${acl_cv_path_LD+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
10509else
7920 echo "$as_me: failed program was:" >&5
7921sed 's/^/| /' conftest.$ac_ext >&5
10510 if test -z "$LD"; then
10511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10512 for ac_dir in $PATH; do
10513 test -z "$ac_dir" && ac_dir=.
10514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10515 acl_cv_path_LD="$ac_dir/$ac_prog"
10516 # Check to see if the program is GNU ld. I'd rather use --version,
10517 # but apparently some GNU ld's only accept -v.
10518 # Break only if it was the GNU/non-GNU ld that we prefer.
10519 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10520 test "$with_gnu_ld" != no && break
10521 else
10522 test "$with_gnu_ld" != yes && break
10523 fi
10524 fi
10525 done
10526 IFS="$ac_save_ifs"
10527else
10528 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10529fi
10530fi
7922
10531
7923 eval "$as_ac_Header=no"
10532LD="$acl_cv_path_LD"
10533if test -n "$LD"; then
10534 echo "$as_me:$LINENO: result: $LD" >&5
10535echo "${ECHO_T}$LD" >&6
10536else
10537 echo "$as_me:$LINENO: result: no" >&5
10538echo "${ECHO_T}no" >&6
7924fi
10539fi
7925rm -f conftest.err conftest.$ac_ext
10540test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10541echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10542 { (exit 1); exit 1; }; }
10543echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10544echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10545if test "${acl_cv_prog_gnu_ld+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10547else
10548 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10549if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10550 acl_cv_prog_gnu_ld=yes
10551else
10552 acl_cv_prog_gnu_ld=no
7926fi
10553fi
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
10554fi
10555echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10556echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10557with_gnu_ld=$acl_cv_prog_gnu_ld
7933
10558
10559
10560
10561 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10562echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10563if test "${acl_cv_rpath+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565else
10566
10567 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10568 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10569 . ./conftest.sh
10570 rm -f ./conftest.sh
10571 acl_cv_rpath=done
10572
7934fi
10573fi
7935done
10574echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10575echo "${ECHO_T}$acl_cv_rpath" >&6
10576 wl="$acl_cv_wl"
10577 libext="$acl_cv_libext"
10578 shlibext="$acl_cv_shlibext"
10579 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10580 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10581 hardcode_direct="$acl_cv_hardcode_direct"
10582 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10583 # Check whether --enable-rpath or --disable-rpath was given.
10584if test "${enable_rpath+set}" = set; then
10585 enableval="$enable_rpath"
10586 :
10587else
10588 enable_rpath=yes
10589fi;
7936
7937
10590
10591
10592
10593
10594
10595
10596
10597 use_additional=yes
10598
10599 acl_save_prefix="$prefix"
10600 prefix="$acl_final_prefix"
10601 acl_save_exec_prefix="$exec_prefix"
10602 exec_prefix="$acl_final_exec_prefix"
10603
10604 eval additional_includedir=\"$includedir\"
10605 eval additional_libdir=\"$libdir\"
10606
10607 exec_prefix="$acl_save_exec_prefix"
10608 prefix="$acl_save_prefix"
10609
10610
10611# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10612if test "${with_libiconv_prefix+set}" = set; then
10613 withval="$with_libiconv_prefix"
10614
10615 if test "X$withval" = "Xno"; then
10616 use_additional=no
10617 else
10618 if test "X$withval" = "X"; then
10619
10620 acl_save_prefix="$prefix"
10621 prefix="$acl_final_prefix"
10622 acl_save_exec_prefix="$exec_prefix"
10623 exec_prefix="$acl_final_exec_prefix"
10624
10625 eval additional_includedir=\"$includedir\"
10626 eval additional_libdir=\"$libdir\"
10627
10628 exec_prefix="$acl_save_exec_prefix"
10629 prefix="$acl_save_prefix"
10630
10631 else
10632 additional_includedir="$withval/include"
10633 additional_libdir="$withval/lib"
10634 fi
10635 fi
10636
10637fi;
10638 LIBICONV=
10639 LTLIBICONV=
10640 INCICONV=
10641 rpathdirs=
10642 ltrpathdirs=
10643 names_already_handled=
10644 names_next_round='iconv '
10645 while test -n "$names_next_round"; do
10646 names_this_round="$names_next_round"
10647 names_next_round=
10648 for name in $names_this_round; do
10649 already_handled=
10650 for n in $names_already_handled; do
10651 if test "$n" = "$name"; then
10652 already_handled=yes
10653 break
10654 fi
10655 done
10656 if test -z "$already_handled"; then
10657 names_already_handled="$names_already_handled $name"
10658 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10659 eval value=\"\$HAVE_LIB$uppername\"
10660 if test -n "$value"; then
10661 if test "$value" = yes; then
10662 eval value=\"\$LIB$uppername\"
10663 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10664 eval value=\"\$LTLIB$uppername\"
10665 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10666 else
10667 :
10668 fi
10669 else
10670 found_dir=
10671 found_la=
10672 found_so=
10673 found_a=
10674 if test $use_additional = yes; then
10675 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10676 found_dir="$additional_libdir"
10677 found_so="$additional_libdir/lib$name.$shlibext"
10678 if test -f "$additional_libdir/lib$name.la"; then
10679 found_la="$additional_libdir/lib$name.la"
10680 fi
10681 else
10682 if test -f "$additional_libdir/lib$name.$libext"; then
10683 found_dir="$additional_libdir"
10684 found_a="$additional_libdir/lib$name.$libext"
10685 if test -f "$additional_libdir/lib$name.la"; then
10686 found_la="$additional_libdir/lib$name.la"
10687 fi
10688 fi
10689 fi
10690 fi
10691 if test "X$found_dir" = "X"; then
10692 for x in $LDFLAGS $LTLIBICONV; do
10693
10694 acl_save_prefix="$prefix"
10695 prefix="$acl_final_prefix"
10696 acl_save_exec_prefix="$exec_prefix"
10697 exec_prefix="$acl_final_exec_prefix"
10698 eval x=\"$x\"
10699 exec_prefix="$acl_save_exec_prefix"
10700 prefix="$acl_save_prefix"
10701
10702 case "$x" in
10703 -L*)
10704 dir=`echo "X$x" | sed -e 's/^X-L//'`
10705 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10706 found_dir="$dir"
10707 found_so="$dir/lib$name.$shlibext"
10708 if test -f "$dir/lib$name.la"; then
10709 found_la="$dir/lib$name.la"
10710 fi
10711 else
10712 if test -f "$dir/lib$name.$libext"; then
10713 found_dir="$dir"
10714 found_a="$dir/lib$name.$libext"
10715 if test -f "$dir/lib$name.la"; then
10716 found_la="$dir/lib$name.la"
10717 fi
10718 fi
10719 fi
10720 ;;
10721 esac
10722 if test "X$found_dir" != "X"; then
10723 break
10724 fi
10725 done
10726 fi
10727 if test "X$found_dir" != "X"; then
10728 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10729 if test "X$found_so" != "X"; then
10730 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10732 else
10733 haveit=
10734 for x in $ltrpathdirs; do
10735 if test "X$x" = "X$found_dir"; then
10736 haveit=yes
10737 break
10738 fi
10739 done
10740 if test -z "$haveit"; then
10741 ltrpathdirs="$ltrpathdirs $found_dir"
10742 fi
10743 if test "$hardcode_direct" = yes; then
10744 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10745 else
10746 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10747 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10748 haveit=
10749 for x in $rpathdirs; do
10750 if test "X$x" = "X$found_dir"; then
10751 haveit=yes
10752 break
10753 fi
10754 done
10755 if test -z "$haveit"; then
10756 rpathdirs="$rpathdirs $found_dir"
10757 fi
10758 else
10759 haveit=
10760 for x in $LDFLAGS $LIBICONV; do
10761
10762 acl_save_prefix="$prefix"
10763 prefix="$acl_final_prefix"
10764 acl_save_exec_prefix="$exec_prefix"
10765 exec_prefix="$acl_final_exec_prefix"
10766 eval x=\"$x\"
10767 exec_prefix="$acl_save_exec_prefix"
10768 prefix="$acl_save_prefix"
10769
10770 if test "X$x" = "X-L$found_dir"; then
10771 haveit=yes
10772 break
10773 fi
10774 done
10775 if test -z "$haveit"; then
10776 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10777 fi
10778 if test "$hardcode_minus_L" != no; then
10779 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10780 else
10781 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10782 fi
10783 fi
10784 fi
10785 fi
10786 else
10787 if test "X$found_a" != "X"; then
10788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10789 else
10790 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10791 fi
10792 fi
10793 additional_includedir=
10794 case "$found_dir" in
10795 */lib | */lib/)
10796 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10797 additional_includedir="$basedir/include"
10798 ;;
10799 esac
10800 if test "X$additional_includedir" != "X"; then
10801 if test "X$additional_includedir" != "X/usr/include"; then
10802 haveit=
10803 if test "X$additional_includedir" = "X/usr/local/include"; then
10804 if test -n "$GCC"; then
10805 case $host_os in
10806 linux*) haveit=yes;;
10807 esac
10808 fi
10809 fi
10810 if test -z "$haveit"; then
10811 for x in $CPPFLAGS $INCICONV; do
10812
10813 acl_save_prefix="$prefix"
10814 prefix="$acl_final_prefix"
10815 acl_save_exec_prefix="$exec_prefix"
10816 exec_prefix="$acl_final_exec_prefix"
10817 eval x=\"$x\"
10818 exec_prefix="$acl_save_exec_prefix"
10819 prefix="$acl_save_prefix"
10820
10821 if test "X$x" = "X-I$additional_includedir"; then
10822 haveit=yes
10823 break
10824 fi
10825 done
10826 if test -z "$haveit"; then
10827 if test -d "$additional_includedir"; then
10828 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10829 fi
10830 fi
10831 fi
10832 fi
10833 fi
10834 if test -n "$found_la"; then
10835 save_libdir="$libdir"
10836 case "$found_la" in
10837 */* | *\\*) . "$found_la" ;;
10838 *) . "./$found_la" ;;
10839 esac
10840 libdir="$save_libdir"
10841 for dep in $dependency_libs; do
10842 case "$dep" in
10843 -L*)
10844 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10845 if test "X$additional_libdir" != "X/usr/lib"; then
10846 haveit=
10847 if test "X$additional_libdir" = "X/usr/local/lib"; then
10848 if test -n "$GCC"; then
10849 case $host_os in
10850 linux*) haveit=yes;;
10851 esac
10852 fi
10853 fi
10854 if test -z "$haveit"; then
10855 haveit=
10856 for x in $LDFLAGS $LIBICONV; do
10857
10858 acl_save_prefix="$prefix"
10859 prefix="$acl_final_prefix"
10860 acl_save_exec_prefix="$exec_prefix"
10861 exec_prefix="$acl_final_exec_prefix"
10862 eval x=\"$x\"
10863 exec_prefix="$acl_save_exec_prefix"
10864 prefix="$acl_save_prefix"
10865
10866 if test "X$x" = "X-L$additional_libdir"; then
10867 haveit=yes
10868 break
10869 fi
10870 done
10871 if test -z "$haveit"; then
10872 if test -d "$additional_libdir"; then
10873 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10874 fi
10875 fi
10876 haveit=
10877 for x in $LDFLAGS $LTLIBICONV; do
10878
10879 acl_save_prefix="$prefix"
10880 prefix="$acl_final_prefix"
10881 acl_save_exec_prefix="$exec_prefix"
10882 exec_prefix="$acl_final_exec_prefix"
10883 eval x=\"$x\"
10884 exec_prefix="$acl_save_exec_prefix"
10885 prefix="$acl_save_prefix"
10886
10887 if test "X$x" = "X-L$additional_libdir"; then
10888 haveit=yes
10889 break
10890 fi
10891 done
10892 if test -z "$haveit"; then
10893 if test -d "$additional_libdir"; then
10894 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10895 fi
10896 fi
10897 fi
10898 fi
10899 ;;
10900 -R*)
10901 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10902 if test "$enable_rpath" != no; then
10903 haveit=
10904 for x in $rpathdirs; do
10905 if test "X$x" = "X$dir"; then
10906 haveit=yes
10907 break
10908 fi
10909 done
10910 if test -z "$haveit"; then
10911 rpathdirs="$rpathdirs $dir"
10912 fi
10913 haveit=
10914 for x in $ltrpathdirs; do
10915 if test "X$x" = "X$dir"; then
10916 haveit=yes
10917 break
10918 fi
10919 done
10920 if test -z "$haveit"; then
10921 ltrpathdirs="$ltrpathdirs $dir"
10922 fi
10923 fi
10924 ;;
10925 -l*)
10926 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10927 ;;
10928 *.la)
10929 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10930 ;;
10931 *)
10932 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10933 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10934 ;;
10935 esac
10936 done
10937 fi
10938 else
10939 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10940 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10941 fi
10942 fi
10943 fi
10944 done
10945 done
10946 if test "X$rpathdirs" != "X"; then
10947 if test -n "$hardcode_libdir_separator"; then
10948 alldirs=
10949 for found_dir in $rpathdirs; do
10950 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10951 done
10952 acl_save_libdir="$libdir"
10953 libdir="$alldirs"
10954 eval flag=\"$hardcode_libdir_flag_spec\"
10955 libdir="$acl_save_libdir"
10956 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10957 else
10958 for found_dir in $rpathdirs; do
10959 acl_save_libdir="$libdir"
10960 libdir="$found_dir"
10961 eval flag=\"$hardcode_libdir_flag_spec\"
10962 libdir="$acl_save_libdir"
10963 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10964 done
10965 fi
10966 fi
10967 if test "X$ltrpathdirs" != "X"; then
10968 for found_dir in $ltrpathdirs; do
10969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10970 done
10971 fi
10972
10973
10974
10975
10976
10977
10978
10979 am_save_CPPFLAGS="$CPPFLAGS"
10980
10981 for element in $INCICONV; do
10982 haveit=
10983 for x in $CPPFLAGS; do
10984
10985 acl_save_prefix="$prefix"
10986 prefix="$acl_final_prefix"
10987 acl_save_exec_prefix="$exec_prefix"
10988 exec_prefix="$acl_final_exec_prefix"
10989 eval x=\"$x\"
10990 exec_prefix="$acl_save_exec_prefix"
10991 prefix="$acl_save_prefix"
10992
10993 if test "X$x" = "X$element"; then
10994 haveit=yes
10995 break
10996 fi
10997 done
10998 if test -z "$haveit"; then
10999 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11000 fi
11001 done
11002
11003
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"
11004 echo "$as_me:$LINENO: checking for iconv" >&5
11005echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11006if test "${am_cv_func_iconv+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009
11010 am_cv_func_iconv="no, consider installing GNU libiconv"
11011 am_cv_lib_iconv=no

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

11054 echo "$as_me: failed program was:" >&5
11055sed 's/^/| /' conftest.$ac_ext >&5
11056
11057fi
11058rm -f conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 if test "$am_cv_func_iconv" != yes; then
11061 am_save_LIBS="$LIBS"
7996 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
11062 LIBS="$LIBS $LIBICONV"
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
11063 cat >conftest.$ac_ext <<_ACEOF
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069#include <stdlib.h>
11070#include <iconv.h>

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

11116echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11117echo "${ECHO_T}$am_cv_func_iconv" >&6
11118 if test "$am_cv_func_iconv" = yes; then
11119
11120cat >>confdefs.h <<\_ACEOF
11121#define HAVE_ICONV 1
11122_ACEOF
11123
11124 fi
11125 if test "$am_cv_lib_iconv" = yes; then
11126 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11127echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11128 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11129echo "${ECHO_T}$LIBICONV" >&6
11130 else
11131 CPPFLAGS="$am_save_CPPFLAGS"
11132 LIBICONV=
11133 LTLIBICONV=
11134 fi
11135
11136
11137
11138 if test "$am_cv_func_iconv" = yes; then
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
11139 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11140echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11141 if test "${am_cv_proto_iconv+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11143else
11144
11145 cat >conftest.$ac_ext <<_ACEOF
11146/* confdefs.h. */

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

11208echo "${ECHO_T}${ac_t:-
11209 }$am_cv_proto_iconv" >&6
11210
11211cat >>confdefs.h <<_ACEOF
11212#define ICONV_CONST $am_cv_proto_iconv_arg1
11213_ACEOF
11214
11215 fi
8135 LIBICONV=
8136 if test "$am_cv_lib_iconv" = yes; then
8137 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8138 fi
8139
11216
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
11217# Until we have in-tree GNU iconv:
11218LIBICONV_DEP=
11219
11220
11221
11222 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11223echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11224if test "${am_cv_val_LC_MESSAGES+set}" = set; then

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

11277
11278cat >>confdefs.h <<\_ACEOF
11279#define HAVE_LC_MESSAGES 1
11280_ACEOF
11281
11282 fi
11283
11284
11285
11286 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11287echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11288if test "${am_cv_langinfo_codeset+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297#include <langinfo.h>
11298int
11299main ()
11300{
11301char* cs = nl_langinfo(CODESET);
11302 ;
11303 return 0;
11304}
11305_ACEOF
11306rm -f conftest.$ac_objext conftest$ac_exeext
11307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 am_cv_langinfo_codeset=yes
11329else
11330 echo "$as_me: failed program was:" >&5
11331sed 's/^/| /' conftest.$ac_ext >&5
11332
11333am_cv_langinfo_codeset=no
11334fi
11335rm -f conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337
11338fi
11339echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11340echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11341 if test $am_cv_langinfo_codeset = yes; then
11342
11343cat >>confdefs.h <<\_ACEOF
11344#define HAVE_LANGINFO_CODESET 1
11345_ACEOF
11346
11347 fi
11348
11349
8209# We will need to find libiberty.h and ansidecl.h
8210saved_CFLAGS="$CFLAGS"
8211CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11350# We will need to find libiberty.h and ansidecl.h
11351saved_CFLAGS="$CFLAGS"
11352CFLAGS="$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
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11393 strsignal strstr strverscmp \
11394 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11395 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
8216do
11396do
8217 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11397 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
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
11398echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11399echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11400if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF

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

11464 echo "$as_me:$LINENO: result: no" >&5
11465echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11466#define $ac_tr_decl 0
11467_ACEOF
11468
11469fi
11470
11471done
8292if test x = y ; then
8293
11472
8294cat >>confdefs.h <<\_ACEOF
8295#define HAVE_DECL_GETENV 1
8296_ACEOF
8297
11473
8298cat >>confdefs.h <<\_ACEOF
8299#define HAVE_DECL_ATOL 1
8300_ACEOF
8301
11474
8302cat >>confdefs.h <<\_ACEOF
8303#define HAVE_DECL_SBRK 1
8304_ACEOF
8305
11475
8306cat >>confdefs.h <<\_ACEOF
8307#define HAVE_DECL_ABORT 1
8308_ACEOF
8309
11476
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
11477for ac_func in getrlimit setrlimit getrusage
11478do
8393 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11479 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
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
11480echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11481echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11482if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484else
11485 cat >conftest.$ac_ext <<_ACEOF
11486/* confdefs.h. */
11487_ACEOF

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

11550 echo "$as_me:$LINENO: result: no" >&5
11551echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11552#define $ac_tr_decl 0
11553_ACEOF
11554
11555fi
11556
11557done
8472if test x = y ; then
8473
11558
8474cat >>confdefs.h <<\_ACEOF
8475#define HAVE_DECL_GETRLIMIT 1
8476_ACEOF
8477
11559
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
11560cat >conftest.$ac_ext <<_ACEOF
11561/* confdefs.h. */
11562_ACEOF
11563cat confdefs.h >>conftest.$ac_ext
11564cat >>conftest.$ac_ext <<_ACEOF
11565/* end confdefs.h. */
11566
11567#include "ansidecl.h"

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

11608
11609cat >>confdefs.h <<\_ACEOF
11610#define rlim_t long
11611_ACEOF
11612
11613fi
11614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11615
11616# On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11617# FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11618# in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11619# to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11620
8544for ac_func in ldgetname
8545do
11621for ac_func in ldgetname
11622do
8546 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11623 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
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
11624echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11625echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11626if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11628else
11629 cat >conftest.$ac_ext <<_ACEOF
11630/* confdefs.h. */
11631_ACEOF
11632cat confdefs.h >>conftest.$ac_ext
11633cat >>conftest.$ac_ext <<_ACEOF
11634/* end confdefs.h. */
11635#undef $ac_tr_decl
11636#define $ac_tr_decl 1
11637
11638#include "ansidecl.h"
11639#include "system.h"
11640#ifdef HAVE_LDFCN_H
11641#undef FREAD
11642#undef FWRITE
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
11643#include <ldfcn.h>
11644#endif
11645
11646
11647int
11648main ()
11649{
11650#ifndef $ac_func

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

11696 echo "$as_me:$LINENO: result: no" >&5
11697echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11698#define $ac_tr_decl 0
11699_ACEOF
11700
11701fi
11702
11703done
8625if test x = y ; then
8626
11704
8627cat >>confdefs.h <<\_ACEOF
8628#define HAVE_DECL_LDGETNAME 1
8629_ACEOF
8630fi
8631
8632
8633for ac_func in times
8634do
11705
11706
11707for ac_func in times
11708do
8635 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11709 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
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
11710echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11711echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11712if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714else
11715 cat >conftest.$ac_ext <<_ACEOF
11716/* confdefs.h. */
11717_ACEOF

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

11780 echo "$as_me:$LINENO: result: no" >&5
11781echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11782#define $ac_tr_decl 0
11783_ACEOF
11784
11785fi
11786
11787done
8714if test x = y ; then
8715
11788
8716cat >>confdefs.h <<\_ACEOF
8717#define HAVE_DECL_TIMES 1
8718_ACEOF
8719fi
8720
8721
11789
11790
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
11791for ac_func in sigaltstack
11792do
11793 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11794echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11795echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11796if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8727else
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798else
8728
8729cat >conftest.$ac_ext <<_ACEOF
11799 cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h. */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h. */
11800/* confdefs.h. */
11801_ACEOF
11802cat confdefs.h >>conftest.$ac_ext
11803cat >>conftest.$ac_ext <<_ACEOF
11804/* end confdefs.h. */
11805#undef $ac_tr_decl
11806#define $ac_tr_decl 1
8735
8736#include "ansidecl.h"
8737#include "system.h"
11807
11808#include "ansidecl.h"
11809#include "system.h"
8738#ifdef HAVE_SYS_TIMES_H
8739#include <sys/times.h>
8740#endif
11810#include <signal.h>
8741
11811
11812
8742int
8743main ()
8744{
11813int
11814main ()
11815{
8745struct tms tms;
11816#ifndef $ac_func
11817char *(*pfn) = (char *(*)) $ac_func ;
11818#endif
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
11819 ;
11820 return 0;
11821}
11822_ACEOF
11823rm -f conftest.$ac_objext
11824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11825 (eval $ac_compile) 2>conftest.er1
11826 ac_status=$?

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

11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest.$ac_objext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
8772 ac_cv_struct_tms=yes
11845 eval "gcc_cv_have_decl_$ac_func=yes"
8773else
8774 echo "$as_me: failed program was:" >&5
8775sed 's/^/| /' conftest.$ac_ext >&5
8776
11846else
11847 echo "$as_me: failed program was:" >&5
11848sed 's/^/| /' conftest.$ac_ext >&5
11849
8777ac_cv_struct_tms=no
11850eval "gcc_cv_have_decl_$ac_func=no"
8778fi
8779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8780fi
11851fi
11852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11853fi
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
11854
8785cat >>confdefs.h <<\_ACEOF
8786#define HAVE_STRUCT_TMS 1
11855if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11856 echo "$as_me:$LINENO: result: yes" >&5
11857echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11858#define $ac_tr_decl 1
8787_ACEOF
8788
11859_ACEOF
11860
11861else
11862 echo "$as_me:$LINENO: result: no" >&5
11863echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11864#define $ac_tr_decl 0
11865_ACEOF
11866
8789fi
8790
11867fi
11868
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
11869done
11870
11871
11872# More time-related stuff.
11873echo "$as_me:$LINENO: checking for struct tms" >&5
11874echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11875if test "${ac_cv_struct_tms+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"
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877else
11878
11879cat >conftest.$ac_ext <<_ACEOF
11880/* confdefs.h. */
11881_ACEOF
11882cat confdefs.h >>conftest.$ac_ext
11883cat >>conftest.$ac_ext <<_ACEOF
11884/* end confdefs.h. */
11885
11886#include "ansidecl.h"
11887#include "system.h"
11888#ifdef HAVE_SYS_TIMES_H
11889#include <sys/times.h>
11890#endif
8808
8809int
8810main ()
8811{
11891
11892int
11893main ()
11894{
8812clock_t x;
11895struct tms tms;
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
11896 ;
11897 return 0;
11898}
11899_ACEOF
11900rm -f conftest.$ac_objext
11901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>conftest.er1
11903 ac_status=$?

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

11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest.$ac_objext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
8839 gcc_cv_type_clock_t=yes
11922 ac_cv_struct_tms=yes
8840else
8841 echo "$as_me: failed program was:" >&5
8842sed 's/^/| /' conftest.$ac_ext >&5
8843
11923else
11924 echo "$as_me: failed program was:" >&5
11925sed 's/^/| /' conftest.$ac_ext >&5
11926
8844gcc_cv_type_clock_t=no
11927ac_cv_struct_tms=no
8845fi
8846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847fi
11928fi
11929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11930fi
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
11931echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11932echo "${ECHO_T}$ac_cv_struct_tms" >&6
11933if test $ac_cv_struct_tms = yes; then
8851
8852cat >>confdefs.h <<\_ACEOF
11934
11935cat >>confdefs.h <<\_ACEOF
8853#define HAVE_CLOCK_T 1
11936#define HAVE_STRUCT_TMS 1
8854_ACEOF
8855
8856fi
8857
11937_ACEOF
11938
11939fi
11940
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
11941# use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11942# revisit after autoconf 2.50.
11943echo "$as_me:$LINENO: checking for clock_t" >&5
11944echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11945if test "${gcc_cv_type_clock_t+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11947else
8863 cat >conftest.$ac_ext <<_ACEOF
11948
11949cat >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{
11950/* confdefs.h. */
11951_ACEOF
11952cat confdefs.h >>conftest.$ac_ext
11953cat >>conftest.$ac_ext <<_ACEOF
11954/* end confdefs.h. */
11955
11956#include "ansidecl.h"
11957#include "system.h"
11958
11959int
11960main ()
11961{
8876if ((uchar *)0) return 0;
8877 if (sizeof(uchar)) return 0;
11962clock_t x;
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
11963 ;
11964 return 0;
11965}
11966_ACEOF
11967rm -f conftest.$ac_objext
11968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969 (eval $ac_compile) 2>conftest.er1
11970 ac_status=$?

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

11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest.$ac_objext'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
8904 ac_cv_type_uchar=yes
11989 gcc_cv_type_clock_t=yes
8905else
8906 echo "$as_me: failed program was:" >&5
8907sed 's/^/| /' conftest.$ac_ext >&5
8908
11990else
11991 echo "$as_me: failed program was:" >&5
11992sed 's/^/| /' conftest.$ac_ext >&5
11993
8909ac_cv_type_uchar=no
11994gcc_cv_type_clock_t=no
8910fi
8911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8912fi
11995fi
11996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11997fi
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
11998echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11999echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12000if test $gcc_cv_type_clock_t = yes; then
8916
8917cat >>confdefs.h <<\_ACEOF
12001
12002cat >>confdefs.h <<\_ACEOF
8918#define HAVE_UCHAR 1
12003#define HAVE_CLOCK_T 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
12004_ACEOF
12005
12006fi
12007
12008# Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12009CFLAGS="$saved_CFLAGS"
12010
12011# Check whether --enable-initfini-array or --disable-initfini-array was given.

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

12165# libunwind, we can choose to use the system libunwind.
12166
12167# Check whether --with-system-libunwind or --without-system-libunwind was given.
12168if test "${with_system_libunwind+set}" = set; then
12169 withval="$with_system_libunwind"
12170
12171fi;
12172
12173# config.gcc also contains tests of with_system_libunwind.
12174if test x$with_system_libunwind = xyes; then
12175
12176cat >>confdefs.h <<\_ACEOF
12177#define HAVE_GETIPINFO 1
12178_ACEOF
12179
12180fi
12181
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
12182# --------------------------------------------------------
12183# Build, host, and target specific configuration fragments
12184# --------------------------------------------------------
12185
12186# Collect build-machine-specific information.
12187. ${srcdir}/config.build
12188
12189# Collect host-machine-specific information.

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

12271if test x$need_64bit_hwint = xyes; then
12272
12273cat >>confdefs.h <<\_ACEOF
12274#define NEED_64BIT_HOST_WIDE_INT 1
12275_ACEOF
12276
12277fi
12278
12279if test x$use_long_long_for_widest_fast_int = xyes; then
12280
12281cat >>confdefs.h <<\_ACEOF
12282#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12283_ACEOF
12284
12285fi
12286
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
12287count=a
12288for f in $host_xm_file; do
12289 count=${count}x
12290done
12291if test $count = a; then
12292 :
12293elif test $count = ax; then
12294 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."

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

12312 else
12313 echo "Using the following build machine macro files:"
12314 for f in $build_xm_file; do
12315 echo " $srcdir/config/$f"
12316 done
12317 fi
12318fi
12319
12320case ${host} in
12321 powerpc*-*-darwin*)
12322 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12323echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12324if test "${gcc_cv_mcontext_underscores+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326else
12327 cat >conftest.$ac_ext <<_ACEOF
12328
12329#include <sys/signal.h>
12330#include <ucontext.h>
12331int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12332
12333_ACEOF
12334rm -f conftest.$ac_objext
12335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12336 (eval $ac_compile) 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest.$ac_objext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 gcc_cv_mcontext_underscores=no
12357else
12358 echo "$as_me: failed program was:" >&5
12359sed 's/^/| /' conftest.$ac_ext >&5
12360
12361gcc_cv_mcontext_underscores=yes
12362fi
12363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12364fi
12365echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12366echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12367 if test $gcc_cv_mcontext_underscores = yes; then
12368
12369cat >>confdefs.h <<\_ACEOF
12370#define HAS_MCONTEXT_T_UNDERSCORES
12371_ACEOF
12372
12373 fi
12374 ;;
12375esac
12376
12377# ---------
12378# Threading
12379# ---------
12380
9218# Check if a valid thread package
12381# Check if a valid thread package
9219case ${enable_threads_flag} in
12382case ${enable_threads} in
9220 "" | no)
9221 # No threads
9222 target_thread_file='single'
9223 ;;
9224 yes)
9225 # default
9226 target_thread_file='single'
9227 ;;
12383 "" | no)
12384 # No threads
12385 target_thread_file='single'
12386 ;;
12387 yes)
12388 # default
12389 target_thread_file='single'
12390 ;;
9228 aix | dce | gnat | irix | posix | rtems | \
12391 aix | dce | gnat | irix | posix | posix95 | rtems | \
9229 single | solaris | vxworks | win32 )
12392 single | solaris | vxworks | win32 )
9230 target_thread_file=${enable_threads_flag}
12393 target_thread_file=${enable_threads}
9231 ;;
9232 *)
12394 ;;
12395 *)
9233 echo "${enable_threads_flag} is an unknown thread package" 1>&2
12396 echo "${enable_threads} 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
12397 exit 1
12398 ;;
12399esac
12400
12401if test x${thread_file} = x; then
12402 # No thread file set by target-specific clauses in config.gcc,
12403 # so use file chosen by default logic above
12404 thread_file=${target_thread_file}
12405fi
12406
12407# Make gthr-default.h if we have a thread file.
12408gthread_flags=
12409if test $thread_file != single; then
12410 rm -f gthr-default.h
12411 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12412 gthread_flags=-DHAVE_GTHR_DEFAULT
12413fi
12414
12415
12416# --------
12417# UNSORTED
12418# --------
12419
12420use_cxa_atexit=no
9244if test x$enable___cxa_atexit = xyes || \
9245 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12421if test x$enable___cxa_atexit = xyes || \
12422 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9246 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12423 if test x$host = x$target; then
12424 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
12425echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12426if test "${ac_cv_func___cxa_atexit+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428else
12429 cat >conftest.$ac_ext <<_ACEOF
12430/* confdefs.h. */
12431_ACEOF
12432cat confdefs.h >>conftest.$ac_ext

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

12507ac_cv_func___cxa_atexit=no
12508fi
12509rm -f conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12511fi
12512echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12513echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12514if test $ac_cv_func___cxa_atexit = yes; then
12515 use_cxa_atexit=yes
12516else
12517 echo "__cxa_atexit can't be enabled on this target"
12518fi
9337
12519
12520 else
12521 # We can't check for __cxa_atexit when building a cross, so assume
12522 # it is available
12523 use_cxa_atexit=yes
12524 fi
12525 if test x$use_cxa_atexit = xyes; then
12526
9338cat >>confdefs.h <<\_ACEOF
12527cat >>confdefs.h <<\_ACEOF
9339#define DEFAULT_USE_CXA_ATEXIT 1
12528#define DEFAULT_USE_CXA_ATEXIT 2
9340_ACEOF
9341
12529_ACEOF
12530
12531 fi
12532fi
12533
12534use_getipinfo=yes
12535if test x$with_system_libunwind = xyes; then
12536 if test x$host = x$target; then
12537 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12538echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12539if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
9342else
12541else
9343 echo "__cxa_atexit can't be enabled on this target"
12542 ac_func_search_save_LIBS=$LIBS
12543ac_cv_search__Unwind_GetIPInfo=no
12544cat >conftest.$ac_ext <<_ACEOF
12545/* confdefs.h. */
12546_ACEOF
12547cat confdefs.h >>conftest.$ac_ext
12548cat >>conftest.$ac_ext <<_ACEOF
12549/* end confdefs.h. */
12550
12551/* Override any gcc2 internal prototype to avoid an error. */
12552#ifdef __cplusplus
12553extern "C"
12554#endif
12555/* We use char because int might match the return type of a gcc2
12556 builtin and then its argument prototype would still apply. */
12557char _Unwind_GetIPInfo ();
12558int
12559main ()
12560{
12561_Unwind_GetIPInfo ();
12562 ;
12563 return 0;
12564}
12565_ACEOF
12566rm -f conftest.$ac_objext conftest$ac_exeext
12567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12568 (eval $ac_link) 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -z "$ac_c_werror_flag"
12576 || test ! -s conftest.err'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; } &&
12582 { ac_try='test -s conftest$ac_exeext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 ac_cv_search__Unwind_GetIPInfo="none required"
12589else
12590 echo "$as_me: failed program was:" >&5
12591sed 's/^/| /' conftest.$ac_ext >&5
12592
9344fi
12593fi
12594rm -f conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext conftest.$ac_ext
12596if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12597 for ac_lib in unwind; do
12598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
9345
12605
12606/* Override any gcc2 internal prototype to avoid an error. */
12607#ifdef __cplusplus
12608extern "C"
12609#endif
12610/* We use char because int might match the return type of a gcc2
12611 builtin and then its argument prototype would still apply. */
12612char _Unwind_GetIPInfo ();
12613int
12614main ()
12615{
12616_Unwind_GetIPInfo ();
12617 ;
12618 return 0;
12619}
12620_ACEOF
12621rm -f conftest.$ac_objext conftest$ac_exeext
12622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623 (eval $ac_link) 2>conftest.er1
12624 ac_status=$?
12625 grep -v '^ *+' conftest.er1 >conftest.err
12626 rm -f conftest.er1
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag"
12631 || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12644break
12645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
9346fi
12649fi
12650rm -f conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652 done
12653fi
12654LIBS=$ac_func_search_save_LIBS
12655fi
12656echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12657echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12658if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12659 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
9347
12660
12661else
12662 use_getipinfo=no
12663fi
12664
12665 fi
12666fi
12667
12668if test x$use_getipinfo = xyes; then
12669
12670cat >>confdefs.h <<\_ACEOF
12671#define HAVE_GETIPINFO 1
12672_ACEOF
12673
12674else
12675 echo "The system unwind library does not support _Unwind_GetIPInfo."
12676fi
12677
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
12678# Look for a file containing extra machine modes.
12679if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12680 extra_modes_file='$(srcdir)'/config/${extra_modes}
12681
12682
12683cat >>confdefs.h <<_ACEOF
12684#define EXTRA_MODES_FILE "config/$extra_modes"
12685_ACEOF
12686
12687fi
12688
12689# Convert extra_options into a form suitable for Makefile use.
12690extra_opt_files=
12691for f in $extra_options; do
12692 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12693done
12694
12695
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
12696# auto-host.h is the file containing items generated by autoconf and is
12697# the first file included by config.h.
12698# If host=build, it is correct to have bconfig include auto-host.h
12699# as well. If host!=build, we are in error and need to do more
12700# work to find out the build config parameters.
12701if test x$host = x$build
12702then
12703 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 \
12704else
12705 # We create a subdir, then run autoconf in the subdir.
12706 # To prevent recursion we set host and build for the new
12707 # invocation of configure to the build for this invocation
12708 # of configure.
12709 tempdir=build.$$
12710 rm -rf $tempdir
12711 mkdir $tempdir
12712 cd $tempdir
12713 case ${srcdir} in
12714 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12715 *) realsrcdir=../${srcdir};;
12716 esac
12717 saved_CFLAGS="${CFLAGS}"
12718 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12719 ${realsrcdir}/configure \
12720 --enable-languages=${enable_languages-all} \
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
12721 --target=$target_alias --host=$build_alias --build=$build_alias
12722 CFLAGS="${saved_CFLAGS}"
12723
12724 # We just finished tests for the build machine, so rename
12725 # the file auto-build.h in the gcc directory.
12726 mv auto-host.h ../auto-build.h
12727 cd ..
12728 rm -rf $tempdir
12729 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.
12730fi
12731
12732
12733tm_file="${tm_file} defaults.h"
12734tm_p_file="${tm_p_file} tm-preds.h"
12735host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12736build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12737# We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12738# put this back in temporarily.
9403xm_file="ansidecl.h ${xm_file}"
12739xm_file="auto-host.h ansidecl.h ${xm_file}"
9404
9405# --------
9406# UNSORTED
9407# --------
9408
12740
12741# --------
12742# UNSORTED
12743# --------
12744
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
12745# Compile in configure arguments.
12746if test -f configargs.h ; then
12747 # Being re-configured.
12748 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12749 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12750else
12751 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12752fi

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

12765static const char thread_model[] = "$thread_file";
12766
12767static const struct {
12768 const char *name, *value;
12769} configure_default_options[] = $configure_default_options;
12770EOF
12771
12772# 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=
12773# If we haven't got the data from the intl directory,
12774# assume NLS is disabled.
12775USE_NLS=no
12776LIBINTL=
12777LIBINTL_DEP=
12778INCINTL=
12779XGETTEXT=
12780GMSGFMT=
12781POSUB=
9460if test -f ../intl/config.intl; then
9461 . ../intl/config.intl
12782
12783if test -f ../intl/config.intl; then
12784 . ../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).
12785fi
12786echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12787echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12788if test x"$USE_NLS" != xyes; then
12789 echo "$as_me:$LINENO: result: no" >&5
12790echo "${ECHO_T}no" >&6
12791else
12792 echo "$as_me:$LINENO: result: yes" >&5

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

12808 # weeded out.
12809 case "$cat" in *\**)
12810 continue;;
12811 esac
12812 # The quadruple backslash is collapsed to a double backslash
12813 # by the backticks, then collapsed again by the double quotes,
12814 # leaving us with one backslash in the sed expression (right
12815 # 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!!"`
12816 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12817 lang=`echo $cat | sed -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
12818 # The user is allowed to set LINGUAS to a list of languages to
12819 # install catalogs for. If it's empty that means "all of them."
12820 if test "x$LINGUAS" = x; then
12821 CATALOGS="$CATALOGS $cat"
12822 XLINGUAS="$XLINGUAS $lang"
12823 else
12824 case "$LINGUAS" in *$lang*)
12825 CATALOGS="$CATALOGS $cat"
12826 XLINGUAS="$XLINGUAS $lang"
12827 ;;
12828 esac
12829 fi
12830 done
12831 LINGUAS="$XLINGUAS"
12832 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12833echo "${ECHO_T}$LINGUAS" >&6
12834
12835
12836 DATADIRNAME=share
12837
12838 INSTOBJEXT=.mo
12839
12840 GENCAT=gencat
12841
12842 CATOBJEXT=.gmo
12843
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
12844fi
12845
12846# If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12847# -liconv on the link line twice.
12848case "$LIBINTL" in *$LIBICONV*)
12849 LIBICONV= ;;
12850esac
12851
12852# Check whether --enable-secureplt or --disable-secureplt was given.
12853if test "${enable_secureplt+set}" = set; then
12854 enableval="$enable_secureplt"
12855
12856fi;
12857
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;
12858# Windows32 Registry support for specifying GCC installation paths.
12859# Check whether --enable-win32-registry or --disable-win32-registry was given.
12860if test "${enable_win32_registry+set}" = set; then
12861 enableval="$enable_win32_registry"
12862
12863fi;
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
12864
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
12865case $host_os in
12866 win32 | pe | cygwin* | mingw32* | uwin*)
12867 if test "x$enable_win32_registry" != xno; then
12868 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
12869echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12870if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872else
12873 ac_func_search_save_LIBS=$LIBS
12874ac_cv_search_RegOpenKeyExA=no
12875cat >conftest.$ac_ext <<_ACEOF
12876/* confdefs.h. */

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

12984fi
12985LIBS=$ac_func_search_save_LIBS
12986fi
12987echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12988echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12989if test "$ac_cv_search_RegOpenKeyExA" != no; then
12990 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12991
9661fi
9662
9663else
12992else
9664 echo "$as_me:$LINENO: result: no" >&5
9665echo "${ECHO_T}no" >&6
12993 enable_win32_registry=no
9666fi
9667
12994fi
12995
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
12996 fi
9683
12997
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
12998 if test "x$enable_win32_registry" != xno; then
9687
12999
13000cat >>confdefs.h <<\_ACEOF
13001#define ENABLE_WIN32_REGISTRY 1
13002_ACEOF
13003
13004
13005 if test "x$enable_win32_registry" != xyes \
13006 && test "x$enable_win32_registry" != x; then
13007
9688cat >>confdefs.h <<_ACEOF
13008cat >>confdefs.h <<_ACEOF
9689#define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
13009#define WIN32_REGISTRY_KEY "$enable_win32_registry"
9690_ACEOF
9691
13010_ACEOF
13011
9692 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9693echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9694fi
9695;;
13012 fi
13013 fi
13014 ;;
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
13015esac
13016
13017# Get an absolute path to the GCC top-level source directory
13018holddir=`${PWDCMD-pwd}`
13019cd $srcdir
13020topdir=`${PWDCMD-pwd}`
13021cd $holddir
13022

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

13036do
13037 if test -f ${srcdir}/config/$f
13038 then
13039 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13040 fi
13041done
13042tmake_file="${tmake_file_}"
13043
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
13044# If the host doesn't support symlinks, modify CC in
13045# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
13046# Otherwise, we can use "CC=$(CC)".
13047rm -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
13048case "$LN_S" in
13049 *-s*)
13050 cc_set_by_configure="\$(CC)"
13051 quoted_cc_set_by_configure="\$(CC)"
13052 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13053 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
13054 ;;
13055 *)
13056 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
13057 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
13058 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
13059 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
13060 ;;
13061esac
9751
13062
13063# This is a terrible hack which will go away some day.
13064host_cc_for_libada=${CC}
13065
13066
9752out_object_file=`basename $out_file .c`.o
9753
13067out_object_file=`basename $out_file .c`.o
13068
9754tm_file_list=
9755tm_include_list=
13069tm_file_list="options.h"
13070tm_include_list="options.h"
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)'
13071for f in $tm_file; do
13072 case $f in
13073 defaults.h )
13074 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13075 tm_include_list="${tm_include_list} $f"
13076 ;;
13077 * )
13078 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"

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

13151 esac
13152done
13153
13154# Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
13155# Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13156CROSS=
13157ALL=all.internal
13158SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13159
13160if test "x$with_build_sysroot" != x; then
13161 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13162else
13163 # This value is used, even on a native system, because
13164 # CROSS_SYSTEM_HEADER_DIR is just
13165 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13166 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13167fi
13168
9844if test x$host != x$target
9845then
9846 CROSS="-DCROSS_COMPILE"
9847 ALL=all.cross
13169if test x$host != x$target
13170then
13171 CROSS="-DCROSS_COMPILE"
13172 ALL=all.cross
9848 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13173 SYSTEM_HEADER_DIR=$build_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
13174 case "$host","$target" in
13175 # Darwin crosses can use the host system's libraries and headers,
13176 # because of the fat library support. Of course, it must be the
13177 # same version of Darwin on both sides. Allow the user to
13178 # just say --target=foo-darwin without a version number to mean
13179 # "the version on this system".
13180 *-*-darwin*,*-*-darwin*)
13181 hostos=`echo $host | sed 's/.*-darwin/darwin/'`

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

13187 fi
13188 ;;
13189
13190 i?86-*-*,x86_64-*-* \
13191 | powerpc*-*-*,powerpc64*-*-*)
13192 CROSS="$CROSS -DNATIVE_CROSS" ;;
13193 esac
13194elif 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)'
13195 SYSTEM_HEADER_DIR=$build_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.
13196fi
13197
13198# If this is a cross-compiler that does not
13199# have its own set of headers then define
13200# inhibit_libc
13201
13202# If this is using newlib, without having the headers available now,
13203# then define inhibit_libc in LIBGCC2_CFLAGS.
13204# This prevents libgcc2 from containing any code which requires libc
13205# support.
9882inhibit_libc=
13206inhibit_libc=false
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
13207if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13208 test x$with_newlib = xyes ; } &&
13209 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9886 inhibit_libc=-Dinhibit_libc
13210 inhibit_libc=true
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:
13211fi
13212
13213
13214# When building gcc with a cross-compiler, we need to adjust things so
13215# that the generator programs are still built with the native compiler.
13216# Also, we cannot run fixincludes or fix-header.
13217
13218# These are the normal (build=host) settings:
9895BUILD_PREFIX=
9896BUILD_PREFIX_1=ignore-
9897CC_FOR_BUILD='$(CC)'
9898BUILD_CFLAGS='$(ALL_CFLAGS)'
13219CC_FOR_BUILD='$(CC)'
13220BUILD_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
13221STMP_FIXINC=stmp-fixinc
13222
13223# Possibly disable fixproto, on a per-target basis.
13224case ${use_fixproto} in
13225 no)
13226 STMP_FIXPROTO=
13227 ;;
13228 yes)
13229 STMP_FIXPROTO=stmp-fixproto
13230 ;;
13231esac
13232
13233
13234# And these apply if build != host, or we are generating coverage data
13235if test x$build != x$host || test "x$coverage_flags" != x
13236then
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
13237 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13238
13239 if test "x$TARGET_SYSTEM_ROOT" = x; then
9921 STMP_FIXINC=
9922 STMP_FIXPROTO=
13240 if test "x$STMP_FIXPROTO" != x; then
13241 STMP_FIXPROTO=stmp-install-fixproto
13242 fi
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
13243 fi
13244fi
13245
13246# Expand extra_headers to include complete path.
13247# This substitutes for lots of t-* files.
13248extra_headers_list=
13249# Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13250for file in ${extra_headers} ; do
13251 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13252done
13253
13254# Define collect2 in Makefile.
13255case $host_can_use_collect2 in
13256 no) collect2= ;;
13257 *) collect2='collect2$(exeext)' ;;
13258esac
13259
13260
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"
13261# Add a definition of USE_COLLECT2 if system wants one.
13262case $use_collect2 in
13263 no) use_collect2= ;;
13264 "") ;;
13265 *)
13266 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13267 xm_defines="${xm_defines} USE_COLLECT2"
13268 case $host_can_use_collect2 in
13269 no)
13270 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13271echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13272 { (exit 1); exit 1; }; }
13273 ;;
13274 esac
9941 ;;
9942esac
9943
13275 ;;
13276esac
13277
13278# ---------------------------
13279# Assembler & linker features
13280# ---------------------------
13281
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.
13282# Identify the assembler which will work hand-in-glove with the newly
13283# built GCC, so that we can examine its features. This is the assembler
13284# which will be driven by the driver program.
13285#
13286# If build != host, and we aren't building gas in-tree, we identify a
13287# build->target assembler and hope that it will have the same features
13288# 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
13289gcc_cv_gas_major_version=
13290gcc_cv_gas_minor_version=
13291gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13292
13293if test "${gcc_cv_as+set}" = set; then
13294 :
13295else
13296
9958if test -x "$DEFAULT_ASSEMBLER"; then
9959 gcc_cv_as="$DEFAULT_ASSEMBLER"
13297if test -x "$DEFAULT_ASSEMBLER"; then
13298 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 \
13299elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9966 && test -f ../gas/Makefile; then
9967 # Single tree build which includes gas.
13300 && test -f ../gas/Makefile \
13301 && test x$build = x$host; then
13302 gcc_cv_as=../gas/as-new$build_exeext
13303elif test -x as$build_exeext; then
13304 # Build using assembler in the current directory.
13305 gcc_cv_as=./as$build_exeext
13306elif test -x $AS_FOR_TARGET; then
13307 gcc_cv_as="$AS_FOR_TARGET"
13308else
13309 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13310set dummy $AS_FOR_TARGET; ac_word=$2
13311echo "$as_me:$LINENO: checking for $ac_word" >&5
13312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13313if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316 case $gcc_cv_as in
13317 [\\/]* | ?:[\\/]*)
13318 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13319 ;;
13320 *)
13321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322for as_dir in $PATH
13323do
13324 IFS=$as_save_IFS
13325 test -z "$as_dir" && as_dir=.
13326 for ac_exec_ext in '' $ac_executable_extensions; do
13327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13328 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13330 break 2
13331 fi
13332done
13333done
13334
13335 ;;
13336esac
13337fi
13338gcc_cv_as=$ac_cv_path_gcc_cv_as
13339
13340if test -n "$gcc_cv_as"; then
13341 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13342echo "${ECHO_T}$gcc_cv_as" >&6
13343else
13344 echo "$as_me:$LINENO: result: no" >&5
13345echo "${ECHO_T}no" >&6
13346fi
13347
13348fi
13349fi
13350
13351
13352ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13353
13354
13355echo "$as_me:$LINENO: checking what assembler to use" >&5
13356echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13357if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13358 # Single tree build which includes gas. We want to prefer it
13359 # over whatever linker top-level may have detected, since
13360 # we'll use what we're building after installation anyway.
13361 echo "$as_me:$LINENO: result: newly built gas" >&5
13362echo "${ECHO_T}newly built gas" >&6
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
13363 in_tree_gas=yes
13364 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13365for f in $gcc_cv_as_bfd_srcdir/configure \
13366 $gcc_cv_as_gas_srcdir/configure \
13367 $gcc_cv_as_gas_srcdir/configure.in \
13368 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9974 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
13369 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $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
13370 if test x$gcc_cv_gas_version != x; then
13371 break
13372 fi
13373done
13374gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13375gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13376gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13377case $gcc_cv_gas_patch_version in
13378 "") gcc_cv_gas_patch_version="0" ;;
13379esac
13380gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13381 + $gcc_cv_gas_minor_version \) \* 1000 \
13382 + $gcc_cv_gas_patch_version`
13383
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
13384 in_tree_gas_is_elf=no
13385 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13386 || (grep 'obj_format = multi' ../gas/Makefile \
13387 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13388 then
13389 in_tree_gas_is_elf=yes
13390 fi
13391else
13392 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13393echo "${ECHO_T}$gcc_cv_as" >&6
13394 in_tree_gas=no
9998fi
9999
13395fi
13396
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.
13397# Identify the linker which will work hand-in-glove with the newly
13398# built GCC, so that we can examine its features. This is the linker
13399# which will be driven by the driver program.
13400#
13401# If build != host, and we aren't building gas in-tree, we identify a
13402# build->target linker and hope that it will have the same features
13403# 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
13404gcc_cv_gld_major_version=
13405gcc_cv_gld_minor_version=
13406gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13407gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13408
13409if test "${gcc_cv_ld+set}" = set; then
13410 :
13411else
13412
10085if test -x "$DEFAULT_LINKER"; then
10086 gcc_cv_ld="$DEFAULT_LINKER"
13413if test -x "$DEFAULT_LINKER"; then
13414 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 \
13415elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10093 && test -f ../ld/Makefile; then
10094 # Single tree build which includes ld.
13416 && test -f ../ld/Makefile \
13417 && test x$build = x$host; then
13418 gcc_cv_ld=../ld/ld-new$build_exeext
13419elif test -x collect-ld$build_exeext; then
13420 # Build using linker in the current directory.
13421 gcc_cv_ld=./collect-ld$build_exeext
13422elif test -x $LD_FOR_TARGET; then
13423 gcc_cv_ld="$LD_FOR_TARGET"
13424else
13425 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13426set dummy $LD_FOR_TARGET; ac_word=$2
13427echo "$as_me:$LINENO: checking for $ac_word" >&5
13428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13429if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431else
13432 case $gcc_cv_ld in
13433 [\\/]* | ?:[\\/]*)
13434 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13435 ;;
13436 *)
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438for as_dir in $PATH
13439do
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13447 fi
13448done
13449done
13450
13451 ;;
13452esac
13453fi
13454gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13455
13456if test -n "$gcc_cv_ld"; then
13457 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13458echo "${ECHO_T}$gcc_cv_ld" >&6
13459else
13460 echo "$as_me:$LINENO: result: no" >&5
13461echo "${ECHO_T}no" >&6
13462fi
13463
13464fi
13465fi
13466
13467
13468ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13469
13470
13471echo "$as_me:$LINENO: checking what linker to use" >&5
13472echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13473if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13474 # Single tree build which includes ld. We want to prefer it
13475 # over whatever linker top-level may have detected, since
13476 # we'll use what we're building after installation anyway.
13477 echo "$as_me:$LINENO: result: newly built ld" >&5
13478echo "${ECHO_T}newly built ld" >&6
10095 in_tree_ld=yes
10096 in_tree_ld_is_elf=no
10097 if (grep 'EMUL = .*elf' ../ld/Makefile \
13479 in_tree_ld=yes
13480 in_tree_ld_is_elf=no
13481 if (grep 'EMUL = .*elf' ../ld/Makefile \
10098 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
13482 || grep 'EMUL = .*linux' ../ld/Makefile \
13483 || grep 'EMUL = .*lynx' ../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
13484 in_tree_ld_is_elf=yes
13485 fi
13486 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
13487 do
10103 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
13488 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $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]*\)"`
13489 if test x$gcc_cv_gld_version != x; then
13490 break
13491 fi
13492 done
13493 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13494 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
13495else
13496 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13497echo "${ECHO_T}$gcc_cv_ld" >&6
13498 in_tree_ld=no
10113fi
10114
13499fi
13500
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.
13501# Figure out what nm we will be using.
13502gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13503if test "${gcc_cv_nm+set}" = set; then
13504 :
13505else
10126
13506
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
13507if test -f $gcc_cv_binutils_srcdir/configure.in \
13508 && test -f ../binutils/Makefile \
13509 && test x$build = x$host; then
13510 gcc_cv_nm=../binutils/nm-new$build_exeext
13511elif test -x nm$build_exeext; then
13512 gcc_cv_nm=./nm$build_exeext
13513elif test -x $NM_FOR_TARGET; then
13514 gcc_cv_nm="$NM_FOR_TARGET"
13515else
13516 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13517set dummy $NM_FOR_TARGET; ac_word=$2
13518echo "$as_me:$LINENO: checking for $ac_word" >&5
13519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13520if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522else
13523 case $gcc_cv_nm in
13524 [\\/]* | ?:[\\/]*)
13525 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13526 ;;
13527 *)
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539done
13540done
10136
13541
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
13542 ;;
13543esac
13544fi
13545gcc_cv_nm=$ac_cv_path_gcc_cv_nm
10145
13546
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"
13547if test -n "$gcc_cv_nm"; then
13548 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13549echo "${ECHO_T}$gcc_cv_nm" >&6
13550else
13551 echo "$as_me:$LINENO: result: no" >&5
13552echo "${ECHO_T}no" >&6
13553fi
10152
13554
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
13555fi
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
13556fi
10184
13557
10185# Figure out what nm we will be using.
10186gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13558
10187echo "$as_me:$LINENO: checking what nm to use" >&5
10188echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13559echo "$as_me:$LINENO: checking what nm to use" >&5
13560echo $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
13561if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
10194 # Single tree build which includes binutils.
13562 # Single tree build which includes binutils.
13563 echo "$as_me:$LINENO: result: newly built nm" >&5
13564echo "${ECHO_T}newly built nm" >&6
10195 in_tree_nm=yes
13565 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
13566else
10202 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
13567 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13568echo "${ECHO_T}$gcc_cv_nm" >&6
13569 in_tree_nm=no
10203fi
13570fi
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
13571
13572ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13573
13574
10211# Figure out what objdump we will be using.
13575# Figure out what objdump we will be using.
13576if test "${gcc_cv_objdump+set}" = set; then
13577 :
13578else
13579
13580if test -f $gcc_cv_binutils_srcdir/configure.in \
13581 && test -f ../binutils/Makefile \
13582 && test x$build = x$host; then
13583 # Single tree build which includes binutils.
13584 gcc_cv_objdump=../binutils/objdump$build_exeext
13585elif test -x objdump$build_exeext; then
13586 gcc_cv_objdump=./objdump$build_exeext
13587elif test -x $OBJDUMP_FOR_TARGET; then
13588 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13589else
13590 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13591set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13592echo "$as_me:$LINENO: checking for $ac_word" >&5
13593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13594if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13596else
13597 case $gcc_cv_objdump in
13598 [\\/]* | ?:[\\/]*)
13599 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13600 ;;
13601 *)
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603for as_dir in $PATH
13604do
13605 IFS=$as_save_IFS
13606 test -z "$as_dir" && as_dir=.
13607 for ac_exec_ext in '' $ac_executable_extensions; do
13608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13609 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13611 break 2
13612 fi
13613done
13614done
13615
13616 ;;
13617esac
13618fi
13619gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13620
13621if test -n "$gcc_cv_objdump"; then
13622 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13623echo "${ECHO_T}$gcc_cv_objdump" >&6
13624else
13625 echo "$as_me:$LINENO: result: no" >&5
13626echo "${ECHO_T}no" >&6
13627fi
13628
13629fi
13630fi
13631
13632
10212echo "$as_me:$LINENO: checking what objdump to use" >&5
10213echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13633echo "$as_me:$LINENO: checking what objdump to use" >&5
13634echo $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
13635if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
10219 # Single tree build which includes binutils.
13636 # 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
13637 echo "$as_me:$LINENO: result: newly built objdump" >&5
13638echo "${ECHO_T}newly built objdump" >&6
13639elif test x$gcc_cv_objdump = x; then
13640 echo "$as_me:$LINENO: result: not found" >&5
13641echo "${ECHO_T}not found" >&6
10227else
13642else
10228 gcc_cv_objdump=`echo objdump | \
10229 sed ${program_transform_name}`$host_exeext
13643 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13644echo "${ECHO_T}$gcc_cv_objdump" >&6
10230fi
13645fi
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
13646
13647# Figure out what assembler alignment features are present.
13648echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13649echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13650if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13652else
13653 gcc_cv_as_balign_and_p2align=no

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

13801if test $gcc_cv_as_weak = yes; then
13802
13803cat >>confdefs.h <<\_ACEOF
13804#define HAVE_GAS_WEAK 1
13805_ACEOF
13806
13807fi
13808
13809echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13810echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13811if test "${gcc_cv_as_weakref+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13813else
13814 gcc_cv_as_weakref=no
13815 if test $in_tree_gas = yes; then
13816 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13817 then gcc_cv_as_weakref=yes
13818fi
13819 elif test x$gcc_cv_as != x; then
13820 echo ' .weakref foobar, barfnot' > conftest.s
13821 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }
13827 then
13828 gcc_cv_as_weakref=yes
13829 else
13830 echo "configure: failed program was" >&5
13831 cat conftest.s >&5
13832 fi
13833 rm -f conftest.o conftest.s
13834 fi
13835fi
13836echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13837echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13838if test $gcc_cv_as_weakref = yes; then
13839
13840cat >>confdefs.h <<\_ACEOF
13841#define HAVE_GAS_WEAKREF 1
13842_ACEOF
13843
13844fi
13845
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' \
13846echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13847echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13848if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850else
13851 gcc_cv_as_nsubspa_comdat=no
13852 if test $in_tree_gas = yes; then
13853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`

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

13937 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13938 if echo "$ld_ver" | grep GNU > /dev/null; then
13939 ld_vers=`echo $ld_ver | sed -n \
13940 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13941 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13942 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13943 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13944 -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'`
13945 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13946 -e 's,^.*[ ]\([0-9][0-9]*\.[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'`
13947 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'`
13948 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13949 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13950 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
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
13951 if test 0"$ld_date" -lt 20020404; then
13952 if test -n "$ld_date"; then
13953 # If there was date string, but was earlier than 2002-04-04, fail
13954 gcc_cv_ld_hidden=no
13955 elif test -z "$ld_vers"; then
13956 # If there was no date string nor ld version number, something is wrong
13957 gcc_cv_ld_hidden=no
13958 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
13959 test -z "$ld_vers_patch" && ld_vers_patch=0
13960 if test "$ld_vers_major" -lt 2; then
13961 gcc_cv_ld_hidden=no
13962 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13963 gcc_cv_ld_hidden="no"
13964 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13965 gcc_cv_ld_hidden=no
13966 fi

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

13977 esac
13978 fi
13979fi
13980fi
13981echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13982echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13983libgcc_visibility=no
13984
13985
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.
13986if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13987 libgcc_visibility=yes
13988
13989cat >>confdefs.h <<\_ACEOF
13990#define HAVE_GAS_HIDDEN 1
13991_ACEOF
13992
13993fi

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

14110EOF
14111cat > conftest.big <<EOF
14112 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14113 0010 00000001 00000012 00000018 00000000 ................
14114 0020 00000008 04000000 0844 .........D
14115EOF
14116 # If the assembler didn't choke, and we can objdump,
14117 # and we got the correct data, then succeed.
14118 # The text in the here-document typically retains its unix-style line
14119 # endings, while the output of objdump will use host line endings.
14120 # Therefore, use diff -b for the comparisons.
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 \
14121 if test x$gcc_cv_objdump != x \
14122 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14123 | tail -3 > conftest.got \
10673 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10674 || cmp conftest.big conftest.got > /dev/null 2>&1; }
14124 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14125 || diff -b 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
14126 then
14127 gcc_cv_as_eh_frame=yes
14128 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then

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

14181 cat conftest.s >&5
14182 fi
14183 rm -f conftest.o conftest.s
14184 fi
14185fi
14186echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14187echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14188
14189if test $gcc_cv_as_shf_merge = no; then
14190 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14191echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14192if test "${gcc_cv_as_shf_merge+set}" = set; then
14193 echo $ECHO_N "(cached) $ECHO_C" >&6
14194else
14195 gcc_cv_as_shf_merge=no
14196 if test $in_tree_gas = yes; then
14197 if test $in_tree_gas_is_elf = yes \
14198 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14199 then gcc_cv_as_shf_merge=yes
14200fi
14201 elif test x$gcc_cv_as != x; then
14202 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14203 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }
14209 then
14210 gcc_cv_as_shf_merge=yes
14211 else
14212 echo "configure: failed program was" >&5
14213 cat conftest.s >&5
14214 fi
14215 rm -f conftest.o conftest.s
14216 fi
14217fi
14218echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14219echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10738
14220
14221fi
14222
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
14223cat >>confdefs.h <<_ACEOF
14224#define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14225_ACEOF
14226
14227
14228echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14229echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14230if test "${gcc_cv_as_comdat_group+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232else
14233 gcc_cv_as_comdat_group=no
14234 if test $in_tree_gas = yes; then
14235 if test $in_tree_gas_is_elf = yes \
14236 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14237 then gcc_cv_as_comdat_group=yes
14238fi
14239 elif test x$gcc_cv_as != x; then
14240 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14241 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }
14247 then
14248 gcc_cv_as_comdat_group=yes
14249 else
14250 echo "configure: failed program was" >&5
14251 cat conftest.s >&5
14252 fi
14253 rm -f conftest.o conftest.s
14254 fi
14255fi
14256echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14257echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14258
14259if test $gcc_cv_as_comdat_group = yes; then
14260 gcc_cv_as_comdat_group_percent=no
14261else
14262 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14263echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14264if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266else
14267 gcc_cv_as_comdat_group_percent=no
14268 if test $in_tree_gas = yes; then
14269 if test $in_tree_gas_is_elf = yes \
14270 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14271 then gcc_cv_as_comdat_group_percent=yes
14272fi
14273 elif test x$gcc_cv_as != x; then
14274 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14275 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }
14281 then
14282 gcc_cv_as_comdat_group_percent=yes
14283 else
14284 echo "configure: failed program was" >&5
14285 cat conftest.s >&5
14286 fi
14287 rm -f conftest.o conftest.s
14288 fi
14289fi
14290echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14291echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14292
14293fi
14294if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14295 comdat_group=yes
14296 if test 0"$ld_date" -lt 20050308; then
14297 if test -n "$ld_date"; then
14298 # If there was date string, but was earlier than 2005-03-08, fail
14299 comdat_group=no
14300 elif test "$ld_vers_major" -lt 2; then
14301 comdat_group=no
14302 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14303 comdat_group=no
14304 fi
14305 fi
14306else
14307 # assume linkers other than GNU ld don't support COMDAT group
14308 comdat_group=no
14309fi
14310if test $comdat_group = no; then
14311 gcc_cv_as_comdat_group=no
14312 gcc_cv_as_comdat_group_percent=no
14313fi
14314
14315cat >>confdefs.h <<_ACEOF
14316#define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14317_ACEOF
14318
14319
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 ;;
14320# Thread-local storage - the check is heavily parametrized.
14321conftest_s=
14322tls_first_major=
14323tls_first_minor=
14324tls_as_opt=
14325case "$target" in
14326 alpha*-*-*)
14327 conftest_s='

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

14341 ldq $1,foo($29) !gottprel
14342 ldah $2,foo($29) !tprelhi
14343 lda $3,foo($2) !tprello
14344 lda $4,foo($29) !tprel'
14345 tls_first_major=2
14346 tls_first_minor=13
14347 tls_as_opt=--fatal-warnings
14348 ;;
14349 frv*-*-*)
14350 conftest_s='
14351 .section ".tdata","awT",@progbits
14352x: .long 25
14353 .text
14354 call #gettlsoff(x)'
14355 tls_first_major=2
14356 tls_first_minor=14
14357 ;;
14358 hppa*-*-linux*)
14359 conftest_s='
14360t1: .reg %r20
14361t2: .reg %r21
14362gp: .reg %r19
14363 .section ".tdata","awT",@progbits
14364foo: .long 25
14365 .text
14366 .align 4
14367 addil LT%foo-$tls_gdidx$,gp
14368 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14369 b __tls_get_addr
14370 nop
14371 addil LT%foo-$tls_ldidx$,gp
14372 b __tls_get_addr
14373 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14374 addil LR%foo-$tls_dtpoff$,%ret0
14375 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14376 mfctl %cr27,%t1
14377 addil LT%foo-$tls_ieoff$,gp
14378 ldw RT%foo-$tls_ieoff$(%r1),%t2
14379 add %t1,%t2,%t3
14380 mfctl %cr27,%t1
14381 addil LR%foo-$tls_leoff$,%t1
14382 ldo RR%foo-$tls_leoff$(%r1),%t2'
14383 tls_first_major=2
14384 tls_first_minor=15
14385 tls_as_opt=--fatal-warnings
14386 ;;
14387 arm*-*-*)
14388 conftest_s='
14389 .section ".tdata","awT",%progbits
14390foo: .long 25
14391 .text
14392.word foo(gottpoff)
14393.word foo(tpoff)
14394.word foo(tlsgd)
14395.word foo(tlsldm)
14396.word foo(tlsldo)'
14397 tls_first_major=2
14398 tls_first_minor=17
14399 ;;
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 ;;
14400 i[34567]86-*-*)
14401 conftest_s='
14402 .section ".tdata","awT",@progbits
14403foo: .long 25
14404 .text
14405 movl %gs:0, %eax
14406 leal foo@TLSGD(,%ebx,1), %eax
14407 leal foo@TLSLDM(%ebx), %eax

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

14445 movl r23 = @dtprel(foo#)
14446 addl r20 = @tprel(foo#), gp
14447 adds r22 = @tprel(foo#), r13
14448 movl r24 = @tprel(foo#)'
14449 tls_first_major=2
14450 tls_first_minor=13
14451 tls_as_opt=--fatal-warnings
14452 ;;
14453 mips*-*-*)
14454 conftest_s='
14455 .section .tdata,"awT",@progbits
14456x:
14457 .word 2
14458 .text
14459 addiu $4, $28, %tlsgd(x)
14460 addiu $4, $28, %tlsldm(x)
14461 lui $4, %dtprel_hi(x)
14462 addiu $4, $4, %dtprel_lo(x)
14463 lw $4, %gottprel(x)($28)
14464 lui $4, %tprel_hi(x)
14465 addiu $4, $4, %tprel_lo(x)'
14466 tls_first_major=2
14467 tls_first_minor=16
14468 tls_as_opt='-32 --fatal-warnings'
14469 ;;
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
14470 powerpc-*-*)
14471 conftest_s='
14472 .section ".tdata","awT",@progbits
14473 .align 2
14474ld0: .space 4
14475ld1: .space 4
14476x1: .space 4
14477x2: .space 4

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

14575 .long foo@GOTTPOFF
14576 .long foo@TPOFF'
14577 tls_first_major=2
14578 tls_first_minor=13
14579 tls_as_opt=--fatal-warnings
14580 ;;
14581 sparc*-*-*)
14582 case "$target" in
14583 sparc*-sun-solaris2.[56789]*)
14584 # TLS was introduced in the Solaris 9 4/04 release but
14585 # we do not enable it by default on Solaris 9 either.
14586 if test "x$enable_tls" = xyes ; then
14587 on_solaris=yes
14588 else
14589 enable_tls=no;
14590 fi
14591 ;;
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
14592 sparc*-sun-solaris2.*)
14593 on_solaris=yes
14594 ;;
14595 *)
14596 on_solaris=no
14597 ;;
14598 esac
14599 if test x$on_solaris = xyes && test x$gas_flag = xno; then

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

14645 xor %l1, %tle_lox10(foo), %o5
14646 ld [%g7 + %o5], %o1'
14647 tls_first_major=2
14648 tls_first_minor=14
14649 tls_as_opt="-32 --fatal-warnings"
14650 fi
14651 ;;
14652esac
11000if test -z "$tls_first_major"; then
14653set_have_as_tls=no
14654if test "x$enable_tls" = xno ; then
14655 : # TLS explicitly disabled.
14656elif test "x$enable_tls" = xyes ; then
14657 set_have_as_tls=yes # TLS explicitly enabled.
14658elif 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
14659 : # If we don't have a check, assume no support.
14660else
14661 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14662echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14663if test "${gcc_cv_as_tls+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665else
14666 gcc_cv_as_tls=no

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

14683 cat conftest.s >&5
14684 fi
14685 rm -f conftest.o conftest.s
14686 fi
14687fi
14688echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14689echo "${ECHO_T}$gcc_cv_as_tls" >&6
14690if test $gcc_cv_as_tls = yes; then
14691 set_have_as_tls=yes
14692fi
14693fi
14694if test $set_have_as_tls = yes ; then
11033
11034cat >>confdefs.h <<\_ACEOF
11035#define HAVE_AS_TLS 1
11036_ACEOF
11037
11038fi
14695
14696cat >>confdefs.h <<\_ACEOF
14697#define HAVE_AS_TLS 1
14698_ACEOF
14699
14700fi
11039fi
11040
11041# Target-specific assembler checks.
11042
14701
14702# Target-specific assembler checks.
14703
14704echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14705echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14706gcc_cv_ld_static_dynamic=no
14707if test $in_tree_ld = yes ; then
14708 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14709 gcc_cv_ld_static_dynamic=yes
14710 fi
14711elif test x$gcc_cv_ld != x; then
14712 # Check if linker supports -Bstatic/-Bdynamic option
14713 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14714 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14715 gcc_cv_ld_static_dynamic=yes
14716 fi
14717fi
14718if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14719
14720cat >>confdefs.h <<\_ACEOF
14721#define HAVE_LD_STATIC_DYNAMIC 1
14722_ACEOF
14723
14724fi
14725echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14726echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14727
14728if test x"$demangler_in_ld" = xyes; then
14729 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14730echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14731 gcc_cv_ld_demangle=no
14732 if test $in_tree_ld = yes; then
14733 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
14734 gcc_cv_ld_demangle=yes
14735 fi
14736 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14737 # Check if the GNU linker supports --demangle option
14738 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14739 gcc_cv_ld_demangle=yes
14740 fi
14741 fi
14742 if test x"$gcc_cv_ld_demangle" = xyes; then
14743
14744cat >>confdefs.h <<\_ACEOF
14745#define HAVE_LD_DEMANGLE 1
14746_ACEOF
14747
14748 fi
14749 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14750echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14751fi
14752
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-*-*)
14753case "$target" in
14754 # All TARGET_ABI_OSF targets.
14755 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14756 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14757echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14758if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14760else

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

15080cat >>confdefs.h <<\_ACEOF
15081#define HAVE_AS_OFFSETABLE_LO10 1
15082_ACEOF
15083
15084fi
15085 ;;
15086
15087 i[34567]86-*-* | x86_64-*-*)
15088 case $target_os in
15089 cygwin* | pe | mingw32*)
15090 # Used for DWARF 2 in PE
15091 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15092echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15093if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095else
15096 gcc_cv_as_ix86_pe_secrel32=no
15097 if test $in_tree_gas = yes; then
15098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15099 then gcc_cv_as_ix86_pe_secrel32=yes
15100fi
15101 elif test x$gcc_cv_as != x; then
15102 echo '.text
15103foo: nop
15104.data
15105 .secrel32 foo' > conftest.s
15106 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }
15112 then
15113 if test x$gcc_cv_ld != x \
15114 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15115 gcc_cv_as_ix86_pe_secrel32=yes
15116 fi
15117 rm -f conftest
15118 else
15119 echo "configure: failed program was" >&5
15120 cat conftest.s >&5
15121 fi
15122 rm -f conftest.o conftest.s
15123 fi
15124fi
15125echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15126echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15127if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15128
15129cat >>confdefs.h <<\_ACEOF
15130#define HAVE_GAS_PE_SECREL32_RELOC 1
15131_ACEOF
15132
15133fi
15134 ;;
15135 esac
15136
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
15137 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15138echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15139if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141else
15142 gcc_cv_as_ix86_filds_fists=no
15143 if test $in_tree_gas = yes; then
15144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`

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

15199if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15200
15201cat >>confdefs.h <<\_ACEOF
15202#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15203_ACEOF
15204
15205fi
15206
15207 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15208echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15209if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15211else
15212 gcc_cv_as_ix86_ffreep=no
15213 if test x$gcc_cv_as != x; then
15214 echo 'ffreep %st(1)' > conftest.s
15215 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15218 ac_status=$?
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }
15221 then
15222 gcc_cv_as_ix86_ffreep=yes
15223 else
15224 echo "configure: failed program was" >&5
15225 cat conftest.s >&5
15226 fi
15227 rm -f conftest.o conftest.s
15228 fi
15229fi
15230echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15231echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15232if test $gcc_cv_as_ix86_ffreep = yes; then
15233
15234cat >>confdefs.h <<\_ACEOF
15235#define HAVE_AS_IX86_FFREEP 1
15236_ACEOF
15237
15238fi
15239
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
15240 # This one is used unconditionally by i386.[ch]; it is to be defined
15241 # to 1 if the feature is present, 0 otherwise.
15242 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15243echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15244if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15246else
15247 gcc_cv_as_ix86_gotoff_in_data=no

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

15320_ACEOF
15321
15322fi
15323
15324 ;;
15325
15326 powerpc*-*-*)
15327 case $target in
11536 *-*-aix*) conftest_s=' .csect .text[PR]
15328 *-*-aix*) conftest_s=' .machine "pwr5"
15329 .csect .text[PR]
11537 mfcr 3,128';;
15330 mfcr 3,128';;
11538 *-*-darwin*) conftest_s=' .text
15331 *-*-darwin*)
15332 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15333echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15334if test "${gcc_cv_as_machine_directive+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336else
15337 gcc_cv_as_machine_directive=no
15338 if test x$gcc_cv_as != x; then
15339 echo ' .machine ppc7400' > conftest.s
15340 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15342 (eval $ac_try) 2>&5
15343 ac_status=$?
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; }
15346 then
15347 gcc_cv_as_machine_directive=yes
15348 else
15349 echo "configure: failed program was" >&5
15350 cat conftest.s >&5
15351 fi
15352 rm -f conftest.o conftest.s
15353 fi
15354fi
15355echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15356echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15357
15358 if test x$gcc_cv_as_machine_directive != xyes; then
15359 echo "*** This target requires an assembler supporting \".machine\"" >&2
15360 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15361 test x$build = x$target && exit 1
15362 fi
15363 conftest_s=' .text
11539 mfcr r3,128';;
15364 mfcr r3,128';;
11540 *) conftest_s=' .text
15365 *) conftest_s=' .machine power4
15366 .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
15367 mfcr 3,128';;
15368 esac
15369
15370 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15371echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15372if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15373 echo $ECHO_N "(cached) $ECHO_C" >&6
15374else

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

15398echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15399if test $gcc_cv_as_powerpc_mfcrf = yes; then
15400
15401cat >>confdefs.h <<\_ACEOF
15402#define HAVE_AS_MFCRF 1
15403_ACEOF
15404
15405fi
15406
15407 case $target in
15408 *-*-aix*) conftest_s=' .machine "pwr5"
15409 .csect .text[PR]
15410 popcntb 3,3';;
15411 *) conftest_s=' .machine power5
15412 .text
15413 popcntb 3,3';;
15414 esac
15415
15416 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15417echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15418if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420else
15421 gcc_cv_as_powerpc_popcntb=no
15422 if test $in_tree_gas = yes; then
15423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15424 then gcc_cv_as_powerpc_popcntb=yes
15425fi
15426 elif test x$gcc_cv_as != x; then
15427 echo "$conftest_s" > conftest.s
15428 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }
15434 then
15435 gcc_cv_as_powerpc_popcntb=yes
15436 else
15437 echo "configure: failed program was" >&5
15438 cat conftest.s >&5
15439 fi
15440 rm -f conftest.o conftest.s
15441 fi
15442fi
15443echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15444echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15445if test $gcc_cv_as_powerpc_popcntb = yes; then
15446
15447cat >>confdefs.h <<\_ACEOF
15448#define HAVE_AS_POPCNTB 1
15449_ACEOF
15450
15451fi
15452
15453 case $target in
15454 *-*-aix*) conftest_s=' .machine "pwr5x"
15455 .csect .text[PR]
15456 frin 1,1';;
15457 *) conftest_s=' .machine power5
15458 .text
15459 frin 1,1';;
15460 esac
15461
15462 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15463echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15464if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466else
15467 gcc_cv_as_powerpc_fprnd=no
15468 if test $in_tree_gas = yes; then
15469 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15470 then gcc_cv_as_powerpc_fprnd=yes
15471fi
15472 elif test x$gcc_cv_as != x; then
15473 echo "$conftest_s" > conftest.s
15474 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15477 ac_status=$?
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }
15480 then
15481 gcc_cv_as_powerpc_fprnd=yes
15482 else
15483 echo "configure: failed program was" >&5
15484 cat conftest.s >&5
15485 fi
15486 rm -f conftest.o conftest.s
15487 fi
15488fi
15489echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15490echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15491if test $gcc_cv_as_powerpc_fprnd = yes; then
15492
15493cat >>confdefs.h <<\_ACEOF
15494#define HAVE_AS_FPRND 1
15495_ACEOF
15496
15497fi
15498
15499 case $target in
15500 *-*-aix*) conftest_s=' .csect .text[PR]
15501LCF..0:
15502 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15503 *-*-darwin*)
15504 conftest_s=' .text
15505LCF0:
15506 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15507 *) conftest_s=' .text
15508.LCF0:
15509 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15510 esac
15511
15512 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15513echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15514if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15516else
15517 gcc_cv_as_powerpc_rel16=no
15518 if test $in_tree_gas = yes; then
15519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15520 then gcc_cv_as_powerpc_rel16=yes
15521fi
15522 elif test x$gcc_cv_as != x; then
15523 echo "$conftest_s" > conftest.s
15524 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }
15530 then
15531 gcc_cv_as_powerpc_rel16=yes
15532 else
15533 echo "configure: failed program was" >&5
15534 cat conftest.s >&5
15535 fi
15536 rm -f conftest.o conftest.s
15537 fi
15538fi
15539echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15540echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15541if test $gcc_cv_as_powerpc_rel16 = yes; then
15542
15543cat >>confdefs.h <<\_ACEOF
15544#define HAVE_AS_REL16 1
15545_ACEOF
15546
15547fi
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
15548 ;;
15549
15550 mips*-*-*)
15551 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15552echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15553if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555else

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

15578echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15579echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15580if test $gcc_cv_as_mips_explicit_relocs = yes; then
15581 if test x$target_cpu_default = x
15582 then target_cpu_default=MASK_EXPLICIT_RELOCS
15583 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15584 fi
15585fi
15586 ;;
15587esac
11618
15588
15589# Mips and HP-UX need the GNU assembler.
15590# Linux on IA64 might be able to use the Intel assembler.
15591
15592case "$target" in
15593 mips*-*-* | *-*-hpux* )
15594 if test x$gas_flag = xyes \
15595 || test x"$host" != x"$build" \
15596 || test ! -x "$gcc_cv_as" \
15597 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15598 :
15599 else
15600 echo "*** This configuration requires the GNU assembler" >&2
15601 exit 1
15602 fi
11619 ;;
11620esac
15603 ;;
15604esac
15605
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*-*-* \
15606# ??? Not all targets support dwarf2 debug_line, even within a version
15607# of gas. Moreover, we need to emit a valid instruction to trigger any
15608# info to the output file. So, as supported targets are added to gas 2.11,
15609# add some instruction here to (also) show we expect this might work.
15610# ??? Once 2.11 is released, probably need to add first known working
15611# version to the per-target configury.
15612case "$target" in
15613 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15614 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11630 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
15615 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-*)
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
15616 insn="nop"
15617 ;;
15618 ia64*-*-* | s390*-*-*)
15619 insn="nop 0"
15620 ;;
15621 mmix-*-*)
15622 insn="swym 0"
15623 ;;

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

15642 echo "$conftest_s" > conftest.s
15643 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }
15649 then
11665 # ??? This fails with non-gnu grep. Maybe use objdump?
11666 if grep debug_line conftest.o > /dev/null 2>&1; then
15650 if test x$gcc_cv_objdump != x \
15651 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15652 | grep debug_line > /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
15653 gcc_cv_as_dwarf2_debug_line=yes
15654 fi
15655 else
15656 echo "configure: failed program was" >&5
15657 cat conftest.s >&5
15658 fi
15659 rm -f conftest.o conftest.s
15660 fi

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

15842 gcc_cv_ld_eh_frame_hdr=yes
15843 fi
15844elif test x$gcc_cv_ld != x; then
15845 # Check if linker supports --eh-frame-hdr option
15846 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15847 gcc_cv_ld_eh_frame_hdr=yes
15848 fi
15849fi
15850
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
15851if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15852
15853cat >>confdefs.h <<\_ACEOF
15854#define HAVE_LD_EH_FRAME_HDR 1
15855_ACEOF
15856
15857fi
15858echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5

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

15877cat >>confdefs.h <<\_ACEOF
15878#define HAVE_LD_PIE 1
15879_ACEOF
15880
15881fi
15882echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15883echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15884
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
15885# --------
15886# UNSORTED
15887# --------
15888
15889echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15890echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15891if test "${gcc_cv_ld_as_needed+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893else
15894 gcc_cv_ld_as_needed=no
11901if test $in_tree_ld = yes ; then
15895if 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
15896 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 \
15897 && test $in_tree_ld_is_elf = yes; then
15898 gcc_cv_ld_as_needed=yes
11904 fi
11905elif test x$gcc_cv_ld != x; then
15899 fi
15900elif 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
15901 # Check if linker supports --as-needed and --no-as-needed options
15902 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15903 gcc_cv_ld_as_needed=yes
11910 fi
11911fi
15904 fi
15905fi
11912if test x"$gcc_cv_ld_static_dynamic" = xyes; then
11913
15906
15907fi
15908echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15909echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15910if test x"$gcc_cv_ld_as_needed" = xyes; then
15911
11914cat >>confdefs.h <<\_ACEOF
15912cat >>confdefs.h <<\_ACEOF
11915#define HAVE_LD_STATIC_DYNAMIC 1
15913#define HAVE_LD_AS_NEEDED 1
11916_ACEOF
11917
11918fi
15914_ACEOF
15915
15916fi
11919echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
11920echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
11921
15917
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
15918case "$target:$tm_file" in
15919 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15920 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15921echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15922if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15924else
11929 gcc_cv_ld_as_needed=no
15925 gcc_cv_ld_no_dot_syms=no
11930 if test $in_tree_ld = yes ; then
15926 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
15927 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; then
15928 gcc_cv_ld_no_dot_syms=yes
11934 fi
15929 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
15930 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15931 cat > conftest1.s <<EOF
15932 .text
15933 bl .foo
15934EOF
15935 cat > conftest2.s <<EOF
15936 .section ".opd","aw"
15937 .align 3
15938 .globl foo
15939 .type foo,@function
15940foo:
15941 .quad .LEfoo,.TOC.@tocbase,0
15942 .text
15943.LEfoo:
15944 blr
15945 .size foo,.-.LEfoo
15946EOF
15947 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15948 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15949 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15950 gcc_cv_ld_no_dot_syms=yes
11939 fi
15951 fi
15952 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
11940 fi
11941
11942fi
15953 fi
15954
15955fi
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
15956echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15957echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15958 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
11946
11947cat >>confdefs.h <<\_ACEOF
15959
15960cat >>confdefs.h <<\_ACEOF
11948#define HAVE_LD_AS_NEEDED 1
15961#define HAVE_LD_NO_DOT_SYMS 1
11949_ACEOF
11950
11951 fi
11952 ;;
11953esac
11954
15962_ACEOF
15963
15964 fi
15965 ;;
15966esac
15967
15968echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15969echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15970if test "${gcc_cv_ld_sysroot+set}" = set; then
15971 echo $ECHO_N "(cached) $ECHO_C" >&6
15972else
15973 gcc_cv_ld_sysroot=no
15974 if test $in_tree_ld = yes ; then
15975 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 ; then
15976 gcc_cv_ld_sysroot=yes
15977 fi
15978 elif test x$gcc_cv_ld != x; then
15979 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15980 gcc_cv_ld_sysroot=yes
15981 fi
15982 fi
15983fi
15984echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15985echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15986if test x"$gcc_cv_ld_sysroot" = xyes; then
15987
15988cat >>confdefs.h <<\_ACEOF
15989#define HAVE_LD_SYSROOT 1
15990_ACEOF
15991
15992fi
15993
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
15994if test x$with_sysroot = x && test x$host = x$target \
15995 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15996
15997cat >>confdefs.h <<_ACEOF
15998#define PREFIX_INCLUDE_DIR "$prefix/include"
15999_ACEOF
16000
16001fi
16002
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
16003# Test for stack protector support in target C library.
16004case "$target" in
16005 *-*-linux*)
16006 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
16007echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
16008if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010else
16011 gcc_cv_libc_provides_ssp=no
16012 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16013 if test "x$with_sysroot" = x; then
16014 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16015 elif test "x$with_sysroot" = xyes; then
16016 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
11975 else
16017 else
11976 enable_languages=all
16018 glibc_header_dir="${with_sysroot}/usr/include"
11977 fi
16019 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; }; }
16020 else
16021 glibc_header_dir=/usr/include
16022 fi
16023 # glibc 2.4 and later provides __stack_chk_fail and
16024 # either __stack_chk_guard, or TLS access to stack guard canary.
16025 if test -f $glibc_header_dir/features.h \
16026 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16027 $glibc_header_dir/features.h > /dev/null; then
16028 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16029 $glibc_header_dir/features.h > /dev/null; then
16030 gcc_cv_libc_provides_ssp=yes
16031 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16032 $glibc_header_dir/features.h > /dev/null \
16033 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16034 $glibc_header_dir/features.h > /dev/null; then
16035 gcc_cv_libc_provides_ssp=yes
11985 fi
16036 fi
16037 fi
11986fi
16038fi
11987enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
16039echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16040echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
16041 *) gcc_cv_libc_provides_ssp=no ;;
16042esac
16043if test x$gcc_cv_libc_provides_ssp = xyes; then
11988
16044
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
16045cat >>confdefs.h <<\_ACEOF
16046#define TARGET_LIBC_PROVIDES_SSP 1
16047_ACEOF
12017
16048
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
16049fi
12058
16050
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
16051# Check if TFmode long double should be used by default or not.
16052# Some glibc targets used DFmode long double, but with glibc 2.4
16053# and later they can use TFmode.
16054case "$target" in
16055 powerpc*-*-*gnu* | \
16056 sparc*-*-linux* | \
16057 s390*-*-linux* | \
16058 alpha*-*-linux*)
12081
16059
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
16060# Check whether --with-long-double-128 or --without-long-double-128 was given.
16061if test "${with_long_double_128+set}" = set; then
16062 withval="$with_long_double_128"
16063 gcc_cv_target_ldbl128="$with_long_double_128"
16064else
16065 gcc_cv_target_ldbl128=no
16066 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16067 if test "x$with_sysroot" = x; then
16068 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16069 elif test "x$with_sysroot" = xyes; then
16070 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16071 else
16072 glibc_header_dir="${with_sysroot}/usr/include"
16073 fi
16074 else
16075 glibc_header_dir=/usr/include
16076 fi
16077 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16078 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16079 && gcc_cv_target_ldbl128=yes
12091
16080
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
16081fi;
16082 ;;
16083esac
16084if test x$gcc_cv_target_ldbl128 = xyes; then
12099
16085
16086cat >>confdefs.h <<\_ACEOF
16087#define TARGET_DEFAULT_LONG_DOUBLE_128 1
16088_ACEOF
12100
16089
16090fi
16091
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
16092# Find out what GC implementation we want, or may, use.
16093
16094# Check whether --with-gc or --without-gc was given.
16095if test "${with_gc+set}" = set; then
16096 withval="$with_gc"
16097 case "$withval" in
12107 simple | page | zone)
16098 page)
12108 GGC=ggc-$withval
12109 ;;
16099 GGC=ggc-$withval
16100 ;;
16101 zone)
16102 GGC=ggc-$withval
16103
16104cat >>confdefs.h <<\_ACEOF
16105#define GGC_ZONE 1
16106_ACEOF
16107
16108 ;;
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
16109 *)
16110 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16111echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16112 { (exit 1); exit 1; }; }
16113 ;;
16114esac
16115else
16116 GGC=ggc-page

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

16147echo "${ECHO_T}$maintainer_mode" >&6
16148
16149if test "$maintainer_mode" = "yes"; then
16150 MAINT=''
16151else
16152 MAINT='#'
16153fi
16154
16155# --------------
16156# Language hooks
16157# --------------
16158
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
16159# Make empty files to contain the specs and options for each language.
16160# Then add #include lines to for a compiler that has specs and/or options.
16161
16162subdirs=
12159lang_opt_files=
12160lang_specs_files=
12161lang_tree_files=
16163lang_opt_files=
16164lang_specs_files=
16165lang_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=
16166# These (without "all_") are set in each config-lang.in.
16167# `language' must be a single word so is spelled singularly.
16168all_languages=
16169all_boot_languages=
16170all_compilers=
16171all_stagestuff=
12181all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
16172all_outputs='Makefile gccbug mklibgcc libada-mk'
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
16173# List of language makefile fragments.
16174all_lang_makefrags=
16175# List of language subdirectory makefiles. Deprecated.
16176all_lang_makefiles=
16177# Files for gengtype
16178all_gtfiles="$target_gtfiles"
16179# Files for gengtype with language
16180all_gtfiles_files_langs=
16181all_gtfiles_files_files=
16182
16183# These are the languages that are set in --enable-languages,
16184# and are available in the GCC tree.
16185all_selected_languages=
16186
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
16187# Add the language fragments.
16188# Languages are added via two mechanisms. Some information must be
16189# recorded in makefile variables, these are defined in config-lang.in.
16190# We accumulate them and plug them into the main Makefile.
16191# The other mechanism is a set of hooks for each of the main targets
16192# like `clean', `install', etc.
16193
16194language_hooks="Make-hooks"
16195
12201for s in $subdirs
16196for lang in ${srcdir}/*/config-lang.in
12202do
16197do
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
16198 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16199
16200 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16201 if test "x$lang_alias" = x
16202 then
16203 echo "$lang doesn't set \$language." 1>&2
16204 exit 1
16205 fi
16206 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16207 subdirs="$subdirs $subdir"
16208 case ",$enable_languages," in
16209 *,$lang_alias,*)
16210 all_selected_languages="$all_selected_languages $lang_alias"
16211 if test -f $srcdir/$subdir/lang-specs.h; then
16212 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16213 fi
16214 ;;
16215 esac
16216
16217 language=
16218 boot_language=
16219 compilers=
16220 stagestuff=
16221 outputs=
16222 gtfiles=
16223 subdir_requires=
16224 . ${srcdir}/$subdir/config-lang.in
16225 if test "x$language" = x
16226 then
16227 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16228 exit 1
16229 fi
16230
16231 ok=:
16232 case ",$enable_languages," in
16233 *,$lang_alias,*) ;;
16234 *)
16235 for i in $subdir_requires; do
16236 test -f "${srcdir}/$i/config-lang.in" && continue
16237 ok=false
16238 break
16239 done
16240 ;;
16241 esac
16242 $ok || continue
16243
16244 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16245 if test -f $srcdir/$subdir/lang.opt; then
16246 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16247 fi
16248 if test -f $srcdir/$subdir/$subdir-tree.def; then
16249 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16250 fi
16251 if test -f ${srcdir}/$subdir/Makefile.in
16252 then all_lang_makefiles="$subdir/Makefile"
16253 fi
16254 all_languages="$all_languages $language"
16255 if test "x$boot_language" = xyes
16256 then
16257 all_boot_languages="$all_boot_languages $language"
16258 fi
16259 all_compilers="$all_compilers $compilers"
16260 all_stagestuff="$all_stagestuff $stagestuff"
16261 all_outputs="$all_outputs $outputs"
16262 all_gtfiles="$all_gtfiles $gtfiles"
16263 for f in $gtfiles
16264 do
16265 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16266 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16267 done
12233done
12234
12235# Pick up gtfiles for c
12236gtfiles=
16268done
16269
16270# Pick up gtfiles for c
16271gtfiles=
12237s="c"
16272subdir="c"
12238. ${srcdir}/c-config-lang.in
12239all_gtfiles="$all_gtfiles $gtfiles"
12240for f in $gtfiles
12241do
16273. ${srcdir}/c-config-lang.in
16274all_gtfiles="$all_gtfiles $gtfiles"
16275for f in $gtfiles
16276do
12242 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16277 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
12243 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12244done
12245
12246check_languages=
16278 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16279done
16280
16281check_languages=
12247for language in $all_languages
16282for language in $all_selected_languages
12248do
16283do
12249 check_languages="$check_languages check-$language"
16284 check_languages="$check_languages check-$language"
12250done
12251
12252# We link each language in with a set of hooks, reached indirectly via
16285done
16286
16287# We link each language in with a set of hooks, reached indirectly via
12253# lang.${target}.
16288# lang.${target}. Only do so for selected languages.
12254
12255rm -f Make-hooks
12256touch Make-hooks
16289
16290rm -f Make-hooks
16291touch Make-hooks
12257target_list="all.build all.cross start.encap rest.encap tags \
12258 install-normal install-common install-man \
16292target_list="all.cross start.encap rest.encap tags \
16293 install-common install-man install-info dvi pdf html \
12259 uninstall info man srcextra srcman srcinfo \
12260 mostlyclean clean distclean maintainer-clean \
12261 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16294 uninstall info man srcextra srcman srcinfo \
16295 mostlyclean clean distclean maintainer-clean \
16296 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16297
12262for t in $target_list
12263do
12264 x=
16298for t in $target_list
16299do
16300 x=
12265 for lang in $all_languages
16301 for lang in $all_selected_languages
12266 do
16302 do
12267 x="$x $lang.$t"
16303 x="$x $lang.$t"
12268 done
12269 echo "lang.$t: $x" >> Make-hooks
12270done
12271
16304 done
16305 echo "lang.$t: $x" >> Make-hooks
16306done
16307
16308# --------
16309# UNSORTED
16310# --------
16311
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
16312# Create .gdbinit.
16313
16314echo "dir ." > .gdbinit
16315echo "dir ${srcdir}" >> .gdbinit
16316if test x$gdb_needs_out_file_path = xyes
16317then
16318 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16319fi

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

16384 slibdir='$(libdir)'
16385fi
16386fi;
16387
16388
16389objdir=`${PWDCMD-pwd}`
16390
16391
12352# Substitute configuration variables
12353
16392
16393# Check whether --with-datarootdir or --without-datarootdir was given.
16394if test "${with_datarootdir+set}" = set; then
16395 withval="$with_datarootdir"
16396 datarootdir="\${prefix}/$with_datarootdir"
16397else
16398 datarootdir='$(prefix)/share'
16399fi;
12354
12355
12356
16400
16401
16402
16403# Check whether --with-docdir or --without-docdir was given.
16404if test "${with_docdir+set}" = set; then
16405 withval="$with_docdir"
16406 docdir="\${prefix}/$with_docdir"
16407else
16408 docdir='$(datarootdir)'
16409fi;
12357
12358
12359
16410
16411
16412
16413# Check whether --with-htmldir or --without-htmldir was given.
16414if test "${with_htmldir+set}" = set; then
16415 withval="$with_htmldir"
16416 htmldir="\${prefix}/$with_htmldir"
16417else
16418 htmldir='$(docdir)'
16419fi;
12360
12361
16420
16421
16422# Substitute configuration variables
12362
12363
12364
12365
12366
12367
12368
12369

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

12415
12416
12417
12418
12419
12420
12421
12422
16423
16424
16425
16426
16427
16428
16429
16430

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

16476
16477
16478
16479
16480
16481
16482
16483
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
16484
16485
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
16486# Echo link setup.
16487if test x${build} = x${host} ; then
16488 if test x${host} = x${target} ; then
16489 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16490 else
16491 echo "Links are now set up to build a cross-compiler" 1>&2
16492 echo " from ${host} to ${target}." 1>&2
16493 fi
16494else
16495 if test x${host} = x${target} ; then
16496 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16497 echo " for ${target}." 1>&2
16498 else
16499 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16500 echo " from ${host} to ${target}." 1>&2
16501 fi
16502fi
16503
16504
16505
16506
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'
16507# Configure the subdirectories
16508# AC_CONFIG_SUBDIRS($subdirs)
16509
16510# Create the Makefile
16511# and configure language subdirectories
16512 ac_config_files="$ac_config_files $all_outputs"
16513
16514

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

17033_ACEOF
17034
17035cat >>$CONFIG_STATUS <<_ACEOF
17036#
17037# INIT-COMMANDS section.
17038#
17039
17040subdirs='$subdirs'
12997symbolic_link='$symbolic_link'
12998
17041
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
17042_ACEOF
17043
17044
17045
17046cat >>$CONFIG_STATUS <<\_ACEOF
17047for ac_config_target in $ac_config_targets
17048do
17049 case "$ac_config_target" in

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

17143s,@host@,$host,;t t
17144s,@host_cpu@,$host_cpu,;t t
17145s,@host_vendor@,$host_vendor,;t t
17146s,@host_os@,$host_os,;t t
17147s,@target@,$target,;t t
17148s,@target_cpu@,$target_cpu,;t t
17149s,@target_vendor@,$target_vendor,;t t
17150s,@target_os@,$target_os,;t t
17151s,@target_noncanonical@,$target_noncanonical,;t t
17152s,@build_libsubdir@,$build_libsubdir,;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
17153s,@build_subdir@,$build_subdir,;t t
17154s,@host_subdir@,$host_subdir,;t t
17155s,@target_subdir@,$target_subdir,;t t
17156s,@GENINSRC@,$GENINSRC,;t t
17157s,@CC@,$CC,;t t
17158s,@CFLAGS@,$CFLAGS,;t t
17159s,@LDFLAGS@,$LDFLAGS,;t t
17160s,@CPPFLAGS@,$CPPFLAGS,;t t
17161s,@ac_ct_CC@,$ac_ct_CC,;t t
17162s,@EXEEXT@,$EXEEXT,;t t
17163s,@OBJEXT@,$OBJEXT,;t t
17164s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17165s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17166s,@CPP@,$CPP,;t t
13123s,@GNATBIND@,$GNATBIND,;t t
13124s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
17167s,@EGREP@,$EGREP,;t t
13125s,@strict1_warn@,$strict1_warn,;t t
17168s,@strict1_warn@,$strict1_warn,;t t
17169s,@cxx_compat_warn@,$cxx_compat_warn,;t t
13126s,@warn_cflags@,$warn_cflags,;t t
13127s,@WERROR@,$WERROR,;t t
13128s,@nocommon_flag@,$nocommon_flag,;t t
17170s,@warn_cflags@,$warn_cflags,;t t
17171s,@WERROR@,$WERROR,;t t
17172s,@nocommon_flag@,$nocommon_flag,;t t
13129s,@EGREP@,$EGREP,;t t
17173s,@TREEBROWSER@,$TREEBROWSER,;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
17174s,@valgrind_path@,$valgrind_path,;t t
17175s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17176s,@valgrind_command@,$valgrind_command,;t t
17177s,@coverage_flags@,$coverage_flags,;t t
17178s,@enable_multilib@,$enable_multilib,;t t
17179s,@enable_decimal_float@,$enable_decimal_float,;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
17180s,@enable_shared@,$enable_shared,;t t
17181s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17182s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17183s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17184s,@onestep@,$onestep,;t t
17185s,@datarootdir@,$datarootdir,;t t
17186s,@docdir@,$docdir,;t t
17187s,@htmldir@,$htmldir,;t t
13140s,@SET_MAKE@,$SET_MAKE,;t t
13141s,@AWK@,$AWK,;t t
17188s,@SET_MAKE@,$SET_MAKE,;t t
17189s,@AWK@,$AWK,;t t
13142s,@LN@,$LN,;t t
13143s,@LN_S@,$LN_S,;t t
17190s,@LN_S@,$LN_S,;t t
17191s,@LN@,$LN,;t t
13144s,@RANLIB@,$RANLIB,;t t
13145s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17192s,@RANLIB@,$RANLIB,;t t
17193s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17194s,@ranlib_flags@,$ranlib_flags,;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
17195s,@INSTALL@,$INSTALL,;t t
17196s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17197s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17198s,@make_compare_target@,$make_compare_target,;t t
17199s,@have_mktemp_command@,$have_mktemp_command,;t t
17200s,@MAKEINFO@,$MAKEINFO,;t t
17201s,@BUILD_INFO@,$BUILD_INFO,;t t
17202s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17203s,@FLEX@,$FLEX,;t t
17204s,@BISON@,$BISON,;t t
17205s,@NM@,$NM,;t t
17206s,@AR@,$AR,;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
17207s,@stage1_cflags@,$stage1_cflags,;t t
17208s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17209s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17210s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17211s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17212s,@LIBICONV@,$LIBICONV,;t t
17213s,@LTLIBICONV@,$LTLIBICONV,;t t
13162s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13163s,@manext@,$manext,;t t
13164s,@objext@,$objext,;t t
17214s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17215s,@manext@,$manext,;t t
17216s,@objext@,$objext,;t t
17217s,@gthread_flags@,$gthread_flags,;t t
13165s,@extra_modes_file@,$extra_modes_file,;t t
17218s,@extra_modes_file@,$extra_modes_file,;t t
13166s,@FORBUILD@,$FORBUILD,;t t
13167s,@PACKAGE@,$PACKAGE,;t t
13168s,@VERSION@,$VERSION,;t t
17219s,@extra_opt_files@,$extra_opt_files,;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
17220s,@USE_NLS@,$USE_NLS,;t t
17221s,@LIBINTL@,$LIBINTL,;t t
17222s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17223s,@INCINTL@,$INCINTL,;t t
17224s,@XGETTEXT@,$XGETTEXT,;t t
17225s,@GMSGFMT@,$GMSGFMT,;t t
17226s,@POSUB@,$POSUB,;t t
17227s,@CATALOGS@,$CATALOGS,;t t
17228s,@DATADIRNAME@,$DATADIRNAME,;t t
17229s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17230s,@GENCAT@,$GENCAT,;t t
17231s,@CATOBJEXT@,$CATOBJEXT,;t t
17232s,@host_cc_for_libada@,$host_cc_for_libada,;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
17233s,@CROSS@,$CROSS,;t t
17234s,@ALL@,$ALL,;t t
17235s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17236s,@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
17237s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17238s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17239s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17240s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17241s,@collect2@,$collect2,;t t
17242s,@gcc_cv_as@,$gcc_cv_as,;t t
17243s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17244s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17245s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17246s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17247s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17248s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
13187s,@libgcc_visibility@,$libgcc_visibility,;t t
17249s,@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
17250s,@GGC@,$GGC,;t t
17251s,@zlibdir@,$zlibdir,;t t
17252s,@zlibinc@,$zlibinc,;t t
17253s,@MAINT@,$MAINT,;t t
17254s,@gcc_tooldir@,$gcc_tooldir,;t t
17255s,@dollar@,$dollar,;t t
17256s,@slibdir@,$slibdir,;t t
17257s,@objdir@,$objdir,;t t
17258s,@subdirs@,$subdirs,;t t
17259s,@srcdir@,$srcdir,;t t
17260s,@all_boot_languages@,$all_boot_languages,;t t
17261s,@all_compilers@,$all_compilers,;t t
17262s,@all_gtfiles@,$all_gtfiles,;t t
17263s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17264s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17265s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17266s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17267s,@all_languages@,$all_languages,;t t
17268s,@all_selected_languages@,$all_selected_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
17269s,@all_stagestuff@,$all_stagestuff,;t t
17270s,@build_exeext@,$build_exeext,;t t
17271s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17272s,@build_xm_file_list@,$build_xm_file_list,;t t
17273s,@build_xm_include_list@,$build_xm_include_list,;t t
17274s,@build_xm_defines@,$build_xm_defines,;t t
17275s,@check_languages@,$check_languages,;t t
17276s,@cc_set_by_configure@,$cc_set_by_configure,;t t

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

17282s,@extra_headers_list@,$extra_headers_list,;t t
17283s,@extra_objs@,$extra_objs,;t t
17284s,@extra_parts@,$extra_parts,;t t
17285s,@extra_passes@,$extra_passes,;t t
17286s,@extra_programs@,$extra_programs,;t t
17287s,@float_h_file@,$float_h_file,;t t
17288s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17289s,@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
17290s,@host_exeext@,$host_exeext,;t t
17291s,@host_xm_file_list@,$host_xm_file_list,;t t
17292s,@host_xm_include_list@,$host_xm_include_list,;t t
17293s,@host_xm_defines@,$host_xm_defines,;t t
17294s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17295s,@install@,$install,;t t
17296s,@lang_opt_files@,$lang_opt_files,;t t
17297s,@lang_specs_files@,$lang_specs_files,;t t
17298s,@lang_tree_files@,$lang_tree_files,;t t
17299s,@local_prefix@,$local_prefix,;t t
17300s,@md_file@,$md_file,;t t
17301s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17302s,@out_file@,$out_file,;t t
17303s,@out_object_file@,$out_object_file,;t t
17304s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17305s,@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
17306s,@thread_file@,$thread_file,;t t
17307s,@tm_file_list@,$tm_file_list,;t t
17308s,@tm_include_list@,$tm_include_list,;t t
17309s,@tm_defines@,$tm_defines,;t t
17310s,@tm_p_file_list@,$tm_p_file_list,;t t
17311s,@tm_p_include_list@,$tm_p_include_list,;t t
17312s,@xm_file_list@,$xm_file_list,;t t
17313s,@xm_include_list@,$xm_include_list,;t t
17314s,@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
17315s,@c_target_objs@,$c_target_objs,;t t
17316s,@cxx_target_objs@,$cxx_target_objs,;t t
17317s,@target_cpu_default@,$target_cpu_default,;t t
13262s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
17318s,@GMPLIBS@,$GMPLIBS,;t t
17319s,@GMPINC@,$GMPINC,;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.
17320s,@LIBOBJS@,$LIBOBJS,;t t
17321s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17322/@language_hooks@/r $language_hooks
17323s,@language_hooks@,,;t t
17324CEOF
17325
17326_ACEOF
17327

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

17892echo "$as_me: executing $ac_dest commands" >&6;}
17893 case $ac_dest in
17894 default )
17895case ${CONFIG_HEADERS} in
17896 *auto-host.h:config.in*)
17897 echo > cstamp-h ;;
17898esac
17899# Make sure all the subdirs exist.
13843for d in $subdirs
17900for d in $subdirs doc build
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.
17901do
17902 test -d $d || mkdir $d
17903done
17904# If the host supports symlinks, point stage[1234] at ../stage[1234] so
17905# bootstrapping and the installation procedure can still use
17906# CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17907# FLAGS_TO_PASS has been modified to solve the problem there.
17908# This is virtually a duplicate of what happens in configure.lang; we do
17909# 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
17910case "$LN_S" in
17911 *-s*)
17912 for d in ${subdirs} ; 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
17913 STARTDIR=`${PWDCMD-pwd}`
17914 cd $d
17915 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17916 do
17917 rm -f $t
13860 $symbolic_link ../$t $t 2>/dev/null
17918 $LN_S ../$t $t 2>/dev/null
13861 done
13862 cd $STARTDIR
17919 done
17920 cd $STARTDIR
13863 done
13864else true ; fi
17921 done
17922 ;;
17923esac
13865 ;;
13866 esac
13867done
13868_ACEOF
13869
13870cat >>$CONFIG_STATUS <<\_ACEOF
13871
13872{ (exit 0); exit 0; }

--- 26 unchanged lines hidden ---
17924 ;;
17925 esac
17926done
17927_ACEOF
17928
17929cat >>$CONFIG_STATUS <<\_ACEOF
17930
17931{ (exit 0); exit 0; }

--- 26 unchanged lines hidden ---