X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=configure;h=6e989c29a5256cf108c0ff8f0b70462dabcd92d4;hp=294b47c9aae9c0561e3fe34e486f516f399ac112;hb=c5823964b4cf980ab6be8037a12e2bd294d1cec2;hpb=4ff792a41d966074dbcf17d597a58529a87af497 diff --git a/configure b/configure index 294b47c9aae..6e989c29a52 100755 --- a/configure +++ b/configure @@ -272,7 +272,7 @@ PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="move-if-change" -ac_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 build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CXX CFLAGS_FOR_BUILD CXXFLAGS CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir htmldir LIBOBJS LTLIBOBJS' +ac_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 build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS' ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag' # Initialize some variables set by options. @@ -729,6 +729,118 @@ ac_env_CPPFLAGS_set=${CPPFLAGS+set} ac_env_CPPFLAGS_value=$CPPFLAGS ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} ac_cv_env_CPPFLAGS_value=$CPPFLAGS +ac_env_CXX_set=${CXX+set} +ac_env_CXX_value=$CXX +ac_cv_env_CXX_set=${CXX+set} +ac_cv_env_CXX_value=$CXX +ac_env_CXXFLAGS_set=${CXXFLAGS+set} +ac_env_CXXFLAGS_value=$CXXFLAGS +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} +ac_cv_env_CXXFLAGS_value=$CXXFLAGS +ac_env_AR_set=${AR+set} +ac_env_AR_value=$AR +ac_cv_env_AR_set=${AR+set} +ac_cv_env_AR_value=$AR +ac_env_AS_set=${AS+set} +ac_env_AS_value=$AS +ac_cv_env_AS_set=${AS+set} +ac_cv_env_AS_value=$AS +ac_env_DLLTOOL_set=${DLLTOOL+set} +ac_env_DLLTOOL_value=$DLLTOOL +ac_cv_env_DLLTOOL_set=${DLLTOOL+set} +ac_cv_env_DLLTOOL_value=$DLLTOOL +ac_env_LD_set=${LD+set} +ac_env_LD_value=$LD +ac_cv_env_LD_set=${LD+set} +ac_cv_env_LD_value=$LD +ac_env_LIPO_set=${LIPO+set} +ac_env_LIPO_value=$LIPO +ac_cv_env_LIPO_set=${LIPO+set} +ac_cv_env_LIPO_value=$LIPO +ac_env_NM_set=${NM+set} +ac_env_NM_value=$NM +ac_cv_env_NM_set=${NM+set} +ac_cv_env_NM_value=$NM +ac_env_RANLIB_set=${RANLIB+set} +ac_env_RANLIB_value=$RANLIB +ac_cv_env_RANLIB_set=${RANLIB+set} +ac_cv_env_RANLIB_value=$RANLIB +ac_env_STRIP_set=${STRIP+set} +ac_env_STRIP_value=$STRIP +ac_cv_env_STRIP_set=${STRIP+set} +ac_cv_env_STRIP_value=$STRIP +ac_env_WINDRES_set=${WINDRES+set} +ac_env_WINDRES_value=$WINDRES +ac_cv_env_WINDRES_set=${WINDRES+set} +ac_cv_env_WINDRES_value=$WINDRES +ac_env_OBJCOPY_set=${OBJCOPY+set} +ac_env_OBJCOPY_value=$OBJCOPY +ac_cv_env_OBJCOPY_set=${OBJCOPY+set} +ac_cv_env_OBJCOPY_value=$OBJCOPY +ac_env_OBJDUMP_set=${OBJDUMP+set} +ac_env_OBJDUMP_value=$OBJDUMP +ac_cv_env_OBJDUMP_set=${OBJDUMP+set} +ac_cv_env_OBJDUMP_value=$OBJDUMP +ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set} +ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET +ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set} +ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET +ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set} +ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET +ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set} +ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET +ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set} +ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET +ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set} +ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET +ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set} +ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET +ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set} +ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET +ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set} +ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET +ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set} +ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET +ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set} +ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET +ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set} +ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET +ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set} +ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET +ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set} +ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET +ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set} +ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET +ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set} +ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET +ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set} +ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET +ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set} +ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET +ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set} +ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET +ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set} +ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET +ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set} +ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET +ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set} +ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET +ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set} +ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET +ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set} +ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET +ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set} +ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET +ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set} +ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET +ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set} +ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET +ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set} +ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET +ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set} +ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET +ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set} +ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET # # Report the --help message. @@ -849,6 +961,7 @@ Optional Packages: use given path to find target tools during the build --with-datarootdir Use datarootdir as the data root directory. --with-docdir Install documentation in this directory. + --with-pdfdir Install pdf in this directory. --with-htmldir Install html in this directory. Some influential environment variables: @@ -858,6 +971,49 @@ Some influential environment variables: nonstandard directory CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory + CXX C++ compiler command + CXXFLAGS C++ compiler flags + AR AR for the host + AS AS for the host + DLLTOOL DLLTOOL for the host + LD LD for the host + LIPO LIPO for the host + NM NM for the host + RANLIB RANLIB for the host + STRIP STRIP for the host + WINDRES WINDRES for the host + OBJCOPY OBJCOPY for the host + OBJDUMP OBJDUMP for the host + CC_FOR_TARGET + CC for the target + CXX_FOR_TARGET + CXX for the target + GCC_FOR_TARGET + GCC for the target + GCJ_FOR_TARGET + GCJ for the target + GFORTRAN_FOR_TARGET + GFORTRAN for the target + AR_FOR_TARGET + AR for the target + AS_FOR_TARGET + AS for the target + DLLTOOL_FOR_TARGET + DLLTOOL for the target + LD_FOR_TARGET + LD for the target + LIPO_FOR_TARGET + LIPO for the target + NM_FOR_TARGET + NM for the target + OBJDUMP_FOR_TARGET + OBJDUMP for the target + RANLIB_FOR_TARGET + RANLIB for the target + STRIP_FOR_TARGET + STRIP for the target + WINDRES_FOR_TARGET + WINDRES for the target Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. @@ -1605,14 +1761,25 @@ progname=$0 # if PWD already has a value, it is probably wrong. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi -# Export original configure arguments for use by sub-configures. These -# will be expanded by make, so quote '$'. -tmp="$progname $@" -sed -e 's,\$,$$,g' < conftestsed.out -$tmp -EOF_SED -TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out` -rm -f conftestsed.out +# Export original configure arguments for use by sub-configures. +# Quote arguments with shell meta charatcers. +TOPLEVEL_CONFIGURE_ARGUMENTS= +set -- "$progname" "$@" +for ac_arg +do + case "$ac_arg" in + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` + # if the argument is of the form -foo=baz, quote the baz part only + ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; + *) ;; + esac + # Add the quoted argument to the list. + TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" +done +# Remove the initial space we just introduced and, as these will be +# expanded by make, quote '$'. +TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` moveifchange=${srcdir}/move-if-change @@ -1678,8 +1845,8 @@ libgcj="target-libffi \ # these libraries are built for the target environment, and are built after # the host libraries and the host tools (which may be a cross compiler) # -target_libraries="target-libiberty \ - target-libgcc \ +target_libraries="target-libgcc \ + target-libiberty \ target-libgloss \ target-newlib \ target-libstdc++-v3 \ @@ -2585,26 +2752,12 @@ if test -z "${CC}" && test "${build}" = "${host}" ; then fi if test "${build}" != "${host}" ; then - # If we are doing a Canadian Cross, in which the host and build systems - # are not the same, we set reasonable default values for the tools. - - CC=${CC-${host_noncanonical}-gcc} - CFLAGS=${CFLAGS-"-g -O2"} - CXX=${CXX-${host_noncanonical}-c++} - CXXFLAGS=${CXXFLAGS-"-g -O2"} CC_FOR_BUILD=${CC_FOR_BUILD-gcc} - else - # Set reasonable default values for some tools even if not Canadian. - # Of course, these are different reasonable default values, originally - # specified directly in the Makefile. - # We don't export, so that autoconf can do its job. - # Note that all these settings are above the fragment inclusion point - # in Makefile.in, so can still be overridden by fragments. - # This is all going to change when we autoconfiscate... - CC_FOR_BUILD="\$(CC)" - ac_ext=c +fi + +ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' @@ -3534,44 +3687,23 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - - # We must set the default linker to the linker used by gcc for the correct - # operation of libtool. If LD is not defined and we are using gcc, try to - # set the LD default to the ld used by gcc. - if test -z "$LD"; then - if test "$GCC" = yes; then - case $build in - *-*-mingw*) - gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; - *) - gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; - esac - case $gcc_prog_ld in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - LD="$gcc_prog_ld" ;; - esac - fi - fi - - CXX=${CXX-"c++"} - CFLAGS=${CFLAGS-"-g"} - CXXFLAGS=${CXXFLAGS-"-g -O2"} -fi - - - - +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. -set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_GNATBIND+set}" = set; then +if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test -n "$GNATBIND"; then - ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -3580,7 +3712,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -3589,27 +3721,31 @@ done fi fi -GNATBIND=$ac_cv_prog_GNATBIND -if test -n "$GNATBIND"; then - echo "$as_me:$LINENO: result: $GNATBIND" >&5 -echo "${ECHO_T}$GNATBIND" >&6 +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + echo "$as_me:$LINENO: result: $CXX" >&5 +echo "${ECHO_T}$CXX" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi + test -n "$CXX" && break + done fi -if test -z "$ac_cv_prog_GNATBIND"; then - ac_ct_GNATBIND=$GNATBIND - # Extract the first word of "gnatbind", so it can be a program name with args. -set dummy gnatbind; ac_word=$2 +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test -n "$ac_ct_GNATBIND"; then - ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -3618,138 +3754,505 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_GNATBIND="gnatbind" + ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done - test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no" fi fi -ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND -if test -n "$ac_ct_GNATBIND"; then - echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5 -echo "${ECHO_T}$ac_ct_GNATBIND" >&6 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 +echo "${ECHO_T}$ac_ct_CXX" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi - GNATBIND=$ac_ct_GNATBIND -else - GNATBIND="$ac_cv_prog_GNATBIND" + test -n "$ac_ct_CXX" && break +done +test -n "$ac_ct_CXX" || ac_ct_CXX="g++" + + CXX=$ac_ct_CXX fi -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. -set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_GNATMAKE+set}" = set; then + +# Provide some information about the compiler. +echo "$as_me:$LINENO:" \ + "checking for C++ compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test -n "$GNATMAKE"; then - ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ -fi -fi -GNATMAKE=$ac_cv_prog_GNATMAKE -if test -n "$GNATMAKE"; then - echo "$as_me:$LINENO: result: $GNATMAKE" >&5 -echo "${ECHO_T}$GNATMAKE" >&6 +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +ac_compiler_gnu=no fi -if test -z "$ac_cv_prog_GNATMAKE"; then - ac_ct_GNATMAKE=$GNATMAKE - # Extract the first word of "gnatmake", so it can be a program name with args. -set dummy gnatmake; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 +GXX=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +CXXFLAGS="-g" +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test -n "$ac_ct_GNATMAKE"; then - ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_GNATMAKE="gnatmake" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ - test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no" -fi -fi -ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE -if test -n "$ac_ct_GNATMAKE"; then - echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5 -echo "${ECHO_T}$ac_ct_GNATMAKE" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi +int +main () +{ - GNATMAKE=$ac_ct_GNATMAKE + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cxx_g=yes else - GNATMAKE="$ac_cv_prog_GNATMAKE" -fi + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 -echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5 -echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6 -if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.adb <&1 || echo failure` -if test x"$errors" = x && test -f conftest.$ac_objext; then - acx_cv_cc_gcc_supports_ada=yes +ac_cv_prog_cxx_g=no fi -rm -f conftest.* +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5 -echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6 - -if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then - have_gnat=yes +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +for ac_declaration in \ + '' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +#include +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +continue +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +rm -f conftest* +if test -n "$ac_declaration"; then + echo '#ifdef __cplusplus' >>confdefs.h + echo $ac_declaration >>confdefs.h + echo '#endif' >>confdefs.h +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# We must set the default linker to the linker used by gcc for the correct +# operation of libtool. If LD is not defined and we are using gcc, try to +# set the LD default to the ld used by gcc. +if test -z "$LD"; then + if test "$GCC" = yes; then + case $build in + *-*-mingw*) + gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; + *) + gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; + esac + case $gcc_prog_ld in + # Accept absolute paths. + [\\/]* | [A-Za-z]:[\\/]*) + LD="$gcc_prog_ld" ;; + esac + fi +fi + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. +set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_GNATBIND+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$GNATBIND"; then + ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +GNATBIND=$ac_cv_prog_GNATBIND +if test -n "$GNATBIND"; then + echo "$as_me:$LINENO: result: $GNATBIND" >&5 +echo "${ECHO_T}$GNATBIND" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_GNATBIND"; then + ac_ct_GNATBIND=$GNATBIND + # Extract the first word of "gnatbind", so it can be a program name with args. +set dummy gnatbind; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_GNATBIND"; then + ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_GNATBIND="gnatbind" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no" +fi +fi +ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND +if test -n "$ac_ct_GNATBIND"; then + echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5 +echo "${ECHO_T}$ac_ct_GNATBIND" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + GNATBIND=$ac_ct_GNATBIND +else + GNATBIND="$ac_cv_prog_GNATBIND" +fi + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. +set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_GNATMAKE+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$GNATMAKE"; then + ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +GNATMAKE=$ac_cv_prog_GNATMAKE +if test -n "$GNATMAKE"; then + echo "$as_me:$LINENO: result: $GNATMAKE" >&5 +echo "${ECHO_T}$GNATMAKE" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_GNATMAKE"; then + ac_ct_GNATMAKE=$GNATMAKE + # Extract the first word of "gnatmake", so it can be a program name with args. +set dummy gnatmake; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_GNATMAKE"; then + ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_GNATMAKE="gnatmake" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no" +fi +fi +ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE +if test -n "$ac_ct_GNATMAKE"; then + echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5 +echo "${ECHO_T}$ac_ct_GNATMAKE" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + GNATMAKE=$ac_ct_GNATMAKE +else + GNATMAKE="$ac_cv_prog_GNATMAKE" +fi + +echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5 +echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6 +if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.adb <&1 || echo failure` +if test x"$errors" = x && test -f conftest.$ac_objext; then + acx_cv_cc_gcc_supports_ada=yes +fi +rm -f conftest.* +fi +echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5 +echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6 + +if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then + have_gnat=yes else have_gnat=no fi @@ -3974,9 +4477,11 @@ main () #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0) choke me #endif - mpfr_t n; mpfr_init(n); - mpfr_t x; mpfr_init(x); + mpfr_t n; + mpfr_t x; int t; + mpfr_init (n); + mpfr_init (x); mpfr_atan2 (n, n, x, GMP_RNDN); mpfr_erfc (n, x, GMP_RNDN); mpfr_subnormalize (x, t, GMP_RNDN); @@ -4319,7 +4824,7 @@ Supported languages are: ${potential_languages}" >&2;} fi - ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ ` + ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` fi # Handle --disable- generically. @@ -4485,6 +4990,54 @@ case "$host" in enable_gdbtk=no ;; esac +# To find our prefix, in gcc_cv_tool_prefix. + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + + + +if test "x$exec_prefix" = xNONE; then + if test "x$prefix" = xNONE; then + gcc_cv_tool_prefix=$ac_default_prefix + else + gcc_cv_tool_prefix=$prefix + fi +else + gcc_cv_tool_prefix=$exec_prefix +fi + +# If there is no compiler in the tree, use the PATH only. In any +# case, if there is no compiler in the tree nobody should use +# AS_FOR_TARGET and LD_FOR_TARGET. +if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then + gcc_version=`cat $srcdir/gcc/BASE-VER` + gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" + gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" + gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" + gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" + gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" + gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" +else + gcc_cv_tool_dirs= +fi + +if test x$build = x$target && test -n "$md_exec_prefix"; then + gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" +fi + + + copy_dirs= @@ -4507,10 +5060,7 @@ if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then exit 1 fi if test x"${with_headers}" != xyes ; then - case "${exec_prefixoption}" in - "") x=${prefix} ;; - *) x=${exec_prefix} ;; - esac + x=${gcc_cv_tool_prefix} copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" fi fi @@ -4526,10 +5076,7 @@ if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then if test x"${with_libs}" != xyes ; then # Copy the libraries in reverse order, so that files in the first named # library override files in subsequent libraries. - case "${exec_prefixoption}" in - "") x=${prefix} ;; - *) x=${exec_prefix} ;; - esac + x=${gcc_cv_tool_prefix} for l in ${with_libs}; do copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" done @@ -5679,7 +6226,55 @@ test -n "$host_alias" && ncn_tool_prefix=$host_alias- ncn_target_tool_prefix= test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- - for ncn_progname in ar; do + + +if test -n "$AR"; then + ac_cv_prog_AR=$AR +elif test -n "$ac_cv_prog_AR"; then + AR=$ac_cv_prog_AR +fi + +if test -n "$ac_cv_prog_AR"; then + for ncn_progname in ar; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + echo "$as_me:$LINENO: result: $AR" >&5 +echo "${ECHO_T}$AR" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +for ncn_progname in ar; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -5735,7 +6330,65 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AR="${ncn_progname}" + ac_cv_prog_AR="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + echo "$as_me:$LINENO: result: $AR" >&5 +echo "${ECHO_T}$AR" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + fi + test -n "$ac_cv_prog_AR" && break +done + +if test -z "$ac_cv_prog_AR" ; then + set dummy ar + if test $build = $host ; then + AR="$2" + else + AR="${ncn_tool_prefix}$2" + fi +fi + + + +if test -n "$AS"; then + ac_cv_prog_AS=$AS +elif test -n "$ac_cv_prog_AS"; then + AS=$ac_cv_prog_AS +fi + +if test -n "$ac_cv_prog_AS"; then + for ncn_progname in as; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AS+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AS="${ncn_progname}" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -5744,29 +6397,19 @@ done fi fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6 +AS=$ac_cv_prog_AS +if test -n "$AS"; then + echo "$as_me:$LINENO: result: $AS" >&5 +echo "${ECHO_T}$AS" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi - fi - test -n "$ac_cv_prog_AR" && break -done - -if test -z "$ac_cv_prog_AR" ; then - set dummy ar - if test $build = $host ; then - AR="$2" - else - AR="${ncn_tool_prefix}$2" - fi + done fi - for ncn_progname in as; do +for ncn_progname in as; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -5853,7 +6496,55 @@ if test -z "$ac_cv_prog_AS" ; then fi fi - for ncn_progname in dlltool; do + + +if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL=$DLLTOOL +elif test -n "$ac_cv_prog_DLLTOOL"; then + DLLTOOL=$ac_cv_prog_DLLTOOL +fi + +if test -n "$ac_cv_prog_DLLTOOL"; then + for ncn_progname in dlltool; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_DLLTOOL+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + echo "$as_me:$LINENO: result: $DLLTOOL" >&5 +echo "${ECHO_T}$DLLTOOL" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +for ncn_progname in dlltool; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -5940,7 +6631,55 @@ if test -z "$ac_cv_prog_DLLTOOL" ; then fi fi - for ncn_progname in ld; do + + +if test -n "$LD"; then + ac_cv_prog_LD=$LD +elif test -n "$ac_cv_prog_LD"; then + LD=$ac_cv_prog_LD +fi + +if test -n "$ac_cv_prog_LD"; then + for ncn_progname in ld; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_LD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$LD"; then + ac_cv_prog_LD="$LD" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LD="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +LD=$ac_cv_prog_LD +if test -n "$LD"; then + echo "$as_me:$LINENO: result: $LD" >&5 +echo "${ECHO_T}$LD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +for ncn_progname in ld; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -6027,7 +6766,55 @@ if test -z "$ac_cv_prog_LD" ; then fi fi - for ncn_progname in lipo; do + + +if test -n "$LIPO"; then + ac_cv_prog_LIPO=$LIPO +elif test -n "$ac_cv_prog_LIPO"; then + LIPO=$ac_cv_prog_LIPO +fi + +if test -n "$ac_cv_prog_LIPO"; then + for ncn_progname in lipo; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_LIPO+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + echo "$as_me:$LINENO: result: $LIPO" >&5 +echo "${ECHO_T}$LIPO" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +for ncn_progname in lipo; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -6114,7 +6901,55 @@ if test -z "$ac_cv_prog_LIPO" ; then fi fi - for ncn_progname in nm; do + + +if test -n "$NM"; then + ac_cv_prog_NM=$NM +elif test -n "$ac_cv_prog_NM"; then + NM=$ac_cv_prog_NM +fi + +if test -n "$ac_cv_prog_NM"; then + for ncn_progname in nm; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_NM+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$NM"; then + ac_cv_prog_NM="$NM" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NM="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +NM=$ac_cv_prog_NM +if test -n "$NM"; then + echo "$as_me:$LINENO: result: $NM" >&5 +echo "${ECHO_T}$NM" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +for ncn_progname in nm; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -6142,26 +6977,84 @@ done fi fi -NM=$ac_cv_prog_NM -if test -n "$NM"; then - echo "$as_me:$LINENO: result: $NM" >&5 -echo "${ECHO_T}$NM" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 +NM=$ac_cv_prog_NM +if test -n "$NM"; then + echo "$as_me:$LINENO: result: $NM" >&5 +echo "${ECHO_T}$NM" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + fi + if test -z "$ac_cv_prog_NM" && test $build = $host ; then + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_NM+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$NM"; then + ac_cv_prog_NM="$NM" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NM="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +NM=$ac_cv_prog_NM +if test -n "$NM"; then + echo "$as_me:$LINENO: result: $NM" >&5 +echo "${ECHO_T}$NM" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + fi + test -n "$ac_cv_prog_NM" && break +done + +if test -z "$ac_cv_prog_NM" ; then + set dummy nm + if test $build = $host ; then + NM="$2" + else + NM="${ncn_tool_prefix}$2" + fi +fi + + + +if test -n "$RANLIB"; then + ac_cv_prog_RANLIB=$RANLIB +elif test -n "$ac_cv_prog_RANLIB"; then + RANLIB=$ac_cv_prog_RANLIB fi - fi - if test -z "$ac_cv_prog_NM" && test $build = $host ; then +if test -n "$ac_cv_prog_RANLIB"; then + for ncn_progname in ranlib; do # Extract the first word of "${ncn_progname}", so it can be a program name with args. set dummy ${ncn_progname}; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_NM+set}" = set; then +if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test -n "$NM"; then - ac_cv_prog_NM="$NM" # Let the user override the test. + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -6170,7 +7063,7 @@ do test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_NM="${ncn_progname}" + ac_cv_prog_RANLIB="${ncn_progname}" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -6179,29 +7072,19 @@ done fi fi -NM=$ac_cv_prog_NM -if test -n "$NM"; then - echo "$as_me:$LINENO: result: $NM" >&5 -echo "${ECHO_T}$NM" >&6 +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + echo "$as_me:$LINENO: result: $RANLIB" >&5 +echo "${ECHO_T}$RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi - fi - test -n "$ac_cv_prog_NM" && break -done - -if test -z "$ac_cv_prog_NM" ; then - set dummy nm - if test $build = $host ; then - NM="$2" - else - NM="${ncn_tool_prefix}$2" - fi + done fi - for ncn_progname in ranlib; do +for ncn_progname in ranlib; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -6283,7 +7166,55 @@ if test -z "$ac_cv_prog_RANLIB" ; then RANLIB=":" fi - for ncn_progname in strip; do + + +if test -n "$STRIP"; then + ac_cv_prog_STRIP=$STRIP +elif test -n "$ac_cv_prog_STRIP"; then + STRIP=$ac_cv_prog_STRIP +fi + +if test -n "$ac_cv_prog_STRIP"; then + for ncn_progname in strip; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + echo "$as_me:$LINENO: result: $STRIP" >&5 +echo "${ECHO_T}$STRIP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +for ncn_progname in strip; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -6365,7 +7296,55 @@ if test -z "$ac_cv_prog_STRIP" ; then STRIP=":" fi - for ncn_progname in windres; do + + +if test -n "$WINDRES"; then + ac_cv_prog_WINDRES=$WINDRES +elif test -n "$ac_cv_prog_WINDRES"; then + WINDRES=$ac_cv_prog_WINDRES +fi + +if test -n "$ac_cv_prog_WINDRES"; then + for ncn_progname in windres; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_WINDRES+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$WINDRES"; then + ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_WINDRES="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +WINDRES=$ac_cv_prog_WINDRES +if test -n "$WINDRES"; then + echo "$as_me:$LINENO: result: $WINDRES" >&5 +echo "${ECHO_T}$WINDRES" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +for ncn_progname in windres; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -6452,7 +7431,55 @@ if test -z "$ac_cv_prog_WINDRES" ; then fi fi - for ncn_progname in objcopy; do + + +if test -n "$OBJCOPY"; then + ac_cv_prog_OBJCOPY=$OBJCOPY +elif test -n "$ac_cv_prog_OBJCOPY"; then + OBJCOPY=$ac_cv_prog_OBJCOPY +fi + +if test -n "$ac_cv_prog_OBJCOPY"; then + for ncn_progname in objcopy; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_OBJCOPY+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$OBJCOPY"; then + ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJCOPY="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +OBJCOPY=$ac_cv_prog_OBJCOPY +if test -n "$OBJCOPY"; then + echo "$as_me:$LINENO: result: $OBJCOPY" >&5 +echo "${ECHO_T}$OBJCOPY" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +for ncn_progname in objcopy; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -6539,7 +7566,55 @@ if test -z "$ac_cv_prog_OBJCOPY" ; then fi fi - for ncn_progname in objdump; do + + +if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP=$OBJDUMP +elif test -n "$ac_cv_prog_OBJDUMP"; then + OBJDUMP=$ac_cv_prog_OBJDUMP +fi + +if test -n "$ac_cv_prog_OBJDUMP"; then + for ncn_progname in objdump; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_OBJDUMP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + echo "$as_me:$LINENO: result: $OBJDUMP" >&5 +echo "${ECHO_T}$OBJDUMP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +for ncn_progname in objdump; do if test -n "$ncn_tool_prefix"; then # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 @@ -6634,22 +7709,70 @@ fi # Target tools. -# Check whether --with-build-time-tools or --without-build-time-tools was given. -if test "${with_build_time_tools+set}" = set; then - withval="$with_build_time_tools" - case x"$withval" in - x/*) ;; - *) - with_build_time_tools= - { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 -echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} - ;; - esac +# Check whether --with-build-time-tools or --without-build-time-tools was given. +if test "${with_build_time_tools+set}" = set; then + withval="$with_build_time_tools" + case x"$withval" in + x/*) ;; + *) + with_build_time_tools= + { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 +echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} + ;; + esac +else + with_build_time_tools= +fi; + + + +if test -n "$CC_FOR_TARGET"; then + ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET +elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then + CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET +fi + +if test -n "$ac_cv_prog_CC_FOR_TARGET"; then + for ncn_progname in cc gcc; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC_FOR_TARGET"; then + ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET +if test -n "$CC_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5 +echo "${ECHO_T}$CC_FOR_TARGET" >&6 else - with_build_time_tools= -fi; + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi - if test -n "$with_build_time_tools"; then + done +fi + +if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in cc gcc; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -6754,7 +7877,55 @@ if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then fi fi - if test -n "$with_build_time_tools"; then + + +if test -n "$CXX_FOR_TARGET"; then + ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET +elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then + CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET +fi + +if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then + for ncn_progname in c++ g++ cxx gxx; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CXX_FOR_TARGET"; then + ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET +if test -n "$CXX_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5 +echo "${ECHO_T}$CXX_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in c++ g++ cxx gxx; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -6859,7 +8030,55 @@ if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then fi fi - if test -n "$with_build_time_tools"; then + + +if test -n "$GCC_FOR_TARGET"; then + ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET +elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then + GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET +fi + +if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then + for ncn_progname in gcc; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$GCC_FOR_TARGET"; then + ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET +if test -n "$GCC_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5 +echo "${ECHO_T}$GCC_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in gcc; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -6959,7 +8178,55 @@ if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then GCC_FOR_TARGET="${CC_FOR_TARGET}" fi - if test -n "$with_build_time_tools"; then + + +if test -n "$GCJ_FOR_TARGET"; then + ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET +elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then + GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET +fi + +if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then + for ncn_progname in gcj; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$GCJ_FOR_TARGET"; then + ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET +if test -n "$GCJ_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5 +echo "${ECHO_T}$GCJ_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in gcj; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -7064,7 +8331,55 @@ if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then fi fi - if test -n "$with_build_time_tools"; then + + +if test -n "$GFORTRAN_FOR_TARGET"; then + ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET +elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then + GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET +fi + +if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then + for ncn_progname in gfortran; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$GFORTRAN_FOR_TARGET"; then + ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET +if test -n "$GFORTRAN_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 +echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in gfortran; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -7143,76 +8458,30 @@ do fi done done - -fi -fi -GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET -if test -n "$GFORTRAN_FOR_TARGET"; then - echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 -echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - fi - test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break - done -fi - -if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then - set dummy gfortran - if test $build = $target ; then - GFORTRAN_FOR_TARGET="$2" - else - GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" - fi -fi - - - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - -if test "x$exec_prefix" = xNONE; then - if test "x$prefix" = xNONE; then - gcc_cv_tool_prefix=$ac_default_prefix - else - gcc_cv_tool_prefix=$prefix - fi + +fi +fi +GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET +if test -n "$GFORTRAN_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5 +echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6 else - gcc_cv_tool_prefix=$exec_prefix + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 fi -# If there is no compiler in the tree, use the PATH only. In any -# case, if there is no compiler in the tree nobody should use -# AS_FOR_TARGET and LD_FOR_TARGET. -if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then - gcc_version=`cat $srcdir/gcc/BASE-VER` - gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" - gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" - gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" - gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" - gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" - gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" -else - gcc_cv_tool_dirs= + fi + test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break + done fi -if test x$build = x$target && test -n "$md_exec_prefix"; then - gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" +if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then + set dummy gfortran + if test $build = $target ; then + GFORTRAN_FOR_TARGET="$2" + else + GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" + fi fi @@ -7294,7 +8563,55 @@ fi fi if test -z "$ac_cv_path_AR_FOR_TARGET" ; then - if test -n "$with_build_time_tools"; then + + +if test -n "$AR_FOR_TARGET"; then + ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET +elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then + AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET +fi + +if test -n "$ac_cv_prog_AR_FOR_TARGET"; then + for ncn_progname in ar; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AR_FOR_TARGET"; then + ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET +if test -n "$AR_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5 +echo "${ECHO_T}$AR_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in ar; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -7467,7 +8784,55 @@ fi fi if test -z "$ac_cv_path_AS_FOR_TARGET" ; then - if test -n "$with_build_time_tools"; then + + +if test -n "$AS_FOR_TARGET"; then + ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET +elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then + AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET +fi + +if test -n "$ac_cv_prog_AS_FOR_TARGET"; then + for ncn_progname in as; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AS_FOR_TARGET"; then + ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET +if test -n "$AS_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5 +echo "${ECHO_T}$AS_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in as; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -7640,7 +9005,55 @@ fi fi if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then - if test -n "$with_build_time_tools"; then + + +if test -n "$DLLTOOL_FOR_TARGET"; then + ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET +elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then + DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET +fi + +if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then + for ncn_progname in dlltool; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$DLLTOOL_FOR_TARGET"; then + ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET +if test -n "$DLLTOOL_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5 +echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in dlltool; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -7813,7 +9226,55 @@ fi fi if test -z "$ac_cv_path_LD_FOR_TARGET" ; then - if test -n "$with_build_time_tools"; then + + +if test -n "$LD_FOR_TARGET"; then + ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET +elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then + LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET +fi + +if test -n "$ac_cv_prog_LD_FOR_TARGET"; then + for ncn_progname in ld; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$LD_FOR_TARGET"; then + ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET +if test -n "$LD_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5 +echo "${ECHO_T}$LD_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in ld; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -7949,33 +9410,80 @@ if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then set dummy lipo; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then +if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $LIPO_FOR_TARGET in + [\\/]* | ?:[\\/]*) + ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $gcc_cv_tool_dirs +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + ;; +esac +fi +LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET + +if test -n "$LIPO_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 +echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then + + +if test -n "$LIPO_FOR_TARGET"; then + ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET +elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then + LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET +fi + +if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then + for ncn_progname in lipo; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - case $LIPO_FOR_TARGET in - [\\/]* | ?:[\\/]*) - ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $gcc_cv_tool_dirs + if test -n "$LIPO_FOR_TARGET"; then + ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" + ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done - ;; -esac fi -LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET - +fi +LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET if test -n "$LIPO_FOR_TARGET"; then echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6 @@ -7984,9 +9492,10 @@ else echo "${ECHO_T}no" >&6 fi + done fi -if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then - if test -n "$with_build_time_tools"; then + +if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in lipo; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -8159,7 +9668,55 @@ fi fi if test -z "$ac_cv_path_NM_FOR_TARGET" ; then - if test -n "$with_build_time_tools"; then + + +if test -n "$NM_FOR_TARGET"; then + ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET +elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then + NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET +fi + +if test -n "$ac_cv_prog_NM_FOR_TARGET"; then + for ncn_progname in nm; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$NM_FOR_TARGET"; then + ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET +if test -n "$NM_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5 +echo "${ECHO_T}$NM_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in nm; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -8332,7 +9889,55 @@ fi fi if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then - if test -n "$with_build_time_tools"; then + + +if test -n "$OBJDUMP_FOR_TARGET"; then + ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET +elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then + OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET +fi + +if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then + for ncn_progname in objdump; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$OBJDUMP_FOR_TARGET"; then + ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET +if test -n "$OBJDUMP_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5 +echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in objdump; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -8505,7 +10110,55 @@ fi fi if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then - if test -n "$with_build_time_tools"; then + + +if test -n "$RANLIB_FOR_TARGET"; then + ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET +elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then + RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET +fi + +if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then + for ncn_progname in ranlib; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$RANLIB_FOR_TARGET"; then + ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET +if test -n "$RANLIB_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5 +echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in ranlib; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -8678,7 +10331,55 @@ fi fi if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then - if test -n "$with_build_time_tools"; then + + +if test -n "$STRIP_FOR_TARGET"; then + ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET +elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then + STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET +fi + +if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then + for ncn_progname in strip; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$STRIP_FOR_TARGET"; then + ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET +if test -n "$STRIP_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5 +echo "${ECHO_T}$STRIP_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in strip; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -8851,7 +10552,55 @@ fi fi if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then - if test -n "$with_build_time_tools"; then + + +if test -n "$WINDRES_FOR_TARGET"; then + ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET +elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then + WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET +fi + +if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then + for ncn_progname in windres; do + # Extract the first word of "${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_progname}; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$WINDRES_FOR_TARGET"; then + ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET +if test -n "$WINDRES_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5 +echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then for ncn_progname in windres; do echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6 @@ -8968,8 +10717,9 @@ echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6 + ac_dir=`dirname $AR_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -8989,8 +10739,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6 + ac_dir=`dirname $AR_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool AR_FOR_TARGET='$(AR)' @@ -9008,8 +10759,9 @@ echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6 + ac_dir=`dirname $AS_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9029,8 +10781,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6 + ac_dir=`dirname $AS_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool AS_FOR_TARGET='$(AS)' @@ -9048,8 +10801,9 @@ echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6 + ac_dir=`dirname $CC_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9069,8 +10823,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6 + ac_dir=`dirname $CC_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool CC_FOR_TARGET='$(CC)' @@ -9088,8 +10843,9 @@ echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6 + ac_dir=`dirname $CXX_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9112,8 +10868,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6 + ac_dir=`dirname $CXX_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool CXX_FOR_TARGET='$(CXX)' @@ -9131,8 +10888,9 @@ echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >& if test "x${build}" != "x${host}" ; then if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6 + ac_dir=`dirname $RAW_CXX_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9155,8 +10913,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6 + ac_dir=`dirname $RAW_CXX_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool RAW_CXX_FOR_TARGET='$(CXX)' @@ -9174,8 +10933,9 @@ echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6 + ac_dir=`dirname $DLLTOOL_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9195,8 +10955,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6 + ac_dir=`dirname $DLLTOOL_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool DLLTOOL_FOR_TARGET='$(DLLTOOL)' @@ -9214,8 +10975,9 @@ echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6 + ac_dir=`dirname $GCC_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9235,8 +10997,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6 + ac_dir=`dirname $GCC_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool GCC_FOR_TARGET='$()' @@ -9254,8 +11017,9 @@ echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6 + ac_dir=`dirname $GCJ_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9278,8 +11042,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6 + ac_dir=`dirname $GCJ_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool GCJ_FOR_TARGET='$(GCJ)' @@ -9297,8 +11062,9 @@ echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6 + ac_dir=`dirname $GFORTRAN_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9321,8 +11087,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6 + ac_dir=`dirname $GFORTRAN_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool GFORTRAN_FOR_TARGET='$(GFORTRAN)' @@ -9340,8 +11107,9 @@ echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6 + ac_dir=`dirname $LD_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9361,8 +11129,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6 + ac_dir=`dirname $LD_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool LD_FOR_TARGET='$(LD)' @@ -9380,8 +11149,9 @@ echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6 + ac_dir=`dirname $LIPO_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9390,8 +11160,9 @@ echo "${ECHO_T}pre-installed" >&6 else if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6 + ac_dir=`dirname $LIPO_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool LIPO_FOR_TARGET='$(LIPO)' @@ -9409,8 +11180,9 @@ echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6 + ac_dir=`dirname $NM_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9430,8 +11202,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6 + ac_dir=`dirname $NM_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool NM_FOR_TARGET='$(NM)' @@ -9449,8 +11222,9 @@ echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6 + ac_dir=`dirname $OBJDUMP_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9470,8 +11244,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6 + ac_dir=`dirname $OBJDUMP_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool OBJDUMP_FOR_TARGET='$(OBJDUMP)' @@ -9489,8 +11264,9 @@ echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6 + ac_dir=`dirname $RANLIB_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9510,8 +11286,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6 + ac_dir=`dirname $RANLIB_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool RANLIB_FOR_TARGET='$(RANLIB)' @@ -9529,8 +11306,9 @@ echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6 + ac_dir=`dirname $STRIP_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9550,8 +11328,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6 + ac_dir=`dirname $STRIP_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool STRIP_FOR_TARGET='$(STRIP)' @@ -9569,8 +11348,9 @@ echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6 if test "x${build}" != "x${host}" ; then if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6 + ac_dir=`dirname $WINDRES_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 else # Canadian cross, just use what we found echo "$as_me:$LINENO: result: pre-installed" >&5 @@ -9590,8 +11370,9 @@ else echo "${ECHO_T}just compiled" >&6 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then # We already found the complete path - echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5 -echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6 + ac_dir=`dirname $WINDRES_FOR_TARGET` + echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5 +echo "${ECHO_T}pre-installed in $ac_dir" >&6 elif test "x$target" = "x$host"; then # We can use an host tool WINDRES_FOR_TARGET='$(WINDRES)' @@ -9781,6 +11562,15 @@ else fi; +# Check whether --with-pdfdir or --without-pdfdir was given. +if test "${with_pdfdir+set}" = set; then + withval="$with_pdfdir" + pdfdir="\${prefix}/${withval}" +else + pdfdir="\${docdir}" +fi; + + # Check whether --with-htmldir or --without-htmldir was given. if test "${with_htmldir+set}" = set; then withval="$with_htmldir" @@ -9793,6 +11583,7 @@ fi; + ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -10461,6 +12252,9 @@ s,@CPPFLAGS@,$CPPFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t s,@EXEEXT@,$EXEEXT,;t t s,@OBJEXT@,$OBJEXT,;t t +s,@CXX@,$CXX,;t t +s,@CXXFLAGS@,$CXXFLAGS,;t t +s,@ac_ct_CXX@,$ac_ct_CXX,;t t s,@GNATBIND@,$GNATBIND,;t t s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t s,@GNATMAKE@,$GNATMAKE,;t t @@ -10502,9 +12296,7 @@ s,@STRIP@,$STRIP,;t t s,@WINDRES@,$WINDRES,;t t s,@OBJCOPY@,$OBJCOPY,;t t s,@OBJDUMP@,$OBJDUMP,;t t -s,@CXX@,$CXX,;t t s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t -s,@CXXFLAGS@,$CXXFLAGS,;t t s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t @@ -10533,6 +12325,7 @@ s,@stage1_checking@,$stage1_checking,;t t s,@stage2_werror_flag@,$stage2_werror_flag,;t t s,@datarootdir@,$datarootdir,;t t s,@docdir@,$docdir,;t t +s,@pdfdir@,$pdfdir,;t t s,@htmldir@,$htmldir,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t