X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=configure;h=df7479320e40d4fbc1b90caa39fbbcfe2dda1841;hb=45cc50c5ec8ff58811bae1903e71c44aa95f5d91;hp=f5b4778c90d9224750372b41c9b1a7da1783404a;hpb=ae8552b7366c9d3815e02a0b9cacdb89de80b30c;p=pf3gnuchains%2Fgcc-fork.git diff --git a/configure b/configure index f5b4778c90d..df7479320e4 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 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 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 WINDMC 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 WINDMC_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. @@ -773,6 +773,10 @@ 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_WINDMC_set=${WINDMC+set} +ac_env_WINDMC_value=$WINDMC +ac_cv_env_WINDMC_set=${WINDMC+set} +ac_cv_env_WINDMC_value=$WINDMC ac_env_OBJCOPY_set=${OBJCOPY+set} ac_env_OBJCOPY_value=$OBJCOPY ac_cv_env_OBJCOPY_set=${OBJCOPY+set} @@ -841,6 +845,10 @@ 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 +ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set} +ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET +ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set} +ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET # # Report the --help message. @@ -921,47 +929,48 @@ if test -n "$ac_init_help"; then Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-libada Builds libada directory - --enable-libssp Builds libssp directory - --enable-stage1-languages=all choose additional languages to build during + --enable-libada build libada directory + --enable-libssp build libssp directory + --enable-stage1-languages[=all] choose additional languages to build during stage1. Mostly useful for compiler development. - --enable-objc-gc enable the use of Boehm's garbage collector with - the GNU Objective-C runtime. - --enable-bootstrap Enable bootstrapping yes if native build - --enable-serial-{host,target,build}-configure - Force sequential configuration of + --enable-objc-gc enable use of Boehm's garbage collector with the + GNU Objective-C runtime + --enable-bootstrap enable bootstrapping [yes if native build] + --enable-serial-[{host,target,build}-]configure + force sequential configuration of sub-packages for the host, target or build - machine, or all sub-packages + machine, or all sub-packages --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer - --enable-stage1-checking=all choose additional checking for stage1 - of the compiler. + --enable-stage1-checking[=all] choose additional checking for stage1 + of the compiler --enable-werror enable -Werror in bootstrap stage2 and later Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-build-libsubdir=DIR Directory where to find libraries for build system - --with-mpfr-dir=PATH This option has been REMOVED - --with-mpfr=PATH Specify prefix directory for installed MPFR package + --with-mpfr-dir=PATH this option has been REMOVED + --with-mpfr=PATH specify prefix directory for installed MPFR package. Equivalent to --with-mpfr-include=PATH/include plus --with-mpfr-lib=PATH/lib --with-mpfr-include=PATH - Specify directory for installed MPFR include files - --with-mpfr-lib=PATH Specify the directory for the installed MPFR library - --with-gmp-dir=PATH This option has been REMOVED - --with-gmp=PATH Specify prefix directory for the installed GMP package + specify directory for installed MPFR include files + --with-mpfr-lib=PATH specify directory for the installed MPFR library + --with-gmp-dir=PATH this option has been REMOVED + --with-gmp=PATH specify prefix directory for the installed GMP package. Equivalent to --with-gmp-include=PATH/include plus --with-gmp-lib=PATH/lib - --with-gmp-include=PATH Specify directory for installed GMP include files - --with-gmp-lib=PATH Specify the directory for the installed GMP library - --with-build-sysroot=sysroot + --with-gmp-include=PATH specify directory for installed GMP include files + --with-gmp-lib=PATH specify directory for the installed GMP library + --with-build-sysroot=SYSROOT use sysroot as the system root during the build - --with-build-time-tools=path + --with-build-time-tools=PATH 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-htmldir Install html in this directory. + --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: CC C compiler command @@ -981,6 +990,7 @@ Some influential environment variables: RANLIB RANLIB for the host STRIP STRIP for the host WINDRES WINDRES for the host + WINDMC WINDMC for the host OBJCOPY OBJCOPY for the host OBJDUMP OBJDUMP for the host CC_FOR_TARGET @@ -1013,6 +1023,8 @@ Some influential environment variables: STRIP for the target WINDRES_FOR_TARGET WINDRES for the target + WINDMC_FOR_TARGET + WINDMC 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. @@ -1767,7 +1779,7 @@ 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'/"` ;; @@ -2074,7 +2086,7 @@ esac # Disable libmudflap on some systems. if test x$enable_libmudflap = x ; then case "${target}" in - *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) + *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*) # Enable libmudflap by default in GNU and friends. ;; *-*-freebsd*) @@ -2226,6 +2238,9 @@ case "${target}" in arm*-*-linux-gnueabi) noconfigdirs="$noconfigdirs target-libffi target-qthreads" noconfigdirs="$noconfigdirs target-libjava target-libobjc" + case ${with_newlib} in + no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" + esac ;; arm*-*-symbianelf*) noconfigdirs="$noconfigdirs ${libgcj} target-libiberty" @@ -4476,9 +4491,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); @@ -5152,10 +5169,10 @@ case "${target}" in alpha*-*-*vms*) md_exec_prefix=/gnu/lib/gcc-lib ;; - i3456786-pc-msdosdjgpp*) + i[34567]86-pc-msdosdjgpp*) md_exec_prefix=/dev/env/DJDIR/bin ;; - i3456786-*-sco3.2v5*) + i[34567]86-*-sco3.2v5*) if test $with_gnu_as = yes; then md_exec_prefix=/usr/gnu/bin else @@ -5186,7 +5203,7 @@ case "${target}" in *-*-nto-qnx* | \ *-*-rtems* | \ *-*-solaris2* | \ - *-*-sysv45* | \ + *-*-sysv[45]* | \ *-*-vxworks* | \ *-wrs-windiss) md_exec_prefix=/usr/ccs/bin @@ -7430,6 +7447,141 @@ fi +if test -n "$WINDMC"; then + ac_cv_prog_WINDMC=$WINDMC +elif test -n "$ac_cv_prog_WINDMC"; then + WINDMC=$ac_cv_prog_WINDMC +fi + +if test -n "$ac_cv_prog_WINDMC"; then + for ncn_progname in windmc; 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_WINDMC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$WINDMC"; then + ac_cv_prog_WINDMC="$WINDMC" # 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_WINDMC="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +WINDMC=$ac_cv_prog_WINDMC +if test -n "$WINDMC"; then + echo "$as_me:$LINENO: result: $WINDMC" >&5 +echo "${ECHO_T}$WINDMC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + done +fi + +for ncn_progname in windmc; 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 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_WINDMC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$WINDMC"; then + ac_cv_prog_WINDMC="$WINDMC" # 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_WINDMC="${ncn_tool_prefix}${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +WINDMC=$ac_cv_prog_WINDMC +if test -n "$WINDMC"; then + echo "$as_me:$LINENO: result: $WINDMC" >&5 +echo "${ECHO_T}$WINDMC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + fi + if test -z "$ac_cv_prog_WINDMC" && 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_WINDMC+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$WINDMC"; then + ac_cv_prog_WINDMC="$WINDMC" # 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_WINDMC="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +WINDMC=$ac_cv_prog_WINDMC +if test -n "$WINDMC"; then + echo "$as_me:$LINENO: result: $WINDMC" >&5 +echo "${ECHO_T}$WINDMC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + fi + test -n "$ac_cv_prog_WINDMC" && break +done + +if test -z "$ac_cv_prog_WINDMC" ; then + set dummy windmc + if test $build = $host ; then + WINDMC="$2" + else + WINDMC="${ncn_tool_prefix}$2" + fi +fi + + + if test -n "$OBJCOPY"; then ac_cv_prog_OBJCOPY=$OBJCOPY elif test -n "$ac_cv_prog_OBJCOPY"; then @@ -7872,6 +8024,8 @@ if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then else CC_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" fi @@ -8025,6 +8179,8 @@ if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then else CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" fi @@ -8173,6 +8329,8 @@ fi if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then GCC_FOR_TARGET="${CC_FOR_TARGET}" +else + GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" fi @@ -8326,6 +8484,8 @@ if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then else GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" fi @@ -8479,6 +8639,8 @@ if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then else GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" fi @@ -8514,8 +8676,8 @@ echo "${ECHO_T}no" >&6 fi elif test $build != $host && test $have_gcc_for_target = yes; then AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` - test $AR_FOR_TARGET=ar && AR_FOR_TARGET= - ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET + test $AR_FOR_TARGET = ar && AR_FOR_TARGET= + test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET fi fi if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then @@ -8711,6 +8873,8 @@ if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then else AR_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" fi else @@ -8735,8 +8899,8 @@ echo "${ECHO_T}no" >&6 fi elif test $build != $host && test $have_gcc_for_target = yes; then AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` - test $AS_FOR_TARGET=as && AS_FOR_TARGET= - ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET + test $AS_FOR_TARGET = as && AS_FOR_TARGET= + test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET fi fi if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then @@ -8932,6 +9096,8 @@ if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then else AS_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" fi else @@ -8956,8 +9122,8 @@ echo "${ECHO_T}no" >&6 fi elif test $build != $host && test $have_gcc_for_target = yes; then DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` - test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET= - ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET + test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= + test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET fi fi if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then @@ -9153,6 +9319,8 @@ if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then else DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" fi else @@ -9177,8 +9345,8 @@ echo "${ECHO_T}no" >&6 fi elif test $build != $host && test $have_gcc_for_target = yes; then LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` - test $LD_FOR_TARGET=ld && LD_FOR_TARGET= - ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET + test $LD_FOR_TARGET = ld && LD_FOR_TARGET= + test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET fi fi if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then @@ -9374,6 +9542,8 @@ if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then else LD_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" fi else @@ -9398,8 +9568,8 @@ echo "${ECHO_T}no" >&6 fi elif test $build != $host && test $have_gcc_for_target = yes; then LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` - test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET= - ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET + test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= + test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET fi fi if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then @@ -9595,6 +9765,8 @@ if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then else LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" fi else @@ -9619,8 +9791,8 @@ echo "${ECHO_T}no" >&6 fi elif test $build != $host && test $have_gcc_for_target = yes; then NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` - test $NM_FOR_TARGET=nm && NM_FOR_TARGET= - ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET + test $NM_FOR_TARGET = nm && NM_FOR_TARGET= + test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET fi fi if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then @@ -9816,6 +9988,8 @@ if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then else NM_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" fi else @@ -9840,8 +10014,8 @@ echo "${ECHO_T}no" >&6 fi elif test $build != $host && test $have_gcc_for_target = yes; then OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` - test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET= - ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET + test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= + test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET fi fi if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then @@ -10037,6 +10211,8 @@ if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then else OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" fi else @@ -10061,8 +10237,8 @@ echo "${ECHO_T}no" >&6 fi elif test $build != $host && test $have_gcc_for_target = yes; then RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` - test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET= - ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET + test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= + test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET fi fi if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then @@ -10258,6 +10434,8 @@ if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then else RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" fi else @@ -10282,8 +10460,8 @@ echo "${ECHO_T}no" >&6 fi elif test $build != $host && test $have_gcc_for_target = yes; then STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` - test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET= - ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET + test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= + test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET fi fi if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then @@ -10479,6 +10657,8 @@ if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then else STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" fi else @@ -10503,8 +10683,8 @@ echo "${ECHO_T}no" >&6 fi elif test $build != $host && test $have_gcc_for_target = yes; then WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` - test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET= - ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET + test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= + test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET fi fi if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then @@ -10700,6 +10880,8 @@ if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then else WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" fi +else + WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" fi else @@ -10707,6 +10889,229 @@ else fi + + +if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then + if test -n "$with_build_time_tools"; then + echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5 +echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6 + if test -x $with_build_time_tools/windmc; then + WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc + ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET + echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 +echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6 + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + fi + elif test $build != $host && test $have_gcc_for_target = yes; then + WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` + test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= + test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET + fi +fi +if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then + # Extract the first word of "windmc", so it can be a program name with args. +set dummy windmc; 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_WINDMC_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $WINDMC_FOR_TARGET in + [\\/]* | ?:[\\/]*) + ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_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_WINDMC_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 +WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET + +if test -n "$WINDMC_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 +echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then + + +if test -n "$WINDMC_FOR_TARGET"; then + ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET +elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then + WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET +fi + +if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then + for ncn_progname in windmc; 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_WINDMC_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$WINDMC_FOR_TARGET"; then + ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_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_WINDMC_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET +if test -n "$WINDMC_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 +echo "${ECHO_T}$WINDMC_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_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then + for ncn_progname in windmc; 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 + if test -x $with_build_time_tools/${ncn_progname}; then + ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + break + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + fi + done +fi + +if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then + for ncn_progname in windmc; do + if test -n "$ncn_target_tool_prefix"; then + # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. +set dummy ${ncn_target_tool_prefix}${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_WINDMC_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$WINDMC_FOR_TARGET"; then + ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_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_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET +if test -n "$WINDMC_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 +echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + fi + if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; 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_WINDMC_FOR_TARGET+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$WINDMC_FOR_TARGET"; then + ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_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_WINDMC_FOR_TARGET="${ncn_progname}" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET +if test -n "$WINDMC_FOR_TARGET"; then + echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5 +echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + fi + test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break + done +fi + +if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then + set dummy windmc + if test $build = $target ; then + WINDMC_FOR_TARGET="$2" + else + WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" + fi +else + WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" +fi + +else + WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET +fi + + RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" echo "$as_me:$LINENO: checking where to find the target ar" >&5 @@ -10714,8 +11119,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 @@ -10735,8 +11141,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)' @@ -10754,8 +11161,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 @@ -10775,8 +11183,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)' @@ -10794,8 +11203,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 @@ -10815,8 +11225,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)' @@ -10834,8 +11245,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 @@ -10858,8 +11270,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)' @@ -10877,8 +11290,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 @@ -10901,8 +11315,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)' @@ -10920,8 +11335,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 @@ -10941,8 +11357,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)' @@ -10960,8 +11377,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 @@ -10981,8 +11399,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='$()' @@ -11000,8 +11419,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 @@ -11024,8 +11444,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)' @@ -11043,8 +11464,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 @@ -11067,8 +11489,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)' @@ -11086,8 +11509,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 @@ -11107,8 +11531,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)' @@ -11126,8 +11551,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 @@ -11136,8 +11562,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)' @@ -11155,8 +11582,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 @@ -11176,8 +11604,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)' @@ -11195,8 +11624,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 @@ -11216,8 +11646,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)' @@ -11235,8 +11666,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 @@ -11256,8 +11688,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)' @@ -11275,8 +11708,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 @@ -11296,8 +11730,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)' @@ -11315,8 +11750,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 @@ -11336,8 +11772,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)' @@ -11350,6 +11787,48 @@ echo "${ECHO_T}pre-installed" >&6 fi fi +echo "$as_me:$LINENO: checking where to find the target windmc" >&5 +echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6 +if test "x${build}" != "x${host}" ; then + if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then + # We already found the complete path + ac_dir=`dirname $WINDMC_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 +echo "${ECHO_T}pre-installed" >&6 + fi +else + ok=yes + case " ${configdirs} " in + *" binutils "*) ;; + *) ok=no ;; + esac + + if test $ok = yes; then + # An in-tree tool is available and we can use it + WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' + echo "$as_me:$LINENO: result: just compiled" >&5 +echo "${ECHO_T}just compiled" >&6 + elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then + # We already found the complete path + ac_dir=`dirname $WINDMC_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 + WINDMC_FOR_TARGET='$(WINDMC)' + echo "$as_me:$LINENO: result: host tool" >&5 +echo "${ECHO_T}host tool" >&6 + else + # We need a cross tool + echo "$as_me:$LINENO: result: pre-installed" >&5 +echo "${ECHO_T}pre-installed" >&6 + fi +fi + @@ -11429,6 +11908,12 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +#if (__GNUC__ < 3) \ + || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ + || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) +#error http://gcc.gnu.org/PR29382 +#endif + int main () { @@ -11482,9 +11967,9 @@ if test "${enable_stage1_checking+set}" = set; then stage1_checking=--enable-checking=${enable_stage1_checking} else if test "x$enable_checking" = xno; then - stage1_checking=--enable-checking + stage1_checking=--enable-checking=yes,types else - stage1_checking=--enable-checking${enable_checking+=}$enable_checking + stage1_checking=--enable-checking=types${enable_checking+,}$enable_checking fi fi; @@ -11527,6 +12012,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" @@ -11539,6 +12033,7 @@ fi; + ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -12249,6 +12744,7 @@ s,@NM@,$NM,;t t s,@RANLIB@,$RANLIB,;t t s,@STRIP@,$STRIP,;t t s,@WINDRES@,$WINDRES,;t t +s,@WINDMC@,$WINDMC,;t t s,@OBJCOPY@,$OBJCOPY,;t t s,@OBJDUMP@,$OBJDUMP,;t t s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t @@ -12267,6 +12763,7 @@ s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t +s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t @@ -12280,6 +12777,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