From e4aaa8dbac466ace43a6b9d35daee891de10d33d Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Fri, 29 Jul 2011 15:23:59 +0000 Subject: [PATCH] updates for devkitPSP r15 --- build-devkit.sh | 6 +- .../{gcc-4.3.5.patch => gcc-4.3.6.patch} | 98 +- dkpsp/patches/newlib-1.17.0.patch | 43889 ---------------- dkpsp/patches/newlib-1.19.0.patch | 10677 ++++ dkpsp/patches/pspsdk.patch | 2391 + dkpsp/scripts/build-gcc.sh | 13 +- 6 files changed, 13131 insertions(+), 43943 deletions(-) rename dkpsp/patches/{gcc-4.3.5.patch => gcc-4.3.6.patch} (90%) delete mode 100644 dkpsp/patches/newlib-1.17.0.patch create mode 100644 dkpsp/patches/newlib-1.19.0.patch create mode 100644 dkpsp/patches/pspsdk.patch diff --git a/build-devkit.sh b/build-devkit.sh index 4b0ccad..6aa24b4 100644 --- a/build-devkit.sh +++ b/build-devkit.sh @@ -3,7 +3,7 @@ # Build scripts for # devkitARM release 34 # devkitPPC release 24 -# devkitPSP release 14 +# devkitPSP release 15 #--------------------------------------------------------------------------------- if [ 1 -eq 1 ] ; then @@ -121,9 +121,9 @@ case "$VERSION" in toolchain=DEVKITPPC ;; "3" ) - GCC_VER=4.3.5 + GCC_VER=4.3.6 BINUTILS_VER=2.16.1 - NEWLIB_VER=1.17.0 + NEWLIB_VER=1.19.0 GDB_VER=6.8 basedir='dkpsp' package=devkitPSP diff --git a/dkpsp/patches/gcc-4.3.5.patch b/dkpsp/patches/gcc-4.3.6.patch similarity index 90% rename from dkpsp/patches/gcc-4.3.5.patch rename to dkpsp/patches/gcc-4.3.6.patch index 0cdd217..515db9b 100644 --- a/dkpsp/patches/gcc-4.3.5.patch +++ b/dkpsp/patches/gcc-4.3.6.patch @@ -1,6 +1,6 @@ -diff -Nbaur gcc-4.3.5/Makefile.in gcc-4.3.5-psp/Makefile.in ---- gcc-4.3.5/Makefile.in 2009-04-25 06:55:24.000000000 +0100 -+++ gcc-4.3.5-psp/Makefile.in 2010-06-04 10:59:11.000000000 +0100 +diff -Nbaur gcc-4.3.6/Makefile.in gcc-4.3.6-psp/Makefile.in +--- gcc-4.3.6/Makefile.in 2009-04-25 06:55:24.000000000 +0100 ++++ gcc-4.3.6-psp/Makefile.in 2011-07-29 15:21:37.000000000 +0100 @@ -380,7 +380,7 @@ # We want to ensure that TARGET libraries (which we know are built with # gcc) are built with "-O2 -g", so prepend those options when setting @@ -10,9 +10,9 @@ diff -Nbaur gcc-4.3.5/Makefile.in gcc-4.3.5-psp/Makefile.in $(DEBUG_PREFIX_CFLAGS_FOR_TARGET) SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@ DEBUG_PREFIX_CFLAGS_FOR_TARGET = @DEBUG_PREFIX_CFLAGS_FOR_TARGET@ -diff -Nbaur gcc-4.3.5/config.sub gcc-4.3.5-psp/config.sub ---- gcc-4.3.5/config.sub 2008-01-23 02:37:40.000000000 +0000 -+++ gcc-4.3.5-psp/config.sub 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/config.sub gcc-4.3.6-psp/config.sub +--- gcc-4.3.6/config.sub 2008-01-23 02:37:40.000000000 +0000 ++++ gcc-4.3.6-psp/config.sub 2011-07-29 15:21:37.000000000 +0100 @@ -267,6 +267,7 @@ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ @@ -40,9 +40,9 @@ diff -Nbaur gcc-4.3.5/config.sub gcc-4.3.5-psp/config.sub mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; -diff -Nbaur gcc-4.3.5/gcc/config/mips/allegrex.md gcc-4.3.5-psp/gcc/config/mips/allegrex.md ---- gcc-4.3.5/gcc/config/mips/allegrex.md 1970-01-01 01:00:00.000000000 +0100 -+++ gcc-4.3.5-psp/gcc/config/mips/allegrex.md 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/config/mips/allegrex.md gcc-4.3.6-psp/gcc/config/mips/allegrex.md +--- gcc-4.3.6/gcc/config/mips/allegrex.md 1970-01-01 01:00:00.000000000 +0100 ++++ gcc-4.3.6-psp/gcc/config/mips/allegrex.md 2011-07-29 15:21:37.000000000 +0100 @@ -0,0 +1,183 @@ +;; Sony ALLEGREX instructions. +;; Copyright (C) 2005 Free Software Foundation, Inc. @@ -227,9 +227,9 @@ diff -Nbaur gcc-4.3.5/gcc/config/mips/allegrex.md gcc-4.3.5-psp/gcc/config/mips/ + "round.w.s\t%0,%1" + [(set_attr "type" "fcvt") + (set_attr "mode" "SF")]) -diff -Nbaur gcc-4.3.5/gcc/config/mips/mips-ftypes.def gcc-4.3.5-psp/gcc/config/mips/mips-ftypes.def ---- gcc-4.3.5/gcc/config/mips/mips-ftypes.def 2007-10-18 20:12:17.000000000 +0100 -+++ gcc-4.3.5-psp/gcc/config/mips/mips-ftypes.def 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/config/mips/mips-ftypes.def gcc-4.3.6-psp/gcc/config/mips/mips-ftypes.def +--- gcc-4.3.6/gcc/config/mips/mips-ftypes.def 2007-10-18 20:12:17.000000000 +0100 ++++ gcc-4.3.6-psp/gcc/config/mips/mips-ftypes.def 2011-07-29 15:21:37.000000000 +0100 @@ -53,9 +53,12 @@ DEF_MIPS_FTYPE (2, (SI, DI, SI)) @@ -248,9 +248,9 @@ diff -Nbaur gcc-4.3.5/gcc/config/mips/mips-ftypes.def gcc-4.3.5-psp/gcc/config/m DEF_MIPS_FTYPE (2, (VOID, V2HI, V2HI)) DEF_MIPS_FTYPE (2, (VOID, V4QI, V4QI)) +DEF_MIPS_FTYPE (1, (VOID, VOID)) -diff -Nbaur gcc-4.3.5/gcc/config/mips/mips.c gcc-4.3.5-psp/gcc/config/mips/mips.c ---- gcc-4.3.5/gcc/config/mips/mips.c 2009-03-02 20:42:24.000000000 +0000 -+++ gcc-4.3.5-psp/gcc/config/mips/mips.c 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/config/mips/mips.c gcc-4.3.6-psp/gcc/config/mips/mips.c +--- gcc-4.3.6/gcc/config/mips/mips.c 2009-03-02 20:42:24.000000000 +0000 ++++ gcc-4.3.6-psp/gcc/config/mips/mips.c 2011-07-29 15:21:37.000000000 +0100 @@ -197,6 +197,12 @@ /* As above, but the instruction only sets a single $fcc register. */ MIPS_BUILTIN_CMP_SINGLE, @@ -442,9 +442,9 @@ diff -Nbaur gcc-4.3.5/gcc/config/mips/mips.c gcc-4.3.5-psp/gcc/config/mips/mips. } /* Swap the register information for registers I and I + 1, which -diff -Nbaur gcc-4.3.5/gcc/config/mips/mips.h gcc-4.3.5-psp/gcc/config/mips/mips.h ---- gcc-4.3.5/gcc/config/mips/mips.h 2008-07-12 09:00:46.000000000 +0100 -+++ gcc-4.3.5-psp/gcc/config/mips/mips.h 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/config/mips/mips.h gcc-4.3.6-psp/gcc/config/mips/mips.h +--- gcc-4.3.6/gcc/config/mips/mips.h 2008-07-12 09:00:46.000000000 +0100 ++++ gcc-4.3.6-psp/gcc/config/mips/mips.h 2011-07-29 15:21:37.000000000 +0100 @@ -67,6 +67,7 @@ PROCESSOR_SB1, PROCESSOR_SB1A, @@ -558,9 +558,9 @@ diff -Nbaur gcc-4.3.5/gcc/config/mips/mips.h gcc-4.3.5-psp/gcc/config/mips/mips. #ifndef HAVE_AS_TLS #define HAVE_AS_TLS 0 #endif -diff -Nbaur gcc-4.3.5/gcc/config/mips/mips.md gcc-4.3.5-psp/gcc/config/mips/mips.md ---- gcc-4.3.5/gcc/config/mips/mips.md 2008-07-09 21:06:20.000000000 +0100 -+++ gcc-4.3.5-psp/gcc/config/mips/mips.md 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/config/mips/mips.md gcc-4.3.6-psp/gcc/config/mips/mips.md +--- gcc-4.3.6/gcc/config/mips/mips.md 2008-07-09 21:06:20.000000000 +0100 ++++ gcc-4.3.6-psp/gcc/config/mips/mips.md 2011-07-29 15:21:37.000000000 +0100 @@ -210,6 +210,19 @@ (UNSPEC_DPAQX_SA_W_PH 446) (UNSPEC_DPSQX_S_W_PH 447) @@ -701,9 +701,9 @@ diff -Nbaur gcc-4.3.5/gcc/config/mips/mips.md gcc-4.3.5-psp/gcc/config/mips/mips + +; Sony ALLEGREX instructions. +(include "allegrex.md") -diff -Nbaur gcc-4.3.5/gcc/config/mips/mips.opt gcc-4.3.5-psp/gcc/config/mips/mips.opt ---- gcc-4.3.5/gcc/config/mips/mips.opt 2008-10-22 23:31:03.000000000 +0100 -+++ gcc-4.3.5-psp/gcc/config/mips/mips.opt 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/config/mips/mips.opt gcc-4.3.6-psp/gcc/config/mips/mips.opt +--- gcc-4.3.6/gcc/config/mips/mips.opt 2008-10-22 23:31:03.000000000 +0100 ++++ gcc-4.3.6-psp/gcc/config/mips/mips.opt 2011-07-29 15:21:37.000000000 +0100 @@ -271,3 +271,7 @@ mxgot Target Report Var(TARGET_XGOT) @@ -712,9 +712,9 @@ diff -Nbaur gcc-4.3.5/gcc/config/mips/mips.opt gcc-4.3.5-psp/gcc/config/mips/mip +mpreferred-stack-boundary= +Target RejectNegative Joined Var(mips_preferred_stack_boundary_string) +Attempt to keep stack aligned to this power of 2 -diff -Nbaur gcc-4.3.5/gcc/config/mips/psp.h gcc-4.3.5-psp/gcc/config/mips/psp.h ---- gcc-4.3.5/gcc/config/mips/psp.h 1970-01-01 01:00:00.000000000 +0100 -+++ gcc-4.3.5-psp/gcc/config/mips/psp.h 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/config/mips/psp.h gcc-4.3.6-psp/gcc/config/mips/psp.h +--- gcc-4.3.6/gcc/config/mips/psp.h 1970-01-01 01:00:00.000000000 +0100 ++++ gcc-4.3.6-psp/gcc/config/mips/psp.h 2011-07-29 15:21:37.000000000 +0100 @@ -0,0 +1,31 @@ +/* Support for Sony's Playstation Portable (PSP). + Copyright (C) 2005 Free Software Foundation, Inc. @@ -747,9 +747,9 @@ diff -Nbaur gcc-4.3.5/gcc/config/mips/psp.h gcc-4.3.5-psp/gcc/config/mips/psp.h +/* Get rid of the .pdr section. */ +#undef SUBTARGET_ASM_SPEC +#define SUBTARGET_ASM_SPEC "-mno-pdr" -diff -Nbaur gcc-4.3.5/gcc/config/mips/t-allegrex gcc-4.3.5-psp/gcc/config/mips/t-allegrex ---- gcc-4.3.5/gcc/config/mips/t-allegrex 1970-01-01 01:00:00.000000000 +0100 -+++ gcc-4.3.5-psp/gcc/config/mips/t-allegrex 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/config/mips/t-allegrex gcc-4.3.6-psp/gcc/config/mips/t-allegrex +--- gcc-4.3.6/gcc/config/mips/t-allegrex 1970-01-01 01:00:00.000000000 +0100 ++++ gcc-4.3.6-psp/gcc/config/mips/t-allegrex 2011-07-29 15:21:37.000000000 +0100 @@ -0,0 +1,29 @@ +# Suppress building libgcc1.a, since the MIPS compiler port is complete +# and does not need anything from libgcc1.a. @@ -780,10 +780,10 @@ diff -Nbaur gcc-4.3.5/gcc/config/mips/t-allegrex gcc-4.3.5-psp/gcc/config/mips/t + +LIBGCC = stmp-multilib +INSTALL_LIBGCC = install-multilib -diff -Nbaur gcc-4.3.5/gcc/config.gcc gcc-4.3.5-psp/gcc/config.gcc ---- gcc-4.3.5/gcc/config.gcc 2010-02-18 03:49:04.000000000 +0000 -+++ gcc-4.3.5-psp/gcc/config.gcc 2010-06-04 10:59:12.000000000 +0100 -@@ -1822,6 +1822,18 @@ +diff -Nbaur gcc-4.3.6/gcc/config.gcc gcc-4.3.6-psp/gcc/config.gcc +--- gcc-4.3.6/gcc/config.gcc 2011-02-24 23:02:14.000000000 +0000 ++++ gcc-4.3.6-psp/gcc/config.gcc 2011-07-29 15:21:37.000000000 +0100 +@@ -1823,6 +1823,18 @@ tmake_file="mips/t-r3900 mips/t-libgcc-mips16" use_fixproto=yes ;; @@ -802,9 +802,9 @@ diff -Nbaur gcc-4.3.5/gcc/config.gcc gcc-4.3.5-psp/gcc/config.gcc mmix-knuth-mmixware) need_64bit_hwint=yes ;; -diff -Nbaur gcc-4.3.5/gcc/gcc.c gcc-4.3.5-psp/gcc/gcc.c ---- gcc-4.3.5/gcc/gcc.c 2008-03-02 22:55:19.000000000 +0000 -+++ gcc-4.3.5-psp/gcc/gcc.c 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/gcc.c gcc-4.3.6-psp/gcc/gcc.c +--- gcc-4.3.6/gcc/gcc.c 2008-03-02 22:55:19.000000000 +0000 ++++ gcc-4.3.6-psp/gcc/gcc.c 2011-07-29 15:21:37.000000000 +0100 @@ -635,6 +635,7 @@ #endif #endif @@ -844,9 +844,9 @@ diff -Nbaur gcc-4.3.5/gcc/gcc.c gcc-4.3.5-psp/gcc/gcc.c strcat (specs_file, just_machine_suffix); strcat (specs_file, "specs"); if (access (specs_file, R_OK) == 0) -diff -Nbaur gcc-4.3.5/gcc/prefix.c gcc-4.3.5-psp/gcc/prefix.c ---- gcc-4.3.5/gcc/prefix.c 2007-09-03 18:09:20.000000000 +0100 -+++ gcc-4.3.5-psp/gcc/prefix.c 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/prefix.c gcc-4.3.6-psp/gcc/prefix.c +--- gcc-4.3.6/gcc/prefix.c 2007-09-03 18:09:20.000000000 +0100 ++++ gcc-4.3.6-psp/gcc/prefix.c 2011-07-29 15:21:37.000000000 +0100 @@ -245,13 +245,16 @@ The returned string is always malloc-ed, and the caller is responsible for freeing it. */ @@ -873,9 +873,9 @@ diff -Nbaur gcc-4.3.5/gcc/prefix.c gcc-4.3.5-psp/gcc/prefix.c + + putenv (concat ("GCC_EXEC_PREFIX=", std_prefix, NULL)); } -diff -Nbaur gcc-4.3.5/gcc/toplev.c gcc-4.3.5-psp/gcc/toplev.c ---- gcc-4.3.5/gcc/toplev.c 2009-04-29 07:24:21.000000000 +0100 -+++ gcc-4.3.5-psp/gcc/toplev.c 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/gcc/toplev.c gcc-4.3.6-psp/gcc/toplev.c +--- gcc-4.3.6/gcc/toplev.c 2009-04-29 07:24:21.000000000 +0100 ++++ gcc-4.3.6-psp/gcc/toplev.c 2011-07-29 15:21:37.000000000 +0100 @@ -82,6 +82,7 @@ #include "alloc-pool.h" #include "tree-mudflap.h" @@ -895,9 +895,9 @@ diff -Nbaur gcc-4.3.5/gcc/toplev.c gcc-4.3.5-psp/gcc/toplev.c hex_init (); /* Unlock the stdio streams. */ -diff -Nbaur gcc-4.3.5/libcpp/Makefile.in gcc-4.3.5-psp/libcpp/Makefile.in ---- gcc-4.3.5/libcpp/Makefile.in 2010-05-22 19:02:44.000000000 +0100 -+++ gcc-4.3.5-psp/libcpp/Makefile.in 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/libcpp/Makefile.in gcc-4.3.6-psp/libcpp/Makefile.in +--- gcc-4.3.6/libcpp/Makefile.in 2011-06-27 12:28:31.000000000 +0100 ++++ gcc-4.3.6-psp/libcpp/Makefile.in 2011-07-29 15:21:37.000000000 +0100 @@ -197,7 +197,7 @@ # Dependency rule. COMPILE.base = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(ALL_CFLAGS) -c @@ -907,9 +907,9 @@ diff -Nbaur gcc-4.3.5/libcpp/Makefile.in gcc-4.3.5-psp/libcpp/Makefile.in else COMPILE = source='$<' object='$@' libtool=no DEPDIR=$(DEPDIR) $(DEPMODE) \ $(depcomp) $(COMPILE.base) -diff -Nbaur gcc-4.3.5/libgcc/config.host gcc-4.3.5-psp/libgcc/config.host ---- gcc-4.3.5/libgcc/config.host 2008-11-20 17:09:53.000000000 +0000 -+++ gcc-4.3.5-psp/libgcc/config.host 2010-06-04 10:59:12.000000000 +0100 +diff -Nbaur gcc-4.3.6/libgcc/config.host gcc-4.3.6-psp/libgcc/config.host +--- gcc-4.3.6/libgcc/config.host 2008-11-20 17:09:53.000000000 +0000 ++++ gcc-4.3.6-psp/libgcc/config.host 2011-07-29 15:21:37.000000000 +0100 @@ -469,6 +469,8 @@ ;; mipstx39-*-elf* | mipstx39el-*-elf*) diff --git a/dkpsp/patches/newlib-1.17.0.patch b/dkpsp/patches/newlib-1.17.0.patch deleted file mode 100644 index cc584f9..0000000 --- a/dkpsp/patches/newlib-1.17.0.patch +++ /dev/null @@ -1,43889 +0,0 @@ -diff -Nbaur newlib-1.17.0/config.sub newlib-1.17.0-psp/config.sub ---- newlib-1.17.0/config.sub 2008-12-18 03:26:46.000000000 +0000 -+++ newlib-1.17.0-psp/config.sub 2009-02-11 09:56:26.000000000 +0000 -@@ -270,6 +270,7 @@ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipstx39 | mipstx39el \ -+ | mipsallegrex | mipsallegrexel \ - | mn10200 | mn10300 \ - | mt \ - | msp430 \ -@@ -354,6 +355,7 @@ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipstx39-* | mipstx39el-* \ -+ | mipsallegrex-* | mipsallegrexel-* \ - | mmix-* \ - | mt-* \ - | msp430-* \ -@@ -728,6 +730,10 @@ - basic_machine=m68k-atari - os=-mint - ;; -+ psp) -+ basic_machine=mipsallegrexel-psp -+ os=-elf -+ ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; -diff -Nbaur newlib-1.17.0/config.sub.orig newlib-1.17.0-psp/config.sub.orig ---- newlib-1.17.0/config.sub.orig 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/config.sub.orig 2008-12-18 03:26:46.000000000 +0000 -@@ -0,0 +1,1679 @@ -+#! /bin/sh -+# Configuration validation subroutine script. -+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 -+# Free Software Foundation, Inc. -+ -+timestamp='2008-12-11' -+ -+# This file is (in principle) common to ALL GNU software. -+# The presence of a machine in this file suggests that SOME GNU software -+# can handle that machine. It does not imply ALL GNU software can. -+# -+# This file is free software; you can redistribute it and/or modify -+# it under the terms of the GNU General Public License as published by -+# the Free Software Foundation; either version 2 of the License, or -+# (at your option) any later version. -+# -+# This program is distributed in the hope that it will be useful, -+# but WITHOUT ANY WARRANTY; without even the implied warranty of -+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+# GNU General Public License for more details. -+# -+# You should have received a copy of the GNU General Public License -+# along with this program; if not, write to the Free Software -+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -+# 02110-1301, USA. -+# -+# As a special exception to the GNU General Public License, if you -+# distribute this file as part of a program that contains a -+# configuration script generated by Autoconf, you may include it under -+# the same distribution terms that you use for the rest of that program. -+ -+ -+# Please send patches to . Submit a context -+# diff and a properly formatted ChangeLog entry. -+# -+# Configuration subroutine to validate and canonicalize a configuration type. -+# Supply the specified configuration type as an argument. -+# If it is invalid, we print an error message on stderr and exit with code 1. -+# Otherwise, we print the canonical config type on stdout and succeed. -+ -+# This file is supposed to be the same for all GNU packages -+# and recognize all the CPU types, system types and aliases -+# that are meaningful with *any* GNU software. -+# Each package is responsible for reporting which valid configurations -+# it does not support. The user should be able to distinguish -+# a failure to support a valid configuration from a meaningless -+# configuration. -+ -+# The goal of this file is to map all the various variations of a given -+# machine specification into a single specification in the form: -+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -+# or in some cases, the newer four-part form: -+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -+# It is wrong to echo any other type of specification. -+ -+me=`echo "$0" | sed -e 's,.*/,,'` -+ -+usage="\ -+Usage: $0 [OPTION] CPU-MFR-OPSYS -+ $0 [OPTION] ALIAS -+ -+Canonicalize a configuration name. -+ -+Operation modes: -+ -h, --help print this help, then exit -+ -t, --time-stamp print date of last modification, then exit -+ -v, --version print version number, then exit -+ -+Report bugs and patches to ." -+ -+version="\ -+GNU config.sub ($timestamp) -+ -+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. -+ -+This is free software; see the source for copying conditions. There is NO -+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." -+ -+help=" -+Try \`$me --help' for more information." -+ -+# Parse command line -+while test $# -gt 0 ; do -+ case $1 in -+ --time-stamp | --time* | -t ) -+ echo "$timestamp" ; exit ;; -+ --version | -v ) -+ echo "$version" ; exit ;; -+ --help | --h* | -h ) -+ echo "$usage"; exit ;; -+ -- ) # Stop option processing -+ shift; break ;; -+ - ) # Use stdin as input. -+ break ;; -+ -* ) -+ echo "$me: invalid option $1$help" -+ exit 1 ;; -+ -+ *local*) -+ # First pass through any local machine types. -+ echo $1 -+ exit ;; -+ -+ * ) -+ break ;; -+ esac -+done -+ -+case $# in -+ 0) echo "$me: missing argument$help" >&2 -+ exit 1;; -+ 1) ;; -+ *) echo "$me: too many arguments$help" >&2 -+ exit 1;; -+esac -+ -+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -+# Here we must recognize all the valid KERNEL-OS combinations. -+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -+case $maybe_os in -+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ -+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ -+ storm-chaos* | os2-emx* | rtmk-nova*) -+ os=-$maybe_os -+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` -+ ;; -+ *) -+ basic_machine=`echo $1 | sed 's/-[^-]*$//'` -+ if [ $basic_machine != $1 ] -+ then os=`echo $1 | sed 's/.*-/-/'` -+ else os=; fi -+ ;; -+esac -+ -+### Let's recognize common machines as not being operating systems so -+### that things like config.sub decstation-3100 work. We also -+### recognize some manufacturers as not being operating systems, so we -+### can provide default operating systems below. -+case $os in -+ -sun*os*) -+ # Prevent following clause from handling this invalid input. -+ ;; -+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -+ -apple | -axis | -knuth | -cray) -+ os= -+ basic_machine=$1 -+ ;; -+ -sim | -cisco | -oki | -wec | -winbond) -+ os= -+ basic_machine=$1 -+ ;; -+ -scout) -+ ;; -+ -wrs) -+ os=-vxworks -+ basic_machine=$1 -+ ;; -+ -chorusos*) -+ os=-chorusos -+ basic_machine=$1 -+ ;; -+ -chorusrdb) -+ os=-chorusrdb -+ basic_machine=$1 -+ ;; -+ -hiux*) -+ os=-hiuxwe2 -+ ;; -+ -sco6) -+ os=-sco5v6 -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` -+ ;; -+ -sco5) -+ os=-sco3.2v5 -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` -+ ;; -+ -sco4) -+ os=-sco3.2v4 -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` -+ ;; -+ -sco3.2.[4-9]*) -+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` -+ ;; -+ -sco3.2v[4-9]*) -+ # Don't forget version if it is 3.2v4 or newer. -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` -+ ;; -+ -sco5v6*) -+ # Don't forget version if it is 3.2v4 or newer. -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` -+ ;; -+ -sco*) -+ os=-sco3.2v2 -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` -+ ;; -+ -udk*) -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` -+ ;; -+ -isc) -+ os=-isc2.2 -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` -+ ;; -+ -clix*) -+ basic_machine=clipper-intergraph -+ ;; -+ -isc*) -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` -+ ;; -+ -lynx*) -+ os=-lynxos -+ ;; -+ -ptx*) -+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` -+ ;; -+ -windowsnt*) -+ os=`echo $os | sed -e 's/windowsnt/winnt/'` -+ ;; -+ -psos*) -+ os=-psos -+ ;; -+ -mint | -mint[0-9]*) -+ basic_machine=m68k-atari -+ os=-mint -+ ;; -+esac -+ -+# Decode aliases for certain CPU-COMPANY combinations. -+case $basic_machine in -+ # Recognize the basic CPU types without company name. -+ # Some are omitted here because they have special meanings below. -+ 1750a | 580 \ -+ | a29k \ -+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ -+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ -+ | am33_2.0 \ -+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ -+ | bfin \ -+ | c4x | clipper \ -+ | d10v | d30v | dlx | dsp16xx \ -+ | fido | fr30 | frv \ -+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ -+ | i370 | i860 | i960 | ia64 \ -+ | ip2k | iq2000 \ -+ | lm32 \ -+ | m32c | m32r | m32rle | m68000 | m68k | m88k \ -+ | maxq | mb | microblaze | mcore | mep | metag \ -+ | mips | mipsbe | mipseb | mipsel | mipsle \ -+ | mips16 \ -+ | mips64 | mips64el \ -+ | mips64octeon | mips64octeonel \ -+ | mips64orion | mips64orionel \ -+ | mips64r5900 | mips64r5900el \ -+ | mips64vr | mips64vrel \ -+ | mips64vr4100 | mips64vr4100el \ -+ | mips64vr4300 | mips64vr4300el \ -+ | mips64vr5000 | mips64vr5000el \ -+ | mips64vr5900 | mips64vr5900el \ -+ | mipsisa32 | mipsisa32el \ -+ | mipsisa32r2 | mipsisa32r2el \ -+ | mipsisa64 | mipsisa64el \ -+ | mipsisa64r2 | mipsisa64r2el \ -+ | mipsisa64sb1 | mipsisa64sb1el \ -+ | mipsisa64sr71k | mipsisa64sr71kel \ -+ | mipstx39 | mipstx39el \ -+ | mn10200 | mn10300 \ -+ | mt \ -+ | msp430 \ -+ | nios | nios2 \ -+ | ns16k | ns32k \ -+ | or32 \ -+ | pdp10 | pdp11 | pj | pjl \ -+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ -+ | pyramid \ -+ | score \ -+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ -+ | sh64 | sh64le \ -+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ -+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ -+ | spu | strongarm \ -+ | tahoe | thumb | tic4x | tic80 | tron \ -+ | v850 | v850e \ -+ | we32k \ -+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ -+ | z8k | z80) -+ basic_machine=$basic_machine-unknown -+ ;; -+ m6811 | m68hc11 | m6812 | m68hc12) -+ # Motorola 68HC11/12. -+ basic_machine=$basic_machine-unknown -+ os=-none -+ ;; -+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) -+ ;; -+ ms1) -+ basic_machine=mt-unknown -+ ;; -+ -+ # We use `pc' rather than `unknown' -+ # because (1) that's what they normally are, and -+ # (2) the word "unknown" tends to confuse beginning users. -+ i*86 | x86_64) -+ basic_machine=$basic_machine-pc -+ ;; -+ # Object if more than one company name word. -+ *-*-*) -+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 -+ exit 1 -+ ;; -+ # Recognize the basic CPU types with company name. -+ 580-* \ -+ | a29k-* \ -+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ -+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ -+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ -+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ -+ | avr-* | avr32-* \ -+ | bfin-* | bs2000-* \ -+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ -+ | clipper-* | craynv-* | cydra-* \ -+ | d10v-* | d30v-* | dlx-* \ -+ | elxsi-* \ -+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ -+ | h8300-* | h8500-* \ -+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ -+ | i*86-* | i860-* | i960-* | ia64-* \ -+ | ip2k-* | iq2000-* \ -+ | lm32-* \ -+ | m32c-* | m32r-* | m32rle-* \ -+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ -+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ -+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ -+ | mips16-* \ -+ | mips64-* | mips64el-* \ -+ | mips64octeon-* | mips64octeonel-* \ -+ | mips64orion-* | mips64orionel-* \ -+ | mips64r5900-* | mips64r5900el-* \ -+ | mips64vr-* | mips64vrel-* \ -+ | mips64vr4100-* | mips64vr4100el-* \ -+ | mips64vr4300-* | mips64vr4300el-* \ -+ | mips64vr5000-* | mips64vr5000el-* \ -+ | mips64vr5900-* | mips64vr5900el-* \ -+ | mipsisa32-* | mipsisa32el-* \ -+ | mipsisa32r2-* | mipsisa32r2el-* \ -+ | mipsisa64-* | mipsisa64el-* \ -+ | mipsisa64r2-* | mipsisa64r2el-* \ -+ | mipsisa64sb1-* | mipsisa64sb1el-* \ -+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ -+ | mipstx39-* | mipstx39el-* \ -+ | mmix-* \ -+ | mt-* \ -+ | msp430-* \ -+ | nios-* | nios2-* \ -+ | none-* | np1-* | ns16k-* | ns32k-* \ -+ | orion-* \ -+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ -+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ -+ | pyramid-* \ -+ | romp-* | rs6000-* \ -+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ -+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ -+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ -+ | sparclite-* \ -+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ -+ | tahoe-* | thumb-* \ -+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ -+ | tron-* \ -+ | v850-* | v850e-* | vax-* \ -+ | we32k-* \ -+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ -+ | xstormy16-* | xtensa*-* \ -+ | ymp-* \ -+ | z8k-* | z80-*) -+ ;; -+ # Recognize the basic CPU types without company name, with glob match. -+ xtensa*) -+ basic_machine=$basic_machine-unknown -+ ;; -+ # Recognize the various machine names and aliases which stand -+ # for a CPU type and a company and sometimes even an OS. -+ 386bsd) -+ basic_machine=i386-unknown -+ os=-bsd -+ ;; -+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) -+ basic_machine=m68000-att -+ ;; -+ 3b*) -+ basic_machine=we32k-att -+ ;; -+ a29khif) -+ basic_machine=a29k-amd -+ os=-udi -+ ;; -+ abacus) -+ basic_machine=abacus-unknown -+ ;; -+ adobe68k) -+ basic_machine=m68010-adobe -+ os=-scout -+ ;; -+ alliant | fx80) -+ basic_machine=fx80-alliant -+ ;; -+ altos | altos3068) -+ basic_machine=m68k-altos -+ ;; -+ am29k) -+ basic_machine=a29k-none -+ os=-bsd -+ ;; -+ amd64) -+ basic_machine=x86_64-pc -+ ;; -+ amd64-*) -+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` -+ ;; -+ amdahl) -+ basic_machine=580-amdahl -+ os=-sysv -+ ;; -+ amiga | amiga-*) -+ basic_machine=m68k-unknown -+ ;; -+ amigaos | amigados) -+ basic_machine=m68k-unknown -+ os=-amigaos -+ ;; -+ amigaunix | amix) -+ basic_machine=m68k-unknown -+ os=-sysv4 -+ ;; -+ apollo68) -+ basic_machine=m68k-apollo -+ os=-sysv -+ ;; -+ apollo68bsd) -+ basic_machine=m68k-apollo -+ os=-bsd -+ ;; -+ aux) -+ basic_machine=m68k-apple -+ os=-aux -+ ;; -+ balance) -+ basic_machine=ns32k-sequent -+ os=-dynix -+ ;; -+ blackfin) -+ basic_machine=bfin-unknown -+ os=-linux -+ ;; -+ blackfin-*) -+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` -+ os=-linux -+ ;; -+ c90) -+ basic_machine=c90-cray -+ os=-unicos -+ ;; -+ cegcc) -+ basic_machine=arm-unknown -+ os=-cegcc -+ ;; -+ convex-c1) -+ basic_machine=c1-convex -+ os=-bsd -+ ;; -+ convex-c2) -+ basic_machine=c2-convex -+ os=-bsd -+ ;; -+ convex-c32) -+ basic_machine=c32-convex -+ os=-bsd -+ ;; -+ convex-c34) -+ basic_machine=c34-convex -+ os=-bsd -+ ;; -+ convex-c38) -+ basic_machine=c38-convex -+ os=-bsd -+ ;; -+ cray | j90) -+ basic_machine=j90-cray -+ os=-unicos -+ ;; -+ craynv) -+ basic_machine=craynv-cray -+ os=-unicosmp -+ ;; -+ cr16) -+ basic_machine=cr16-unknown -+ os=-elf -+ ;; -+ crds | unos) -+ basic_machine=m68k-crds -+ ;; -+ crisv32 | crisv32-* | etraxfs*) -+ basic_machine=crisv32-axis -+ ;; -+ cris | cris-* | etrax*) -+ basic_machine=cris-axis -+ ;; -+ crx) -+ basic_machine=crx-unknown -+ os=-elf -+ ;; -+ da30 | da30-*) -+ basic_machine=m68k-da30 -+ ;; -+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) -+ basic_machine=mips-dec -+ ;; -+ decsystem10* | dec10*) -+ basic_machine=pdp10-dec -+ os=-tops10 -+ ;; -+ decsystem20* | dec20*) -+ basic_machine=pdp10-dec -+ os=-tops20 -+ ;; -+ delta | 3300 | motorola-3300 | motorola-delta \ -+ | 3300-motorola | delta-motorola) -+ basic_machine=m68k-motorola -+ ;; -+ delta88) -+ basic_machine=m88k-motorola -+ os=-sysv3 -+ ;; -+ dicos) -+ basic_machine=i686-pc -+ os=-dicos -+ ;; -+ djgpp) -+ basic_machine=i586-pc -+ os=-msdosdjgpp -+ ;; -+ dpx20 | dpx20-*) -+ basic_machine=rs6000-bull -+ os=-bosx -+ ;; -+ dpx2* | dpx2*-bull) -+ basic_machine=m68k-bull -+ os=-sysv3 -+ ;; -+ ebmon29k) -+ basic_machine=a29k-amd -+ os=-ebmon -+ ;; -+ elxsi) -+ basic_machine=elxsi-elxsi -+ os=-bsd -+ ;; -+ encore | umax | mmax) -+ basic_machine=ns32k-encore -+ ;; -+ es1800 | OSE68k | ose68k | ose | OSE) -+ basic_machine=m68k-ericsson -+ os=-ose -+ ;; -+ fx2800) -+ basic_machine=i860-alliant -+ ;; -+ genix) -+ basic_machine=ns32k-ns -+ ;; -+ gmicro) -+ basic_machine=tron-gmicro -+ os=-sysv -+ ;; -+ go32) -+ basic_machine=i386-pc -+ os=-go32 -+ ;; -+ h3050r* | hiux*) -+ basic_machine=hppa1.1-hitachi -+ os=-hiuxwe2 -+ ;; -+ h8300hms) -+ basic_machine=h8300-hitachi -+ os=-hms -+ ;; -+ h8300xray) -+ basic_machine=h8300-hitachi -+ os=-xray -+ ;; -+ h8500hms) -+ basic_machine=h8500-hitachi -+ os=-hms -+ ;; -+ harris) -+ basic_machine=m88k-harris -+ os=-sysv3 -+ ;; -+ hp300-*) -+ basic_machine=m68k-hp -+ ;; -+ hp300bsd) -+ basic_machine=m68k-hp -+ os=-bsd -+ ;; -+ hp300hpux) -+ basic_machine=m68k-hp -+ os=-hpux -+ ;; -+ hp3k9[0-9][0-9] | hp9[0-9][0-9]) -+ basic_machine=hppa1.0-hp -+ ;; -+ hp9k2[0-9][0-9] | hp9k31[0-9]) -+ basic_machine=m68000-hp -+ ;; -+ hp9k3[2-9][0-9]) -+ basic_machine=m68k-hp -+ ;; -+ hp9k6[0-9][0-9] | hp6[0-9][0-9]) -+ basic_machine=hppa1.0-hp -+ ;; -+ hp9k7[0-79][0-9] | hp7[0-79][0-9]) -+ basic_machine=hppa1.1-hp -+ ;; -+ hp9k78[0-9] | hp78[0-9]) -+ # FIXME: really hppa2.0-hp -+ basic_machine=hppa1.1-hp -+ ;; -+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) -+ # FIXME: really hppa2.0-hp -+ basic_machine=hppa1.1-hp -+ ;; -+ hp9k8[0-9][13679] | hp8[0-9][13679]) -+ basic_machine=hppa1.1-hp -+ ;; -+ hp9k8[0-9][0-9] | hp8[0-9][0-9]) -+ basic_machine=hppa1.0-hp -+ ;; -+ hppa-next) -+ os=-nextstep3 -+ ;; -+ hppaosf) -+ basic_machine=hppa1.1-hp -+ os=-osf -+ ;; -+ hppro) -+ basic_machine=hppa1.1-hp -+ os=-proelf -+ ;; -+ i370-ibm* | ibm*) -+ basic_machine=i370-ibm -+ ;; -+# I'm not sure what "Sysv32" means. Should this be sysv3.2? -+ i*86v32) -+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` -+ os=-sysv32 -+ ;; -+ i*86v4*) -+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` -+ os=-sysv4 -+ ;; -+ i*86v) -+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` -+ os=-sysv -+ ;; -+ i*86sol2) -+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` -+ os=-solaris2 -+ ;; -+ i386mach) -+ basic_machine=i386-mach -+ os=-mach -+ ;; -+ i386-vsta | vsta) -+ basic_machine=i386-unknown -+ os=-vsta -+ ;; -+ iris | iris4d) -+ basic_machine=mips-sgi -+ case $os in -+ -irix*) -+ ;; -+ *) -+ os=-irix4 -+ ;; -+ esac -+ ;; -+ isi68 | isi) -+ basic_machine=m68k-isi -+ os=-sysv -+ ;; -+ m68knommu) -+ basic_machine=m68k-unknown -+ os=-linux -+ ;; -+ m68knommu-*) -+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` -+ os=-linux -+ ;; -+ m88k-omron*) -+ basic_machine=m88k-omron -+ ;; -+ magnum | m3230) -+ basic_machine=mips-mips -+ os=-sysv -+ ;; -+ merlin) -+ basic_machine=ns32k-utek -+ os=-sysv -+ ;; -+ mingw32) -+ basic_machine=i386-pc -+ os=-mingw32 -+ ;; -+ mingw32ce) -+ basic_machine=arm-unknown -+ os=-mingw32ce -+ ;; -+ miniframe) -+ basic_machine=m68000-convergent -+ ;; -+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) -+ basic_machine=m68k-atari -+ os=-mint -+ ;; -+ mips3*-*) -+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` -+ ;; -+ mips3*) -+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown -+ ;; -+ monitor) -+ basic_machine=m68k-rom68k -+ os=-coff -+ ;; -+ morphos) -+ basic_machine=powerpc-unknown -+ os=-morphos -+ ;; -+ msdos) -+ basic_machine=i386-pc -+ os=-msdos -+ ;; -+ ms1-*) -+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` -+ ;; -+ mvs) -+ basic_machine=i370-ibm -+ os=-mvs -+ ;; -+ ncr3000) -+ basic_machine=i486-ncr -+ os=-sysv4 -+ ;; -+ netbsd386) -+ basic_machine=i386-unknown -+ os=-netbsd -+ ;; -+ netwinder) -+ basic_machine=armv4l-rebel -+ os=-linux -+ ;; -+ news | news700 | news800 | news900) -+ basic_machine=m68k-sony -+ os=-newsos -+ ;; -+ news1000) -+ basic_machine=m68030-sony -+ os=-newsos -+ ;; -+ news-3600 | risc-news) -+ basic_machine=mips-sony -+ os=-newsos -+ ;; -+ necv70) -+ basic_machine=v70-nec -+ os=-sysv -+ ;; -+ next | m*-next ) -+ basic_machine=m68k-next -+ case $os in -+ -nextstep* ) -+ ;; -+ -ns2*) -+ os=-nextstep2 -+ ;; -+ *) -+ os=-nextstep3 -+ ;; -+ esac -+ ;; -+ nh3000) -+ basic_machine=m68k-harris -+ os=-cxux -+ ;; -+ nh[45]000) -+ basic_machine=m88k-harris -+ os=-cxux -+ ;; -+ nindy960) -+ basic_machine=i960-intel -+ os=-nindy -+ ;; -+ mon960) -+ basic_machine=i960-intel -+ os=-mon960 -+ ;; -+ nonstopux) -+ basic_machine=mips-compaq -+ os=-nonstopux -+ ;; -+ np1) -+ basic_machine=np1-gould -+ ;; -+ nsr-tandem) -+ basic_machine=nsr-tandem -+ ;; -+ op50n-* | op60c-*) -+ basic_machine=hppa1.1-oki -+ os=-proelf -+ ;; -+ openrisc | openrisc-*) -+ basic_machine=or32-unknown -+ ;; -+ os400) -+ basic_machine=powerpc-ibm -+ os=-os400 -+ ;; -+ OSE68000 | ose68000) -+ basic_machine=m68000-ericsson -+ os=-ose -+ ;; -+ os68k) -+ basic_machine=m68k-none -+ os=-os68k -+ ;; -+ pa-hitachi) -+ basic_machine=hppa1.1-hitachi -+ os=-hiuxwe2 -+ ;; -+ paragon) -+ basic_machine=i860-intel -+ os=-osf -+ ;; -+ parisc) -+ basic_machine=hppa-unknown -+ os=-linux -+ ;; -+ parisc-*) -+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` -+ os=-linux -+ ;; -+ pbd) -+ basic_machine=sparc-tti -+ ;; -+ pbb) -+ basic_machine=m68k-tti -+ ;; -+ pc532 | pc532-*) -+ basic_machine=ns32k-pc532 -+ ;; -+ pc98) -+ basic_machine=i386-pc -+ ;; -+ pc98-*) -+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` -+ ;; -+ pentium | p5 | k5 | k6 | nexgen | viac3) -+ basic_machine=i586-pc -+ ;; -+ pentiumpro | p6 | 6x86 | athlon | athlon_*) -+ basic_machine=i686-pc -+ ;; -+ pentiumii | pentium2 | pentiumiii | pentium3) -+ basic_machine=i686-pc -+ ;; -+ pentium4) -+ basic_machine=i786-pc -+ ;; -+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) -+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` -+ ;; -+ pentiumpro-* | p6-* | 6x86-* | athlon-*) -+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` -+ ;; -+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) -+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` -+ ;; -+ pentium4-*) -+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` -+ ;; -+ pn) -+ basic_machine=pn-gould -+ ;; -+ power) basic_machine=power-ibm -+ ;; -+ ppc) basic_machine=powerpc-unknown -+ ;; -+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` -+ ;; -+ ppcle | powerpclittle | ppc-le | powerpc-little) -+ basic_machine=powerpcle-unknown -+ ;; -+ ppcle-* | powerpclittle-*) -+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` -+ ;; -+ ppc64) basic_machine=powerpc64-unknown -+ ;; -+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` -+ ;; -+ ppc64le | powerpc64little | ppc64-le | powerpc64-little) -+ basic_machine=powerpc64le-unknown -+ ;; -+ ppc64le-* | powerpc64little-*) -+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` -+ ;; -+ ps2) -+ basic_machine=i386-ibm -+ ;; -+ pw32) -+ basic_machine=i586-unknown -+ os=-pw32 -+ ;; -+ rdos) -+ basic_machine=i386-pc -+ os=-rdos -+ ;; -+ rom68k) -+ basic_machine=m68k-rom68k -+ os=-coff -+ ;; -+ rm[46]00) -+ basic_machine=mips-siemens -+ ;; -+ rtpc | rtpc-*) -+ basic_machine=romp-ibm -+ ;; -+ s390 | s390-*) -+ basic_machine=s390-ibm -+ ;; -+ s390x | s390x-*) -+ basic_machine=s390x-ibm -+ ;; -+ sa29200) -+ basic_machine=a29k-amd -+ os=-udi -+ ;; -+ sb1) -+ basic_machine=mipsisa64sb1-unknown -+ ;; -+ sb1el) -+ basic_machine=mipsisa64sb1el-unknown -+ ;; -+ sde) -+ basic_machine=mipsisa32-sde -+ os=-elf -+ ;; -+ sei) -+ basic_machine=mips-sei -+ os=-seiux -+ ;; -+ sequent) -+ basic_machine=i386-sequent -+ ;; -+ sh) -+ basic_machine=sh-hitachi -+ os=-hms -+ ;; -+ sh5el) -+ basic_machine=sh5le-unknown -+ ;; -+ sh64) -+ basic_machine=sh64-unknown -+ ;; -+ sparclite-wrs | simso-wrs) -+ basic_machine=sparclite-wrs -+ os=-vxworks -+ ;; -+ sps7) -+ basic_machine=m68k-bull -+ os=-sysv2 -+ ;; -+ spur) -+ basic_machine=spur-unknown -+ ;; -+ st2000) -+ basic_machine=m68k-tandem -+ ;; -+ stratus) -+ basic_machine=i860-stratus -+ os=-sysv4 -+ ;; -+ sun2) -+ basic_machine=m68000-sun -+ ;; -+ sun2os3) -+ basic_machine=m68000-sun -+ os=-sunos3 -+ ;; -+ sun2os4) -+ basic_machine=m68000-sun -+ os=-sunos4 -+ ;; -+ sun3os3) -+ basic_machine=m68k-sun -+ os=-sunos3 -+ ;; -+ sun3os4) -+ basic_machine=m68k-sun -+ os=-sunos4 -+ ;; -+ sun4os3) -+ basic_machine=sparc-sun -+ os=-sunos3 -+ ;; -+ sun4os4) -+ basic_machine=sparc-sun -+ os=-sunos4 -+ ;; -+ sun4sol2) -+ basic_machine=sparc-sun -+ os=-solaris2 -+ ;; -+ sun3 | sun3-*) -+ basic_machine=m68k-sun -+ ;; -+ sun4) -+ basic_machine=sparc-sun -+ ;; -+ sun386 | sun386i | roadrunner) -+ basic_machine=i386-sun -+ ;; -+ sv1) -+ basic_machine=sv1-cray -+ os=-unicos -+ ;; -+ symmetry) -+ basic_machine=i386-sequent -+ os=-dynix -+ ;; -+ t3e) -+ basic_machine=alphaev5-cray -+ os=-unicos -+ ;; -+ t90) -+ basic_machine=t90-cray -+ os=-unicos -+ ;; -+ tic54x | c54x*) -+ basic_machine=tic54x-unknown -+ os=-coff -+ ;; -+ tic55x | c55x*) -+ basic_machine=tic55x-unknown -+ os=-coff -+ ;; -+ tic6x | c6x*) -+ basic_machine=tic6x-unknown -+ os=-coff -+ ;; -+ tile*) -+ basic_machine=tile-unknown -+ os=-linux-gnu -+ ;; -+ tx39) -+ basic_machine=mipstx39-unknown -+ ;; -+ tx39el) -+ basic_machine=mipstx39el-unknown -+ ;; -+ toad1) -+ basic_machine=pdp10-xkl -+ os=-tops20 -+ ;; -+ tower | tower-32) -+ basic_machine=m68k-ncr -+ ;; -+ tpf) -+ basic_machine=s390x-ibm -+ os=-tpf -+ ;; -+ udi29k) -+ basic_machine=a29k-amd -+ os=-udi -+ ;; -+ ultra3) -+ basic_machine=a29k-nyu -+ os=-sym1 -+ ;; -+ v810 | necv810) -+ basic_machine=v810-nec -+ os=-none -+ ;; -+ vaxv) -+ basic_machine=vax-dec -+ os=-sysv -+ ;; -+ vms) -+ basic_machine=vax-dec -+ os=-vms -+ ;; -+ vpp*|vx|vx-*) -+ basic_machine=f301-fujitsu -+ ;; -+ vxworks960) -+ basic_machine=i960-wrs -+ os=-vxworks -+ ;; -+ vxworks68) -+ basic_machine=m68k-wrs -+ os=-vxworks -+ ;; -+ vxworks29k) -+ basic_machine=a29k-wrs -+ os=-vxworks -+ ;; -+ w65*) -+ basic_machine=w65-wdc -+ os=-none -+ ;; -+ w89k-*) -+ basic_machine=hppa1.1-winbond -+ os=-proelf -+ ;; -+ xbox) -+ basic_machine=i686-pc -+ os=-mingw32 -+ ;; -+ xps | xps100) -+ basic_machine=xps100-honeywell -+ ;; -+ ymp) -+ basic_machine=ymp-cray -+ os=-unicos -+ ;; -+ z8k-*-coff) -+ basic_machine=z8k-unknown -+ os=-sim -+ ;; -+ z80-*-coff) -+ basic_machine=z80-unknown -+ os=-sim -+ ;; -+ none) -+ basic_machine=none-none -+ os=-none -+ ;; -+ -+# Here we handle the default manufacturer of certain CPU types. It is in -+# some cases the only manufacturer, in others, it is the most popular. -+ w89k) -+ basic_machine=hppa1.1-winbond -+ ;; -+ op50n) -+ basic_machine=hppa1.1-oki -+ ;; -+ op60c) -+ basic_machine=hppa1.1-oki -+ ;; -+ romp) -+ basic_machine=romp-ibm -+ ;; -+ mmix) -+ basic_machine=mmix-knuth -+ ;; -+ rs6000) -+ basic_machine=rs6000-ibm -+ ;; -+ vax) -+ basic_machine=vax-dec -+ ;; -+ pdp10) -+ # there are many clones, so DEC is not a safe bet -+ basic_machine=pdp10-unknown -+ ;; -+ pdp11) -+ basic_machine=pdp11-dec -+ ;; -+ we32k) -+ basic_machine=we32k-att -+ ;; -+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) -+ basic_machine=sh-unknown -+ ;; -+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) -+ basic_machine=sparc-sun -+ ;; -+ cydra) -+ basic_machine=cydra-cydrome -+ ;; -+ orion) -+ basic_machine=orion-highlevel -+ ;; -+ orion105) -+ basic_machine=clipper-highlevel -+ ;; -+ mac | mpw | mac-mpw) -+ basic_machine=m68k-apple -+ ;; -+ pmac | pmac-mpw) -+ basic_machine=powerpc-apple -+ ;; -+ *-unknown) -+ # Make sure to match an already-canonicalized machine name. -+ ;; -+ *) -+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 -+ exit 1 -+ ;; -+esac -+ -+# Here we canonicalize certain aliases for manufacturers. -+case $basic_machine in -+ *-digital*) -+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` -+ ;; -+ *-commodore*) -+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` -+ ;; -+ *) -+ ;; -+esac -+ -+# Decode manufacturer-specific aliases for certain operating systems. -+ -+if [ x"$os" != x"" ] -+then -+case $os in -+ # First match some system type aliases -+ # that might get confused with valid system types. -+ # -solaris* is a basic system type, with this one exception. -+ -solaris1 | -solaris1.*) -+ os=`echo $os | sed -e 's|solaris1|sunos4|'` -+ ;; -+ -solaris) -+ os=-solaris2 -+ ;; -+ -svr4*) -+ os=-sysv4 -+ ;; -+ -unixware*) -+ os=-sysv4.2uw -+ ;; -+ -gnu/linux*) -+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` -+ ;; -+ # First accept the basic system types. -+ # The portable systems comes first. -+ # Each alternative MUST END IN A *, to match a version number. -+ # -sysv* is not here because it comes later, after sysvr4. -+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ -+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ -+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ -+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ -+ | -aos* \ -+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ -+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ -+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ -+ | -openbsd* | -solidbsd* \ -+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ -+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ -+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ -+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ -+ | -chorusos* | -chorusrdb* | -cegcc* \ -+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ -+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ -+ | -uxpv* | -beos* | -mpeix* | -udk* \ -+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ -+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ -+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ -+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ -+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ -+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ -+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) -+ # Remember, each alternative MUST END IN *, to match a version number. -+ ;; -+ -qnx*) -+ case $basic_machine in -+ x86-* | i*86-*) -+ ;; -+ *) -+ os=-nto$os -+ ;; -+ esac -+ ;; -+ -nto-qnx*) -+ ;; -+ -nto*) -+ os=`echo $os | sed -e 's|nto|nto-qnx|'` -+ ;; -+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ -+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ -+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) -+ ;; -+ -mac*) -+ os=`echo $os | sed -e 's|mac|macos|'` -+ ;; -+ -linux-dietlibc) -+ os=-linux-dietlibc -+ ;; -+ -linux*) -+ os=`echo $os | sed -e 's|linux|linux-gnu|'` -+ ;; -+ -sunos5*) -+ os=`echo $os | sed -e 's|sunos5|solaris2|'` -+ ;; -+ -sunos6*) -+ os=`echo $os | sed -e 's|sunos6|solaris3|'` -+ ;; -+ -opened*) -+ os=-openedition -+ ;; -+ -os400*) -+ os=-os400 -+ ;; -+ -wince*) -+ os=-wince -+ ;; -+ -osfrose*) -+ os=-osfrose -+ ;; -+ -osf*) -+ os=-osf -+ ;; -+ -utek*) -+ os=-bsd -+ ;; -+ -dynix*) -+ os=-bsd -+ ;; -+ -acis*) -+ os=-aos -+ ;; -+ -atheos*) -+ os=-atheos -+ ;; -+ -syllable*) -+ os=-syllable -+ ;; -+ -386bsd) -+ os=-bsd -+ ;; -+ -ctix* | -uts*) -+ os=-sysv -+ ;; -+ -nova*) -+ os=-rtmk-nova -+ ;; -+ -ns2 ) -+ os=-nextstep2 -+ ;; -+ -nsk*) -+ os=-nsk -+ ;; -+ # Preserve the version number of sinix5. -+ -sinix5.*) -+ os=`echo $os | sed -e 's|sinix|sysv|'` -+ ;; -+ -sinix*) -+ os=-sysv4 -+ ;; -+ -tpf*) -+ os=-tpf -+ ;; -+ -triton*) -+ os=-sysv3 -+ ;; -+ -oss*) -+ os=-sysv3 -+ ;; -+ -svr4) -+ os=-sysv4 -+ ;; -+ -svr3) -+ os=-sysv3 -+ ;; -+ -sysvr4) -+ os=-sysv4 -+ ;; -+ # This must come after -sysvr4. -+ -sysv*) -+ ;; -+ -ose*) -+ os=-ose -+ ;; -+ -es1800*) -+ os=-ose -+ ;; -+ -xenix) -+ os=-xenix -+ ;; -+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) -+ os=-mint -+ ;; -+ -aros*) -+ os=-aros -+ ;; -+ -kaos*) -+ os=-kaos -+ ;; -+ -zvmoe) -+ os=-zvmoe -+ ;; -+ -dicos*) -+ os=-dicos -+ ;; -+ -none) -+ ;; -+ *) -+ # Get rid of the `-' at the beginning of $os. -+ os=`echo $os | sed 's/[^-]*-//'` -+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 -+ exit 1 -+ ;; -+esac -+else -+ -+# Here we handle the default operating systems that come with various machines. -+# The value should be what the vendor currently ships out the door with their -+# machine or put another way, the most popular os provided with the machine. -+ -+# Note that if you're going to try to match "-MANUFACTURER" here (say, -+# "-sun"), then you have to tell the case statement up towards the top -+# that MANUFACTURER isn't an operating system. Otherwise, code above -+# will signal an error saying that MANUFACTURER isn't an operating -+# system, and we'll never get to this point. -+ -+case $basic_machine in -+ score-*) -+ os=-elf -+ ;; -+ spu-*) -+ os=-elf -+ ;; -+ *-acorn) -+ os=-riscix1.2 -+ ;; -+ arm*-rebel) -+ os=-linux -+ ;; -+ arm*-semi) -+ os=-aout -+ ;; -+ c4x-* | tic4x-*) -+ os=-coff -+ ;; -+ # This must come before the *-dec entry. -+ pdp10-*) -+ os=-tops20 -+ ;; -+ pdp11-*) -+ os=-none -+ ;; -+ *-dec | vax-*) -+ os=-ultrix4.2 -+ ;; -+ m68*-apollo) -+ os=-domain -+ ;; -+ i386-sun) -+ os=-sunos4.0.2 -+ ;; -+ m68000-sun) -+ os=-sunos3 -+ # This also exists in the configure program, but was not the -+ # default. -+ # os=-sunos4 -+ ;; -+ m68*-cisco) -+ os=-aout -+ ;; -+ mep-*) -+ os=-elf -+ ;; -+ mips*-cisco) -+ os=-elf -+ ;; -+ mips*-*) -+ os=-elf -+ ;; -+ or32-*) -+ os=-coff -+ ;; -+ *-tti) # must be before sparc entry or we get the wrong os. -+ os=-sysv3 -+ ;; -+ sparc-* | *-sun) -+ os=-sunos4.1.1 -+ ;; -+ *-be) -+ os=-beos -+ ;; -+ *-haiku) -+ os=-haiku -+ ;; -+ *-ibm) -+ os=-aix -+ ;; -+ *-knuth) -+ os=-mmixware -+ ;; -+ *-wec) -+ os=-proelf -+ ;; -+ *-winbond) -+ os=-proelf -+ ;; -+ *-oki) -+ os=-proelf -+ ;; -+ *-hp) -+ os=-hpux -+ ;; -+ *-hitachi) -+ os=-hiux -+ ;; -+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) -+ os=-sysv -+ ;; -+ *-cbm) -+ os=-amigaos -+ ;; -+ *-dg) -+ os=-dgux -+ ;; -+ *-dolphin) -+ os=-sysv3 -+ ;; -+ m68k-ccur) -+ os=-rtu -+ ;; -+ m88k-omron*) -+ os=-luna -+ ;; -+ *-next ) -+ os=-nextstep -+ ;; -+ *-sequent) -+ os=-ptx -+ ;; -+ *-crds) -+ os=-unos -+ ;; -+ *-ns) -+ os=-genix -+ ;; -+ i370-*) -+ os=-mvs -+ ;; -+ *-next) -+ os=-nextstep3 -+ ;; -+ *-gould) -+ os=-sysv -+ ;; -+ *-highlevel) -+ os=-bsd -+ ;; -+ *-encore) -+ os=-bsd -+ ;; -+ *-sgi) -+ os=-irix -+ ;; -+ *-siemens) -+ os=-sysv4 -+ ;; -+ *-masscomp) -+ os=-rtu -+ ;; -+ f30[01]-fujitsu | f700-fujitsu) -+ os=-uxpv -+ ;; -+ *-rom68k) -+ os=-coff -+ ;; -+ *-*bug) -+ os=-coff -+ ;; -+ *-apple) -+ os=-macos -+ ;; -+ *-atari*) -+ os=-mint -+ ;; -+ *) -+ os=-none -+ ;; -+esac -+fi -+ -+# Here we handle the case where we know the os, and the CPU type, but not the -+# manufacturer. We pick the logical manufacturer. -+vendor=unknown -+case $basic_machine in -+ *-unknown) -+ case $os in -+ -riscix*) -+ vendor=acorn -+ ;; -+ -sunos*) -+ vendor=sun -+ ;; -+ -aix*) -+ vendor=ibm -+ ;; -+ -beos*) -+ vendor=be -+ ;; -+ -hpux*) -+ vendor=hp -+ ;; -+ -mpeix*) -+ vendor=hp -+ ;; -+ -hiux*) -+ vendor=hitachi -+ ;; -+ -unos*) -+ vendor=crds -+ ;; -+ -dgux*) -+ vendor=dg -+ ;; -+ -luna*) -+ vendor=omron -+ ;; -+ -genix*) -+ vendor=ns -+ ;; -+ -mvs* | -opened*) -+ vendor=ibm -+ ;; -+ -os400*) -+ vendor=ibm -+ ;; -+ -ptx*) -+ vendor=sequent -+ ;; -+ -tpf*) -+ vendor=ibm -+ ;; -+ -vxsim* | -vxworks* | -windiss*) -+ vendor=wrs -+ ;; -+ -aux*) -+ vendor=apple -+ ;; -+ -hms*) -+ vendor=hitachi -+ ;; -+ -mpw* | -macos*) -+ vendor=apple -+ ;; -+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) -+ vendor=atari -+ ;; -+ -vos*) -+ vendor=stratus -+ ;; -+ esac -+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` -+ ;; -+esac -+ -+echo $basic_machine$os -+exit -+ -+# Local variables: -+# eval: (add-hook 'write-file-hooks 'time-stamp) -+# time-stamp-start: "timestamp='" -+# time-stamp-format: "%:y-%02m-%02d" -+# time-stamp-end: "'" -+# End: -diff -Nbaur newlib-1.17.0/configure newlib-1.17.0-psp/configure ---- newlib-1.17.0/configure 2008-12-16 12:31:18.000000000 +0000 -+++ newlib-1.17.0-psp/configure 2009-02-11 09:56:27.000000000 +0000 -@@ -2616,6 +2616,9 @@ - mips*-*-linux*) - noconfigdirs="$noconfigdirs target-newlib target-libgloss" - ;; -+ mipsallegrex*-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss" -+ ;; - mips*-*-*) - noconfigdirs="$noconfigdirs gprof ${libgcj}" - libgloss_dir=mips -diff -Nbaur newlib-1.17.0/configure.ac newlib-1.17.0-psp/configure.ac ---- newlib-1.17.0/configure.ac 2008-12-16 12:31:18.000000000 +0000 -+++ newlib-1.17.0-psp/configure.ac 2009-02-11 09:56:27.000000000 +0000 -@@ -852,6 +852,9 @@ - mips*-*-linux*) - noconfigdirs="$noconfigdirs target-newlib target-libgloss" - ;; -+ mipsallegrex*-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss" -+ ;; - mips*-*-*) - noconfigdirs="$noconfigdirs gprof ${libgcj}" - libgloss_dir=mips -diff -Nbaur newlib-1.17.0/configure.ac.orig newlib-1.17.0-psp/configure.ac.orig ---- newlib-1.17.0/configure.ac.orig 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/configure.ac.orig 2008-12-16 12:31:18.000000000 +0000 -@@ -0,0 +1,2949 @@ -+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, -+# 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, -+# Inc. -+# -+# This file is free software; you can redistribute it and/or modify it -+# under the terms of the GNU General Public License as published by -+# the Free Software Foundation; either version 2 of the License, or -+# (at your option) any later version. -+# -+# This program is distributed in the hope that it will be useful, but -+# WITHOUT ANY WARRANTY; without even the implied warranty of -+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+# General Public License for more details. -+# -+# You should have received a copy of the GNU General Public License -+# along with this program; if not, write to the Free Software -+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -+ -+############################################################################## -+### WARNING: this file contains embedded tabs. Do not run untabify on this file. -+ -+m4_include(config/acx.m4) -+m4_include(config/override.m4) -+m4_include(config/proginstall.m4) -+ -+AC_INIT(move-if-change) -+AC_PREREQ(2.59) -+ -+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. -+# 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 -+if test "$silent" = yes; then -+ TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" -+fi -+# 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'` -+AC_SUBST(TOPLEVEL_CONFIGURE_ARGUMENTS) -+ -+# Find the build, host, and target systems. -+ACX_NONCANONICAL_BUILD -+ACX_NONCANONICAL_HOST -+ACX_NONCANONICAL_TARGET -+ -+dnl Autoconf 2.5x and later will set a default program prefix if -+dnl --target was used, even if it was the same as --host. Disable -+dnl that behavior. This must be done before AC_CANONICAL_SYSTEM -+dnl to take effect. -+test "$host_noncanonical" = "$target_noncanonical" && -+ test "$program_prefix$program_suffix$program_transform_name" = \ -+ NONENONEs,x,x, && -+ program_transform_name=s,y,y, -+ -+AC_CANONICAL_SYSTEM -+AC_ARG_PROGRAM -+ -+m4_pattern_allow([^AS_FOR_TARGET$])dnl -+m4_pattern_allow([^AS_FOR_BUILD$])dnl -+ -+# Get 'install' or 'install-sh' and its variants. -+AC_PROG_INSTALL -+ACX_PROG_LN -+AC_PROG_LN_S -+ -+### we might need to use some other shell than /bin/sh for running subshells -+### If we are on Windows, search for the shell. This will permit people -+### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure -+### without also having to set CONFIG_SHELL. This code will work when -+### using bash, which sets OSTYPE. -+case "${OSTYPE}" in -+*win32*) -+ if test x${CONFIG_SHELL} = x ; then -+ if test ! -f /bin/sh ; then -+ if test x${SHELL} != x && test -f ${SHELL} ; then -+ CONFIG_SHELL=${SHELL} -+ export CONFIG_SHELL -+ else -+ for prog in sh sh.exe bash bash.exe; do -+ IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" -+ for dir in $PATH; do -+ test -z "$dir" && dir=. -+ if test -f $dir/$prog; then -+ CONFIG_SHELL=$dir/$prog -+ export CONFIG_SHELL -+ break -+ fi -+ done -+ IFS="$save_ifs" -+ test -n "${CONFIG_SHELL}" && break -+ done -+ fi -+ fi -+ fi -+ ;; -+esac -+ -+config_shell=${CONFIG_SHELL-/bin/sh} -+ -+moveifchange=${srcdir}/move-if-change -+ -+srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` -+ -+# We pass INSTALL explicitly to sub-makes. Make sure that it is not -+# a relative path. -+if test "$INSTALL" = "${srcdir}/install-sh -c"; then -+ INSTALL="${srcpwd}/install-sh -c" -+fi -+ -+# Set srcdir to "." if that's what it is. -+# This is important for multilib support. -+pwd=`${PWDCMD-pwd}` -+if test "${pwd}" = "${srcpwd}" ; then -+ srcdir=. -+fi -+ -+topsrcdir=$srcpwd -+ -+extra_host_args= -+ -+### To add a new directory to the tree, first choose whether it is a target -+### or a host dependent tool. Then put it into the appropriate list -+### (library or tools, host or target), doing a dependency sort. -+ -+# Subdirs will be configured in the order listed in build_configdirs, -+# configdirs, or target_configdirs; see the serialization section below. -+ -+# Dependency sorting is only needed when *configuration* must be done in -+# a particular order. In all cases a dependency should be specified in -+# the Makefile, whether or not it's implicitly specified here. -+ -+# Double entries in build_configdirs, configdirs, or target_configdirs may -+# cause circular dependencies and break everything horribly. -+ -+# these library is used by various programs built for the build -+# environment -+# -+build_libs="build-libiberty" -+ -+# these tools are built for the build environment -+build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes" -+ -+# these libraries are used by various programs built for the host environment -+# -+host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog" -+ -+# these tools are built for the host environment -+# Note, the powerpc-eabi build depends on sim occurring before gdb in order to -+# know that we are building the simulator. -+# binutils, gas and ld appear in that order because it makes sense to run -+# "make check" in that particular order. -+# If --enable-gold is used, "gold" will replace "ld". -+host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" -+ -+# libgcj represents the runtime libraries only used by gcj. -+libgcj="target-libffi \ -+ target-zlib \ -+ target-qthreads \ -+ target-libjava" -+ -+# 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-libgcc \ -+ target-libiberty \ -+ target-libgloss \ -+ target-newlib \ -+ target-libgomp \ -+ target-libstdc++-v3 \ -+ target-libmudflap \ -+ target-libssp \ -+ target-libgfortran \ -+ target-boehm-gc \ -+ ${libgcj} \ -+ target-libobjc \ -+ target-libada" -+ -+# these tools are built using the target libraries, and are intended to -+# run only in the target environment -+# -+# note: any program that *uses* libraries that are in the "target_libraries" -+# list belongs in this list. those programs are also very likely -+# candidates for the "native_only" list which follows -+# -+target_tools="target-examples target-groff target-gperf target-rda" -+ -+################################################################################ -+ -+## All tools belong in one of the four categories, and are assigned above -+## We assign ${configdirs} this way to remove all embedded newlines. This -+## is important because configure will choke if they ever get through. -+## ${configdirs} is directories we build using the host tools. -+## ${target_configdirs} is directories we build using the target tools. -+configdirs=`echo ${host_libs} ${host_tools}` -+target_configdirs=`echo ${target_libraries} ${target_tools}` -+build_configdirs=`echo ${build_libs} ${build_tools}` -+ -+m4_divert_text([PARSE_ARGS], -+[ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` -+]) -+ -+################################################################################ -+ -+srcname="gnu development package" -+ -+# This gets set non-empty for some net releases of packages. -+appdirs="" -+ -+# Define is_cross_compiler to save on calls to 'test'. -+is_cross_compiler= -+if test x"${host}" = x"${target}" ; then -+ is_cross_compiler=no -+else -+ is_cross_compiler=yes -+fi -+ -+# Find the build and target subdir names. -+GCC_TOPLEV_SUBDIRS -+ -+# Skipdirs are removed silently. -+skipdirs= -+# Noconfigdirs are removed loudly. -+noconfigdirs="" -+ -+use_gnu_ld= -+# Make sure we don't let GNU ld be added if we didn't want it. -+if test x$with_gnu_ld = xno ; then -+ use_gnu_ld=no -+ noconfigdirs="$noconfigdirs ld gold" -+fi -+ -+use_gnu_as= -+# Make sure we don't let GNU as be added if we didn't want it. -+if test x$with_gnu_as = xno ; then -+ use_gnu_as=no -+ noconfigdirs="$noconfigdirs gas" -+fi -+ -+# some tools are so dependent upon X11 that if we're not building with X, -+# it's not even worth trying to configure, much less build, that tool. -+ -+case ${with_x} in -+ yes | "") ;; # the default value for this tree is that X11 is available -+ no) -+ skipdirs="${skipdirs} tk itcl libgui" -+ # We won't be able to build gdbtk without X. -+ enable_gdbtk=no -+ ;; -+ *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; -+esac -+ -+# Some tools are only suitable for building in a "native" situation. -+# Remove these if host!=target. -+native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" -+ -+# Similarly, some are only suitable for cross toolchains. -+# Remove these if host=target. -+cross_only="target-libgloss target-newlib target-opcodes" -+ -+case $is_cross_compiler in -+ no) skipdirs="${skipdirs} ${cross_only}" ;; -+ yes) skipdirs="${skipdirs} ${native_only}" ;; -+esac -+ -+# If both --with-headers and --with-libs are specified, default to -+# --without-newlib. -+if test x"${with_headers}" != x && test x"${with_headers}" != xno \ -+ && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then -+ if test x"${with_newlib}" = x ; then -+ with_newlib=no -+ fi -+fi -+ -+# Recognize --with-newlib/--without-newlib. -+case ${with_newlib} in -+ no) skipdirs="${skipdirs} target-newlib" ;; -+ yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; -+esac -+ -+# Handle --enable-gold. -+ -+AC_ARG_ENABLE(gold, -+[ --enable-gold use gold instead of ld], -+ENABLE_GOLD=$enableval, -+ENABLE_GOLD=no) -+if test "${ENABLE_GOLD}" = "yes"; then -+ # Check for ELF target. -+ is_elf=no -+ case "${target}" in -+ *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ -+ | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ -+ | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*) -+ case "${target}" in -+ *-*-linux*aout* | *-*-linux*oldld*) -+ ;; -+ *) -+ is_elf=yes -+ ;; -+ esac -+ esac -+ -+ if test "$is_elf" = "yes"; then -+ # Check for target supported by gold. -+ case "${target}" in -+ i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*) -+ configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`" -+ ;; -+ esac -+ fi -+fi -+ -+# Configure extra directories which are host specific -+ -+case "${host}" in -+ *-cygwin*) -+ configdirs="$configdirs libtermcap" ;; -+esac -+ -+# A target can indicate whether a language isn't supported for some reason. -+# Only spaces may be used in this macro; not newlines or tabs. -+unsupported_languages= -+ -+# Remove more programs from consideration, based on the host or -+# target this usually means that a port of the program doesn't -+# exist yet. -+ -+case "${host}" in -+ hppa*64*-*-*) -+ noconfigdirs="$noconfigdirs byacc" -+ ;; -+ i[[3456789]]86-*-vsta) -+ noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext" -+ ;; -+ i[[3456789]]86-*-go32* | i[[3456789]]86-*-msdosdjgpp*) -+ noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi" -+ ;; -+ x86_64-*-mingw*) -+ noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" -+ ;; -+ i[[3456789]]86-*-mingw32*) -+ # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv" -+ noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" -+ ;; -+ i[[3456789]]86-*-beos*) -+ noconfigdirs="$noconfigdirs tk itcl libgui gdb" -+ ;; -+ *-*-cygwin*) -+ noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" -+ ;; -+ *-*-netbsd*) -+ noconfigdirs="$noconfigdirs rcs" -+ ;; -+ ppc*-*-pe) -+ noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv" -+ ;; -+ powerpc-*-beos*) -+ noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline" -+ ;; -+esac -+ -+ -+AC_ARG_ENABLE(libada, -+[ --enable-libada build libada directory], -+ENABLE_LIBADA=$enableval, -+ENABLE_LIBADA=yes) -+if test "${ENABLE_LIBADA}" != "yes" ; then -+ noconfigdirs="$noconfigdirs gnattools" -+fi -+ -+AC_ARG_ENABLE(libssp, -+[ --enable-libssp build libssp directory], -+ENABLE_LIBSSP=$enableval, -+ENABLE_LIBSSP=yes) -+ -+# Save it here so that, even in case of --enable-libgcj, if the Java -+# front-end isn't enabled, we still get libgcj disabled. -+libgcj_saved=$libgcj -+case $enable_libgcj in -+yes) -+ # If we reset it here, it won't get added to noconfigdirs in the -+ # target-specific build rules, so it will be forcibly enabled -+ # (unless the Java language itself isn't enabled). -+ libgcj= -+ ;; -+no) -+ # Make sure we get it printed in the list of not supported target libs. -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+esac -+ -+ -+# Disable libmudflap on some systems. -+if test x$enable_libmudflap = x ; then -+ case "${target}" in -+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*) -+ # Enable libmudflap by default in GNU and friends. -+ ;; -+ *-*-freebsd*) -+ # Enable libmudflap by default in FreeBSD. -+ ;; -+ *) -+ # Disable it by default everywhere else. -+ noconfigdirs="$noconfigdirs target-libmudflap" -+ ;; -+ esac -+fi -+ -+# Disable libgomp on non POSIX hosted systems. -+if test x$enable_libgomp = x ; then -+ # Enable libgomp by default on hosted POSIX systems. -+ case "${target}" in -+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) -+ ;; -+ *-*-netbsd* | *-*-freebsd* | *-*-openbsd*) -+ ;; -+ *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*) -+ ;; -+ *-*-darwin* | *-*-aix*) -+ ;; -+ *) -+ noconfigdirs="$noconfigdirs target-libgomp" -+ ;; -+ esac -+fi -+ -+# Default libgloss CPU subdirectory. -+libgloss_dir="$target_cpu" -+ -+case "${target}" in -+ *-*-chorusos) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" -+ ;; -+ powerpc-*-darwin* | x86_64-*-darwin[[912]]*) -+ noconfigdirs="$noconfigdirs ld gas gdb gprof" -+ noconfigdirs="$noconfigdirs sim target-rda" -+ ;; -+ i[[3456789]]86-*-darwin*) -+ noconfigdirs="$noconfigdirs ld gas gprof" -+ noconfigdirs="$noconfigdirs sim target-rda" -+ ;; -+ *-*-darwin*) -+ noconfigdirs="$noconfigdirs ld gas gdb gprof" -+ noconfigdirs="$noconfigdirs sim target-rda" -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ *-*-freebsd[[12]] | *-*-freebsd[[12]].* | *-*-freebsd*aout*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" -+ ;; -+ *-*-freebsd*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss" -+ if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ -+ && test -f /usr/local/include/gmp.h; then -+ with_gmp=/usr/local -+ fi -+ -+ # Skip some stuff that's unsupported on some FreeBSD configurations. -+ case "${target}" in -+ i*86-*-*) ;; -+ alpha*-*-*) ;; -+ *) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ esac -+ ;; -+ *-*-kaos*) -+ # Remove unsupported stuff on all kaOS configurations. -+ skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx" -+ skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" -+ skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" -+ noconfigdirs="$noconfigdirs target-libgloss" -+ ;; -+ *-*-netbsd*) -+ # Skip some stuff on all NetBSD configurations. -+ noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" -+ -+ # Skip some stuff that's unsupported on some NetBSD configurations. -+ case "${target}" in -+ i*86-*-netbsdelf*) ;; -+ arm*-*-netbsdelf*) ;; -+ *) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ esac -+ ;; -+ *-*-netware*) -+ noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" -+ ;; -+ *-*-rtems*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ # The tpf target doesn't support gdb yet. -+ *-*-tpf*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl" -+ ;; -+ *-*-uclinux*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" -+ ;; -+ *-*-vxworks*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}" -+ ;; -+ alpha*-dec-osf*) -+ # ld works, but does not support shared libraries. -+ # newlib is not 64 bit ready. I'm not sure about fileutils. -+ # gas doesn't generate exception information. -+ noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" -+ ;; -+ alpha*-*-*vms*) -+ noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" -+ ;; -+ alpha*-*-linux*) -+ # newlib is not 64 bit ready -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss" -+ ;; -+ alpha*-*-*) -+ # newlib is not 64 bit ready -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" -+ ;; -+ am33_2.0-*-linux*) -+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" -+ ;; -+ sh-*-linux*) -+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" -+ ;; -+ sh*-*-pe|mips*-*-pe|*arm-wince-pe) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ noconfigdirs="$noconfigdirs target-examples" -+ noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" -+ noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" -+ noconfigdirs="$noconfigdirs expect dejagnu" -+ # the C++ libraries don't build on top of CE's C libraries -+ noconfigdirs="$noconfigdirs target-libstdc++-v3" -+ noconfigdirs="$noconfigdirs target-newlib" -+ case "${host}" in -+ *-*-cygwin*) ;; # keep gdb and readline -+ *) noconfigdirs="$noconfigdirs gdb readline" -+ ;; -+ esac -+ libgloss_dir=wince -+ ;; -+ arc-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ arm-semi-aof ) -+ ;; -+ arm-*-coff | strongarm-*-coff | xscale-*-coff) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ libgloss_dir=arm -+ ;; -+ arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* ) -+ noconfigdirs="$noconfigdirs target-libffi target-qthreads" -+ libgloss_dir=arm -+ ;; -+ arm*-*-linux-gnueabi) -+ noconfigdirs="$noconfigdirs target-qthreads" -+ case ${with_newlib} in -+ no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" -+ esac -+ libgloss_dir=arm -+ ;; -+ arm*-*-symbianelf*) -+ noconfigdirs="$noconfigdirs ${libgcj} target-libiberty" -+ libgloss_dir=arm -+ ;; -+ arm-*-pe*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ thumb-*-coff) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ thumb-*-elf) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ thumb-*-pe) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ arm-*-riscix*) -+ noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" -+ ;; -+ avr-*-*) -+ noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp" -+ ;; -+ bfin-*-*) -+ noconfigdirs="$noconfigdirs gdb" -+ if test x${is_cross_compiler} != xno ; then -+ target_configdirs="${target_configdirs} target-bsp target-cygmon" -+ fi -+ ;; -+ c4x-*-* | tic4x-*-*) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" -+ ;; -+ c54x*-*-* | tic54x-*-*) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" -+ ;; -+ cr16-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj} gdb" -+ ;; -+ cris-*-* | crisv32-*-*) -+ unsupported_languages="$unsupported_languages java" -+ case "${target}" in -+ *-*-aout) -+ unsupported_languages="$unsupported_languages fortran" -+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; -+ *-*-elf) -+ noconfigdirs="$noconfigdirs target-boehm-gc";; -+ *-*-linux*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss";; -+ *) -+ unsupported_languages="$unsupported_languages fortran" -+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; -+ esac -+ libgloss_dir=cris -+ ;; -+ crx-*-*) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}" -+ ;; -+ d10v-*-*) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" -+ ;; -+ d30v-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj} gdb" -+ ;; -+ ep9312-*-elf | ep9312-*-coff) -+ libgloss_dir=arm -+ ;; -+ fr30-*-elf*) -+ noconfigdirs="$noconfigdirs ${libgcj} gdb" -+ ;; -+ frv-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ h8300*-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ h8500-*-*) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" -+ ;; -+ hppa1.1-*-osf* | hppa1.1-*-bsd* ) -+ ;; -+ hppa*64*-*-linux* | parisc*64*-*-linux*) -+ # In this case, it's because the hppa64-linux target is for -+ # the kernel only at this point and has no libc, and thus no -+ # headers, crt*.o, etc., all of which are needed by these. -+ noconfigdirs="$noconfigdirs target-zlib" -+ ;; -+ parisc*-*-linux* | hppa*-*-linux*) -+ ;; -+ hppa*-*-*elf* | \ -+ hppa*-*-lites* | \ -+ hppa*-*-openbsd* | \ -+ hppa*64*-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ hppa*-hp-hpux11*) -+ noconfigdirs="$noconfigdirs ld shellutils" -+ ;; -+ hppa*-*-pro*) -+ libgloss_dir=pa -+ ;; -+ hppa*-*-*) -+ # According to Alexandre Oliva , libjava won't -+ # build on HP-UX 10.20. -+ noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" -+ ;; -+ i960-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj} gdb" -+ ;; -+ ia64*-*-elf*) -+ # No gdb support yet. -+ noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb" -+ ;; -+ ia64*-**-hpux*) -+ # No gdb or ld support yet. -+ noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld" -+ ;; -+ i370-*-opened*) -+ ;; -+ i[[3456789]]86-*-coff | i[[3456789]]86-*-elf) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ libgloss_dir=i386 -+ ;; -+ i[[3456789]]86-*-linux*) -+ # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's -+ # not build java stuff by default. -+ case "${target}" in -+ *-*-*libc1*) -+ noconfigdirs="$noconfigdirs ${libgcj}";; -+ esac -+ -+ # This section makes it possible to build newlib natively on linux. -+ # If we are using a cross compiler then don't configure newlib. -+ if test x${is_cross_compiler} != xno ; then -+ noconfigdirs="$noconfigdirs target-newlib" -+ fi -+ noconfigdirs="$noconfigdirs target-libgloss" -+ # If we are not using a cross compiler, do configure newlib. -+ # Note however, that newlib will only be configured in this situation -+ # if the --with-newlib option has been given, because otherwise -+ # 'target-newlib' will appear in skipdirs. -+ ;; -+ i[[3456789]]86-*-mingw32*) -+ target_configdirs="$target_configdirs target-winsup" -+ noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" -+ ;; -+ x86_64-*-mingw*) -+ target_configdirs="$target_configdirs target-winsup" -+ noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" -+ ;; -+ *-*-cygwin*) -+ target_configdirs="$target_configdirs target-libtermcap target-winsup" -+ noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" -+ # always build newlib if winsup directory is present. -+ if test -d "$srcdir/winsup/cygwin"; then -+ skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` -+ elif test -d "$srcdir/newlib"; then -+ echo "Warning: winsup/cygwin is missing so newlib can't be built." -+ fi -+ ;; -+ i[[3456789]]86-moss-msdos | i[[3456789]]86-*-moss* | \ -+ i[[3456789]]86-*-uwin* | i[[3456789]]86-*-interix* ) -+ ;; -+ i[[3456789]]86-*-pe) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" -+ ;; -+ i[[3456789]]86-*-sco3.2v5*) -+ # The linker does not yet know about weak symbols in COFF, -+ # and is not configured to handle mixed ELF and COFF. -+ noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" -+ ;; -+ i[[3456789]]86-*-sco*) -+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" -+ ;; -+ i[[3456789]]86-*-solaris2*) -+ noconfigdirs="$noconfigdirs target-libgloss" -+ ;; -+ i[[3456789]]86-*-sysv4*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ i[[3456789]]86-*-beos*) -+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" -+ ;; -+ i[[3456789]]86-*-rdos*) -+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" -+ ;; -+ m32r-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) -+ noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" -+ libgloss_dir=m68hc11 -+ ;; -+ m68k-*-elf*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ m68k-*-coff*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ m68*-*-* | fido-*-*) -+ libgloss_dir=m68k -+ ;; -+ mcore-*-pe*) -+ # The EPOC C++ environment does not support exceptions or rtti, -+ # and so building libstdc++-v3 tends not to always work. -+ noconfigdirs="$noconfigdirs target-libstdc++-v3" -+ ;; -+ mmix-*-*) -+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss" -+ unsupported_languages="$unsupported_languages fortran java" -+ ;; -+ mn10200-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ mn10300-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ mt-*-*) -+ noconfigdirs="$noconfigdirs sim" -+ ;; -+ powerpc-*-aix*) -+ # copied from rs6000-*-* entry -+ noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" -+ ;; -+ powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) -+ target_configdirs="$target_configdirs target-winsup" -+ noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}" -+ # always build newlib. -+ skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` -+ ;; -+ # This is temporary until we can link against shared libraries -+ powerpcle-*-solaris*) -+ noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}" -+ libgloss_dir=rs6000 -+ ;; -+ powerpc-*-beos*) -+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" -+ ;; -+ powerpc-*-eabi) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ libgloss_dir=rs6000 -+ ;; -+ powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) -+ libgloss_dir=rs6000 -+ ;; -+ rs6000-*-lynxos*) -+ noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" -+ ;; -+ rs6000-*-aix*) -+ noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" -+ ;; -+ rs6000-*-*) -+ noconfigdirs="$noconfigdirs gprof ${libgcj}" -+ ;; -+ m68k-apollo-*) -+ noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" -+ ;; -+ mips*-sde-elf*) -+ skipdirs="$skipdirs target-libiberty" -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ if test x$with_newlib = xyes; then -+ noconfigdirs="$noconfigdirs gprof" -+ fi -+ libgloss_dir=mips -+ ;; -+ mips*-*-irix5*) -+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" -+ ;; -+ mips*-*-irix6*) -+ # Linking libjava exceeds command-line length limits on at least -+ # IRIX 6.2, but not on IRIX 6.5. -+ # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham -+ # -+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" -+ ;; -+ mips*-*-bsd*) -+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" -+ ;; -+ mips*-*-linux*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss" -+ ;; -+ mips*-*-*) -+ noconfigdirs="$noconfigdirs gprof ${libgcj}" -+ libgloss_dir=mips -+ ;; -+ romp-*-*) -+ noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" -+ ;; -+ sh-*-* | sh64-*-*) -+ case "${host}" in -+ i[[3456789]]86-*-vsta) ;; # don't add gprof back in -+ i[[3456789]]86-*-go32*) ;; # don't add gprof back in -+ i[[3456789]]86-*-msdosdjgpp*) ;; # don't add gprof back in -+ *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; -+ esac -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ sparclet-*-aout* | sparc86x-*-*) -+ libgloss_dir=sparc -+ ;; -+ sparc-*-elf*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ sparc64-*-elf*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ libgloss_dir=sparc -+ ;; -+ sparclite-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ libgloss_dir=sparc -+ ;; -+ sparc-*-sunos4*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ if test x${is_cross_compiler} != xno ; then -+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" -+ else -+ use_gnu_ld=no -+ fi -+ ;; -+ sparc-*-solaris2.[[0-6]] | sparc-*-solaris2.[[0-6]].*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) -+ ;; -+ v810-*-*) -+ noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" -+ ;; -+ v850-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ v850e-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ v850ea-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ vax-*-vms) -+ noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" -+ ;; -+ vax-*-*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" -+ ;; -+ xtensa*-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ ip2k-*-*) -+ noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" -+ ;; -+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss" -+ ;; -+ *-*-lynxos*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" -+ ;; -+ *-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+esac -+ -+# If we aren't building newlib, then don't build libgloss, since libgloss -+# depends upon some newlib header files. -+case "${noconfigdirs}" in -+ *target-libgloss*) ;; -+ *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; -+esac -+ -+# Work in distributions that contain no compiler tools, like Autoconf. -+tentative_cc="" -+host_makefile_frag=/dev/null -+if test -d ${srcdir}/config ; then -+case "${host}" in -+ m68k-hp-hpux*) -+ # Avoid "too much defining" errors from HPUX compiler. -+ tentative_cc="cc -Wp,-H256000" -+ # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding. -+ # If it's HP/UX ar, this should be harmless. -+ RANLIB="ar ts" -+ ;; -+ m68k-apollo-sysv*) -+ tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" -+ ;; -+ m68k-apollo-bsd*) -+ #None of the Apollo compilers can compile gas or binutils. The preprocessor -+ # chokes on bfd, the compiler won't let you assign integers to enums, and -+ # other problems. Defining CC to gcc is a questionable way to say "don't use -+ # the apollo compiler" (the preferred version of GCC could be called cc, -+ # or whatever), but I'm not sure leaving CC as cc is any better... -+ #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG -+ # Used to have BISON=yacc. -+ tentative_cc=gcc -+ ;; -+ m88k-dg-dgux*) -+ tentative_cc="gcc -Wall -ansi -D__using_DGUX" -+ ;; -+ m88k-harris-cxux*) -+ # Under CX/UX, we want to tell the compiler to use ANSI mode. -+ tentative_cc="cc -Xa" -+ host_makefile_frag="config/mh-cxux" -+ ;; -+ m88k-motorola-sysv*) -+ ;; -+ mips*-dec-ultrix*) -+ tentative_cc="cc -Wf,-XNg1000" -+ host_makefile_frag="config/mh-decstation" -+ ;; -+ mips*-nec-sysv4*) -+ # The C compiler on NEC MIPS SVR4 needs bigger tables. -+ tentative_cc="cc -ZXNd=5000 -ZXNg=1000" -+ host_makefile_frag="config/mh-necv4" -+ ;; -+ mips*-sgi-irix4*) -+ # Tell compiler to use K&R C. We can't compile under the SGI Ansi -+ # environment. Also bump switch table size so that cp-parse will -+ # compile. Bump string length limit so linker builds. -+ tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" -+ ;; -+ mips*-*-sysv4*) -+ host_makefile_frag="config/mh-sysv4" -+ ;; -+ mips*-*-sysv*) -+ # This is for a MIPS running RISC/os 4.52C. -+ -+ # This is needed for GDB, but needs to be in the top-level make because -+ # if a library is compiled with the bsd headers and gets linked with the -+ # sysv system libraries all hell can break loose (e.g. a jmp_buf might be -+ # a different size). -+ # ptrace(2) apparently has problems in the BSD environment. No workaround is -+ # known except to select the sysv environment. Could we use /proc instead? -+ # These "sysv environments" and "bsd environments" often end up being a pain. -+ # -+ # This is not part of CFLAGS because perhaps not all C compilers have this -+ # option. -+ tentative_cc="cc -systype sysv" -+ ;; -+ i370-ibm-opened*) -+ tentative_cc="c89" -+ ;; -+ i[[3456789]]86-*-sysv5*) -+ host_makefile_frag="config/mh-sysv5" -+ ;; -+ i[[3456789]]86-*-dgux*) -+ tentative_cc="gcc -Wall -ansi -D__using_DGUX" -+ host_makefile_frag="config/mh-dgux386" -+ ;; -+ i[[3456789]]86-ncr-sysv4.3*) -+ # The MetaWare compiler will generate a copyright message unless you -+ # turn it off by adding the -Hnocopyr flag. -+ tentative_cc="cc -Hnocopyr" -+ ;; -+ i[[3456789]]86-ncr-sysv4*) -+ # for an NCR 3000 (i486/SVR4) system. -+ # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. -+ # This compiler not only emits obnoxious copyright messages every time -+ # you run it, but it chokes and dies on a whole bunch of GNU source -+ # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. -+ tentative_cc="/usr/ccs/ATT/cc" -+ host_makefile_frag="config/mh-ncr3000" -+ ;; -+ i[[3456789]]86-*-sco3.2v5*) -+ ;; -+ i[[3456789]]86-*-sco*) -+ # The native C compiler botches some simple uses of const. Unfortunately, -+ # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. -+ tentative_cc="cc -Dconst=" -+ host_makefile_frag="config/mh-sco" -+ ;; -+ i[[3456789]]86-*-udk*) -+ host_makefile_frag="config/mh-sysv5" -+ ;; -+ i[[3456789]]86-*-solaris2*) -+ host_makefile_frag="config/mh-sysv4" -+ ;; -+ i[[3456789]]86-*-msdosdjgpp*) -+ host_makefile_frag="config/mh-djgpp" -+ ;; -+ *-cygwin*) -+ ACX_CHECK_CYGWIN_CAT_WORKS -+ host_makefile_frag="config/mh-cygwin" -+ ;; -+ *-mingw*) -+ host_makefile_frag="config/mh-mingw" -+ ;; -+ *-interix*) -+ host_makefile_frag="config/mh-interix" -+ ;; -+ vax-*-ultrix2*) -+ # The old BSD pcc isn't up to compiling parts of gdb so use gcc -+ tentative_cc=gcc -+ ;; -+ *-*-solaris2*) -+ host_makefile_frag="config/mh-solaris" -+ ;; -+ m68k-sun-sunos*) -+ # Sun's C compiler needs the -J flag to be able to compile cp-parse.c -+ # without overflowing the jump tables (-J says to use a 32 bit table) -+ tentative_cc="cc -J" -+ ;; -+ hppa*-hp-hpux10*) -+ tentative_cc="cc -Wp,-H256000" -+ host_makefile_frag="config/mh-pa-hpux10" -+ ;; -+ hppa*-hp-hpux* | hppa*-*-hiux*) -+ tentative_cc="cc -Wp,-H256000" -+ host_makefile_frag="config/mh-pa" -+ ;; -+ hppa*-*) -+ host_makefile_frag="config/mh-pa" -+ ;; -+ *-hp-hpux* | *-*-hiux*) -+ tentative_cc="cc -Wp,-H256000" -+ ;; -+ rs6000-*-lynxos*) -+ # /bin/cc is less than useful for our purposes. Always use GCC -+ tentative_cc="/usr/cygnus/progressive/bin/gcc" -+ host_makefile_frag="config/mh-lynxrs6k" -+ ;; -+ powerpc-*-darwin*) -+ host_makefile_frag="config/mh-ppc-darwin" -+ ;; -+ powerpc-*-aix*) -+ host_makefile_frag="config/mh-ppc-aix" -+ ;; -+ rs6000-*-aix*) -+ host_makefile_frag="config/mh-ppc-aix" -+ ;; -+ *-*-lynxos*) -+ # /bin/cc is less than useful for our purposes. Always use GCC -+ tentative_cc="/bin/gcc" -+ ;; -+ *-*-sysv4*) -+ host_makefile_frag="config/mh-sysv4" -+ ;; -+ # This is placed last to prevent interfering with the cases above. -+ i[[3456789]]86-*-*) -+ # Build the stage2 and stage3 compilers with -fomit-frame-pointer. -+ host_makefile_frag="config/mh-x86omitfp" -+ ;; -+esac -+fi -+ -+# If we aren't going to be using gcc, see if we can extract a definition -+# of CC from the fragment. -+# Actually, use the 'pre-extracted' version above. -+if test -z "${CC}" && test "${build}" = "${host}" ; then -+ IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" -+ found= -+ for dir in $PATH; do -+ test -z "$dir" && dir=. -+ if test -f $dir/gcc; then -+ found=yes -+ break -+ fi -+ done -+ IFS="$save_ifs" -+ if test -z "${found}" && test -n "${tentative_cc}" ; then -+ CC=$tentative_cc -+ fi -+fi -+ -+if test "${build}" != "${host}" ; then -+ AR_FOR_BUILD=${AR_FOR_BUILD-ar} -+ AS_FOR_BUILD=${AS_FOR_BUILD-as} -+ CC_FOR_BUILD=${CC_FOR_BUILD-gcc} -+ CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} -+ GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} -+ GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} -+ DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} -+ LD_FOR_BUILD=${LD_FOR_BUILD-ld} -+ NM_FOR_BUILD=${NM_FOR_BUILD-nm} -+ RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} -+ WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} -+ WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} -+else -+ AR_FOR_BUILD="\$(AR)" -+ AS_FOR_BUILD="\$(AS)" -+ CC_FOR_BUILD="\$(CC)" -+ CXX_FOR_BUILD="\$(CXX)" -+ GCJ_FOR_BUILD="\$(GCJ)" -+ GFORTRAN_FOR_BUILD="\$(GFORTRAN)" -+ DLLTOOL_FOR_BUILD="\$(DLLTOOL)" -+ LD_FOR_BUILD="\$(LD)" -+ NM_FOR_BUILD="\$(NM)" -+ RANLIB_FOR_BUILD="\$(RANLIB)" -+ WINDRES_FOR_BUILD="\$(WINDRES)" -+ WINDMC_FOR_BUILD="\$(WINDMC)" -+fi -+ -+AC_PROG_CC -+AC_PROG_CXX -+ -+# 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 -+ -+ACX_PROG_GNAT -+ACX_PROG_CMP_IGNORE_INITIAL -+ -+# Check for GMP and MPFR -+gmplibs="-lmpfr -lgmp" -+gmpinc= -+have_gmp=no -+ -+# Specify a location for mpfr -+# check for this first so it ends up on the link line before gmp. -+AC_ARG_WITH(mpfr-dir, [ --with-mpfr-dir=PATH this option has been REMOVED], -+ AC_MSG_ERROR([The --with-mpfr-dir=PATH option has been removed. -+Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH])) -+ -+AC_ARG_WITH(mpfr, [ --with-mpfr=PATH specify prefix directory for installed MPFR package. -+ Equivalent to --with-mpfr-include=PATH/include -+ plus --with-mpfr-lib=PATH/lib]) -+AC_ARG_WITH(mpfr_include, [ --with-mpfr-include=PATH -+ specify directory for installed MPFR include files]) -+AC_ARG_WITH(mpfr_lib, [ --with-mpfr-lib=PATH specify directory for the installed MPFR library]) -+ -+if test "x$with_mpfr" != x; then -+ gmplibs="-L$with_mpfr/lib $gmplibs" -+ gmpinc="-I$with_mpfr/include" -+fi -+if test "x$with_mpfr_include" != x; then -+ gmpinc="-I$with_mpfr_include" -+fi -+if test "x$with_mpfr_lib" != x; then -+ gmplibs="-L$with_mpfr_lib $gmplibs" -+fi -+if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then -+ gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs" -+ gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" -+ # Do not test the mpfr version. Assume that it is sufficient, since -+ # it is in the source tree, and the library has not been built yet -+ # but it would be included on the link line in the version check below -+ # hence making the test fail. -+ have_gmp=yes -+fi -+ -+# Specify a location for gmp -+AC_ARG_WITH(gmp-dir, [ --with-gmp-dir=PATH this option has been REMOVED], -+ AC_MSG_ERROR([The --with-gmp-dir=PATH option has been removed. -+Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH])) -+ -+AC_ARG_WITH(gmp, [ --with-gmp=PATH specify prefix directory for the installed GMP package. -+ Equivalent to --with-gmp-include=PATH/include -+ plus --with-gmp-lib=PATH/lib]) -+AC_ARG_WITH(gmp_include, [ --with-gmp-include=PATH specify directory for installed GMP include files]) -+AC_ARG_WITH(gmp_lib, [ --with-gmp-lib=PATH specify directory for the installed GMP library]) -+ -+ -+if test "x$with_gmp" != x; then -+ gmplibs="-L$with_gmp/lib $gmplibs" -+ gmpinc="-I$with_gmp/include $gmpinc" -+fi -+if test "x$with_gmp_include" != x; then -+ gmpinc="-I$with_gmp_include $gmpinc" -+fi -+if test "x$with_gmp_lib" != x; then -+ gmplibs="-L$with_gmp_lib $gmplibs" -+fi -+if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then -+ gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs" -+ gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" -+ # Do not test the gmp version. Assume that it is sufficient, since -+ # it is in the source tree, and the library has not been built yet -+ # but it would be included on the link line in the version check below -+ # hence making the test fail. -+ have_gmp=yes -+fi -+ -+if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then -+ have_gmp=yes -+ saved_CFLAGS="$CFLAGS" -+ CFLAGS="$CFLAGS $gmpinc" -+ # Check GMP actually works -+ AC_MSG_CHECKING([for correct version of gmp.h]) -+ AC_TRY_COMPILE([#include "gmp.h"],[ -+ #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1) -+ choke me -+ #endif -+ ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); have_gmp=no]) -+ -+ if test x"$have_gmp" = xyes; then -+ saved_LIBS="$LIBS" -+ LIBS="$LIBS $gmplibs" -+ dnl MPFR 2.3.0 is acceptable, but MPFR 2.3.2 is better. -+ AC_MSG_CHECKING([for correct version of mpfr.h]) -+ AC_TRY_LINK([#include -+ #include ],[ -+ #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0) -+ choke me -+ #endif -+ 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); -+ ], [AC_TRY_LINK([#include -+ #include ],[ -+ #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2) -+ choke me -+ #endif -+ mpfr_t n; mpfr_init(n); -+ ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])], -+ [AC_MSG_RESULT([no]); have_gmp=no]) -+ LIBS="$saved_LIBS" -+ fi -+ CFLAGS="$saved_CFLAGS" -+ -+ if test x$have_gmp != xyes; then -+ AC_MSG_ERROR([Building GCC requires GMP 4.1+ and MPFR 2.3.2+. -+Try the --with-gmp and/or --with-mpfr options to specify their locations. -+Copies of these libraries' source code can be found at their respective -+hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. -+See also http://gcc.gnu.org/install/prerequisites.html for additional info. -+If you obtained GMP and/or MPFR from a vendor distribution package, make -+sure that you have installed both the libraries and the header files. -+They may be located in separate packages.]) -+ fi -+fi -+ -+# Flags needed for both GMP and/or MPFR -+AC_SUBST(gmplibs) -+AC_SUBST(gmpinc) -+ -+ -+# Check for PPL -+ppl_major_version=0 -+ppl_minor_version=10 -+ppllibs=" -lppl_c -lppl -lgmpxx " -+pplinc= -+ -+AC_ARG_WITH(ppl, [ --with-ppl=PATH Specify prefix directory for the installed PPL package -+ Equivalent to --with-ppl-include=PATH/include -+ plus --with-ppl-lib=PATH/lib]) -+AC_ARG_WITH(ppl_include, [ --with-ppl-include=PATH Specify directory for installed PPL include files]) -+AC_ARG_WITH(ppl_lib, [ --with-ppl-lib=PATH Specify the directory for the installed PPL library]) -+ -+if test "x$with_ppl" != x; then -+ ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx" -+ pplinc="-I$with_ppl/include $pplinc" -+ LIBS="$ppllibs $LIBS" -+fi -+if test "x$with_ppl_include" != x; then -+ pplinc="-I$with_ppl_include $pplinc" -+fi -+if test "x$with_ppl_lib" != x; then -+ ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx" -+ LIBS="$ppllibs $LIBS" -+fi -+if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then -+ ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx ' -+ pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include ' -+ LIBS="$ppllibs $LIBS" -+fi -+ -+AC_ARG_ENABLE(ppl-version-check, -+[ --disable-ppl-version-check disable check for PPL version], -+ENABLE_PPL_CHECK=$enableval, -+ENABLE_PPL_CHECK=yes) -+ -+if test "${ENABLE_PPL_CHECK}" = "yes"; then -+ saved_CFLAGS="$CFLAGS" -+ CFLAGS="$CFLAGS $pplinc $gmpinc" -+ AC_MSG_CHECKING([for version $ppl_major_version.$ppl_minor_version of PPL]) -+ AC_TRY_COMPILE([#include "ppl_c.h"],[ -+ #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version -+ choke me -+ #endif -+ ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); ppllibs= ; pplinc= ]) -+ CFLAGS="$saved_CFLAGS" -+fi -+ -+# Flags needed for PPL -+AC_SUBST(ppllibs) -+AC_SUBST(pplinc) -+ -+ -+# Check for CLOOG -+clooglibs=" -lcloog " -+clooginc=" -DCLOOG_PPL_BACKEND " -+ -+AC_ARG_WITH(cloog, [ --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package -+ Equivalent to --with-cloog-include=PATH/include -+ plus --with-cloog-lib=PATH/lib]) -+AC_ARG_WITH(cloog_include, [ --with-cloog-include=PATH Specify directory for installed CLooG include files]) -+AC_ARG_WITH(cloog_lib, [ --with-cloog-lib=PATH Specify the directory for the installed CLooG library]) -+AC_ARG_WITH(cloog-polylib, [ --with-cloog-polylib=PATH Specify prefix directory for the installed CLooG-PolyLib package]) -+ -+if test "x$with_cloog" != x; then -+ clooglibs="-L$with_cloog/lib -lcloog" -+ clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND " -+ LIBS="$clooglibs $LIBS" -+fi -+if test "x$with_cloog_polylib" != x; then -+ clooglibs="-L$with_cloog/lib -lcloog" -+ clooginc="-I$with_cloog/include " -+ LIBS="$clooglibs $LIBS" -+fi -+if test "x$with_cloog_include" != x; then -+ clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND " -+fi -+if test "x$with_cloog_lib" != x; then -+ clooglibs="-L$with_cloog_lib -lcloog" -+ LIBS="$clooglibs $LIBS" -+fi -+if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then -+ clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog ' -+ clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND ' -+ LIBS="$clooglibs $LIBS" -+fi -+ -+AC_ARG_ENABLE(cloog-version-check, -+[ --disable-cloog-version-check disable check for CLooG version], -+ENABLE_CLOOG_CHECK=$enableval, -+ENABLE_CLOOG_CHECK=yes) -+ -+if test "${ENABLE_CLOOG_CHECK}" = "yes"; then -+ saved_CFLAGS="$CFLAGS" -+ CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc" -+ AC_MSG_CHECKING([for correct version of CLooG]) -+ AC_TRY_COMPILE([#include "cloog/cloog.h"],[ -+ #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 -+ choke me -+ #endif -+ ], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); clooglibs= ; clooginc= ]) -+ CFLAGS="$saved_CFLAGS" -+fi -+ -+# Flags needed for CLOOG -+AC_SUBST(clooglibs) -+AC_SUBST(clooginc) -+ -+ -+# By default, C is the only stage 1 language. -+stage1_languages=,c, -+ -+# Figure out what language subdirectories are present. -+# Look if the user specified --enable-languages="..."; if not, use -+# the environment variable $LANGUAGES if defined. $LANGUAGES might -+# go away some day. -+# NB: embedded tabs in this IF block -- do not untabify -+if test -d ${srcdir}/gcc; then -+ if test x"${enable_languages+set}" != xset; then -+ if test x"${LANGUAGES+set}" = xset; then -+ enable_languages="${LANGUAGES}" -+ echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 -+ else -+ enable_languages=all -+ fi -+ else -+ if test x"${enable_languages}" = x || -+ test x"${enable_languages}" = xyes; -+ then -+ echo configure.in: --enable-languages needs at least one language argument 1>&2 -+ exit 1 -+ fi -+ fi -+ enable_languages=`echo "${enable_languages}" | sed -e 's/[[ ,]][[ ,]]*/,/g' -e 's/,$//'` -+ -+ # 'f95' is the old name for the 'fortran' language. We issue a warning -+ # and make the substitution. -+ case ,${enable_languages}, in -+ *,f95,*) -+ echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 -+ enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` -+ ;; -+ esac -+ -+ # First scan to see if an enabled language requires some other language. -+ # We assume that a given config-lang.in will list all the language -+ # front ends it requires, even if some are required indirectly. -+ for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do -+ case ${lang_frag} in -+ ..) ;; -+ # The odd quoting in the next line works around -+ # an apparent bug in bash 1.12 on linux. -+ ${srcdir}/gcc/[[*]]/config-lang.in) ;; -+ *) -+ # From the config-lang.in, get $language, $lang_requires -+ language= -+ lang_requires= -+ . ${lang_frag} -+ for other in ${lang_requires} ; do -+ case ,${enable_languages}, in -+ *,$other,*) ;; -+ *,all,*) ;; -+ *,$language,*) -+ echo " \`$other' language required by \`$language'; enabling" 1>&2 -+ enable_languages="${enable_languages},${other}" -+ ;; -+ esac -+ done -+ ;; -+ esac -+ done -+ -+ new_enable_languages=,c, -+ missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` -+ potential_languages=,c, -+ -+ for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do -+ case ${lang_frag} in -+ ..) ;; -+ # The odd quoting in the next line works around -+ # an apparent bug in bash 1.12 on linux. -+ ${srcdir}/gcc/[[*]]/config-lang.in) ;; -+ *) -+ # From the config-lang.in, get $language, $target_libs, -+ # $lang_dirs, $boot_language, and $build_by_default -+ language= -+ target_libs= -+ lang_dirs= -+ subdir_requires= -+ boot_language=no -+ build_by_default=yes -+ . ${lang_frag} -+ if test x${language} = x; then -+ echo "${lang_frag} doesn't set \$language." 1>&2 -+ exit 1 -+ fi -+ -+ case ,${enable_languages}, in -+ *,${language},*) -+ # Language was explicitly selected; include it. -+ add_this_lang=yes -+ ;; -+ *,all,*) -+ # 'all' was selected, select it if it is a default language -+ add_this_lang=${build_by_default} -+ ;; -+ *) -+ add_this_lang=no -+ ;; -+ esac -+ -+ # Disable languages that need other directories if these aren't available. -+ for i in $subdir_requires; do -+ test -f "$srcdir/gcc/$i/config-lang.in" && continue -+ case ,${enable_languages}, in -+ *,${language},*) -+ # Specifically requested language; tell them. -+ AC_MSG_ERROR([The gcc/$i directory contains parts of $language but is missing]) -+ ;; -+ *) -+ # Silently disable. -+ add_this_lang=unsupported -+ ;; -+ esac -+ done -+ -+ # Disable Ada if no preexisting GNAT is available. -+ case ,${enable_languages},:${language}:${have_gnat} in -+ *,${language},*:ada:no) -+ # Specifically requested language; tell them. -+ AC_MSG_ERROR([GNAT is required to build $language]) -+ ;; -+ *:ada:no) -+ # Silently disable. -+ add_this_lang=unsupported -+ ;; -+ esac -+ -+ # Disable a language that is unsupported by the target. -+ case " $unsupported_languages " in -+ *" $language "*) -+ add_this_lang=unsupported -+ ;; -+ esac -+ -+ case $add_this_lang in -+ unsupported) -+ # Remove language-dependent dirs. -+ eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" -+ ;; -+ no) -+ # Remove language-dependent dirs; still show language as supported. -+ eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" -+ potential_languages="${potential_languages}${language}," -+ ;; -+ yes) -+ new_enable_languages="${new_enable_languages}${language}," -+ potential_languages="${potential_languages}${language}," -+ missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` -+ case ${boot_language} in -+ yes) -+ # Add to (comma-separated) list of stage 1 languages. -+ stage1_languages="${stage1_languages}${language}," -+ ;; -+ esac -+ ;; -+ esac -+ ;; -+ esac -+ done -+ -+ AC_ARG_ENABLE(stage1-languages, -+[ --enable-stage1-languages@<:@=all@:>@ choose additional languages to build during -+ stage1. Mostly useful for compiler development.], -+ [case ,${enable_stage1_languages}, in -+ ,no,|,,) -+ # Set it to something that will have no effect in the loop below -+ enable_stage1_languages=c ;; -+ ,yes,) -+ enable_stage1_languages=`echo $new_enable_languages | \ -+ sed -e "s/^,//" -e "s/,$//" ` ;; -+ *,all,*) -+ enable_stage1_languages=`echo ,$enable_stage1_languages, | \ -+ sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; -+ esac -+ -+ # Add "good" languages from enable_stage1_languages to stage1_languages, -+ # while "bad" languages go in missing_languages. Leave no duplicates. -+ for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do -+ case $potential_languages in -+ *,$i,*) -+ case $stage1_languages in -+ *,$i,*) ;; -+ *) stage1_languages="$stage1_languages$i," ;; -+ esac ;; -+ *) -+ case $missing_languages in -+ *,$i,*) ;; -+ *) missing_languages="$missing_languages$i," ;; -+ esac ;; -+ esac -+ done]) -+ -+ # Remove leading/trailing commas that were added for simplicity -+ potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` -+ missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` -+ stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` -+ new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` -+ -+ if test "x$missing_languages" != x; then -+ AC_MSG_ERROR([ -+The following requested languages could not be built: ${missing_languages} -+Supported languages are: ${potential_languages}]) -+ fi -+ if test "x$new_enable_languages" != "x$enable_languages"; then -+ echo The following languages will be built: ${new_enable_languages} -+ enable_languages="$new_enable_languages" -+ fi -+ -+ AC_SUBST(stage1_languages) -+ ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[[^ ]]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` -+fi -+ -+# Handle --disable- generically. -+for dir in $configdirs $build_configdirs $target_configdirs ; do -+ dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` -+ varname=`echo $dirname | sed -e s/+/_/g` -+ if eval test x\${enable_${varname}} "=" xno ; then -+ noconfigdirs="$noconfigdirs $dir" -+ fi -+done -+ -+# Check for Boehm's garbage collector -+AC_ARG_ENABLE(objc-gc, -+[ --enable-objc-gc enable use of Boehm's garbage collector with the -+ GNU Objective-C runtime], -+[case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in -+ *,objc,*:*:yes:*target-boehm-gc*) -+ AC_MSG_ERROR([Boehm's garbage collector was requested yet not supported in this configuration]) -+ ;; -+esac]) -+ -+# Make sure we only build Boehm's garbage collector if required. -+case ,${enable_languages},:${enable_objc_gc} in -+ *,objc,*:yes) -+ # Keep target-boehm-gc if requested for Objective-C. -+ ;; -+ *) -+ # Otherwise remove target-boehm-gc depending on target-libjava. -+ if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then -+ noconfigdirs="$noconfigdirs target-boehm-gc" -+ fi -+ ;; -+esac -+ -+# Remove the entries in $skipdirs and $noconfigdirs from $configdirs, -+# $build_configdirs and $target_configdirs. -+# If we have the source for $noconfigdirs entries, add them to $notsupp. -+ -+notsupp="" -+for dir in . $skipdirs $noconfigdirs ; do -+ dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` -+ if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` -+ if test -r $srcdir/$dirname/configure ; then -+ if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ true -+ else -+ notsupp="$notsupp $dir" -+ fi -+ fi -+ fi -+ if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` -+ if test -r $srcdir/$dirname/configure ; then -+ if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ true -+ else -+ notsupp="$notsupp $dir" -+ fi -+ fi -+ fi -+ if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` -+ if test -r $srcdir/$dirname/configure ; then -+ if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ true -+ else -+ notsupp="$notsupp $dir" -+ fi -+ fi -+ fi -+done -+ -+# Sometimes the tools are distributed with libiberty but with no other -+# libraries. In that case, we don't want to build target-libiberty. -+# Don't let libgcc imply libiberty either. -+if test -n "${target_configdirs}" ; then -+ libgcc= -+ others= -+ for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do -+ if test "$i" = "libgcc"; then -+ libgcc=target-libgcc -+ elif test "$i" != "libiberty" ; then -+ if test -r $srcdir/$i/configure ; then -+ others=yes; -+ break; -+ fi -+ fi -+ done -+ if test -z "${others}" ; then -+ target_configdirs=$libgcc -+ fi -+fi -+ -+# Quietly strip out all directories which aren't configurable in this tree. -+# This relies on all configurable subdirectories being autoconfiscated, which -+# is now the case. -+build_configdirs_all="$build_configdirs" -+build_configdirs= -+for i in ${build_configdirs_all} ; do -+ j=`echo $i | sed -e s/build-//g` -+ if test -f ${srcdir}/$j/configure ; then -+ build_configdirs="${build_configdirs} $i" -+ fi -+done -+ -+configdirs_all="$configdirs" -+configdirs= -+for i in ${configdirs_all} ; do -+ if test -f ${srcdir}/$i/configure ; then -+ configdirs="${configdirs} $i" -+ fi -+done -+ -+target_configdirs_all="$target_configdirs" -+target_configdirs= -+for i in ${target_configdirs_all} ; do -+ j=`echo $i | sed -e s/target-//g` -+ if test -f ${srcdir}/$j/configure ; then -+ target_configdirs="${target_configdirs} $i" -+ fi -+done -+ -+# Produce a warning message for the subdirs we can't configure. -+# This isn't especially interesting in the Cygnus tree, but in the individual -+# FSF releases, it's important to let people know when their machine isn't -+# supported by the one or two programs in a package. -+ -+if test -n "${notsupp}" && test -z "${norecursion}" ; then -+ # If $appdirs is non-empty, at least one of those directories must still -+ # be configured, or we error out. (E.g., if the gas release supports a -+ # specified target in some subdirs but not the gas subdir, we shouldn't -+ # pretend that all is well.) -+ if test -n "$appdirs" ; then -+ for dir in $appdirs ; do -+ if test -r $dir/Makefile.in ; then -+ if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ appdirs="" -+ break -+ fi -+ if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then -+ appdirs="" -+ break -+ fi -+ fi -+ done -+ if test -n "$appdirs" ; then -+ echo "*** This configuration is not supported by this package." 1>&2 -+ exit 1 -+ fi -+ fi -+ # Okay, some application will build, or we don't care to check. Still -+ # notify of subdirs not getting built. -+ echo "*** This configuration is not supported in the following subdirectories:" 1>&2 -+ echo " ${notsupp}" 1>&2 -+ echo " (Any other directories should still work fine.)" 1>&2 -+fi -+ -+case "$host" in -+ *msdosdjgpp*) -+ enable_gdbtk=no ;; -+esac -+ -+# To find our prefix, in gcc_cv_tool_prefix. -+ACX_TOOL_DIRS -+ -+copy_dirs= -+ -+AC_ARG_WITH([build-sysroot], -+ [ --with-build-sysroot=SYSROOT -+ use sysroot as the system root during the build], -+ [if test x"$withval" != x ; then -+ SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" -+ fi], -+ [SYSROOT_CFLAGS_FOR_TARGET=]) -+AC_SUBST(SYSROOT_CFLAGS_FOR_TARGET) -+ -+AC_ARG_WITH([debug-prefix-map], -+ [ --with-debug-prefix-map='A=B C=D ...' -+ map A to B, C to D ... in debug information], -+ [if test x"$withval" != x; then -+ DEBUG_PREFIX_CFLAGS_FOR_TARGET= -+ for debug_map in $withval; do -+ DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" -+ done -+ fi], -+ [DEBUG_PREFIX_CFLAGS_FOR_TARGET=]) -+AC_SUBST(DEBUG_PREFIX_CFLAGS_FOR_TARGET) -+ -+# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS -+# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS -+# might also be empty (or "-g", if a non-GCC C++ compiler is in the path). -+# We want to ensure that TARGET libraries (which we know are built with -+# gcc) are built with "-O2 -g", so include those options when setting -+# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. -+if test "x$CFLAGS_FOR_TARGET" = x; then -+ CFLAGS_FOR_TARGET=$CFLAGS -+ case " $CFLAGS " in -+ *" -O2 "*) ;; -+ *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; -+ esac -+ case " $CFLAGS " in -+ *" -g "* | *" -g3 "*) ;; -+ *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; -+ esac -+fi -+AC_SUBST(CFLAGS_FOR_TARGET) -+ -+if test "x$CXXFLAGS_FOR_TARGET" = x; then -+ CXXFLAGS_FOR_TARGET=$CXXFLAGS -+ case " $CXXFLAGS " in -+ *" -O2 "*) ;; -+ *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; -+ esac -+ case " $CXXFLAGS " in -+ *" -g "* | *" -g3 "*) ;; -+ *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; -+ esac -+fi -+AC_SUBST(CXXFLAGS_FOR_TARGET) -+ -+# Handle --with-headers=XXX. If the value is not "yes", the contents of -+# the named directory are copied to $(tooldir)/sys-include. -+if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then -+ if test x${is_cross_compiler} = xno ; then -+ echo 1>&2 '***' --with-headers is only supported when cross compiling -+ exit 1 -+ fi -+ if test x"${with_headers}" != xyes ; then -+ x=${gcc_cv_tool_prefix} -+ copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" -+ fi -+fi -+ -+# Handle --with-libs=XXX. If the value is not "yes", the contents of -+# the name directories are copied to $(tooldir)/lib. Multiple directories -+# are permitted. -+if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then -+ if test x${is_cross_compiler} = xno ; then -+ echo 1>&2 '***' --with-libs is only supported when cross compiling -+ exit 1 -+ fi -+ 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. -+ x=${gcc_cv_tool_prefix} -+ for l in ${with_libs}; do -+ copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" -+ done -+ fi -+fi -+ -+# Set with_gnu_as and with_gnu_ld as appropriate. -+# -+# This is done by determining whether or not the appropriate directory -+# is available, and by checking whether or not specific configurations -+# have requested that this magic not happen. -+# -+# The command line options always override the explicit settings in -+# configure.in, and the settings in configure.in override this magic. -+# -+# If the default for a toolchain is to use GNU as and ld, and you don't -+# want to do that, then you should use the --without-gnu-as and -+# --without-gnu-ld options for the configure script. -+ -+if test x${use_gnu_as} = x && -+ echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then -+ with_gnu_as=yes -+ extra_host_args="$extra_host_args --with-gnu-as" -+fi -+ -+if test x${use_gnu_ld} = x && -+ echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then -+ with_gnu_ld=yes -+ extra_host_args="$extra_host_args --with-gnu-ld" -+fi -+ -+# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure -+# can detect this case. -+ -+if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then -+ with_newlib=yes -+ extra_host_args="$extra_host_args --with-newlib" -+fi -+ -+# Handle ${copy_dirs} -+set fnord ${copy_dirs} -+shift -+while test $# != 0 ; do -+ if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then -+ : -+ else -+ echo Copying $1 to $2 -+ -+ # Use the install script to create the directory and all required -+ # parent directories. -+ if test -d $2 ; then -+ : -+ else -+ echo >config.temp -+ ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED -+ fi -+ -+ # Copy the directory, assuming we have tar. -+ # FIXME: Should we use B in the second tar? Not all systems support it. -+ (cd $1; tar -cf - .) | (cd $2; tar -xpf -) -+ -+ # It is the responsibility of the user to correctly adjust all -+ # symlinks. If somebody can figure out how to handle them correctly -+ # here, feel free to add the code. -+ -+ echo $1 > $2/COPIED -+ fi -+ shift; shift -+done -+ -+# Determine a target-dependent exec_prefix that the installed -+# gcc will search in. Keep this list sorted by triplet, with -+# the *-*-osname triplets last. -+md_exec_prefix= -+case "${target}" in -+ alpha*-*-*vms*) -+ md_exec_prefix=/gnu/lib/gcc-lib -+ ;; -+ i[[34567]]86-pc-msdosdjgpp*) -+ md_exec_prefix=/dev/env/DJDIR/bin -+ ;; -+ i[[34567]]86-*-sco3.2v5*) -+ if test $with_gnu_as = yes; then -+ md_exec_prefix=/usr/gnu/bin -+ else -+ md_exec_prefix=/usr/ccs/bin/elf -+ fi -+ ;; -+ -+ mn10300-*-* | \ -+ powerpc-*-chorusos* | \ -+ powerpc*-*-eabi* | \ -+ powerpc*-*-sysv* | \ -+ powerpc*-*-kaos* | \ -+ s390x-ibm-tpf*) -+ md_exec_prefix=/usr/ccs/bin -+ ;; -+ sparc64-*-elf*) -+ ;; -+ v850*-*-*) -+ md_exec_prefix=/usr/ccs/bin -+ ;; -+ xtensa*-*-elf*) -+ ;; -+ -+ *-*-beos* | \ -+ *-*-elf* | \ -+ *-*-hpux* | \ -+ *-*-netware* | \ -+ *-*-nto-qnx* | \ -+ *-*-rtems* | \ -+ *-*-solaris2* | \ -+ *-*-sysv[[45]]* | \ -+ *-*-vxworks* | \ -+ *-wrs-windiss) -+ md_exec_prefix=/usr/ccs/bin -+ ;; -+esac -+ -+extra_arflags_for_target= -+extra_nmflags_for_target= -+extra_ranlibflags_for_target= -+target_makefile_frag=/dev/null -+case "${target}" in -+ mep*-*-*) -+ target_makefile_frag="config/mt-mep" -+ ;; -+ spu-*-*) -+ target_makefile_frag="config/mt-spu" -+ ;; -+ mips*-sde-elf*) -+ target_makefile_frag="config/mt-sde" -+ ;; -+ mipsisa*-*-elfoabi*) -+ target_makefile_frag="config/mt-mips-elfoabi" -+ ;; -+ mips*-*-*linux* | mips*-*-gnu*) -+ target_makefile_frag="config/mt-mips-gnu" -+ ;; -+ *-*-netware*) -+ target_makefile_frag="config/mt-netware" -+ ;; -+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) -+ target_makefile_frag="config/mt-gnu" -+ ;; -+ *-*-aix4.[[3456789]]* | *-*-aix[[56789]].*) -+ # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm -+ # commands to handle both 32-bit and 64-bit objects. These flags are -+ # harmless if we're using GNU nm or ar. -+ extra_arflags_for_target=" -X32_64" -+ extra_nmflags_for_target=" -B -X32_64" -+ ;; -+ *-*-darwin*) -+ # ranlib from Darwin requires the -c flag to look at common symbols. -+ extra_ranlibflags_for_target=" -c" -+ ;; -+ mips*-*-pe | sh*-*-pe | *arm-wince-pe) -+ target_makefile_frag="config/mt-wince" -+ ;; -+esac -+ -+alphaieee_frag=/dev/null -+case $target in -+ alpha*-*-*) -+ # This just makes sure to use the -mieee option to build target libs. -+ # This should probably be set individually by each library. -+ alphaieee_frag="config/mt-alphaieee" -+ ;; -+esac -+ -+# If --enable-target-optspace always use -Os instead of -O2 to build -+# the target libraries, similarly if it is not specified, use -Os -+# on selected platforms. -+ospace_frag=/dev/null -+case "${enable_target_optspace}:${target}" in -+ yes:*) -+ ospace_frag="config/mt-ospace" -+ ;; -+ :d30v-*) -+ ospace_frag="config/mt-d30v" -+ ;; -+ :m32r-* | :d10v-* | :fr30-*) -+ ospace_frag="config/mt-ospace" -+ ;; -+ no:* | :*) -+ ;; -+ *) -+ echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 -+ ;; -+esac -+ -+# Default to using --with-stabs for certain targets. -+if test x${with_stabs} = x ; then -+ case "${target}" in -+ mips*-*-irix[[56]]*) -+ ;; -+ mips*-*-* | alpha*-*-osf*) -+ with_stabs=yes; -+ extra_host_args="${extra_host_args} --with-stabs" -+ ;; -+ esac -+fi -+ -+# hpux11 in 64bit mode has libraries in a weird place. Arrange to find -+# them automatically. -+case "${host}" in -+ hppa*64*-*-hpux11*) -+ extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" -+ ;; -+esac -+ -+# Some systems (e.g., one of the i386-aix systems the gas testers are -+# using) don't handle "\$" correctly, so don't use it here. -+tooldir='${exec_prefix}'/${target_noncanonical} -+build_tooldir=${tooldir} -+ -+# Create a .gdbinit file which runs the one in srcdir -+# and tells GDB to look there for source files. -+ -+if test -r ${srcdir}/.gdbinit ; then -+ case ${srcdir} in -+ .) ;; -+ *) cat > ./.gdbinit < conftest.c -+${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c -+if test $? = 0 ; then -+ if test -s conftest || test -s conftest.exe ; then -+ we_are_ok=yes -+ fi -+fi -+case $we_are_ok in -+ no) -+ echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." -+ echo 1>&2 "*** You must set the environment variable CC to a working compiler." -+ rm -f conftest* -+ exit 1 -+ ;; -+esac -+rm -f conftest* -+ -+# The Solaris /usr/ucb/cc compiler does not appear to work. -+case "${host}" in -+ sparc-sun-solaris2*) -+ CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" -+ if test "`type $CCBASE | sed 's/^[[^/]]*//'`" = "/usr/ucb/cc" ; then -+ could_use= -+ test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" -+ if test -d /opt/cygnus/bin ; then -+ if test "$could_use" = "" ; then -+ could_use="/opt/cygnus/bin" -+ else -+ could_use="$could_use or /opt/cygnus/bin" -+ fi -+ fi -+ if test "$could_use" = "" ; then -+ echo "Warning: compilation may fail because you're using" -+ echo "/usr/ucb/cc. You should change your PATH or CC " -+ echo "variable and rerun configure." -+ else -+ echo "Warning: compilation may fail because you're using" -+ echo "/usr/ucb/cc, when you should use the C compiler from" -+ echo "$could_use. You should change your" -+ echo "PATH or CC variable and rerun configure." -+ fi -+ fi -+ ;; -+esac -+ -+# Decide which environment variable is used to find dynamic libraries. -+case "${host}" in -+ *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; -+ *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; -+ *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; -+ *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; -+esac -+ -+# On systems where the dynamic library environment variable is PATH, -+# gcc/ will put dynamic libraries into a subdirectory to avoid adding -+# built executables to PATH. -+if test "$RPATH_ENVVAR" = PATH; then -+ GCC_SHLIB_SUBDIR=/shlib -+else -+ GCC_SHLIB_SUBDIR= -+fi -+ -+# Record target_configdirs and the configure arguments for target and -+# build configuration in Makefile. -+target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` -+build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` -+ -+# Determine whether gdb needs tk/tcl or not. -+# Use 'maybe' since enable_gdbtk might be true even if tk isn't available -+# and in that case we want gdb to be built without tk. Ugh! -+# In fact I believe gdb is the *only* package directly dependent on tk, -+# so we should be able to put the 'maybe's in unconditionally and -+# leave out the maybe dependencies when enable_gdbtk is false. I'm not -+# 100% sure that that's safe though. -+ -+gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" -+case "$enable_gdbtk" in -+ no) -+ GDB_TK="" ;; -+ yes) -+ GDB_TK="${gdb_tk}" ;; -+ *) -+ # Only add the dependency on gdbtk when GDBtk is part of the gdb -+ # distro. Eventually someone will fix this and move Insight, nee -+ # gdbtk to a separate directory. -+ if test -d ${srcdir}/gdb/gdbtk ; then -+ GDB_TK="${gdb_tk}" -+ else -+ GDB_TK="" -+ fi -+ ;; -+esac -+CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` -+INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` -+ -+# Strip out unwanted targets. -+ -+# While at that, we remove Makefiles if we were started for recursive -+# configuration, so that the top-level Makefile reconfigures them, -+# like we used to do when configure itself was recursive. -+ -+# Loop over modules. $extrasub must be used with care, limiting as -+# much as possible the usage of range addresses. That's because autoconf -+# splits the sed script to overcome limits in the number of commands, -+# and relying on carefully-timed sed passes may turn out to be very hard -+# to maintain later. In this particular case, you just have to be careful -+# not to nest @if/@endif pairs, because configure will not warn you at all. -+ -+AC_ARG_ENABLE([bootstrap], -+[ --enable-bootstrap enable bootstrapping @<:@yes if native build@:>@],, -+enable_bootstrap=default) -+ -+# Issue errors and warnings for invalid/strange bootstrap combinations. -+case "$configdirs" in -+ *gcc*) have_compiler=yes ;; -+ *) have_compiler=no ;; -+esac -+ -+case "$have_compiler:$host:$target:$enable_bootstrap" in -+ *:*:*:no) ;; -+ -+ # Default behavior. Enable bootstrap if we have a compiler -+ # and we are in a native configuration. -+ yes:$build:$build:default) -+ enable_bootstrap=yes ;; -+ -+ *:*:*:default) -+ enable_bootstrap=no ;; -+ -+ # We have a compiler and we are in a native configuration, bootstrap is ok -+ yes:$build:$build:yes) -+ ;; -+ -+ # Other configurations, but we have a compiler. Assume the user knows -+ # what he's doing. -+ yes:*:*:yes) -+ AC_MSG_WARN([trying to bootstrap a cross compiler]) -+ ;; -+ -+ # No compiler: if they passed --enable-bootstrap explicitly, fail -+ no:*:*:yes) -+ AC_MSG_ERROR([cannot bootstrap without a compiler]) ;; -+ -+ # Fail if wrong command line -+ *) -+ AC_MSG_ERROR([invalid option for --enable-bootstrap]) -+ ;; -+esac -+ -+# Adjust the toplevel makefile according to whether bootstrap was selected. -+case "$enable_bootstrap" in -+ yes) -+ bootstrap_suffix=bootstrap ;; -+ no) -+ bootstrap_suffix=no-bootstrap ;; -+esac -+ -+for module in ${build_configdirs} ; do -+ if test -z "${no_recursion}" \ -+ && test -f ${build_subdir}/${module}/Makefile; then -+ echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" -+ rm -f ${build_subdir}/${module}/Makefile -+ fi -+ extrasub="$extrasub -+/^@if build-$module\$/d -+/^@endif build-$module\$/d -+/^@if build-$module-$bootstrap_suffix\$/d -+/^@endif build-$module-$bootstrap_suffix\$/d" -+done -+for module in ${configdirs} ; do -+ if test -z "${no_recursion}"; then -+ for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do -+ if test -f ${file}; then -+ echo 1>&2 "*** removing ${file} to force reconfigure" -+ rm -f ${file} -+ fi -+ done -+ fi -+ extrasub="$extrasub -+/^@if $module\$/d -+/^@endif $module\$/d -+/^@if $module-$bootstrap_suffix\$/d -+/^@endif $module-$bootstrap_suffix\$/d" -+done -+for module in ${target_configdirs} ; do -+ if test -z "${no_recursion}" \ -+ && test -f ${target_subdir}/${module}/Makefile; then -+ echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" -+ rm -f ${target_subdir}/${module}/Makefile -+ fi -+ extrasub="$extrasub -+/^@if target-$module\$/d -+/^@endif target-$module\$/d -+/^@if target-$module-$bootstrap_suffix\$/d -+/^@endif target-$module-$bootstrap_suffix\$/d" -+done -+ -+extrasub="$extrasub -+/^@if /,/^@endif /d" -+ -+# Create the serialization dependencies. This uses a temporary file. -+ -+AC_ARG_ENABLE([serial-configure], -+[ --enable-serial-@<:@{host,target,build}-@:>@configure -+ force sequential configuration of -+ sub-packages for the host, target or build -+ machine, or all sub-packages]) -+ -+case ${enable_serial_configure} in -+ yes) -+ enable_serial_build_configure=yes -+ enable_serial_host_configure=yes -+ enable_serial_target_configure=yes -+ ;; -+esac -+ -+# These force 'configure's to be done one at a time, to avoid problems -+# with contention over a shared config.cache. -+rm -f serdep.tmp -+echo '# serdep.tmp' > serdep.tmp -+olditem= -+test "x${enable_serial_build_configure}" = xyes && -+for item in ${build_configdirs} ; do -+ case ${olditem} in -+ "") ;; -+ *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; -+ esac -+ olditem=${item} -+done -+olditem= -+test "x${enable_serial_host_configure}" = xyes && -+for item in ${configdirs} ; do -+ case ${olditem} in -+ "") ;; -+ *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; -+ esac -+ olditem=${item} -+done -+olditem= -+test "x${enable_serial_target_configure}" = xyes && -+for item in ${target_configdirs} ; do -+ case ${olditem} in -+ "") ;; -+ *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; -+ esac -+ olditem=${item} -+done -+serialization_dependencies=serdep.tmp -+AC_SUBST_FILE(serialization_dependencies) -+ -+# Base args. Strip norecursion, cache-file, srcdir, host, build, -+# target, nonopt, and variable assignments. These are the ones we -+# might not want to pass down to subconfigures. Also strip -+# program-prefix, program-suffix, and program-transform-name, so that -+# we can pass down a consistent program-transform-name. -+baseargs= -+keep_next=no -+skip_next=no -+eval "set -- $ac_configure_args" -+for ac_arg -+do -+ if test X"$skip_next" = X"yes"; then -+ skip_next=no -+ continue -+ fi -+ if test X"$keep_next" = X"yes"; then -+ case $ac_arg in -+ *\'*) -+ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; -+ esac -+ baseargs="$baseargs '$ac_arg'" -+ keep_next=no -+ continue -+ fi -+ -+ # Handle separated arguments. Based on the logic generated by -+ # autoconf 2.59. -+ case $ac_arg in -+ *=* | --config-cache | -C | -disable-* | --disable-* \ -+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ -+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ -+ | -with-* | --with-* | -without-* | --without-* | --x) -+ separate_arg=no -+ ;; -+ -*) -+ separate_arg=yes -+ ;; -+ *) -+ separate_arg=no -+ ;; -+ esac -+ -+ case "$ac_arg" in -+ --no*) -+ continue -+ ;; -+ --c* | \ -+ --sr* | \ -+ --ho* | \ -+ --bu* | \ -+ --t* | \ -+ --program-* | \ -+ -cache_file* | \ -+ -srcdir* | \ -+ -host* | \ -+ -build* | \ -+ -target* | \ -+ -program-prefix* | \ -+ -program-suffix* | \ -+ -program-transform-name* ) -+ skip_next=$separate_arg -+ continue -+ ;; -+ -*) -+ # An option. Add it. -+ case $ac_arg in -+ *\'*) -+ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; -+ esac -+ baseargs="$baseargs '$ac_arg'" -+ keep_next=$separate_arg -+ ;; -+ *) -+ # Either a variable assignment, or a nonopt (triplet). Don't -+ # pass it down; let the Makefile handle this. -+ continue -+ ;; -+ esac -+done -+# Remove the initial space we just introduced and, as these will be -+# expanded by make, quote '$'. -+baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` -+ -+# Add in --program-transform-name, after --program-prefix and -+# --program-suffix have been applied to it. Autoconf has already -+# doubled dollar signs and backslashes in program_transform_name; we want -+# the backslashes un-doubled, and then the entire thing wrapped in single -+# quotes, because this will be expanded first by make and then by the shell. -+# Also, because we want to override the logic in subdir configure scripts to -+# choose program_transform_name, replace any s,x,x, with s,y,y,. -+sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" < conftestsed.out -+${program_transform_name} -+EOF_SED -+gcc_transform_name=`cat conftestsed.out` -+rm -f conftestsed.out -+baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" -+if test "$silent" = yes; then -+ baseargs="$baseargs --silent" -+fi -+ -+# For the build-side libraries, we just need to pretend we're native, -+# and not use the same cache file. Multilibs are neither needed nor -+# desired. -+build_configargs="--cache-file=../config.cache ${baseargs}" -+ -+# For host modules, accept cache file option, or specification as blank. -+case "${cache_file}" in -+"") # empty -+ cache_file_option="" ;; -+/* | [[A-Za-z]]:[[\\/]]* ) # absolute path -+ cache_file_option="--cache-file=${cache_file}" ;; -+*) # relative path -+ cache_file_option="--cache-file=../${cache_file}" ;; -+esac -+ -+# Host dirs don't like to share a cache file either, horribly enough. -+# This seems to be due to autoconf 2.5x stupidity. -+host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}" -+ -+target_configargs=${baseargs} -+ -+# Passing a --with-cross-host argument lets the target libraries know -+# whether they are being built with a cross-compiler or being built -+# native. However, it would be better to use other mechanisms to make the -+# sorts of decisions they want to make on this basis. Please consider -+# this option to be deprecated. FIXME. -+if test x${is_cross_compiler} = xyes ; then -+ target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" -+fi -+ -+# Default to --enable-multilib. -+if test x${enable_multilib} = x ; then -+ target_configargs="--enable-multilib ${target_configargs}" -+fi -+ -+# Pass --with-newlib if appropriate. Note that target_configdirs has -+# changed from the earlier setting of with_newlib. -+if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then -+ target_configargs="--with-newlib ${target_configargs}" -+fi -+ -+# Different target subdirs use different values of certain variables -+# (notably CXX). Worse, multilibs use *lots* of different values. -+# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that -+# it doesn't automatically accept command-line overrides of them. -+# This means it's not safe for target subdirs to share a cache file, -+# which is disgusting, but there you have it. Hopefully this can be -+# fixed in future. It's still worthwhile to use a cache file for each -+# directory. I think. -+ -+# Pass the appropriate --build, --host, --target and --cache-file arguments. -+# We need to pass --target, as newer autoconf's requires consistency -+# for target_alias and gcc doesn't manage it consistently. -+target_configargs="--cache-file=./config.cache ${target_configargs}" -+ -+FLAGS_FOR_TARGET= -+case " $target_configdirs " in -+ *" newlib "*) -+ case " $target_configargs " in -+ *" --with-newlib "*) -+ case "$target" in -+ *-cygwin*) -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;; -+ esac -+ -+ # If we're not building GCC, don't discard standard headers. -+ if test -d ${srcdir}/gcc; then -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' -+ -+ if test "${build}" != "${host}"; then -+ # On Canadian crosses, CC_FOR_TARGET will have already been set -+ # by `configure', so we won't have an opportunity to add -Bgcc/ -+ # to it. This is right: we don't want to search that directory -+ # for binaries, but we want the header files in there, so add -+ # them explicitly. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include' -+ -+ # Someone might think of using the pre-installed headers on -+ # Canadian crosses, in case the installed compiler is not fully -+ # compatible with the compiler being built. In this case, it -+ # would be better to flag an error than risking having -+ # incompatible object files being constructed. We can't -+ # guarantee that an error will be flagged, but let's hope the -+ # compiler will do it, when presented with incompatible header -+ # files. -+ fi -+ fi -+ -+ case "${target}-${is_cross_compiler}" in -+ i[[3456789]]86-*-linux*-no) -+ # Here host == target, so we don't need to build gcc, -+ # so we don't want to discard standard headers. -+ FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` -+ ;; -+ *) -+ # If we're building newlib, use its generic headers last, but search -+ # for any libc-related directories first (so make it the last -B -+ # switch). -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' -+ -+ # If we're building libgloss, find the startup file, simulator library -+ # and linker script. -+ case " $target_configdirs " in -+ *" libgloss "*) -+ # Look for startup file, simulator library and maybe linker script. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" -+ # Look for libnosys.a in case the target needs it. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' -+ # Most targets have the linker script in the source directory. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" -+ ;; -+ esac -+ ;; -+ esac -+ ;; -+ esac -+ ;; -+esac -+case "$target" in -+*-mingw*) -+ # Can't be handled as Cygwin above since Mingw does not use newlib. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;; -+esac -+ -+# Allow the user to override the flags for -+# our build compiler if desired. -+if test x"${build}" = x"${host}" ; then -+ CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} -+ CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} -+ LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} -+fi -+ -+# On Canadian crosses, we'll be searching the right directories for -+# the previously-installed cross compiler, so don't bother to add -+# flags for directories within the install tree of the compiler -+# being built; programs in there won't even run. -+if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then -+ # Search for pre-installed headers if nothing else fits. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' -+fi -+ -+if test "x${use_gnu_ld}" = x && -+ echo " ${configdirs} " | grep " ld " > /dev/null ; then -+ # Arrange for us to find uninstalled linker scripts. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' -+fi -+ -+# Search for other target-specific linker scripts and such. -+case "${target}" in -+ mep*) -+ FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" -+ ;; -+esac -+ -+# Makefile fragments. -+for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; -+do -+ eval fragval=\$$frag -+ if test $fragval != /dev/null; then -+ eval $frag=${srcdir}/$fragval -+ fi -+done -+AC_SUBST_FILE(host_makefile_frag) -+AC_SUBST_FILE(target_makefile_frag) -+AC_SUBST_FILE(alphaieee_frag) -+AC_SUBST_FILE(ospace_frag) -+ -+# Miscellanea: directories, flags, etc. -+AC_SUBST(RPATH_ENVVAR) -+AC_SUBST(GCC_SHLIB_SUBDIR) -+AC_SUBST(tooldir) -+AC_SUBST(build_tooldir) -+AC_SUBST(CONFIGURE_GDB_TK) -+AC_SUBST(GDB_TK) -+AC_SUBST(INSTALL_GDB_TK) -+ -+# Build module lists & subconfigure args. -+AC_SUBST(build_configargs) -+AC_SUBST(build_configdirs) -+ -+# Host module lists & subconfigure args. -+AC_SUBST(host_configargs) -+AC_SUBST(configdirs) -+ -+# Target module lists & subconfigure args. -+AC_SUBST(target_configargs) -+ -+ -+# Build tools. -+AC_SUBST(AR_FOR_BUILD) -+AC_SUBST(AS_FOR_BUILD) -+AC_SUBST(CC_FOR_BUILD) -+AC_SUBST(CFLAGS_FOR_BUILD) -+AC_SUBST(CXXFLAGS_FOR_BUILD) -+AC_SUBST(CXX_FOR_BUILD) -+AC_SUBST(DLLTOOL_FOR_BUILD) -+AC_SUBST(GCJ_FOR_BUILD) -+AC_SUBST(GFORTRAN_FOR_BUILD) -+AC_SUBST(LDFLAGS_FOR_BUILD) -+AC_SUBST(LD_FOR_BUILD) -+AC_SUBST(NM_FOR_BUILD) -+AC_SUBST(RANLIB_FOR_BUILD) -+AC_SUBST(WINDMC_FOR_BUILD) -+AC_SUBST(WINDRES_FOR_BUILD) -+AC_SUBST(config_shell) -+ -+# Generate default definitions for YACC, M4, LEX and other programs that run -+# on the build machine. These are used if the Makefile can't locate these -+# programs in objdir. -+MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing -+ -+AC_CHECK_PROGS([YACC], ['bison -y' byacc yacc], [$MISSING bison -y]) -+case " $build_configdirs " in -+ *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; -+ *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;; -+esac -+ -+AC_CHECK_PROGS([BISON], [bison], [$MISSING bison]) -+case " $build_configdirs " in -+ *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; -+esac -+ -+AC_CHECK_PROGS([M4], [gm4 gnum4 m4], [$MISSING m4]) -+case " $build_configdirs " in -+ *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; -+esac -+ -+AC_CHECK_PROGS([LEX], [flex lex], [$MISSING flex]) -+case " $build_configdirs " in -+ *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; -+ *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; -+esac -+ -+AC_CHECK_PROGS([FLEX], [flex], [$MISSING flex]) -+case " $build_configdirs " in -+ *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; -+esac -+ -+AC_CHECK_PROGS([MAKEINFO], makeinfo, [$MISSING makeinfo]) -+case " $build_configdirs " in -+ *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; -+ *) -+changequote(,) -+ # For an installed makeinfo, we require it to be from texinfo 4.6 or -+ # higher, else we use the "missing" dummy. -+ if ${MAKEINFO} --version \ -+ | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then -+ : -+ else -+ MAKEINFO="$MISSING makeinfo" -+ fi -+ ;; -+changequote([,]) -+esac -+ -+# FIXME: expect and dejagnu may become build tools? -+ -+AC_CHECK_PROGS(EXPECT, expect, expect) -+case " $configdirs " in -+ *" expect "*) -+ test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' -+ ;; -+esac -+ -+AC_CHECK_PROGS(RUNTEST, runtest, runtest) -+case " $configdirs " in -+ *" dejagnu "*) -+ test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' -+ ;; -+esac -+ -+ -+# Host tools. -+NCN_STRICT_CHECK_TOOLS(AR, ar) -+NCN_STRICT_CHECK_TOOLS(AS, as) -+NCN_STRICT_CHECK_TOOLS(DLLTOOL, dlltool) -+NCN_STRICT_CHECK_TOOLS(LD, ld) -+NCN_STRICT_CHECK_TOOLS(LIPO, lipo) -+NCN_STRICT_CHECK_TOOLS(NM, nm) -+NCN_STRICT_CHECK_TOOLS(RANLIB, ranlib, :) -+NCN_STRICT_CHECK_TOOLS(STRIP, strip, :) -+NCN_STRICT_CHECK_TOOLS(WINDRES, windres) -+NCN_STRICT_CHECK_TOOLS(WINDMC, windmc) -+NCN_STRICT_CHECK_TOOLS(OBJCOPY, objcopy) -+NCN_STRICT_CHECK_TOOLS(OBJDUMP, objdump) -+AC_SUBST(CC) -+AC_SUBST(CXX) -+AC_SUBST(CFLAGS) -+AC_SUBST(CXXFLAGS) -+ -+# Target tools. -+AC_ARG_WITH([build-time-tools], -+ [ --with-build-time-tools=PATH -+ use given path to find target tools during the build], -+ [case x"$withval" in -+ x/*) ;; -+ *) -+ with_build_time_tools= -+ AC_MSG_WARN([argument to --with-build-time-tools must be an absolute path]) -+ ;; -+ esac], -+ [with_build_time_tools=]) -+ -+NCN_STRICT_CHECK_TARGET_TOOLS(CC_FOR_TARGET, cc gcc) -+NCN_STRICT_CHECK_TARGET_TOOLS(CXX_FOR_TARGET, c++ g++ cxx gxx) -+NCN_STRICT_CHECK_TARGET_TOOLS(GCC_FOR_TARGET, gcc, ${CC_FOR_TARGET}) -+NCN_STRICT_CHECK_TARGET_TOOLS(GCJ_FOR_TARGET, gcj) -+NCN_STRICT_CHECK_TARGET_TOOLS(GFORTRAN_FOR_TARGET, gfortran) -+ -+ACX_CHECK_INSTALLED_TARGET_TOOL(AR_FOR_TARGET, ar) -+ACX_CHECK_INSTALLED_TARGET_TOOL(AS_FOR_TARGET, as) -+ACX_CHECK_INSTALLED_TARGET_TOOL(DLLTOOL_FOR_TARGET, dlltool) -+ACX_CHECK_INSTALLED_TARGET_TOOL(LD_FOR_TARGET, ld) -+ACX_CHECK_INSTALLED_TARGET_TOOL(LIPO_FOR_TARGET, lipo) -+ACX_CHECK_INSTALLED_TARGET_TOOL(NM_FOR_TARGET, nm) -+ACX_CHECK_INSTALLED_TARGET_TOOL(OBJDUMP_FOR_TARGET, objdump) -+ACX_CHECK_INSTALLED_TARGET_TOOL(RANLIB_FOR_TARGET, ranlib, :) -+ACX_CHECK_INSTALLED_TARGET_TOOL(STRIP_FOR_TARGET, strip) -+ACX_CHECK_INSTALLED_TARGET_TOOL(WINDRES_FOR_TARGET, windres) -+ACX_CHECK_INSTALLED_TARGET_TOOL(WINDMC_FOR_TARGET, windmc) -+ -+RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" -+ -+GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar]) -+GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new]) -+GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/]) -+GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX, -+ [gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs], -+ c++) -+GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX, -+ [gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs], -+ c++) -+GCC_TARGET_TOOL(dlltool, DLLTOOL_FOR_TARGET, DLLTOOL, [binutils/dlltool]) -+GCC_TARGET_TOOL(gcc, GCC_FOR_TARGET, , [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/]) -+GCC_TARGET_TOOL(gcj, GCJ_FOR_TARGET, GCJ, -+ [gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/], java) -+GCC_TARGET_TOOL(gfortran, GFORTRAN_FOR_TARGET, GFORTRAN, -+ [gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/], fortran) -+GCC_TARGET_TOOL(ld, LD_FOR_TARGET, LD, [ld/ld-new]) -+GCC_TARGET_TOOL(lipo, LIPO_FOR_TARGET, LIPO) -+GCC_TARGET_TOOL(nm, NM_FOR_TARGET, NM, [binutils/nm-new]) -+GCC_TARGET_TOOL(objdump, OBJDUMP_FOR_TARGET, OBJDUMP, [binutils/objdump]) -+GCC_TARGET_TOOL(ranlib, RANLIB_FOR_TARGET, RANLIB, [binutils/ranlib]) -+GCC_TARGET_TOOL(strip, STRIP_FOR_TARGET, STRIP, [binutils/strip]) -+GCC_TARGET_TOOL(windres, WINDRES_FOR_TARGET, WINDRES, [binutils/windres]) -+GCC_TARGET_TOOL(windmc, WINDMC_FOR_TARGET, WINDMC, [binutils/windmc]) -+ -+AC_SUBST(FLAGS_FOR_TARGET) -+AC_SUBST(RAW_CXX_FOR_TARGET) -+ -+# Certain tools may need extra flags. -+AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} -+RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} -+NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} -+ -+# When building target libraries, except in a Canadian cross, we use -+# the same toolchain as the compiler we just built. -+COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' -+COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' -+COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' -+if test $host = $build; then -+ case " $configdirs " in -+ *" gcc "*) -+ COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' -+ COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' -+ COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} -+ ;; -+ esac -+fi -+ -+AC_SUBST(COMPILER_AS_FOR_TARGET) -+AC_SUBST(COMPILER_LD_FOR_TARGET) -+AC_SUBST(COMPILER_NM_FOR_TARGET) -+ -+AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) -+AC_ARG_ENABLE(maintainer-mode, -+[ --enable-maintainer-mode enable make rules and dependencies not useful -+ (and sometimes confusing) to the casual installer], -+ USE_MAINTAINER_MODE=$enableval, -+ USE_MAINTAINER_MODE=no) -+AC_MSG_RESULT($USE_MAINTAINER_MODE) -+AC_SUBST(MAINTAINER_MODE_TRUE) -+AC_SUBST(MAINTAINER_MODE_FALSE) -+if test "$USE_MAINTAINER_MODE" = yes; then -+ MAINTAINER_MODE_TRUE= -+ MAINTAINER_MODE_FALSE='#' -+else -+ MAINTAINER_MODE_TRUE='#' -+ MAINTAINER_MODE_FALSE= -+fi -+MAINT=$MAINTAINER_MODE_TRUE -+AC_SUBST(MAINT)dnl -+ -+# --------------------- -+# GCC bootstrap support -+# --------------------- -+ -+# Stage specific cflags for build. -+stage1_cflags="-g" -+case $build in -+ vax-*-*) -+ case ${GCC} in -+ yes) stage1_cflags="-g -Wa,-J" ;; -+ *) stage1_cflags="-g -J" ;; -+ esac ;; -+esac -+ -+# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. -+if test "$GCC" = yes; then -+ saved_CFLAGS="$CFLAGS" -+ -+ # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. -+ CFLAGS="$CFLAGS -fkeep-inline-functions" -+ AC_MSG_CHECKING([whether -fkeep-inline-functions is supported]) -+ AC_TRY_COMPILE([ -+#if (__GNUC__ < 3) \ -+ || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ -+ || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) -+#error http://gcc.gnu.org/PR29382 -+#endif -+ ],, -+ [AC_MSG_RESULT([yes]); stage1_cflags="$stage1_cflags -fkeep-inline-functions"], -+ [AC_MSG_RESULT([no])]) -+ -+ CFLAGS="$saved_CFLAGS" -+fi -+ -+AC_SUBST(stage1_cflags) -+ -+# Enable --enable-checking in stage1 of the compiler. -+AC_ARG_ENABLE(stage1-checking, -+[ --enable-stage1-checking@<:@=all@:>@ choose additional checking for stage1 -+ of the compiler], -+[stage1_checking=--enable-checking=${enable_stage1_checking}], -+[if test "x$enable_checking" = xno || test "x$enable_checking" = x; then -+ stage1_checking=--enable-checking=yes,types -+else -+ stage1_checking=--enable-checking=$enable_checking,types -+fi]) -+AC_SUBST(stage1_checking) -+ -+# Enable -Werror in bootstrap stage2 and later. -+AC_ARG_ENABLE(werror, -+[ --enable-werror enable -Werror in bootstrap stage2 and later], [], -+[if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then -+ enable_werror=yes -+else -+ enable_werror=no -+fi]) -+case ${enable_werror} in -+ yes) stage2_werror_flag="--enable-werror-always" ;; -+ *) stage2_werror_flag="" ;; -+esac -+AC_SUBST(stage2_werror_flag) -+ -+# Flags needed to enable html installing and building -+AC_ARG_WITH(datarootdir, -+[ --with-datarootdir use datarootdir as the data root directory.], -+[datarootdir="\${prefix}/${withval}"], -+[datarootdir="\${prefix}/share"]) -+ -+AC_ARG_WITH(docdir, -+[ --with-docdir install documentation in this directory.], -+[docdir="\${prefix}/${withval}"], -+[docdir="\${datarootdir}/doc"]) -+ -+AC_ARG_WITH(pdfdir, -+[ --with-pdfdir install pdf in this directory.], -+[pdfdir="\${prefix}/${withval}"], -+[pdfdir="\${docdir}"]) -+ -+AC_ARG_WITH(htmldir, -+[ --with-htmldir install html in this directory.], -+[htmldir="\${prefix}/${withval}"], -+[htmldir="\${docdir}"]) -+ -+AC_SUBST(datarootdir) -+AC_SUBST(docdir) -+AC_SUBST(pdfdir) -+AC_SUBST(htmldir) -+ -+AC_OUTPUT(Makefile) -diff -Nbaur newlib-1.17.0/configure.orig newlib-1.17.0-psp/configure.orig ---- newlib-1.17.0/configure.orig 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/configure.orig 2008-12-16 12:31:18.000000000 +0000 -@@ -0,0 +1,13601 @@ -+#! /bin/sh -+# Guess values for system-dependent variables and create Makefiles. -+# Generated by GNU Autoconf 2.59. -+# -+# Copyright (C) 2003 Free Software Foundation, Inc. -+# This configure script is free software; the Free Software Foundation -+# gives unlimited permission to copy, distribute and modify it. -+## --------------------- ## -+## M4sh Initialization. ## -+## --------------------- ## -+ -+# Be Bourne compatible -+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then -+ emulate sh -+ NULLCMD=: -+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which -+ # is contrary to our usage. Disable this feature. -+ alias -g '${1+"$@"}'='"$@"' -+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then -+ set -o posix -+fi -+DUALCASE=1; export DUALCASE # for MKS sh -+ -+# Support unset when possible. -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then -+ as_unset=unset -+else -+ as_unset=false -+fi -+ -+ -+# Work around bugs in pre-3.0 UWIN ksh. -+$as_unset ENV MAIL MAILPATH -+PS1='$ ' -+PS2='> ' -+PS4='+ ' -+ -+# NLS nuisances. -+for as_var in \ -+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ -+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ -+ LC_TELEPHONE LC_TIME -+do -+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then -+ eval $as_var=C; export $as_var -+ else -+ $as_unset $as_var -+ fi -+done -+ -+# Required to use basename. -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then -+ as_basename=basename -+else -+ as_basename=false -+fi -+ -+ -+# Name of the executable. -+as_me=`$as_basename "$0" || -+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ -+ X"$0" : 'X\(//\)$' \| \ -+ X"$0" : 'X\(/\)$' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X/"$0" | -+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } -+ /^X\/\(\/\/\)$/{ s//\1/; q; } -+ /^X\/\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ -+ -+# PATH needs CR, and LINENO needs CR and PATH. -+# Avoid depending upon Character Ranges. -+as_cr_letters='abcdefghijklmnopqrstuvwxyz' -+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -+as_cr_Letters=$as_cr_letters$as_cr_LETTERS -+as_cr_digits='0123456789' -+as_cr_alnum=$as_cr_Letters$as_cr_digits -+ -+# 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 -+ -+ -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" || { -+ # Find who we are. Look in the path if we contain no path at all -+ # relative or not. -+ case $0 in -+ *[\\/]* ) as_myself=$0 ;; -+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -+done -+ -+ ;; -+ esac -+ # We did not find ourselves, most probably we were run as `sh COMMAND' -+ # in which case we are not to be found in the path. -+ if test "x$as_myself" = x; then -+ as_myself=$0 -+ fi -+ if test ! -f "$as_myself"; then -+ { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 -+ { (exit 1); exit 1; }; } -+ fi -+ case $CONFIG_SHELL in -+ '') -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ for as_base in sh bash ksh sh5; do -+ case $as_dir in -+ /*) -+ if ("$as_dir/$as_base" -c ' -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then -+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } -+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } -+ CONFIG_SHELL=$as_dir/$as_base -+ export CONFIG_SHELL -+ exec "$CONFIG_SHELL" "$0" ${1+"$@"} -+ fi;; -+ esac -+ done -+done -+;; -+ esac -+ -+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO -+ # uniformly replaced by the line number. The first 'sed' inserts a -+ # line-number line before each line; the second 'sed' does the real -+ # work. The second script uses 'N' to pair each line-number line -+ # with the numbered line, and appends trailing '-' during -+ # substitution so that $LINENO is not a special case at line end. -+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the -+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) -+ sed '=' <$as_myself | -+ sed ' -+ N -+ s,$,-, -+ : loop -+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, -+ t loop -+ s,-$,, -+ s,^['$as_cr_digits']*\n,, -+ ' >$as_me.lineno && -+ chmod +x $as_me.lineno || -+ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 -+ { (exit 1); exit 1; }; } -+ -+ # Don't try to exec as it changes $[0], causing all sort of problems -+ # (the dirname of $[0] is not the place where we might find the -+ # original and so on. Autoconf is especially sensible to this). -+ . ./$as_me.lineno -+ # Exit status is that of the last command. -+ exit -+} -+ -+ -+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in -+ *c*,-n*) ECHO_N= ECHO_C=' -+' ECHO_T=' ' ;; -+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; -+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -+esac -+ -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+rm -f conf$$ conf$$.exe conf$$.file -+echo >conf$$.file -+if ln -s conf$$.file conf$$ 2>/dev/null; then -+ # We could just check for DJGPP; but this test a) works b) is more generic -+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). -+ if test -f conf$$.exe; then -+ # Don't use ln at all; we don't have any links -+ as_ln_s='cp -p' -+ else -+ as_ln_s='ln -s' -+ fi -+elif ln conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s=ln -+else -+ as_ln_s='cp -p' -+fi -+rm -f conf$$ conf$$.exe conf$$.file -+ -+if mkdir -p . 2>/dev/null; then -+ as_mkdir_p=: -+else -+ test -d ./-p && rmdir ./-p -+ as_mkdir_p=false -+fi -+ -+as_executable_p="test -f" -+ -+# Sed expression to map a string onto a valid CPP name. -+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -+ -+# Sed expression to map a string onto a valid variable name. -+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -+ -+ -+# IFS -+# We need space, tab and new line, in precisely that order. -+as_nl=' -+' -+IFS=" $as_nl" -+ -+# CDPATH. -+$as_unset CDPATH -+ -+ -+# Name of the host. -+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -+# so uname gets run too. -+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` -+ -+exec 6>&1 -+ -+# -+# Initializations. -+# -+ac_default_prefix=/usr/local -+ac_config_libobj_dir=. -+cross_compiling=no -+subdirs= -+MFLAGS= -+MAKEFLAGS= -+SHELL=${CONFIG_SHELL-/bin/sh} -+ -+# Maximum number of lines to put in a shell here document. -+# This variable seems obsolete. It should probably be removed, and -+# only ac_max_sed_lines should be used. -+: ${ac_max_here_lines=38} -+ -+# Identity of this package. -+PACKAGE_NAME= -+PACKAGE_TARNAME= -+PACKAGE_VERSION= -+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 TOPLEVEL_CONFIGURE_ARGUMENTS 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 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 ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP 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' -+ac_pwd=`pwd` -+ -+# Initialize some variables set by options. -+ac_init_help= -+ac_init_version=false -+# The variables have the same names as the options, with -+# dashes changed to underlines. -+cache_file=/dev/null -+exec_prefix=NONE -+no_create= -+no_recursion= -+prefix=NONE -+program_prefix=NONE -+program_suffix=NONE -+program_transform_name=s,x,x, -+silent= -+site= -+srcdir= -+verbose= -+x_includes=NONE -+x_libraries=NONE -+ -+# Installation directory options. -+# These are left unexpanded so users can "make install exec_prefix=/foo" -+# and all the variables that are supposed to be based on exec_prefix -+# by default will actually change. -+# Use braces instead of parens because sh, perl, etc. also accept them. -+bindir='${exec_prefix}/bin' -+sbindir='${exec_prefix}/sbin' -+libexecdir='${exec_prefix}/libexec' -+datadir='${prefix}/share' -+sysconfdir='${prefix}/etc' -+sharedstatedir='${prefix}/com' -+localstatedir='${prefix}/var' -+libdir='${exec_prefix}/lib' -+includedir='${prefix}/include' -+oldincludedir='/usr/include' -+infodir='${prefix}/info' -+mandir='${prefix}/man' -+ -+ac_prev= -+for ac_option -+do -+ # If the previous option needs an argument, assign it. -+ if test -n "$ac_prev"; then -+ eval "$ac_prev=\$ac_option" -+ ac_prev= -+ continue -+ fi -+ -+ ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` -+ -+ # Accept the important Cygnus configure options, so we can diagnose typos. -+ -+ case $ac_option in -+ -+ -bindir | --bindir | --bindi | --bind | --bin | --bi) -+ ac_prev=bindir ;; -+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) -+ bindir=$ac_optarg ;; -+ -+ -build | --build | --buil | --bui | --bu) -+ ac_prev=build_alias ;; -+ -build=* | --build=* | --buil=* | --bui=* | --bu=*) -+ build_alias=$ac_optarg ;; -+ -+ -cache-file | --cache-file | --cache-fil | --cache-fi \ -+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) -+ ac_prev=cache_file ;; -+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ -+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) -+ cache_file=$ac_optarg ;; -+ -+ --config-cache | -C) -+ cache_file=config.cache ;; -+ -+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da) -+ ac_prev=datadir ;; -+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ -+ | --da=*) -+ datadir=$ac_optarg ;; -+ -+ -disable-* | --disable-*) -+ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 -+ { (exit 1); exit 1; }; } -+ ac_feature=`echo $ac_feature | sed 's/-/_/g'` -+ eval "enable_$ac_feature=no" ;; -+ -+ -enable-* | --enable-*) -+ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 -+ { (exit 1); exit 1; }; } -+ ac_feature=`echo $ac_feature | sed 's/-/_/g'` -+ case $ac_option in -+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; -+ *) ac_optarg=yes ;; -+ esac -+ eval "enable_$ac_feature='$ac_optarg'" ;; -+ -+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ -+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ -+ | --exec | --exe | --ex) -+ ac_prev=exec_prefix ;; -+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ -+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ -+ | --exec=* | --exe=* | --ex=*) -+ exec_prefix=$ac_optarg ;; -+ -+ -gas | --gas | --ga | --g) -+ # Obsolete; use --with-gas. -+ with_gas=yes ;; -+ -+ -help | --help | --hel | --he | -h) -+ ac_init_help=long ;; -+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) -+ ac_init_help=recursive ;; -+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) -+ ac_init_help=short ;; -+ -+ -host | --host | --hos | --ho) -+ ac_prev=host_alias ;; -+ -host=* | --host=* | --hos=* | --ho=*) -+ host_alias=$ac_optarg ;; -+ -+ -includedir | --includedir | --includedi | --included | --include \ -+ | --includ | --inclu | --incl | --inc) -+ ac_prev=includedir ;; -+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ -+ | --includ=* | --inclu=* | --incl=* | --inc=*) -+ includedir=$ac_optarg ;; -+ -+ -infodir | --infodir | --infodi | --infod | --info | --inf) -+ ac_prev=infodir ;; -+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) -+ infodir=$ac_optarg ;; -+ -+ -libdir | --libdir | --libdi | --libd) -+ ac_prev=libdir ;; -+ -libdir=* | --libdir=* | --libdi=* | --libd=*) -+ libdir=$ac_optarg ;; -+ -+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ -+ | --libexe | --libex | --libe) -+ ac_prev=libexecdir ;; -+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ -+ | --libexe=* | --libex=* | --libe=*) -+ libexecdir=$ac_optarg ;; -+ -+ -localstatedir | --localstatedir | --localstatedi | --localstated \ -+ | --localstate | --localstat | --localsta | --localst \ -+ | --locals | --local | --loca | --loc | --lo) -+ ac_prev=localstatedir ;; -+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ -+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ -+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) -+ localstatedir=$ac_optarg ;; -+ -+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m) -+ ac_prev=mandir ;; -+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) -+ mandir=$ac_optarg ;; -+ -+ -nfp | --nfp | --nf) -+ # Obsolete; use --without-fp. -+ with_fp=no ;; -+ -+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ -+ | --no-cr | --no-c | -n) -+ no_create=yes ;; -+ -+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ -+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) -+ no_recursion=yes ;; -+ -+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ -+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ -+ | --oldin | --oldi | --old | --ol | --o) -+ ac_prev=oldincludedir ;; -+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ -+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ -+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) -+ oldincludedir=$ac_optarg ;; -+ -+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) -+ ac_prev=prefix ;; -+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) -+ prefix=$ac_optarg ;; -+ -+ -program-prefix | --program-prefix | --program-prefi | --program-pref \ -+ | --program-pre | --program-pr | --program-p) -+ ac_prev=program_prefix ;; -+ -program-prefix=* | --program-prefix=* | --program-prefi=* \ -+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) -+ program_prefix=$ac_optarg ;; -+ -+ -program-suffix | --program-suffix | --program-suffi | --program-suff \ -+ | --program-suf | --program-su | --program-s) -+ ac_prev=program_suffix ;; -+ -program-suffix=* | --program-suffix=* | --program-suffi=* \ -+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) -+ program_suffix=$ac_optarg ;; -+ -+ -program-transform-name | --program-transform-name \ -+ | --program-transform-nam | --program-transform-na \ -+ | --program-transform-n | --program-transform- \ -+ | --program-transform | --program-transfor \ -+ | --program-transfo | --program-transf \ -+ | --program-trans | --program-tran \ -+ | --progr-tra | --program-tr | --program-t) -+ ac_prev=program_transform_name ;; -+ -program-transform-name=* | --program-transform-name=* \ -+ | --program-transform-nam=* | --program-transform-na=* \ -+ | --program-transform-n=* | --program-transform-=* \ -+ | --program-transform=* | --program-transfor=* \ -+ | --program-transfo=* | --program-transf=* \ -+ | --program-trans=* | --program-tran=* \ -+ | --progr-tra=* | --program-tr=* | --program-t=*) -+ program_transform_name=$ac_optarg ;; -+ -+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ -+ | -silent | --silent | --silen | --sile | --sil) -+ silent=yes ;; -+ -+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) -+ ac_prev=sbindir ;; -+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ -+ | --sbi=* | --sb=*) -+ sbindir=$ac_optarg ;; -+ -+ -sharedstatedir | --sharedstatedir | --sharedstatedi \ -+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ -+ | --sharedst | --shareds | --shared | --share | --shar \ -+ | --sha | --sh) -+ ac_prev=sharedstatedir ;; -+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ -+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ -+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ -+ | --sha=* | --sh=*) -+ sharedstatedir=$ac_optarg ;; -+ -+ -site | --site | --sit) -+ ac_prev=site ;; -+ -site=* | --site=* | --sit=*) -+ site=$ac_optarg ;; -+ -+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) -+ ac_prev=srcdir ;; -+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) -+ srcdir=$ac_optarg ;; -+ -+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ -+ | --syscon | --sysco | --sysc | --sys | --sy) -+ ac_prev=sysconfdir ;; -+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ -+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) -+ sysconfdir=$ac_optarg ;; -+ -+ -target | --target | --targe | --targ | --tar | --ta | --t) -+ ac_prev=target_alias ;; -+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) -+ target_alias=$ac_optarg ;; -+ -+ -v | -verbose | --verbose | --verbos | --verbo | --verb) -+ verbose=yes ;; -+ -+ -version | --version | --versio | --versi | --vers | -V) -+ ac_init_version=: ;; -+ -+ -with-* | --with-*) -+ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid package name: $ac_package" >&2 -+ { (exit 1); exit 1; }; } -+ ac_package=`echo $ac_package| sed 's/-/_/g'` -+ case $ac_option in -+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; -+ *) ac_optarg=yes ;; -+ esac -+ eval "with_$ac_package='$ac_optarg'" ;; -+ -+ -without-* | --without-*) -+ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid package name: $ac_package" >&2 -+ { (exit 1); exit 1; }; } -+ ac_package=`echo $ac_package | sed 's/-/_/g'` -+ eval "with_$ac_package=no" ;; -+ -+ --x) -+ # Obsolete; use --with-x. -+ with_x=yes ;; -+ -+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ -+ | --x-incl | --x-inc | --x-in | --x-i) -+ ac_prev=x_includes ;; -+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ -+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) -+ x_includes=$ac_optarg ;; -+ -+ -x-libraries | --x-libraries | --x-librarie | --x-librari \ -+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) -+ ac_prev=x_libraries ;; -+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ -+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) -+ x_libraries=$ac_optarg ;; -+ -+ -*) { echo "$as_me: error: unrecognized option: $ac_option -+Try \`$0 --help' for more information." >&2 -+ { (exit 1); exit 1; }; } -+ ;; -+ -+ *=*) -+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 -+ { (exit 1); exit 1; }; } -+ ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` -+ eval "$ac_envvar='$ac_optarg'" -+ export $ac_envvar ;; -+ -+ *) -+ # FIXME: should be removed in autoconf 3.0. -+ echo "$as_me: WARNING: you should use --build, --host, --target" >&2 -+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && -+ echo "$as_me: WARNING: invalid host type: $ac_option" >&2 -+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} -+ ;; -+ -+ esac -+done -+ -+if test -n "$ac_prev"; then -+ ac_option=--`echo $ac_prev | sed 's/_/-/g'` -+ { echo "$as_me: error: missing argument to $ac_option" >&2 -+ { (exit 1); exit 1; }; } -+fi -+ -+# Be sure to have absolute paths. -+for ac_var in exec_prefix prefix -+do -+ eval ac_val=$`echo $ac_var` -+ case $ac_val in -+ [\\/$]* | ?:[\\/]* | NONE | '' ) ;; -+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 -+ { (exit 1); exit 1; }; };; -+ esac -+done -+ -+# Be sure to have absolute paths. -+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ -+ localstatedir libdir includedir oldincludedir infodir mandir -+do -+ eval ac_val=$`echo $ac_var` -+ case $ac_val in -+ [\\/$]* | ?:[\\/]* ) ;; -+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 -+ { (exit 1); exit 1; }; };; -+ esac -+done -+ -+# There might be people who depend on the old broken behavior: `$host' -+# used to hold the argument of --host etc. -+# FIXME: To remove some day. -+build=$build_alias -+host=$host_alias -+target=$target_alias -+ -+# FIXME: To remove some day. -+if test "x$host_alias" != x; then -+ if test "x$build_alias" = x; then -+ cross_compiling=maybe -+ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. -+ If a cross compiler is detected then cross compile mode will be used." >&2 -+ elif test "x$build_alias" != "x$host_alias"; then -+ cross_compiling=yes -+ fi -+fi -+ -+ac_tool_prefix= -+test -n "$host_alias" && ac_tool_prefix=$host_alias- -+ -+test "$silent" = yes && exec 6>/dev/null -+ -+ -+# Find the source files, if location was not specified. -+if test -z "$srcdir"; then -+ ac_srcdir_defaulted=yes -+ # Try the directory containing this script, then its parent. -+ ac_confdir=`(dirname "$0") 2>/dev/null || -+$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$0" : 'X\(//\)[^/]' \| \ -+ X"$0" : 'X\(//\)$' \| \ -+ X"$0" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$0" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ srcdir=$ac_confdir -+ if test ! -r $srcdir/$ac_unique_file; then -+ srcdir=.. -+ fi -+else -+ ac_srcdir_defaulted=no -+fi -+if test ! -r $srcdir/$ac_unique_file; then -+ if test "$ac_srcdir_defaulted" = yes; then -+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 -+ { (exit 1); exit 1; }; } -+ else -+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 -+ { (exit 1); exit 1; }; } -+ fi -+fi -+(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || -+ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 -+ { (exit 1); exit 1; }; } -+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -+ac_env_build_alias_set=${build_alias+set} -+ac_env_build_alias_value=$build_alias -+ac_cv_env_build_alias_set=${build_alias+set} -+ac_cv_env_build_alias_value=$build_alias -+ac_env_host_alias_set=${host_alias+set} -+ac_env_host_alias_value=$host_alias -+ac_cv_env_host_alias_set=${host_alias+set} -+ac_cv_env_host_alias_value=$host_alias -+ac_env_target_alias_set=${target_alias+set} -+ac_env_target_alias_value=$target_alias -+ac_cv_env_target_alias_set=${target_alias+set} -+ac_cv_env_target_alias_value=$target_alias -+ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` -+ -+ac_env_CC_set=${CC+set} -+ac_env_CC_value=$CC -+ac_cv_env_CC_set=${CC+set} -+ac_cv_env_CC_value=$CC -+ac_env_CFLAGS_set=${CFLAGS+set} -+ac_env_CFLAGS_value=$CFLAGS -+ac_cv_env_CFLAGS_set=${CFLAGS+set} -+ac_cv_env_CFLAGS_value=$CFLAGS -+ac_env_LDFLAGS_set=${LDFLAGS+set} -+ac_env_LDFLAGS_value=$LDFLAGS -+ac_cv_env_LDFLAGS_set=${LDFLAGS+set} -+ac_cv_env_LDFLAGS_value=$LDFLAGS -+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_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} -+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 -+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. -+# -+if test "$ac_init_help" = "long"; then -+ # Omit some internal or obsolete options to make the list less imposing. -+ # This message is too long to be a string in the A/UX 3.1 sh. -+ cat <<_ACEOF -+\`configure' configures this package to adapt to many kinds of systems. -+ -+Usage: $0 [OPTION]... [VAR=VALUE]... -+ -+To assign environment variables (e.g., CC, CFLAGS...), specify them as -+VAR=VALUE. See below for descriptions of some of the useful variables. -+ -+Defaults for the options are specified in brackets. -+ -+Configuration: -+ -h, --help display this help and exit -+ --help=short display options specific to this package -+ --help=recursive display the short help of all the included packages -+ -V, --version display version information and exit -+ -q, --quiet, --silent do not print \`checking...' messages -+ --cache-file=FILE cache test results in FILE [disabled] -+ -C, --config-cache alias for \`--cache-file=config.cache' -+ -n, --no-create do not create output files -+ --srcdir=DIR find the sources in DIR [configure dir or \`..'] -+ -+_ACEOF -+ -+ cat <<_ACEOF -+Installation directories: -+ --prefix=PREFIX install architecture-independent files in PREFIX -+ [$ac_default_prefix] -+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX -+ [PREFIX] -+ -+By default, \`make install' will install all the files in -+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -+an installation prefix other than \`$ac_default_prefix' using \`--prefix', -+for instance \`--prefix=\$HOME'. -+ -+For better control, use the options below. -+ -+Fine tuning of the installation directories: -+ --bindir=DIR user executables [EPREFIX/bin] -+ --sbindir=DIR system admin executables [EPREFIX/sbin] -+ --libexecdir=DIR program executables [EPREFIX/libexec] -+ --datadir=DIR read-only architecture-independent data [PREFIX/share] -+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] -+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] -+ --localstatedir=DIR modifiable single-machine data [PREFIX/var] -+ --libdir=DIR object code libraries [EPREFIX/lib] -+ --includedir=DIR C header files [PREFIX/include] -+ --oldincludedir=DIR C header files for non-gcc [/usr/include] -+ --infodir=DIR info documentation [PREFIX/info] -+ --mandir=DIR man documentation [PREFIX/man] -+_ACEOF -+ -+ cat <<\_ACEOF -+ -+Program names: -+ --program-prefix=PREFIX prepend PREFIX to installed program names -+ --program-suffix=SUFFIX append SUFFIX to installed program names -+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names -+ -+System types: -+ --build=BUILD configure for building on BUILD [guessed] -+ --host=HOST cross-compile to build programs to run on HOST [BUILD] -+ --target=TARGET configure for building compilers for TARGET [HOST] -+_ACEOF -+fi -+ -+if test -n "$ac_init_help"; then -+ -+ cat <<\_ACEOF -+ -+Optional Features: -+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) -+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] -+ --enable-gold use gold instead of ld -+ --enable-libada build libada directory -+ --enable-libssp build libssp directory -+ --disable-ppl-version-check disable check for PPL version -+ --disable-cloog-version-check disable check for CLooG version -+ --enable-stage1-languages[=all] choose additional languages to build during -+ stage1. Mostly useful for compiler development. -+ --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 -+ --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-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. -+ 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 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 directory for the installed GMP library -+ --with-ppl=PATH Specify prefix directory for the installed PPL package -+ Equivalent to --with-ppl-include=PATH/include -+ plus --with-ppl-lib=PATH/lib -+ --with-ppl-include=PATH Specify directory for installed PPL include files -+ --with-ppl-lib=PATH Specify the directory for the installed PPL library -+ --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package -+ Equivalent to --with-cloog-include=PATH/include -+ plus --with-cloog-lib=PATH/lib -+ --with-cloog-include=PATH Specify directory for installed CLooG include files -+ --with-cloog-lib=PATH Specify the directory for the installed CLooG library -+ --with-cloog-polylib=PATH Specify prefix directory for the installed CLooG-PolyLib package -+ --with-build-sysroot=SYSROOT -+ use sysroot as the system root during the build -+ --with-debug-prefix-map='A=B C=D ...' -+ map A to B, C to D ... in debug information -+ --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-pdfdir install pdf in this directory. -+ --with-htmldir install html in this directory. -+ -+Some influential environment variables: -+ CC C compiler command -+ CFLAGS C compiler flags -+ LDFLAGS linker flags, e.g. -L if you have libraries in a -+ 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 -+ WINDMC WINDMC 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 -+ 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. -+ -+_ACEOF -+fi -+ -+if test "$ac_init_help" = "recursive"; then -+ # If there are subdirs, report their specific --help. -+ ac_popdir=`pwd` -+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue -+ test -d $ac_dir || continue -+ ac_builddir=. -+ -+if test "$ac_dir" != .; then -+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` -+ # A "../" for each directory in $ac_dir_suffix. -+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -+else -+ ac_dir_suffix= ac_top_builddir= -+fi -+ -+case $srcdir in -+ .) # No --srcdir option. We are building in place. -+ ac_srcdir=. -+ if test -z "$ac_top_builddir"; then -+ ac_top_srcdir=. -+ else -+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` -+ fi ;; -+ [\\/]* | ?:[\\/]* ) # Absolute path. -+ ac_srcdir=$srcdir$ac_dir_suffix; -+ ac_top_srcdir=$srcdir ;; -+ *) # Relative path. -+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix -+ ac_top_srcdir=$ac_top_builddir$srcdir ;; -+esac -+ -+# Do not use `cd foo && pwd` to compute absolute paths, because -+# the directories may not exist. -+case `pwd` in -+.) ac_abs_builddir="$ac_dir";; -+*) -+ case "$ac_dir" in -+ .) ac_abs_builddir=`pwd`;; -+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; -+ *) ac_abs_builddir=`pwd`/"$ac_dir";; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_builddir=${ac_top_builddir}.;; -+*) -+ case ${ac_top_builddir}. in -+ .) ac_abs_top_builddir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; -+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_srcdir=$ac_srcdir;; -+*) -+ case $ac_srcdir in -+ .) ac_abs_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; -+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_srcdir=$ac_top_srcdir;; -+*) -+ case $ac_top_srcdir in -+ .) ac_abs_top_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; -+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; -+ esac;; -+esac -+ -+ cd $ac_dir -+ # Check for guested configure; otherwise get Cygnus style configure. -+ if test -f $ac_srcdir/configure.gnu; then -+ echo -+ $SHELL $ac_srcdir/configure.gnu --help=recursive -+ elif test -f $ac_srcdir/configure; then -+ echo -+ $SHELL $ac_srcdir/configure --help=recursive -+ elif test -f $ac_srcdir/configure.ac || -+ test -f $ac_srcdir/configure.in; then -+ echo -+ $ac_configure --help -+ else -+ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 -+ fi -+ cd $ac_popdir -+ done -+fi -+ -+test -n "$ac_init_help" && exit 0 -+if $ac_init_version; then -+ cat <<\_ACEOF -+ -+Copyright (C) 2003 Free Software Foundation, Inc. -+This configure script is free software; the Free Software Foundation -+gives unlimited permission to copy, distribute and modify it. -+_ACEOF -+ exit 0 -+fi -+exec 5>config.log -+cat >&5 <<_ACEOF -+This file contains any messages produced by compilers while -+running configure, to aid debugging if configure makes a mistake. -+ -+It was created by $as_me, which was -+generated by GNU Autoconf 2.59. Invocation command line was -+ -+ $ $0 $@ -+ -+_ACEOF -+{ -+cat <<_ASUNAME -+## --------- ## -+## Platform. ## -+## --------- ## -+ -+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -+uname -m = `(uname -m) 2>/dev/null || echo unknown` -+uname -r = `(uname -r) 2>/dev/null || echo unknown` -+uname -s = `(uname -s) 2>/dev/null || echo unknown` -+uname -v = `(uname -v) 2>/dev/null || echo unknown` -+ -+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` -+ -+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -+hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` -+ -+_ASUNAME -+ -+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ echo "PATH: $as_dir" -+done -+ -+} >&5 -+ -+cat >&5 <<_ACEOF -+ -+ -+## ----------- ## -+## Core tests. ## -+## ----------- ## -+ -+_ACEOF -+ -+ -+# Keep a trace of the command line. -+# Strip out --no-create and --no-recursion so they do not pile up. -+# Strip out --silent because we don't want to record it for future runs. -+# Also quote any args containing shell meta-characters. -+# Make two passes to allow for proper duplicate-argument suppression. -+ac_configure_args= -+ac_configure_args0= -+ac_configure_args1= -+ac_sep= -+ac_must_keep_next=false -+for ac_pass in 1 2 -+do -+ for ac_arg -+ do -+ case $ac_arg in -+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ -+ | -silent | --silent | --silen | --sile | --sil) -+ continue ;; -+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) -+ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; -+ esac -+ case $ac_pass in -+ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; -+ 2) -+ ac_configure_args1="$ac_configure_args1 '$ac_arg'" -+ if test $ac_must_keep_next = true; then -+ ac_must_keep_next=false # Got value, back to normal. -+ else -+ case $ac_arg in -+ *=* | --config-cache | -C | -disable-* | --disable-* \ -+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ -+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ -+ | -with-* | --with-* | -without-* | --without-* | --x) -+ case "$ac_configure_args0 " in -+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; -+ esac -+ ;; -+ -* ) ac_must_keep_next=true ;; -+ esac -+ fi -+ ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" -+ # Get rid of the leading space. -+ ac_sep=" " -+ ;; -+ esac -+ done -+done -+$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -+$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } -+ -+# When interrupted or exit'd, cleanup temporary files, and complete -+# config.log. We remove comments because anyway the quotes in there -+# would cause problems or look ugly. -+# WARNING: Be sure not to use single quotes in there, as some shells, -+# such as our DU 5.0 friend, will then `close' the trap. -+trap 'exit_status=$? -+ # Save into config.log some information that might help in debugging. -+ { -+ echo -+ -+ cat <<\_ASBOX -+## ---------------- ## -+## Cache variables. ## -+## ---------------- ## -+_ASBOX -+ echo -+ # The following way of writing the cache mishandles newlines in values, -+{ -+ (set) 2>&1 | -+ case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in -+ *ac_space=\ *) -+ sed -n \ -+ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; -+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" -+ ;; -+ *) -+ sed -n \ -+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" -+ ;; -+ esac; -+} -+ echo -+ -+ cat <<\_ASBOX -+## ----------------- ## -+## Output variables. ## -+## ----------------- ## -+_ASBOX -+ echo -+ for ac_var in $ac_subst_vars -+ do -+ eval ac_val=$`echo $ac_var` -+ echo "$ac_var='"'"'$ac_val'"'"'" -+ done | sort -+ echo -+ -+ if test -n "$ac_subst_files"; then -+ cat <<\_ASBOX -+## ------------- ## -+## Output files. ## -+## ------------- ## -+_ASBOX -+ echo -+ for ac_var in $ac_subst_files -+ do -+ eval ac_val=$`echo $ac_var` -+ echo "$ac_var='"'"'$ac_val'"'"'" -+ done | sort -+ echo -+ fi -+ -+ if test -s confdefs.h; then -+ cat <<\_ASBOX -+## ----------- ## -+## confdefs.h. ## -+## ----------- ## -+_ASBOX -+ echo -+ sed "/^$/d" confdefs.h | sort -+ echo -+ fi -+ test "$ac_signal" != 0 && -+ echo "$as_me: caught signal $ac_signal" -+ echo "$as_me: exit $exit_status" -+ } >&5 -+ rm -f core *.core && -+ rm -rf conftest* confdefs* conf$$* $ac_clean_files && -+ exit $exit_status -+ ' 0 -+for ac_signal in 1 2 13 15; do -+ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -+done -+ac_signal=0 -+ -+# confdefs.h avoids OS command line length limits that DEFS can exceed. -+rm -rf conftest* confdefs.h -+# AIX cpp loses on an empty file, so make sure it contains at least a newline. -+echo >confdefs.h -+ -+# Predefined preprocessor variables. -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_NAME "$PACKAGE_NAME" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_VERSION "$PACKAGE_VERSION" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_STRING "$PACKAGE_STRING" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -+_ACEOF -+ -+ -+# Let the site file select an alternate cache file if it wants to. -+# Prefer explicitly selected file to automatically selected ones. -+if test -z "$CONFIG_SITE"; then -+ if test "x$prefix" != xNONE; then -+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" -+ else -+ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" -+ fi -+fi -+for ac_site_file in $CONFIG_SITE; do -+ if test -r "$ac_site_file"; then -+ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -+echo "$as_me: loading site script $ac_site_file" >&6;} -+ sed 's/^/| /' "$ac_site_file" >&5 -+ . "$ac_site_file" -+ fi -+done -+ -+if test -r "$cache_file"; then -+ # Some versions of bash will fail to source /dev/null (special -+ # files actually), so we avoid doing that. -+ if test -f "$cache_file"; then -+ { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -+echo "$as_me: loading cache $cache_file" >&6;} -+ case $cache_file in -+ [\\/]* | ?:[\\/]* ) . $cache_file;; -+ *) . ./$cache_file;; -+ esac -+ fi -+else -+ { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -+echo "$as_me: creating cache $cache_file" >&6;} -+ >$cache_file -+fi -+ -+# Check that the precious variables saved in the cache have kept the same -+# value. -+ac_cache_corrupted=false -+for ac_var in `(set) 2>&1 | -+ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do -+ eval ac_old_set=\$ac_cv_env_${ac_var}_set -+ eval ac_new_set=\$ac_env_${ac_var}_set -+ eval ac_old_val="\$ac_cv_env_${ac_var}_value" -+ eval ac_new_val="\$ac_env_${ac_var}_value" -+ case $ac_old_set,$ac_new_set in -+ set,) -+ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} -+ ac_cache_corrupted=: ;; -+ ,set) -+ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -+echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} -+ ac_cache_corrupted=: ;; -+ ,);; -+ *) -+ if test "x$ac_old_val" != "x$ac_new_val"; then -+ # differences in whitespace do not lead to failure. -+ ac_old_val_w=`echo x $ac_old_val` -+ ac_new_val_w=`echo x $ac_new_val` -+ if test "$ac_old_val_w" != "$ac_new_val_w"; then -+ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -+echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} -+ ac_cache_corrupted=: -+ else -+ { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -+echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} -+ eval $ac_var=\$ac_old_val -+ fi -+ { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 -+echo "$as_me: former value: \`$ac_old_val'" >&2;} -+ { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 -+echo "$as_me: current value: \`$ac_new_val'" >&2;} -+ fi;; -+ esac -+ # Pass precious variables to config.status. -+ if test "$ac_new_set" = set; then -+ case $ac_new_val in -+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) -+ ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; -+ *) ac_arg=$ac_var=$ac_new_val ;; -+ esac -+ case " $ac_configure_args " in -+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. -+ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; -+ esac -+ fi -+done -+if $ac_cache_corrupted; then -+ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -+echo "$as_me: error: in \`$ac_pwd':" >&2;} -+ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -+echo "$as_me: error: changes in the environment can compromise the build" >&2;} -+ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} -+ { (exit 1); exit 1; }; } -+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 -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+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. -+# 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 -+if test "$silent" = yes; then -+ TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" -+fi -+# 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'` -+ -+ -+# Find the build, host, and target systems. -+ac_aux_dir= -+for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do -+ if test -f $ac_dir/install-sh; then -+ ac_aux_dir=$ac_dir -+ ac_install_sh="$ac_aux_dir/install-sh -c" -+ break -+ elif test -f $ac_dir/install.sh; then -+ ac_aux_dir=$ac_dir -+ ac_install_sh="$ac_aux_dir/install.sh -c" -+ break -+ elif test -f $ac_dir/shtool; then -+ ac_aux_dir=$ac_dir -+ ac_install_sh="$ac_aux_dir/shtool install -c" -+ break -+ fi -+done -+if test -z "$ac_aux_dir"; then -+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 -+echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ac_config_guess="$SHELL $ac_aux_dir/config.guess" -+ac_config_sub="$SHELL $ac_aux_dir/config.sub" -+ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. -+ -+# Make sure we can run config.sub. -+$ac_config_sub sun4 >/dev/null 2>&1 || -+ { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 -+echo "$as_me: error: cannot run $ac_config_sub" >&2;} -+ { (exit 1); exit 1; }; } -+ -+echo "$as_me:$LINENO: checking build system type" >&5 -+echo $ECHO_N "checking build system type... $ECHO_C" >&6 -+if test "${ac_cv_build+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_cv_build_alias=$build_alias -+test -z "$ac_cv_build_alias" && -+ ac_cv_build_alias=`$ac_config_guess` -+test -z "$ac_cv_build_alias" && -+ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -+echo "$as_me: error: cannot guess build type; you must specify one" >&2;} -+ { (exit 1); exit 1; }; } -+ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || -+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 -+echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} -+ { (exit 1); exit 1; }; } -+ -+fi -+echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -+echo "${ECHO_T}$ac_cv_build" >&6 -+build=$ac_cv_build -+build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -+build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -+build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -+ -+ -+ case ${build_alias} in -+ "") build_noncanonical=${build} ;; -+ *) build_noncanonical=${build_alias} ;; -+esac -+ -+ -+ -+ case ${host_alias} in -+ "") host_noncanonical=${build_noncanonical} ;; -+ *) host_noncanonical=${host_alias} ;; -+esac -+ -+ -+ -+ case ${target_alias} in -+ "") target_noncanonical=${host_noncanonical} ;; -+ *) target_noncanonical=${target_alias} ;; -+esac -+ -+ -+ -+ -+test "$host_noncanonical" = "$target_noncanonical" && -+ test "$program_prefix$program_suffix$program_transform_name" = \ -+ NONENONEs,x,x, && -+ program_transform_name=s,y,y, -+ -+echo "$as_me:$LINENO: checking host system type" >&5 -+echo $ECHO_N "checking host system type... $ECHO_C" >&6 -+if test "${ac_cv_host+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_cv_host_alias=$host_alias -+test -z "$ac_cv_host_alias" && -+ ac_cv_host_alias=$ac_cv_build_alias -+ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || -+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 -+echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} -+ { (exit 1); exit 1; }; } -+ -+fi -+echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -+echo "${ECHO_T}$ac_cv_host" >&6 -+host=$ac_cv_host -+host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -+host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -+host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -+ -+ -+echo "$as_me:$LINENO: checking target system type" >&5 -+echo $ECHO_N "checking target system type... $ECHO_C" >&6 -+if test "${ac_cv_target+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_cv_target_alias=$target_alias -+test "x$ac_cv_target_alias" = "x" && -+ ac_cv_target_alias=$ac_cv_host_alias -+ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || -+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 -+echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} -+ { (exit 1); exit 1; }; } -+ -+fi -+echo "$as_me:$LINENO: result: $ac_cv_target" >&5 -+echo "${ECHO_T}$ac_cv_target" >&6 -+target=$ac_cv_target -+target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -+target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -+target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -+ -+ -+# The aliases save the names the user supplied, while $host etc. -+# will get canonicalized. -+test -n "$target_alias" && -+ test "$program_prefix$program_suffix$program_transform_name" = \ -+ NONENONEs,x,x, && -+ program_prefix=${target_alias}- -+test "$program_prefix" != NONE && -+ program_transform_name="s,^,$program_prefix,;$program_transform_name" -+# Use a double $ so make ignores it. -+test "$program_suffix" != NONE && -+ program_transform_name="s,\$,$program_suffix,;$program_transform_name" -+# Double any \ or $. echo might interpret backslashes. -+# By default was `s,x,x', remove it if useless. -+cat <<\_ACEOF >conftest.sed -+s/[\\$]/&&/g;s/;s,x,x,$// -+_ACEOF -+program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -+rm conftest.sed -+ -+ -+ -+# Get 'install' or 'install-sh' and its variants. -+# Find a good install program. We prefer a C program (faster), -+# so one script is as good as another. But avoid the broken or -+# incompatible versions: -+# SysV /etc/install, /usr/sbin/install -+# SunOS /usr/etc/install -+# IRIX /sbin/install -+# AIX /bin/install -+# AmigaOS /C/install, which installs bootblocks on floppy discs -+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -+# AFS /usr/afsws/bin/install, which mishandles nonexistent args -+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -+# OS/2's system install, which has a completely different semantic -+# ./install, which can be erroneously created by make from ./install.sh. -+# Reject install programs that cannot install multiple files. -+echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -+if test -z "$INSTALL"; then -+if test "${ac_cv_path_install+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ # Account for people who put trailing slashes in PATH elements. -+case $as_dir/ in -+ ./ | .// | /cC/* | \ -+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ -+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ -+ /usr/ucb/* ) ;; -+ *) -+ # OSF1 and SCO ODT 3.0 have their own names for install. -+ # Don't use installbsd from OSF since it installs stuff as root -+ # by default. -+ for ac_prog in ginstall scoinst install; do -+ for ac_exec_ext in '' $ac_executable_extensions; do -+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then -+ if test $ac_prog = install && -+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then -+ # AIX install. It has an incompatible calling convention. -+ : -+ elif test $ac_prog = install && -+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then -+ # program-specific install script used by HP pwplus--don't use. -+ : -+ else -+ rm -rf conftest.one conftest.two conftest.dir -+ echo one > conftest.one -+ echo two > conftest.two -+ mkdir conftest.dir -+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && -+ test -s conftest.one && test -s conftest.two && -+ test -s conftest.dir/conftest.one && -+ test -s conftest.dir/conftest.two -+ then -+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" -+ break 3 -+ fi -+ fi -+ fi -+ done -+ done -+ ;; -+esac -+done -+ -+rm -rf conftest.one conftest.two conftest.dir -+ -+fi -+ if test "${ac_cv_path_install+set}" = set; then -+ INSTALL=$ac_cv_path_install -+ else -+ # As a last resort, use the slow shell script. Don't cache a -+ # value for INSTALL within a source directory, because that will -+ # break other packages using the cache if that directory is -+ # removed, or if the value is a relative name. -+ INSTALL=$ac_install_sh -+ fi -+fi -+echo "$as_me:$LINENO: result: $INSTALL" >&5 -+echo "${ECHO_T}$INSTALL" >&6 -+ -+# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -+# It thinks the first close brace ends the variable substitution. -+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -+ -+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -+ -+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -+ -+echo "$as_me:$LINENO: checking whether ln works" >&5 -+echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 -+if test "${acx_cv_prog_LN+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ rm -f conftestdata_t -+echo >conftestdata_f -+if ln conftestdata_f conftestdata_t 2>/dev/null -+then -+ acx_cv_prog_LN=ln -+else -+ acx_cv_prog_LN=no -+fi -+rm -f conftestdata_f conftestdata_t -+ -+fi -+if test $acx_cv_prog_LN = no; then -+ LN="cp" -+ echo "$as_me:$LINENO: result: no, using $LN" >&5 -+echo "${ECHO_T}no, using $LN" >&6 -+else -+ LN="$acx_cv_prog_LN" -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+fi -+ -+echo "$as_me:$LINENO: checking whether ln -s works" >&5 -+echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 -+LN_S=$as_ln_s -+if test "$LN_S" = "ln -s"; then -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+else -+ echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -+echo "${ECHO_T}no, using $LN_S" >&6 -+fi -+ -+ -+### we might need to use some other shell than /bin/sh for running subshells -+### If we are on Windows, search for the shell. This will permit people -+### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure -+### without also having to set CONFIG_SHELL. This code will work when -+### using bash, which sets OSTYPE. -+case "${OSTYPE}" in -+*win32*) -+ if test x${CONFIG_SHELL} = x ; then -+ if test ! -f /bin/sh ; then -+ if test x${SHELL} != x && test -f ${SHELL} ; then -+ CONFIG_SHELL=${SHELL} -+ export CONFIG_SHELL -+ else -+ for prog in sh sh.exe bash bash.exe; do -+ IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" -+ for dir in $PATH; do -+ test -z "$dir" && dir=. -+ if test -f $dir/$prog; then -+ CONFIG_SHELL=$dir/$prog -+ export CONFIG_SHELL -+ break -+ fi -+ done -+ IFS="$save_ifs" -+ test -n "${CONFIG_SHELL}" && break -+ done -+ fi -+ fi -+ fi -+ ;; -+esac -+ -+config_shell=${CONFIG_SHELL-/bin/sh} -+ -+moveifchange=${srcdir}/move-if-change -+ -+srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` -+ -+# We pass INSTALL explicitly to sub-makes. Make sure that it is not -+# a relative path. -+if test "$INSTALL" = "${srcdir}/install-sh -c"; then -+ INSTALL="${srcpwd}/install-sh -c" -+fi -+ -+# Set srcdir to "." if that's what it is. -+# This is important for multilib support. -+pwd=`${PWDCMD-pwd}` -+if test "${pwd}" = "${srcpwd}" ; then -+ srcdir=. -+fi -+ -+topsrcdir=$srcpwd -+ -+extra_host_args= -+ -+### To add a new directory to the tree, first choose whether it is a target -+### or a host dependent tool. Then put it into the appropriate list -+### (library or tools, host or target), doing a dependency sort. -+ -+# Subdirs will be configured in the order listed in build_configdirs, -+# configdirs, or target_configdirs; see the serialization section below. -+ -+# Dependency sorting is only needed when *configuration* must be done in -+# a particular order. In all cases a dependency should be specified in -+# the Makefile, whether or not it's implicitly specified here. -+ -+# Double entries in build_configdirs, configdirs, or target_configdirs may -+# cause circular dependencies and break everything horribly. -+ -+# these library is used by various programs built for the build -+# environment -+# -+build_libs="build-libiberty" -+ -+# these tools are built for the build environment -+build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes" -+ -+# these libraries are used by various programs built for the host environment -+# -+host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog" -+ -+# these tools are built for the host environment -+# Note, the powerpc-eabi build depends on sim occurring before gdb in order to -+# know that we are building the simulator. -+# binutils, gas and ld appear in that order because it makes sense to run -+# "make check" in that particular order. -+# If --enable-gold is used, "gold" will replace "ld". -+host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" -+ -+# libgcj represents the runtime libraries only used by gcj. -+libgcj="target-libffi \ -+ target-zlib \ -+ target-qthreads \ -+ target-libjava" -+ -+# 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-libgcc \ -+ target-libiberty \ -+ target-libgloss \ -+ target-newlib \ -+ target-libgomp \ -+ target-libstdc++-v3 \ -+ target-libmudflap \ -+ target-libssp \ -+ target-libgfortran \ -+ target-boehm-gc \ -+ ${libgcj} \ -+ target-libobjc \ -+ target-libada" -+ -+# these tools are built using the target libraries, and are intended to -+# run only in the target environment -+# -+# note: any program that *uses* libraries that are in the "target_libraries" -+# list belongs in this list. those programs are also very likely -+# candidates for the "native_only" list which follows -+# -+target_tools="target-examples target-groff target-gperf target-rda" -+ -+################################################################################ -+ -+## All tools belong in one of the four categories, and are assigned above -+## We assign ${configdirs} this way to remove all embedded newlines. This -+## is important because configure will choke if they ever get through. -+## ${configdirs} is directories we build using the host tools. -+## ${target_configdirs} is directories we build using the target tools. -+configdirs=`echo ${host_libs} ${host_tools}` -+target_configdirs=`echo ${target_libraries} ${target_tools}` -+build_configdirs=`echo ${build_libs} ${build_tools}` -+ -+ -+ -+################################################################################ -+ -+srcname="gnu development package" -+ -+# This gets set non-empty for some net releases of packages. -+appdirs="" -+ -+# Define is_cross_compiler to save on calls to 'test'. -+is_cross_compiler= -+if test x"${host}" = x"${target}" ; then -+ is_cross_compiler=no -+else -+ is_cross_compiler=yes -+fi -+ -+# Find the build and target subdir names. -+ -+# post-stage1 host modules use a different CC_FOR_BUILD so, in order to -+# have matching libraries, they should use host libraries: Makefile.tpl -+# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). -+# However, they still use the build modules, because the corresponding -+# host modules (e.g. bison) are only built for the host when bootstrap -+# finishes. So: -+# - build_subdir is where we find build modules, and never changes. -+# - build_libsubdir is where we find build libraries, and can be overridden. -+ -+# Prefix 'build-' so this never conflicts with target_subdir. -+build_subdir="build-${build_noncanonical}" -+ -+# Check whether --with-build-libsubdir or --without-build-libsubdir was given. -+if test "${with_build_libsubdir+set}" = set; then -+ withval="$with_build_libsubdir" -+ build_libsubdir="$withval" -+else -+ build_libsubdir="$build_subdir" -+fi; -+# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories -+if ( test $srcdir = . && test -d gcc ) \ -+ || test -d $srcdir/../host-${host_noncanonical}; then -+ host_subdir="host-${host_noncanonical}" -+else -+ host_subdir=. -+fi -+# No prefix. -+target_subdir=${target_noncanonical} -+ -+ -+# Skipdirs are removed silently. -+skipdirs= -+# Noconfigdirs are removed loudly. -+noconfigdirs="" -+ -+use_gnu_ld= -+# Make sure we don't let GNU ld be added if we didn't want it. -+if test x$with_gnu_ld = xno ; then -+ use_gnu_ld=no -+ noconfigdirs="$noconfigdirs ld gold" -+fi -+ -+use_gnu_as= -+# Make sure we don't let GNU as be added if we didn't want it. -+if test x$with_gnu_as = xno ; then -+ use_gnu_as=no -+ noconfigdirs="$noconfigdirs gas" -+fi -+ -+# some tools are so dependent upon X11 that if we're not building with X, -+# it's not even worth trying to configure, much less build, that tool. -+ -+case ${with_x} in -+ yes | "") ;; # the default value for this tree is that X11 is available -+ no) -+ skipdirs="${skipdirs} tk itcl libgui" -+ # We won't be able to build gdbtk without X. -+ enable_gdbtk=no -+ ;; -+ *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; -+esac -+ -+# Some tools are only suitable for building in a "native" situation. -+# Remove these if host!=target. -+native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" -+ -+# Similarly, some are only suitable for cross toolchains. -+# Remove these if host=target. -+cross_only="target-libgloss target-newlib target-opcodes" -+ -+case $is_cross_compiler in -+ no) skipdirs="${skipdirs} ${cross_only}" ;; -+ yes) skipdirs="${skipdirs} ${native_only}" ;; -+esac -+ -+# If both --with-headers and --with-libs are specified, default to -+# --without-newlib. -+if test x"${with_headers}" != x && test x"${with_headers}" != xno \ -+ && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then -+ if test x"${with_newlib}" = x ; then -+ with_newlib=no -+ fi -+fi -+ -+# Recognize --with-newlib/--without-newlib. -+case ${with_newlib} in -+ no) skipdirs="${skipdirs} target-newlib" ;; -+ yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; -+esac -+ -+# Handle --enable-gold. -+ -+# Check whether --enable-gold or --disable-gold was given. -+if test "${enable_gold+set}" = set; then -+ enableval="$enable_gold" -+ ENABLE_GOLD=$enableval -+else -+ ENABLE_GOLD=no -+fi; -+if test "${ENABLE_GOLD}" = "yes"; then -+ # Check for ELF target. -+ is_elf=no -+ case "${target}" in -+ *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ -+ | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ -+ | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2*) -+ case "${target}" in -+ *-*-linux*aout* | *-*-linux*oldld*) -+ ;; -+ *) -+ is_elf=yes -+ ;; -+ esac -+ esac -+ -+ if test "$is_elf" = "yes"; then -+ # Check for target supported by gold. -+ case "${target}" in -+ i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-*) -+ configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`" -+ ;; -+ esac -+ fi -+fi -+ -+# Configure extra directories which are host specific -+ -+case "${host}" in -+ *-cygwin*) -+ configdirs="$configdirs libtermcap" ;; -+esac -+ -+# A target can indicate whether a language isn't supported for some reason. -+# Only spaces may be used in this macro; not newlines or tabs. -+unsupported_languages= -+ -+# Remove more programs from consideration, based on the host or -+# target this usually means that a port of the program doesn't -+# exist yet. -+ -+case "${host}" in -+ hppa*64*-*-*) -+ noconfigdirs="$noconfigdirs byacc" -+ ;; -+ i[3456789]86-*-vsta) -+ noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext" -+ ;; -+ i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*) -+ noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi" -+ ;; -+ x86_64-*-mingw*) -+ noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" -+ ;; -+ i[3456789]86-*-mingw32*) -+ # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv" -+ noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib" -+ ;; -+ i[3456789]86-*-beos*) -+ noconfigdirs="$noconfigdirs tk itcl libgui gdb" -+ ;; -+ *-*-cygwin*) -+ noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" -+ ;; -+ *-*-netbsd*) -+ noconfigdirs="$noconfigdirs rcs" -+ ;; -+ ppc*-*-pe) -+ noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv" -+ ;; -+ powerpc-*-beos*) -+ noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline" -+ ;; -+esac -+ -+ -+# Check whether --enable-libada or --disable-libada was given. -+if test "${enable_libada+set}" = set; then -+ enableval="$enable_libada" -+ ENABLE_LIBADA=$enableval -+else -+ ENABLE_LIBADA=yes -+fi; -+if test "${ENABLE_LIBADA}" != "yes" ; then -+ noconfigdirs="$noconfigdirs gnattools" -+fi -+ -+# Check whether --enable-libssp or --disable-libssp was given. -+if test "${enable_libssp+set}" = set; then -+ enableval="$enable_libssp" -+ ENABLE_LIBSSP=$enableval -+else -+ ENABLE_LIBSSP=yes -+fi; -+ -+# Save it here so that, even in case of --enable-libgcj, if the Java -+# front-end isn't enabled, we still get libgcj disabled. -+libgcj_saved=$libgcj -+case $enable_libgcj in -+yes) -+ # If we reset it here, it won't get added to noconfigdirs in the -+ # target-specific build rules, so it will be forcibly enabled -+ # (unless the Java language itself isn't enabled). -+ libgcj= -+ ;; -+no) -+ # Make sure we get it printed in the list of not supported target libs. -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+esac -+ -+ -+# Disable libmudflap on some systems. -+if test x$enable_libmudflap = x ; then -+ case "${target}" in -+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*) -+ # Enable libmudflap by default in GNU and friends. -+ ;; -+ *-*-freebsd*) -+ # Enable libmudflap by default in FreeBSD. -+ ;; -+ *) -+ # Disable it by default everywhere else. -+ noconfigdirs="$noconfigdirs target-libmudflap" -+ ;; -+ esac -+fi -+ -+# Disable libgomp on non POSIX hosted systems. -+if test x$enable_libgomp = x ; then -+ # Enable libgomp by default on hosted POSIX systems. -+ case "${target}" in -+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) -+ ;; -+ *-*-netbsd* | *-*-freebsd* | *-*-openbsd*) -+ ;; -+ *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*) -+ ;; -+ *-*-darwin* | *-*-aix*) -+ ;; -+ *) -+ noconfigdirs="$noconfigdirs target-libgomp" -+ ;; -+ esac -+fi -+ -+# Default libgloss CPU subdirectory. -+libgloss_dir="$target_cpu" -+ -+case "${target}" in -+ *-*-chorusos) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" -+ ;; -+ powerpc-*-darwin* | x86_64-*-darwin[912]*) -+ noconfigdirs="$noconfigdirs ld gas gdb gprof" -+ noconfigdirs="$noconfigdirs sim target-rda" -+ ;; -+ i[3456789]86-*-darwin*) -+ noconfigdirs="$noconfigdirs ld gas gprof" -+ noconfigdirs="$noconfigdirs sim target-rda" -+ ;; -+ *-*-darwin*) -+ noconfigdirs="$noconfigdirs ld gas gdb gprof" -+ noconfigdirs="$noconfigdirs sim target-rda" -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" -+ ;; -+ *-*-freebsd*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss" -+ if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ -+ && test -f /usr/local/include/gmp.h; then -+ with_gmp=/usr/local -+ fi -+ -+ # Skip some stuff that's unsupported on some FreeBSD configurations. -+ case "${target}" in -+ i*86-*-*) ;; -+ alpha*-*-*) ;; -+ *) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ esac -+ ;; -+ *-*-kaos*) -+ # Remove unsupported stuff on all kaOS configurations. -+ skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx" -+ skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" -+ skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" -+ noconfigdirs="$noconfigdirs target-libgloss" -+ ;; -+ *-*-netbsd*) -+ # Skip some stuff on all NetBSD configurations. -+ noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" -+ -+ # Skip some stuff that's unsupported on some NetBSD configurations. -+ case "${target}" in -+ i*86-*-netbsdelf*) ;; -+ arm*-*-netbsdelf*) ;; -+ *) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ esac -+ ;; -+ *-*-netware*) -+ noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap" -+ ;; -+ *-*-rtems*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ # The tpf target doesn't support gdb yet. -+ *-*-tpf*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl" -+ ;; -+ *-*-uclinux*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" -+ ;; -+ *-*-vxworks*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}" -+ ;; -+ alpha*-dec-osf*) -+ # ld works, but does not support shared libraries. -+ # newlib is not 64 bit ready. I'm not sure about fileutils. -+ # gas doesn't generate exception information. -+ noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" -+ ;; -+ alpha*-*-*vms*) -+ noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" -+ ;; -+ alpha*-*-linux*) -+ # newlib is not 64 bit ready -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss" -+ ;; -+ alpha*-*-*) -+ # newlib is not 64 bit ready -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" -+ ;; -+ am33_2.0-*-linux*) -+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" -+ ;; -+ sh-*-linux*) -+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" -+ ;; -+ sh*-*-pe|mips*-*-pe|*arm-wince-pe) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ noconfigdirs="$noconfigdirs target-examples" -+ noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" -+ noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" -+ noconfigdirs="$noconfigdirs expect dejagnu" -+ # the C++ libraries don't build on top of CE's C libraries -+ noconfigdirs="$noconfigdirs target-libstdc++-v3" -+ noconfigdirs="$noconfigdirs target-newlib" -+ case "${host}" in -+ *-*-cygwin*) ;; # keep gdb and readline -+ *) noconfigdirs="$noconfigdirs gdb readline" -+ ;; -+ esac -+ libgloss_dir=wince -+ ;; -+ arc-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ arm-semi-aof ) -+ ;; -+ arm-*-coff | strongarm-*-coff | xscale-*-coff) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ libgloss_dir=arm -+ ;; -+ arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* ) -+ noconfigdirs="$noconfigdirs target-libffi target-qthreads" -+ libgloss_dir=arm -+ ;; -+ arm*-*-linux-gnueabi) -+ noconfigdirs="$noconfigdirs target-qthreads" -+ case ${with_newlib} in -+ no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" -+ esac -+ libgloss_dir=arm -+ ;; -+ arm*-*-symbianelf*) -+ noconfigdirs="$noconfigdirs ${libgcj} target-libiberty" -+ libgloss_dir=arm -+ ;; -+ arm-*-pe*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ thumb-*-coff) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ thumb-*-elf) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ thumb-*-pe) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ arm-*-riscix*) -+ noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" -+ ;; -+ avr-*-*) -+ noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp" -+ ;; -+ bfin-*-*) -+ noconfigdirs="$noconfigdirs gdb" -+ if test x${is_cross_compiler} != xno ; then -+ target_configdirs="${target_configdirs} target-bsp target-cygmon" -+ fi -+ ;; -+ c4x-*-* | tic4x-*-*) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" -+ ;; -+ c54x*-*-* | tic54x-*-*) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" -+ ;; -+ cr16-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj} gdb" -+ ;; -+ cris-*-* | crisv32-*-*) -+ unsupported_languages="$unsupported_languages java" -+ case "${target}" in -+ *-*-aout) -+ unsupported_languages="$unsupported_languages fortran" -+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; -+ *-*-elf) -+ noconfigdirs="$noconfigdirs target-boehm-gc";; -+ *-*-linux*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss";; -+ *) -+ unsupported_languages="$unsupported_languages fortran" -+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; -+ esac -+ libgloss_dir=cris -+ ;; -+ crx-*-*) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}" -+ ;; -+ d10v-*-*) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" -+ ;; -+ d30v-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj} gdb" -+ ;; -+ ep9312-*-elf | ep9312-*-coff) -+ libgloss_dir=arm -+ ;; -+ fr30-*-elf*) -+ noconfigdirs="$noconfigdirs ${libgcj} gdb" -+ ;; -+ frv-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ h8300*-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ h8500-*-*) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" -+ ;; -+ hppa1.1-*-osf* | hppa1.1-*-bsd* ) -+ ;; -+ hppa*64*-*-linux* | parisc*64*-*-linux*) -+ # In this case, it's because the hppa64-linux target is for -+ # the kernel only at this point and has no libc, and thus no -+ # headers, crt*.o, etc., all of which are needed by these. -+ noconfigdirs="$noconfigdirs target-zlib" -+ ;; -+ parisc*-*-linux* | hppa*-*-linux*) -+ ;; -+ hppa*-*-*elf* | \ -+ hppa*-*-lites* | \ -+ hppa*-*-openbsd* | \ -+ hppa*64*-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ hppa*-hp-hpux11*) -+ noconfigdirs="$noconfigdirs ld shellutils" -+ ;; -+ hppa*-*-pro*) -+ libgloss_dir=pa -+ ;; -+ hppa*-*-*) -+ # According to Alexandre Oliva , libjava won't -+ # build on HP-UX 10.20. -+ noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" -+ ;; -+ i960-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj} gdb" -+ ;; -+ ia64*-*-elf*) -+ # No gdb support yet. -+ noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb" -+ ;; -+ ia64*-**-hpux*) -+ # No gdb or ld support yet. -+ noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld" -+ ;; -+ i370-*-opened*) -+ ;; -+ i[3456789]86-*-coff | i[3456789]86-*-elf) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ libgloss_dir=i386 -+ ;; -+ i[3456789]86-*-linux*) -+ # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's -+ # not build java stuff by default. -+ case "${target}" in -+ *-*-*libc1*) -+ noconfigdirs="$noconfigdirs ${libgcj}";; -+ esac -+ -+ # This section makes it possible to build newlib natively on linux. -+ # If we are using a cross compiler then don't configure newlib. -+ if test x${is_cross_compiler} != xno ; then -+ noconfigdirs="$noconfigdirs target-newlib" -+ fi -+ noconfigdirs="$noconfigdirs target-libgloss" -+ # If we are not using a cross compiler, do configure newlib. -+ # Note however, that newlib will only be configured in this situation -+ # if the --with-newlib option has been given, because otherwise -+ # 'target-newlib' will appear in skipdirs. -+ ;; -+ i[3456789]86-*-mingw32*) -+ target_configdirs="$target_configdirs target-winsup" -+ noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" -+ ;; -+ x86_64-*-mingw*) -+ target_configdirs="$target_configdirs target-winsup" -+ noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}" -+ ;; -+ *-*-cygwin*) -+ target_configdirs="$target_configdirs target-libtermcap target-winsup" -+ noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" -+ # always build newlib if winsup directory is present. -+ if test -d "$srcdir/winsup/cygwin"; then -+ skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` -+ elif test -d "$srcdir/newlib"; then -+ echo "Warning: winsup/cygwin is missing so newlib can't be built." -+ fi -+ ;; -+ i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \ -+ i[3456789]86-*-uwin* | i[3456789]86-*-interix* ) -+ ;; -+ i[3456789]86-*-pe) -+ noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" -+ ;; -+ i[3456789]86-*-sco3.2v5*) -+ # The linker does not yet know about weak symbols in COFF, -+ # and is not configured to handle mixed ELF and COFF. -+ noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" -+ ;; -+ i[3456789]86-*-sco*) -+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" -+ ;; -+ i[3456789]86-*-solaris2*) -+ noconfigdirs="$noconfigdirs target-libgloss" -+ ;; -+ i[3456789]86-*-sysv4*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ i[3456789]86-*-beos*) -+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" -+ ;; -+ i[3456789]86-*-rdos*) -+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" -+ ;; -+ m32r-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) -+ noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" -+ libgloss_dir=m68hc11 -+ ;; -+ m68k-*-elf*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ m68k-*-coff*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ m68*-*-* | fido-*-*) -+ libgloss_dir=m68k -+ ;; -+ mcore-*-pe*) -+ # The EPOC C++ environment does not support exceptions or rtti, -+ # and so building libstdc++-v3 tends not to always work. -+ noconfigdirs="$noconfigdirs target-libstdc++-v3" -+ ;; -+ mmix-*-*) -+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss" -+ unsupported_languages="$unsupported_languages fortran java" -+ ;; -+ mn10200-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ mn10300-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ mt-*-*) -+ noconfigdirs="$noconfigdirs sim" -+ ;; -+ powerpc-*-aix*) -+ # copied from rs6000-*-* entry -+ noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" -+ ;; -+ powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) -+ target_configdirs="$target_configdirs target-winsup" -+ noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}" -+ # always build newlib. -+ skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` -+ ;; -+ # This is temporary until we can link against shared libraries -+ powerpcle-*-solaris*) -+ noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}" -+ libgloss_dir=rs6000 -+ ;; -+ powerpc-*-beos*) -+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" -+ ;; -+ powerpc-*-eabi) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ libgloss_dir=rs6000 -+ ;; -+ powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) -+ libgloss_dir=rs6000 -+ ;; -+ rs6000-*-lynxos*) -+ noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" -+ ;; -+ rs6000-*-aix*) -+ noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}" -+ ;; -+ rs6000-*-*) -+ noconfigdirs="$noconfigdirs gprof ${libgcj}" -+ ;; -+ m68k-apollo-*) -+ noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" -+ ;; -+ mips*-sde-elf*) -+ skipdirs="$skipdirs target-libiberty" -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ if test x$with_newlib = xyes; then -+ noconfigdirs="$noconfigdirs gprof" -+ fi -+ libgloss_dir=mips -+ ;; -+ mips*-*-irix5*) -+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" -+ ;; -+ mips*-*-irix6*) -+ # Linking libjava exceeds command-line length limits on at least -+ # IRIX 6.2, but not on IRIX 6.5. -+ # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham -+ # -+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" -+ ;; -+ mips*-*-bsd*) -+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" -+ ;; -+ mips*-*-linux*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss" -+ ;; -+ mips*-*-*) -+ noconfigdirs="$noconfigdirs gprof ${libgcj}" -+ libgloss_dir=mips -+ ;; -+ romp-*-*) -+ noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" -+ ;; -+ sh-*-* | sh64-*-*) -+ case "${host}" in -+ i[3456789]86-*-vsta) ;; # don't add gprof back in -+ i[3456789]86-*-go32*) ;; # don't add gprof back in -+ i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in -+ *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; -+ esac -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ sparclet-*-aout* | sparc86x-*-*) -+ libgloss_dir=sparc -+ ;; -+ sparc-*-elf*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ sparc64-*-elf*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ libgloss_dir=sparc -+ ;; -+ sparclite-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ libgloss_dir=sparc -+ ;; -+ sparc-*-sunos4*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ if test x${is_cross_compiler} != xno ; then -+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" -+ else -+ use_gnu_ld=no -+ fi -+ ;; -+ sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) -+ ;; -+ v810-*-*) -+ noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" -+ ;; -+ v850-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ v850e-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ v850ea-*-*) -+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" -+ ;; -+ vax-*-vms) -+ noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" -+ ;; -+ vax-*-*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" -+ ;; -+ xtensa*-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+ ip2k-*-*) -+ noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" -+ ;; -+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss" -+ ;; -+ *-*-lynxos*) -+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" -+ ;; -+ *-*-*) -+ noconfigdirs="$noconfigdirs ${libgcj}" -+ ;; -+esac -+ -+# If we aren't building newlib, then don't build libgloss, since libgloss -+# depends upon some newlib header files. -+case "${noconfigdirs}" in -+ *target-libgloss*) ;; -+ *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; -+esac -+ -+# Work in distributions that contain no compiler tools, like Autoconf. -+tentative_cc="" -+host_makefile_frag=/dev/null -+if test -d ${srcdir}/config ; then -+case "${host}" in -+ m68k-hp-hpux*) -+ # Avoid "too much defining" errors from HPUX compiler. -+ tentative_cc="cc -Wp,-H256000" -+ # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding. -+ # If it's HP/UX ar, this should be harmless. -+ RANLIB="ar ts" -+ ;; -+ m68k-apollo-sysv*) -+ tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" -+ ;; -+ m68k-apollo-bsd*) -+ #None of the Apollo compilers can compile gas or binutils. The preprocessor -+ # chokes on bfd, the compiler won't let you assign integers to enums, and -+ # other problems. Defining CC to gcc is a questionable way to say "don't use -+ # the apollo compiler" (the preferred version of GCC could be called cc, -+ # or whatever), but I'm not sure leaving CC as cc is any better... -+ #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG -+ # Used to have BISON=yacc. -+ tentative_cc=gcc -+ ;; -+ m88k-dg-dgux*) -+ tentative_cc="gcc -Wall -ansi -D__using_DGUX" -+ ;; -+ m88k-harris-cxux*) -+ # Under CX/UX, we want to tell the compiler to use ANSI mode. -+ tentative_cc="cc -Xa" -+ host_makefile_frag="config/mh-cxux" -+ ;; -+ m88k-motorola-sysv*) -+ ;; -+ mips*-dec-ultrix*) -+ tentative_cc="cc -Wf,-XNg1000" -+ host_makefile_frag="config/mh-decstation" -+ ;; -+ mips*-nec-sysv4*) -+ # The C compiler on NEC MIPS SVR4 needs bigger tables. -+ tentative_cc="cc -ZXNd=5000 -ZXNg=1000" -+ host_makefile_frag="config/mh-necv4" -+ ;; -+ mips*-sgi-irix4*) -+ # Tell compiler to use K&R C. We can't compile under the SGI Ansi -+ # environment. Also bump switch table size so that cp-parse will -+ # compile. Bump string length limit so linker builds. -+ tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" -+ ;; -+ mips*-*-sysv4*) -+ host_makefile_frag="config/mh-sysv4" -+ ;; -+ mips*-*-sysv*) -+ # This is for a MIPS running RISC/os 4.52C. -+ -+ # This is needed for GDB, but needs to be in the top-level make because -+ # if a library is compiled with the bsd headers and gets linked with the -+ # sysv system libraries all hell can break loose (e.g. a jmp_buf might be -+ # a different size). -+ # ptrace(2) apparently has problems in the BSD environment. No workaround is -+ # known except to select the sysv environment. Could we use /proc instead? -+ # These "sysv environments" and "bsd environments" often end up being a pain. -+ # -+ # This is not part of CFLAGS because perhaps not all C compilers have this -+ # option. -+ tentative_cc="cc -systype sysv" -+ ;; -+ i370-ibm-opened*) -+ tentative_cc="c89" -+ ;; -+ i[3456789]86-*-sysv5*) -+ host_makefile_frag="config/mh-sysv5" -+ ;; -+ i[3456789]86-*-dgux*) -+ tentative_cc="gcc -Wall -ansi -D__using_DGUX" -+ host_makefile_frag="config/mh-dgux386" -+ ;; -+ i[3456789]86-ncr-sysv4.3*) -+ # The MetaWare compiler will generate a copyright message unless you -+ # turn it off by adding the -Hnocopyr flag. -+ tentative_cc="cc -Hnocopyr" -+ ;; -+ i[3456789]86-ncr-sysv4*) -+ # for an NCR 3000 (i486/SVR4) system. -+ # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. -+ # This compiler not only emits obnoxious copyright messages every time -+ # you run it, but it chokes and dies on a whole bunch of GNU source -+ # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. -+ tentative_cc="/usr/ccs/ATT/cc" -+ host_makefile_frag="config/mh-ncr3000" -+ ;; -+ i[3456789]86-*-sco3.2v5*) -+ ;; -+ i[3456789]86-*-sco*) -+ # The native C compiler botches some simple uses of const. Unfortunately, -+ # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. -+ tentative_cc="cc -Dconst=" -+ host_makefile_frag="config/mh-sco" -+ ;; -+ i[3456789]86-*-udk*) -+ host_makefile_frag="config/mh-sysv5" -+ ;; -+ i[3456789]86-*-solaris2*) -+ host_makefile_frag="config/mh-sysv4" -+ ;; -+ i[3456789]86-*-msdosdjgpp*) -+ host_makefile_frag="config/mh-djgpp" -+ ;; -+ *-cygwin*) -+ -+echo "$as_me:$LINENO: checking to see if cat works as expected" >&5 -+echo $ECHO_N "checking to see if cat works as expected... $ECHO_C" >&6 -+echo a >cygwin-cat-check -+if test `cat cygwin-cat-check` == a ; then -+ rm cygwin-cat-check -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+else -+ rm cygwin-cat-check -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+ { { echo "$as_me:$LINENO: error: The cat command does not ignore carriage return characters. -+ Please either mount the build directory in binary mode or run the following -+ commands before running any configure script: -+set -o igncr -+export SHELLOPTS -+ " >&5 -+echo "$as_me: error: The cat command does not ignore carriage return characters. -+ Please either mount the build directory in binary mode or run the following -+ commands before running any configure script: -+set -o igncr -+export SHELLOPTS -+ " >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ -+ host_makefile_frag="config/mh-cygwin" -+ ;; -+ *-mingw*) -+ host_makefile_frag="config/mh-mingw" -+ ;; -+ *-interix*) -+ host_makefile_frag="config/mh-interix" -+ ;; -+ vax-*-ultrix2*) -+ # The old BSD pcc isn't up to compiling parts of gdb so use gcc -+ tentative_cc=gcc -+ ;; -+ *-*-solaris2*) -+ host_makefile_frag="config/mh-solaris" -+ ;; -+ m68k-sun-sunos*) -+ # Sun's C compiler needs the -J flag to be able to compile cp-parse.c -+ # without overflowing the jump tables (-J says to use a 32 bit table) -+ tentative_cc="cc -J" -+ ;; -+ hppa*-hp-hpux10*) -+ tentative_cc="cc -Wp,-H256000" -+ host_makefile_frag="config/mh-pa-hpux10" -+ ;; -+ hppa*-hp-hpux* | hppa*-*-hiux*) -+ tentative_cc="cc -Wp,-H256000" -+ host_makefile_frag="config/mh-pa" -+ ;; -+ hppa*-*) -+ host_makefile_frag="config/mh-pa" -+ ;; -+ *-hp-hpux* | *-*-hiux*) -+ tentative_cc="cc -Wp,-H256000" -+ ;; -+ rs6000-*-lynxos*) -+ # /bin/cc is less than useful for our purposes. Always use GCC -+ tentative_cc="/usr/cygnus/progressive/bin/gcc" -+ host_makefile_frag="config/mh-lynxrs6k" -+ ;; -+ powerpc-*-darwin*) -+ host_makefile_frag="config/mh-ppc-darwin" -+ ;; -+ powerpc-*-aix*) -+ host_makefile_frag="config/mh-ppc-aix" -+ ;; -+ rs6000-*-aix*) -+ host_makefile_frag="config/mh-ppc-aix" -+ ;; -+ *-*-lynxos*) -+ # /bin/cc is less than useful for our purposes. Always use GCC -+ tentative_cc="/bin/gcc" -+ ;; -+ *-*-sysv4*) -+ host_makefile_frag="config/mh-sysv4" -+ ;; -+ # This is placed last to prevent interfering with the cases above. -+ i[3456789]86-*-*) -+ # Build the stage2 and stage3 compilers with -fomit-frame-pointer. -+ host_makefile_frag="config/mh-x86omitfp" -+ ;; -+esac -+fi -+ -+# If we aren't going to be using gcc, see if we can extract a definition -+# of CC from the fragment. -+# Actually, use the 'pre-extracted' version above. -+if test -z "${CC}" && test "${build}" = "${host}" ; then -+ IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" -+ found= -+ for dir in $PATH; do -+ test -z "$dir" && dir=. -+ if test -f $dir/gcc; then -+ found=yes -+ break -+ fi -+ done -+ IFS="$save_ifs" -+ if test -z "${found}" && test -n "${tentative_cc}" ; then -+ CC=$tentative_cc -+ fi -+fi -+ -+if test "${build}" != "${host}" ; then -+ AR_FOR_BUILD=${AR_FOR_BUILD-ar} -+ AS_FOR_BUILD=${AS_FOR_BUILD-as} -+ CC_FOR_BUILD=${CC_FOR_BUILD-gcc} -+ CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} -+ GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} -+ GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} -+ DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} -+ LD_FOR_BUILD=${LD_FOR_BUILD-ld} -+ NM_FOR_BUILD=${NM_FOR_BUILD-nm} -+ RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} -+ WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} -+ WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} -+else -+ AR_FOR_BUILD="\$(AR)" -+ AS_FOR_BUILD="\$(AS)" -+ CC_FOR_BUILD="\$(CC)" -+ CXX_FOR_BUILD="\$(CXX)" -+ GCJ_FOR_BUILD="\$(GCJ)" -+ GFORTRAN_FOR_BUILD="\$(GFORTRAN)" -+ DLLTOOL_FOR_BUILD="\$(DLLTOOL)" -+ LD_FOR_BUILD="\$(LD)" -+ NM_FOR_BUILD="\$(NM)" -+ RANLIB_FOR_BUILD="\$(RANLIB)" -+ WINDRES_FOR_BUILD="\$(WINDRES)" -+ WINDMC_FOR_BUILD="\$(WINDMC)" -+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 -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -+set dummy ${ac_tool_prefix}gcc; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # 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="${ac_tool_prefix}gcc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$ac_cv_prog_CC"; then -+ ac_ct_CC=$CC -+ # Extract the first word of "gcc", so it can be a program name with args. -+set dummy gcc; 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_CC+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_CC"; then -+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_CC="gcc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_CC=$ac_cv_prog_ac_ct_CC -+if test -n "$ac_ct_CC"; then -+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -+echo "${ECHO_T}$ac_ct_CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ CC=$ac_ct_CC -+else -+ CC="$ac_cv_prog_CC" -+fi -+ -+if test -z "$CC"; then -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -+set dummy ${ac_tool_prefix}cc; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # 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="${ac_tool_prefix}cc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$ac_cv_prog_CC"; then -+ ac_ct_CC=$CC -+ # Extract the first word of "cc", so it can be a program name with args. -+set dummy cc; 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_CC+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_CC"; then -+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_CC="cc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_CC=$ac_cv_prog_ac_ct_CC -+if test -n "$ac_ct_CC"; then -+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -+echo "${ECHO_T}$ac_ct_CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ CC=$ac_ct_CC -+else -+ CC="$ac_cv_prog_CC" -+fi -+ -+fi -+if test -z "$CC"; then -+ # Extract the first word of "cc", so it can be a program name with args. -+set dummy cc; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # Let the user override the test. -+else -+ ac_prog_rejected=no -+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 -+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then -+ ac_prog_rejected=yes -+ continue -+ fi -+ ac_cv_prog_CC="cc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+if test $ac_prog_rejected = yes; then -+ # We found a bogon in the path, so make sure we never use it. -+ set dummy $ac_cv_prog_CC -+ shift -+ if test $# != 0; then -+ # We chose a different compiler from the bogus one. -+ # However, it has the same basename, so the bogon will be chosen -+ # first if we set CC to just the basename; use the full file name. -+ shift -+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" -+ fi -+fi -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$CC"; then -+ if test -n "$ac_tool_prefix"; then -+ for ac_prog in cl -+ 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_CC+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # 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="$ac_tool_prefix$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$CC" && break -+ done -+fi -+if test -z "$CC"; then -+ ac_ct_CC=$CC -+ for ac_prog in cl -+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_CC+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_CC"; then -+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_CC="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_CC=$ac_cv_prog_ac_ct_CC -+if test -n "$ac_ct_CC"; then -+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -+echo "${ECHO_T}$ac_ct_CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$ac_ct_CC" && break -+done -+ -+ CC=$ac_ct_CC -+fi -+ -+fi -+ -+ -+test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -+echo "$as_me: error: in \`$ac_pwd':" >&2;} -+{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -+See \`config.log' for more details." >&5 -+echo "$as_me: error: no acceptable C compiler found in \$PATH -+See \`config.log' for more details." >&2;} -+ { (exit 1); exit 1; }; }; } -+ -+# 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); } -+ -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ return 0; -+} -+_ACEOF -+ac_clean_files_save=$ac_clean_files -+ac_clean_files="$ac_clean_files a.out a.exe b.out" -+# Try to create an executable without -o first, disregard a.out. -+# It will help us diagnose broken compilers, and finding out an intuition -+# of exeext. -+echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -+echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 -+ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -+if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 -+ (eval $ac_link_default) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ # Find the output, starting from the most likely. This scheme is -+# not robust to junk in `.', hence go to wildcards (a.*) only as a last -+# resort. -+ -+# Be careful to initialize this variable, since it used to be cached. -+# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. -+ac_cv_exeext= -+# b.out is created by i960 compilers. -+for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out -+do -+ test -f "$ac_file" || continue -+ case $ac_file in -+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) -+ ;; -+ conftest.$ac_ext ) -+ # This is the source file. -+ ;; -+ [ab].out ) -+ # We found the default executable, but exeext='' is most -+ # certainly right. -+ break;; -+ *.* ) -+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` -+ # FIXME: I believe we export ac_cv_exeext for Libtool, -+ # but it would be cool to find out if it's true. Does anybody -+ # maintain Libtool? --akim. -+ export ac_cv_exeext -+ break;; -+ * ) -+ break;; -+ esac -+done -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -+echo "$as_me: error: in \`$ac_pwd':" >&2;} -+{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -+See \`config.log' for more details." >&5 -+echo "$as_me: error: C compiler cannot create executables -+See \`config.log' for more details." >&2;} -+ { (exit 77); exit 77; }; }; } -+fi -+ -+ac_exeext=$ac_cv_exeext -+echo "$as_me:$LINENO: result: $ac_file" >&5 -+echo "${ECHO_T}$ac_file" >&6 -+ -+# Check the compiler produces executables we can run. If not, either -+# the compiler is broken, or we cross compile. -+echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -+echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 -+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -+# If not cross compiling, check that we can run a simple program. -+if test "$cross_compiling" != yes; then -+ if { ac_try='./$ac_file' -+ { (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 -+ cross_compiling=no -+ else -+ if test "$cross_compiling" = maybe; then -+ cross_compiling=yes -+ else -+ { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -+echo "$as_me: error: in \`$ac_pwd':" >&2;} -+{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. -+If you meant to cross compile, use \`--host'. -+See \`config.log' for more details." >&5 -+echo "$as_me: error: cannot run C compiled programs. -+If you meant to cross compile, use \`--host'. -+See \`config.log' for more details." >&2;} -+ { (exit 1); exit 1; }; }; } -+ fi -+ fi -+fi -+echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+ -+rm -f a.out a.exe conftest$ac_cv_exeext b.out -+ac_clean_files=$ac_clean_files_save -+# Check the compiler produces executables we can run. If not, either -+# the compiler is broken, or we cross compile. -+echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -+echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 -+echo "$as_me:$LINENO: result: $cross_compiling" >&5 -+echo "${ECHO_T}$cross_compiling" >&6 -+ -+echo "$as_me:$LINENO: checking for suffix of executables" >&5 -+echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ # If both `conftest.exe' and `conftest' are `present' (well, observable) -+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -+# work properly (i.e., refer to `conftest.exe'), while it won't with -+# `rm'. -+for ac_file in conftest.exe conftest conftest.*; do -+ test -f "$ac_file" || continue -+ case $ac_file in -+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; -+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` -+ export ac_cv_exeext -+ break;; -+ * ) break;; -+ esac -+done -+else -+ { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -+echo "$as_me: error: in \`$ac_pwd':" >&2;} -+{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -+See \`config.log' for more details." >&5 -+echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -+See \`config.log' for more details." >&2;} -+ { (exit 1); exit 1; }; }; } -+fi -+ -+rm -f conftest$ac_cv_exeext -+echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -+echo "${ECHO_T}$ac_cv_exeext" >&6 -+ -+rm -f conftest.$ac_ext -+EXEEXT=$ac_cv_exeext -+ac_exeext=$EXEEXT -+echo "$as_me:$LINENO: checking for suffix of object files" >&5 -+echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 -+if test "${ac_cv_objext+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.o conftest.obj -+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do -+ case $ac_file in -+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; -+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` -+ break;; -+ esac -+done -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 -+echo "$as_me: error: in \`$ac_pwd':" >&2;} -+{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -+See \`config.log' for more details." >&5 -+echo "$as_me: error: cannot compute suffix of object files: cannot compile -+See \`config.log' for more details." >&2;} -+ { (exit 1); exit 1; }; }; } -+fi -+ -+rm -f conftest.$ac_cv_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -+echo "${ECHO_T}$ac_cv_objext" >&6 -+OBJEXT=$ac_cv_objext -+ac_objext=$OBJEXT -+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_c_compiler_gnu+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+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_c_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: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_compiler_gnu=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+ac_cv_c_compiler_gnu=$ac_compiler_gnu -+ -+fi -+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -+GCC=`test $ac_compiler_gnu = yes && echo yes` -+ac_test_CFLAGS=${CFLAGS+set} -+ac_save_CFLAGS=$CFLAGS -+CFLAGS="-g" -+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -+if test "${ac_cv_prog_cc_g+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ 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_c_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_cc_g=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_prog_cc_g=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -+if test "$ac_test_CFLAGS" = set; then -+ CFLAGS=$ac_save_CFLAGS -+elif test $ac_cv_prog_cc_g = yes; then -+ if test "$GCC" = yes; then -+ CFLAGS="-g -O2" -+ else -+ CFLAGS="-g" -+ fi -+else -+ if test "$GCC" = yes; then -+ CFLAGS="-O2" -+ else -+ CFLAGS= -+ fi -+fi -+echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 -+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 -+if test "${ac_cv_prog_cc_stdc+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_cv_prog_cc_stdc=no -+ac_save_CC=$CC -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include -+#include -+#include -+#include -+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -+struct buf { int x; }; -+FILE * (*rcsopen) (struct buf *, struct stat *, int); -+static char *e (p, i) -+ char **p; -+ int i; -+{ -+ return p[i]; -+} -+static char *f (char * (*g) (char **, int), char **p, ...) -+{ -+ char *s; -+ va_list v; -+ va_start (v,p); -+ s = g (p, va_arg (v,int)); -+ va_end (v); -+ return s; -+} -+ -+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has -+ function prototypes and stuff, but not '\xHH' hex character constants. -+ These don't provoke an error unfortunately, instead are silently treated -+ as 'x'. The following induces an error, until -std1 is added to get -+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an -+ array size at least. It's necessary to write '\x00'==0 to get something -+ that's true only with -std1. */ -+int osf4_cc_array ['\x00' == 0 ? 1 : -1]; -+ -+int test (int i, double x); -+struct s1 {int (*f) (int a);}; -+struct s2 {int (*f) (double a);}; -+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -+int argc; -+char **argv; -+int -+main () -+{ -+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; -+ ; -+ return 0; -+} -+_ACEOF -+# Don't try gcc -ansi; that turns off useful extensions and -+# breaks some systems' header files. -+# AIX -qlanglvl=ansi -+# Ultrix and OSF/1 -std1 -+# HP-UX 10.20 and later -Ae -+# HP-UX older versions -Aa -D_HPUX_SOURCE -+# SVR4 -Xc -D__EXTENSIONS__ -+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -+do -+ CC="$ac_save_CC $ac_arg" -+ 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_c_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_cc_stdc=$ac_arg -+break -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+fi -+rm -f conftest.err conftest.$ac_objext -+done -+rm -f conftest.$ac_ext conftest.$ac_objext -+CC=$ac_save_CC -+ -+fi -+ -+case "x$ac_cv_prog_cc_stdc" in -+ x|xno) -+ echo "$as_me:$LINENO: result: none needed" >&5 -+echo "${ECHO_T}none needed" >&6 ;; -+ *) -+ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 -+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 -+ CC="$CC $ac_cv_prog_cc_stdc" ;; -+esac -+ -+# Some people use a C++ compiler to compile C. Since we use `exit', -+# in C++ we need to declare it. In case someone uses the same compiler -+# for both compiling C and C++ we need to have the C++ compiler decide -+# the declaration of exit, since it's the most demanding environment. -+cat >conftest.$ac_ext <<_ACEOF -+#ifndef __cplusplus -+ choke me -+#endif -+_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_c_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 -+ 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_c_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_c_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 -+ -+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 -+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 -+ -+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 -+ 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_CXX+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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 -+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="$ac_tool_prefix$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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 "$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_CXX+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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 -+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_CXX="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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 -+ -+ test -n "$ac_ct_CXX" && break -+done -+test -n "$ac_ct_CXX" || ac_ct_CXX="g++" -+ -+ CXX=$ac_ct_CXX -+fi -+ -+ -+# 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 -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+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: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_compiler_gnu=no -+fi -+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 -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ 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 -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_prog_cxx_g=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+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 -+ -+echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5 -+echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6 -+if test "${gcc_cv_prog_cmp_skip+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ echo abfoo >t1 -+ echo cdfoo >t2 -+ gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' -+ if cmp t1 t2 2 2 > /dev/null 2>&1; then -+ if cmp t1 t2 1 1 > /dev/null 2>&1; then -+ : -+ else -+ gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' -+ fi -+ fi -+ if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then -+ if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then -+ : -+ else -+ gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' -+ fi -+ fi -+ rm t1 t2 -+ -+fi -+echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5 -+echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6 -+do_compare="$gcc_cv_prog_cmp_skip" -+ -+ -+ -+# Check for GMP and MPFR -+gmplibs="-lmpfr -lgmp" -+gmpinc= -+have_gmp=no -+ -+# Specify a location for mpfr -+# check for this first so it ends up on the link line before gmp. -+ -+# Check whether --with-mpfr-dir or --without-mpfr-dir was given. -+if test "${with_mpfr_dir+set}" = set; then -+ withval="$with_mpfr_dir" -+ { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed. -+Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5 -+echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed. -+Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;} -+ { (exit 1); exit 1; }; } -+fi; -+ -+ -+# Check whether --with-mpfr or --without-mpfr was given. -+if test "${with_mpfr+set}" = set; then -+ withval="$with_mpfr" -+ -+fi; -+ -+# Check whether --with-mpfr_include or --without-mpfr_include was given. -+if test "${with_mpfr_include+set}" = set; then -+ withval="$with_mpfr_include" -+ -+fi; -+ -+# Check whether --with-mpfr_lib or --without-mpfr_lib was given. -+if test "${with_mpfr_lib+set}" = set; then -+ withval="$with_mpfr_lib" -+ -+fi; -+ -+if test "x$with_mpfr" != x; then -+ gmplibs="-L$with_mpfr/lib $gmplibs" -+ gmpinc="-I$with_mpfr/include" -+fi -+if test "x$with_mpfr_include" != x; then -+ gmpinc="-I$with_mpfr_include" -+fi -+if test "x$with_mpfr_lib" != x; then -+ gmplibs="-L$with_mpfr_lib $gmplibs" -+fi -+if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then -+ gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs" -+ gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" -+ # Do not test the mpfr version. Assume that it is sufficient, since -+ # it is in the source tree, and the library has not been built yet -+ # but it would be included on the link line in the version check below -+ # hence making the test fail. -+ have_gmp=yes -+fi -+ -+# Specify a location for gmp -+ -+# Check whether --with-gmp-dir or --without-gmp-dir was given. -+if test "${with_gmp_dir+set}" = set; then -+ withval="$with_gmp_dir" -+ { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed. -+Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5 -+echo "$as_me: error: The --with-gmp-dir=PATH option has been removed. -+Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;} -+ { (exit 1); exit 1; }; } -+fi; -+ -+ -+# Check whether --with-gmp or --without-gmp was given. -+if test "${with_gmp+set}" = set; then -+ withval="$with_gmp" -+ -+fi; -+ -+# Check whether --with-gmp_include or --without-gmp_include was given. -+if test "${with_gmp_include+set}" = set; then -+ withval="$with_gmp_include" -+ -+fi; -+ -+# Check whether --with-gmp_lib or --without-gmp_lib was given. -+if test "${with_gmp_lib+set}" = set; then -+ withval="$with_gmp_lib" -+ -+fi; -+ -+ -+if test "x$with_gmp" != x; then -+ gmplibs="-L$with_gmp/lib $gmplibs" -+ gmpinc="-I$with_gmp/include $gmpinc" -+fi -+if test "x$with_gmp_include" != x; then -+ gmpinc="-I$with_gmp_include $gmpinc" -+fi -+if test "x$with_gmp_lib" != x; then -+ gmplibs="-L$with_gmp_lib $gmplibs" -+fi -+if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then -+ gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs" -+ gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" -+ # Do not test the gmp version. Assume that it is sufficient, since -+ # it is in the source tree, and the library has not been built yet -+ # but it would be included on the link line in the version check below -+ # hence making the test fail. -+ have_gmp=yes -+fi -+ -+if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then -+ have_gmp=yes -+ saved_CFLAGS="$CFLAGS" -+ CFLAGS="$CFLAGS $gmpinc" -+ # Check GMP actually works -+ echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5 -+echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6 -+ -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include "gmp.h" -+int -+main () -+{ -+ -+ #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1) -+ 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_c_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 -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6; have_gmp=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+ -+ if test x"$have_gmp" = xyes; then -+ saved_LIBS="$LIBS" -+ LIBS="$LIBS $gmplibs" -+ echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5 -+echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6 -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include -+ #include -+int -+main () -+{ -+ -+ #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0) -+ choke me -+ #endif -+ 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); -+ -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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 -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include -+ #include -+int -+main () -+{ -+ -+ #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2) -+ choke me -+ #endif -+ mpfr_t n; mpfr_init(n); -+ -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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 -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+echo "$as_me:$LINENO: result: buggy but acceptable" >&5 -+echo "${ECHO_T}buggy but acceptable" >&6 -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6; have_gmp=no -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+ LIBS="$saved_LIBS" -+ fi -+ CFLAGS="$saved_CFLAGS" -+ -+ if test x$have_gmp != xyes; then -+ { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+. -+Try the --with-gmp and/or --with-mpfr options to specify their locations. -+Copies of these libraries' source code can be found at their respective -+hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. -+See also http://gcc.gnu.org/install/prerequisites.html for additional info. -+If you obtained GMP and/or MPFR from a vendor distribution package, make -+sure that you have installed both the libraries and the header files. -+They may be located in separate packages." >&5 -+echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+. -+Try the --with-gmp and/or --with-mpfr options to specify their locations. -+Copies of these libraries' source code can be found at their respective -+hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. -+See also http://gcc.gnu.org/install/prerequisites.html for additional info. -+If you obtained GMP and/or MPFR from a vendor distribution package, make -+sure that you have installed both the libraries and the header files. -+They may be located in separate packages." >&2;} -+ { (exit 1); exit 1; }; } -+ fi -+fi -+ -+# Flags needed for both GMP and/or MPFR -+ -+ -+ -+ -+# Check for PPL -+ppl_major_version=0 -+ppl_minor_version=10 -+ppllibs=" -lppl_c -lppl -lgmpxx " -+pplinc= -+ -+ -+# Check whether --with-ppl or --without-ppl was given. -+if test "${with_ppl+set}" = set; then -+ withval="$with_ppl" -+ -+fi; -+ -+# Check whether --with-ppl_include or --without-ppl_include was given. -+if test "${with_ppl_include+set}" = set; then -+ withval="$with_ppl_include" -+ -+fi; -+ -+# Check whether --with-ppl_lib or --without-ppl_lib was given. -+if test "${with_ppl_lib+set}" = set; then -+ withval="$with_ppl_lib" -+ -+fi; -+ -+if test "x$with_ppl" != x; then -+ ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx" -+ pplinc="-I$with_ppl/include $pplinc" -+ LIBS="$ppllibs $LIBS" -+fi -+if test "x$with_ppl_include" != x; then -+ pplinc="-I$with_ppl_include $pplinc" -+fi -+if test "x$with_ppl_lib" != x; then -+ ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx" -+ LIBS="$ppllibs $LIBS" -+fi -+if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then -+ ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx ' -+ pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include ' -+ LIBS="$ppllibs $LIBS" -+fi -+ -+# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given. -+if test "${enable_ppl_version_check+set}" = set; then -+ enableval="$enable_ppl_version_check" -+ ENABLE_PPL_CHECK=$enableval -+else -+ ENABLE_PPL_CHECK=yes -+fi; -+ -+if test "${ENABLE_PPL_CHECK}" = "yes"; then -+ saved_CFLAGS="$CFLAGS" -+ CFLAGS="$CFLAGS $pplinc $gmpinc" -+ echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5 -+echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6 -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include "ppl_c.h" -+int -+main () -+{ -+ -+ #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version -+ 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_c_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 -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6; ppllibs= ; pplinc= -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+ CFLAGS="$saved_CFLAGS" -+fi -+ -+# Flags needed for PPL -+ -+ -+ -+ -+# Check for CLOOG -+clooglibs=" -lcloog " -+clooginc=" -DCLOOG_PPL_BACKEND " -+ -+ -+# Check whether --with-cloog or --without-cloog was given. -+if test "${with_cloog+set}" = set; then -+ withval="$with_cloog" -+ -+fi; -+ -+# Check whether --with-cloog_include or --without-cloog_include was given. -+if test "${with_cloog_include+set}" = set; then -+ withval="$with_cloog_include" -+ -+fi; -+ -+# Check whether --with-cloog_lib or --without-cloog_lib was given. -+if test "${with_cloog_lib+set}" = set; then -+ withval="$with_cloog_lib" -+ -+fi; -+ -+# Check whether --with-cloog-polylib or --without-cloog-polylib was given. -+if test "${with_cloog_polylib+set}" = set; then -+ withval="$with_cloog_polylib" -+ -+fi; -+ -+if test "x$with_cloog" != x; then -+ clooglibs="-L$with_cloog/lib -lcloog" -+ clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND " -+ LIBS="$clooglibs $LIBS" -+fi -+if test "x$with_cloog_polylib" != x; then -+ clooglibs="-L$with_cloog/lib -lcloog" -+ clooginc="-I$with_cloog/include " -+ LIBS="$clooglibs $LIBS" -+fi -+if test "x$with_cloog_include" != x; then -+ clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND " -+fi -+if test "x$with_cloog_lib" != x; then -+ clooglibs="-L$with_cloog_lib -lcloog" -+ LIBS="$clooglibs $LIBS" -+fi -+if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then -+ clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog ' -+ clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND ' -+ LIBS="$clooglibs $LIBS" -+fi -+ -+# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given. -+if test "${enable_cloog_version_check+set}" = set; then -+ enableval="$enable_cloog_version_check" -+ ENABLE_CLOOG_CHECK=$enableval -+else -+ ENABLE_CLOOG_CHECK=yes -+fi; -+ -+if test "${ENABLE_CLOOG_CHECK}" = "yes"; then -+ saved_CFLAGS="$CFLAGS" -+ CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc" -+ echo "$as_me:$LINENO: checking for correct version of CLooG" >&5 -+echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6 -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include "cloog/cloog.h" -+int -+main () -+{ -+ -+ #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 -+ 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_c_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 -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6; clooglibs= ; clooginc= -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+ CFLAGS="$saved_CFLAGS" -+fi -+ -+# Flags needed for CLOOG -+ -+ -+ -+ -+# By default, C is the only stage 1 language. -+stage1_languages=,c, -+ -+# Figure out what language subdirectories are present. -+# Look if the user specified --enable-languages="..."; if not, use -+# the environment variable $LANGUAGES if defined. $LANGUAGES might -+# go away some day. -+# NB: embedded tabs in this IF block -- do not untabify -+if test -d ${srcdir}/gcc; then -+ if test x"${enable_languages+set}" != xset; then -+ if test x"${LANGUAGES+set}" = xset; then -+ enable_languages="${LANGUAGES}" -+ echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 -+ else -+ enable_languages=all -+ fi -+ else -+ if test x"${enable_languages}" = x || -+ test x"${enable_languages}" = xyes; -+ then -+ echo configure.in: --enable-languages needs at least one language argument 1>&2 -+ exit 1 -+ fi -+ fi -+ enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` -+ -+ # 'f95' is the old name for the 'fortran' language. We issue a warning -+ # and make the substitution. -+ case ,${enable_languages}, in -+ *,f95,*) -+ echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 -+ enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` -+ ;; -+ esac -+ -+ # First scan to see if an enabled language requires some other language. -+ # We assume that a given config-lang.in will list all the language -+ # front ends it requires, even if some are required indirectly. -+ for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do -+ case ${lang_frag} in -+ ..) ;; -+ # The odd quoting in the next line works around -+ # an apparent bug in bash 1.12 on linux. -+ ${srcdir}/gcc/[*]/config-lang.in) ;; -+ *) -+ # From the config-lang.in, get $language, $lang_requires -+ language= -+ lang_requires= -+ . ${lang_frag} -+ for other in ${lang_requires} ; do -+ case ,${enable_languages}, in -+ *,$other,*) ;; -+ *,all,*) ;; -+ *,$language,*) -+ echo " \`$other' language required by \`$language'; enabling" 1>&2 -+ enable_languages="${enable_languages},${other}" -+ ;; -+ esac -+ done -+ ;; -+ esac -+ done -+ -+ new_enable_languages=,c, -+ missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` -+ potential_languages=,c, -+ -+ for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do -+ case ${lang_frag} in -+ ..) ;; -+ # The odd quoting in the next line works around -+ # an apparent bug in bash 1.12 on linux. -+ ${srcdir}/gcc/[*]/config-lang.in) ;; -+ *) -+ # From the config-lang.in, get $language, $target_libs, -+ # $lang_dirs, $boot_language, and $build_by_default -+ language= -+ target_libs= -+ lang_dirs= -+ subdir_requires= -+ boot_language=no -+ build_by_default=yes -+ . ${lang_frag} -+ if test x${language} = x; then -+ echo "${lang_frag} doesn't set \$language." 1>&2 -+ exit 1 -+ fi -+ -+ case ,${enable_languages}, in -+ *,${language},*) -+ # Language was explicitly selected; include it. -+ add_this_lang=yes -+ ;; -+ *,all,*) -+ # 'all' was selected, select it if it is a default language -+ add_this_lang=${build_by_default} -+ ;; -+ *) -+ add_this_lang=no -+ ;; -+ esac -+ -+ # Disable languages that need other directories if these aren't available. -+ for i in $subdir_requires; do -+ test -f "$srcdir/gcc/$i/config-lang.in" && continue -+ case ,${enable_languages}, in -+ *,${language},*) -+ # Specifically requested language; tell them. -+ { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5 -+echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;} -+ { (exit 1); exit 1; }; } -+ ;; -+ *) -+ # Silently disable. -+ add_this_lang=unsupported -+ ;; -+ esac -+ done -+ -+ # Disable Ada if no preexisting GNAT is available. -+ case ,${enable_languages},:${language}:${have_gnat} in -+ *,${language},*:ada:no) -+ # Specifically requested language; tell them. -+ { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5 -+echo "$as_me: error: GNAT is required to build $language" >&2;} -+ { (exit 1); exit 1; }; } -+ ;; -+ *:ada:no) -+ # Silently disable. -+ add_this_lang=unsupported -+ ;; -+ esac -+ -+ # Disable a language that is unsupported by the target. -+ case " $unsupported_languages " in -+ *" $language "*) -+ add_this_lang=unsupported -+ ;; -+ esac -+ -+ case $add_this_lang in -+ unsupported) -+ # Remove language-dependent dirs. -+ eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" -+ ;; -+ no) -+ # Remove language-dependent dirs; still show language as supported. -+ eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" -+ potential_languages="${potential_languages}${language}," -+ ;; -+ yes) -+ new_enable_languages="${new_enable_languages}${language}," -+ potential_languages="${potential_languages}${language}," -+ missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` -+ case ${boot_language} in -+ yes) -+ # Add to (comma-separated) list of stage 1 languages. -+ stage1_languages="${stage1_languages}${language}," -+ ;; -+ esac -+ ;; -+ esac -+ ;; -+ esac -+ done -+ -+ # Check whether --enable-stage1-languages or --disable-stage1-languages was given. -+if test "${enable_stage1_languages+set}" = set; then -+ enableval="$enable_stage1_languages" -+ case ,${enable_stage1_languages}, in -+ ,no,|,,) -+ # Set it to something that will have no effect in the loop below -+ enable_stage1_languages=c ;; -+ ,yes,) -+ enable_stage1_languages=`echo $new_enable_languages | \ -+ sed -e "s/^,//" -e "s/,$//" ` ;; -+ *,all,*) -+ enable_stage1_languages=`echo ,$enable_stage1_languages, | \ -+ sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; -+ esac -+ -+ # Add "good" languages from enable_stage1_languages to stage1_languages, -+ # while "bad" languages go in missing_languages. Leave no duplicates. -+ for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do -+ case $potential_languages in -+ *,$i,*) -+ case $stage1_languages in -+ *,$i,*) ;; -+ *) stage1_languages="$stage1_languages$i," ;; -+ esac ;; -+ *) -+ case $missing_languages in -+ *,$i,*) ;; -+ *) missing_languages="$missing_languages$i," ;; -+ esac ;; -+ esac -+ done -+fi; -+ -+ # Remove leading/trailing commas that were added for simplicity -+ potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` -+ missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` -+ stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` -+ new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` -+ -+ if test "x$missing_languages" != x; then -+ { { echo "$as_me:$LINENO: error: -+The following requested languages could not be built: ${missing_languages} -+Supported languages are: ${potential_languages}" >&5 -+echo "$as_me: error: -+The following requested languages could not be built: ${missing_languages} -+Supported languages are: ${potential_languages}" >&2;} -+ { (exit 1); exit 1; }; } -+ fi -+ if test "x$new_enable_languages" != "x$enable_languages"; then -+ echo The following languages will be built: ${new_enable_languages} -+ enable_languages="$new_enable_languages" -+ fi -+ -+ -+ ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` -+fi -+ -+# Handle --disable- generically. -+for dir in $configdirs $build_configdirs $target_configdirs ; do -+ dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` -+ varname=`echo $dirname | sed -e s/+/_/g` -+ if eval test x\${enable_${varname}} "=" xno ; then -+ noconfigdirs="$noconfigdirs $dir" -+ fi -+done -+ -+# Check for Boehm's garbage collector -+# Check whether --enable-objc-gc or --disable-objc-gc was given. -+if test "${enable_objc_gc+set}" = set; then -+ enableval="$enable_objc_gc" -+ case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in -+ *,objc,*:*:yes:*target-boehm-gc*) -+ { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5 -+echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;} -+ { (exit 1); exit 1; }; } -+ ;; -+esac -+fi; -+ -+# Make sure we only build Boehm's garbage collector if required. -+case ,${enable_languages},:${enable_objc_gc} in -+ *,objc,*:yes) -+ # Keep target-boehm-gc if requested for Objective-C. -+ ;; -+ *) -+ # Otherwise remove target-boehm-gc depending on target-libjava. -+ if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then -+ noconfigdirs="$noconfigdirs target-boehm-gc" -+ fi -+ ;; -+esac -+ -+# Remove the entries in $skipdirs and $noconfigdirs from $configdirs, -+# $build_configdirs and $target_configdirs. -+# If we have the source for $noconfigdirs entries, add them to $notsupp. -+ -+notsupp="" -+for dir in . $skipdirs $noconfigdirs ; do -+ dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` -+ if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` -+ if test -r $srcdir/$dirname/configure ; then -+ if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ true -+ else -+ notsupp="$notsupp $dir" -+ fi -+ fi -+ fi -+ if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` -+ if test -r $srcdir/$dirname/configure ; then -+ if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ true -+ else -+ notsupp="$notsupp $dir" -+ fi -+ fi -+ fi -+ if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` -+ if test -r $srcdir/$dirname/configure ; then -+ if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ true -+ else -+ notsupp="$notsupp $dir" -+ fi -+ fi -+ fi -+done -+ -+# Sometimes the tools are distributed with libiberty but with no other -+# libraries. In that case, we don't want to build target-libiberty. -+# Don't let libgcc imply libiberty either. -+if test -n "${target_configdirs}" ; then -+ libgcc= -+ others= -+ for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do -+ if test "$i" = "libgcc"; then -+ libgcc=target-libgcc -+ elif test "$i" != "libiberty" ; then -+ if test -r $srcdir/$i/configure ; then -+ others=yes; -+ break; -+ fi -+ fi -+ done -+ if test -z "${others}" ; then -+ target_configdirs=$libgcc -+ fi -+fi -+ -+# Quietly strip out all directories which aren't configurable in this tree. -+# This relies on all configurable subdirectories being autoconfiscated, which -+# is now the case. -+build_configdirs_all="$build_configdirs" -+build_configdirs= -+for i in ${build_configdirs_all} ; do -+ j=`echo $i | sed -e s/build-//g` -+ if test -f ${srcdir}/$j/configure ; then -+ build_configdirs="${build_configdirs} $i" -+ fi -+done -+ -+configdirs_all="$configdirs" -+configdirs= -+for i in ${configdirs_all} ; do -+ if test -f ${srcdir}/$i/configure ; then -+ configdirs="${configdirs} $i" -+ fi -+done -+ -+target_configdirs_all="$target_configdirs" -+target_configdirs= -+for i in ${target_configdirs_all} ; do -+ j=`echo $i | sed -e s/target-//g` -+ if test -f ${srcdir}/$j/configure ; then -+ target_configdirs="${target_configdirs} $i" -+ fi -+done -+ -+# Produce a warning message for the subdirs we can't configure. -+# This isn't especially interesting in the Cygnus tree, but in the individual -+# FSF releases, it's important to let people know when their machine isn't -+# supported by the one or two programs in a package. -+ -+if test -n "${notsupp}" && test -z "${norecursion}" ; then -+ # If $appdirs is non-empty, at least one of those directories must still -+ # be configured, or we error out. (E.g., if the gas release supports a -+ # specified target in some subdirs but not the gas subdir, we shouldn't -+ # pretend that all is well.) -+ if test -n "$appdirs" ; then -+ for dir in $appdirs ; do -+ if test -r $dir/Makefile.in ; then -+ if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then -+ appdirs="" -+ break -+ fi -+ if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then -+ appdirs="" -+ break -+ fi -+ fi -+ done -+ if test -n "$appdirs" ; then -+ echo "*** This configuration is not supported by this package." 1>&2 -+ exit 1 -+ fi -+ fi -+ # Okay, some application will build, or we don't care to check. Still -+ # notify of subdirs not getting built. -+ echo "*** This configuration is not supported in the following subdirectories:" 1>&2 -+ echo " ${notsupp}" 1>&2 -+ echo " (Any other directories should still work fine.)" 1>&2 -+fi -+ -+case "$host" in -+ *msdosdjgpp*) -+ 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= -+ -+ -+# Check whether --with-build-sysroot or --without-build-sysroot was given. -+if test "${with_build_sysroot+set}" = set; then -+ withval="$with_build_sysroot" -+ if test x"$withval" != x ; then -+ SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" -+ fi -+else -+ SYSROOT_CFLAGS_FOR_TARGET= -+fi; -+ -+ -+ -+# Check whether --with-debug-prefix-map or --without-debug-prefix-map was given. -+if test "${with_debug_prefix_map+set}" = set; then -+ withval="$with_debug_prefix_map" -+ if test x"$withval" != x; then -+ DEBUG_PREFIX_CFLAGS_FOR_TARGET= -+ for debug_map in $withval; do -+ DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" -+ done -+ fi -+else -+ DEBUG_PREFIX_CFLAGS_FOR_TARGET= -+fi; -+ -+ -+# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS -+# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS -+# might also be empty (or "-g", if a non-GCC C++ compiler is in the path). -+# We want to ensure that TARGET libraries (which we know are built with -+# gcc) are built with "-O2 -g", so include those options when setting -+# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. -+if test "x$CFLAGS_FOR_TARGET" = x; then -+ CFLAGS_FOR_TARGET=$CFLAGS -+ case " $CFLAGS " in -+ *" -O2 "*) ;; -+ *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; -+ esac -+ case " $CFLAGS " in -+ *" -g "* | *" -g3 "*) ;; -+ *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; -+ esac -+fi -+ -+ -+if test "x$CXXFLAGS_FOR_TARGET" = x; then -+ CXXFLAGS_FOR_TARGET=$CXXFLAGS -+ case " $CXXFLAGS " in -+ *" -O2 "*) ;; -+ *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; -+ esac -+ case " $CXXFLAGS " in -+ *" -g "* | *" -g3 "*) ;; -+ *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; -+ esac -+fi -+ -+ -+# Handle --with-headers=XXX. If the value is not "yes", the contents of -+# the named directory are copied to $(tooldir)/sys-include. -+if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then -+ if test x${is_cross_compiler} = xno ; then -+ echo 1>&2 '***' --with-headers is only supported when cross compiling -+ exit 1 -+ fi -+ if test x"${with_headers}" != xyes ; then -+ x=${gcc_cv_tool_prefix} -+ copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" -+ fi -+fi -+ -+# Handle --with-libs=XXX. If the value is not "yes", the contents of -+# the name directories are copied to $(tooldir)/lib. Multiple directories -+# are permitted. -+if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then -+ if test x${is_cross_compiler} = xno ; then -+ echo 1>&2 '***' --with-libs is only supported when cross compiling -+ exit 1 -+ fi -+ 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. -+ x=${gcc_cv_tool_prefix} -+ for l in ${with_libs}; do -+ copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" -+ done -+ fi -+fi -+ -+# Set with_gnu_as and with_gnu_ld as appropriate. -+# -+# This is done by determining whether or not the appropriate directory -+# is available, and by checking whether or not specific configurations -+# have requested that this magic not happen. -+# -+# The command line options always override the explicit settings in -+# configure.in, and the settings in configure.in override this magic. -+# -+# If the default for a toolchain is to use GNU as and ld, and you don't -+# want to do that, then you should use the --without-gnu-as and -+# --without-gnu-ld options for the configure script. -+ -+if test x${use_gnu_as} = x && -+ echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then -+ with_gnu_as=yes -+ extra_host_args="$extra_host_args --with-gnu-as" -+fi -+ -+if test x${use_gnu_ld} = x && -+ echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then -+ with_gnu_ld=yes -+ extra_host_args="$extra_host_args --with-gnu-ld" -+fi -+ -+# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure -+# can detect this case. -+ -+if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then -+ with_newlib=yes -+ extra_host_args="$extra_host_args --with-newlib" -+fi -+ -+# Handle ${copy_dirs} -+set fnord ${copy_dirs} -+shift -+while test $# != 0 ; do -+ if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then -+ : -+ else -+ echo Copying $1 to $2 -+ -+ # Use the install script to create the directory and all required -+ # parent directories. -+ if test -d $2 ; then -+ : -+ else -+ echo >config.temp -+ ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED -+ fi -+ -+ # Copy the directory, assuming we have tar. -+ # FIXME: Should we use B in the second tar? Not all systems support it. -+ (cd $1; tar -cf - .) | (cd $2; tar -xpf -) -+ -+ # It is the responsibility of the user to correctly adjust all -+ # symlinks. If somebody can figure out how to handle them correctly -+ # here, feel free to add the code. -+ -+ echo $1 > $2/COPIED -+ fi -+ shift; shift -+done -+ -+# Determine a target-dependent exec_prefix that the installed -+# gcc will search in. Keep this list sorted by triplet, with -+# the *-*-osname triplets last. -+md_exec_prefix= -+case "${target}" in -+ alpha*-*-*vms*) -+ md_exec_prefix=/gnu/lib/gcc-lib -+ ;; -+ i[34567]86-pc-msdosdjgpp*) -+ md_exec_prefix=/dev/env/DJDIR/bin -+ ;; -+ i[34567]86-*-sco3.2v5*) -+ if test $with_gnu_as = yes; then -+ md_exec_prefix=/usr/gnu/bin -+ else -+ md_exec_prefix=/usr/ccs/bin/elf -+ fi -+ ;; -+ -+ mn10300-*-* | \ -+ powerpc-*-chorusos* | \ -+ powerpc*-*-eabi* | \ -+ powerpc*-*-sysv* | \ -+ powerpc*-*-kaos* | \ -+ s390x-ibm-tpf*) -+ md_exec_prefix=/usr/ccs/bin -+ ;; -+ sparc64-*-elf*) -+ ;; -+ v850*-*-*) -+ md_exec_prefix=/usr/ccs/bin -+ ;; -+ xtensa*-*-elf*) -+ ;; -+ -+ *-*-beos* | \ -+ *-*-elf* | \ -+ *-*-hpux* | \ -+ *-*-netware* | \ -+ *-*-nto-qnx* | \ -+ *-*-rtems* | \ -+ *-*-solaris2* | \ -+ *-*-sysv[45]* | \ -+ *-*-vxworks* | \ -+ *-wrs-windiss) -+ md_exec_prefix=/usr/ccs/bin -+ ;; -+esac -+ -+extra_arflags_for_target= -+extra_nmflags_for_target= -+extra_ranlibflags_for_target= -+target_makefile_frag=/dev/null -+case "${target}" in -+ mep*-*-*) -+ target_makefile_frag="config/mt-mep" -+ ;; -+ spu-*-*) -+ target_makefile_frag="config/mt-spu" -+ ;; -+ mips*-sde-elf*) -+ target_makefile_frag="config/mt-sde" -+ ;; -+ mipsisa*-*-elfoabi*) -+ target_makefile_frag="config/mt-mips-elfoabi" -+ ;; -+ mips*-*-*linux* | mips*-*-gnu*) -+ target_makefile_frag="config/mt-mips-gnu" -+ ;; -+ *-*-netware*) -+ target_makefile_frag="config/mt-netware" -+ ;; -+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu) -+ target_makefile_frag="config/mt-gnu" -+ ;; -+ *-*-aix4.[3456789]* | *-*-aix[56789].*) -+ # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm -+ # commands to handle both 32-bit and 64-bit objects. These flags are -+ # harmless if we're using GNU nm or ar. -+ extra_arflags_for_target=" -X32_64" -+ extra_nmflags_for_target=" -B -X32_64" -+ ;; -+ *-*-darwin*) -+ # ranlib from Darwin requires the -c flag to look at common symbols. -+ extra_ranlibflags_for_target=" -c" -+ ;; -+ mips*-*-pe | sh*-*-pe | *arm-wince-pe) -+ target_makefile_frag="config/mt-wince" -+ ;; -+esac -+ -+alphaieee_frag=/dev/null -+case $target in -+ alpha*-*-*) -+ # This just makes sure to use the -mieee option to build target libs. -+ # This should probably be set individually by each library. -+ alphaieee_frag="config/mt-alphaieee" -+ ;; -+esac -+ -+# If --enable-target-optspace always use -Os instead of -O2 to build -+# the target libraries, similarly if it is not specified, use -Os -+# on selected platforms. -+ospace_frag=/dev/null -+case "${enable_target_optspace}:${target}" in -+ yes:*) -+ ospace_frag="config/mt-ospace" -+ ;; -+ :d30v-*) -+ ospace_frag="config/mt-d30v" -+ ;; -+ :m32r-* | :d10v-* | :fr30-*) -+ ospace_frag="config/mt-ospace" -+ ;; -+ no:* | :*) -+ ;; -+ *) -+ echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 -+ ;; -+esac -+ -+# Default to using --with-stabs for certain targets. -+if test x${with_stabs} = x ; then -+ case "${target}" in -+ mips*-*-irix[56]*) -+ ;; -+ mips*-*-* | alpha*-*-osf*) -+ with_stabs=yes; -+ extra_host_args="${extra_host_args} --with-stabs" -+ ;; -+ esac -+fi -+ -+# hpux11 in 64bit mode has libraries in a weird place. Arrange to find -+# them automatically. -+case "${host}" in -+ hppa*64*-*-hpux11*) -+ extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" -+ ;; -+esac -+ -+# Some systems (e.g., one of the i386-aix systems the gas testers are -+# using) don't handle "\$" correctly, so don't use it here. -+tooldir='${exec_prefix}'/${target_noncanonical} -+build_tooldir=${tooldir} -+ -+# Create a .gdbinit file which runs the one in srcdir -+# and tells GDB to look there for source files. -+ -+if test -r ${srcdir}/.gdbinit ; then -+ case ${srcdir} in -+ .) ;; -+ *) cat > ./.gdbinit < conftest.c -+${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c -+if test $? = 0 ; then -+ if test -s conftest || test -s conftest.exe ; then -+ we_are_ok=yes -+ fi -+fi -+case $we_are_ok in -+ no) -+ echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." -+ echo 1>&2 "*** You must set the environment variable CC to a working compiler." -+ rm -f conftest* -+ exit 1 -+ ;; -+esac -+rm -f conftest* -+ -+# The Solaris /usr/ucb/cc compiler does not appear to work. -+case "${host}" in -+ sparc-sun-solaris2*) -+ CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" -+ if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then -+ could_use= -+ test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" -+ if test -d /opt/cygnus/bin ; then -+ if test "$could_use" = "" ; then -+ could_use="/opt/cygnus/bin" -+ else -+ could_use="$could_use or /opt/cygnus/bin" -+ fi -+ fi -+ if test "$could_use" = "" ; then -+ echo "Warning: compilation may fail because you're using" -+ echo "/usr/ucb/cc. You should change your PATH or CC " -+ echo "variable and rerun configure." -+ else -+ echo "Warning: compilation may fail because you're using" -+ echo "/usr/ucb/cc, when you should use the C compiler from" -+ echo "$could_use. You should change your" -+ echo "PATH or CC variable and rerun configure." -+ fi -+ fi -+ ;; -+esac -+ -+# Decide which environment variable is used to find dynamic libraries. -+case "${host}" in -+ *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; -+ *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; -+ *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; -+ *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; -+esac -+ -+# On systems where the dynamic library environment variable is PATH, -+# gcc/ will put dynamic libraries into a subdirectory to avoid adding -+# built executables to PATH. -+if test "$RPATH_ENVVAR" = PATH; then -+ GCC_SHLIB_SUBDIR=/shlib -+else -+ GCC_SHLIB_SUBDIR= -+fi -+ -+# Record target_configdirs and the configure arguments for target and -+# build configuration in Makefile. -+target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` -+build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` -+ -+# Determine whether gdb needs tk/tcl or not. -+# Use 'maybe' since enable_gdbtk might be true even if tk isn't available -+# and in that case we want gdb to be built without tk. Ugh! -+# In fact I believe gdb is the *only* package directly dependent on tk, -+# so we should be able to put the 'maybe's in unconditionally and -+# leave out the maybe dependencies when enable_gdbtk is false. I'm not -+# 100% sure that that's safe though. -+ -+gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" -+case "$enable_gdbtk" in -+ no) -+ GDB_TK="" ;; -+ yes) -+ GDB_TK="${gdb_tk}" ;; -+ *) -+ # Only add the dependency on gdbtk when GDBtk is part of the gdb -+ # distro. Eventually someone will fix this and move Insight, nee -+ # gdbtk to a separate directory. -+ if test -d ${srcdir}/gdb/gdbtk ; then -+ GDB_TK="${gdb_tk}" -+ else -+ GDB_TK="" -+ fi -+ ;; -+esac -+CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` -+INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` -+ -+# Strip out unwanted targets. -+ -+# While at that, we remove Makefiles if we were started for recursive -+# configuration, so that the top-level Makefile reconfigures them, -+# like we used to do when configure itself was recursive. -+ -+# Loop over modules. $extrasub must be used with care, limiting as -+# much as possible the usage of range addresses. That's because autoconf -+# splits the sed script to overcome limits in the number of commands, -+# and relying on carefully-timed sed passes may turn out to be very hard -+# to maintain later. In this particular case, you just have to be careful -+# not to nest @if/@endif pairs, because configure will not warn you at all. -+ -+# Check whether --enable-bootstrap or --disable-bootstrap was given. -+if test "${enable_bootstrap+set}" = set; then -+ enableval="$enable_bootstrap" -+ -+else -+ enable_bootstrap=default -+fi; -+ -+# Issue errors and warnings for invalid/strange bootstrap combinations. -+case "$configdirs" in -+ *gcc*) have_compiler=yes ;; -+ *) have_compiler=no ;; -+esac -+ -+case "$have_compiler:$host:$target:$enable_bootstrap" in -+ *:*:*:no) ;; -+ -+ # Default behavior. Enable bootstrap if we have a compiler -+ # and we are in a native configuration. -+ yes:$build:$build:default) -+ enable_bootstrap=yes ;; -+ -+ *:*:*:default) -+ enable_bootstrap=no ;; -+ -+ # We have a compiler and we are in a native configuration, bootstrap is ok -+ yes:$build:$build:yes) -+ ;; -+ -+ # Other configurations, but we have a compiler. Assume the user knows -+ # what he's doing. -+ yes:*:*:yes) -+ { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5 -+echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} -+ ;; -+ -+ # No compiler: if they passed --enable-bootstrap explicitly, fail -+ no:*:*:yes) -+ { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5 -+echo "$as_me: error: cannot bootstrap without a compiler" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ -+ # Fail if wrong command line -+ *) -+ { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5 -+echo "$as_me: error: invalid option for --enable-bootstrap" >&2;} -+ { (exit 1); exit 1; }; } -+ ;; -+esac -+ -+# Adjust the toplevel makefile according to whether bootstrap was selected. -+case "$enable_bootstrap" in -+ yes) -+ bootstrap_suffix=bootstrap ;; -+ no) -+ bootstrap_suffix=no-bootstrap ;; -+esac -+ -+for module in ${build_configdirs} ; do -+ if test -z "${no_recursion}" \ -+ && test -f ${build_subdir}/${module}/Makefile; then -+ echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" -+ rm -f ${build_subdir}/${module}/Makefile -+ fi -+ extrasub="$extrasub -+/^@if build-$module\$/d -+/^@endif build-$module\$/d -+/^@if build-$module-$bootstrap_suffix\$/d -+/^@endif build-$module-$bootstrap_suffix\$/d" -+done -+for module in ${configdirs} ; do -+ if test -z "${no_recursion}"; then -+ for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do -+ if test -f ${file}; then -+ echo 1>&2 "*** removing ${file} to force reconfigure" -+ rm -f ${file} -+ fi -+ done -+ fi -+ extrasub="$extrasub -+/^@if $module\$/d -+/^@endif $module\$/d -+/^@if $module-$bootstrap_suffix\$/d -+/^@endif $module-$bootstrap_suffix\$/d" -+done -+for module in ${target_configdirs} ; do -+ if test -z "${no_recursion}" \ -+ && test -f ${target_subdir}/${module}/Makefile; then -+ echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" -+ rm -f ${target_subdir}/${module}/Makefile -+ fi -+ extrasub="$extrasub -+/^@if target-$module\$/d -+/^@endif target-$module\$/d -+/^@if target-$module-$bootstrap_suffix\$/d -+/^@endif target-$module-$bootstrap_suffix\$/d" -+done -+ -+extrasub="$extrasub -+/^@if /,/^@endif /d" -+ -+# Create the serialization dependencies. This uses a temporary file. -+ -+# Check whether --enable-serial-configure or --disable-serial-configure was given. -+if test "${enable_serial_configure+set}" = set; then -+ enableval="$enable_serial_configure" -+ -+fi; -+ -+case ${enable_serial_configure} in -+ yes) -+ enable_serial_build_configure=yes -+ enable_serial_host_configure=yes -+ enable_serial_target_configure=yes -+ ;; -+esac -+ -+# These force 'configure's to be done one at a time, to avoid problems -+# with contention over a shared config.cache. -+rm -f serdep.tmp -+echo '# serdep.tmp' > serdep.tmp -+olditem= -+test "x${enable_serial_build_configure}" = xyes && -+for item in ${build_configdirs} ; do -+ case ${olditem} in -+ "") ;; -+ *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; -+ esac -+ olditem=${item} -+done -+olditem= -+test "x${enable_serial_host_configure}" = xyes && -+for item in ${configdirs} ; do -+ case ${olditem} in -+ "") ;; -+ *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; -+ esac -+ olditem=${item} -+done -+olditem= -+test "x${enable_serial_target_configure}" = xyes && -+for item in ${target_configdirs} ; do -+ case ${olditem} in -+ "") ;; -+ *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; -+ esac -+ olditem=${item} -+done -+serialization_dependencies=serdep.tmp -+ -+ -+# Base args. Strip norecursion, cache-file, srcdir, host, build, -+# target, nonopt, and variable assignments. These are the ones we -+# might not want to pass down to subconfigures. Also strip -+# program-prefix, program-suffix, and program-transform-name, so that -+# we can pass down a consistent program-transform-name. -+baseargs= -+keep_next=no -+skip_next=no -+eval "set -- $ac_configure_args" -+for ac_arg -+do -+ if test X"$skip_next" = X"yes"; then -+ skip_next=no -+ continue -+ fi -+ if test X"$keep_next" = X"yes"; then -+ case $ac_arg in -+ *\'*) -+ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; -+ esac -+ baseargs="$baseargs '$ac_arg'" -+ keep_next=no -+ continue -+ fi -+ -+ # Handle separated arguments. Based on the logic generated by -+ # autoconf 2.59. -+ case $ac_arg in -+ *=* | --config-cache | -C | -disable-* | --disable-* \ -+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ -+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ -+ | -with-* | --with-* | -without-* | --without-* | --x) -+ separate_arg=no -+ ;; -+ -*) -+ separate_arg=yes -+ ;; -+ *) -+ separate_arg=no -+ ;; -+ esac -+ -+ case "$ac_arg" in -+ --no*) -+ continue -+ ;; -+ --c* | \ -+ --sr* | \ -+ --ho* | \ -+ --bu* | \ -+ --t* | \ -+ --program-* | \ -+ -cache_file* | \ -+ -srcdir* | \ -+ -host* | \ -+ -build* | \ -+ -target* | \ -+ -program-prefix* | \ -+ -program-suffix* | \ -+ -program-transform-name* ) -+ skip_next=$separate_arg -+ continue -+ ;; -+ -*) -+ # An option. Add it. -+ case $ac_arg in -+ *\'*) -+ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; -+ esac -+ baseargs="$baseargs '$ac_arg'" -+ keep_next=$separate_arg -+ ;; -+ *) -+ # Either a variable assignment, or a nonopt (triplet). Don't -+ # pass it down; let the Makefile handle this. -+ continue -+ ;; -+ esac -+done -+# Remove the initial space we just introduced and, as these will be -+# expanded by make, quote '$'. -+baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` -+ -+# Add in --program-transform-name, after --program-prefix and -+# --program-suffix have been applied to it. Autoconf has already -+# doubled dollar signs and backslashes in program_transform_name; we want -+# the backslashes un-doubled, and then the entire thing wrapped in single -+# quotes, because this will be expanded first by make and then by the shell. -+# Also, because we want to override the logic in subdir configure scripts to -+# choose program_transform_name, replace any s,x,x, with s,y,y,. -+sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" < conftestsed.out -+${program_transform_name} -+EOF_SED -+gcc_transform_name=`cat conftestsed.out` -+rm -f conftestsed.out -+baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" -+if test "$silent" = yes; then -+ baseargs="$baseargs --silent" -+fi -+ -+# For the build-side libraries, we just need to pretend we're native, -+# and not use the same cache file. Multilibs are neither needed nor -+# desired. -+build_configargs="--cache-file=../config.cache ${baseargs}" -+ -+# For host modules, accept cache file option, or specification as blank. -+case "${cache_file}" in -+"") # empty -+ cache_file_option="" ;; -+/* | [A-Za-z]:[\\/]* ) # absolute path -+ cache_file_option="--cache-file=${cache_file}" ;; -+*) # relative path -+ cache_file_option="--cache-file=../${cache_file}" ;; -+esac -+ -+# Host dirs don't like to share a cache file either, horribly enough. -+# This seems to be due to autoconf 2.5x stupidity. -+host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}" -+ -+target_configargs=${baseargs} -+ -+# Passing a --with-cross-host argument lets the target libraries know -+# whether they are being built with a cross-compiler or being built -+# native. However, it would be better to use other mechanisms to make the -+# sorts of decisions they want to make on this basis. Please consider -+# this option to be deprecated. FIXME. -+if test x${is_cross_compiler} = xyes ; then -+ target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" -+fi -+ -+# Default to --enable-multilib. -+if test x${enable_multilib} = x ; then -+ target_configargs="--enable-multilib ${target_configargs}" -+fi -+ -+# Pass --with-newlib if appropriate. Note that target_configdirs has -+# changed from the earlier setting of with_newlib. -+if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then -+ target_configargs="--with-newlib ${target_configargs}" -+fi -+ -+# Different target subdirs use different values of certain variables -+# (notably CXX). Worse, multilibs use *lots* of different values. -+# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that -+# it doesn't automatically accept command-line overrides of them. -+# This means it's not safe for target subdirs to share a cache file, -+# which is disgusting, but there you have it. Hopefully this can be -+# fixed in future. It's still worthwhile to use a cache file for each -+# directory. I think. -+ -+# Pass the appropriate --build, --host, --target and --cache-file arguments. -+# We need to pass --target, as newer autoconf's requires consistency -+# for target_alias and gcc doesn't manage it consistently. -+target_configargs="--cache-file=./config.cache ${target_configargs}" -+ -+FLAGS_FOR_TARGET= -+case " $target_configdirs " in -+ *" newlib "*) -+ case " $target_configargs " in -+ *" --with-newlib "*) -+ case "$target" in -+ *-cygwin*) -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;; -+ esac -+ -+ # If we're not building GCC, don't discard standard headers. -+ if test -d ${srcdir}/gcc; then -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' -+ -+ if test "${build}" != "${host}"; then -+ # On Canadian crosses, CC_FOR_TARGET will have already been set -+ # by `configure', so we won't have an opportunity to add -Bgcc/ -+ # to it. This is right: we don't want to search that directory -+ # for binaries, but we want the header files in there, so add -+ # them explicitly. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include' -+ -+ # Someone might think of using the pre-installed headers on -+ # Canadian crosses, in case the installed compiler is not fully -+ # compatible with the compiler being built. In this case, it -+ # would be better to flag an error than risking having -+ # incompatible object files being constructed. We can't -+ # guarantee that an error will be flagged, but let's hope the -+ # compiler will do it, when presented with incompatible header -+ # files. -+ fi -+ fi -+ -+ case "${target}-${is_cross_compiler}" in -+ i[3456789]86-*-linux*-no) -+ # Here host == target, so we don't need to build gcc, -+ # so we don't want to discard standard headers. -+ FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` -+ ;; -+ *) -+ # If we're building newlib, use its generic headers last, but search -+ # for any libc-related directories first (so make it the last -B -+ # switch). -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' -+ -+ # If we're building libgloss, find the startup file, simulator library -+ # and linker script. -+ case " $target_configdirs " in -+ *" libgloss "*) -+ # Look for startup file, simulator library and maybe linker script. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" -+ # Look for libnosys.a in case the target needs it. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' -+ # Most targets have the linker script in the source directory. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" -+ ;; -+ esac -+ ;; -+ esac -+ ;; -+ esac -+ ;; -+esac -+case "$target" in -+*-mingw*) -+ # Can't be handled as Cygwin above since Mingw does not use newlib. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include' ;; -+esac -+ -+# Allow the user to override the flags for -+# our build compiler if desired. -+if test x"${build}" = x"${host}" ; then -+ CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} -+ CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} -+ LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} -+fi -+ -+# On Canadian crosses, we'll be searching the right directories for -+# the previously-installed cross compiler, so don't bother to add -+# flags for directories within the install tree of the compiler -+# being built; programs in there won't even run. -+if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then -+ # Search for pre-installed headers if nothing else fits. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' -+fi -+ -+if test "x${use_gnu_ld}" = x && -+ echo " ${configdirs} " | grep " ld " > /dev/null ; then -+ # Arrange for us to find uninstalled linker scripts. -+ FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' -+fi -+ -+# Search for other target-specific linker scripts and such. -+case "${target}" in -+ mep*) -+ FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" -+ ;; -+esac -+ -+# Makefile fragments. -+for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; -+do -+ eval fragval=\$$frag -+ if test $fragval != /dev/null; then -+ eval $frag=${srcdir}/$fragval -+ fi -+done -+ -+ -+ -+ -+ -+# Miscellanea: directories, flags, etc. -+ -+ -+ -+ -+ -+ -+ -+ -+# Build module lists & subconfigure args. -+ -+ -+ -+# Host module lists & subconfigure args. -+ -+ -+ -+# Target module lists & subconfigure args. -+ -+ -+ -+# Build tools. -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+# Generate default definitions for YACC, M4, LEX and other programs that run -+# on the build machine. These are used if the Makefile can't locate these -+# programs in objdir. -+MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing -+ -+for ac_prog in 'bison -y' byacc yacc -+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_YACC+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$YACC"; then -+ ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+YACC=$ac_cv_prog_YACC -+if test -n "$YACC"; then -+ echo "$as_me:$LINENO: result: $YACC" >&5 -+echo "${ECHO_T}$YACC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$YACC" && break -+done -+test -n "$YACC" || YACC="$MISSING bison -y" -+ -+case " $build_configdirs " in -+ *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; -+ *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;; -+esac -+ -+for ac_prog in bison -+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_BISON+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$BISON"; then -+ ac_cv_prog_BISON="$BISON" # 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_BISON="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+BISON=$ac_cv_prog_BISON -+if test -n "$BISON"; then -+ echo "$as_me:$LINENO: result: $BISON" >&5 -+echo "${ECHO_T}$BISON" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$BISON" && break -+done -+test -n "$BISON" || BISON="$MISSING bison" -+ -+case " $build_configdirs " in -+ *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; -+esac -+ -+for ac_prog in gm4 gnum4 m4 -+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_M4+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$M4"; then -+ ac_cv_prog_M4="$M4" # 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_M4="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+M4=$ac_cv_prog_M4 -+if test -n "$M4"; then -+ echo "$as_me:$LINENO: result: $M4" >&5 -+echo "${ECHO_T}$M4" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$M4" && break -+done -+test -n "$M4" || M4="$MISSING m4" -+ -+case " $build_configdirs " in -+ *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; -+esac -+ -+for ac_prog in flex lex -+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_LEX+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$LEX"; then -+ ac_cv_prog_LEX="$LEX" # 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_LEX="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+LEX=$ac_cv_prog_LEX -+if test -n "$LEX"; then -+ echo "$as_me:$LINENO: result: $LEX" >&5 -+echo "${ECHO_T}$LEX" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$LEX" && break -+done -+test -n "$LEX" || LEX="$MISSING flex" -+ -+case " $build_configdirs " in -+ *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; -+ *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; -+esac -+ -+for ac_prog in flex -+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_FLEX+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$FLEX"; then -+ ac_cv_prog_FLEX="$FLEX" # 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_FLEX="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+FLEX=$ac_cv_prog_FLEX -+if test -n "$FLEX"; then -+ echo "$as_me:$LINENO: result: $FLEX" >&5 -+echo "${ECHO_T}$FLEX" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$FLEX" && break -+done -+test -n "$FLEX" || FLEX="$MISSING flex" -+ -+case " $build_configdirs " in -+ *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; -+esac -+ -+for ac_prog in makeinfo -+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_MAKEINFO+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$MAKEINFO"; then -+ ac_cv_prog_MAKEINFO="$MAKEINFO" # 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_MAKEINFO="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+MAKEINFO=$ac_cv_prog_MAKEINFO -+if test -n "$MAKEINFO"; then -+ echo "$as_me:$LINENO: result: $MAKEINFO" >&5 -+echo "${ECHO_T}$MAKEINFO" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$MAKEINFO" && break -+done -+test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" -+ -+case " $build_configdirs " in -+ *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; -+ *) -+ -+ # For an installed makeinfo, we require it to be from texinfo 4.6 or -+ # higher, else we use the "missing" dummy. -+ if ${MAKEINFO} --version \ -+ | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then -+ : -+ else -+ MAKEINFO="$MISSING makeinfo" -+ fi -+ ;; -+ -+esac -+ -+# FIXME: expect and dejagnu may become build tools? -+ -+for ac_prog in expect -+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_EXPECT+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$EXPECT"; then -+ ac_cv_prog_EXPECT="$EXPECT" # 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_EXPECT="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+EXPECT=$ac_cv_prog_EXPECT -+if test -n "$EXPECT"; then -+ echo "$as_me:$LINENO: result: $EXPECT" >&5 -+echo "${ECHO_T}$EXPECT" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$EXPECT" && break -+done -+test -n "$EXPECT" || EXPECT="expect" -+ -+case " $configdirs " in -+ *" expect "*) -+ test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' -+ ;; -+esac -+ -+for ac_prog in runtest -+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_RUNTEST+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$RUNTEST"; then -+ ac_cv_prog_RUNTEST="$RUNTEST" # 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_RUNTEST="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+RUNTEST=$ac_cv_prog_RUNTEST -+if test -n "$RUNTEST"; then -+ echo "$as_me:$LINENO: result: $RUNTEST" >&5 -+echo "${ECHO_T}$RUNTEST" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$RUNTEST" && break -+done -+test -n "$RUNTEST" || RUNTEST="runtest" -+ -+case " $configdirs " in -+ *" dejagnu "*) -+ test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' -+ ;; -+esac -+ -+ -+# Host tools. -+ncn_tool_prefix= -+test -n "$host_alias" && ncn_tool_prefix=$host_alias- -+ncn_target_tool_prefix= -+test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- -+ -+ -+ -+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 -+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_tool_prefix}${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 -+ if test -z "$ac_cv_prog_AR" && 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_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 -+ -+ 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 -+done -+done -+ -+fi -+fi -+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 -+ -+ done -+fi -+ -+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 -+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_tool_prefix}${ncn_progname}" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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 -+ if test -z "$ac_cv_prog_AS" && 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_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 -+done -+done -+ -+fi -+fi -+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_AS" && break -+done -+ -+if test -z "$ac_cv_prog_AS" ; then -+ set dummy as -+ if test $build = $host ; then -+ AS="$2" -+ else -+ AS="${ncn_tool_prefix}$2" -+ fi -+fi -+ -+ -+ -+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 -+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_tool_prefix}${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 -+ -+ fi -+ if test -z "$ac_cv_prog_DLLTOOL" && 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_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 -+ -+ fi -+ test -n "$ac_cv_prog_DLLTOOL" && break -+done -+ -+if test -z "$ac_cv_prog_DLLTOOL" ; then -+ set dummy dlltool -+ if test $build = $host ; then -+ DLLTOOL="$2" -+ else -+ DLLTOOL="${ncn_tool_prefix}$2" -+ fi -+fi -+ -+ -+ -+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 -+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_tool_prefix}${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 -+ -+ fi -+ if test -z "$ac_cv_prog_LD" && 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_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 -+ -+ fi -+ test -n "$ac_cv_prog_LD" && break -+done -+ -+if test -z "$ac_cv_prog_LD" ; then -+ set dummy ld -+ if test $build = $host ; then -+ LD="$2" -+ else -+ LD="${ncn_tool_prefix}$2" -+ fi -+fi -+ -+ -+ -+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 -+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_tool_prefix}${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 -+ -+ fi -+ if test -z "$ac_cv_prog_LIPO" && 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_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 -+ -+ fi -+ test -n "$ac_cv_prog_LIPO" && break -+done -+ -+if test -z "$ac_cv_prog_LIPO" ; then -+ set dummy lipo -+ if test $build = $host ; then -+ LIPO="$2" -+ else -+ LIPO="${ncn_tool_prefix}$2" -+ fi -+fi -+ -+ -+ -+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 -+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_tool_prefix}${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 -+ 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 -+ -+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_RANLIB+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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 -+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="${ncn_progname}" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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 -+ -+ done -+fi -+ -+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 -+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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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 -+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="${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 -+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 -+ if test -z "$ac_cv_prog_RANLIB" && 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_RANLIB+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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 -+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="${ncn_progname}" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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_RANLIB" && break -+done -+ -+if test -z "$ac_cv_prog_RANLIB" ; then -+ RANLIB=":" -+fi -+ -+ -+ -+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 -+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_tool_prefix}${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 -+ -+ fi -+ if test -z "$ac_cv_prog_STRIP" && 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_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 -+ -+ fi -+ test -n "$ac_cv_prog_STRIP" && break -+done -+ -+if test -z "$ac_cv_prog_STRIP" ; then -+ STRIP=":" -+fi -+ -+ -+ -+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 -+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_tool_prefix}${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 -+ -+ fi -+ if test -z "$ac_cv_prog_WINDRES" && 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_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 -+ -+ fi -+ test -n "$ac_cv_prog_WINDRES" && break -+done -+ -+if test -z "$ac_cv_prog_WINDRES" ; then -+ set dummy windres -+ if test $build = $host ; then -+ WINDRES="$2" -+ else -+ WINDRES="${ncn_tool_prefix}$2" -+ fi -+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 -+ 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 -+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_tool_prefix}${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 -+ -+ fi -+ if test -z "$ac_cv_prog_OBJCOPY" && 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_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 -+ -+ fi -+ test -n "$ac_cv_prog_OBJCOPY" && break -+done -+ -+if test -z "$ac_cv_prog_OBJCOPY" ; then -+ set dummy objcopy -+ if test $build = $host ; then -+ OBJCOPY="$2" -+ else -+ OBJCOPY="${ncn_tool_prefix}$2" -+ fi -+fi -+ -+ -+ -+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 -+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_tool_prefix}${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 -+ -+ fi -+ if test -z "$ac_cv_prog_OBJDUMP" && 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_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 -+ -+ fi -+ test -n "$ac_cv_prog_OBJDUMP" && break -+done -+ -+if test -z "$ac_cv_prog_OBJDUMP" ; then -+ set dummy objdump -+ if test $build = $host ; then -+ OBJDUMP="$2" -+ else -+ OBJDUMP="${ncn_tool_prefix}$2" -+ fi -+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 -+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 -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ 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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_CC_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_CC_FOR_TARGET"; then -+ for ncn_progname in cc gcc; 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_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_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 -+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 -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ fi -+ if test -z "$ac_cv_prog_CC_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_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 -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ fi -+ test -n "$ac_cv_prog_CC_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then -+ set dummy cc gcc -+ if test $build = $target ; then -+ CC_FOR_TARGET="$2" -+ else -+ CC_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" -+fi -+ -+ -+ -+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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_CXX_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_CXX_FOR_TARGET"; then -+ for ncn_progname in c++ g++ cxx gxx; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_CXX_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_CXX_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then -+ set dummy c++ g++ cxx gxx -+ if test $build = $target ; then -+ CXX_FOR_TARGET="$2" -+ else -+ CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" -+fi -+ -+ -+ -+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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_GCC_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_GCC_FOR_TARGET"; then -+ for ncn_progname in gcc; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_GCC_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_GCC_FOR_TARGET" && break -+ done -+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 -+ -+ -+ -+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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_GCJ_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_GCJ_FOR_TARGET"; then -+ for ncn_progname in gcj; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_GCJ_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then -+ set dummy gcj -+ if test $build = $target ; then -+ GCJ_FOR_TARGET="$2" -+ else -+ GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" -+fi -+ -+ -+ -+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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_GFORTRAN_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_GFORTRAN_FOR_TARGET"; then -+ for ncn_progname in gfortran; 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_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_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 -+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 -+ if test -z "$ac_cv_prog_GFORTRAN_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_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 -+ -+ 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 -+else -+ GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" -+fi -+ -+ -+ -+cat > conftest.c << \EOF -+#ifdef __GNUC__ -+ gcc_yay; -+#endif -+EOF -+if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then -+ have_gcc_for_target=yes -+else -+ GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc -+ have_gcc_for_target=no -+fi -+rm conftest.c -+ -+ -+ -+ -+if test -z "$ac_cv_path_AR_FOR_TARGET" ; then -+ if test -n "$with_build_time_tools"; then -+ echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5 -+echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6 -+ if test -x $with_build_time_tools/ar; then -+ AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar -+ ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET -+ echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5 -+echo "${ECHO_T}$ac_cv_path_AR_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 -+ AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` -+ 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 -+ # Extract the first word of "ar", so it can be a program name with args. -+set dummy ar; 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_AR_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $AR_FOR_TARGET in -+ [\\/]* | ?:[\\/]*) -+ ac_cv_path_AR_FOR_TARGET="$AR_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_AR_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 -+AR_FOR_TARGET=$ac_cv_path_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 -+ -+fi -+if test -z "$ac_cv_path_AR_FOR_TARGET" ; 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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_AR_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_AR_FOR_TARGET"; then -+ for ncn_progname in ar; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_AR_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_AR_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then -+ set dummy ar -+ if test $build = $target ; then -+ AR_FOR_TARGET="$2" -+ else -+ AR_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" -+fi -+ -+else -+ AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET -+fi -+ -+ -+ -+ -+if test -z "$ac_cv_path_AS_FOR_TARGET" ; then -+ if test -n "$with_build_time_tools"; then -+ echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5 -+echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6 -+ if test -x $with_build_time_tools/as; then -+ AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as -+ ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET -+ echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5 -+echo "${ECHO_T}$ac_cv_path_AS_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 -+ AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` -+ 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 -+ # Extract the first word of "as", so it can be a program name with args. -+set dummy as; 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_AS_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $AS_FOR_TARGET in -+ [\\/]* | ?:[\\/]*) -+ ac_cv_path_AS_FOR_TARGET="$AS_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_AS_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 -+AS_FOR_TARGET=$ac_cv_path_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 -+ -+fi -+if test -z "$ac_cv_path_AS_FOR_TARGET" ; 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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_AS_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_AS_FOR_TARGET"; then -+ for ncn_progname in as; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_AS_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_AS_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then -+ set dummy as -+ if test $build = $target ; then -+ AS_FOR_TARGET="$2" -+ else -+ AS_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" -+fi -+ -+else -+ AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET -+fi -+ -+ -+ -+ -+if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then -+ if test -n "$with_build_time_tools"; then -+ echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5 -+echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6 -+ if test -x $with_build_time_tools/dlltool; then -+ DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool -+ ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET -+ echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 -+echo "${ECHO_T}$ac_cv_path_DLLTOOL_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 -+ DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` -+ 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 -+ # Extract the first word of "dlltool", so it can be a program name with args. -+set dummy dlltool; 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_DLLTOOL_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $DLLTOOL_FOR_TARGET in -+ [\\/]* | ?:[\\/]*) -+ ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_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_DLLTOOL_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 -+DLLTOOL_FOR_TARGET=$ac_cv_path_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 -+ -+fi -+if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; 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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_DLLTOOL_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_DLLTOOL_FOR_TARGET"; then -+ for ncn_progname in dlltool; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_DLLTOOL_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then -+ set dummy dlltool -+ if test $build = $target ; then -+ DLLTOOL_FOR_TARGET="$2" -+ else -+ DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" -+fi -+ -+else -+ DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET -+fi -+ -+ -+ -+ -+if test -z "$ac_cv_path_LD_FOR_TARGET" ; then -+ if test -n "$with_build_time_tools"; then -+ echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5 -+echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6 -+ if test -x $with_build_time_tools/ld; then -+ LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld -+ ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET -+ echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5 -+echo "${ECHO_T}$ac_cv_path_LD_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 -+ LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` -+ 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 -+ # Extract the first word of "ld", so it can be a program name with args. -+set dummy ld; 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_LD_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $LD_FOR_TARGET in -+ [\\/]* | ?:[\\/]*) -+ ac_cv_path_LD_FOR_TARGET="$LD_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_LD_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 -+LD_FOR_TARGET=$ac_cv_path_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 -+ -+fi -+if test -z "$ac_cv_path_LD_FOR_TARGET" ; 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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_LD_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_LD_FOR_TARGET"; then -+ for ncn_progname in ld; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_LD_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_LD_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then -+ set dummy ld -+ if test $build = $target ; then -+ LD_FOR_TARGET="$2" -+ else -+ LD_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" -+fi -+ -+else -+ LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET -+fi -+ -+ -+ -+ -+if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then -+ if test -n "$with_build_time_tools"; then -+ echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5 -+echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6 -+ if test -x $with_build_time_tools/lipo; then -+ LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo -+ ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET -+ echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 -+echo "${ECHO_T}$ac_cv_path_LIPO_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 -+ LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` -+ 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 -+ # Extract the first word of "lipo", so it can be a program name with args. -+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 -+ 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 -+ 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_prog_LIPO_FOR_TARGET="${ncn_progname}" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+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 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ done -+fi -+ -+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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_LIPO_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_LIPO_FOR_TARGET"; then -+ for ncn_progname in lipo; 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_LIPO_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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_prog_LIPO_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 -+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 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ fi -+ if test -z "$ac_cv_prog_LIPO_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_LIPO_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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_prog_LIPO_FOR_TARGET="${ncn_progname}" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+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 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ fi -+ test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then -+ set dummy lipo -+ if test $build = $target ; then -+ LIPO_FOR_TARGET="$2" -+ else -+ LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" -+fi -+ -+else -+ LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET -+fi -+ -+ -+ -+ -+if test -z "$ac_cv_path_NM_FOR_TARGET" ; then -+ if test -n "$with_build_time_tools"; then -+ echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5 -+echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6 -+ if test -x $with_build_time_tools/nm; then -+ NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm -+ ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET -+ echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5 -+echo "${ECHO_T}$ac_cv_path_NM_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 -+ NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` -+ 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 -+ # Extract the first word of "nm", so it can be a program name with args. -+set dummy nm; 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_NM_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $NM_FOR_TARGET in -+ [\\/]* | ?:[\\/]*) -+ ac_cv_path_NM_FOR_TARGET="$NM_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_NM_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 -+NM_FOR_TARGET=$ac_cv_path_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 -+ -+fi -+if test -z "$ac_cv_path_NM_FOR_TARGET" ; 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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_NM_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_NM_FOR_TARGET"; then -+ for ncn_progname in nm; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_NM_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_NM_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then -+ set dummy nm -+ if test $build = $target ; then -+ NM_FOR_TARGET="$2" -+ else -+ NM_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" -+fi -+ -+else -+ NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET -+fi -+ -+ -+ -+ -+if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then -+ if test -n "$with_build_time_tools"; then -+ echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5 -+echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6 -+ if test -x $with_build_time_tools/objdump; then -+ OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump -+ ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET -+ echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 -+echo "${ECHO_T}$ac_cv_path_OBJDUMP_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 -+ OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` -+ 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 -+ # Extract the first word of "objdump", so it can be a program name with args. -+set dummy objdump; 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_OBJDUMP_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $OBJDUMP_FOR_TARGET in -+ [\\/]* | ?:[\\/]*) -+ ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_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_OBJDUMP_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 -+OBJDUMP_FOR_TARGET=$ac_cv_path_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 -+ -+fi -+if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; 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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_OBJDUMP_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_OBJDUMP_FOR_TARGET"; then -+ for ncn_progname in objdump; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_OBJDUMP_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then -+ set dummy objdump -+ if test $build = $target ; then -+ OBJDUMP_FOR_TARGET="$2" -+ else -+ OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" -+fi -+ -+else -+ OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET -+fi -+ -+ -+ -+ -+if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then -+ if test -n "$with_build_time_tools"; then -+ echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5 -+echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6 -+ if test -x $with_build_time_tools/ranlib; then -+ RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib -+ ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET -+ echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 -+echo "${ECHO_T}$ac_cv_path_RANLIB_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 -+ RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` -+ 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 -+ # Extract the first word of "ranlib", so it can be a program name with args. -+set dummy ranlib; 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_RANLIB_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $RANLIB_FOR_TARGET in -+ [\\/]* | ?:[\\/]*) -+ ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_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_RANLIB_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 -+RANLIB_FOR_TARGET=$ac_cv_path_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 -+ -+fi -+if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; 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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_RANLIB_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_RANLIB_FOR_TARGET"; then -+ for ncn_progname in ranlib; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_RANLIB_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then -+ set dummy ranlib -+ if test $build = $target ; then -+ RANLIB_FOR_TARGET="$2" -+ else -+ RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" -+fi -+ -+else -+ RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET -+fi -+ -+ -+ -+ -+if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then -+ if test -n "$with_build_time_tools"; then -+ echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5 -+echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6 -+ if test -x $with_build_time_tools/strip; then -+ STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip -+ ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET -+ echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 -+echo "${ECHO_T}$ac_cv_path_STRIP_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 -+ STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` -+ 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 -+ # Extract the first word of "strip", so it can be a program name with args. -+set dummy strip; 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_STRIP_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $STRIP_FOR_TARGET in -+ [\\/]* | ?:[\\/]*) -+ ac_cv_path_STRIP_FOR_TARGET="$STRIP_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_STRIP_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 -+STRIP_FOR_TARGET=$ac_cv_path_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 -+ -+fi -+if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; 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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_STRIP_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_STRIP_FOR_TARGET"; then -+ for ncn_progname in strip; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_STRIP_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then -+ set dummy strip -+ if test $build = $target ; then -+ STRIP_FOR_TARGET="$2" -+ else -+ STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" -+fi -+ -+else -+ STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET -+fi -+ -+ -+ -+ -+if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then -+ if test -n "$with_build_time_tools"; then -+ echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5 -+echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6 -+ if test -x $with_build_time_tools/windres; then -+ WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres -+ ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET -+ echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 -+echo "${ECHO_T}$ac_cv_path_WINDRES_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 -+ WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` -+ 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 -+ # Extract the first word of "windres", so it can be a program name with args. -+set dummy windres; 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_WINDRES_FOR_TARGET+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $WINDRES_FOR_TARGET in -+ [\\/]* | ?:[\\/]*) -+ ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_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_WINDRES_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 -+WINDRES_FOR_TARGET=$ac_cv_path_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 -+ -+fi -+if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; 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 -+ if test -x $with_build_time_tools/${ncn_progname}; then -+ ac_cv_prog_WINDRES_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_WINDRES_FOR_TARGET"; then -+ for ncn_progname in windres; 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_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_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 -+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 -+ -+ fi -+ if test -z "$ac_cv_prog_WINDRES_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_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 -+ -+ fi -+ test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break -+ done -+fi -+ -+if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then -+ set dummy windres -+ if test $build = $target ; then -+ WINDRES_FOR_TARGET="$2" -+ else -+ WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" -+ fi -+else -+ WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" -+fi -+ -+else -+ WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET -+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 -+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 -+ 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 -+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 -+ AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target as" >&5 -+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 -+ 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 -+echo "${ECHO_T}pre-installed" >&6 -+ fi -+else -+ ok=yes -+ case " ${configdirs} " in -+ *" gas "*) ;; -+ *) ok=no ;; -+ esac -+ -+ if test $ok = yes; then -+ # An in-tree tool is available and we can use it -+ AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target cc" >&5 -+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 -+ 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 -+echo "${ECHO_T}pre-installed" >&6 -+ fi -+else -+ ok=yes -+ case " ${configdirs} " in -+ *" gcc "*) ;; -+ *) ok=no ;; -+ esac -+ -+ if test $ok = yes; then -+ # An in-tree tool is available and we can use it -+ CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target c++" >&5 -+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 -+ 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 -+echo "${ECHO_T}pre-installed" >&6 -+ fi -+else -+ ok=yes -+ case " ${configdirs} " in -+ *" gcc "*) ;; -+ *) ok=no ;; -+ esac -+ case ,${enable_languages}, in -+ *,c++,*) ;; -+ *) ok=no ;; -+ esac -+ if test $ok = yes; then -+ # An in-tree tool is available and we can use it -+ CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5 -+echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6 -+if test "x${build}" != "x${host}" ; then -+ if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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 -+echo "${ECHO_T}pre-installed" >&6 -+ fi -+else -+ ok=yes -+ case " ${configdirs} " in -+ *" gcc "*) ;; -+ *) ok=no ;; -+ esac -+ case ,${enable_languages}, in -+ *,c++,*) ;; -+ *) ok=no ;; -+ esac -+ if test $ok = yes; then -+ # An in-tree tool is available and we can use it -+ RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target dlltool" >&5 -+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 -+ 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 -+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 -+ DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target gcc" >&5 -+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 -+ 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 -+echo "${ECHO_T}pre-installed" >&6 -+ fi -+else -+ ok=yes -+ case " ${configdirs} " in -+ *" gcc "*) ;; -+ *) ok=no ;; -+ esac -+ -+ if test $ok = yes; then -+ # An in-tree tool is available and we can use it -+ GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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='$()' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target gcj" >&5 -+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 -+ 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 -+echo "${ECHO_T}pre-installed" >&6 -+ fi -+else -+ ok=yes -+ case " ${configdirs} " in -+ *" gcc "*) ;; -+ *) ok=no ;; -+ esac -+ case ,${enable_languages}, in -+ *,java,*) ;; -+ *) ok=no ;; -+ esac -+ if test $ok = yes; then -+ # An in-tree tool is available and we can use it -+ GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target gfortran" >&5 -+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 -+ 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 -+echo "${ECHO_T}pre-installed" >&6 -+ fi -+else -+ ok=yes -+ case " ${configdirs} " in -+ *" gcc "*) ;; -+ *) ok=no ;; -+ esac -+ case ,${enable_languages}, in -+ *,fortran,*) ;; -+ *) ok=no ;; -+ esac -+ if test $ok = yes; then -+ # An in-tree tool is available and we can use it -+ GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target ld" >&5 -+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 -+ 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 -+echo "${ECHO_T}pre-installed" >&6 -+ fi -+else -+ ok=yes -+ case " ${configdirs} " in -+ *" ld "*) ;; -+ *) ok=no ;; -+ esac -+ -+ if test $ok = yes; then -+ # An in-tree tool is available and we can use it -+ LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target lipo" >&5 -+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 -+ 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 -+echo "${ECHO_T}pre-installed" >&6 -+ fi -+else -+ if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target nm" >&5 -+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 -+ 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 -+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 -+ NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target objdump" >&5 -+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 -+ 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 -+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 -+ OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target ranlib" >&5 -+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 -+ 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 -+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 -+ RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target strip" >&5 -+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 -+ 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 -+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 -+ STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+echo "$as_me:$LINENO: checking where to find the target windres" >&5 -+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 -+ 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 -+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 -+ WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' -+ echo "$as_me:$LINENO: result: just compiled" >&5 -+echo "${ECHO_T}just compiled" >&6 -+ elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then -+ # We already found the complete path -+ 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)' -+ 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 -+ -+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 -+ -+ -+ -+ -+ -+# Certain tools may need extra flags. -+AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} -+RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} -+NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} -+ -+# When building target libraries, except in a Canadian cross, we use -+# the same toolchain as the compiler we just built. -+COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' -+COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' -+COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' -+if test $host = $build; then -+ case " $configdirs " in -+ *" gcc "*) -+ COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' -+ COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' -+ COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} -+ ;; -+ esac -+fi -+ -+ -+ -+ -+ -+echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 -+echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 -+# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -+if test "${enable_maintainer_mode+set}" = set; then -+ enableval="$enable_maintainer_mode" -+ USE_MAINTAINER_MODE=$enableval -+else -+ USE_MAINTAINER_MODE=no -+fi; -+echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 -+echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 -+ -+ -+if test "$USE_MAINTAINER_MODE" = yes; then -+ MAINTAINER_MODE_TRUE= -+ MAINTAINER_MODE_FALSE='#' -+else -+ MAINTAINER_MODE_TRUE='#' -+ MAINTAINER_MODE_FALSE= -+fi -+MAINT=$MAINTAINER_MODE_TRUE -+ -+# --------------------- -+# GCC bootstrap support -+# --------------------- -+ -+# Stage specific cflags for build. -+stage1_cflags="-g" -+case $build in -+ vax-*-*) -+ case ${GCC} in -+ yes) stage1_cflags="-g -Wa,-J" ;; -+ *) stage1_cflags="-g -J" ;; -+ esac ;; -+esac -+ -+# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. -+if test "$GCC" = yes; then -+ saved_CFLAGS="$CFLAGS" -+ -+ # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. -+ CFLAGS="$CFLAGS -fkeep-inline-functions" -+ echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5 -+echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6 -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+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 () -+{ -+ -+ ; -+ 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_c_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 -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions" -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+ -+ CFLAGS="$saved_CFLAGS" -+fi -+ -+ -+ -+# Enable --enable-checking in stage1 of the compiler. -+# Check whether --enable-stage1-checking or --disable-stage1-checking was given. -+if test "${enable_stage1_checking+set}" = set; then -+ enableval="$enable_stage1_checking" -+ stage1_checking=--enable-checking=${enable_stage1_checking} -+else -+ if test "x$enable_checking" = xno || test "x$enable_checking" = x; then -+ stage1_checking=--enable-checking=yes,types -+else -+ stage1_checking=--enable-checking=$enable_checking,types -+fi -+fi; -+ -+ -+# Enable -Werror in bootstrap stage2 and later. -+# Check whether --enable-werror or --disable-werror was given. -+if test "${enable_werror+set}" = set; then -+ enableval="$enable_werror" -+ -+else -+ if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then -+ enable_werror=yes -+else -+ enable_werror=no -+fi -+fi; -+case ${enable_werror} in -+ yes) stage2_werror_flag="--enable-werror-always" ;; -+ *) stage2_werror_flag="" ;; -+esac -+ -+ -+# Flags needed to enable html installing and building -+ -+# Check whether --with-datarootdir or --without-datarootdir was given. -+if test "${with_datarootdir+set}" = set; then -+ withval="$with_datarootdir" -+ datarootdir="\${prefix}/${withval}" -+else -+ datarootdir="\${prefix}/share" -+fi; -+ -+ -+# Check whether --with-docdir or --without-docdir was given. -+if test "${with_docdir+set}" = set; then -+ withval="$with_docdir" -+ docdir="\${prefix}/${withval}" -+else -+ docdir="\${datarootdir}/doc" -+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" -+ htmldir="\${prefix}/${withval}" -+else -+ htmldir="\${docdir}" -+fi; -+ -+ -+ -+ -+ -+ -+ ac_config_files="$ac_config_files Makefile" -+cat >confcache <<\_ACEOF -+# This file is a shell script that caches the results of configure -+# tests run on this system so they can be shared between configure -+# scripts and configure runs, see configure's option --config-cache. -+# It is not useful on other systems. If it contains results you don't -+# want to keep, you may remove or edit it. -+# -+# config.status only pays attention to the cache file if you give it -+# the --recheck option to rerun configure. -+# -+# `ac_cv_env_foo' variables (set or unset) will be overridden when -+# loading this file, other *unset* `ac_cv_foo' will be assigned the -+# following values. -+ -+_ACEOF -+ -+# The following way of writing the cache mishandles newlines in values, -+# but we know of no workaround that is simple, portable, and efficient. -+# So, don't put newlines in cache variables' values. -+# Ultrix sh set writes to stderr and can't be redirected directly, -+# and sets the high bit in the cache file unless we assign to the vars. -+{ -+ (set) 2>&1 | -+ case `(ac_space=' '; set | grep ac_space) 2>&1` in -+ *ac_space=\ *) -+ # `set' does not quote correctly, so add quotes (double-quote -+ # substitution turns \\\\ into \\, and sed turns \\ into \). -+ sed -n \ -+ "s/'/'\\\\''/g; -+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" -+ ;; -+ *) -+ # `set' quotes correctly as required by POSIX, so do not add quotes. -+ sed -n \ -+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" -+ ;; -+ esac; -+} | -+ sed ' -+ t clear -+ : clear -+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ -+ t end -+ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ -+ : end' >>confcache -+if diff $cache_file confcache >/dev/null 2>&1; then :; else -+ if test -w $cache_file; then -+ test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" -+ cat confcache >$cache_file -+ else -+ echo "not updating unwritable cache $cache_file" -+ fi -+fi -+rm -f confcache -+ -+test "x$prefix" = xNONE && prefix=$ac_default_prefix -+# Let make expand exec_prefix. -+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -+ -+# VPATH may cause trouble with some makes, so we remove $(srcdir), -+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -+# trailing colons and then remove the whole line if VPATH becomes empty -+# (actually we leave an empty line to preserve line numbers). -+if test "x$srcdir" = x.; then -+ ac_vpsub='/^[ ]*VPATH[ ]*=/{ -+s/:*\$(srcdir):*/:/; -+s/:*\${srcdir}:*/:/; -+s/:*@srcdir@:*/:/; -+s/^\([^=]*=[ ]*\):*/\1/; -+s/:*$//; -+s/^[^=]*=[ ]*$//; -+}' -+fi -+ -+# Transform confdefs.h into DEFS. -+# Protect against shell expansion while executing Makefile rules. -+# Protect against Makefile macro expansion. -+# -+# If the first sed substitution is executed (which looks for macros that -+# take arguments), then we branch to the quote section. Otherwise, -+# look for a macro that doesn't take arguments. -+cat >confdef2opt.sed <<\_ACEOF -+t clear -+: clear -+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -+t quote -+s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -+t quote -+d -+: quote -+s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -+s,\[,\\&,g -+s,\],\\&,g -+s,\$,$$,g -+p -+_ACEOF -+# We use echo to avoid assuming a particular line-breaking character. -+# The extra dot is to prevent the shell from consuming trailing -+# line-breaks from the sub-command output. A line-break within -+# single-quotes doesn't work because, if this script is created in a -+# platform that uses two characters for line-breaks (e.g., DOS), tr -+# would break. -+ac_LF_and_DOT=`echo; echo .` -+DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -+rm -f confdef2opt.sed -+ -+ -+ac_libobjs= -+ac_ltlibobjs= -+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue -+ # 1. Remove the extension, and $U if already installed. -+ ac_i=`echo "$ac_i" | -+ sed 's/\$U\././;s/\.o$//;s/\.obj$//'` -+ # 2. Add them. -+ ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" -+ ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' -+done -+LIBOBJS=$ac_libobjs -+ -+LTLIBOBJS=$ac_ltlibobjs -+ -+ -+ -+: ${CONFIG_STATUS=./config.status} -+ac_clean_files_save=$ac_clean_files -+ac_clean_files="$ac_clean_files $CONFIG_STATUS" -+{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -+echo "$as_me: creating $CONFIG_STATUS" >&6;} -+cat >$CONFIG_STATUS <<_ACEOF -+#! $SHELL -+# Generated by $as_me. -+# Run this file to recreate the current configuration. -+# Compiler output produced by configure, useful for debugging -+# configure, is in config.log if it exists. -+ -+debug=false -+ac_cs_recheck=false -+ac_cs_silent=false -+SHELL=\${CONFIG_SHELL-$SHELL} -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+## --------------------- ## -+## M4sh Initialization. ## -+## --------------------- ## -+ -+# Be Bourne compatible -+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then -+ emulate sh -+ NULLCMD=: -+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which -+ # is contrary to our usage. Disable this feature. -+ alias -g '${1+"$@"}'='"$@"' -+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then -+ set -o posix -+fi -+DUALCASE=1; export DUALCASE # for MKS sh -+ -+# Support unset when possible. -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then -+ as_unset=unset -+else -+ as_unset=false -+fi -+ -+ -+# Work around bugs in pre-3.0 UWIN ksh. -+$as_unset ENV MAIL MAILPATH -+PS1='$ ' -+PS2='> ' -+PS4='+ ' -+ -+# NLS nuisances. -+for as_var in \ -+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ -+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ -+ LC_TELEPHONE LC_TIME -+do -+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then -+ eval $as_var=C; export $as_var -+ else -+ $as_unset $as_var -+ fi -+done -+ -+# Required to use basename. -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then -+ as_basename=basename -+else -+ as_basename=false -+fi -+ -+ -+# Name of the executable. -+as_me=`$as_basename "$0" || -+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ -+ X"$0" : 'X\(//\)$' \| \ -+ X"$0" : 'X\(/\)$' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X/"$0" | -+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } -+ /^X\/\(\/\/\)$/{ s//\1/; q; } -+ /^X\/\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ -+ -+# PATH needs CR, and LINENO needs CR and PATH. -+# Avoid depending upon Character Ranges. -+as_cr_letters='abcdefghijklmnopqrstuvwxyz' -+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -+as_cr_Letters=$as_cr_letters$as_cr_LETTERS -+as_cr_digits='0123456789' -+as_cr_alnum=$as_cr_Letters$as_cr_digits -+ -+# 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 -+ -+ -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" || { -+ # Find who we are. Look in the path if we contain no path at all -+ # relative or not. -+ case $0 in -+ *[\\/]* ) as_myself=$0 ;; -+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -+done -+ -+ ;; -+ esac -+ # We did not find ourselves, most probably we were run as `sh COMMAND' -+ # in which case we are not to be found in the path. -+ if test "x$as_myself" = x; then -+ as_myself=$0 -+ fi -+ if test ! -f "$as_myself"; then -+ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 -+echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} -+ { (exit 1); exit 1; }; } -+ fi -+ case $CONFIG_SHELL in -+ '') -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ for as_base in sh bash ksh sh5; do -+ case $as_dir in -+ /*) -+ if ("$as_dir/$as_base" -c ' -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then -+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } -+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } -+ CONFIG_SHELL=$as_dir/$as_base -+ export CONFIG_SHELL -+ exec "$CONFIG_SHELL" "$0" ${1+"$@"} -+ fi;; -+ esac -+ done -+done -+;; -+ esac -+ -+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO -+ # uniformly replaced by the line number. The first 'sed' inserts a -+ # line-number line before each line; the second 'sed' does the real -+ # work. The second script uses 'N' to pair each line-number line -+ # with the numbered line, and appends trailing '-' during -+ # substitution so that $LINENO is not a special case at line end. -+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the -+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) -+ sed '=' <$as_myself | -+ sed ' -+ N -+ s,$,-, -+ : loop -+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, -+ t loop -+ s,-$,, -+ s,^['$as_cr_digits']*\n,, -+ ' >$as_me.lineno && -+ chmod +x $as_me.lineno || -+ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 -+echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} -+ { (exit 1); exit 1; }; } -+ -+ # Don't try to exec as it changes $[0], causing all sort of problems -+ # (the dirname of $[0] is not the place where we might find the -+ # original and so on. Autoconf is especially sensible to this). -+ . ./$as_me.lineno -+ # Exit status is that of the last command. -+ exit -+} -+ -+ -+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in -+ *c*,-n*) ECHO_N= ECHO_C=' -+' ECHO_T=' ' ;; -+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; -+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -+esac -+ -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+rm -f conf$$ conf$$.exe conf$$.file -+echo >conf$$.file -+if ln -s conf$$.file conf$$ 2>/dev/null; then -+ # We could just check for DJGPP; but this test a) works b) is more generic -+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). -+ if test -f conf$$.exe; then -+ # Don't use ln at all; we don't have any links -+ as_ln_s='cp -p' -+ else -+ as_ln_s='ln -s' -+ fi -+elif ln conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s=ln -+else -+ as_ln_s='cp -p' -+fi -+rm -f conf$$ conf$$.exe conf$$.file -+ -+if mkdir -p . 2>/dev/null; then -+ as_mkdir_p=: -+else -+ test -d ./-p && rmdir ./-p -+ as_mkdir_p=false -+fi -+ -+as_executable_p="test -f" -+ -+# Sed expression to map a string onto a valid CPP name. -+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -+ -+# Sed expression to map a string onto a valid variable name. -+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -+ -+ -+# IFS -+# We need space, tab and new line, in precisely that order. -+as_nl=' -+' -+IFS=" $as_nl" -+ -+# CDPATH. -+$as_unset CDPATH -+ -+exec 6>&1 -+ -+# Open the log real soon, to keep \$[0] and so on meaningful, and to -+# report actual input values of CONFIG_FILES etc. instead of their -+# values after options handling. Logging --version etc. is OK. -+exec 5>>config.log -+{ -+ echo -+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -+## Running $as_me. ## -+_ASBOX -+} >&5 -+cat >&5 <<_CSEOF -+ -+This file was extended by $as_me, which was -+generated by GNU Autoconf 2.59. Invocation command line was -+ -+ CONFIG_FILES = $CONFIG_FILES -+ CONFIG_HEADERS = $CONFIG_HEADERS -+ CONFIG_LINKS = $CONFIG_LINKS -+ CONFIG_COMMANDS = $CONFIG_COMMANDS -+ $ $0 $@ -+ -+_CSEOF -+echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 -+echo >&5 -+_ACEOF -+ -+# Files that config.status was made for. -+if test -n "$ac_config_files"; then -+ echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -+fi -+ -+if test -n "$ac_config_headers"; then -+ echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -+fi -+ -+if test -n "$ac_config_links"; then -+ echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -+fi -+ -+if test -n "$ac_config_commands"; then -+ echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -+fi -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -+ac_cs_usage="\ -+\`$as_me' instantiates files from templates according to the -+current configuration. -+ -+Usage: $0 [OPTIONS] [FILE]... -+ -+ -h, --help print this help, then exit -+ -V, --version print version number, then exit -+ -q, --quiet do not print progress messages -+ -d, --debug don't remove temporary files -+ --recheck update $as_me by reconfiguring in the same conditions -+ --file=FILE[:TEMPLATE] -+ instantiate the configuration file FILE -+ -+Configuration files: -+$config_files -+ -+Report bugs to ." -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<_ACEOF -+ac_cs_version="\\ -+config.status -+configured by $0, generated by GNU Autoconf 2.59, -+ with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" -+ -+Copyright (C) 2003 Free Software Foundation, Inc. -+This config.status script is free software; the Free Software Foundation -+gives unlimited permission to copy, distribute and modify it." -+srcdir=$srcdir -+INSTALL="$INSTALL" -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+# If no file are specified by the user, then we need to provide default -+# value. By we need to know if files were specified by the user. -+ac_need_defaults=: -+while test $# != 0 -+do -+ case $1 in -+ --*=*) -+ ac_option=`expr "x$1" : 'x\([^=]*\)='` -+ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` -+ ac_shift=: -+ ;; -+ -*) -+ ac_option=$1 -+ ac_optarg=$2 -+ ac_shift=shift -+ ;; -+ *) # This is not an option, so the user has probably given explicit -+ # arguments. -+ ac_option=$1 -+ ac_need_defaults=false;; -+ esac -+ -+ case $ac_option in -+ # Handling of the options. -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) -+ ac_cs_recheck=: ;; -+ --version | --vers* | -V ) -+ echo "$ac_cs_version"; exit 0 ;; -+ --he | --h) -+ # Conflict between --help and --header -+ { { echo "$as_me:$LINENO: error: ambiguous option: $1 -+Try \`$0 --help' for more information." >&5 -+echo "$as_me: error: ambiguous option: $1 -+Try \`$0 --help' for more information." >&2;} -+ { (exit 1); exit 1; }; };; -+ --help | --hel | -h ) -+ echo "$ac_cs_usage"; exit 0 ;; -+ --debug | --d* | -d ) -+ debug=: ;; -+ --file | --fil | --fi | --f ) -+ $ac_shift -+ CONFIG_FILES="$CONFIG_FILES $ac_optarg" -+ ac_need_defaults=false;; -+ --header | --heade | --head | --hea ) -+ $ac_shift -+ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" -+ ac_need_defaults=false;; -+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ -+ | -silent | --silent | --silen | --sile | --sil | --si | --s) -+ ac_cs_silent=: ;; -+ -+ # This is an error. -+ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 -+Try \`$0 --help' for more information." >&5 -+echo "$as_me: error: unrecognized option: $1 -+Try \`$0 --help' for more information." >&2;} -+ { (exit 1); exit 1; }; } ;; -+ -+ *) ac_config_targets="$ac_config_targets $1" ;; -+ -+ esac -+ shift -+done -+ -+ac_configure_extra_args= -+ -+if $ac_cs_silent; then -+ exec 6>/dev/null -+ ac_configure_extra_args="$ac_configure_extra_args --silent" -+fi -+ -+_ACEOF -+cat >>$CONFIG_STATUS <<_ACEOF -+if \$ac_cs_recheck; then -+ echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 -+ exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -+fi -+ -+_ACEOF -+ -+ -+ -+ -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+for ac_config_target in $ac_config_targets -+do -+ case "$ac_config_target" in -+ # Handling of arguments. -+ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; -+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -+echo "$as_me: error: invalid argument: $ac_config_target" >&2;} -+ { (exit 1); exit 1; }; };; -+ esac -+done -+ -+# If the user did not use the arguments to specify the items to instantiate, -+# then the envvar interface is used. Set only those that are not. -+# We use the long form for the default assignment because of an extremely -+# bizarre bug on SunOS 4.1.3. -+if $ac_need_defaults; then -+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files -+fi -+ -+# Have a temporary directory for convenience. Make it in the build tree -+# simply because there is no reason to put it here, and in addition, -+# creating and moving files from /tmp can sometimes cause problems. -+# Create a temporary directory, and hook for its removal unless debugging. -+$debug || -+{ -+ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 -+ trap '{ (exit 1); exit 1; }' 1 2 13 15 -+} -+ -+# Create a (secure) tmp directory for tmp files. -+ -+{ -+ tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && -+ test -n "$tmp" && test -d "$tmp" -+} || -+{ -+ tmp=./confstat$$-$RANDOM -+ (umask 077 && mkdir $tmp) -+} || -+{ -+ echo "$me: cannot create a temporary directory in ." >&2 -+ { (exit 1); exit 1; } -+} -+ -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<_ACEOF -+ -+# -+# CONFIG_FILES section. -+# -+ -+# No need to generate the scripts if there are no CONFIG_FILES. -+# This happens for instance when ./config.status config.h -+if test -n "\$CONFIG_FILES"; then -+ # Protect against being on the right side of a sed subst in config.status. -+ sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; -+ s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF -+s,@SHELL@,$SHELL,;t t -+s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -+s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -+s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -+s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -+s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -+s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -+s,@exec_prefix@,$exec_prefix,;t t -+s,@prefix@,$prefix,;t t -+s,@program_transform_name@,$program_transform_name,;t t -+s,@bindir@,$bindir,;t t -+s,@sbindir@,$sbindir,;t t -+s,@libexecdir@,$libexecdir,;t t -+s,@datadir@,$datadir,;t t -+s,@sysconfdir@,$sysconfdir,;t t -+s,@sharedstatedir@,$sharedstatedir,;t t -+s,@localstatedir@,$localstatedir,;t t -+s,@libdir@,$libdir,;t t -+s,@includedir@,$includedir,;t t -+s,@oldincludedir@,$oldincludedir,;t t -+s,@infodir@,$infodir,;t t -+s,@mandir@,$mandir,;t t -+s,@build_alias@,$build_alias,;t t -+s,@host_alias@,$host_alias,;t t -+s,@target_alias@,$target_alias,;t t -+s,@DEFS@,$DEFS,;t t -+s,@ECHO_C@,$ECHO_C,;t t -+s,@ECHO_N@,$ECHO_N,;t t -+s,@ECHO_T@,$ECHO_T,;t t -+s,@LIBS@,$LIBS,;t t -+s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t -+s,@build@,$build,;t t -+s,@build_cpu@,$build_cpu,;t t -+s,@build_vendor@,$build_vendor,;t t -+s,@build_os@,$build_os,;t t -+s,@build_noncanonical@,$build_noncanonical,;t t -+s,@host_noncanonical@,$host_noncanonical,;t t -+s,@target_noncanonical@,$target_noncanonical,;t t -+s,@host@,$host,;t t -+s,@host_cpu@,$host_cpu,;t t -+s,@host_vendor@,$host_vendor,;t t -+s,@host_os@,$host_os,;t t -+s,@target@,$target,;t t -+s,@target_cpu@,$target_cpu,;t t -+s,@target_vendor@,$target_vendor,;t t -+s,@target_os@,$target_os,;t t -+s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t -+s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t -+s,@INSTALL_DATA@,$INSTALL_DATA,;t t -+s,@LN@,$LN,;t t -+s,@LN_S@,$LN_S,;t t -+s,@build_libsubdir@,$build_libsubdir,;t t -+s,@build_subdir@,$build_subdir,;t t -+s,@host_subdir@,$host_subdir,;t t -+s,@target_subdir@,$target_subdir,;t t -+s,@CC@,$CC,;t t -+s,@CFLAGS@,$CFLAGS,;t t -+s,@LDFLAGS@,$LDFLAGS,;t t -+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 -+s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t -+s,@do_compare@,$do_compare,;t t -+s,@gmplibs@,$gmplibs,;t t -+s,@gmpinc@,$gmpinc,;t t -+s,@ppllibs@,$ppllibs,;t t -+s,@pplinc@,$pplinc,;t t -+s,@clooglibs@,$clooglibs,;t t -+s,@clooginc@,$clooginc,;t t -+s,@stage1_languages@,$stage1_languages,;t t -+s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t -+s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t -+s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t -+s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t -+s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t -+s,@GCC_SHLIB_SUBDIR@,$GCC_SHLIB_SUBDIR,;t t -+s,@tooldir@,$tooldir,;t t -+s,@build_tooldir@,$build_tooldir,;t t -+s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t -+s,@GDB_TK@,$GDB_TK,;t t -+s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t -+s,@build_configargs@,$build_configargs,;t t -+s,@build_configdirs@,$build_configdirs,;t t -+s,@host_configargs@,$host_configargs,;t t -+s,@configdirs@,$configdirs,;t t -+s,@target_configargs@,$target_configargs,;t t -+s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t -+s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t -+s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t -+s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t -+s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t -+s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t -+s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t -+s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t -+s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t -+s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t -+s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t -+s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t -+s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t -+s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t -+s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t -+s,@config_shell@,$config_shell,;t t -+s,@YACC@,$YACC,;t t -+s,@BISON@,$BISON,;t t -+s,@M4@,$M4,;t t -+s,@LEX@,$LEX,;t t -+s,@FLEX@,$FLEX,;t t -+s,@MAKEINFO@,$MAKEINFO,;t t -+s,@EXPECT@,$EXPECT,;t t -+s,@RUNTEST@,$RUNTEST,;t t -+s,@AR@,$AR,;t t -+s,@AS@,$AS,;t t -+s,@DLLTOOL@,$DLLTOOL,;t t -+s,@LD@,$LD,;t t -+s,@LIPO@,$LIPO,;t t -+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,@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 -+s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t -+s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t -+s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t -+s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t -+s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t -+s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t -+s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t -+s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t -+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 -+s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t -+s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t -+s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t -+s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t -+s,@MAINT@,$MAINT,;t t -+s,@stage1_cflags@,$stage1_cflags,;t t -+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 -+/@serialization_dependencies@/r $serialization_dependencies -+s,@serialization_dependencies@,,;t t -+/@host_makefile_frag@/r $host_makefile_frag -+s,@host_makefile_frag@,,;t t -+/@target_makefile_frag@/r $target_makefile_frag -+s,@target_makefile_frag@,,;t t -+/@alphaieee_frag@/r $alphaieee_frag -+s,@alphaieee_frag@,,;t t -+/@ospace_frag@/r $ospace_frag -+s,@ospace_frag@,,;t t -+CEOF -+ -+_ACEOF -+ -+ cat >>$CONFIG_STATUS <<\_ACEOF -+ # Split the substitutions into bite-sized pieces for seds with -+ # small command number limits, like on Digital OSF/1 and HP-UX. -+ ac_max_sed_lines=48 -+ ac_sed_frag=1 # Number of current file. -+ ac_beg=1 # First line for current file. -+ ac_end=$ac_max_sed_lines # Line after last line for current file. -+ ac_more_lines=: -+ ac_sed_cmds= -+ while $ac_more_lines; do -+ if test $ac_beg -gt 1; then -+ sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag -+ else -+ sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag -+ fi -+ if test ! -s $tmp/subs.frag; then -+ ac_more_lines=false -+ else -+ # The purpose of the label and of the branching condition is to -+ # speed up the sed processing (if there are no `@' at all, there -+ # is no need to browse any of the substitutions). -+ # These are the two extra sed commands mentioned above. -+ (echo ':t -+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed -+ if test -z "$ac_sed_cmds"; then -+ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" -+ else -+ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" -+ fi -+ ac_sed_frag=`expr $ac_sed_frag + 1` -+ ac_beg=$ac_end -+ ac_end=`expr $ac_end + $ac_max_sed_lines` -+ fi -+ done -+ if test -z "$ac_sed_cmds"; then -+ ac_sed_cmds=cat -+ fi -+fi # test -n "$CONFIG_FILES" -+ -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue -+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". -+ case $ac_file in -+ - | *:- | *:-:* ) # input from stdin -+ cat >$tmp/stdin -+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` -+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; -+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` -+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; -+ * ) ac_file_in=$ac_file.in ;; -+ esac -+ -+ # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. -+ ac_dir=`(dirname "$ac_file") 2>/dev/null || -+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$ac_file" : 'X\(//\)[^/]' \| \ -+ X"$ac_file" : 'X\(//\)$' \| \ -+ X"$ac_file" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$ac_file" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ { if $as_mkdir_p; then -+ mkdir -p "$ac_dir" -+ else -+ as_dir="$ac_dir" -+ as_dirs= -+ while test ! -d "$as_dir"; do -+ as_dirs="$as_dir $as_dirs" -+ as_dir=`(dirname "$as_dir") 2>/dev/null || -+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$as_dir" : 'X\(//\)[^/]' \| \ -+ X"$as_dir" : 'X\(//\)$' \| \ -+ X"$as_dir" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$as_dir" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ done -+ test ! -n "$as_dirs" || mkdir $as_dirs -+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} -+ { (exit 1); exit 1; }; }; } -+ -+ ac_builddir=. -+ -+if test "$ac_dir" != .; then -+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` -+ # A "../" for each directory in $ac_dir_suffix. -+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -+else -+ ac_dir_suffix= ac_top_builddir= -+fi -+ -+case $srcdir in -+ .) # No --srcdir option. We are building in place. -+ ac_srcdir=. -+ if test -z "$ac_top_builddir"; then -+ ac_top_srcdir=. -+ else -+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` -+ fi ;; -+ [\\/]* | ?:[\\/]* ) # Absolute path. -+ ac_srcdir=$srcdir$ac_dir_suffix; -+ ac_top_srcdir=$srcdir ;; -+ *) # Relative path. -+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix -+ ac_top_srcdir=$ac_top_builddir$srcdir ;; -+esac -+ -+# Do not use `cd foo && pwd` to compute absolute paths, because -+# the directories may not exist. -+case `pwd` in -+.) ac_abs_builddir="$ac_dir";; -+*) -+ case "$ac_dir" in -+ .) ac_abs_builddir=`pwd`;; -+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; -+ *) ac_abs_builddir=`pwd`/"$ac_dir";; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_builddir=${ac_top_builddir}.;; -+*) -+ case ${ac_top_builddir}. in -+ .) ac_abs_top_builddir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; -+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_srcdir=$ac_srcdir;; -+*) -+ case $ac_srcdir in -+ .) ac_abs_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; -+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_srcdir=$ac_top_srcdir;; -+*) -+ case $ac_top_srcdir in -+ .) ac_abs_top_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; -+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; -+ esac;; -+esac -+ -+ -+ case $INSTALL in -+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; -+ *) ac_INSTALL=$ac_top_builddir$INSTALL ;; -+ esac -+ -+ if test x"$ac_file" != x-; then -+ { echo "$as_me:$LINENO: creating $ac_file" >&5 -+echo "$as_me: creating $ac_file" >&6;} -+ rm -f "$ac_file" -+ fi -+ # Let's still pretend it is `configure' which instantiates (i.e., don't -+ # use $as_me), people would be surprised to read: -+ # /* config.h. Generated by config.status. */ -+ if test x"$ac_file" = x-; then -+ configure_input= -+ else -+ configure_input="$ac_file. " -+ fi -+ configure_input=$configure_input"Generated from `echo $ac_file_in | -+ sed 's,.*/,,'` by configure." -+ -+ # First look for the input files in the build tree, otherwise in the -+ # src tree. -+ ac_file_inputs=`IFS=: -+ for f in $ac_file_in; do -+ case $f in -+ -) echo $tmp/stdin ;; -+ [\\/$]*) -+ # Absolute (can't be DOS-style, as IFS=:) -+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -+echo "$as_me: error: cannot find input file: $f" >&2;} -+ { (exit 1); exit 1; }; } -+ echo "$f";; -+ *) # Relative -+ if test -f "$f"; then -+ # Build tree -+ echo "$f" -+ elif test -f "$srcdir/$f"; then -+ # Source tree -+ echo "$srcdir/$f" -+ else -+ # /dev/null tree -+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -+echo "$as_me: error: cannot find input file: $f" >&2;} -+ { (exit 1); exit 1; }; } -+ fi;; -+ esac -+ done` || { (exit 1); exit 1; } -+_ACEOF -+cat >>$CONFIG_STATUS <<_ACEOF -+ sed "$ac_vpsub -+$extrasub -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+:t -+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -+s,@configure_input@,$configure_input,;t t -+s,@srcdir@,$ac_srcdir,;t t -+s,@abs_srcdir@,$ac_abs_srcdir,;t t -+s,@top_srcdir@,$ac_top_srcdir,;t t -+s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t -+s,@builddir@,$ac_builddir,;t t -+s,@abs_builddir@,$ac_abs_builddir,;t t -+s,@top_builddir@,$ac_top_builddir,;t t -+s,@abs_top_builddir@,$ac_abs_top_builddir,;t t -+s,@INSTALL@,$ac_INSTALL,;t t -+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out -+ rm -f $tmp/stdin -+ if test x"$ac_file" != x-; then -+ mv $tmp/out $ac_file -+ else -+ cat $tmp/out -+ rm -f $tmp/out -+ fi -+ -+done -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -+{ (exit 0); exit 0; } -+_ACEOF -+chmod +x $CONFIG_STATUS -+ac_clean_files=$ac_clean_files_save -+ -+ -+# configure is writing to config.log, and then calls config.status. -+# config.status does its own redirection, appending to config.log. -+# Unfortunately, on DOS this fails, as config.log is still kept open -+# by configure, so config.status won't be able to write to it; its -+# output is simply discarded. So we exec the FD to /dev/null, -+# effectively closing config.log, so it can be properly (re)opened and -+# appended to by config.status. When coming back to configure, we -+# need to make the FD available again. -+if test "$no_create" != yes; then -+ ac_cs_success=: -+ ac_config_status_args= -+ test "$silent" = yes && -+ ac_config_status_args="$ac_config_status_args --quiet" -+ exec 5>/dev/null -+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false -+ exec 5>>config.log -+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which -+ # would make configure fail if this is the last instruction. -+ $ac_cs_success || { (exit 1); exit 1; } -+fi -+ -diff -Nbaur newlib-1.17.0/newlib/Makefile.am newlib-1.17.0-psp/newlib/Makefile.am ---- newlib-1.17.0/newlib/Makefile.am 2008-01-21 18:29:17.000000000 +0000 -+++ newlib-1.17.0-psp/newlib/Makefile.am 2009-02-11 09:56:27.000000000 +0000 -@@ -267,6 +267,18 @@ - $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ - else true; fi ; \ - done; \ -+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/netinet; \ -+ for i in $(srcdir)/libc/sys/$(sys_dir)/netinet/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/netinet/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ -+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/arpa; \ -+ for i in $(srcdir)/libc/sys/$(sys_dir)/arpa/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/arpa/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ - $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \ - for i in $(srcdir)/libc/include/sys/*.h; do \ - $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \ -diff -Nbaur newlib-1.17.0/newlib/Makefile.in newlib-1.17.0-psp/newlib/Makefile.in ---- newlib-1.17.0/newlib/Makefile.in 2008-09-29 16:40:26.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/Makefile.in 2009-02-11 09:56:27.000000000 +0000 -@@ -939,6 +939,18 @@ - $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ - else true; fi ; \ - done; \ -+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/netinet; \ -+ for i in $(srcdir)/libc/sys/$(sys_dir)/netinet/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/netinet/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ -+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/arpa; \ -+ for i in $(srcdir)/libc/sys/$(sys_dir)/arpa/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/arpa/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ - $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \ - for i in $(srcdir)/libc/include/sys/*.h; do \ - $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \ -diff -Nbaur newlib-1.17.0/newlib/Makefile.in.orig newlib-1.17.0-psp/newlib/Makefile.in.orig ---- newlib-1.17.0/newlib/Makefile.in.orig 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/Makefile.in.orig 2008-09-29 16:40:26.000000000 +0100 -@@ -0,0 +1,1076 @@ -+# Makefile.in generated by automake 1.9.6 from Makefile.am. -+# @configure_input@ -+ -+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -+# 2003, 2004, 2005 Free Software Foundation, Inc. -+# This Makefile.in is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# This program is distributed in the hope that it will be useful, -+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -+# PARTICULAR PURPOSE. -+ -+@SET_MAKE@ -+ -+ -+ -+srcdir = @srcdir@ -+top_srcdir = @top_srcdir@ -+VPATH = @srcdir@ -+pkgdatadir = $(datadir)/@PACKAGE@ -+pkglibdir = $(libdir)/@PACKAGE@ -+pkgincludedir = $(includedir)/@PACKAGE@ -+top_builddir = . -+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -+INSTALL = @INSTALL@ -+install_sh_DATA = $(install_sh) -c -m 644 -+install_sh_PROGRAM = $(install_sh) -c -+install_sh_SCRIPT = $(install_sh) -c -+INSTALL_HEADER = $(INSTALL_DATA) -+transform = $(program_transform_name) -+NORMAL_INSTALL = : -+PRE_INSTALL = : -+POST_INSTALL = : -+NORMAL_UNINSTALL = : -+PRE_UNINSTALL = : -+POST_UNINSTALL = : -+build_triplet = @build@ -+host_triplet = @host@ -+DIST_COMMON = $(srcdir)/../config.guess $(srcdir)/../config.sub NEWS \ -+ README ChangeLog $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ -+ $(top_srcdir)/configure $(am__configure_deps) acconfig.h \ -+ $(srcdir)/newlib.hin $(srcdir)/../mkinstalldirs \ -+ $(srcdir)/../ltmain.sh $(srcdir)/../config.guess \ -+ $(srcdir)/../config.sub -+subdir = . -+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -+am__aclocal_m4_deps = $(top_srcdir)/../libtool.m4 \ -+ $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \ -+ $(top_srcdir)/../ltversion.m4 $(top_srcdir)/../lt~obsolete.m4 \ -+ $(top_srcdir)/confsubdir.m4 $(top_srcdir)/acinclude.m4 \ -+ $(top_srcdir)/configure.in -+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -+ $(ACLOCAL_M4) -+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ -+ configure.lineno configure.status.lineno -+mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs -+CONFIG_HEADER = newlib.h -+CONFIG_CLEAN_FILES = -+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -+am__vpath_adj = case $$p in \ -+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ -+ *) f=$$p;; \ -+ esac; -+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -+am__installdirs = "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)" \ -+ "$(DESTDIR)$(toollibdir)" -+toollibLIBRARIES_INSTALL = $(INSTALL_DATA) -+LIBRARIES = $(toollib_LIBRARIES) -+ARFLAGS = cru -+libc_a_AR = $(AR) $(ARFLAGS) -+libc_a_LIBADD = -+libc_a_SOURCES = libc.c -+libc_a_OBJECTS = libc.$(OBJEXT) -+libm_a_AR = $(AR) $(ARFLAGS) -+libm_a_LIBADD = -+libm_a_SOURCES = libm.c -+libm_a_OBJECTS = libm.$(OBJEXT) -+toollibLTLIBRARIES_INSTALL = $(INSTALL) -+LTLIBRARIES = $(toollib_LTLIBRARIES) -+libc_la_LIBADD = -+am_libc_la_OBJECTS = -+libc_la_OBJECTS = $(am_libc_la_OBJECTS) -+@USE_LIBTOOL_TRUE@am_libc_la_rpath = -rpath $(toollibdir) -+libm_la_LIBADD = -+am_libm_la_OBJECTS = -+libm_la_OBJECTS = $(am_libm_la_OBJECTS) -+@USE_LIBTOOL_TRUE@am_libm_la_rpath = -rpath $(toollibdir) -+DEFAULT_INCLUDES = -I. -I$(srcdir) -I. -+depcomp = -+am__depfiles_maybe = -+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ -+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -+LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ -+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ -+ $(AM_CFLAGS) $(CFLAGS) -+CCLD = $(CC) -+LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ -+ $(AM_LDFLAGS) $(LDFLAGS) -o $@ -+SOURCES = libc.c libm.c $(libc_la_SOURCES) $(libm_la_SOURCES) -+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ -+ html-recursive info-recursive install-data-recursive \ -+ install-exec-recursive install-info-recursive \ -+ install-recursive installcheck-recursive installdirs-recursive \ -+ pdf-recursive ps-recursive uninstall-info-recursive \ -+ uninstall-recursive -+toollibDATA_INSTALL = $(INSTALL_DATA) -+DATA = $(noinst_DATA) $(toollib_DATA) -+ETAGS = etags -+CTAGS = ctags -+DEJATOOL = $(PACKAGE) -+RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir -+EXPECT = `if test -f $(top_builddir)/../expect/expect; then \ -+ echo $(top_builddir)/../expect/expect; \ -+ else \ -+ echo expect; \ -+ fi` -+RUNTEST = `if test -f $(top_srcdir)/../dejagnu/runtest; then \ -+ echo $(top_srcdir)/../dejagnu/runtest; \ -+ else \ -+ echo runtest; \ -+ fi` -+DIST_SUBDIRS = libc libm doc . @EXTRA_DIRS@ -+ACLOCAL = @ACLOCAL@ -+AMDEP_FALSE = @AMDEP_FALSE@ -+AMDEP_TRUE = @AMDEP_TRUE@ -+AMTAR = @AMTAR@ -+AR = @AR@ -+AS = @AS@ -+AUTOCONF = @AUTOCONF@ -+AUTOHEADER = @AUTOHEADER@ -+AUTOMAKE = @AUTOMAKE@ -+AWK = @AWK@ -+CC = @CC@ -+CCAS = @CCAS@ -+CCASFLAGS = @CCASFLAGS@ -+CCDEPMODE = @CCDEPMODE@ -+CC_FOR_BUILD = @CC_FOR_BUILD@ -+CC_FOR_NEWLIB = @CC_FOR_NEWLIB@ -+CFLAGS = @CFLAGS@ -+CPP = @CPP@ -+CPPFLAGS = @CPPFLAGS@ -+CRT0 = @CRT0@ -+CRT0_DIR = @CRT0_DIR@ -+CRT1 = @CRT1@ -+CRT1_DIR = @CRT1_DIR@ -+CYGPATH_W = @CYGPATH_W@ -+DEFS = @DEFS@ -+DEPDIR = @DEPDIR@ -+DLLTOOL = @DLLTOOL@ -+DSYMUTIL = @DSYMUTIL@ -+DUMPBIN = @DUMPBIN@ -+ECHO_C = @ECHO_C@ -+ECHO_N = @ECHO_N@ -+ECHO_T = @ECHO_T@ -+EGREP = @EGREP@ -+ELIX_LEVEL_0_FALSE = @ELIX_LEVEL_0_FALSE@ -+ELIX_LEVEL_0_TRUE = @ELIX_LEVEL_0_TRUE@ -+ELIX_LEVEL_1_FALSE = @ELIX_LEVEL_1_FALSE@ -+ELIX_LEVEL_1_TRUE = @ELIX_LEVEL_1_TRUE@ -+ELIX_LEVEL_2_FALSE = @ELIX_LEVEL_2_FALSE@ -+ELIX_LEVEL_2_TRUE = @ELIX_LEVEL_2_TRUE@ -+ELIX_LEVEL_3_FALSE = @ELIX_LEVEL_3_FALSE@ -+ELIX_LEVEL_3_TRUE = @ELIX_LEVEL_3_TRUE@ -+ELIX_LEVEL_4_FALSE = @ELIX_LEVEL_4_FALSE@ -+ELIX_LEVEL_4_TRUE = @ELIX_LEVEL_4_TRUE@ -+EXEEXT = @EXEEXT@ -+EXTRA_DIRS = @EXTRA_DIRS@ -+FGREP = @FGREP@ -+GREP = @GREP@ -+HAVE_DOC_FALSE = @HAVE_DOC_FALSE@ -+HAVE_DOC_TRUE = @HAVE_DOC_TRUE@ -+INSTALL_DATA = @INSTALL_DATA@ -+INSTALL_PROGRAM = @INSTALL_PROGRAM@ -+INSTALL_SCRIPT = @INSTALL_SCRIPT@ -+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -+LD = @LD@ -+LDFLAGS = @LDFLAGS@ -+LIBM_MACHINE_OBJECTLIST = @LIBM_MACHINE_OBJECTLIST@ -+LIBOBJS = @LIBOBJS@ -+LIBS = @LIBS@ -+LIBTOOL = @LIBTOOL@ -+LIPO = @LIPO@ -+LN_S = @LN_S@ -+LTLIBOBJS = @LTLIBOBJS@ -+MACHINE_OBJECTLIST = @MACHINE_OBJECTLIST@ -+MAINT = @MAINT@ -+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ -+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ -+MAKEINFO = @MAKEINFO@ -+MAY_SUPPLY_SYSCALLS_FALSE = @MAY_SUPPLY_SYSCALLS_FALSE@ -+MAY_SUPPLY_SYSCALLS_TRUE = @MAY_SUPPLY_SYSCALLS_TRUE@ -+NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ -+NEWLIB_HW_FP_FALSE = @NEWLIB_HW_FP_FALSE@ -+NEWLIB_HW_FP_TRUE = @NEWLIB_HW_FP_TRUE@ -+NM = @NM@ -+NMEDIT = @NMEDIT@ -+OBJDUMP = @OBJDUMP@ -+OBJEXT = @OBJEXT@ -+OTOOL = @OTOOL@ -+OTOOL64 = @OTOOL64@ -+PACKAGE = @PACKAGE@ -+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -+PACKAGE_NAME = @PACKAGE_NAME@ -+PACKAGE_STRING = @PACKAGE_STRING@ -+PACKAGE_TARNAME = @PACKAGE_TARNAME@ -+PACKAGE_VERSION = @PACKAGE_VERSION@ -+PATH_SEPARATOR = @PATH_SEPARATOR@ -+POSIX_OBJECTLIST = @POSIX_OBJECTLIST@ -+RANLIB = @RANLIB@ -+READELF = @READELF@ -+SED = @SED@ -+SET_MAKE = @SET_MAKE@ -+SHELL = @SHELL@ -+SIGNAL_OBJECTLIST = @SIGNAL_OBJECTLIST@ -+STDIO64_OBJECTLIST = @STDIO64_OBJECTLIST@ -+STRIP = @STRIP@ -+SYSCALL_OBJECTLIST = @SYSCALL_OBJECTLIST@ -+SYS_MACH_OBJECTLIST = @SYS_MACH_OBJECTLIST@ -+SYS_OBJECTLIST = @SYS_OBJECTLIST@ -+UNIX_OBJECTLIST = @UNIX_OBJECTLIST@ -+USE_LIBTOOL_FALSE = @USE_LIBTOOL_FALSE@ -+USE_LIBTOOL_TRUE = @USE_LIBTOOL_TRUE@ -+VERSION = @VERSION@ -+ac_ct_AR = @ac_ct_AR@ -+ac_ct_AS = @ac_ct_AS@ -+ac_ct_CC = @ac_ct_CC@ -+ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ -+ac_ct_DSYMUTIL = @ac_ct_DSYMUTIL@ -+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -+ac_ct_LIPO = @ac_ct_LIPO@ -+ac_ct_NMEDIT = @ac_ct_NMEDIT@ -+ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ -+ac_ct_OTOOL = @ac_ct_OTOOL@ -+ac_ct_OTOOL64 = @ac_ct_OTOOL64@ -+ac_ct_RANLIB = @ac_ct_RANLIB@ -+ac_ct_READELF = @ac_ct_READELF@ -+ac_ct_STRIP = @ac_ct_STRIP@ -+aext = @aext@ -+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -+am__include = @am__include@ -+am__leading_dot = @am__leading_dot@ -+am__quote = @am__quote@ -+am__tar = @am__tar@ -+am__untar = @am__untar@ -+bindir = @bindir@ -+build = @build@ -+build_alias = @build_alias@ -+build_cpu = @build_cpu@ -+build_os = @build_os@ -+build_vendor = @build_vendor@ -+datadir = @datadir@ -+exec_prefix = @exec_prefix@ -+host = @host@ -+host_alias = @host_alias@ -+host_cpu = @host_cpu@ -+host_os = @host_os@ -+host_vendor = @host_vendor@ -+includedir = @includedir@ -+infodir = @infodir@ -+install_sh = @install_sh@ -+libc_cv_array_aliasing = @libc_cv_array_aliasing@ -+libc_cv_initfinit_array = @libc_cv_initfinit_array@ -+libdir = @libdir@ -+libexecdir = @libexecdir@ -+libm_machine_dir = @libm_machine_dir@ -+localstatedir = @localstatedir@ -+lpfx = @lpfx@ -+lt_ECHO = @lt_ECHO@ -+machine_dir = @machine_dir@ -+mandir = @mandir@ -+mkdir_p = @mkdir_p@ -+newlib_basedir = @newlib_basedir@ -+oext = @oext@ -+oldincludedir = @oldincludedir@ -+prefix = @prefix@ -+program_transform_name = @program_transform_name@ -+sbindir = @sbindir@ -+sharedstatedir = @sharedstatedir@ -+subdirs = @subdirs@ -+sys_dir = @sys_dir@ -+sysconfdir = @sysconfdir@ -+target_alias = @target_alias@ -+AUTOMAKE_OPTIONS = cygnus dejagnu -+ACLOCAL_AMFLAGS = -I . -I .. -+ -+# Multilib support variables. -+MULTISRCTOP = -+MULTIBUILDTOP = -+MULTIDIRS = -+MULTISUBDIR = -+MULTIDO = true -+MULTICLEAN = true -+LIBTOOL_VERSION_INFO = 0:0:0 -+@NEWLIB_HW_FP_FALSE@MATHDIR = math -+@NEWLIB_HW_FP_TRUE@MATHDIR = mathfp -+ -+# Work around what appears to be a GNU make bug handling MAKEFLAGS -+# values defined in terms of make variables, as is the case for CC and -+# friends when we are called from the top level Makefile. -+AM_MAKEFLAGS = \ -+ "AR_FLAGS=$(AR_FLAGS)" \ -+ "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ -+ "CFLAGS=$(CFLAGS)" \ -+ "CCASFLAGS=$(CCASFLAGS)" \ -+ "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ -+ "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ -+ "INSTALL=$(INSTALL)" \ -+ "LDFLAGS=$(LDFLAGS)" \ -+ "LIBCFLAGS=$(LIBCFLAGS)" \ -+ "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ -+ "MAKE=$(MAKE)" \ -+ "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ -+ "PICFLAG=$(PICFLAG)" \ -+ "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \ -+ "SHELL=$(SHELL)" \ -+ "EXPECT=$(EXPECT)" \ -+ "RUNTEST=$(RUNTEST)" \ -+ "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ -+ "exec_prefix=$(exec_prefix)" \ -+ "infodir=$(infodir)" \ -+ "libdir=$(libdir)" \ -+ "prefix=$(prefix)" \ -+ "tooldir=$(tooldir)" \ -+ "top_toollibdir=$(toollibdir)" \ -+ "AR=$(AR)" \ -+ "AS=$(AS)" \ -+ "CC=$(CC_FOR_NEWLIB)" \ -+ "LD=$(LD)" \ -+ "LIBCFLAGS=$(LIBCFLAGS)" \ -+ "NM=$(NM)" \ -+ "PICFLAG=$(PICFLAG)" \ -+ "RANLIB=$(RANLIB)" \ -+ "DESTDIR=$(DESTDIR)" -+ -+FLAGS_TO_PASS = $(AM_MAKEFLAGS) -+@HAVE_DOC_FALSE@DOCDIR = -+@HAVE_DOC_TRUE@DOCDIR = doc -+SUBDIRS = libc libm \ -+ $(DOCDIR) . $(EXTRA_DIRS) -+ -+tooldir = $(exec_prefix)/$(host_alias) -+toollibdir = $(tooldir)/lib$(MULTISUBDIR) -+AR_FLAGS = rc -+@USE_LIBTOOL_TRUE@toollib_LTLIBRARIES = libm.la \ -+@USE_LIBTOOL_TRUE@ libc.la -+ -+@USE_LIBTOOL_FALSE@toollib_LIBRARIES = libm.a \ -+@USE_LIBTOOL_FALSE@ libc.a -+ -+noinst_DATA = stmp-targ-include -+toollib_DATA = $(CRT0) $(CRT1) -+ -+# The functions ldexp, frexp and modf are traditionally supplied in -+# both libc.a and libm.a. We build them in libm.a and copy them over, -+# along with some required supporting routines. -+MATHOBJS_IN_LIBC = \ -+ $(lpfx)s_isinf.$(oext) $(lpfx)sf_isinf.$(oext) \ -+ $(lpfx)s_isnan.$(oext) $(lpfx)sf_isnan.$(oext) \ -+ $(lpfx)s_isinfd.$(oext) $(lpfx)sf_isinff.$(oext) \ -+ $(lpfx)s_isnand.$(oext) $(lpfx)sf_isnanf.$(oext) \ -+ $(lpfx)s_nan.$(oext) $(lpfx)sf_nan.$(oext) \ -+ $(lpfx)s_ldexp.$(oext) $(lpfx)sf_ldexp.$(oext) \ -+ $(lpfx)s_frexp.$(oext) $(lpfx)sf_frexp.$(oext) \ -+ $(lpfx)s_modf.$(oext) \ -+ $(lpfx)sf_modf.$(oext) $(lpfx)s_scalbn.$(oext) \ -+ $(lpfx)sf_scalbn.$(oext) \ -+ $(lpfx)s_finite.$(oext) $(lpfx)sf_finite.$(oext) \ -+ $(lpfx)s_copysign.$(oext) $(lpfx)sf_copysign.$(oext) \ -+ $(lpfx)s_infconst.$(oext) -+ -+LIBC_OBJECTLISTS = \ -+ $(POSIX_OBJECTLIST) \ -+ $(SIGNAL_OBJECTLIST) \ -+ $(SYSCALL_OBJECTLIST) \ -+ $(UNIX_OBJECTLIST) \ -+ $(STDIO64_OBJECTLIST) \ -+ libc/argz/objectlist.awk.in \ -+ libc/stdlib/objectlist.awk.in \ -+ libc/time/objectlist.awk.in \ -+ libc/ctype/objectlist.awk.in \ -+ libc/search/objectlist.awk.in \ -+ libc/string/objectlist.awk.in \ -+ libc/locale/objectlist.awk.in \ -+ libc/misc/objectlist.awk.in \ -+ libc/reent/objectlist.awk.in \ -+ libc/errno/objectlist.awk.in \ -+ libc/stdio/objectlist.awk.in \ -+ $(MACHINE_OBJECTLIST) \ -+ $(SYS_OBJECTLIST) \ -+ $(SYS_MACH_OBJECTLIST) -+ -+LIBM_OBJECTLISTS = \ -+ libm/$(MATHDIR)/objectlist.awk.in \ -+ libm/common/objectlist.awk.in \ -+ $(LIBM_MACHINE_OBJECTLIST) -+ -+libm_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) -release newlib -no-undefined -Xcompiler -nostdlib -Xlinker --version-script=$(srcdir)/libc/sys/linux/shared.ld -lgcc -objectlist libm-libtool-objectlist -+libc_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) -release newlib -no-undefined -Xcompiler -nostdlib -Xlinker --version-script=$(srcdir)/libc/sys/linux/shared.ld -lgcc -objectlist libc-libtool-objectlist -+@USE_LIBTOOL_TRUE@libm_la_SOURCES = -+@USE_LIBTOOL_TRUE@libm_la_DEPENDENCIES = libm-libtool-objectlist -+@USE_LIBTOOL_TRUE@libc_la_SOURCES = -+@USE_LIBTOOL_TRUE@libc_la_DEPENDENCIES = libc-libtool-objectlist -+CLEANFILES = targ-include stmp-targ-include -+CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -+MAKEOVERRIDES = -+ -+# dejagnu support -+RUNTESTFLAGS = -+all: newlib.h -+ $(MAKE) $(AM_MAKEFLAGS) all-recursive -+ -+.SUFFIXES: -+.SUFFIXES: .c .lo .o .obj -+am--refresh: -+ @: -+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) -+ @for dep in $?; do \ -+ case '$(am__configure_deps)' in \ -+ *$$dep*) \ -+ echo ' cd $(srcdir) && $(AUTOMAKE) --cygnus '; \ -+ cd $(srcdir) && $(AUTOMAKE) --cygnus \ -+ && exit 0; \ -+ exit 1;; \ -+ esac; \ -+ done; \ -+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile'; \ -+ cd $(top_srcdir) && \ -+ $(AUTOMAKE) --cygnus Makefile -+.PRECIOUS: Makefile -+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -+ @case '$?' in \ -+ *config.status*) \ -+ echo ' $(SHELL) ./config.status'; \ -+ $(SHELL) ./config.status;; \ -+ *) \ -+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ -+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ -+ esac; -+ -+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) -+ $(SHELL) ./config.status --recheck -+ -+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) -+ cd $(srcdir) && $(AUTOCONF) -+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) -+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -+ -+newlib.h: stamp-h1 -+ @if test ! -f $@; then \ -+ rm -f stamp-h1; \ -+ $(MAKE) stamp-h1; \ -+ else :; fi -+ -+stamp-h1: $(srcdir)/newlib.hin $(top_builddir)/config.status -+ @rm -f stamp-h1 -+ cd $(top_builddir) && $(SHELL) ./config.status newlib.h -+$(srcdir)/newlib.hin: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(top_srcdir)/acconfig.h -+ cd $(top_srcdir) && $(AUTOHEADER) -+ rm -f stamp-h1 -+ touch $@ -+ -+distclean-hdr: -+ -rm -f newlib.h stamp-h1 -+install-toollibLIBRARIES: $(toollib_LIBRARIES) -+ @$(NORMAL_INSTALL) -+ test -z "$(toollibdir)" || $(mkdir_p) "$(DESTDIR)$(toollibdir)" -+ @list='$(toollib_LIBRARIES)'; for p in $$list; do \ -+ if test -f $$p; then \ -+ f=$(am__strip_dir) \ -+ echo " $(toollibLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(toollibdir)/$$f'"; \ -+ $(toollibLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(toollibdir)/$$f"; \ -+ else :; fi; \ -+ done -+ @$(POST_INSTALL) -+ @list='$(toollib_LIBRARIES)'; for p in $$list; do \ -+ if test -f $$p; then \ -+ p=$(am__strip_dir) \ -+ echo " $(RANLIB) '$(DESTDIR)$(toollibdir)/$$p'"; \ -+ $(RANLIB) "$(DESTDIR)$(toollibdir)/$$p"; \ -+ else :; fi; \ -+ done -+ -+uninstall-toollibLIBRARIES: -+ @$(NORMAL_UNINSTALL) -+ @list='$(toollib_LIBRARIES)'; for p in $$list; do \ -+ p=$(am__strip_dir) \ -+ echo " rm -f '$(DESTDIR)$(toollibdir)/$$p'"; \ -+ rm -f "$(DESTDIR)$(toollibdir)/$$p"; \ -+ done -+ -+clean-toollibLIBRARIES: -+ -test -z "$(toollib_LIBRARIES)" || rm -f $(toollib_LIBRARIES) -+@USE_LIBTOOL_TRUE@libc.a: $(libc_a_OBJECTS) $(libc_a_DEPENDENCIES) -+@USE_LIBTOOL_TRUE@ -rm -f libc.a -+@USE_LIBTOOL_TRUE@ $(libc_a_AR) libc.a $(libc_a_OBJECTS) $(libc_a_LIBADD) -+@USE_LIBTOOL_TRUE@ $(RANLIB) libc.a -+@USE_LIBTOOL_TRUE@libm.a: $(libm_a_OBJECTS) $(libm_a_DEPENDENCIES) -+@USE_LIBTOOL_TRUE@ -rm -f libm.a -+@USE_LIBTOOL_TRUE@ $(libm_a_AR) libm.a $(libm_a_OBJECTS) $(libm_a_LIBADD) -+@USE_LIBTOOL_TRUE@ $(RANLIB) libm.a -+install-toollibLTLIBRARIES: $(toollib_LTLIBRARIES) -+ @$(NORMAL_INSTALL) -+ test -z "$(toollibdir)" || $(mkdir_p) "$(DESTDIR)$(toollibdir)" -+ @list='$(toollib_LTLIBRARIES)'; for p in $$list; do \ -+ if test -f $$p; then \ -+ f=$(am__strip_dir) \ -+ echo " $(LIBTOOL) --mode=install $(toollibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(toollibdir)/$$f'"; \ -+ $(LIBTOOL) --mode=install $(toollibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(toollibdir)/$$f"; \ -+ else :; fi; \ -+ done -+ -+uninstall-toollibLTLIBRARIES: -+ @$(NORMAL_UNINSTALL) -+ @set -x; list='$(toollib_LTLIBRARIES)'; for p in $$list; do \ -+ p=$(am__strip_dir) \ -+ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(toollibdir)/$$p'"; \ -+ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(toollibdir)/$$p"; \ -+ done -+ -+clean-toollibLTLIBRARIES: -+ -test -z "$(toollib_LTLIBRARIES)" || rm -f $(toollib_LTLIBRARIES) -+ @list='$(toollib_LTLIBRARIES)'; for p in $$list; do \ -+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ -+ test "$$dir" != "$$p" || dir=.; \ -+ echo "rm -f \"$${dir}/so_locations\""; \ -+ rm -f "$${dir}/so_locations"; \ -+ done -+libc.la: $(libc_la_OBJECTS) $(libc_la_DEPENDENCIES) -+ $(LINK) $(am_libc_la_rpath) $(libc_la_LDFLAGS) $(libc_la_OBJECTS) $(libc_la_LIBADD) $(LIBS) -+libm.la: $(libm_la_OBJECTS) $(libm_la_DEPENDENCIES) -+ $(LINK) $(am_libm_la_rpath) $(libm_la_LDFLAGS) $(libm_la_OBJECTS) $(libm_la_LIBADD) $(LIBS) -+ -+mostlyclean-compile: -+ -rm -f *.$(OBJEXT) -+ -+distclean-compile: -+ -rm -f *.tab.c -+ -+.c.o: -+ $(COMPILE) -c $< -+ -+.c.obj: -+ $(COMPILE) -c `$(CYGPATH_W) '$<'` -+ -+.c.lo: -+ $(LTCOMPILE) -c -o $@ $< -+ -+mostlyclean-libtool: -+ -rm -f *.lo -+ -+clean-libtool: -+ -rm -rf .libs _libs -+ -+distclean-libtool: -+ -rm -f libtool -+uninstall-info-am: -+install-toollibDATA: $(toollib_DATA) -+ @$(NORMAL_INSTALL) -+ test -z "$(toollibdir)" || $(mkdir_p) "$(DESTDIR)$(toollibdir)" -+ @list='$(toollib_DATA)'; for p in $$list; do \ -+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ -+ f=$(am__strip_dir) \ -+ echo " $(toollibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(toollibdir)/$$f'"; \ -+ $(toollibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(toollibdir)/$$f"; \ -+ done -+ -+uninstall-toollibDATA: -+ @$(NORMAL_UNINSTALL) -+ @list='$(toollib_DATA)'; for p in $$list; do \ -+ f=$(am__strip_dir) \ -+ echo " rm -f '$(DESTDIR)$(toollibdir)/$$f'"; \ -+ rm -f "$(DESTDIR)$(toollibdir)/$$f"; \ -+ done -+ -+# This directory's subdirectories are mostly independent; you can cd -+# into them and run `make' without going through this Makefile. -+# To change the values of `make' variables: instead of editing Makefiles, -+# (1) if the variable is set in `config.status', edit `config.status' -+# (which will cause the Makefiles to be regenerated when you run `make'); -+# (2) otherwise, pass the desired values on the `make' command line. -+$(RECURSIVE_TARGETS): -+ @failcom='exit 1'; \ -+ for f in x $$MAKEFLAGS; do \ -+ case $$f in \ -+ *=* | --[!k]*);; \ -+ *k*) failcom='fail=yes';; \ -+ esac; \ -+ done; \ -+ dot_seen=no; \ -+ target=`echo $@ | sed s/-recursive//`; \ -+ list='$(SUBDIRS)'; for subdir in $$list; do \ -+ echo "Making $$target in $$subdir"; \ -+ if test "$$subdir" = "."; then \ -+ dot_seen=yes; \ -+ local_target="$$target-am"; \ -+ else \ -+ local_target="$$target"; \ -+ fi; \ -+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ -+ || eval $$failcom; \ -+ done; \ -+ if test "$$dot_seen" = "no"; then \ -+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ -+ fi; test -z "$$fail" -+ -+mostlyclean-recursive clean-recursive distclean-recursive \ -+maintainer-clean-recursive: -+ @failcom='exit 1'; \ -+ for f in x $$MAKEFLAGS; do \ -+ case $$f in \ -+ *=* | --[!k]*);; \ -+ *k*) failcom='fail=yes';; \ -+ esac; \ -+ done; \ -+ dot_seen=no; \ -+ case "$@" in \ -+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ -+ *) list='$(SUBDIRS)' ;; \ -+ esac; \ -+ rev=''; for subdir in $$list; do \ -+ if test "$$subdir" = "."; then :; else \ -+ rev="$$subdir $$rev"; \ -+ fi; \ -+ done; \ -+ rev="$$rev ."; \ -+ target=`echo $@ | sed s/-recursive//`; \ -+ for subdir in $$rev; do \ -+ echo "Making $$target in $$subdir"; \ -+ if test "$$subdir" = "."; then \ -+ local_target="$$target-am"; \ -+ else \ -+ local_target="$$target"; \ -+ fi; \ -+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ -+ || eval $$failcom; \ -+ done && test -z "$$fail" -+tags-recursive: -+ list='$(SUBDIRS)'; for subdir in $$list; do \ -+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ -+ done -+ctags-recursive: -+ list='$(SUBDIRS)'; for subdir in $$list; do \ -+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ -+ done -+ -+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) -+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ -+ unique=`for i in $$list; do \ -+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ -+ done | \ -+ $(AWK) ' { files[$$0] = 1; } \ -+ END { for (i in files) print i; }'`; \ -+ mkid -fID $$unique -+tags: TAGS -+ -+TAGS: tags-recursive $(HEADERS) $(SOURCES) newlib.hin $(TAGS_DEPENDENCIES) \ -+ $(TAGS_FILES) $(LISP) -+ tags=; \ -+ here=`pwd`; \ -+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ -+ include_option=--etags-include; \ -+ empty_fix=.; \ -+ else \ -+ include_option=--include; \ -+ empty_fix=; \ -+ fi; \ -+ list='$(SUBDIRS)'; for subdir in $$list; do \ -+ if test "$$subdir" = .; then :; else \ -+ test ! -f $$subdir/TAGS || \ -+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ -+ fi; \ -+ done; \ -+ list='$(SOURCES) $(HEADERS) newlib.hin $(LISP) $(TAGS_FILES)'; \ -+ unique=`for i in $$list; do \ -+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ -+ done | \ -+ $(AWK) ' { files[$$0] = 1; } \ -+ END { for (i in files) print i; }'`; \ -+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ -+ test -n "$$unique" || unique=$$empty_fix; \ -+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ -+ $$tags $$unique; \ -+ fi -+ctags: CTAGS -+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) newlib.hin $(TAGS_DEPENDENCIES) \ -+ $(TAGS_FILES) $(LISP) -+ tags=; \ -+ here=`pwd`; \ -+ list='$(SOURCES) $(HEADERS) newlib.hin $(LISP) $(TAGS_FILES)'; \ -+ unique=`for i in $$list; do \ -+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ -+ done | \ -+ $(AWK) ' { files[$$0] = 1; } \ -+ END { for (i in files) print i; }'`; \ -+ test -z "$(CTAGS_ARGS)$$tags$$unique" \ -+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ -+ $$tags $$unique -+ -+GTAGS: -+ here=`$(am__cd) $(top_builddir) && pwd` \ -+ && cd $(top_srcdir) \ -+ && gtags -i $(GTAGS_ARGS) $$here -+ -+distclean-tags: -+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -+ -+distclean-DEJAGNU: -+ -rm -f site.exp site.bak -+ -l='$(DEJATOOL)'; for tool in $$l; do \ -+ rm -f $$tool.sum $$tool.log; \ -+ done -+check-am: -+ $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU -+check: check-recursive -+all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA) newlib.h -+installdirs: installdirs-recursive -+installdirs-am: -+ for dir in "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)"; do \ -+ test -z "$$dir" || $(mkdir_p) "$$dir"; \ -+ done -+install: install-recursive -+install-exec: install-exec-recursive -+install-data: install-data-recursive -+uninstall: uninstall-recursive -+ -+install-am: all-am -+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am -+ -+installcheck: installcheck-recursive -+install-strip: -+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ -+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ -+ `test -z '$(STRIP)' || \ -+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -+mostlyclean-generic: -+ -+clean-generic: -+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) -+ -+distclean-generic: -+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -+ -+maintainer-clean-generic: -+ @echo "This command is intended for maintainers to use" -+ @echo "it deletes files that may require special tools to rebuild." -+clean: clean-recursive -+ -+clean-am: clean-generic clean-libtool clean-toollibLIBRARIES \ -+ clean-toollibLTLIBRARIES mostlyclean-am -+ -+distclean: distclean-recursive -+ -rm -f $(am__CONFIG_DISTCLEAN_FILES) -+ -rm -f Makefile -+distclean-am: clean-am distclean-DEJAGNU distclean-compile \ -+ distclean-generic distclean-hdr distclean-libtool \ -+ distclean-tags -+ -+dvi: dvi-recursive -+ -+dvi-am: -+ -+html: html-recursive -+ -+info: info-recursive -+ -+info-am: -+ -+install-data-am: install-data-local install-toollibDATA \ -+ install-toollibLIBRARIES install-toollibLTLIBRARIES -+ -+install-exec-am: -+ -+install-info: install-info-recursive -+ -+install-man: -+ -+installcheck-am: -+ -+maintainer-clean: maintainer-clean-recursive -+ -rm -f $(am__CONFIG_DISTCLEAN_FILES) -+ -rm -rf $(top_srcdir)/autom4te.cache -+ -rm -f Makefile -+maintainer-clean-am: distclean-am maintainer-clean-generic -+ -+mostlyclean: mostlyclean-recursive -+ -+mostlyclean-am: mostlyclean-compile mostlyclean-generic \ -+ mostlyclean-libtool -+ -+pdf: pdf-recursive -+ -+pdf-am: -+ -+ps: ps-recursive -+ -+ps-am: -+ -+uninstall-am: uninstall-toollibDATA uninstall-toollibLIBRARIES \ -+ uninstall-toollibLTLIBRARIES -+ -+uninstall-info: uninstall-info-recursive -+ -+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ -+ check-DEJAGNU check-am clean clean-generic clean-libtool \ -+ clean-recursive clean-toollibLIBRARIES \ -+ clean-toollibLTLIBRARIES ctags ctags-recursive distclean \ -+ distclean-DEJAGNU distclean-compile distclean-generic \ -+ distclean-hdr distclean-libtool distclean-recursive \ -+ distclean-tags dvi dvi-am html html-am info info-am install \ -+ install-am install-data install-data-am install-data-local \ -+ install-exec install-exec-am install-info install-info-am \ -+ install-man install-strip install-toollibDATA \ -+ install-toollibLIBRARIES install-toollibLTLIBRARIES \ -+ installcheck installcheck-am installdirs installdirs-am \ -+ maintainer-clean maintainer-clean-generic \ -+ maintainer-clean-recursive mostlyclean mostlyclean-compile \ -+ mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ -+ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ -+ uninstall-info-am uninstall-toollibDATA \ -+ uninstall-toollibLIBRARIES uninstall-toollibLTLIBRARIES -+ -+ -+# objects listed later in LIBM_OBJECTLISTS will override those listed earlier -+@USE_LIBTOOL_TRUE@libm-libtool-objectlist: $(LIBM_OBJECTLISTS) -+@USE_LIBTOOL_TRUE@ cat $(LIBM_OBJECTLISTS) | $(AWK) '{ libm[$$1] = $$2 }; END { for (x in libm) printf ("%s\n", libm[x]) }' > $@ -+ -+# objects listed later in LIBM_OBJECTLISTS and LIBC_OBJECTLISTS will override those listed earlier -+@USE_LIBTOOL_TRUE@libc-libtool-objectlist: $(LIBM_OBJECTLISTS) $(LIBC_OBJECTLISTS) -+@USE_LIBTOOL_TRUE@ cat $(LIBM_OBJECTLISTS) $(LIBC_OBJECTLISTS) | $(AWK) '{ libc[$$1] = $$2 }; END { for (x in libc) printf ("%s\n", libc[x]) }' > $@ -+ -+@USE_LIBTOOL_FALSE@libc.a: libc/libc.a libm.a -+@USE_LIBTOOL_FALSE@ rm -rf libc.a libg.a tmp -+@USE_LIBTOOL_FALSE@ mkdir tmp -+@USE_LIBTOOL_FALSE@ cd tmp; \ -+@USE_LIBTOOL_FALSE@ $(AR) x ../libm.a $(MATHOBJS_IN_LIBC) ; \ -+@USE_LIBTOOL_FALSE@ $(AR) x ../libc/libc.a ; \ -+@USE_LIBTOOL_FALSE@ $(AR) $(AR_FLAGS) ../$@ *.o -+@USE_LIBTOOL_FALSE@ $(RANLIB) libc.a -+@USE_LIBTOOL_FALSE@ ln libc.a libg.a >/dev/null 2>/dev/null || cp libc.a libg.a -+@USE_LIBTOOL_FALSE@ rm -rf tmp -+ -+@USE_LIBTOOL_FALSE@libc/libc.a: ; @true -+ -+@USE_LIBTOOL_FALSE@libm.a: libm/libm.a -+@USE_LIBTOOL_FALSE@ rm -f $@ -+@USE_LIBTOOL_FALSE@ ln libm/libm.a $@ >/dev/null 2>/dev/null || cp libm/libm.a $@ -+ -+@USE_LIBTOOL_FALSE@libm/libm.a: ; @true -+ -+crt0.o: $(CRT0_DIR)$(CRT0) -+ rm -f $@ -+ ln $(CRT0_DIR)$(CRT0) $@ >/dev/null 2>/dev/null \ -+ || cp $(CRT0_DIR)$(CRT0) $@ -+ -+$(CRT0_DIR)$(CRT0): ; @true -+ -+crt1.o: $(CRT1_DIR)$(CRT1) -+ rm -f $@ -+ ln $< $@ >/dev/null 2>/dev/null \ -+ || cp $< $@ -+ -+$(CRT1_DIR)$(CRT1): ; @true -+ -+all-recursive: stmp-targ-include -+ -+# The targ-include directory just holds the includes files for the -+# particular system and machine we have been configured for. It is -+# used while building. -+stmp-targ-include: config.status -+ -rm -rf targ-include stmp-targ-include -+ mkdir targ-include targ-include/sys targ-include/machine targ-include/bits -+ cp newlib.h targ-include/newlib.h -+ -for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \ -+ if [ -f $$i ]; then \ -+ cp $$i targ-include/machine/`basename $$i`; \ -+ else true; fi ; \ -+ done -+ -for i in $(srcdir)/libc/machine/$(machine_dir)/sys/*.h; do \ -+ if [ -f $$i ]; then \ -+ cp $$i targ-include/sys/`basename $$i`; \ -+ else true; fi ; \ -+ done -+ -for i in $(srcdir)/libc/machine/$(machine_dir)/include/*.h; do \ -+ if [ -f $$i ]; then \ -+ cp $$i targ-include/`basename $$i`; \ -+ else true; fi ; \ -+ done -+ -for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \ -+ if [ -f $$i ]; then \ -+ cp $$i targ-include/`basename $$i`; \ -+ else true; fi ; \ -+ done -+ -for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \ -+ if [ -f $$i ]; then \ -+ cp $$i targ-include/sys/`basename $$i`; \ -+ else true; fi ; \ -+ done -+ -for i in $(srcdir)/libc/sys/$(sys_dir)/bits/*.h; do \ -+ if [ -f $$i ]; then \ -+ cp $$i targ-include/bits/`basename $$i`; \ -+ else true; fi ; \ -+ done -+ -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/*.h; do \ -+ if [ -f $$i ]; then \ -+ cp $$i targ-include/machine/`basename $$i`; \ -+ else true; fi ; \ -+ done -+ -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/*.h; do \ -+ if [ -f $$i ]; then \ -+ cp $$i targ-include/machine/`basename $$i`; \ -+ else true; fi ; \ -+ done -+ -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \ -+ if [ -f $$i ]; then \ -+ cp $$i targ-include/machine/`basename $$i`; \ -+ else true; fi ; \ -+ done -+ touch $@ -+ -+install-data-local: install-toollibLIBRARIES -+@USE_LIBTOOL_FALSE@ rm -f $(DESTDIR)$(toollibdir)/libg.a -+@USE_LIBTOOL_FALSE@ ln $(DESTDIR)$(toollibdir)/libc.a $(DESTDIR)$(toollibdir)/libg.a >/dev/null 2>/dev/null || cp $(DESTDIR)$(toollibdir)/libc.a $(DESTDIR)$(toollibdir)/libg.a -+ $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE) -+ -if [ -z "$(MULTISUBDIR)" ]; then \ -+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include; \ -+ for i in $(srcdir)/libc/include/*.h; do \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \ -+ done; \ -+ $(INSTALL_DATA) newlib.h $(DESTDIR)$(tooldir)/include/newlib.h; \ -+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/machine; \ -+ for i in $(srcdir)/libc/include/machine/*.h; do \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ -+ done; \ -+ for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ -+ else true; fi ; \ -+ done; \ -+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \ -+ for i in $(srcdir)/libc/include/sys/*.h; do \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \ -+ done; \ -+ for i in $(srcdir)/libc/machine/$(machine_dir)/sys/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ -+ for i in $(srcdir)/libc/machine/$(machine_dir)/include/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ -+ for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ -+ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/bits; \ -+ for i in $(srcdir)/libc/sys/$(sys_dir)/bits/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/bits/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ -+ for i in $(srcdir)/libc/sys/$(sys_dir)/machine/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ -+ for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ -+ for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \ -+ if [ -f $$i ]; then \ -+ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ -+ else true; fi ; \ -+ done ; \ -+ else true; fi -+ -+# Force makedoc to be built before building info files. -+info-recursive: doc/makedoc -+dvi-recursive: doc/makedoc -+doc/makedoc: -+ cd doc && $(MAKE) all -+ -+# Multilib support. -+.PHONY: all-multi check-multi mostlyclean-multi clean-multi distclean-multi \ -+ maintainer-clean-multi -+ -+all-recursive: all-multi -+check-recursive: check-multi -+mostlyclean-recursive: mostlyclean-multi -+clean-recursive: clean-multi -+distclean-recursive: distclean-multi -+maintainer-clean-recursive: maintainer-clean-multi -+ -+# The $(MAKE) comments below are to enable parallel building. -+all-multi: -+ $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE) -+check-multi: -+ $(MULTIDO) $(AM_MAKEFLAGS) DO=check multi-do # $(MAKE) -+mostlyclean-multi: -+ $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE) -+clean-multi: -+ $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE) -+distclean-multi: -+ $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE) -+maintainer-clean-multi: -+ $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean # $(MAKE) -+ -+site.exp: Makefile -+ @echo 'Making a new site.exp file...' -+ @test ! -f site.bak || rm -f site.bak -+ @echo '## these variables are automatically generated by make ##' > $@-t -+ @echo '# Do not edit here. If you wish to override these values' >> $@-t -+ @echo '# edit the last section' >> $@-t -+ @echo 'set tool $(DEJATOOL)' >> $@-t -+ @echo 'set tool_version $(VERSION)' >> $@-t -+ @echo 'set srcdir $(srcdir)/testsuite' >> $@-t -+ @echo 'set objdir' `pwd` >> $@-t -+ @echo 'set tmpdir' `pwd`/testsuite >> $@-t -+ @echo 'set multibuildtop ./$(MULTIBUILDTOP)' >> $@-t -+ @echo 'set host_alias $(build_alias)' >> $@-t -+ @echo 'set host_triplet $(build_triplet)' >> $@-t -+ @echo 'set target_alias $(host_alias)' >> $@-t -+ @echo 'set target_triplet $(host_triplet)' >> $@-t -+ @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t -+ @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t -+ @test ! -f site.exp || mv site.exp site.bak -+ @mv $@-t site.exp -+ -+check-DEJAGNU: site.exp -+ @if [ -d testsuite ] ; then \ -+ true ; \ -+ else \ -+ mkdir testsuite ; \ -+ fi -+ @rm -f testsuite/site.exp -+ @cp site.exp testsuite/site.exp -+ @rootme=`pwd` ; \ -+ export rootme ; \ -+ srcdir=`cd ${srcdir}; pwd` ; \ -+ export srcdir ; \ -+ EXPECT=`if [ -f $${rootme}/${MULTIBUILDTOP}../../expect/expect ] ; then \ -+ echo $${rootme}/${MULTIBUILDTOP}../../expect/expect ; \ -+ else \ -+ echo expect ; \ -+ fi` ; \ -+ export EXPECT ; \ -+ echo "Found expect: $${EXPECT}" ; \ -+ if [ -f $(top_builddir)/$(MULTIBUILDTOP)../../expect/expect ] ; then \ -+ TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd` ; \ -+ export TCL_LIBRARY ; \ -+ echo "Found TCL library directory: $${TCL_LIBRARY}" ; \ -+ fi ; \ -+ RUNTEST=`if [ -f $${srcdir}/../dejagnu/runtest ] ; then \ -+ echo $${srcdir}/../dejagnu/runtest ; \ -+ else \ -+ echo runtest ; \ -+ fi` ; \ -+ export RUNTEST ; \ -+ echo "Found runtest: $${RUNTEST}" ; \ -+ cd testsuite ; \ -+ if $(SHELL) -c "$$RUNTEST --version" > /dev/null 2>&1 ; then \ -+ $$RUNTEST --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite $(RUNTESTFLAGS) ; \ -+ : ; \ -+ else \ -+ echo "WARNING: could not find \`runtest'" 1>&2 ; \ -+ fi -+# Tell versions [3.59,3.63) of GNU make to not export all variables. -+# Otherwise a system limit (for SysV at least) may be exceeded. -+.NOEXPORT: -diff -Nbaur newlib-1.17.0/newlib/configure.host newlib-1.17.0-psp/newlib/configure.host ---- newlib-1.17.0/newlib/configure.host 2008-12-17 23:09:09.000000000 +0000 -+++ newlib-1.17.0-psp/newlib/configure.host 2009-02-11 09:56:27.000000000 +0000 -@@ -664,7 +664,14 @@ - ;; - mips*-*-elf*) - default_newlib_io_long_long="yes" -- newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" -+ case "${host}" in -+ mipsallegrex*-psp-*) -+ sys_dir=psp -+ syscall_dir=syscalls -+ newlib_cflags="${newlib_cflags} -G0 -mno-explicit-relocs -DCOMPACT_CTYPE -DCLOCK_PROVIDED -DHAVE_FCNTL -DHAVE_RENAME -DMALLOC_ALIGNMENT=16 -I${prefix}/psp/sdk/include" ;; -+ *) -+ newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" ;; -+ esac - ;; - mmix-*) - syscall_dir=syscalls -diff -Nbaur newlib-1.17.0/newlib/libc/include/machine/time.h newlib-1.17.0-psp/newlib/libc/include/machine/time.h ---- newlib-1.17.0/newlib/libc/include/machine/time.h 2000-12-04 19:06:37.000000000 +0000 -+++ newlib-1.17.0-psp/newlib/libc/include/machine/time.h 2009-02-11 09:56:27.000000000 +0000 -@@ -9,6 +9,10 @@ - #endif - #endif /* !__rtems__ */ - -+#if defined(__psp__) -+#define _CLOCKS_PER_SEC_ 1000000 -+#endif -+ - #endif /* _MACHTIME_H_ */ - - -diff -Nbaur newlib-1.17.0/newlib/libc/include/stdint.h newlib-1.17.0-psp/newlib/libc/include/stdint.h ---- newlib-1.17.0/newlib/libc/include/stdint.h 2008-12-10 21:27:58.000000000 +0000 -+++ newlib-1.17.0-psp/newlib/libc/include/stdint.h 2009-02-11 09:56:27.000000000 +0000 -@@ -30,11 +30,9 @@ - #define __have_longlong64 1 - #endif - --/* Check if "long" is 64bit or 32bit wide */ -+/* Check if "long" is 64bit */ - #if __STDINT_EXP(LONG_MAX) > 0x7fffffff - #define __have_long64 1 --#elif __STDINT_EXP(LONG_MAX) == 0x7fffffff && !defined(__SPU__) --#define __have_long32 1 - #endif - - #if __STDINT_EXP(SCHAR_MAX) == 0x7f -diff -Nbaur newlib-1.17.0/newlib/libc/include/stdint.h.orig newlib-1.17.0-psp/newlib/libc/include/stdint.h.orig ---- newlib-1.17.0/newlib/libc/include/stdint.h.orig 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/include/stdint.h.orig 2008-12-10 21:27:58.000000000 +0000 -@@ -0,0 +1,483 @@ -+/* -+ * Copyright (c) 2004, 2005 by -+ * Ralf Corsepius, Ulm/Germany. All rights reserved. -+ * -+ * Permission to use, copy, modify, and distribute this software -+ * is freely granted, provided that this notice is preserved. -+ */ -+ -+#ifndef _STDINT_H -+#define _STDINT_H -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+#if defined(__GNUC__) && \ -+ ( (__GNUC__ >= 4) || \ -+ ( (__GNUC__ >= 3) && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ > 2) ) ) -+/* gcc > 3.2 implicitly defines the values we are interested */ -+#define __STDINT_EXP(x) __##x##__ -+#else -+#define __STDINT_EXP(x) x -+#include -+#endif -+ -+/* Check if "long long" is 64bit wide */ -+/* Modern GCCs provide __LONG_LONG_MAX__, SUSv3 wants LLONG_MAX */ -+#if ( defined(__LONG_LONG_MAX__) && (__LONG_LONG_MAX__ > 0x7fffffff) ) \ -+ || ( defined(LLONG_MAX) && (LLONG_MAX > 0x7fffffff) ) -+#define __have_longlong64 1 -+#endif -+ -+/* Check if "long" is 64bit or 32bit wide */ -+#if __STDINT_EXP(LONG_MAX) > 0x7fffffff -+#define __have_long64 1 -+#elif __STDINT_EXP(LONG_MAX) == 0x7fffffff && !defined(__SPU__) -+#define __have_long32 1 -+#endif -+ -+#if __STDINT_EXP(SCHAR_MAX) == 0x7f -+typedef signed char int8_t ; -+typedef unsigned char uint8_t ; -+#define __int8_t_defined 1 -+#endif -+ -+#if __int8_t_defined -+typedef signed char int_least8_t; -+typedef unsigned char uint_least8_t; -+#define __int_least8_t_defined 1 -+#endif -+ -+#if __STDINT_EXP(SHRT_MAX) == 0x7fff -+typedef signed short int16_t; -+typedef unsigned short uint16_t; -+#define __int16_t_defined 1 -+#elif __STDINT_EXP(INT_MAX) == 0x7fff -+typedef signed int int16_t; -+typedef unsigned int uint16_t; -+#define __int16_t_defined 1 -+#elif __STDINT_EXP(SCHAR_MAX) == 0x7fff -+typedef signed char int16_t; -+typedef unsigned char uint16_t; -+#define __int16_t_defined 1 -+#endif -+ -+#if __int16_t_defined -+typedef int16_t int_least16_t; -+typedef uint16_t uint_least16_t; -+#define __int_least16_t_defined 1 -+ -+#if !__int_least8_t_defined -+typedef int16_t int_least8_t; -+typedef uint16_t uint_least8_t; -+#define __int_least8_t_defined 1 -+#endif -+#endif -+ -+#if __have_long32 -+typedef signed long int32_t; -+typedef unsigned long uint32_t; -+#define __int32_t_defined 1 -+#elif __STDINT_EXP(INT_MAX) == 0x7fffffffL -+typedef signed int int32_t; -+typedef unsigned int uint32_t; -+#define __int32_t_defined 1 -+#elif __STDINT_EXP(SHRT_MAX) == 0x7fffffffL -+typedef signed short int32_t; -+typedef unsigned short uint32_t; -+#define __int32_t_defined 1 -+#elif __STDINT_EXP(SCHAR_MAX) == 0x7fffffffL -+typedef signed char int32_t; -+typedef unsigned char uint32_t; -+#define __int32_t_defined 1 -+#endif -+ -+#if __int32_t_defined -+typedef int32_t int_least32_t; -+typedef uint32_t uint_least32_t; -+#define __int_least32_t_defined 1 -+ -+#if !__int_least8_t_defined -+typedef int32_t int_least8_t; -+typedef uint32_t uint_least8_t; -+#define __int_least8_t_defined 1 -+#endif -+ -+#if !__int_least16_t_defined -+typedef int32_t int_least16_t; -+typedef uint32_t uint_least16_t; -+#define __int_least16_t_defined 1 -+#endif -+#endif -+ -+#if __have_long64 -+typedef signed long int64_t; -+typedef unsigned long uint64_t; -+#define __int64_t_defined 1 -+#elif __have_longlong64 -+typedef signed long long int64_t; -+typedef unsigned long long uint64_t; -+#define __int64_t_defined 1 -+#elif __STDINT_EXP(INT_MAX) > 0x7fffffff -+typedef signed int int64_t; -+typedef unsigned int uint64_t; -+#define __int64_t_defined 1 -+#endif -+ -+#if __int64_t_defined -+typedef int64_t int_least64_t; -+typedef uint64_t uint_least64_t; -+#define __int_least64_t_defined 1 -+ -+#if !__int_least8_t_defined -+typedef int64_t int_least8_t; -+typedef uint64_t uint_least8_t; -+#define __int_least8_t_defined 1 -+#endif -+ -+#if !__int_least16_t_defined -+typedef int64_t int_least16_t; -+typedef uint64_t uint_least16_t; -+#define __int_least16_t_defined 1 -+#endif -+ -+#if !__int_least32_t_defined -+typedef int64_t int_least32_t; -+typedef uint64_t uint_least32_t; -+#define __int_least32_t_defined 1 -+#endif -+#endif -+ -+/* -+ * Fastest minimum-width integer types -+ * -+ * Assume int to be the fastest type for all types with a width -+ * less than __INT_MAX__ rsp. INT_MAX -+ */ -+#if __STDINT_EXP(INT_MAX) >= 0x7f -+ typedef signed int int_fast8_t; -+ typedef unsigned int uint_fast8_t; -+#define __int_fast8_t_defined 1 -+#endif -+ -+#if __STDINT_EXP(INT_MAX) >= 0x7fff -+ typedef signed int int_fast16_t; -+ typedef unsigned int uint_fast16_t; -+#define __int_fast16_t_defined 1 -+#endif -+ -+#if __STDINT_EXP(INT_MAX) >= 0x7fffffff -+ typedef signed int int_fast32_t; -+ typedef unsigned int uint_fast32_t; -+#define __int_fast32_t_defined 1 -+#endif -+ -+#if __STDINT_EXP(INT_MAX) > 0x7fffffff -+ typedef signed int int_fast64_t; -+ typedef unsigned int uint_fast64_t; -+#define __int_fast64_t_defined 1 -+#endif -+ -+/* -+ * Fall back to [u]int_least_t for [u]int_fast_t types -+ * not having been defined, yet. -+ * Leave undefined, if [u]int_least_t should not be available. -+ */ -+#if !__int_fast8_t_defined -+#if __int_least8_t_defined -+ typedef int_least8_t int_fast8_t; -+ typedef uint_least8_t uint_fast8_t; -+#define __int_fast8_t_defined 1 -+#endif -+#endif -+ -+#if !__int_fast16_t_defined -+#if __int_least16_t_defined -+ typedef int_least16_t int_fast16_t; -+ typedef uint_least16_t uint_fast16_t; -+#define __int_fast16_t_defined 1 -+#endif -+#endif -+ -+#if !__int_fast32_t_defined -+#if __int_least32_t_defined -+ typedef int_least32_t int_fast32_t; -+ typedef uint_least32_t uint_fast32_t; -+#define __int_fast32_t_defined 1 -+#endif -+#endif -+ -+#if !__int_fast64_t_defined -+#if __int_least64_t_defined -+ typedef int_least64_t int_fast64_t; -+ typedef uint_least64_t uint_fast64_t; -+#define __int_fast64_t_defined 1 -+#endif -+#endif -+ -+/* Greatest-width integer types */ -+/* Modern GCCs provide __INTMAX_TYPE__ */ -+#if defined(__INTMAX_TYPE__) -+ typedef __INTMAX_TYPE__ intmax_t; -+#elif __have_longlong64 -+ typedef signed long long intmax_t; -+#else -+ typedef signed long intmax_t; -+#endif -+ -+/* Modern GCCs provide __UINTMAX_TYPE__ */ -+#if defined(__UINTMAX_TYPE__) -+ typedef __UINTMAX_TYPE__ uintmax_t; -+#elif __have_longlong64 -+ typedef unsigned long long uintmax_t; -+#else -+ typedef unsigned long uintmax_t; -+#endif -+ -+/* -+ * GCC doesn't provide an appropriate macro for [u]intptr_t -+ * For now, use __PTRDIFF_TYPE__ -+ */ -+#if defined(__PTRDIFF_TYPE__) -+typedef signed __PTRDIFF_TYPE__ intptr_t; -+typedef unsigned __PTRDIFF_TYPE__ uintptr_t; -+#else -+/* -+ * Fallback to hardcoded values, -+ * should be valid on cpu's with 32bit int/32bit void* -+ */ -+typedef signed long intptr_t; -+typedef unsigned long uintptr_t; -+#endif -+ -+/* Limits of Specified-Width Integer Types */ -+ -+#if __int8_t_defined -+#define INT8_MIN -128 -+#define INT8_MAX 127 -+#define UINT8_MAX 255 -+#endif -+ -+#if __int_least8_t_defined -+#define INT_LEAST8_MIN -128 -+#define INT_LEAST8_MAX 127 -+#define UINT_LEAST8_MAX 255 -+#else -+#error required type int_least8_t missing -+#endif -+ -+#if __int16_t_defined -+#define INT16_MIN -32768 -+#define INT16_MAX 32767 -+#define UINT16_MAX 65535 -+#endif -+ -+#if __int_least16_t_defined -+#define INT_LEAST16_MIN -32768 -+#define INT_LEAST16_MAX 32767 -+#define UINT_LEAST16_MAX 65535 -+#else -+#error required type int_least16_t missing -+#endif -+ -+#if __int32_t_defined -+#if __have_long32 -+#define INT32_MIN (-2147483647L-1) -+#define INT32_MAX 2147483647L -+#define UINT32_MAX 4294967295UL -+#else -+#define INT32_MIN (-2147483647-1) -+#define INT32_MAX 2147483647 -+#define UINT32_MAX 4294967295U -+#endif -+#endif -+ -+#if __int_least32_t_defined -+#if __have_long32 -+#define INT_LEAST32_MIN (-2147483647L-1) -+#define INT_LEAST32_MAX 2147483647L -+#define UINT_LEAST32_MAX 4294967295UL -+#else -+#define INT_LEAST32_MIN (-2147483647-1) -+#define INT_LEAST32_MAX 2147483647 -+#define UINT_LEAST32_MAX 4294967295U -+#endif -+#else -+#error required type int_least32_t missing -+#endif -+ -+#if __int64_t_defined -+#if __have_long64 -+#define INT64_MIN (-9223372036854775807L-1L) -+#define INT64_MAX 9223372036854775807L -+#define UINT64_MAX 18446744073709551615U -+#elif __have_longlong64 -+#define INT64_MIN (-9223372036854775807LL-1LL) -+#define INT64_MAX 9223372036854775807LL -+#define UINT64_MAX 18446744073709551615ULL -+#endif -+#endif -+ -+#if __int_least64_t_defined -+#if __have_long64 -+#define INT_LEAST64_MIN (-9223372036854775807L-1L) -+#define INT_LEAST64_MAX 9223372036854775807L -+#define UINT_LEAST64_MAX 18446744073709551615U -+#elif __have_longlong64 -+#define INT_LEAST64_MIN (-9223372036854775807LL-1LL) -+#define INT_LEAST64_MAX 9223372036854775807LL -+#define UINT_LEAST64_MAX 18446744073709551615ULL -+#endif -+#endif -+ -+#if __int_fast8_t_defined -+#if __STDINT_EXP(INT_MAX) >= 0x7f -+#define INT_FAST8_MIN (-__STDINT_EXP(INT_MAX)-1) -+#define INT_FAST8_MAX __STDINT_EXP(INT_MAX) -+#define UINT_FAST8_MAX (__STDINT_EXP(INT_MAX)*2U+1U) -+#else -+#define INT_FAST8_MIN INT_LEAST8_MIN -+#define INT_FAST8_MAX INT_LEAST8_MAX -+#define UINT_FAST8_MAX UINT_LEAST8_MAX -+#endif -+#endif -+ -+#if __int_fast16_t_defined -+#if __STDINT_EXP(INT_MAX) >= 0x7fff -+#define INT_FAST16_MIN (-__STDINT_EXP(INT_MAX)-1) -+#define INT_FAST16_MAX __STDINT_EXP(INT_MAX) -+#define UINT_FAST16_MAX (__STDINT_EXP(INT_MAX)*2U+1U) -+#else -+#define INT_FAST16_MIN INT_LEAST16_MIN -+#define INT_FAST16_MAX INT_LEAST16_MAX -+#define UINT_FAST16_MAX UINT_LEAST16_MAX -+#endif -+#endif -+ -+#if __int_fast32_t_defined -+#if __STDINT_EXP(INT_MAX) >= 0x7fffffff -+#define INT_FAST32_MIN (-__STDINT_EXP(INT_MAX)-1) -+#define INT_FAST32_MAX __STDINT_EXP(INT_MAX) -+#define UINT_FAST32_MAX (__STDINT_EXP(INT_MAX)*2U+1U) -+#else -+#define INT_FAST32_MIN INT_LEAST32_MIN -+#define INT_FAST32_MAX INT_LEAST32_MAX -+#define UINT_FAST32_MAX UINT_LEAST32_MAX -+#endif -+#endif -+ -+#if __int_fast64_t_defined -+#if __STDINT_EXP(INT_MAX) > 0x7fffffff -+#define INT_FAST64_MIN (-__STDINT_EXP(INT_MAX)-1) -+#define INT_FAST64_MAX __STDINT_EXP(INT_MAX) -+#define UINT_FAST64_MAX (__STDINT_EXP(INT_MAX)*2U+1U) -+#else -+#define INT_FAST64_MIN INT_LEAST64_MIN -+#define INT_FAST64_MAX INT_LEAST64_MAX -+#define UINT_FAST64_MAX UINT_LEAST64_MAX -+#endif -+#endif -+ -+#ifdef __INTMAX_MAX__ -+#define INTMAX_MAX __INTMAX_MAX__ -+#define INTMAX_MIN (-INTMAX_MAX - 1) -+#elif defined(__INTMAX_TYPE__) -+/* All relevant GCC versions prefer long to long long for intmax_t. */ -+#define INTMAX_MAX INT64_MAX -+#define INTMAX_MIN INT64_MIN -+#endif -+ -+#ifdef __UINTMAX_MAX__ -+#define UINTMAX_MAX __UINTMAX_MAX__ -+#elif defined(__UINTMAX_TYPE__) -+/* All relevant GCC versions prefer long to long long for intmax_t. */ -+#define UINTMAX_MAX UINT64_MAX -+#endif -+ -+/* This must match size_t in stddef.h, currently long unsigned int */ -+#ifdef __SIZE_MAX__ -+#define SIZE_MAX __SIZE_MAX__ -+#else -+#define SIZE_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1) -+#endif -+ -+/* This must match sig_atomic_t in (currently int) */ -+#define SIG_ATOMIC_MIN (-__STDINT_EXP(INT_MAX) - 1) -+#define SIG_ATOMIC_MAX __STDINT_EXP(INT_MAX) -+ -+/* This must match ptrdiff_t in (currently long int) */ -+#ifdef __PTRDIFF_MAX__ -+#define PTRDIFF_MAX __PTRDIFF_MAX__ -+#else -+#define PTRDIFF_MAX __STDINT_EXP(LONG_MAX) -+#endif -+#define PTRDIFF_MIN (-PTRDIFF_MAX - 1) -+ -+#ifdef __WCHAR_MAX__ -+#define WCHAR_MAX __WCHAR_MAX__ -+#endif -+#ifdef __WCHAR_MIN__ -+#define WCHAR_MIN __WCHAR_MIN__ -+#endif -+ -+/* wint_t is unsigned int on almost all GCC targets. */ -+#ifdef __WINT_MAX__ -+#define WINT_MAX __WINT_MAX__ -+#else -+#define WINT_MAX (__STDINT_EXP(INT_MAX) * 2U + 1U) -+#endif -+#ifdef __WINT_MIN__ -+#define WINT_MIN __WINT_MIN__ -+#else -+#define WINT_MIN 0U -+#endif -+ -+/** Macros for minimum-width integer constant expressions */ -+#define INT8_C(x) x -+#if __STDINT_EXP(INT_MAX) > 0x7f -+#define UINT8_C(x) x -+#else -+#define UINT8_C(x) x##U -+#endif -+ -+#define INT16_C(x) x -+#if __STDINT_EXP(INT_MAX) > 0x7fff -+#define UINT16_C(x) x -+#else -+#define UINT16_C(x) x##U -+#endif -+ -+#if __have_long32 -+#define INT32_C(x) x##L -+#define UINT32_C(x) x##UL -+#else -+#define INT32_C(x) x -+#define UINT32_C(x) x##U -+#endif -+ -+#if __int64_t_defined -+#if __have_longlong64 -+#define INT64_C(x) x##LL -+#define UINT64_C(x) x##ULL -+#else -+#define INT64_C(x) x##L -+#define UINT64_C(x) x##UL -+#endif -+#endif -+ -+/** Macros for greatest-width integer constant expression */ -+#if __have_longlong64 -+#define INTMAX_C(x) x##LL -+#define UINTMAX_C(x) x##ULL -+#else -+#define INTMAX_C(x) x##L -+#define UINTMAX_C(x) x##UL -+#endif -+ -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif /* _STDINT_H */ -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/config.h newlib-1.17.0-psp/newlib/libc/include/sys/config.h ---- newlib-1.17.0/newlib/libc/include/sys/config.h 2008-11-19 21:05:31.000000000 +0000 -+++ newlib-1.17.0-psp/newlib/libc/include/sys/config.h 2009-02-11 09:56:27.000000000 +0000 -@@ -98,6 +98,12 @@ - #define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata"))) - #endif - -+/* We compile newlib with -G0 for PSP, but if we're compiling an app with $gp enabled, -+ then _impure_ptr is expected to live in .sdata. */ -+#if defined(__psp__) -+#define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata"))) -+#endif -+ - #ifdef __xstormy16__ - #define __SMALL_BITFIELDS - #undef INT_MAX -diff -Nbaur newlib-1.17.0/newlib/libc/include/sys/types.h newlib-1.17.0-psp/newlib/libc/include/sys/types.h ---- newlib-1.17.0/newlib/libc/include/sys/types.h 2008-09-26 17:15:50.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/include/sys/types.h 2009-02-11 09:56:27.000000000 +0000 -@@ -190,6 +190,7 @@ - - typedef unsigned short nlink_t; - -+#if !defined(__psp__) - /* We don't define fd_set and friends if we are compiling POSIX - source, or if we have included (or may include as indicated - by __USE_W32_SOCKETS) the W32api winsock[2].h header which -@@ -235,6 +236,7 @@ - })) - - # endif /* !(defined (_POSIX_SOURCE) || defined (_WINSOCK_H) || defined (__USE_W32_SOCKETS)) */ -+#endif /* !defined(__psp__) */ - - #undef __MS_types__ - #undef _ST_INT32 -diff -Nbaur newlib-1.17.0/newlib/libc/include/time.h newlib-1.17.0-psp/newlib/libc/include/time.h ---- newlib-1.17.0/newlib/libc/include/time.h 2008-10-16 22:53:58.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/include/time.h 2009-02-11 09:56:27.000000000 +0000 -@@ -175,6 +175,17 @@ - #endif - #endif /* _POSIX_TIMERS */ - -+#if defined(__psp__) -+#ifdef __cplusplus -+extern "C" { -+#endif -+int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp)); -+#ifdef __cplusplus -+} -+#endif -+#endif /* __psp__ */ -+ -+ - #ifdef __cplusplus - extern "C" { - #endif -diff -Nbaur newlib-1.17.0/newlib/libc/sys/configure newlib-1.17.0-psp/newlib/libc/sys/configure ---- newlib-1.17.0/newlib/libc/sys/configure 2008-12-22 19:45:49.000000000 +0000 -+++ newlib-1.17.0-psp/newlib/libc/sys/configure 2009-02-11 09:56:27.000000000 +0000 -@@ -470,6 +470,7 @@ - ac_subdirs_all="$ac_subdirs_all mmixware" - ac_subdirs_all="$ac_subdirs_all netware" - ac_subdirs_all="$ac_subdirs_all rdos" -+ac_subdirs_all="$ac_subdirs_all psp" - ac_subdirs_all="$ac_subdirs_all rtems" - ac_subdirs_all="$ac_subdirs_all sh" - ac_subdirs_all="$ac_subdirs_all sparc64" -@@ -11399,6 +11400,10 @@ - - subdirs="$subdirs netware" - ;; -+ psp) -+ -+subdirs="$subdirs psp" -+ ;; - rdos) - - subdirs="$subdirs rdos" -diff -Nbaur newlib-1.17.0/newlib/libc/sys/configure.in newlib-1.17.0-psp/newlib/libc/sys/configure.in ---- newlib-1.17.0/newlib/libc/sys/configure.in 2007-05-24 18:33:37.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/configure.in 2009-02-11 09:56:27.000000000 +0000 -@@ -33,6 +33,7 @@ - mmixware) AC_CONFIG_SUBDIRS(mmixware) ;; - netware) AC_CONFIG_SUBDIRS(netware) ;; - rdos) AC_CONFIG_SUBDIRS(rdos) ;; -+ psp) AC_CONFIG_SUBDIRS(psp) ;; - rtems) AC_CONFIG_SUBDIRS(rtems) ;; - sh) AC_CONFIG_SUBDIRS(sh) ;; - sparc64) AC_CONFIG_SUBDIRS(sparc64) ;; -diff -Nbaur newlib-1.17.0/newlib/libc/sys/configure.orig newlib-1.17.0-psp/newlib/libc/sys/configure.orig ---- newlib-1.17.0/newlib/libc/sys/configure.orig 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/configure.orig 2008-12-22 19:45:49.000000000 +0000 -@@ -0,0 +1,13876 @@ -+#! /bin/sh -+# Guess values for system-dependent variables and create Makefiles. -+# Generated by GNU Autoconf 2.59 for newlib 1.17.0. -+# -+# Copyright (C) 2003 Free Software Foundation, Inc. -+# This configure script is free software; the Free Software Foundation -+# gives unlimited permission to copy, distribute and modify it. -+## --------------------- ## -+## M4sh Initialization. ## -+## --------------------- ## -+ -+# Be Bourne compatible -+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then -+ emulate sh -+ NULLCMD=: -+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which -+ # is contrary to our usage. Disable this feature. -+ alias -g '${1+"$@"}'='"$@"' -+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then -+ set -o posix -+fi -+DUALCASE=1; export DUALCASE # for MKS sh -+ -+# Support unset when possible. -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then -+ as_unset=unset -+else -+ as_unset=false -+fi -+ -+ -+# Work around bugs in pre-3.0 UWIN ksh. -+$as_unset ENV MAIL MAILPATH -+PS1='$ ' -+PS2='> ' -+PS4='+ ' -+ -+# NLS nuisances. -+for as_var in \ -+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ -+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ -+ LC_TELEPHONE LC_TIME -+do -+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then -+ eval $as_var=C; export $as_var -+ else -+ $as_unset $as_var -+ fi -+done -+ -+# Required to use basename. -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then -+ as_basename=basename -+else -+ as_basename=false -+fi -+ -+ -+# Name of the executable. -+as_me=`$as_basename "$0" || -+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ -+ X"$0" : 'X\(//\)$' \| \ -+ X"$0" : 'X\(/\)$' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X/"$0" | -+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } -+ /^X\/\(\/\/\)$/{ s//\1/; q; } -+ /^X\/\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ -+ -+# PATH needs CR, and LINENO needs CR and PATH. -+# Avoid depending upon Character Ranges. -+as_cr_letters='abcdefghijklmnopqrstuvwxyz' -+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -+as_cr_Letters=$as_cr_letters$as_cr_LETTERS -+as_cr_digits='0123456789' -+as_cr_alnum=$as_cr_Letters$as_cr_digits -+ -+# 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 -+ -+ -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" || { -+ # Find who we are. Look in the path if we contain no path at all -+ # relative or not. -+ case $0 in -+ *[\\/]* ) as_myself=$0 ;; -+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -+done -+ -+ ;; -+ esac -+ # We did not find ourselves, most probably we were run as `sh COMMAND' -+ # in which case we are not to be found in the path. -+ if test "x$as_myself" = x; then -+ as_myself=$0 -+ fi -+ if test ! -f "$as_myself"; then -+ { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 -+ { (exit 1); exit 1; }; } -+ fi -+ case $CONFIG_SHELL in -+ '') -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ for as_base in sh bash ksh sh5; do -+ case $as_dir in -+ /*) -+ if ("$as_dir/$as_base" -c ' -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then -+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } -+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } -+ CONFIG_SHELL=$as_dir/$as_base -+ export CONFIG_SHELL -+ exec "$CONFIG_SHELL" "$0" ${1+"$@"} -+ fi;; -+ esac -+ done -+done -+;; -+ esac -+ -+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO -+ # uniformly replaced by the line number. The first 'sed' inserts a -+ # line-number line before each line; the second 'sed' does the real -+ # work. The second script uses 'N' to pair each line-number line -+ # with the numbered line, and appends trailing '-' during -+ # substitution so that $LINENO is not a special case at line end. -+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the -+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) -+ sed '=' <$as_myself | -+ sed ' -+ N -+ s,$,-, -+ : loop -+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, -+ t loop -+ s,-$,, -+ s,^['$as_cr_digits']*\n,, -+ ' >$as_me.lineno && -+ chmod +x $as_me.lineno || -+ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 -+ { (exit 1); exit 1; }; } -+ -+ # Don't try to exec as it changes $[0], causing all sort of problems -+ # (the dirname of $[0] is not the place where we might find the -+ # original and so on. Autoconf is especially sensible to this). -+ . ./$as_me.lineno -+ # Exit status is that of the last command. -+ exit -+} -+ -+ -+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in -+ *c*,-n*) ECHO_N= ECHO_C=' -+' ECHO_T=' ' ;; -+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; -+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -+esac -+ -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+rm -f conf$$ conf$$.exe conf$$.file -+echo >conf$$.file -+if ln -s conf$$.file conf$$ 2>/dev/null; then -+ # We could just check for DJGPP; but this test a) works b) is more generic -+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). -+ if test -f conf$$.exe; then -+ # Don't use ln at all; we don't have any links -+ as_ln_s='cp -p' -+ else -+ as_ln_s='ln -s' -+ fi -+elif ln conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s=ln -+else -+ as_ln_s='cp -p' -+fi -+rm -f conf$$ conf$$.exe conf$$.file -+ -+if mkdir -p . 2>/dev/null; then -+ as_mkdir_p=: -+else -+ test -d ./-p && rmdir ./-p -+ as_mkdir_p=false -+fi -+ -+as_executable_p="test -f" -+ -+# Sed expression to map a string onto a valid CPP name. -+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -+ -+# Sed expression to map a string onto a valid variable name. -+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -+ -+ -+# IFS -+# We need space, tab and new line, in precisely that order. -+as_nl=' -+' -+IFS=" $as_nl" -+ -+# CDPATH. -+$as_unset CDPATH -+ -+ -+ -+# Check that we are running under the correct shell. -+SHELL=${CONFIG_SHELL-/bin/sh} -+ -+case X$lt_ECHO in -+X*--fallback-echo) -+ # Remove one level of quotation (which was required for Make). -+ ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` -+ ;; -+esac -+ -+ECHO=${lt_ECHO-echo} -+if test "X$1" = X--no-reexec; then -+ # Discard the --no-reexec flag, and continue. -+ shift -+elif test "X$1" = X--fallback-echo; then -+ # Avoid inline document here, it may be left over -+ : -+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then -+ # Yippee, $ECHO works! -+ : -+else -+ # Restart under the correct shell. -+ exec $SHELL "$0" --no-reexec ${1+"$@"} -+fi -+ -+if test "X$1" = X--fallback-echo; then -+ # used as fallback echo -+ shift -+ cat <<_LT_EOF -+$* -+_LT_EOF -+ exit 0 -+fi -+ -+# The HP-UX ksh and POSIX shell print the target directory to stdout -+# if CDPATH is set. -+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH -+ -+if test -z "$lt_ECHO"; then -+ if test "X${echo_test_string+set}" != Xset; then -+ # find a string as large as possible, as long as the shell can cope with it -+ for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do -+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... -+ if { echo_test_string=`eval $cmd`; } 2>/dev/null && -+ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null -+ then -+ break -+ fi -+ done -+ fi -+ -+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && -+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && -+ test "X$echo_testing_string" = "X$echo_test_string"; then -+ : -+ else -+ # The Solaris, AIX, and Digital Unix default echo programs unquote -+ # backslashes. This makes it impossible to quote backslashes using -+ # echo "$something" | sed 's/\\/\\\\/g' -+ # -+ # So, first we look for a working echo in the user's PATH. -+ -+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -+ for dir in $PATH /usr/ucb; do -+ IFS="$lt_save_ifs" -+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && -+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && -+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && -+ test "X$echo_testing_string" = "X$echo_test_string"; then -+ ECHO="$dir/echo" -+ break -+ fi -+ done -+ IFS="$lt_save_ifs" -+ -+ if test "X$ECHO" = Xecho; then -+ # We didn't find a better echo, so look for alternatives. -+ if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && -+ echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && -+ test "X$echo_testing_string" = "X$echo_test_string"; then -+ # This shell has a builtin print -r that does the trick. -+ ECHO='print -r' -+ elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && -+ test "X$CONFIG_SHELL" != X/bin/ksh; then -+ # If we have ksh, try running configure again with it. -+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -+ export ORIGINAL_CONFIG_SHELL -+ CONFIG_SHELL=/bin/ksh -+ export CONFIG_SHELL -+ exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} -+ else -+ # Try using printf. -+ ECHO='printf %s\n' -+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && -+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && -+ test "X$echo_testing_string" = "X$echo_test_string"; then -+ # Cool, printf works -+ : -+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && -+ test "X$echo_testing_string" = 'X\t' && -+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && -+ test "X$echo_testing_string" = "X$echo_test_string"; then -+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL -+ export CONFIG_SHELL -+ SHELL="$CONFIG_SHELL" -+ export SHELL -+ ECHO="$CONFIG_SHELL $0 --fallback-echo" -+ elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && -+ test "X$echo_testing_string" = 'X\t' && -+ echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && -+ test "X$echo_testing_string" = "X$echo_test_string"; then -+ ECHO="$CONFIG_SHELL $0 --fallback-echo" -+ else -+ # maybe with a smaller string... -+ prev=: -+ -+ for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do -+ if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null -+ then -+ break -+ fi -+ prev="$cmd" -+ done -+ -+ if test "$prev" != 'sed 50q "$0"'; then -+ echo_test_string=`eval $prev` -+ export echo_test_string -+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} -+ else -+ # Oops. We lost completely, so just stick with echo. -+ ECHO=echo -+ fi -+ fi -+ fi -+ fi -+ fi -+fi -+ -+# Copy echo and quote the copy suitably for passing to libtool from -+# the Makefile, instead of quoting the original, which is used later. -+lt_ECHO=$ECHO -+if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then -+ lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" -+fi -+ -+ -+ -+ -+# Name of the host. -+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -+# so uname gets run too. -+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` -+ -+exec 6>&1 -+ -+# -+# Initializations. -+# -+ac_default_prefix=/usr/local -+ac_config_libobj_dir=. -+cross_compiling=no -+subdirs= -+MFLAGS= -+MAKEFLAGS= -+SHELL=${CONFIG_SHELL-/bin/sh} -+ -+# Maximum number of lines to put in a shell here document. -+# This variable seems obsolete. It should probably be removed, and -+# only ac_max_sed_lines should be used. -+: ${ac_max_here_lines=38} -+ -+# Identity of this package. -+PACKAGE_NAME='newlib' -+PACKAGE_TARNAME='newlib' -+PACKAGE_VERSION='1.17.0' -+PACKAGE_STRING='newlib 1.17.0' -+PACKAGE_BUGREPORT='' -+ -+ac_unique_file="a29khif" -+# Factoring default headers for most tests. -+ac_includes_default="\ -+#include -+#if HAVE_SYS_TYPES_H -+# include -+#endif -+#if HAVE_SYS_STAT_H -+# include -+#endif -+#if STDC_HEADERS -+# include -+# include -+#else -+# if HAVE_STDLIB_H -+# include -+# endif -+#endif -+#if HAVE_STRING_H -+# if !STDC_HEADERS && HAVE_MEMORY_H -+# include -+# endif -+# include -+#endif -+#if HAVE_STRINGS_H -+# include -+#endif -+#if HAVE_INTTYPES_H -+# include -+#else -+# if HAVE_STDINT_H -+# include -+# endif -+#endif -+#if HAVE_UNISTD_H -+# include -+#endif" -+ -+ac_subdirs_all="$ac_subdirs_all a29khif" -+ac_subdirs_all="$ac_subdirs_all arc" -+ac_subdirs_all="$ac_subdirs_all arm" -+ac_subdirs_all="$ac_subdirs_all d10v" -+ac_subdirs_all="$ac_subdirs_all decstation" -+ac_subdirs_all="$ac_subdirs_all h8300hms" -+ac_subdirs_all="$ac_subdirs_all h8500hms" -+ac_subdirs_all="$ac_subdirs_all linux" -+ac_subdirs_all="$ac_subdirs_all m88kbug" -+ac_subdirs_all="$ac_subdirs_all mmixware" -+ac_subdirs_all="$ac_subdirs_all netware" -+ac_subdirs_all="$ac_subdirs_all rdos" -+ac_subdirs_all="$ac_subdirs_all rtems" -+ac_subdirs_all="$ac_subdirs_all sh" -+ac_subdirs_all="$ac_subdirs_all sparc64" -+ac_subdirs_all="$ac_subdirs_all sun4" -+ac_subdirs_all="$ac_subdirs_all sysmec" -+ac_subdirs_all="$ac_subdirs_all sysnec810" -+ac_subdirs_all="$ac_subdirs_all sysnecv850" -+ac_subdirs_all="$ac_subdirs_all sysvi386" -+ac_subdirs_all="$ac_subdirs_all sysvnecv70" -+ac_subdirs_all="$ac_subdirs_all tic80" -+ac_subdirs_all="$ac_subdirs_all w65" -+ac_subdirs_all="$ac_subdirs_all z8ksim" -+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 MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir SED DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL CFLAGS CPPFLAGS ac_ct_CC EXEEXT EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP subdirs CRT0 HAVE_SYS_DIR_TRUE HAVE_SYS_DIR_FALSE LIBOBJS LTLIBOBJS' -+ac_subst_files='' -+ -+# Initialize some variables set by options. -+ac_init_help= -+ac_init_version=false -+# The variables have the same names as the options, with -+# dashes changed to underlines. -+cache_file=/dev/null -+exec_prefix=NONE -+no_create= -+no_recursion= -+prefix=NONE -+program_prefix=NONE -+program_suffix=NONE -+program_transform_name=s,x,x, -+silent= -+site= -+srcdir= -+verbose= -+x_includes=NONE -+x_libraries=NONE -+ -+# Installation directory options. -+# These are left unexpanded so users can "make install exec_prefix=/foo" -+# and all the variables that are supposed to be based on exec_prefix -+# by default will actually change. -+# Use braces instead of parens because sh, perl, etc. also accept them. -+bindir='${exec_prefix}/bin' -+sbindir='${exec_prefix}/sbin' -+libexecdir='${exec_prefix}/libexec' -+datadir='${prefix}/share' -+sysconfdir='${prefix}/etc' -+sharedstatedir='${prefix}/com' -+localstatedir='${prefix}/var' -+libdir='${exec_prefix}/lib' -+includedir='${prefix}/include' -+oldincludedir='/usr/include' -+infodir='${prefix}/info' -+mandir='${prefix}/man' -+ -+ac_prev= -+for ac_option -+do -+ # If the previous option needs an argument, assign it. -+ if test -n "$ac_prev"; then -+ eval "$ac_prev=\$ac_option" -+ ac_prev= -+ continue -+ fi -+ -+ ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` -+ -+ # Accept the important Cygnus configure options, so we can diagnose typos. -+ -+ case $ac_option in -+ -+ -bindir | --bindir | --bindi | --bind | --bin | --bi) -+ ac_prev=bindir ;; -+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) -+ bindir=$ac_optarg ;; -+ -+ -build | --build | --buil | --bui | --bu) -+ ac_prev=build_alias ;; -+ -build=* | --build=* | --buil=* | --bui=* | --bu=*) -+ build_alias=$ac_optarg ;; -+ -+ -cache-file | --cache-file | --cache-fil | --cache-fi \ -+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) -+ ac_prev=cache_file ;; -+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ -+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) -+ cache_file=$ac_optarg ;; -+ -+ --config-cache | -C) -+ cache_file=config.cache ;; -+ -+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da) -+ ac_prev=datadir ;; -+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ -+ | --da=*) -+ datadir=$ac_optarg ;; -+ -+ -disable-* | --disable-*) -+ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 -+ { (exit 1); exit 1; }; } -+ ac_feature=`echo $ac_feature | sed 's/-/_/g'` -+ eval "enable_$ac_feature=no" ;; -+ -+ -enable-* | --enable-*) -+ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 -+ { (exit 1); exit 1; }; } -+ ac_feature=`echo $ac_feature | sed 's/-/_/g'` -+ case $ac_option in -+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; -+ *) ac_optarg=yes ;; -+ esac -+ eval "enable_$ac_feature='$ac_optarg'" ;; -+ -+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ -+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ -+ | --exec | --exe | --ex) -+ ac_prev=exec_prefix ;; -+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ -+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ -+ | --exec=* | --exe=* | --ex=*) -+ exec_prefix=$ac_optarg ;; -+ -+ -gas | --gas | --ga | --g) -+ # Obsolete; use --with-gas. -+ with_gas=yes ;; -+ -+ -help | --help | --hel | --he | -h) -+ ac_init_help=long ;; -+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) -+ ac_init_help=recursive ;; -+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) -+ ac_init_help=short ;; -+ -+ -host | --host | --hos | --ho) -+ ac_prev=host_alias ;; -+ -host=* | --host=* | --hos=* | --ho=*) -+ host_alias=$ac_optarg ;; -+ -+ -includedir | --includedir | --includedi | --included | --include \ -+ | --includ | --inclu | --incl | --inc) -+ ac_prev=includedir ;; -+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ -+ | --includ=* | --inclu=* | --incl=* | --inc=*) -+ includedir=$ac_optarg ;; -+ -+ -infodir | --infodir | --infodi | --infod | --info | --inf) -+ ac_prev=infodir ;; -+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) -+ infodir=$ac_optarg ;; -+ -+ -libdir | --libdir | --libdi | --libd) -+ ac_prev=libdir ;; -+ -libdir=* | --libdir=* | --libdi=* | --libd=*) -+ libdir=$ac_optarg ;; -+ -+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ -+ | --libexe | --libex | --libe) -+ ac_prev=libexecdir ;; -+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ -+ | --libexe=* | --libex=* | --libe=*) -+ libexecdir=$ac_optarg ;; -+ -+ -localstatedir | --localstatedir | --localstatedi | --localstated \ -+ | --localstate | --localstat | --localsta | --localst \ -+ | --locals | --local | --loca | --loc | --lo) -+ ac_prev=localstatedir ;; -+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ -+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ -+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) -+ localstatedir=$ac_optarg ;; -+ -+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m) -+ ac_prev=mandir ;; -+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) -+ mandir=$ac_optarg ;; -+ -+ -nfp | --nfp | --nf) -+ # Obsolete; use --without-fp. -+ with_fp=no ;; -+ -+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ -+ | --no-cr | --no-c | -n) -+ no_create=yes ;; -+ -+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ -+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) -+ no_recursion=yes ;; -+ -+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ -+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ -+ | --oldin | --oldi | --old | --ol | --o) -+ ac_prev=oldincludedir ;; -+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ -+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ -+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) -+ oldincludedir=$ac_optarg ;; -+ -+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) -+ ac_prev=prefix ;; -+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) -+ prefix=$ac_optarg ;; -+ -+ -program-prefix | --program-prefix | --program-prefi | --program-pref \ -+ | --program-pre | --program-pr | --program-p) -+ ac_prev=program_prefix ;; -+ -program-prefix=* | --program-prefix=* | --program-prefi=* \ -+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) -+ program_prefix=$ac_optarg ;; -+ -+ -program-suffix | --program-suffix | --program-suffi | --program-suff \ -+ | --program-suf | --program-su | --program-s) -+ ac_prev=program_suffix ;; -+ -program-suffix=* | --program-suffix=* | --program-suffi=* \ -+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) -+ program_suffix=$ac_optarg ;; -+ -+ -program-transform-name | --program-transform-name \ -+ | --program-transform-nam | --program-transform-na \ -+ | --program-transform-n | --program-transform- \ -+ | --program-transform | --program-transfor \ -+ | --program-transfo | --program-transf \ -+ | --program-trans | --program-tran \ -+ | --progr-tra | --program-tr | --program-t) -+ ac_prev=program_transform_name ;; -+ -program-transform-name=* | --program-transform-name=* \ -+ | --program-transform-nam=* | --program-transform-na=* \ -+ | --program-transform-n=* | --program-transform-=* \ -+ | --program-transform=* | --program-transfor=* \ -+ | --program-transfo=* | --program-transf=* \ -+ | --program-trans=* | --program-tran=* \ -+ | --progr-tra=* | --program-tr=* | --program-t=*) -+ program_transform_name=$ac_optarg ;; -+ -+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ -+ | -silent | --silent | --silen | --sile | --sil) -+ silent=yes ;; -+ -+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) -+ ac_prev=sbindir ;; -+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ -+ | --sbi=* | --sb=*) -+ sbindir=$ac_optarg ;; -+ -+ -sharedstatedir | --sharedstatedir | --sharedstatedi \ -+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ -+ | --sharedst | --shareds | --shared | --share | --shar \ -+ | --sha | --sh) -+ ac_prev=sharedstatedir ;; -+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ -+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ -+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ -+ | --sha=* | --sh=*) -+ sharedstatedir=$ac_optarg ;; -+ -+ -site | --site | --sit) -+ ac_prev=site ;; -+ -site=* | --site=* | --sit=*) -+ site=$ac_optarg ;; -+ -+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) -+ ac_prev=srcdir ;; -+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) -+ srcdir=$ac_optarg ;; -+ -+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ -+ | --syscon | --sysco | --sysc | --sys | --sy) -+ ac_prev=sysconfdir ;; -+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ -+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) -+ sysconfdir=$ac_optarg ;; -+ -+ -target | --target | --targe | --targ | --tar | --ta | --t) -+ ac_prev=target_alias ;; -+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) -+ target_alias=$ac_optarg ;; -+ -+ -v | -verbose | --verbose | --verbos | --verbo | --verb) -+ verbose=yes ;; -+ -+ -version | --version | --versio | --versi | --vers | -V) -+ ac_init_version=: ;; -+ -+ -with-* | --with-*) -+ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid package name: $ac_package" >&2 -+ { (exit 1); exit 1; }; } -+ ac_package=`echo $ac_package| sed 's/-/_/g'` -+ case $ac_option in -+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; -+ *) ac_optarg=yes ;; -+ esac -+ eval "with_$ac_package='$ac_optarg'" ;; -+ -+ -without-* | --without-*) -+ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid package name: $ac_package" >&2 -+ { (exit 1); exit 1; }; } -+ ac_package=`echo $ac_package | sed 's/-/_/g'` -+ eval "with_$ac_package=no" ;; -+ -+ --x) -+ # Obsolete; use --with-x. -+ with_x=yes ;; -+ -+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ -+ | --x-incl | --x-inc | --x-in | --x-i) -+ ac_prev=x_includes ;; -+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ -+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) -+ x_includes=$ac_optarg ;; -+ -+ -x-libraries | --x-libraries | --x-librarie | --x-librari \ -+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) -+ ac_prev=x_libraries ;; -+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ -+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) -+ x_libraries=$ac_optarg ;; -+ -+ -*) { echo "$as_me: error: unrecognized option: $ac_option -+Try \`$0 --help' for more information." >&2 -+ { (exit 1); exit 1; }; } -+ ;; -+ -+ *=*) -+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 -+ { (exit 1); exit 1; }; } -+ ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` -+ eval "$ac_envvar='$ac_optarg'" -+ export $ac_envvar ;; -+ -+ *) -+ # FIXME: should be removed in autoconf 3.0. -+ echo "$as_me: WARNING: you should use --build, --host, --target" >&2 -+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && -+ echo "$as_me: WARNING: invalid host type: $ac_option" >&2 -+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} -+ ;; -+ -+ esac -+done -+ -+if test -n "$ac_prev"; then -+ ac_option=--`echo $ac_prev | sed 's/_/-/g'` -+ { echo "$as_me: error: missing argument to $ac_option" >&2 -+ { (exit 1); exit 1; }; } -+fi -+ -+# Be sure to have absolute paths. -+for ac_var in exec_prefix prefix -+do -+ eval ac_val=$`echo $ac_var` -+ case $ac_val in -+ [\\/$]* | ?:[\\/]* | NONE | '' ) ;; -+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 -+ { (exit 1); exit 1; }; };; -+ esac -+done -+ -+# Be sure to have absolute paths. -+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ -+ localstatedir libdir includedir oldincludedir infodir mandir -+do -+ eval ac_val=$`echo $ac_var` -+ case $ac_val in -+ [\\/$]* | ?:[\\/]* ) ;; -+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 -+ { (exit 1); exit 1; }; };; -+ esac -+done -+ -+# There might be people who depend on the old broken behavior: `$host' -+# used to hold the argument of --host etc. -+# FIXME: To remove some day. -+build=$build_alias -+host=$host_alias -+target=$target_alias -+ -+# FIXME: To remove some day. -+if test "x$host_alias" != x; then -+ if test "x$build_alias" = x; then -+ cross_compiling=maybe -+ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. -+ If a cross compiler is detected then cross compile mode will be used." >&2 -+ elif test "x$build_alias" != "x$host_alias"; then -+ cross_compiling=yes -+ fi -+fi -+ -+ac_tool_prefix= -+test -n "$host_alias" && ac_tool_prefix=$host_alias- -+ -+test "$silent" = yes && exec 6>/dev/null -+ -+ -+# Find the source files, if location was not specified. -+if test -z "$srcdir"; then -+ ac_srcdir_defaulted=yes -+ # Try the directory containing this script, then its parent. -+ ac_confdir=`(dirname "$0") 2>/dev/null || -+$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$0" : 'X\(//\)[^/]' \| \ -+ X"$0" : 'X\(//\)$' \| \ -+ X"$0" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$0" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ srcdir=$ac_confdir -+ if test ! -r $srcdir/$ac_unique_file; then -+ srcdir=.. -+ fi -+else -+ ac_srcdir_defaulted=no -+fi -+if test ! -r $srcdir/$ac_unique_file; then -+ if test "$ac_srcdir_defaulted" = yes; then -+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 -+ { (exit 1); exit 1; }; } -+ else -+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 -+ { (exit 1); exit 1; }; } -+ fi -+fi -+(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || -+ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 -+ { (exit 1); exit 1; }; } -+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -+ac_env_build_alias_set=${build_alias+set} -+ac_env_build_alias_value=$build_alias -+ac_cv_env_build_alias_set=${build_alias+set} -+ac_cv_env_build_alias_value=$build_alias -+ac_env_host_alias_set=${host_alias+set} -+ac_env_host_alias_value=$host_alias -+ac_cv_env_host_alias_set=${host_alias+set} -+ac_cv_env_host_alias_value=$host_alias -+ac_env_target_alias_set=${target_alias+set} -+ac_env_target_alias_value=$target_alias -+ac_cv_env_target_alias_set=${target_alias+set} -+ac_cv_env_target_alias_value=$target_alias -+ac_env_CCAS_set=${CCAS+set} -+ac_env_CCAS_value=$CCAS -+ac_cv_env_CCAS_set=${CCAS+set} -+ac_cv_env_CCAS_value=$CCAS -+ac_env_CCASFLAGS_set=${CCASFLAGS+set} -+ac_env_CCASFLAGS_value=$CCASFLAGS -+ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set} -+ac_cv_env_CCASFLAGS_value=$CCASFLAGS -+ac_env_CC_set=${CC+set} -+ac_env_CC_value=$CC -+ac_cv_env_CC_set=${CC+set} -+ac_cv_env_CC_value=$CC -+ac_env_CFLAGS_set=${CFLAGS+set} -+ac_env_CFLAGS_value=$CFLAGS -+ac_cv_env_CFLAGS_set=${CFLAGS+set} -+ac_cv_env_CFLAGS_value=$CFLAGS -+ac_env_LDFLAGS_set=${LDFLAGS+set} -+ac_env_LDFLAGS_value=$LDFLAGS -+ac_cv_env_LDFLAGS_set=${LDFLAGS+set} -+ac_cv_env_LDFLAGS_value=$LDFLAGS -+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_CPP_set=${CPP+set} -+ac_env_CPP_value=$CPP -+ac_cv_env_CPP_set=${CPP+set} -+ac_cv_env_CPP_value=$CPP -+ -+# -+# Report the --help message. -+# -+if test "$ac_init_help" = "long"; then -+ # Omit some internal or obsolete options to make the list less imposing. -+ # This message is too long to be a string in the A/UX 3.1 sh. -+ cat <<_ACEOF -+\`configure' configures newlib 1.17.0 to adapt to many kinds of systems. -+ -+Usage: $0 [OPTION]... [VAR=VALUE]... -+ -+To assign environment variables (e.g., CC, CFLAGS...), specify them as -+VAR=VALUE. See below for descriptions of some of the useful variables. -+ -+Defaults for the options are specified in brackets. -+ -+Configuration: -+ -h, --help display this help and exit -+ --help=short display options specific to this package -+ --help=recursive display the short help of all the included packages -+ -V, --version display version information and exit -+ -q, --quiet, --silent do not print \`checking...' messages -+ --cache-file=FILE cache test results in FILE [disabled] -+ -C, --config-cache alias for \`--cache-file=config.cache' -+ -n, --no-create do not create output files -+ --srcdir=DIR find the sources in DIR [configure dir or \`..'] -+ -+_ACEOF -+ -+ cat <<_ACEOF -+Installation directories: -+ --prefix=PREFIX install architecture-independent files in PREFIX -+ [$ac_default_prefix] -+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX -+ [PREFIX] -+ -+By default, \`make install' will install all the files in -+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -+an installation prefix other than \`$ac_default_prefix' using \`--prefix', -+for instance \`--prefix=\$HOME'. -+ -+For better control, use the options below. -+ -+Fine tuning of the installation directories: -+ --bindir=DIR user executables [EPREFIX/bin] -+ --sbindir=DIR system admin executables [EPREFIX/sbin] -+ --libexecdir=DIR program executables [EPREFIX/libexec] -+ --datadir=DIR read-only architecture-independent data [PREFIX/share] -+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] -+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] -+ --localstatedir=DIR modifiable single-machine data [PREFIX/var] -+ --libdir=DIR object code libraries [EPREFIX/lib] -+ --includedir=DIR C header files [PREFIX/include] -+ --oldincludedir=DIR C header files for non-gcc [/usr/include] -+ --infodir=DIR info documentation [PREFIX/info] -+ --mandir=DIR man documentation [PREFIX/man] -+_ACEOF -+ -+ cat <<\_ACEOF -+ -+Program names: -+ --program-prefix=PREFIX prepend PREFIX to installed program names -+ --program-suffix=SUFFIX append SUFFIX to installed program names -+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names -+ -+System types: -+ --build=BUILD configure for building on BUILD [guessed] -+ --host=HOST cross-compile to build programs to run on HOST [BUILD] -+_ACEOF -+fi -+ -+if test -n "$ac_init_help"; then -+ case $ac_init_help in -+ short | recursive ) echo "Configuration of newlib 1.17.0:";; -+ esac -+ cat <<\_ACEOF -+ -+Optional Features: -+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) -+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] -+ --enable-multilib build many library versions (default) -+ --enable-target-optspace optimize for space -+ --enable-malloc-debugging indicate malloc debugging requested -+ --enable-newlib-multithread enable support for multiple threads -+ --enable-newlib-iconv enable iconv library support -+ --enable-newlib-elix-level supply desired elix library level (1-4) -+ --disable-newlib-io-float disable printf/scanf family float support -+ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls -+ --disable-dependency-tracking speeds up one-time build -+ --enable-dependency-tracking do not reject slow dependency extractors -+ --enable-maintainer-mode enable make rules and dependencies not useful -+ (and sometimes confusing) to the casual installer -+ --enable-shared[=PKGS] -+ build shared libraries [default=yes] -+ --enable-static[=PKGS] -+ build static libraries [default=yes] -+ --enable-fast-install[=PKGS] -+ optimize for fast installation [default=yes] -+ --disable-libtool-lock avoid locking (might break parallel builds) -+ -+Optional Packages: -+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] -+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) -+ --with-pic try to use only PIC/non-PIC objects [default=use -+ both] -+ --with-gnu-ld assume the C compiler uses GNU ld [default=no] -+ -+Some influential environment variables: -+ CCAS assembler compiler command (defaults to CC) -+ CCASFLAGS assembler compiler flags (defaults to CFLAGS) -+ CC C compiler command -+ CFLAGS C compiler flags -+ LDFLAGS linker flags, e.g. -L if you have libraries in a -+ nonstandard directory -+ CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have -+ headers in a nonstandard directory -+ CPP C preprocessor -+ -+Use these variables to override the choices made by `configure' or to help -+it to find libraries and programs with nonstandard names/locations. -+ -+_ACEOF -+fi -+ -+if test "$ac_init_help" = "recursive"; then -+ # If there are subdirs, report their specific --help. -+ ac_popdir=`pwd` -+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue -+ test -d $ac_dir || continue -+ ac_builddir=. -+ -+if test "$ac_dir" != .; then -+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` -+ # A "../" for each directory in $ac_dir_suffix. -+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -+else -+ ac_dir_suffix= ac_top_builddir= -+fi -+ -+case $srcdir in -+ .) # No --srcdir option. We are building in place. -+ ac_srcdir=. -+ if test -z "$ac_top_builddir"; then -+ ac_top_srcdir=. -+ else -+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` -+ fi ;; -+ [\\/]* | ?:[\\/]* ) # Absolute path. -+ ac_srcdir=$srcdir$ac_dir_suffix; -+ ac_top_srcdir=$srcdir ;; -+ *) # Relative path. -+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix -+ ac_top_srcdir=$ac_top_builddir$srcdir ;; -+esac -+ -+# Do not use `cd foo && pwd` to compute absolute paths, because -+# the directories may not exist. -+case `pwd` in -+.) ac_abs_builddir="$ac_dir";; -+*) -+ case "$ac_dir" in -+ .) ac_abs_builddir=`pwd`;; -+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; -+ *) ac_abs_builddir=`pwd`/"$ac_dir";; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_builddir=${ac_top_builddir}.;; -+*) -+ case ${ac_top_builddir}. in -+ .) ac_abs_top_builddir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; -+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_srcdir=$ac_srcdir;; -+*) -+ case $ac_srcdir in -+ .) ac_abs_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; -+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_srcdir=$ac_top_srcdir;; -+*) -+ case $ac_top_srcdir in -+ .) ac_abs_top_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; -+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; -+ esac;; -+esac -+ -+ cd $ac_dir -+ # Check for guested configure; otherwise get Cygnus style configure. -+ if test -f $ac_srcdir/configure.gnu; then -+ echo -+ $SHELL $ac_srcdir/configure.gnu --help=recursive -+ elif test -f $ac_srcdir/configure; then -+ echo -+ $SHELL $ac_srcdir/configure --help=recursive -+ elif test -f $ac_srcdir/configure.ac || -+ test -f $ac_srcdir/configure.in; then -+ echo -+ $ac_configure --help -+ else -+ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 -+ fi -+ cd $ac_popdir -+ done -+fi -+ -+test -n "$ac_init_help" && exit 0 -+if $ac_init_version; then -+ cat <<\_ACEOF -+newlib configure 1.17.0 -+generated by GNU Autoconf 2.59 -+ -+Copyright (C) 2003 Free Software Foundation, Inc. -+This configure script is free software; the Free Software Foundation -+gives unlimited permission to copy, distribute and modify it. -+_ACEOF -+ exit 0 -+fi -+exec 5>config.log -+cat >&5 <<_ACEOF -+This file contains any messages produced by compilers while -+running configure, to aid debugging if configure makes a mistake. -+ -+It was created by newlib $as_me 1.17.0, which was -+generated by GNU Autoconf 2.59. Invocation command line was -+ -+ $ $0 $@ -+ -+_ACEOF -+{ -+cat <<_ASUNAME -+## --------- ## -+## Platform. ## -+## --------- ## -+ -+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -+uname -m = `(uname -m) 2>/dev/null || echo unknown` -+uname -r = `(uname -r) 2>/dev/null || echo unknown` -+uname -s = `(uname -s) 2>/dev/null || echo unknown` -+uname -v = `(uname -v) 2>/dev/null || echo unknown` -+ -+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` -+ -+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -+hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` -+ -+_ASUNAME -+ -+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ echo "PATH: $as_dir" -+done -+ -+} >&5 -+ -+cat >&5 <<_ACEOF -+ -+ -+## ----------- ## -+## Core tests. ## -+## ----------- ## -+ -+_ACEOF -+ -+ -+# Keep a trace of the command line. -+# Strip out --no-create and --no-recursion so they do not pile up. -+# Strip out --silent because we don't want to record it for future runs. -+# Also quote any args containing shell meta-characters. -+# Make two passes to allow for proper duplicate-argument suppression. -+ac_configure_args= -+ac_configure_args0= -+ac_configure_args1= -+ac_sep= -+ac_must_keep_next=false -+for ac_pass in 1 2 -+do -+ for ac_arg -+ do -+ case $ac_arg in -+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ -+ | -silent | --silent | --silen | --sile | --sil) -+ continue ;; -+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) -+ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; -+ esac -+ case $ac_pass in -+ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; -+ 2) -+ ac_configure_args1="$ac_configure_args1 '$ac_arg'" -+ if test $ac_must_keep_next = true; then -+ ac_must_keep_next=false # Got value, back to normal. -+ else -+ case $ac_arg in -+ *=* | --config-cache | -C | -disable-* | --disable-* \ -+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ -+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ -+ | -with-* | --with-* | -without-* | --without-* | --x) -+ case "$ac_configure_args0 " in -+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; -+ esac -+ ;; -+ -* ) ac_must_keep_next=true ;; -+ esac -+ fi -+ ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" -+ # Get rid of the leading space. -+ ac_sep=" " -+ ;; -+ esac -+ done -+done -+$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -+$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } -+ -+# When interrupted or exit'd, cleanup temporary files, and complete -+# config.log. We remove comments because anyway the quotes in there -+# would cause problems or look ugly. -+# WARNING: Be sure not to use single quotes in there, as some shells, -+# such as our DU 5.0 friend, will then `close' the trap. -+trap 'exit_status=$? -+ # Save into config.log some information that might help in debugging. -+ { -+ echo -+ -+ cat <<\_ASBOX -+## ---------------- ## -+## Cache variables. ## -+## ---------------- ## -+_ASBOX -+ echo -+ # The following way of writing the cache mishandles newlines in values, -+{ -+ (set) 2>&1 | -+ case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in -+ *ac_space=\ *) -+ sed -n \ -+ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; -+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" -+ ;; -+ *) -+ sed -n \ -+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" -+ ;; -+ esac; -+} -+ echo -+ -+ cat <<\_ASBOX -+## ----------------- ## -+## Output variables. ## -+## ----------------- ## -+_ASBOX -+ echo -+ for ac_var in $ac_subst_vars -+ do -+ eval ac_val=$`echo $ac_var` -+ echo "$ac_var='"'"'$ac_val'"'"'" -+ done | sort -+ echo -+ -+ if test -n "$ac_subst_files"; then -+ cat <<\_ASBOX -+## ------------- ## -+## Output files. ## -+## ------------- ## -+_ASBOX -+ echo -+ for ac_var in $ac_subst_files -+ do -+ eval ac_val=$`echo $ac_var` -+ echo "$ac_var='"'"'$ac_val'"'"'" -+ done | sort -+ echo -+ fi -+ -+ if test -s confdefs.h; then -+ cat <<\_ASBOX -+## ----------- ## -+## confdefs.h. ## -+## ----------- ## -+_ASBOX -+ echo -+ sed "/^$/d" confdefs.h | sort -+ echo -+ fi -+ test "$ac_signal" != 0 && -+ echo "$as_me: caught signal $ac_signal" -+ echo "$as_me: exit $exit_status" -+ } >&5 -+ rm -f core *.core && -+ rm -rf conftest* confdefs* conf$$* $ac_clean_files && -+ exit $exit_status -+ ' 0 -+for ac_signal in 1 2 13 15; do -+ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -+done -+ac_signal=0 -+ -+# confdefs.h avoids OS command line length limits that DEFS can exceed. -+rm -rf conftest* confdefs.h -+# AIX cpp loses on an empty file, so make sure it contains at least a newline. -+echo >confdefs.h -+ -+# Predefined preprocessor variables. -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_NAME "$PACKAGE_NAME" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_VERSION "$PACKAGE_VERSION" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_STRING "$PACKAGE_STRING" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -+_ACEOF -+ -+ -+# Let the site file select an alternate cache file if it wants to. -+# Prefer explicitly selected file to automatically selected ones. -+if test -z "$CONFIG_SITE"; then -+ if test "x$prefix" != xNONE; then -+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" -+ else -+ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" -+ fi -+fi -+for ac_site_file in $CONFIG_SITE; do -+ if test -r "$ac_site_file"; then -+ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -+echo "$as_me: loading site script $ac_site_file" >&6;} -+ sed 's/^/| /' "$ac_site_file" >&5 -+ . "$ac_site_file" -+ fi -+done -+ -+if test -r "$cache_file"; then -+ # Some versions of bash will fail to source /dev/null (special -+ # files actually), so we avoid doing that. -+ if test -f "$cache_file"; then -+ { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -+echo "$as_me: loading cache $cache_file" >&6;} -+ case $cache_file in -+ [\\/]* | ?:[\\/]* ) . $cache_file;; -+ *) . ./$cache_file;; -+ esac -+ fi -+else -+ { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -+echo "$as_me: creating cache $cache_file" >&6;} -+ >$cache_file -+fi -+ -+# Check that the precious variables saved in the cache have kept the same -+# value. -+ac_cache_corrupted=false -+for ac_var in `(set) 2>&1 | -+ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do -+ eval ac_old_set=\$ac_cv_env_${ac_var}_set -+ eval ac_new_set=\$ac_env_${ac_var}_set -+ eval ac_old_val="\$ac_cv_env_${ac_var}_value" -+ eval ac_new_val="\$ac_env_${ac_var}_value" -+ case $ac_old_set,$ac_new_set in -+ set,) -+ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} -+ ac_cache_corrupted=: ;; -+ ,set) -+ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -+echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} -+ ac_cache_corrupted=: ;; -+ ,);; -+ *) -+ if test "x$ac_old_val" != "x$ac_new_val"; then -+ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -+echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} -+ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -+echo "$as_me: former value: $ac_old_val" >&2;} -+ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -+echo "$as_me: current value: $ac_new_val" >&2;} -+ ac_cache_corrupted=: -+ fi;; -+ esac -+ # Pass precious variables to config.status. -+ if test "$ac_new_set" = set; then -+ case $ac_new_val in -+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) -+ ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; -+ *) ac_arg=$ac_var=$ac_new_val ;; -+ esac -+ case " $ac_configure_args " in -+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. -+ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; -+ esac -+ fi -+done -+if $ac_cache_corrupted; then -+ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -+echo "$as_me: error: changes in the environment can compromise the build" >&2;} -+ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} -+ { (exit 1); exit 1; }; } -+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 -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ac_aux_dir= -+for ac_dir in ../../.. $srcdir/../../..; do -+ if test -f $ac_dir/install-sh; then -+ ac_aux_dir=$ac_dir -+ ac_install_sh="$ac_aux_dir/install-sh -c" -+ break -+ elif test -f $ac_dir/install.sh; then -+ ac_aux_dir=$ac_dir -+ ac_install_sh="$ac_aux_dir/install.sh -c" -+ break -+ elif test -f $ac_dir/shtool; then -+ ac_aux_dir=$ac_dir -+ ac_install_sh="$ac_aux_dir/shtool install -c" -+ break -+ fi -+done -+if test -z "$ac_aux_dir"; then -+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../.. $srcdir/../../.." >&5 -+echo "$as_me: error: cannot find install-sh or install.sh in ../../.. $srcdir/../../.." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ac_config_guess="$SHELL $ac_aux_dir/config.guess" -+ac_config_sub="$SHELL $ac_aux_dir/config.sub" -+ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. -+ -+ -+ -+# Make sure we can run config.sub. -+$ac_config_sub sun4 >/dev/null 2>&1 || -+ { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 -+echo "$as_me: error: cannot run $ac_config_sub" >&2;} -+ { (exit 1); exit 1; }; } -+ -+echo "$as_me:$LINENO: checking build system type" >&5 -+echo $ECHO_N "checking build system type... $ECHO_C" >&6 -+if test "${ac_cv_build+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_cv_build_alias=$build_alias -+test -z "$ac_cv_build_alias" && -+ ac_cv_build_alias=`$ac_config_guess` -+test -z "$ac_cv_build_alias" && -+ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -+echo "$as_me: error: cannot guess build type; you must specify one" >&2;} -+ { (exit 1); exit 1; }; } -+ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || -+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 -+echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} -+ { (exit 1); exit 1; }; } -+ -+fi -+echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -+echo "${ECHO_T}$ac_cv_build" >&6 -+build=$ac_cv_build -+build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -+build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -+build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -+ -+ -+am__api_version="1.9" -+# Find a good install program. We prefer a C program (faster), -+# so one script is as good as another. But avoid the broken or -+# incompatible versions: -+# SysV /etc/install, /usr/sbin/install -+# SunOS /usr/etc/install -+# IRIX /sbin/install -+# AIX /bin/install -+# AmigaOS /C/install, which installs bootblocks on floppy discs -+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -+# AFS /usr/afsws/bin/install, which mishandles nonexistent args -+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -+# OS/2's system install, which has a completely different semantic -+# ./install, which can be erroneously created by make from ./install.sh. -+echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -+if test -z "$INSTALL"; then -+if test "${ac_cv_path_install+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ # Account for people who put trailing slashes in PATH elements. -+case $as_dir/ in -+ ./ | .// | /cC/* | \ -+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ -+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ -+ /usr/ucb/* ) ;; -+ *) -+ # OSF1 and SCO ODT 3.0 have their own names for install. -+ # Don't use installbsd from OSF since it installs stuff as root -+ # by default. -+ for ac_prog in ginstall scoinst install; do -+ for ac_exec_ext in '' $ac_executable_extensions; do -+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then -+ if test $ac_prog = install && -+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then -+ # AIX install. It has an incompatible calling convention. -+ : -+ elif test $ac_prog = install && -+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then -+ # program-specific install script used by HP pwplus--don't use. -+ : -+ else -+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" -+ break 3 -+ fi -+ fi -+ done -+ done -+ ;; -+esac -+done -+ -+ -+fi -+ if test "${ac_cv_path_install+set}" = set; then -+ INSTALL=$ac_cv_path_install -+ else -+ # As a last resort, use the slow shell script. We don't cache a -+ # path for INSTALL within a source directory, because that will -+ # break other packages using the cache if that directory is -+ # removed, or if the path is relative. -+ INSTALL=$ac_install_sh -+ fi -+fi -+echo "$as_me:$LINENO: result: $INSTALL" >&5 -+echo "${ECHO_T}$INSTALL" >&6 -+ -+# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -+# It thinks the first close brace ends the variable substitution. -+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -+ -+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -+ -+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -+ -+echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -+echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 -+# Just in case -+sleep 1 -+echo timestamp > conftest.file -+# Do `set' in a subshell so we don't clobber the current shell's -+# arguments. Must try -L first in case configure is actually a -+# symlink; some systems play weird games with the mod time of symlinks -+# (eg FreeBSD returns the mod time of the symlink's containing -+# directory). -+if ( -+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` -+ if test "$*" = "X"; then -+ # -L didn't work. -+ set X `ls -t $srcdir/configure conftest.file` -+ fi -+ rm -f conftest.file -+ if test "$*" != "X $srcdir/configure conftest.file" \ -+ && test "$*" != "X conftest.file $srcdir/configure"; then -+ -+ # If neither matched, then we have a broken ls. This can happen -+ # if, for instance, CONFIG_SHELL is bash and it inherits a -+ # broken ls alias from the environment. This has actually -+ # happened. Such a system could not be considered "sane". -+ { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -+alias in your environment" >&5 -+echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -+alias in your environment" >&2;} -+ { (exit 1); exit 1; }; } -+ fi -+ -+ test "$2" = conftest.file -+ ) -+then -+ # Ok. -+ : -+else -+ { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -+Check your system clock" >&5 -+echo "$as_me: error: newly created file is older than distributed files! -+Check your system clock" >&2;} -+ { (exit 1); exit 1; }; } -+fi -+echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+test "$program_prefix" != NONE && -+ program_transform_name="s,^,$program_prefix,;$program_transform_name" -+# Use a double $ so make ignores it. -+test "$program_suffix" != NONE && -+ program_transform_name="s,\$,$program_suffix,;$program_transform_name" -+# Double any \ or $. echo might interpret backslashes. -+# By default was `s,x,x', remove it if useless. -+cat <<\_ACEOF >conftest.sed -+s/[\\$]/&&/g;s/;s,x,x,$// -+_ACEOF -+program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -+rm conftest.sed -+ -+# expand $ac_aux_dir to an absolute path -+am_aux_dir=`cd $ac_aux_dir && pwd` -+ -+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -+# Use eval to expand $SHELL -+if eval "$MISSING --run true"; then -+ am_missing_run="$MISSING --run " -+else -+ am_missing_run= -+ { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -+echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -+fi -+ -+if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then -+ # We used to keeping the `.' as first argument, in order to -+ # allow $(mkdir_p) to be used without argument. As in -+ # $(mkdir_p) $(somedir) -+ # where $(somedir) is conditionally defined. However this is wrong -+ # for two reasons: -+ # 1. if the package is installed by a user who cannot write `.' -+ # make install will fail, -+ # 2. the above comment should most certainly read -+ # $(mkdir_p) $(DESTDIR)$(somedir) -+ # so it does not work when $(somedir) is undefined and -+ # $(DESTDIR) is not. -+ # To support the latter case, we have to write -+ # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), -+ # so the `.' trick is pointless. -+ mkdir_p='mkdir -p --' -+else -+ # On NextStep and OpenStep, the `mkdir' command does not -+ # recognize any option. It will interpret all options as -+ # directories to create, and then abort because `.' already -+ # exists. -+ for d in ./-p ./--version; -+ do -+ test -d $d && rmdir $d -+ done -+ # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. -+ if test -f "$ac_aux_dir/mkinstalldirs"; then -+ mkdir_p='$(mkinstalldirs)' -+ else -+ mkdir_p='$(install_sh) -d' -+ fi -+fi -+ -+for ac_prog in gawk mawk nawk awk -+do -+ # Extract the first word of "$ac_prog", so it can be a program name with args. -+set dummy $ac_prog; ac_word=$2 -+echo "$as_me:$LINENO: checking for $ac_word" >&5 -+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -+if test "${ac_cv_prog_AWK+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$AWK"; then -+ ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+AWK=$ac_cv_prog_AWK -+if test -n "$AWK"; then -+ echo "$as_me:$LINENO: result: $AWK" >&5 -+echo "${ECHO_T}$AWK" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$AWK" && break -+done -+ -+echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -+echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -+set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.make <<\_ACEOF -+all: -+ @echo 'ac_maketemp="$(MAKE)"' -+_ACEOF -+# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -+eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -+if test -n "$ac_maketemp"; then -+ eval ac_cv_prog_make_${ac_make}_set=yes -+else -+ eval ac_cv_prog_make_${ac_make}_set=no -+fi -+rm -f conftest.make -+fi -+if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+ SET_MAKE= -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+ SET_MAKE="MAKE=${MAKE-make}" -+fi -+ -+rm -rf .tst 2>/dev/null -+mkdir .tst 2>/dev/null -+if test -d .tst; then -+ am__leading_dot=. -+else -+ am__leading_dot=_ -+fi -+rmdir .tst 2>/dev/null -+ -+DEPDIR="${am__leading_dot}deps" -+ -+ ac_config_commands="$ac_config_commands depfiles" -+ -+ -+am_make=${MAKE-make} -+cat > confinc << 'END' -+am__doit: -+ @echo done -+.PHONY: am__doit -+END -+# If we don't find an include directive, just comment out the code. -+echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -+echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 -+am__include="#" -+am__quote= -+_am_result=none -+# First try GNU make style include. -+echo "include confinc" > confmf -+# We grep out `Entering directory' and `Leaving directory' -+# messages which can occur if `w' ends up in MAKEFLAGS. -+# In particular we don't look at `^make:' because GNU make might -+# be invoked under some other name (usually "gmake"), in which -+# case it prints its new name instead of `make'. -+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then -+ am__include=include -+ am__quote= -+ _am_result=GNU -+fi -+# Now try BSD make style include. -+if test "$am__include" = "#"; then -+ echo '.include "confinc"' > confmf -+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then -+ am__include=.include -+ am__quote="\"" -+ _am_result=BSD -+ fi -+fi -+ -+ -+echo "$as_me:$LINENO: result: $_am_result" >&5 -+echo "${ECHO_T}$_am_result" >&6 -+rm -f confinc confmf -+ -+# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. -+if test "${enable_dependency_tracking+set}" = set; then -+ enableval="$enable_dependency_tracking" -+ -+fi; -+if test "x$enable_dependency_tracking" != xno; then -+ am_depcomp="$ac_aux_dir/depcomp" -+ AMDEPBACKSLASH='\' -+fi -+ -+ -+if test "x$enable_dependency_tracking" != xno; then -+ AMDEP_TRUE= -+ AMDEP_FALSE='#' -+else -+ AMDEP_TRUE='#' -+ AMDEP_FALSE= -+fi -+ -+ -+ -+ -+# Check whether --enable-multilib or --disable-multilib was given. -+if test "${enable_multilib+set}" = set; then -+ enableval="$enable_multilib" -+ case "${enableval}" in -+ yes) multilib=yes ;; -+ no) multilib=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5 -+echo "$as_me: error: bad value ${enableval} for multilib option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ multilib=yes -+fi; -+# Check whether --enable-target-optspace or --disable-target-optspace was given. -+if test "${enable_target_optspace+set}" = set; then -+ enableval="$enable_target_optspace" -+ case "${enableval}" in -+ yes) target_optspace=yes ;; -+ no) target_optspace=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5 -+echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ target_optspace= -+fi; -+# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given. -+if test "${enable_malloc_debugging+set}" = set; then -+ enableval="$enable_malloc_debugging" -+ case "${enableval}" in -+ yes) malloc_debugging=yes ;; -+ no) malloc_debugging=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5 -+echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ malloc_debugging= -+fi; -+# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given. -+if test "${enable_newlib_multithread+set}" = set; then -+ enableval="$enable_newlib_multithread" -+ case "${enableval}" in -+ yes) newlib_multithread=yes ;; -+ no) newlib_multithread=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5 -+echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ newlib_multithread=yes -+fi; -+# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given. -+if test "${enable_newlib_iconv+set}" = set; then -+ enableval="$enable_newlib_iconv" -+ if test "${newlib_iconv+set}" != set; then -+ case "${enableval}" in -+ yes) newlib_iconv=yes ;; -+ no) newlib_iconv=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5 -+echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+ fi -+else -+ newlib_iconv=${newlib_iconv} -+fi; -+# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given. -+if test "${enable_newlib_elix_level+set}" = set; then -+ enableval="$enable_newlib_elix_level" -+ case "${enableval}" in -+ 0) newlib_elix_level=0 ;; -+ 1) newlib_elix_level=1 ;; -+ 2) newlib_elix_level=2 ;; -+ 3) newlib_elix_level=3 ;; -+ 4) newlib_elix_level=4 ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5 -+echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ newlib_elix_level=0 -+fi; -+# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given. -+if test "${enable_newlib_io_float+set}" = set; then -+ enableval="$enable_newlib_io_float" -+ case "${enableval}" in -+ yes) newlib_io_float=yes ;; -+ no) newlib_io_float=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5 -+echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ newlib_io_float=yes -+fi; -+# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given. -+if test "${enable_newlib_supplied_syscalls+set}" = set; then -+ enableval="$enable_newlib_supplied_syscalls" -+ case "${enableval}" in -+ yes) newlib_may_supply_syscalls=yes ;; -+ no) newlib_may_supply_syscalls=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5 -+echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ newlib_may_supply_syscalls=yes -+fi; -+ -+ -+if test x${newlib_may_supply_syscalls} = xyes; then -+ MAY_SUPPLY_SYSCALLS_TRUE= -+ MAY_SUPPLY_SYSCALLS_FALSE='#' -+else -+ MAY_SUPPLY_SYSCALLS_TRUE='#' -+ MAY_SUPPLY_SYSCALLS_FALSE= -+fi -+ -+ -+ -+test -z "${with_target_subdir}" && with_target_subdir=. -+ -+if test "${srcdir}" = "."; then -+ if test "${with_target_subdir}" != "."; then -+ newlib_basedir="${srcdir}/${with_multisrctop}../../.." -+ else -+ newlib_basedir="${srcdir}/${with_multisrctop}../.." -+ fi -+else -+ newlib_basedir="${srcdir}/../.." -+fi -+ -+ -+echo "$as_me:$LINENO: checking host system type" >&5 -+echo $ECHO_N "checking host system type... $ECHO_C" >&6 -+if test "${ac_cv_host+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_cv_host_alias=$host_alias -+test -z "$ac_cv_host_alias" && -+ ac_cv_host_alias=$ac_cv_build_alias -+ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || -+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 -+echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} -+ { (exit 1); exit 1; }; } -+ -+fi -+echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -+echo "${ECHO_T}$ac_cv_host" >&6 -+host=$ac_cv_host -+host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -+host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -+host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -+ -+ -+ -+# test to see if srcdir already configured -+if test "`cd $srcdir && pwd`" != "`pwd`" && -+ test -f $srcdir/config.status; then -+ { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -+echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ -+# test whether we have cygpath -+if test -z "$CYGPATH_W"; then -+ if (cygpath --version) >/dev/null 2>/dev/null; then -+ CYGPATH_W='cygpath -w' -+ else -+ CYGPATH_W=echo -+ fi -+fi -+ -+ -+# Define the identity of the package. -+ PACKAGE='newlib' -+ VERSION='1.17.0' -+ -+ -+# Some tools Automake needs. -+ -+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} -+ -+ -+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} -+ -+ -+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} -+ -+ -+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} -+ -+ -+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} -+ -+install_sh=${install_sh-"$am_aux_dir/install-sh"} -+ -+# Installed binaries are usually stripped using `strip' when the user -+# run `make install-strip'. However `strip' might not be the right -+# tool to use in cross-compilation environments, therefore Automake -+# will honor the `STRIP' environment variable to overrule this program. -+if test "$cross_compiling" != no; then -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -+set dummy ${ac_tool_prefix}strip; 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="${ac_tool_prefix}strip" -+ 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 -+ -+fi -+if test -z "$ac_cv_prog_STRIP"; then -+ ac_ct_STRIP=$STRIP -+ # Extract the first word of "strip", so it can be a program name with args. -+set dummy strip; 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_STRIP+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_STRIP"; then -+ ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip" -+ 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_STRIP" && ac_cv_prog_ac_ct_STRIP=":" -+fi -+fi -+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -+if test -n "$ac_ct_STRIP"; then -+ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -+echo "${ECHO_T}$ac_ct_STRIP" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ STRIP=$ac_ct_STRIP -+else -+ STRIP="$ac_cv_prog_STRIP" -+fi -+ -+fi -+INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" -+ -+# We need awk for the "check" target. The system "awk" is bad on -+# some platforms. -+# Always define AMTAR for backward compatibility. -+ -+AMTAR=${AMTAR-"${am_missing_run}tar"} -+ -+am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' -+ -+ -+ -+ -+ -+ -+# FIXME: We temporarily define our own version of AC_PROG_CC. This is -+# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -+# are probably using a cross compiler, which will not be able to fully -+# link an executable. This should really be fixed in autoconf -+# itself. -+ -+ -+ -+ -+ -+ -+ -+# Extract the first word of "gcc", so it can be a program name with args. -+set dummy gcc; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # 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="gcc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ -+depcc="$CC" am_compiler_list= -+ -+echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -+echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 -+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then -+ # We make a subdir and do the tests there. Otherwise we can end up -+ # making bogus files that we don't know about and never remove. For -+ # instance it was reported that on HP-UX the gcc test will end up -+ # making a dummy file named `D' -- because `-MD' means `put the output -+ # in D'. -+ mkdir conftest.dir -+ # Copy depcomp to subdir because otherwise we won't find it if we're -+ # using a relative directory. -+ cp "$am_depcomp" conftest.dir -+ cd conftest.dir -+ # We will build objects and dependencies in a subdirectory because -+ # it helps to detect inapplicable dependency modes. For instance -+ # both Tru64's cc and ICC support -MD to output dependencies as a -+ # side effect of compilation, but ICC will put the dependencies in -+ # the current directory while Tru64 will put them in the object -+ # directory. -+ mkdir sub -+ -+ am_cv_CC_dependencies_compiler_type=none -+ if test "$am_compiler_list" = ""; then -+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` -+ fi -+ for depmode in $am_compiler_list; do -+ # Setup a source with many dependencies, because some compilers -+ # like to wrap large dependency lists on column 80 (with \), and -+ # we should not choose a depcomp mode which is confused by this. -+ # -+ # We need to recreate these files for each test, as the compiler may -+ # overwrite some of them when testing with obscure command lines. -+ # This happens at least with the AIX C compiler. -+ : > sub/conftest.c -+ for i in 1 2 3 4 5 6; do -+ echo '#include "conftst'$i'.h"' >> sub/conftest.c -+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with -+ # Solaris 8's {/usr,}/bin/sh. -+ touch sub/conftst$i.h -+ done -+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf -+ -+ case $depmode in -+ nosideeffect) -+ # after this tag, mechanisms are not by side-effect, so they'll -+ # only be used when explicitly requested -+ if test "x$enable_dependency_tracking" = xyes; then -+ continue -+ else -+ break -+ fi -+ ;; -+ none) break ;; -+ esac -+ # We check with `-c' and `-o' for the sake of the "dashmstdout" -+ # mode. It turns out that the SunPro C++ compiler does not properly -+ # handle `-M -o', and we need to detect this. -+ if depmode=$depmode \ -+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ -+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ -+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ -+ >/dev/null 2>conftest.err && -+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && -+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && -+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then -+ # icc doesn't choke on unknown options, it will just issue warnings -+ # or remarks (even with -Werror). So we grep stderr for any message -+ # that says an option was ignored or not supported. -+ # When given -MP, icc 7.0 and 7.1 complain thusly: -+ # icc: Command line warning: ignoring option '-M'; no argument required -+ # The diagnosis changed in icc 8.0: -+ # icc: Command line remark: option '-MP' not supported -+ if (grep 'ignoring option' conftest.err || -+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else -+ am_cv_CC_dependencies_compiler_type=$depmode -+ break -+ fi -+ fi -+ done -+ -+ cd .. -+ rm -rf conftest.dir -+else -+ am_cv_CC_dependencies_compiler_type=none -+fi -+ -+fi -+echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -+echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 -+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type -+ -+ -+ -+if -+ test "x$enable_dependency_tracking" != xno \ -+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then -+ am__fastdepCC_TRUE= -+ am__fastdepCC_FALSE='#' -+else -+ am__fastdepCC_TRUE='#' -+ am__fastdepCC_FALSE= -+fi -+ -+ -+if test -z "$CC"; then -+ # Extract the first word of "cc", so it can be a program name with args. -+set dummy cc; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # Let the user override the test. -+else -+ ac_prog_rejected=no -+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 -+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then -+ ac_prog_rejected=yes -+ continue -+ fi -+ ac_cv_prog_CC="cc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+if test $ac_prog_rejected = yes; then -+ # We found a bogon in the path, so make sure we never use it. -+ set dummy $ac_cv_prog_CC -+ shift -+ if test $# != 0; then -+ # We chose a different compiler from the bogus one. -+ # However, it has the same basename, so the bogon will be chosen -+ # first if we set CC to just the basename; use the full file name. -+ shift -+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" -+ fi -+fi -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 -+echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ -+echo "$as_me:$LINENO: checking whether we are using GNU C" >&5 -+echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6 -+if test "${ac_cv_c_compiler_gnu+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat > conftest.c <&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then -+ ac_cv_c_compiler_gnu=yes -+else -+ ac_cv_c_compiler_gnu=no -+fi -+fi -+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -+ -+if test $ac_cv_c_compiler_gnu = yes; then -+ GCC=yes -+ ac_test_CFLAGS="${CFLAGS+set}" -+ ac_save_CFLAGS="$CFLAGS" -+ CFLAGS= -+ ac_test_CFLAGS=${CFLAGS+set} -+ac_save_CFLAGS=$CFLAGS -+CFLAGS="-g" -+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -+if test "${ac_cv_prog_cc_g+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ 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_c_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_cc_g=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_prog_cc_g=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -+if test "$ac_test_CFLAGS" = set; then -+ CFLAGS=$ac_save_CFLAGS -+elif test $ac_cv_prog_cc_g = yes; then -+ if test "$GCC" = yes; then -+ CFLAGS="-g -O2" -+ else -+ CFLAGS="-g" -+ fi -+else -+ if test "$GCC" = yes; then -+ CFLAGS="-O2" -+ else -+ CFLAGS= -+ fi -+fi -+ if test "$ac_test_CFLAGS" = set; then -+ CFLAGS="$ac_save_CFLAGS" -+ elif test $ac_cv_prog_cc_g = yes; then -+ CFLAGS="-g -O2" -+ else -+ CFLAGS="-O2" -+ fi -+else -+ GCC= -+ test "${CFLAGS+set}" = set || CFLAGS="-g" -+fi -+ -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -+set dummy ${ac_tool_prefix}as; 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="${ac_tool_prefix}as" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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 -+if test -z "$ac_cv_prog_AS"; then -+ ac_ct_AS=$AS -+ # Extract the first word of "as", so it can be a program name with args. -+set dummy as; 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_AS+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_AS"; then -+ ac_cv_prog_ac_ct_AS="$ac_ct_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_ac_ct_AS="as" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_AS=$ac_cv_prog_ac_ct_AS -+if test -n "$ac_ct_AS"; then -+ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 -+echo "${ECHO_T}$ac_ct_AS" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ AS=$ac_ct_AS -+else -+ AS="$ac_cv_prog_AS" -+fi -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -+set dummy ${ac_tool_prefix}ar; 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="${ac_tool_prefix}ar" -+ 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 -+if test -z "$ac_cv_prog_AR"; then -+ ac_ct_AR=$AR -+ # Extract the first word of "ar", so it can be a program name with args. -+set dummy ar; 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_AR+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_AR"; then -+ ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="ar" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_AR=$ac_cv_prog_ac_ct_AR -+if test -n "$ac_ct_AR"; then -+ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -+echo "${ECHO_T}$ac_ct_AR" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ AR=$ac_ct_AR -+else -+ AR="$ac_cv_prog_AR" -+fi -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -+set dummy ${ac_tool_prefix}ranlib; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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 -+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="${ac_tool_prefix}ranlib" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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 -+if test -z "$ac_cv_prog_RANLIB"; then -+ ac_ct_RANLIB=$RANLIB -+ # Extract the first word of "ranlib", so it can be a program name with args. -+set dummy ranlib; 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_RANLIB+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_RANLIB"; then -+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib" -+ 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_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" -+fi -+fi -+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -+if test -n "$ac_ct_RANLIB"; then -+ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -+echo "${ECHO_T}$ac_ct_RANLIB" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ RANLIB=$ac_ct_RANLIB -+else -+ RANLIB="$ac_cv_prog_RANLIB" -+fi -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args. -+set dummy ${ac_tool_prefix}readelf; 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_READELF+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$READELF"; then -+ ac_cv_prog_READELF="$READELF" # 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_READELF="${ac_tool_prefix}readelf" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+READELF=$ac_cv_prog_READELF -+if test -n "$READELF"; then -+ echo "$as_me:$LINENO: result: $READELF" >&5 -+echo "${ECHO_T}$READELF" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$ac_cv_prog_READELF"; then -+ ac_ct_READELF=$READELF -+ # Extract the first word of "readelf", so it can be a program name with args. -+set dummy readelf; 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_READELF+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_READELF"; then -+ ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # 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_READELF="readelf" -+ 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_READELF" && ac_cv_prog_ac_ct_READELF=":" -+fi -+fi -+ac_ct_READELF=$ac_cv_prog_ac_ct_READELF -+if test -n "$ac_ct_READELF"; then -+ echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5 -+echo "${ECHO_T}$ac_ct_READELF" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ READELF=$ac_ct_READELF -+else -+ READELF="$ac_cv_prog_READELF" -+fi -+ -+ -+# Find a good install program. We prefer a C program (faster), -+# so one script is as good as another. But avoid the broken or -+# incompatible versions: -+# SysV /etc/install, /usr/sbin/install -+# SunOS /usr/etc/install -+# IRIX /sbin/install -+# AIX /bin/install -+# AmigaOS /C/install, which installs bootblocks on floppy discs -+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -+# AFS /usr/afsws/bin/install, which mishandles nonexistent args -+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -+# OS/2's system install, which has a completely different semantic -+# ./install, which can be erroneously created by make from ./install.sh. -+echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -+if test -z "$INSTALL"; then -+if test "${ac_cv_path_install+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ # Account for people who put trailing slashes in PATH elements. -+case $as_dir/ in -+ ./ | .// | /cC/* | \ -+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ -+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ -+ /usr/ucb/* ) ;; -+ *) -+ # OSF1 and SCO ODT 3.0 have their own names for install. -+ # Don't use installbsd from OSF since it installs stuff as root -+ # by default. -+ for ac_prog in ginstall scoinst install; do -+ for ac_exec_ext in '' $ac_executable_extensions; do -+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then -+ if test $ac_prog = install && -+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then -+ # AIX install. It has an incompatible calling convention. -+ : -+ elif test $ac_prog = install && -+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then -+ # program-specific install script used by HP pwplus--don't use. -+ : -+ else -+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" -+ break 3 -+ fi -+ fi -+ done -+ done -+ ;; -+esac -+done -+ -+ -+fi -+ if test "${ac_cv_path_install+set}" = set; then -+ INSTALL=$ac_cv_path_install -+ else -+ # As a last resort, use the slow shell script. We don't cache a -+ # path for INSTALL within a source directory, because that will -+ # break other packages using the cache if that directory is -+ # removed, or if the path is relative. -+ INSTALL=$ac_install_sh -+ fi -+fi -+echo "$as_me:$LINENO: result: $INSTALL" >&5 -+echo "${ECHO_T}$INSTALL" >&6 -+ -+# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -+# It thinks the first close brace ends the variable substitution. -+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -+ -+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -+ -+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -+ -+ -+# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */ -+ac_given_INSTALL=$INSTALL -+ -+echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 -+echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 -+ # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -+if test "${enable_maintainer_mode+set}" = set; then -+ enableval="$enable_maintainer_mode" -+ USE_MAINTAINER_MODE=$enableval -+else -+ USE_MAINTAINER_MODE=no -+fi; -+ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 -+echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 -+ -+ -+if test $USE_MAINTAINER_MODE = yes; then -+ MAINTAINER_MODE_TRUE= -+ MAINTAINER_MODE_FALSE='#' -+else -+ MAINTAINER_MODE_TRUE='#' -+ MAINTAINER_MODE_FALSE= -+fi -+ -+ MAINT=$MAINTAINER_MODE_TRUE -+ -+ -+# By default we simply use the C compiler to build assembly code. -+ -+test "${CCAS+set}" = set || CCAS=$CC -+test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS -+ -+ -+ -+ -+# We need AC_EXEEXT to keep automake happy in cygnus mode. However, -+# at least currently, we never actually build a program, so we never -+# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -+# fails, because we are probably configuring with a cross compiler -+# which can't create executables. So we include AC_EXEEXT to keep -+# automake happy, but we don't execute it, since we don't care about -+# the result. -+if false; then -+ -+ dummy_var=1 -+fi -+ -+. ${newlib_basedir}/configure.host -+ -+newlib_cflags="${newlib_cflags} -fno-builtin" -+ -+NEWLIB_CFLAGS=${newlib_cflags} -+ -+ -+LDFLAGS=${ldflags} -+ -+ -+ -+ -+if test x${newlib_elix_level} = x0; then -+ ELIX_LEVEL_0_TRUE= -+ ELIX_LEVEL_0_FALSE='#' -+else -+ ELIX_LEVEL_0_TRUE='#' -+ ELIX_LEVEL_0_FALSE= -+fi -+ -+ -+ -+if test x${newlib_elix_level} = x1; then -+ ELIX_LEVEL_1_TRUE= -+ ELIX_LEVEL_1_FALSE='#' -+else -+ ELIX_LEVEL_1_TRUE='#' -+ ELIX_LEVEL_1_FALSE= -+fi -+ -+ -+ -+if test x${newlib_elix_level} = x2; then -+ ELIX_LEVEL_2_TRUE= -+ ELIX_LEVEL_2_FALSE='#' -+else -+ ELIX_LEVEL_2_TRUE='#' -+ ELIX_LEVEL_2_FALSE= -+fi -+ -+ -+ -+if test x${newlib_elix_level} = x3; then -+ ELIX_LEVEL_3_TRUE= -+ ELIX_LEVEL_3_FALSE='#' -+else -+ ELIX_LEVEL_3_TRUE='#' -+ ELIX_LEVEL_3_FALSE= -+fi -+ -+ -+ -+if test x${newlib_elix_level} = x4; then -+ ELIX_LEVEL_4_TRUE= -+ ELIX_LEVEL_4_FALSE='#' -+else -+ ELIX_LEVEL_4_TRUE='#' -+ ELIX_LEVEL_4_FALSE= -+fi -+ -+ -+ -+ -+if test x${use_libtool} = xyes; then -+ USE_LIBTOOL_TRUE= -+ USE_LIBTOOL_FALSE='#' -+else -+ USE_LIBTOOL_TRUE='#' -+ USE_LIBTOOL_FALSE= -+fi -+ -+ -+# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we -+# use oext, which is set in configure.host based on the target platform. -+OBJEXT=${oext} -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -+echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 -+if test "${lt_cv_path_SED+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ # Loop through the user's path and test for sed and gsed. -+# Then use that list of sed's as ones to test for truncation. -+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ for lt_ac_prog in sed gsed; do -+ for ac_exec_ext in '' $ac_executable_extensions; do -+ if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then -+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" -+ fi -+ done -+ done -+done -+IFS=$as_save_IFS -+lt_ac_max=0 -+lt_ac_count=0 -+# Add /usr/xpg4/bin/sed as it is typically found on Solaris -+# along with /bin/sed that truncates output. -+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do -+ test ! -f $lt_ac_sed && continue -+ cat /dev/null > conftest.in -+ lt_ac_count=0 -+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in -+ # Check for GNU sed and select it if it is found. -+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then -+ lt_cv_path_SED=$lt_ac_sed -+ break -+ fi -+ while true; do -+ cat conftest.in conftest.in >conftest.tmp -+ mv conftest.tmp conftest.in -+ cp conftest.in conftest.nl -+ echo >>conftest.nl -+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break -+ cmp -s conftest.out conftest.nl || break -+ # 10000 chars as input seems more than enough -+ test $lt_ac_count -gt 10 && break -+ lt_ac_count=`expr $lt_ac_count + 1` -+ if test $lt_ac_count -gt $lt_ac_max; then -+ lt_ac_max=$lt_ac_count -+ lt_cv_path_SED=$lt_ac_sed -+ fi -+ done -+done -+ -+fi -+ -+SED=$lt_cv_path_SED -+ -+echo "$as_me:$LINENO: result: $SED" >&5 -+echo "${ECHO_T}$SED" >&6 -+ -+test -z "$SED" && SED=sed -+Xsed="$SED -e 1s/^X//" -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+if test "${use_libtool}" = "yes"; then -+enable_win32_dll=yes -+ -+case $host in -+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -+set dummy ${ac_tool_prefix}as; 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="${ac_tool_prefix}as" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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 -+if test -z "$ac_cv_prog_AS"; then -+ ac_ct_AS=$AS -+ # Extract the first word of "as", so it can be a program name with args. -+set dummy as; 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_AS+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_AS"; then -+ ac_cv_prog_ac_ct_AS="$ac_ct_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_ac_ct_AS="as" -+ 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_AS" && ac_cv_prog_ac_ct_AS="false" -+fi -+fi -+ac_ct_AS=$ac_cv_prog_ac_ct_AS -+if test -n "$ac_ct_AS"; then -+ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 -+echo "${ECHO_T}$ac_ct_AS" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ AS=$ac_ct_AS -+else -+ AS="$ac_cv_prog_AS" -+fi -+ -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -+set dummy ${ac_tool_prefix}dlltool; 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="${ac_tool_prefix}dlltool" -+ 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 -+ -+fi -+if test -z "$ac_cv_prog_DLLTOOL"; then -+ ac_ct_DLLTOOL=$DLLTOOL -+ # Extract the first word of "dlltool", so it can be a program name with args. -+set dummy dlltool; 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_DLLTOOL+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_DLLTOOL"; then -+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_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_ac_ct_DLLTOOL="dlltool" -+ 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_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" -+fi -+fi -+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -+if test -n "$ac_ct_DLLTOOL"; then -+ echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 -+echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ DLLTOOL=$ac_ct_DLLTOOL -+else -+ DLLTOOL="$ac_cv_prog_DLLTOOL" -+fi -+ -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -+set dummy ${ac_tool_prefix}objdump; 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="${ac_tool_prefix}objdump" -+ 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 -+ -+fi -+if test -z "$ac_cv_prog_OBJDUMP"; then -+ ac_ct_OBJDUMP=$OBJDUMP -+ # Extract the first word of "objdump", so it can be a program name with args. -+set dummy objdump; 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_OBJDUMP+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_OBJDUMP"; then -+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_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_ac_ct_OBJDUMP="objdump" -+ 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_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" -+fi -+fi -+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -+if test -n "$ac_ct_OBJDUMP"; then -+ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 -+echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ OBJDUMP=$ac_ct_OBJDUMP -+else -+ OBJDUMP="$ac_cv_prog_OBJDUMP" -+fi -+ -+ ;; -+esac -+ -+test -z "$AS" && AS=as -+ -+ -+ -+ -+ -+test -z "$DLLTOOL" && DLLTOOL=dlltool -+ -+ -+ -+ -+ -+test -z "$OBJDUMP" && OBJDUMP=objdump -+ -+ -+ -+ -+ -+ -+ -+case `pwd` in -+ *\ * | *\ *) -+ { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -+echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; -+esac -+ -+ -+ -+macro_version='2.2.6' -+macro_revision='1.3012' -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ltmain="$ac_aux_dir/ltmain.sh" -+ -+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 -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -+set dummy ${ac_tool_prefix}gcc; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # 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="${ac_tool_prefix}gcc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$ac_cv_prog_CC"; then -+ ac_ct_CC=$CC -+ # Extract the first word of "gcc", so it can be a program name with args. -+set dummy gcc; 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_CC+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_CC"; then -+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_CC="gcc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_CC=$ac_cv_prog_ac_ct_CC -+if test -n "$ac_ct_CC"; then -+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -+echo "${ECHO_T}$ac_ct_CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ CC=$ac_ct_CC -+else -+ CC="$ac_cv_prog_CC" -+fi -+ -+if test -z "$CC"; then -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -+set dummy ${ac_tool_prefix}cc; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # 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="${ac_tool_prefix}cc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$ac_cv_prog_CC"; then -+ ac_ct_CC=$CC -+ # Extract the first word of "cc", so it can be a program name with args. -+set dummy cc; 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_CC+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_CC"; then -+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_CC="cc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_CC=$ac_cv_prog_ac_ct_CC -+if test -n "$ac_ct_CC"; then -+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -+echo "${ECHO_T}$ac_ct_CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ CC=$ac_ct_CC -+else -+ CC="$ac_cv_prog_CC" -+fi -+ -+fi -+if test -z "$CC"; then -+ # Extract the first word of "cc", so it can be a program name with args. -+set dummy cc; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # Let the user override the test. -+else -+ ac_prog_rejected=no -+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 -+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then -+ ac_prog_rejected=yes -+ continue -+ fi -+ ac_cv_prog_CC="cc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+if test $ac_prog_rejected = yes; then -+ # We found a bogon in the path, so make sure we never use it. -+ set dummy $ac_cv_prog_CC -+ shift -+ if test $# != 0; then -+ # We chose a different compiler from the bogus one. -+ # However, it has the same basename, so the bogon will be chosen -+ # first if we set CC to just the basename; use the full file name. -+ shift -+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" -+ fi -+fi -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$CC"; then -+ if test -n "$ac_tool_prefix"; then -+ for ac_prog in cl -+ 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_CC+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # 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="$ac_tool_prefix$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$CC" && break -+ done -+fi -+if test -z "$CC"; then -+ ac_ct_CC=$CC -+ for ac_prog in cl -+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_CC+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_CC"; then -+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_CC="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_CC=$ac_cv_prog_ac_ct_CC -+if test -n "$ac_ct_CC"; then -+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -+echo "${ECHO_T}$ac_ct_CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$ac_ct_CC" && break -+done -+ -+ CC=$ac_ct_CC -+fi -+ -+fi -+ -+ -+test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -+See \`config.log' for more details." >&5 -+echo "$as_me: error: no acceptable C compiler found in \$PATH -+See \`config.log' for more details." >&2;} -+ { (exit 1); exit 1; }; } -+ -+# 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); } -+ -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ return 0; -+} -+_ACEOF -+ac_clean_files_save=$ac_clean_files -+ac_clean_files="$ac_clean_files a.out a.exe b.out" -+# Try to create an executable without -o first, disregard a.out. -+# It will help us diagnose broken compilers, and finding out an intuition -+# of exeext. -+echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -+echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 -+ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -+if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 -+ (eval $ac_link_default) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ # Find the output, starting from the most likely. This scheme is -+# not robust to junk in `.', hence go to wildcards (a.*) only as a last -+# resort. -+ -+# Be careful to initialize this variable, since it used to be cached. -+# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. -+ac_cv_exeext= -+# b.out is created by i960 compilers. -+for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out -+do -+ test -f "$ac_file" || continue -+ case $ac_file in -+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) -+ ;; -+ conftest.$ac_ext ) -+ # This is the source file. -+ ;; -+ [ab].out ) -+ # We found the default executable, but exeext='' is most -+ # certainly right. -+ break;; -+ *.* ) -+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` -+ # FIXME: I believe we export ac_cv_exeext for Libtool, -+ # but it would be cool to find out if it's true. Does anybody -+ # maintain Libtool? --akim. -+ export ac_cv_exeext -+ break;; -+ * ) -+ break;; -+ esac -+done -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -+See \`config.log' for more details." >&5 -+echo "$as_me: error: C compiler cannot create executables -+See \`config.log' for more details." >&2;} -+ { (exit 77); exit 77; }; } -+fi -+ -+ac_exeext=$ac_cv_exeext -+echo "$as_me:$LINENO: result: $ac_file" >&5 -+echo "${ECHO_T}$ac_file" >&6 -+ -+# Check the compiler produces executables we can run. If not, either -+# the compiler is broken, or we cross compile. -+echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -+echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 -+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -+# If not cross compiling, check that we can run a simple program. -+if test "$cross_compiling" != yes; then -+ if { ac_try='./$ac_file' -+ { (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 -+ cross_compiling=no -+ else -+ if test "$cross_compiling" = maybe; then -+ cross_compiling=yes -+ else -+ { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -+If you meant to cross compile, use \`--host'. -+See \`config.log' for more details." >&5 -+echo "$as_me: error: cannot run C compiled programs. -+If you meant to cross compile, use \`--host'. -+See \`config.log' for more details." >&2;} -+ { (exit 1); exit 1; }; } -+ fi -+ fi -+fi -+echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+ -+rm -f a.out a.exe conftest$ac_cv_exeext b.out -+ac_clean_files=$ac_clean_files_save -+# Check the compiler produces executables we can run. If not, either -+# the compiler is broken, or we cross compile. -+echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -+echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 -+echo "$as_me:$LINENO: result: $cross_compiling" >&5 -+echo "${ECHO_T}$cross_compiling" >&6 -+ -+echo "$as_me:$LINENO: checking for suffix of executables" >&5 -+echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ # If both `conftest.exe' and `conftest' are `present' (well, observable) -+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -+# work properly (i.e., refer to `conftest.exe'), while it won't with -+# `rm'. -+for ac_file in conftest.exe conftest conftest.*; do -+ test -f "$ac_file" || continue -+ case $ac_file in -+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; -+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` -+ export ac_cv_exeext -+ break;; -+ * ) break;; -+ esac -+done -+else -+ { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -+See \`config.log' for more details." >&5 -+echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -+See \`config.log' for more details." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ -+rm -f conftest$ac_cv_exeext -+echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -+echo "${ECHO_T}$ac_cv_exeext" >&6 -+ -+rm -f conftest.$ac_ext -+EXEEXT=$ac_cv_exeext -+ac_exeext=$EXEEXT -+echo "$as_me:$LINENO: checking for suffix of object files" >&5 -+echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 -+if test "${ac_cv_objext+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.o conftest.obj -+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do -+ case $ac_file in -+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; -+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` -+ break;; -+ esac -+done -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -+See \`config.log' for more details." >&5 -+echo "$as_me: error: cannot compute suffix of object files: cannot compile -+See \`config.log' for more details." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ -+rm -f conftest.$ac_cv_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -+echo "${ECHO_T}$ac_cv_objext" >&6 -+OBJEXT=$ac_cv_objext -+ac_objext=$OBJEXT -+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_c_compiler_gnu+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+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_c_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: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_compiler_gnu=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+ac_cv_c_compiler_gnu=$ac_compiler_gnu -+ -+fi -+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -+GCC=`test $ac_compiler_gnu = yes && echo yes` -+ac_test_CFLAGS=${CFLAGS+set} -+ac_save_CFLAGS=$CFLAGS -+CFLAGS="-g" -+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -+if test "${ac_cv_prog_cc_g+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ 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_c_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_cc_g=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_prog_cc_g=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -+if test "$ac_test_CFLAGS" = set; then -+ CFLAGS=$ac_save_CFLAGS -+elif test $ac_cv_prog_cc_g = yes; then -+ if test "$GCC" = yes; then -+ CFLAGS="-g -O2" -+ else -+ CFLAGS="-g" -+ fi -+else -+ if test "$GCC" = yes; then -+ CFLAGS="-O2" -+ else -+ CFLAGS= -+ fi -+fi -+echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 -+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 -+if test "${ac_cv_prog_cc_stdc+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_cv_prog_cc_stdc=no -+ac_save_CC=$CC -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include -+#include -+#include -+#include -+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -+struct buf { int x; }; -+FILE * (*rcsopen) (struct buf *, struct stat *, int); -+static char *e (p, i) -+ char **p; -+ int i; -+{ -+ return p[i]; -+} -+static char *f (char * (*g) (char **, int), char **p, ...) -+{ -+ char *s; -+ va_list v; -+ va_start (v,p); -+ s = g (p, va_arg (v,int)); -+ va_end (v); -+ return s; -+} -+ -+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has -+ function prototypes and stuff, but not '\xHH' hex character constants. -+ These don't provoke an error unfortunately, instead are silently treated -+ as 'x'. The following induces an error, until -std1 is added to get -+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an -+ array size at least. It's necessary to write '\x00'==0 to get something -+ that's true only with -std1. */ -+int osf4_cc_array ['\x00' == 0 ? 1 : -1]; -+ -+int test (int i, double x); -+struct s1 {int (*f) (int a);}; -+struct s2 {int (*f) (double a);}; -+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -+int argc; -+char **argv; -+int -+main () -+{ -+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; -+ ; -+ return 0; -+} -+_ACEOF -+# Don't try gcc -ansi; that turns off useful extensions and -+# breaks some systems' header files. -+# AIX -qlanglvl=ansi -+# Ultrix and OSF/1 -std1 -+# HP-UX 10.20 and later -Ae -+# HP-UX older versions -Aa -D_HPUX_SOURCE -+# SVR4 -Xc -D__EXTENSIONS__ -+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -+do -+ CC="$ac_save_CC $ac_arg" -+ 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_c_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_cc_stdc=$ac_arg -+break -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+fi -+rm -f conftest.err conftest.$ac_objext -+done -+rm -f conftest.$ac_ext conftest.$ac_objext -+CC=$ac_save_CC -+ -+fi -+ -+case "x$ac_cv_prog_cc_stdc" in -+ x|xno) -+ echo "$as_me:$LINENO: result: none needed" >&5 -+echo "${ECHO_T}none needed" >&6 ;; -+ *) -+ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 -+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 -+ CC="$CC $ac_cv_prog_cc_stdc" ;; -+esac -+ -+# Some people use a C++ compiler to compile C. Since we use `exit', -+# in C++ we need to declare it. In case someone uses the same compiler -+# for both compiling C and C++ we need to have the C++ compiler decide -+# the declaration of exit, since it's the most demanding environment. -+cat >conftest.$ac_ext <<_ACEOF -+#ifndef __cplusplus -+ choke me -+#endif -+_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_c_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 -+ 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_c_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_c_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 -+ -+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 -+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 -+ -+depcc="$CC" am_compiler_list= -+ -+echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -+echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 -+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then -+ # We make a subdir and do the tests there. Otherwise we can end up -+ # making bogus files that we don't know about and never remove. For -+ # instance it was reported that on HP-UX the gcc test will end up -+ # making a dummy file named `D' -- because `-MD' means `put the output -+ # in D'. -+ mkdir conftest.dir -+ # Copy depcomp to subdir because otherwise we won't find it if we're -+ # using a relative directory. -+ cp "$am_depcomp" conftest.dir -+ cd conftest.dir -+ # We will build objects and dependencies in a subdirectory because -+ # it helps to detect inapplicable dependency modes. For instance -+ # both Tru64's cc and ICC support -MD to output dependencies as a -+ # side effect of compilation, but ICC will put the dependencies in -+ # the current directory while Tru64 will put them in the object -+ # directory. -+ mkdir sub -+ -+ am_cv_CC_dependencies_compiler_type=none -+ if test "$am_compiler_list" = ""; then -+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` -+ fi -+ for depmode in $am_compiler_list; do -+ # Setup a source with many dependencies, because some compilers -+ # like to wrap large dependency lists on column 80 (with \), and -+ # we should not choose a depcomp mode which is confused by this. -+ # -+ # We need to recreate these files for each test, as the compiler may -+ # overwrite some of them when testing with obscure command lines. -+ # This happens at least with the AIX C compiler. -+ : > sub/conftest.c -+ for i in 1 2 3 4 5 6; do -+ echo '#include "conftst'$i'.h"' >> sub/conftest.c -+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with -+ # Solaris 8's {/usr,}/bin/sh. -+ touch sub/conftst$i.h -+ done -+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf -+ -+ case $depmode in -+ nosideeffect) -+ # after this tag, mechanisms are not by side-effect, so they'll -+ # only be used when explicitly requested -+ if test "x$enable_dependency_tracking" = xyes; then -+ continue -+ else -+ break -+ fi -+ ;; -+ none) break ;; -+ esac -+ # We check with `-c' and `-o' for the sake of the "dashmstdout" -+ # mode. It turns out that the SunPro C++ compiler does not properly -+ # handle `-M -o', and we need to detect this. -+ if depmode=$depmode \ -+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ -+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ -+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ -+ >/dev/null 2>conftest.err && -+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && -+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && -+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then -+ # icc doesn't choke on unknown options, it will just issue warnings -+ # or remarks (even with -Werror). So we grep stderr for any message -+ # that says an option was ignored or not supported. -+ # When given -MP, icc 7.0 and 7.1 complain thusly: -+ # icc: Command line warning: ignoring option '-M'; no argument required -+ # The diagnosis changed in icc 8.0: -+ # icc: Command line remark: option '-MP' not supported -+ if (grep 'ignoring option' conftest.err || -+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else -+ am_cv_CC_dependencies_compiler_type=$depmode -+ break -+ fi -+ fi -+ done -+ -+ cd .. -+ rm -rf conftest.dir -+else -+ am_cv_CC_dependencies_compiler_type=none -+fi -+ -+fi -+echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -+echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 -+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type -+ -+ -+ -+if -+ test "x$enable_dependency_tracking" != xno \ -+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then -+ am__fastdepCC_TRUE= -+ am__fastdepCC_FALSE='#' -+else -+ am__fastdepCC_TRUE='#' -+ am__fastdepCC_FALSE= -+fi -+ -+ -+echo "$as_me:$LINENO: checking for egrep" >&5 -+echo $ECHO_N "checking for egrep... $ECHO_C" >&6 -+if test "${ac_cv_prog_egrep+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if echo a | (grep -E '(a|b)') >/dev/null 2>&1 -+ then ac_cv_prog_egrep='grep -E' -+ else ac_cv_prog_egrep='egrep' -+ fi -+fi -+echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 -+echo "${ECHO_T}$ac_cv_prog_egrep" >&6 -+ EGREP=$ac_cv_prog_egrep -+ -+ -+echo "$as_me:$LINENO: checking for fgrep" >&5 -+echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 -+if test "${ac_cv_prog_fgrep+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 -+ then ac_cv_prog_fgrep='grep -F' -+ else ac_cv_prog_fgrep='fgrep' -+ fi -+fi -+echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 -+echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 -+ FGREP=$ac_cv_prog_fgrep -+ -+ -+test -z "$GREP" && GREP=grep -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+# Check whether --with-gnu-ld or --without-gnu-ld was given. -+if test "${with_gnu_ld+set}" = set; then -+ withval="$with_gnu_ld" -+ test "$withval" = no || with_gnu_ld=yes -+else -+ with_gnu_ld=no -+fi; -+ac_prog=ld -+if test "$GCC" = yes; then -+ # Check if gcc -print-prog-name=ld gives a path. -+ echo "$as_me:$LINENO: checking for ld used by $CC" >&5 -+echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 -+ case $host in -+ *-*-mingw*) -+ # gcc leaves a trailing carriage return which upsets mingw -+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; -+ *) -+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; -+ esac -+ case $ac_prog in -+ # Accept absolute paths. -+ [\\/]* | ?:[\\/]*) -+ re_direlt='/[^/][^/]*/\.\./' -+ # Canonicalize the pathname of ld -+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` -+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do -+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` -+ done -+ test -z "$LD" && LD="$ac_prog" -+ ;; -+ "") -+ # If it fails, then pretend we aren't using GCC. -+ ac_prog=ld -+ ;; -+ *) -+ # If it is relative, then search for the first ld in PATH. -+ with_gnu_ld=unknown -+ ;; -+ esac -+elif test "$with_gnu_ld" = yes; then -+ echo "$as_me:$LINENO: checking for GNU ld" >&5 -+echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 -+else -+ echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -+echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 -+fi -+if test "${lt_cv_path_LD+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -z "$LD"; then -+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -+ for ac_dir in $PATH; do -+ IFS="$lt_save_ifs" -+ test -z "$ac_dir" && ac_dir=. -+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then -+ lt_cv_path_LD="$ac_dir/$ac_prog" -+ # Check to see if the program is GNU ld. I'd rather use --version, -+ # but apparently some variants of GNU ld only accept -v. -+ # Break only if it was the GNU/non-GNU ld that we prefer. -+ case `"$lt_cv_path_LD" -v 2>&1 &5 -+echo "${ECHO_T}$LD" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -+echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} -+ { (exit 1); exit 1; }; } -+echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -+echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 -+if test "${lt_cv_prog_gnu_ld+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ # I'd rather use --version here, but apparently some GNU lds only accept -v. -+case `$LD -v 2>&1 &5 -+echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 -+with_gnu_ld=$lt_cv_prog_gnu_ld -+ -+ -+ -+ -+ -+ -+ -+ -+ -+echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 -+echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 -+if test "${lt_cv_path_NM+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$NM"; then -+ # Let the user override the test. -+ lt_cv_path_NM="$NM" -+else -+ lt_nm_to_check="${ac_tool_prefix}nm" -+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then -+ lt_nm_to_check="$lt_nm_to_check nm" -+ fi -+ for lt_tmp_nm in $lt_nm_to_check; do -+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do -+ IFS="$lt_save_ifs" -+ test -z "$ac_dir" && ac_dir=. -+ tmp_nm="$ac_dir/$lt_tmp_nm" -+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then -+ # Check to see if the nm accepts a BSD-compat flag. -+ # Adding the `sed 1q' prevents false positives on HP-UX, which says: -+ # nm: unknown option "B" ignored -+ # Tru64's nm complains that /dev/null is an invalid object file -+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in -+ */dev/null* | *'Invalid file or object type'*) -+ lt_cv_path_NM="$tmp_nm -B" -+ break -+ ;; -+ *) -+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in -+ */dev/null*) -+ lt_cv_path_NM="$tmp_nm -p" -+ break -+ ;; -+ *) -+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but -+ continue # so that we can try to find one that supports BSD flags -+ ;; -+ esac -+ ;; -+ esac -+ fi -+ done -+ IFS="$lt_save_ifs" -+ done -+ : ${lt_cv_path_NM=no} -+fi -+fi -+echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 -+echo "${ECHO_T}$lt_cv_path_NM" >&6 -+if test "$lt_cv_path_NM" != "no"; then -+ NM="$lt_cv_path_NM" -+else -+ # Didn't find any BSD compatible name lister, look for dumpbin. -+ if test -n "$ac_tool_prefix"; then -+ for ac_prog in "dumpbin -symbols" "link -dump -symbols" -+ 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_DUMPBIN+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$DUMPBIN"; then -+ ac_cv_prog_DUMPBIN="$DUMPBIN" # 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_DUMPBIN="$ac_tool_prefix$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+DUMPBIN=$ac_cv_prog_DUMPBIN -+if test -n "$DUMPBIN"; then -+ echo "$as_me:$LINENO: result: $DUMPBIN" >&5 -+echo "${ECHO_T}$DUMPBIN" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$DUMPBIN" && break -+ done -+fi -+if test -z "$DUMPBIN"; then -+ ac_ct_DUMPBIN=$DUMPBIN -+ for ac_prog in "dumpbin -symbols" "link -dump -symbols" -+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_DUMPBIN+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_DUMPBIN"; then -+ ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_DUMPBIN="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN -+if test -n "$ac_ct_DUMPBIN"; then -+ echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 -+echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$ac_ct_DUMPBIN" && break -+done -+test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" -+ -+ DUMPBIN=$ac_ct_DUMPBIN -+fi -+ -+ -+ if test "$DUMPBIN" != ":"; then -+ NM="$DUMPBIN" -+ fi -+fi -+test -z "$NM" && NM=nm -+ -+ -+ -+ -+ -+ -+echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 -+echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 -+if test "${lt_cv_nm_interface+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ lt_cv_nm_interface="BSD nm" -+ echo "int some_variable = 0;" > conftest.$ac_ext -+ (eval echo "\"\$as_me:4797: $ac_compile\"" >&5) -+ (eval "$ac_compile" 2>conftest.err) -+ cat conftest.err >&5 -+ (eval echo "\"\$as_me:4800: $NM \\\"conftest.$ac_objext\\\"\"" >&5) -+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) -+ cat conftest.err >&5 -+ (eval echo "\"\$as_me:4803: output\"" >&5) -+ cat conftest.out >&5 -+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then -+ lt_cv_nm_interface="MS dumpbin" -+ fi -+ rm -f conftest* -+fi -+echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 -+echo "${ECHO_T}$lt_cv_nm_interface" >&6 -+ -+echo "$as_me:$LINENO: checking whether ln -s works" >&5 -+echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 -+LN_S=$as_ln_s -+if test "$LN_S" = "ln -s"; then -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+else -+ echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -+echo "${ECHO_T}no, using $LN_S" >&6 -+fi -+ -+# find the maximum length of command line arguments -+echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -+echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 -+if test "${lt_cv_sys_max_cmd_len+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ i=0 -+ teststring="ABCD" -+ -+ case $build_os in -+ msdosdjgpp*) -+ # On DJGPP, this test can blow up pretty badly due to problems in libc -+ # (any single argument exceeding 2000 bytes causes a buffer overrun -+ # during glob expansion). Even if it were fixed, the result of this -+ # check would be larger than it should be. -+ lt_cv_sys_max_cmd_len=12288; # 12K is about right -+ ;; -+ -+ gnu*) -+ # Under GNU Hurd, this test is not required because there is -+ # no limit to the length of command line arguments. -+ # Libtool will interpret -1 as no limit whatsoever -+ lt_cv_sys_max_cmd_len=-1; -+ ;; -+ -+ cygwin* | mingw* | cegcc*) -+ # On Win9x/ME, this test blows up -- it succeeds, but takes -+ # about 5 minutes as the teststring grows exponentially. -+ # Worse, since 9x/ME are not pre-emptively multitasking, -+ # you end up with a "frozen" computer, even though with patience -+ # the test eventually succeeds (with a max line length of 256k). -+ # Instead, let's just punt: use the minimum linelength reported by -+ # all of the supported platforms: 8192 (on NT/2K/XP). -+ lt_cv_sys_max_cmd_len=8192; -+ ;; -+ -+ amigaos*) -+ # On AmigaOS with pdksh, this test takes hours, literally. -+ # So we just punt and use a minimum line length of 8192. -+ lt_cv_sys_max_cmd_len=8192; -+ ;; -+ -+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) -+ # This has been around since 386BSD, at least. Likely further. -+ if test -x /sbin/sysctl; then -+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` -+ elif test -x /usr/sbin/sysctl; then -+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` -+ else -+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs -+ fi -+ # And add a safety zone -+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` -+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` -+ ;; -+ -+ interix*) -+ # We know the value 262144 and hardcode it with a safety zone (like BSD) -+ lt_cv_sys_max_cmd_len=196608 -+ ;; -+ -+ osf*) -+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure -+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not -+ # nice to cause kernel panics so lets avoid the loop below. -+ # First set a reasonable default. -+ lt_cv_sys_max_cmd_len=16384 -+ # -+ if test -x /sbin/sysconfig; then -+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in -+ *1*) lt_cv_sys_max_cmd_len=-1 ;; -+ esac -+ fi -+ ;; -+ sco3.2v5*) -+ lt_cv_sys_max_cmd_len=102400 -+ ;; -+ sysv5* | sco5v6* | sysv4.2uw2*) -+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` -+ if test -n "$kargmax"; then -+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` -+ else -+ lt_cv_sys_max_cmd_len=32768 -+ fi -+ ;; -+ *) -+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` -+ if test -n "$lt_cv_sys_max_cmd_len"; then -+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` -+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` -+ else -+ # Make teststring a little bigger before we do anything with it. -+ # a 1K string should be a reasonable start. -+ for i in 1 2 3 4 5 6 7 8 ; do -+ teststring=$teststring$teststring -+ done -+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} -+ # If test is not a shell built-in, we'll probably end up computing a -+ # maximum length that is only half of the actual maximum length, but -+ # we can't tell. -+ while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ -+ = "XX$teststring$teststring"; } >/dev/null 2>&1 && -+ test $i != 17 # 1/2 MB should be enough -+ do -+ i=`expr $i + 1` -+ teststring=$teststring$teststring -+ done -+ # Only check the string length outside the loop. -+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` -+ teststring= -+ # Add a significant safety factor because C++ compilers can tack on -+ # massive amounts of additional arguments before passing them to the -+ # linker. It appears as though 1/2 is a usable value. -+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` -+ fi -+ ;; -+ esac -+ -+fi -+ -+if test -n $lt_cv_sys_max_cmd_len ; then -+ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -+echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 -+else -+ echo "$as_me:$LINENO: result: none" >&5 -+echo "${ECHO_T}none" >&6 -+fi -+max_cmd_len=$lt_cv_sys_max_cmd_len -+ -+ -+ -+ -+ -+ -+: ${CP="cp -f"} -+: ${MV="mv -f"} -+: ${RM="rm -f"} -+ -+echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 -+echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 -+# Try some XSI features -+xsi_shell=no -+( _lt_dummy="a/b/c" -+ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ -+ = c,a/b,, \ -+ && eval 'test $(( 1 + 1 )) -eq 2 \ -+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ -+ && xsi_shell=yes -+echo "$as_me:$LINENO: result: $xsi_shell" >&5 -+echo "${ECHO_T}$xsi_shell" >&6 -+ -+ -+echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 -+echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 -+lt_shell_append=no -+( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ -+ >/dev/null 2>&1 \ -+ && lt_shell_append=yes -+echo "$as_me:$LINENO: result: $lt_shell_append" >&5 -+echo "${ECHO_T}$lt_shell_append" >&6 -+ -+ -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then -+ lt_unset=unset -+else -+ lt_unset=false -+fi -+ -+ -+ -+ -+ -+# test EBCDIC or ASCII -+case `echo X|tr X '\101'` in -+ A) # ASCII based system -+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr -+ lt_SP2NL='tr \040 \012' -+ lt_NL2SP='tr \015\012 \040\040' -+ ;; -+ *) # EBCDIC based system -+ lt_SP2NL='tr \100 \n' -+ lt_NL2SP='tr \r\n \100\100' -+ ;; -+esac -+ -+ -+ -+ -+ -+ -+ -+ -+ -+echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -+echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 -+if test "${lt_cv_ld_reload_flag+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ lt_cv_ld_reload_flag='-r' -+fi -+echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -+echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 -+reload_flag=$lt_cv_ld_reload_flag -+case $reload_flag in -+"" | " "*) ;; -+*) reload_flag=" $reload_flag" ;; -+esac -+reload_cmds='$LD$reload_flag -o $output$reload_objs' -+case $host_os in -+ darwin*) -+ if test "$GCC" = yes; then -+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' -+ else -+ reload_cmds='$LD$reload_flag -o $output$reload_objs' -+ fi -+ ;; -+esac -+ -+ -+ -+ -+ -+ -+ -+ -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -+set dummy ${ac_tool_prefix}objdump; 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="${ac_tool_prefix}objdump" -+ 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 -+ -+fi -+if test -z "$ac_cv_prog_OBJDUMP"; then -+ ac_ct_OBJDUMP=$OBJDUMP -+ # Extract the first word of "objdump", so it can be a program name with args. -+set dummy objdump; 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_OBJDUMP+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_OBJDUMP"; then -+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_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_ac_ct_OBJDUMP="objdump" -+ 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_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" -+fi -+fi -+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -+if test -n "$ac_ct_OBJDUMP"; then -+ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 -+echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ OBJDUMP=$ac_ct_OBJDUMP -+else -+ OBJDUMP="$ac_cv_prog_OBJDUMP" -+fi -+ -+test -z "$OBJDUMP" && OBJDUMP=objdump -+ -+ -+ -+ -+ -+ -+echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 -+echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 -+if test "${lt_cv_deplibs_check_method+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ lt_cv_file_magic_cmd='$MAGIC_CMD' -+lt_cv_file_magic_test_file= -+lt_cv_deplibs_check_method='unknown' -+# Need to set the preceding variable on all platforms that support -+# interlibrary dependencies. -+# 'none' -- dependencies not supported. -+# `unknown' -- same as none, but documents that we really don't know. -+# 'pass_all' -- all dependencies passed with no checks. -+# 'test_compile' -- check by making test program. -+# 'file_magic [[regex]]' -- check by looking for files in library path -+# which responds to the $file_magic_cmd with a given extended regex. -+# If you have `file' or equivalent on your system and you're not sure -+# whether `pass_all' will *always* work, you probably want this one. -+ -+case $host_os in -+aix[4-9]*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+beos*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+bsdi[45]*) -+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' -+ lt_cv_file_magic_cmd='/usr/bin/file -L' -+ lt_cv_file_magic_test_file=/shlib/libc.so -+ ;; -+ -+cygwin*) -+ # func_win32_libid is a shell function defined in ltmain.sh -+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' -+ lt_cv_file_magic_cmd='func_win32_libid' -+ ;; -+ -+mingw* | pw32*) -+ # Base MSYS/MinGW do not provide the 'file' command needed by -+ # func_win32_libid shell function, so use a weaker test based on 'objdump', -+ # unless we find 'file', for example because we are cross-compiling. -+ if ( file / ) >/dev/null 2>&1; then -+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' -+ lt_cv_file_magic_cmd='func_win32_libid' -+ else -+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' -+ lt_cv_file_magic_cmd='$OBJDUMP -f' -+ fi -+ ;; -+ -+cegcc) -+ # use the weaker test based on 'objdump'. See mingw*. -+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' -+ lt_cv_file_magic_cmd='$OBJDUMP -f' -+ ;; -+ -+darwin* | rhapsody*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+freebsd* | dragonfly*) -+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then -+ case $host_cpu in -+ i*86 ) -+ # Not sure whether the presence of OpenBSD here was a mistake. -+ # Let's accept both of them until this is cleared up. -+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' -+ lt_cv_file_magic_cmd=/usr/bin/file -+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` -+ ;; -+ esac -+ else -+ lt_cv_deplibs_check_method=pass_all -+ fi -+ ;; -+ -+gnu*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+hpux10.20* | hpux11*) -+ lt_cv_file_magic_cmd=/usr/bin/file -+ case $host_cpu in -+ ia64*) -+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' -+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so -+ ;; -+ hppa*64*) -+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' -+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl -+ ;; -+ *) -+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' -+ lt_cv_file_magic_test_file=/usr/lib/libc.sl -+ ;; -+ esac -+ ;; -+ -+interix[3-9]*) -+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here -+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' -+ ;; -+ -+irix5* | irix6* | nonstopux*) -+ case $LD in -+ *-32|*"-32 ") libmagic=32-bit;; -+ *-n32|*"-n32 ") libmagic=N32;; -+ *-64|*"-64 ") libmagic=64-bit;; -+ *) libmagic=never-match;; -+ esac -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+# This must be Linux ELF. -+linux* | k*bsd*-gnu) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+netbsd*) -+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then -+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' -+ else -+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' -+ fi -+ ;; -+ -+newos6*) -+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' -+ lt_cv_file_magic_cmd=/usr/bin/file -+ lt_cv_file_magic_test_file=/usr/lib/libnls.so -+ ;; -+ -+*nto* | *qnx*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+openbsd*) -+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then -+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' -+ else -+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' -+ fi -+ ;; -+ -+osf3* | osf4* | osf5*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+rdos*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+solaris*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ -+sysv4 | sysv4.3*) -+ case $host_vendor in -+ motorola) -+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' -+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` -+ ;; -+ ncr) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ sequent) -+ lt_cv_file_magic_cmd='/bin/file' -+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' -+ ;; -+ sni) -+ lt_cv_file_magic_cmd='/bin/file' -+ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" -+ lt_cv_file_magic_test_file=/lib/libc.so -+ ;; -+ siemens) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ pc) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ esac -+ ;; -+ -+tpf*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+esac -+ -+fi -+echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -+echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 -+file_magic_cmd=$lt_cv_file_magic_cmd -+deplibs_check_method=$lt_cv_deplibs_check_method -+test -z "$deplibs_check_method" && deplibs_check_method=unknown -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -+set dummy ${ac_tool_prefix}ar; 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="${ac_tool_prefix}ar" -+ 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 -+if test -z "$ac_cv_prog_AR"; then -+ ac_ct_AR=$AR -+ # Extract the first word of "ar", so it can be a program name with args. -+set dummy ar; 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_AR+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_AR"; then -+ ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="ar" -+ 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_AR" && ac_cv_prog_ac_ct_AR="false" -+fi -+fi -+ac_ct_AR=$ac_cv_prog_ac_ct_AR -+if test -n "$ac_ct_AR"; then -+ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -+echo "${ECHO_T}$ac_ct_AR" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ AR=$ac_ct_AR -+else -+ AR="$ac_cv_prog_AR" -+fi -+ -+test -z "$AR" && AR=ar -+test -z "$AR_FLAGS" && AR_FLAGS=cru -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -+set dummy ${ac_tool_prefix}strip; 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="${ac_tool_prefix}strip" -+ 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 -+ -+fi -+if test -z "$ac_cv_prog_STRIP"; then -+ ac_ct_STRIP=$STRIP -+ # Extract the first word of "strip", so it can be a program name with args. -+set dummy strip; 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_STRIP+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_STRIP"; then -+ ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip" -+ 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_STRIP" && ac_cv_prog_ac_ct_STRIP=":" -+fi -+fi -+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -+if test -n "$ac_ct_STRIP"; then -+ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -+echo "${ECHO_T}$ac_ct_STRIP" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ STRIP=$ac_ct_STRIP -+else -+ STRIP="$ac_cv_prog_STRIP" -+fi -+ -+test -z "$STRIP" && STRIP=: -+ -+ -+ -+ -+ -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -+set dummy ${ac_tool_prefix}ranlib; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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 -+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="${ac_tool_prefix}ranlib" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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 -+if test -z "$ac_cv_prog_RANLIB"; then -+ ac_ct_RANLIB=$RANLIB -+ # Extract the first word of "ranlib", so it can be a program name with args. -+set dummy ranlib; 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_RANLIB+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_RANLIB"; then -+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib" -+ 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_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" -+fi -+fi -+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -+if test -n "$ac_ct_RANLIB"; then -+ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -+echo "${ECHO_T}$ac_ct_RANLIB" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ RANLIB=$ac_ct_RANLIB -+else -+ RANLIB="$ac_cv_prog_RANLIB" -+fi -+ -+test -z "$RANLIB" && RANLIB=: -+ -+ -+ -+ -+ -+ -+# Determine commands to create old-style static archives. -+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -+old_postinstall_cmds='chmod 644 $oldlib' -+old_postuninstall_cmds= -+ -+if test -n "$RANLIB"; then -+ case $host_os in -+ openbsd*) -+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" -+ ;; -+ *) -+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" -+ ;; -+ esac -+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -+fi -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+# If no C compiler was specified, use CC. -+LTCC=${LTCC-"$CC"} -+ -+# If no C compiler flags were specified, use CFLAGS. -+LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -+ -+# Allow CC to be a program name with arguments. -+compiler=$CC -+ -+ -+# Check for command to grab the raw symbol name followed by C symbol from nm. -+echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 -+echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 -+if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ -+# These are sane defaults that work on at least a few old systems. -+# [They come from Ultrix. What could be older than Ultrix?!! ;)] -+ -+# Character class describing NM global symbol codes. -+symcode='[BCDEGRST]' -+ -+# Regexp to match symbols that can be accessed directly from C. -+sympat='\([_A-Za-z][_A-Za-z0-9]*\)' -+ -+# Define system-specific variables. -+case $host_os in -+aix*) -+ symcode='[BCDT]' -+ ;; -+cygwin* | mingw* | pw32* | cegcc*) -+ symcode='[ABCDGISTW]' -+ ;; -+hpux*) -+ if test "$host_cpu" = ia64; then -+ symcode='[ABCDEGRST]' -+ fi -+ ;; -+irix* | nonstopux*) -+ symcode='[BCDEGRST]' -+ ;; -+osf*) -+ symcode='[BCDEGQRST]' -+ ;; -+solaris*) -+ symcode='[BDRT]' -+ ;; -+sco3.2v5*) -+ symcode='[DT]' -+ ;; -+sysv4.2uw2*) -+ symcode='[DT]' -+ ;; -+sysv5* | sco5v6* | unixware* | OpenUNIX*) -+ symcode='[ABDT]' -+ ;; -+sysv4) -+ symcode='[DFNSTU]' -+ ;; -+esac -+ -+# If we're using GNU nm, then use its standard symbol codes. -+case `$NM -V 2>&1` in -+*GNU* | *'with BFD'*) -+ symcode='[ABCDGIRSTW]' ;; -+esac -+ -+# Transform an extracted symbol line into a proper C declaration. -+# Some systems (esp. on ia64) link data and code symbols differently, -+# so use this general approach. -+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" -+ -+# Transform an extracted symbol line into symbol name and symbol address -+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" -+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" -+ -+# Handle CRLF in mingw tool chain -+opt_cr= -+case $build_os in -+mingw*) -+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp -+ ;; -+esac -+ -+# Try without a prefix underscore, then with it. -+for ac_symprfx in "" "_"; do -+ -+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. -+ symxfrm="\\1 $ac_symprfx\\2 \\2" -+ -+ # Write the raw and C identifiers. -+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then -+ # Fake it for dumpbin and say T for any non-static function -+ # and D for any global variable. -+ # Also find C++ and __fastcall symbols from MSVC++, -+ # which start with @ or ?. -+ lt_cv_sys_global_symbol_pipe="$AWK '"\ -+" {last_section=section; section=\$ 3};"\ -+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ -+" \$ 0!~/External *\|/{next};"\ -+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ -+" {if(hide[section]) next};"\ -+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ -+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ -+" s[1]~/^[@?]/{print s[1], s[1]; next};"\ -+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ -+" ' prfx=^$ac_symprfx" -+ else -+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" -+ fi -+ -+ # Check to see that the pipe works correctly. -+ pipe_works=no -+ -+ rm -f conftest* -+ cat > conftest.$ac_ext <<_LT_EOF -+#ifdef __cplusplus -+extern "C" { -+#endif -+char nm_test_var; -+void nm_test_func(void); -+void nm_test_func(void){} -+#ifdef __cplusplus -+} -+#endif -+int main(){nm_test_var='a';nm_test_func();return(0);} -+_LT_EOF -+ -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ # Now try to grab the symbols. -+ nlist=conftest.nm -+ if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 -+ (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && test -s "$nlist"; then -+ # Try sorting and uniquifying the output. -+ if sort "$nlist" | uniq > "$nlist"T; then -+ mv -f "$nlist"T "$nlist" -+ else -+ rm -f "$nlist"T -+ fi -+ -+ # Make sure that we snagged all the symbols we need. -+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then -+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then -+ cat <<_LT_EOF > conftest.$ac_ext -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+_LT_EOF -+ # Now generate the symbol file. -+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' -+ -+ cat <<_LT_EOF >> conftest.$ac_ext -+ -+/* The mapping between symbol names and symbols. */ -+const struct { -+ const char *name; -+ void *address; -+} -+lt__PROGRAM__LTX_preloaded_symbols[] = -+{ -+ { "@PROGRAM@", (void *) 0 }, -+_LT_EOF -+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext -+ cat <<\_LT_EOF >> conftest.$ac_ext -+ {0, (void *) 0} -+}; -+ -+/* This works around a problem in FreeBSD linker */ -+#ifdef FREEBSD_WORKAROUND -+static const void *lt_preloaded_setup() { -+ return lt__PROGRAM__LTX_preloaded_symbols; -+} -+#endif -+ -+#ifdef __cplusplus -+} -+#endif -+_LT_EOF -+ # Now try linking the two files. -+ mv conftest.$ac_objext conftstm.$ac_objext -+ lt_save_LIBS="$LIBS" -+ lt_save_CFLAGS="$CFLAGS" -+ LIBS="conftstm.$ac_objext" -+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" -+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && test -s conftest${ac_exeext}; then -+ pipe_works=yes -+ fi -+ LIBS="$lt_save_LIBS" -+ CFLAGS="$lt_save_CFLAGS" -+ else -+ echo "cannot find nm_test_func in $nlist" >&5 -+ fi -+ else -+ echo "cannot find nm_test_var in $nlist" >&5 -+ fi -+ else -+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 -+ fi -+ else -+ echo "$progname: failed program was:" >&5 -+ cat conftest.$ac_ext >&5 -+ fi -+ rm -rf conftest* conftst* -+ -+ # Do not use the global_symbol_pipe unless it works. -+ if test "$pipe_works" = yes; then -+ break -+ else -+ lt_cv_sys_global_symbol_pipe= -+ fi -+done -+ -+fi -+ -+if test -z "$lt_cv_sys_global_symbol_pipe"; then -+ lt_cv_sys_global_symbol_to_cdecl= -+fi -+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then -+ echo "$as_me:$LINENO: result: failed" >&5 -+echo "${ECHO_T}failed" >&6 -+else -+ echo "$as_me:$LINENO: result: ok" >&5 -+echo "${ECHO_T}ok" >&6 -+fi -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+# Check whether --enable-libtool-lock or --disable-libtool-lock was given. -+if test "${enable_libtool_lock+set}" = set; then -+ enableval="$enable_libtool_lock" -+ -+fi; -+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes -+ -+# Some flags need to be propagated to the compiler or linker for good -+# libtool support. -+case $host in -+ia64-*-hpux*) -+ # Find out which ABI we are using. -+ echo 'int i;' > conftest.$ac_ext -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ case `/usr/bin/file conftest.$ac_objext` in -+ *ELF-32*) -+ HPUX_IA64_MODE="32" -+ ;; -+ *ELF-64*) -+ HPUX_IA64_MODE="64" -+ ;; -+ esac -+ fi -+ rm -rf conftest* -+ ;; -+*-*-irix6*) -+ # Find out which ABI we are using. -+ echo '#line 5958 "configure"' > conftest.$ac_ext -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ if test "$lt_cv_prog_gnu_ld" = yes; then -+ case `/usr/bin/file conftest.$ac_objext` in -+ *32-bit*) -+ LD="${LD-ld} -melf32bsmip" -+ ;; -+ *N32*) -+ LD="${LD-ld} -melf32bmipn32" -+ ;; -+ *64-bit*) -+ LD="${LD-ld} -melf64bmip" -+ ;; -+ esac -+ else -+ case `/usr/bin/file conftest.$ac_objext` in -+ *32-bit*) -+ LD="${LD-ld} -32" -+ ;; -+ *N32*) -+ LD="${LD-ld} -n32" -+ ;; -+ *64-bit*) -+ LD="${LD-ld} -64" -+ ;; -+ esac -+ fi -+ fi -+ rm -rf conftest* -+ ;; -+ -+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -+s390*-*linux*|s390*-*tpf*|sparc*-*linux*) -+ # Find out which ABI we are using. -+ echo 'int i;' > conftest.$ac_ext -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ case `/usr/bin/file conftest.o` in -+ *32-bit*) -+ case $host in -+ x86_64-*kfreebsd*-gnu) -+ LD="${LD-ld} -m elf_i386_fbsd" -+ ;; -+ x86_64-*linux*) -+ LD="${LD-ld} -m elf_i386" -+ ;; -+ ppc64-*linux*|powerpc64-*linux*) -+ LD="${LD-ld} -m elf32ppclinux" -+ ;; -+ s390x-*linux*) -+ LD="${LD-ld} -m elf_s390" -+ ;; -+ sparc64-*linux*) -+ LD="${LD-ld} -m elf32_sparc" -+ ;; -+ esac -+ ;; -+ *64-bit*) -+ case $host in -+ x86_64-*kfreebsd*-gnu) -+ LD="${LD-ld} -m elf_x86_64_fbsd" -+ ;; -+ x86_64-*linux*) -+ LD="${LD-ld} -m elf_x86_64" -+ ;; -+ ppc*-*linux*|powerpc*-*linux*) -+ LD="${LD-ld} -m elf64ppc" -+ ;; -+ s390*-*linux*|s390*-*tpf*) -+ LD="${LD-ld} -m elf64_s390" -+ ;; -+ sparc*-*linux*) -+ LD="${LD-ld} -m elf64_sparc" -+ ;; -+ esac -+ ;; -+ esac -+ fi -+ rm -rf conftest* -+ ;; -+ -+*-*-sco3.2v5*) -+ # On SCO OpenServer 5, we need -belf to get full-featured binaries. -+ SAVE_CFLAGS="$CFLAGS" -+ CFLAGS="$CFLAGS -belf" -+ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -+echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 -+if test "${lt_cv_cc_needs_belf+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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 -+ -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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 -+ lt_cv_cc_needs_belf=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+lt_cv_cc_needs_belf=no -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+ 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 -+ -+fi -+echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -+echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 -+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then -+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf -+ CFLAGS="$SAVE_CFLAGS" -+ fi -+ ;; -+sparc*-*solaris*) -+ # Find out which ABI we are using. -+ echo 'int i;' > conftest.$ac_ext -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; then -+ case `/usr/bin/file conftest.o` in -+ *64-bit*) -+ case $lt_cv_prog_gnu_ld in -+ yes*) LD="${LD-ld} -m elf64_sparc" ;; -+ *) -+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then -+ LD="${LD-ld} -64" -+ fi -+ ;; -+ esac -+ ;; -+ esac -+ fi -+ rm -rf conftest* -+ ;; -+esac -+ -+need_locks="$enable_libtool_lock" -+ -+ -+ case $host_os in -+ rhapsody* | darwin*) -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. -+set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$DSYMUTIL"; then -+ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+DSYMUTIL=$ac_cv_prog_DSYMUTIL -+if test -n "$DSYMUTIL"; then -+ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 -+echo "${ECHO_T}$DSYMUTIL" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$ac_cv_prog_DSYMUTIL"; then -+ ac_ct_DSYMUTIL=$DSYMUTIL -+ # Extract the first word of "dsymutil", so it can be a program name with args. -+set dummy dsymutil; 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_DSYMUTIL+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_DSYMUTIL"; then -+ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil" -+ 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_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":" -+fi -+fi -+ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL -+if test -n "$ac_ct_DSYMUTIL"; then -+ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 -+echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ DSYMUTIL=$ac_ct_DSYMUTIL -+else -+ DSYMUTIL="$ac_cv_prog_DSYMUTIL" -+fi -+ -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. -+set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$NMEDIT"; then -+ ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+NMEDIT=$ac_cv_prog_NMEDIT -+if test -n "$NMEDIT"; then -+ echo "$as_me:$LINENO: result: $NMEDIT" >&5 -+echo "${ECHO_T}$NMEDIT" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$ac_cv_prog_NMEDIT"; then -+ ac_ct_NMEDIT=$NMEDIT -+ # Extract the first word of "nmedit", so it can be a program name with args. -+set dummy nmedit; 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_NMEDIT+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_NMEDIT"; then -+ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_NMEDIT="nmedit" -+ 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_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":" -+fi -+fi -+ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT -+if test -n "$ac_ct_NMEDIT"; then -+ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 -+echo "${ECHO_T}$ac_ct_NMEDIT" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ NMEDIT=$ac_ct_NMEDIT -+else -+ NMEDIT="$ac_cv_prog_NMEDIT" -+fi -+ -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. -+set dummy ${ac_tool_prefix}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_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="${ac_tool_prefix}lipo" -+ 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 -+ -+fi -+if test -z "$ac_cv_prog_LIPO"; then -+ ac_ct_LIPO=$LIPO -+ # Extract the first word of "lipo", so it can be a program name with args. -+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_prog_ac_ct_LIPO+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_LIPO"; then -+ ac_cv_prog_ac_ct_LIPO="$ac_ct_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_ac_ct_LIPO="lipo" -+ 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_LIPO" && ac_cv_prog_ac_ct_LIPO=":" -+fi -+fi -+ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO -+if test -n "$ac_ct_LIPO"; then -+ echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 -+echo "${ECHO_T}$ac_ct_LIPO" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ LIPO=$ac_ct_LIPO -+else -+ LIPO="$ac_cv_prog_LIPO" -+fi -+ -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. -+set dummy ${ac_tool_prefix}otool; 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_OTOOL+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$OTOOL"; then -+ ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+OTOOL=$ac_cv_prog_OTOOL -+if test -n "$OTOOL"; then -+ echo "$as_me:$LINENO: result: $OTOOL" >&5 -+echo "${ECHO_T}$OTOOL" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$ac_cv_prog_OTOOL"; then -+ ac_ct_OTOOL=$OTOOL -+ # Extract the first word of "otool", so it can be a program name with args. -+set dummy otool; 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_OTOOL+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_OTOOL"; then -+ ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool" -+ 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_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":" -+fi -+fi -+ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL -+if test -n "$ac_ct_OTOOL"; then -+ echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 -+echo "${ECHO_T}$ac_ct_OTOOL" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ OTOOL=$ac_ct_OTOOL -+else -+ OTOOL="$ac_cv_prog_OTOOL" -+fi -+ -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. -+set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$OTOOL64"; then -+ ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+OTOOL64=$ac_cv_prog_OTOOL64 -+if test -n "$OTOOL64"; then -+ echo "$as_me:$LINENO: result: $OTOOL64" >&5 -+echo "${ECHO_T}$OTOOL64" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$ac_cv_prog_OTOOL64"; then -+ ac_ct_OTOOL64=$OTOOL64 -+ # Extract the first word of "otool64", so it can be a program name with args. -+set dummy otool64; 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_OTOOL64+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_OTOOL64"; then -+ ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64" -+ 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_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":" -+fi -+fi -+ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 -+if test -n "$ac_ct_OTOOL64"; then -+ echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 -+echo "${ECHO_T}$ac_ct_OTOOL64" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ OTOOL64=$ac_ct_OTOOL64 -+else -+ OTOOL64="$ac_cv_prog_OTOOL64" -+fi -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 -+echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 -+if test "${lt_cv_apple_cc_single_mod+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ lt_cv_apple_cc_single_mod=no -+ if test -z "${LT_MULTI_MODULE}"; then -+ # By default we will add the -single_module flag. You can override -+ # by either setting the environment variable LT_MULTI_MODULE -+ # non-empty at configure time, or by adding -multi_module to the -+ # link flags. -+ rm -rf libconftest.dylib* -+ echo "int foo(void){return 1;}" > conftest.c -+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -+-dynamiclib -Wl,-single_module conftest.c" >&5 -+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err -+ _lt_result=$? -+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then -+ lt_cv_apple_cc_single_mod=yes -+ else -+ cat conftest.err >&5 -+ fi -+ rm -rf libconftest.dylib* -+ rm -f conftest.* -+ fi -+fi -+echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 -+echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 -+ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 -+echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 -+if test "${lt_cv_ld_exported_symbols_list+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ lt_cv_ld_exported_symbols_list=no -+ save_LDFLAGS=$LDFLAGS -+ echo "_main" > conftest.sym -+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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 -+ lt_cv_ld_exported_symbols_list=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+lt_cv_ld_exported_symbols_list=no -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+ LDFLAGS="$save_LDFLAGS" -+ -+fi -+echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 -+echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6 -+ case $host_os in -+ rhapsody* | darwin1.[012]) -+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; -+ darwin1.*) -+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; -+ darwin*) # darwin 5.x on -+ # if running on 10.5 or later, the deployment target defaults -+ # to the OS version, if on x86, and 10.4, the deployment -+ # target defaults to 10.4. Don't you love it? -+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in -+ 10.0,*86*-darwin8*|10.0,*-darwin[91]*) -+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; -+ 10.[012]*) -+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; -+ 10.*) -+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; -+ esac -+ ;; -+ esac -+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then -+ _lt_dar_single_mod='$single_module' -+ fi -+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then -+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' -+ else -+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' -+ fi -+ if test "$DSYMUTIL" != ":"; then -+ _lt_dsymutil='~$DSYMUTIL $lib || :' -+ else -+ _lt_dsymutil= -+ fi -+ ;; -+ esac -+ -+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 -+echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -+echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 -+# On Suns, sometimes $CPP names a directory. -+if test -n "$CPP" && test -d "$CPP"; then -+ CPP= -+fi -+if test -z "$CPP"; then -+ if test "${ac_cv_prog_CPP+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ # Double quotes because CPP needs to be expanded -+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" -+ do -+ ac_preproc_ok=false -+for ac_c_preproc_warn_flag in '' yes -+do -+ # Use a header file that comes with gcc, so configuring glibc -+ # with a fresh cross-compiler works. -+ # Prefer to if __STDC__ is defined, since -+ # exists even on freestanding compilers. -+ # On the NeXT, cc -E runs the code through the compiler's parser, -+ # not just through cpp. "Syntax error" is here to catch this case. -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#ifdef __STDC__ -+# include -+#else -+# include -+#endif -+ Syntax error -+_ACEOF -+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 -+ (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then -+ if test -s conftest.err; then -+ ac_cpp_err=$ac_c_preproc_warn_flag -+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag -+ else -+ ac_cpp_err= -+ fi -+else -+ ac_cpp_err=yes -+fi -+if test -z "$ac_cpp_err"; then -+ : -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ # Broken: fails on valid input. -+continue -+fi -+rm -f conftest.err conftest.$ac_ext -+ -+ # OK, works on sane cases. Now check whether non-existent headers -+ # can be detected and how. -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include -+_ACEOF -+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 -+ (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then -+ if test -s conftest.err; then -+ ac_cpp_err=$ac_c_preproc_warn_flag -+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag -+ else -+ ac_cpp_err= -+ fi -+else -+ ac_cpp_err=yes -+fi -+if test -z "$ac_cpp_err"; then -+ # Broken: success on invalid input. -+continue -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ # Passes both tests. -+ac_preproc_ok=: -+break -+fi -+rm -f conftest.err conftest.$ac_ext -+ -+done -+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -+rm -f conftest.err conftest.$ac_ext -+if $ac_preproc_ok; then -+ break -+fi -+ -+ done -+ ac_cv_prog_CPP=$CPP -+ -+fi -+ CPP=$ac_cv_prog_CPP -+else -+ ac_cv_prog_CPP=$CPP -+fi -+echo "$as_me:$LINENO: result: $CPP" >&5 -+echo "${ECHO_T}$CPP" >&6 -+ac_preproc_ok=false -+for ac_c_preproc_warn_flag in '' yes -+do -+ # Use a header file that comes with gcc, so configuring glibc -+ # with a fresh cross-compiler works. -+ # Prefer to if __STDC__ is defined, since -+ # exists even on freestanding compilers. -+ # On the NeXT, cc -E runs the code through the compiler's parser, -+ # not just through cpp. "Syntax error" is here to catch this case. -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#ifdef __STDC__ -+# include -+#else -+# include -+#endif -+ Syntax error -+_ACEOF -+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 -+ (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then -+ if test -s conftest.err; then -+ ac_cpp_err=$ac_c_preproc_warn_flag -+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag -+ else -+ ac_cpp_err= -+ fi -+else -+ ac_cpp_err=yes -+fi -+if test -z "$ac_cpp_err"; then -+ : -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ # Broken: fails on valid input. -+continue -+fi -+rm -f conftest.err conftest.$ac_ext -+ -+ # OK, works on sane cases. Now check whether non-existent headers -+ # can be detected and how. -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include -+_ACEOF -+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 -+ (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then -+ if test -s conftest.err; then -+ ac_cpp_err=$ac_c_preproc_warn_flag -+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag -+ else -+ ac_cpp_err= -+ fi -+else -+ ac_cpp_err=yes -+fi -+if test -z "$ac_cpp_err"; then -+ # Broken: success on invalid input. -+continue -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ # Passes both tests. -+ac_preproc_ok=: -+break -+fi -+rm -f conftest.err conftest.$ac_ext -+ -+done -+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -+rm -f conftest.err conftest.$ac_ext -+if $ac_preproc_ok; then -+ : -+else -+ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -+See \`config.log' for more details." >&5 -+echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -+See \`config.log' for more details." >&2;} -+ { (exit 1); exit 1; }; } -+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 -+ -+ -+echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -+echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 -+if test "${ac_cv_header_stdc+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include -+#include -+#include -+#include -+ -+int -+main () -+{ -+ -+ ; -+ 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_c_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_header_stdc=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_header_stdc=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+ -+if test $ac_cv_header_stdc = yes; then -+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI. -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include -+ -+_ACEOF -+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -+ $EGREP "memchr" >/dev/null 2>&1; then -+ : -+else -+ ac_cv_header_stdc=no -+fi -+rm -f conftest* -+ -+fi -+ -+if test $ac_cv_header_stdc = yes; then -+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include -+ -+_ACEOF -+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | -+ $EGREP "free" >/dev/null 2>&1; then -+ : -+else -+ ac_cv_header_stdc=no -+fi -+rm -f conftest* -+ -+fi -+ -+if test $ac_cv_header_stdc = yes; then -+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. -+ if test "$cross_compiling" = yes; then -+ : -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+#include -+#if ((' ' & 0x0FF) == 0x020) -+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -+#else -+# define ISLOWER(c) \ -+ (('a' <= (c) && (c) <= 'i') \ -+ || ('j' <= (c) && (c) <= 'r') \ -+ || ('s' <= (c) && (c) <= 'z')) -+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -+#endif -+ -+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -+int -+main () -+{ -+ int i; -+ for (i = 0; i < 256; i++) -+ if (XOR (islower (i), ISLOWER (i)) -+ || toupper (i) != TOUPPER (i)) -+ exit(2); -+ exit (0); -+} -+_ACEOF -+rm -f conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext' -+ { (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: program exited with status $ac_status" >&5 -+echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+( exit $ac_status ) -+ac_cv_header_stdc=no -+fi -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+fi -+fi -+fi -+echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -+echo "${ECHO_T}$ac_cv_header_stdc" >&6 -+if test $ac_cv_header_stdc = yes; then -+ -+cat >>confdefs.h <<\_ACEOF -+#define STDC_HEADERS 1 -+_ACEOF -+ -+fi -+ -+# On IRIX 5.3, sys/types and inttypes.h are conflicting. -+ -+ -+ -+ -+ -+ -+ -+ -+ -+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ -+ inttypes.h stdint.h unistd.h -+do -+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -+echo "$as_me:$LINENO: checking for $ac_header" >&5 -+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -+if eval "test \"\${$as_ac_Header+set}\" = set"; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+$ac_includes_default -+ -+#include <$ac_header> -+_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_c_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 -+ eval "$as_ac_Header=yes" -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+eval "$as_ac_Header=no" -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -+if test `eval echo '${'$as_ac_Header'}'` = yes; then -+ cat >>confdefs.h <<_ACEOF -+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -+_ACEOF -+ -+fi -+ -+done -+ -+ -+ -+for ac_header in dlfcn.h -+do -+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -+echo "$as_me:$LINENO: checking for $ac_header" >&5 -+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -+if eval "test \"\${$as_ac_Header+set}\" = set"; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+$ac_includes_default -+ -+#include <$ac_header> -+_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_c_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 -+ eval "$as_ac_Header=yes" -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+eval "$as_ac_Header=no" -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -+if test `eval echo '${'$as_ac_Header'}'` = yes; then -+ cat >>confdefs.h <<_ACEOF -+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -+_ACEOF -+ -+fi -+ -+done -+ -+ -+ -+# Set options -+ -+ -+ -+ enable_dlopen=no -+ -+ -+ -+ # Check whether --enable-shared or --disable-shared was given. -+if test "${enable_shared+set}" = set; then -+ enableval="$enable_shared" -+ p=${PACKAGE-default} -+ case $enableval in -+ yes) enable_shared=yes ;; -+ no) enable_shared=no ;; -+ *) -+ enable_shared=no -+ # Look at the argument we got. We use all the common list separators. -+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," -+ for pkg in $enableval; do -+ IFS="$lt_save_ifs" -+ if test "X$pkg" = "X$p"; then -+ enable_shared=yes -+ fi -+ done -+ IFS="$lt_save_ifs" -+ ;; -+ esac -+else -+ enable_shared=yes -+fi; -+ -+ -+ -+ -+ -+ -+ -+ -+ # Check whether --enable-static or --disable-static was given. -+if test "${enable_static+set}" = set; then -+ enableval="$enable_static" -+ p=${PACKAGE-default} -+ case $enableval in -+ yes) enable_static=yes ;; -+ no) enable_static=no ;; -+ *) -+ enable_static=no -+ # Look at the argument we got. We use all the common list separators. -+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," -+ for pkg in $enableval; do -+ IFS="$lt_save_ifs" -+ if test "X$pkg" = "X$p"; then -+ enable_static=yes -+ fi -+ done -+ IFS="$lt_save_ifs" -+ ;; -+ esac -+else -+ enable_static=yes -+fi; -+ -+ -+ -+ -+ -+ -+ -+ -+ -+# Check whether --with-pic or --without-pic was given. -+if test "${with_pic+set}" = set; then -+ withval="$with_pic" -+ pic_mode="$withval" -+else -+ pic_mode=default -+fi; -+ -+test -z "$pic_mode" && pic_mode=default -+ -+ -+ -+ -+ -+ -+ -+ # Check whether --enable-fast-install or --disable-fast-install was given. -+if test "${enable_fast_install+set}" = set; then -+ enableval="$enable_fast_install" -+ p=${PACKAGE-default} -+ case $enableval in -+ yes) enable_fast_install=yes ;; -+ no) enable_fast_install=no ;; -+ *) -+ enable_fast_install=no -+ # Look at the argument we got. We use all the common list separators. -+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," -+ for pkg in $enableval; do -+ IFS="$lt_save_ifs" -+ if test "X$pkg" = "X$p"; then -+ enable_fast_install=yes -+ fi -+ done -+ IFS="$lt_save_ifs" -+ ;; -+ esac -+else -+ enable_fast_install=yes -+fi; -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+# This can be used to rebuild libtool when needed -+LIBTOOL_DEPS="$ltmain" -+ -+# Always use our own libtool. -+LIBTOOL='$(SHELL) $(top_builddir)/libtool' -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+test -z "$LN_S" && LN_S="ln -s" -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+if test -n "${ZSH_VERSION+set}" ; then -+ setopt NO_GLOB_SUBST -+fi -+ -+echo "$as_me:$LINENO: checking for objdir" >&5 -+echo $ECHO_N "checking for objdir... $ECHO_C" >&6 -+if test "${lt_cv_objdir+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ rm -f .libs 2>/dev/null -+mkdir .libs 2>/dev/null -+if test -d .libs; then -+ lt_cv_objdir=.libs -+else -+ # MS-DOS does not allow filenames that begin with a dot. -+ lt_cv_objdir=_libs -+fi -+rmdir .libs 2>/dev/null -+fi -+echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 -+echo "${ECHO_T}$lt_cv_objdir" >&6 -+objdir=$lt_cv_objdir -+ -+ -+ -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define LT_OBJDIR "$lt_cv_objdir/" -+_ACEOF -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+case $host_os in -+aix3*) -+ # AIX sometimes has problems with the GCC collect2 program. For some -+ # reason, if we set the COLLECT_NAMES environment variable, the problems -+ # vanish in a puff of smoke. -+ if test "X${COLLECT_NAMES+set}" != Xset; then -+ COLLECT_NAMES= -+ export COLLECT_NAMES -+ fi -+ ;; -+esac -+ -+# Sed substitution that helps us do robust quoting. It backslashifies -+# metacharacters that are still active within double-quoted strings. -+sed_quote_subst='s/\(["`$\\]\)/\\\1/g' -+ -+# Same as above, but do not quote variable references. -+double_quote_subst='s/\(["`\\]\)/\\\1/g' -+ -+# Sed substitution to delay expansion of an escaped shell variable in a -+# double_quote_subst'ed string. -+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' -+ -+# Sed substitution to delay expansion of an escaped single quote. -+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' -+ -+# Sed substitution to avoid accidental globbing in evaled expressions -+no_glob_subst='s/\*/\\\*/g' -+ -+# Global variables: -+ofile=libtool -+can_build_shared=yes -+ -+# All known linkers require a `.a' archive for static linking (except MSVC, -+# which needs '.lib'). -+libext=a -+ -+with_gnu_ld="$lt_cv_prog_gnu_ld" -+ -+old_CC="$CC" -+old_CFLAGS="$CFLAGS" -+ -+# Set sane defaults for various variables -+test -z "$CC" && CC=cc -+test -z "$LTCC" && LTCC=$CC -+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -+test -z "$LD" && LD=ld -+test -z "$ac_objext" && ac_objext=o -+ -+for cc_temp in $compiler""; do -+ case $cc_temp in -+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; -+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; -+ \-*) ;; -+ *) break;; -+ esac -+done -+cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -+ -+ -+# Only perform the check for file, if the check method requires it -+test -z "$MAGIC_CMD" && MAGIC_CMD=file -+case $deplibs_check_method in -+file_magic*) -+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then -+ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -+echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 -+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $MAGIC_CMD in -+[\\/*] | ?:[\\/]*) -+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. -+ ;; -+*) -+ lt_save_MAGIC_CMD="$MAGIC_CMD" -+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" -+ for ac_dir in $ac_dummy; do -+ IFS="$lt_save_ifs" -+ test -z "$ac_dir" && ac_dir=. -+ if test -f $ac_dir/${ac_tool_prefix}file; then -+ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" -+ if test -n "$file_magic_test_file"; then -+ case $deplibs_check_method in -+ "file_magic "*) -+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` -+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | -+ $EGREP "$file_magic_regex" > /dev/null; then -+ : -+ else -+ cat <<_LT_EOF 1>&2 -+ -+*** Warning: the command libtool uses to detect shared libraries, -+*** $file_magic_cmd, produces output that libtool cannot recognize. -+*** The result is that libtool may fail to recognize shared libraries -+*** as such. This will affect the creation of libtool libraries that -+*** depend on shared libraries, but programs linked with such libtool -+*** libraries will work regardless of this problem. Nevertheless, you -+*** may want to report the problem to your system manager and/or to -+*** bug-libtool@gnu.org -+ -+_LT_EOF -+ fi ;; -+ esac -+ fi -+ break -+ fi -+ done -+ IFS="$lt_save_ifs" -+ MAGIC_CMD="$lt_save_MAGIC_CMD" -+ ;; -+esac -+fi -+ -+MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -+if test -n "$MAGIC_CMD"; then -+ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -+echo "${ECHO_T}$MAGIC_CMD" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ -+ -+ -+ -+if test -z "$lt_cv_path_MAGIC_CMD"; then -+ if test -n "$ac_tool_prefix"; then -+ echo "$as_me:$LINENO: checking for file" >&5 -+echo $ECHO_N "checking for file... $ECHO_C" >&6 -+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ case $MAGIC_CMD in -+[\\/*] | ?:[\\/]*) -+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. -+ ;; -+*) -+ lt_save_MAGIC_CMD="$MAGIC_CMD" -+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR -+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" -+ for ac_dir in $ac_dummy; do -+ IFS="$lt_save_ifs" -+ test -z "$ac_dir" && ac_dir=. -+ if test -f $ac_dir/file; then -+ lt_cv_path_MAGIC_CMD="$ac_dir/file" -+ if test -n "$file_magic_test_file"; then -+ case $deplibs_check_method in -+ "file_magic "*) -+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` -+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | -+ $EGREP "$file_magic_regex" > /dev/null; then -+ : -+ else -+ cat <<_LT_EOF 1>&2 -+ -+*** Warning: the command libtool uses to detect shared libraries, -+*** $file_magic_cmd, produces output that libtool cannot recognize. -+*** The result is that libtool may fail to recognize shared libraries -+*** as such. This will affect the creation of libtool libraries that -+*** depend on shared libraries, but programs linked with such libtool -+*** libraries will work regardless of this problem. Nevertheless, you -+*** may want to report the problem to your system manager and/or to -+*** bug-libtool@gnu.org -+ -+_LT_EOF -+ fi ;; -+ esac -+ fi -+ break -+ fi -+ done -+ IFS="$lt_save_ifs" -+ MAGIC_CMD="$lt_save_MAGIC_CMD" -+ ;; -+esac -+fi -+ -+MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -+if test -n "$MAGIC_CMD"; then -+ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -+echo "${ECHO_T}$MAGIC_CMD" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ -+ else -+ MAGIC_CMD=: -+ fi -+fi -+ -+ fi -+ ;; -+esac -+ -+# Use C for the default configuration in the libtool script -+ -+lt_save_CC="$CC" -+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 -+ -+ -+# Source file extension for C test sources. -+ac_ext=c -+ -+# Object file extension for compiled C test sources. -+objext=o -+objext=$objext -+ -+# Code to be used in simple compile tests -+lt_simple_compile_test_code="int some_variable = 0;" -+ -+# Code to be used in simple link tests -+lt_simple_link_test_code='int main(){return(0);}' -+ -+ -+ -+ -+ -+ -+ -+# If no C compiler was specified, use CC. -+LTCC=${LTCC-"$CC"} -+ -+# If no C compiler flags were specified, use CFLAGS. -+LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -+ -+# Allow CC to be a program name with arguments. -+compiler=$CC -+ -+# Save the default compiler, since it gets overwritten when the other -+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. -+compiler_DEFAULT=$CC -+ -+# save warnings/boilerplate of simple test code -+ac_outfile=conftest.$ac_objext -+echo "$lt_simple_compile_test_code" >conftest.$ac_ext -+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -+_lt_compiler_boilerplate=`cat conftest.err` -+$RM conftest* -+ -+ac_outfile=conftest.$ac_objext -+echo "$lt_simple_link_test_code" >conftest.$ac_ext -+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -+_lt_linker_boilerplate=`cat conftest.err` -+$RM -r conftest* -+ -+ -+## CAVEAT EMPTOR: -+## There is no encapsulation within the following macros, do not change -+## the running order or otherwise move them around unless you know exactly -+## what you are doing... -+if test -n "$compiler"; then -+ -+lt_prog_compiler_no_builtin_flag= -+ -+if test "$GCC" = yes; then -+ lt_prog_compiler_no_builtin_flag=' -fno-builtin' -+ -+ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -+echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 -+if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ lt_cv_prog_compiler_rtti_exceptions=no -+ ac_outfile=conftest.$ac_objext -+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext -+ lt_compiler_flag="-fno-rtti -fno-exceptions" -+ # Insert the option either (1) after the last *FLAGS variable, or -+ # (2) before a word containing "conftest.", or (3) at the end. -+ # Note that $ac_compile itself does not contain backslashes and begins -+ # with a dollar sign (not a hyphen), so the echo should work correctly. -+ # The option is referenced via a variable to avoid confusing sed. -+ lt_compile=`echo "$ac_compile" | $SED \ -+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -+ -e 's:$: $lt_compiler_flag:'` -+ (eval echo "\"\$as_me:7735: $lt_compile\"" >&5) -+ (eval "$lt_compile" 2>conftest.err) -+ ac_status=$? -+ cat conftest.err >&5 -+ echo "$as_me:7739: \$? = $ac_status" >&5 -+ if (exit $ac_status) && test -s "$ac_outfile"; then -+ # The compiler can only warn and ignore the option if not recognized -+ # So say no if there are warnings other than the usual output. -+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp -+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 -+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then -+ lt_cv_prog_compiler_rtti_exceptions=yes -+ fi -+ fi -+ $RM conftest* -+ -+fi -+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -+echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 -+ -+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then -+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -+else -+ : -+fi -+ -+fi -+ -+ -+ -+ -+ -+ -+ lt_prog_compiler_wl= -+lt_prog_compiler_pic= -+lt_prog_compiler_static= -+ -+echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -+echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 -+ -+ if test "$GCC" = yes; then -+ lt_prog_compiler_wl='-Wl,' -+ lt_prog_compiler_static='-static' -+ -+ case $host_os in -+ aix*) -+ # All AIX code is PIC. -+ if test "$host_cpu" = ia64; then -+ # AIX 5 now supports IA64 processor -+ lt_prog_compiler_static='-Bstatic' -+ fi -+ ;; -+ -+ amigaos*) -+ case $host_cpu in -+ powerpc) -+ # see comment about AmigaOS4 .so support -+ lt_prog_compiler_pic='-fPIC' -+ ;; -+ m68k) -+ # FIXME: we need at least 68020 code to build shared libraries, but -+ # adding the `-m68020' flag to GCC prevents building anything better, -+ # like `-m68040'. -+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' -+ ;; -+ esac -+ ;; -+ -+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) -+ # PIC is the default for these OSes. -+ ;; -+ -+ mingw* | cygwin* | pw32* | os2* | cegcc*) -+ # This hack is so that the source file can tell whether it is being -+ # built for inclusion in a dll (and should export symbols for example). -+ # Although the cygwin gcc ignores -fPIC, still need this for old-style -+ # (--disable-auto-import) libraries -+ lt_prog_compiler_pic='-DDLL_EXPORT' -+ ;; -+ -+ darwin* | rhapsody*) -+ # PIC is the default on this platform -+ # Common symbols not allowed in MH_DYLIB files -+ lt_prog_compiler_pic='-fno-common' -+ ;; -+ -+ hpux*) -+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit -+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag -+ # sets the default TLS model and affects inlining. -+ case $host_cpu in -+ hppa*64*) -+ # +Z the default -+ ;; -+ *) -+ lt_prog_compiler_pic='-fPIC' -+ ;; -+ esac -+ ;; -+ -+ interix[3-9]*) -+ # Interix 3.x gcc -fpic/-fPIC options generate broken code. -+ # Instead, we relocate shared libraries at runtime. -+ ;; -+ -+ msdosdjgpp*) -+ # Just because we use GCC doesn't mean we suddenly get shared libraries -+ # on systems that don't support them. -+ lt_prog_compiler_can_build_shared=no -+ enable_shared=no -+ ;; -+ -+ *nto* | *qnx*) -+ # QNX uses GNU C++, but need to define -shared option too, otherwise -+ # it will coredump. -+ lt_prog_compiler_pic='-fPIC -shared' -+ ;; -+ -+ sysv4*MP*) -+ if test -d /usr/nec; then -+ lt_prog_compiler_pic=-Kconform_pic -+ fi -+ ;; -+ -+ *) -+ lt_prog_compiler_pic='-fPIC' -+ ;; -+ esac -+ else -+ # PORTME Check for flag to pass linker flags through the system compiler. -+ case $host_os in -+ aix*) -+ lt_prog_compiler_wl='-Wl,' -+ if test "$host_cpu" = ia64; then -+ # AIX 5 now supports IA64 processor -+ lt_prog_compiler_static='-Bstatic' -+ else -+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' -+ fi -+ ;; -+ -+ mingw* | cygwin* | pw32* | os2* | cegcc*) -+ # This hack is so that the source file can tell whether it is being -+ # built for inclusion in a dll (and should export symbols for example). -+ lt_prog_compiler_pic='-DDLL_EXPORT' -+ ;; -+ -+ hpux9* | hpux10* | hpux11*) -+ lt_prog_compiler_wl='-Wl,' -+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but -+ # not for PA HP-UX. -+ case $host_cpu in -+ hppa*64*|ia64*) -+ # +Z the default -+ ;; -+ *) -+ lt_prog_compiler_pic='+Z' -+ ;; -+ esac -+ # Is there a better lt_prog_compiler_static that works with the bundled CC? -+ lt_prog_compiler_static='${wl}-a ${wl}archive' -+ ;; -+ -+ irix5* | irix6* | nonstopux*) -+ lt_prog_compiler_wl='-Wl,' -+ # PIC (with -KPIC) is the default. -+ lt_prog_compiler_static='-non_shared' -+ ;; -+ -+ linux* | k*bsd*-gnu) -+ case $cc_basename in -+ # old Intel for x86_64 which still supported -KPIC. -+ ecc*) -+ lt_prog_compiler_wl='-Wl,' -+ lt_prog_compiler_pic='-KPIC' -+ lt_prog_compiler_static='-static' -+ ;; -+ # icc used to be incompatible with GCC. -+ # ICC 10 doesn't accept -KPIC any more. -+ icc* | ifort*) -+ lt_prog_compiler_wl='-Wl,' -+ lt_prog_compiler_pic='-fPIC' -+ lt_prog_compiler_static='-static' -+ ;; -+ # Lahey Fortran 8.1. -+ lf95*) -+ lt_prog_compiler_wl='-Wl,' -+ lt_prog_compiler_pic='--shared' -+ lt_prog_compiler_static='--static' -+ ;; -+ pgcc* | pgf77* | pgf90* | pgf95*) -+ # Portland Group compilers (*not* the Pentium gcc compiler, -+ # which looks to be a dead project) -+ lt_prog_compiler_wl='-Wl,' -+ lt_prog_compiler_pic='-fpic' -+ lt_prog_compiler_static='-Bstatic' -+ ;; -+ ccc*) -+ lt_prog_compiler_wl='-Wl,' -+ # All Alpha code is PIC. -+ lt_prog_compiler_static='-non_shared' -+ ;; -+ xl*) -+ # IBM XL C 8.0/Fortran 10.1 on PPC -+ lt_prog_compiler_wl='-Wl,' -+ lt_prog_compiler_pic='-qpic' -+ lt_prog_compiler_static='-qstaticlink' -+ ;; -+ *) -+ case `$CC -V 2>&1 | sed 5q` in -+ *Sun\ C*) -+ # Sun C 5.9 -+ lt_prog_compiler_pic='-KPIC' -+ lt_prog_compiler_static='-Bstatic' -+ lt_prog_compiler_wl='-Wl,' -+ ;; -+ *Sun\ F*) -+ # Sun Fortran 8.3 passes all unrecognized flags to the linker -+ lt_prog_compiler_pic='-KPIC' -+ lt_prog_compiler_static='-Bstatic' -+ lt_prog_compiler_wl='' -+ ;; -+ esac -+ ;; -+ esac -+ ;; -+ -+ newsos6) -+ lt_prog_compiler_pic='-KPIC' -+ lt_prog_compiler_static='-Bstatic' -+ ;; -+ -+ *nto* | *qnx*) -+ # QNX uses GNU C++, but need to define -shared option too, otherwise -+ # it will coredump. -+ lt_prog_compiler_pic='-fPIC -shared' -+ ;; -+ -+ osf3* | osf4* | osf5*) -+ lt_prog_compiler_wl='-Wl,' -+ # All OSF/1 code is PIC. -+ lt_prog_compiler_static='-non_shared' -+ ;; -+ -+ rdos*) -+ lt_prog_compiler_static='-non_shared' -+ ;; -+ -+ solaris*) -+ lt_prog_compiler_pic='-KPIC' -+ lt_prog_compiler_static='-Bstatic' -+ case $cc_basename in -+ f77* | f90* | f95*) -+ lt_prog_compiler_wl='-Qoption ld ';; -+ *) -+ lt_prog_compiler_wl='-Wl,';; -+ esac -+ ;; -+ -+ sunos4*) -+ lt_prog_compiler_wl='-Qoption ld ' -+ lt_prog_compiler_pic='-PIC' -+ lt_prog_compiler_static='-Bstatic' -+ ;; -+ -+ sysv4 | sysv4.2uw2* | sysv4.3*) -+ lt_prog_compiler_wl='-Wl,' -+ lt_prog_compiler_pic='-KPIC' -+ lt_prog_compiler_static='-Bstatic' -+ ;; -+ -+ sysv4*MP*) -+ if test -d /usr/nec ;then -+ lt_prog_compiler_pic='-Kconform_pic' -+ lt_prog_compiler_static='-Bstatic' -+ fi -+ ;; -+ -+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) -+ lt_prog_compiler_wl='-Wl,' -+ lt_prog_compiler_pic='-KPIC' -+ lt_prog_compiler_static='-Bstatic' -+ ;; -+ -+ unicos*) -+ lt_prog_compiler_wl='-Wl,' -+ lt_prog_compiler_can_build_shared=no -+ ;; -+ -+ uts4*) -+ lt_prog_compiler_pic='-pic' -+ lt_prog_compiler_static='-Bstatic' -+ ;; -+ -+ *) -+ lt_prog_compiler_can_build_shared=no -+ ;; -+ esac -+ fi -+ -+case $host_os in -+ # For platforms which do not support PIC, -DPIC is meaningless: -+ *djgpp*) -+ lt_prog_compiler_pic= -+ ;; -+ *) -+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" -+ ;; -+esac -+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 -+echo "${ECHO_T}$lt_prog_compiler_pic" >&6 -+ -+ -+ -+ -+ -+ -+# -+# Check to make sure the PIC flag actually works. -+# -+if test -n "$lt_prog_compiler_pic"; then -+ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -+echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 -+if test "${lt_cv_prog_compiler_pic_works+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ lt_cv_prog_compiler_pic_works=no -+ ac_outfile=conftest.$ac_objext -+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext -+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC" -+ # Insert the option either (1) after the last *FLAGS variable, or -+ # (2) before a word containing "conftest.", or (3) at the end. -+ # Note that $ac_compile itself does not contain backslashes and begins -+ # with a dollar sign (not a hyphen), so the echo should work correctly. -+ # The option is referenced via a variable to avoid confusing sed. -+ lt_compile=`echo "$ac_compile" | $SED \ -+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -+ -e 's:$: $lt_compiler_flag:'` -+ (eval echo "\"\$as_me:8074: $lt_compile\"" >&5) -+ (eval "$lt_compile" 2>conftest.err) -+ ac_status=$? -+ cat conftest.err >&5 -+ echo "$as_me:8078: \$? = $ac_status" >&5 -+ if (exit $ac_status) && test -s "$ac_outfile"; then -+ # The compiler can only warn and ignore the option if not recognized -+ # So say no if there are warnings other than the usual output. -+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp -+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 -+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then -+ lt_cv_prog_compiler_pic_works=yes -+ fi -+ fi -+ $RM conftest* -+ -+fi -+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 -+echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 -+ -+if test x"$lt_cv_prog_compiler_pic_works" = xyes; then -+ case $lt_prog_compiler_pic in -+ "" | " "*) ;; -+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; -+ esac -+else -+ lt_prog_compiler_pic= -+ lt_prog_compiler_can_build_shared=no -+fi -+ -+fi -+ -+ -+ -+ -+ -+ -+# -+# Check to make sure the static flag actually works. -+# -+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -+echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -+echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 -+if test "${lt_cv_prog_compiler_static_works+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ lt_cv_prog_compiler_static_works=no -+ save_LDFLAGS="$LDFLAGS" -+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag" -+ echo "$lt_simple_link_test_code" > conftest.$ac_ext -+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then -+ # The linker can only warn and ignore the option if not recognized -+ # So say no if there are warnings -+ if test -s conftest.err; then -+ # Append any errors to the config.log. -+ cat conftest.err 1>&5 -+ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp -+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 -+ if diff conftest.exp conftest.er2 >/dev/null; then -+ lt_cv_prog_compiler_static_works=yes -+ fi -+ else -+ lt_cv_prog_compiler_static_works=yes -+ fi -+ fi -+ $RM -r conftest* -+ LDFLAGS="$save_LDFLAGS" -+ -+fi -+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 -+echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 -+ -+if test x"$lt_cv_prog_compiler_static_works" = xyes; then -+ : -+else -+ lt_prog_compiler_static= -+fi -+ -+ -+ -+ -+ -+ -+ -+ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 -+if test "${lt_cv_prog_compiler_c_o+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ lt_cv_prog_compiler_c_o=no -+ $RM -r conftest 2>/dev/null -+ mkdir conftest -+ cd conftest -+ mkdir out -+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext -+ -+ lt_compiler_flag="-o out/conftest2.$ac_objext" -+ # Insert the option either (1) after the last *FLAGS variable, or -+ # (2) before a word containing "conftest.", or (3) at the end. -+ # Note that $ac_compile itself does not contain backslashes and begins -+ # with a dollar sign (not a hyphen), so the echo should work correctly. -+ lt_compile=`echo "$ac_compile" | $SED \ -+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -+ -e 's:$: $lt_compiler_flag:'` -+ (eval echo "\"\$as_me:8179: $lt_compile\"" >&5) -+ (eval "$lt_compile" 2>out/conftest.err) -+ ac_status=$? -+ cat out/conftest.err >&5 -+ echo "$as_me:8183: \$? = $ac_status" >&5 -+ if (exit $ac_status) && test -s out/conftest2.$ac_objext -+ then -+ # The compiler can only warn and ignore the option if not recognized -+ # So say no if there are warnings -+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp -+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 -+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then -+ lt_cv_prog_compiler_c_o=yes -+ fi -+ fi -+ chmod u+w . 2>&5 -+ $RM conftest* -+ # SGI C++ compiler will create directory out/ii_files/ for -+ # template instantiation -+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files -+ $RM out/* && rmdir out -+ cd .. -+ $RM -r conftest -+ $RM conftest* -+ -+fi -+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -+echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 -+ -+ -+ -+ -+ -+ -+ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 -+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 -+if test "${lt_cv_prog_compiler_c_o+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ lt_cv_prog_compiler_c_o=no -+ $RM -r conftest 2>/dev/null -+ mkdir conftest -+ cd conftest -+ mkdir out -+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext -+ -+ lt_compiler_flag="-o out/conftest2.$ac_objext" -+ # Insert the option either (1) after the last *FLAGS variable, or -+ # (2) before a word containing "conftest.", or (3) at the end. -+ # Note that $ac_compile itself does not contain backslashes and begins -+ # with a dollar sign (not a hyphen), so the echo should work correctly. -+ lt_compile=`echo "$ac_compile" | $SED \ -+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -+ -e 's:$: $lt_compiler_flag:'` -+ (eval echo "\"\$as_me:8234: $lt_compile\"" >&5) -+ (eval "$lt_compile" 2>out/conftest.err) -+ ac_status=$? -+ cat out/conftest.err >&5 -+ echo "$as_me:8238: \$? = $ac_status" >&5 -+ if (exit $ac_status) && test -s out/conftest2.$ac_objext -+ then -+ # The compiler can only warn and ignore the option if not recognized -+ # So say no if there are warnings -+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp -+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 -+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then -+ lt_cv_prog_compiler_c_o=yes -+ fi -+ fi -+ chmod u+w . 2>&5 -+ $RM conftest* -+ # SGI C++ compiler will create directory out/ii_files/ for -+ # template instantiation -+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files -+ $RM out/* && rmdir out -+ cd .. -+ $RM -r conftest -+ $RM conftest* -+ -+fi -+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 -+echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 -+ -+ -+ -+ -+hard_links="nottested" -+if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then -+ # do not overwrite the value of need_locks provided by the user -+ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 -+echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 -+ hard_links=yes -+ $RM conftest* -+ ln conftest.a conftest.b 2>/dev/null && hard_links=no -+ touch conftest.a -+ ln conftest.a conftest.b 2>&5 || hard_links=no -+ ln conftest.a conftest.b 2>/dev/null && hard_links=no -+ echo "$as_me:$LINENO: result: $hard_links" >&5 -+echo "${ECHO_T}$hard_links" >&6 -+ if test "$hard_links" = no; then -+ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 -+echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} -+ need_locks=warn -+ fi -+else -+ need_locks=no -+fi -+ -+ -+ -+ -+ -+ -+ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 -+ -+ runpath_var= -+ allow_undefined_flag= -+ always_export_symbols=no -+ archive_cmds= -+ archive_expsym_cmds= -+ compiler_needs_object=no -+ enable_shared_with_static_runtimes=no -+ export_dynamic_flag_spec= -+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' -+ hardcode_automatic=no -+ hardcode_direct=no -+ hardcode_direct_absolute=no -+ hardcode_libdir_flag_spec= -+ hardcode_libdir_flag_spec_ld= -+ hardcode_libdir_separator= -+ hardcode_minus_L=no -+ hardcode_shlibpath_var=unsupported -+ inherit_rpath=no -+ link_all_deplibs=unknown -+ module_cmds= -+ module_expsym_cmds= -+ old_archive_from_new_cmds= -+ old_archive_from_expsyms_cmds= -+ thread_safe_flag_spec= -+ whole_archive_flag_spec= -+ # include_expsyms should be a list of space-separated symbols to be *always* -+ # included in the symbol list -+ include_expsyms= -+ # exclude_expsyms can be an extended regexp of symbols to exclude -+ # it will be wrapped by ` (' and `)$', so one must not match beginning or -+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', -+ # as well as any symbol that contains `d'. -+ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' -+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out -+ # platforms (ab)use it in PIC code, but their linkers get confused if -+ # the symbol is explicitly referenced. Since portable code cannot -+ # rely on this symbol name, it's probably fine to never include it in -+ # preloaded symbol tables. -+ # Exclude shared library initialization/finalization symbols. -+ extract_expsyms_cmds= -+ -+ case $host_os in -+ cygwin* | mingw* | pw32* | cegcc*) -+ # FIXME: the MSVC++ port hasn't been tested in a loooong time -+ # When not using gcc, we currently assume that we are using -+ # Microsoft Visual C++. -+ if test "$GCC" != yes; then -+ with_gnu_ld=no -+ fi -+ ;; -+ interix*) -+ # we just hope/assume this is gcc and not c89 (= MSVC++) -+ with_gnu_ld=yes -+ ;; -+ openbsd*) -+ with_gnu_ld=no -+ ;; -+ esac -+ -+ ld_shlibs=yes -+ if test "$with_gnu_ld" = yes; then -+ # If archive_cmds runs LD, not CC, wlarc should be empty -+ wlarc='${wl}' -+ -+ # Set some defaults for GNU ld with shared library support. These -+ # are reset later if shared libraries are not supported. Putting them -+ # here allows them to be overridden if necessary. -+ runpath_var=LD_RUN_PATH -+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' -+ export_dynamic_flag_spec='${wl}--export-dynamic' -+ # ancient GNU ld didn't support --whole-archive et. al. -+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then -+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' -+ else -+ whole_archive_flag_spec= -+ fi -+ supports_anon_versioning=no -+ case `$LD -v 2>&1` in -+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 -+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... -+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... -+ *\ 2.11.*) ;; # other 2.11 versions -+ *) supports_anon_versioning=yes ;; -+ esac -+ -+ # See if GNU ld supports shared libraries. -+ case $host_os in -+ aix[3-9]*) -+ # On AIX/PPC, the GNU linker is very broken -+ if test "$host_cpu" != ia64; then -+ ld_shlibs=no -+ cat <<_LT_EOF 1>&2 -+ -+*** Warning: the GNU linker, at least up to release 2.9.1, is reported -+*** to be unable to reliably create shared libraries on AIX. -+*** Therefore, libtool is disabling shared libraries support. If you -+*** really care for shared libraries, you may want to modify your PATH -+*** so that a non-GNU linker is found, and then restart. -+ -+_LT_EOF -+ fi -+ ;; -+ -+ amigaos*) -+ case $host_cpu in -+ powerpc) -+ # see comment about AmigaOS4 .so support -+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ archive_expsym_cmds='' -+ ;; -+ m68k) -+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' -+ hardcode_libdir_flag_spec='-L$libdir' -+ hardcode_minus_L=yes -+ ;; -+ esac -+ ;; -+ -+ beos*) -+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then -+ allow_undefined_flag=unsupported -+ # Joseph Beckenbach says some releases of gcc -+ # support --undefined. This deserves some investigation. FIXME -+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ else -+ ld_shlibs=no -+ fi -+ ;; -+ -+ cygwin* | mingw* | pw32* | cegcc*) -+ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, -+ # as there is no search path for DLLs. -+ hardcode_libdir_flag_spec='-L$libdir' -+ allow_undefined_flag=unsupported -+ always_export_symbols=no -+ enable_shared_with_static_runtimes=yes -+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' -+ -+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then -+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' -+ # If the export-symbols file already is a .def file (1st line -+ # is EXPORTS), use it as is; otherwise, prepend... -+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then -+ cp $export_symbols $output_objdir/$soname.def; -+ else -+ echo EXPORTS > $output_objdir/$soname.def; -+ cat $export_symbols >> $output_objdir/$soname.def; -+ fi~ -+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' -+ else -+ ld_shlibs=no -+ fi -+ ;; -+ -+ interix[3-9]*) -+ hardcode_direct=no -+ hardcode_shlibpath_var=no -+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' -+ export_dynamic_flag_spec='${wl}-E' -+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. -+ # Instead, shared libraries are loaded at an image base (0x10000000 by -+ # default) and relocated if they conflict, which is a slow very memory -+ # consuming and fragmenting process. To avoid this, we pick a random, -+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link -+ # time. Moving up from 0x10000000 also allows more sbrk(2) space. -+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' -+ archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' -+ ;; -+ -+ gnu* | linux* | tpf* | k*bsd*-gnu) -+ tmp_diet=no -+ if test "$host_os" = linux-dietlibc; then -+ case $cc_basename in -+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) -+ esac -+ fi -+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ -+ && test "$tmp_diet" = no -+ then -+ tmp_addflag= -+ tmp_sharedflag='-shared' -+ case $cc_basename,$host_cpu in -+ pgcc*) # Portland Group C compiler -+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' -+ tmp_addflag=' $pic_flag' -+ ;; -+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers -+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' -+ tmp_addflag=' $pic_flag -Mnomain' ;; -+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 -+ tmp_addflag=' -i_dynamic' ;; -+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 -+ tmp_addflag=' -i_dynamic -nofor_main' ;; -+ ifc* | ifort*) # Intel Fortran compiler -+ tmp_addflag=' -nofor_main' ;; -+ lf95*) # Lahey Fortran 8.1 -+ whole_archive_flag_spec= -+ tmp_sharedflag='--shared' ;; -+ xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) -+ tmp_sharedflag='-qmkshrobj' -+ tmp_addflag= ;; -+ esac -+ case `$CC -V 2>&1 | sed 5q` in -+ *Sun\ C*) # Sun C 5.9 -+ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' -+ compiler_needs_object=yes -+ tmp_sharedflag='-G' ;; -+ *Sun\ F*) # Sun Fortran 8.3 -+ tmp_sharedflag='-G' ;; -+ esac -+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ -+ if test "x$supports_anon_versioning" = xyes; then -+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ -+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ -+ echo "local: *; };" >> $output_objdir/$libname.ver~ -+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' -+ fi -+ -+ case $cc_basename in -+ xlf*) -+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself -+ whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' -+ hardcode_libdir_flag_spec= -+ hardcode_libdir_flag_spec_ld='-rpath $libdir' -+ archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' -+ if test "x$supports_anon_versioning" = xyes; then -+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ -+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ -+ echo "local: *; };" >> $output_objdir/$libname.ver~ -+ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' -+ fi -+ ;; -+ esac -+ else -+ ld_shlibs=no -+ fi -+ ;; -+ -+ netbsd*) -+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then -+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' -+ wlarc= -+ else -+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' -+ fi -+ ;; -+ -+ solaris*) -+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then -+ ld_shlibs=no -+ cat <<_LT_EOF 1>&2 -+ -+*** Warning: The releases 2.8.* of the GNU linker cannot reliably -+*** create shared libraries on Solaris systems. Therefore, libtool -+*** is disabling shared libraries support. We urge you to upgrade GNU -+*** binutils to release 2.9.1 or newer. Another option is to modify -+*** your PATH or compiler configuration so that the native linker is -+*** used, and then restart. -+ -+_LT_EOF -+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then -+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' -+ else -+ ld_shlibs=no -+ fi -+ ;; -+ -+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) -+ case `$LD -v 2>&1` in -+ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) -+ ld_shlibs=no -+ cat <<_LT_EOF 1>&2 -+ -+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not -+*** reliably create shared libraries on SCO systems. Therefore, libtool -+*** is disabling shared libraries support. We urge you to upgrade GNU -+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -+*** your PATH or compiler configuration so that the native linker is -+*** used, and then restart. -+ -+_LT_EOF -+ ;; -+ *) -+ # For security reasons, it is highly recommended that you always -+ # use absolute paths for naming shared libraries, and exclude the -+ # DT_RUNPATH tag from executables and libraries. But doing so -+ # requires that you compile everything twice, which is a pain. -+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then -+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' -+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' -+ else -+ ld_shlibs=no -+ fi -+ ;; -+ esac -+ ;; -+ -+ sunos4*) -+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' -+ wlarc= -+ hardcode_direct=yes -+ hardcode_shlibpath_var=no -+ ;; -+ -+ *) -+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then -+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' -+ else -+ ld_shlibs=no -+ fi -+ ;; -+ esac -+ -+ if test "$ld_shlibs" = no; then -+ runpath_var= -+ hardcode_libdir_flag_spec= -+ export_dynamic_flag_spec= -+ whole_archive_flag_spec= -+ fi -+ else -+ # PORTME fill in a description of your system's linker (not GNU ld) -+ case $host_os in -+ aix3*) -+ allow_undefined_flag=unsupported -+ always_export_symbols=yes -+ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' -+ # Note: this linker hardcodes the directories in LIBPATH if there -+ # are no directories specified by -L. -+ hardcode_minus_L=yes -+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then -+ # Neither direct hardcoding nor static linking is supported with a -+ # broken collect2. -+ hardcode_direct=unsupported -+ fi -+ ;; -+ -+ aix[4-9]*) -+ if test "$host_cpu" = ia64; then -+ # On IA64, the linker does run time linking by default, so we don't -+ # have to do anything special. -+ aix_use_runtimelinking=no -+ exp_sym_flag='-Bexport' -+ no_entry_flag="" -+ else -+ # If we're using GNU nm, then we don't want the "-C" option. -+ # -C means demangle to AIX nm, but means don't demangle with GNU nm -+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then -+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' -+ else -+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' -+ fi -+ aix_use_runtimelinking=no -+ -+ # Test if we are trying to use run time linking or normal -+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we -+ # need to do runtime linking. -+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) -+ for ld_flag in $LDFLAGS; do -+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then -+ aix_use_runtimelinking=yes -+ break -+ fi -+ done -+ ;; -+ esac -+ -+ exp_sym_flag='-bexport' -+ no_entry_flag='-bnoentry' -+ fi -+ -+ # When large executables or shared objects are built, AIX ld can -+ # have problems creating the table of contents. If linking a library -+ # or program results in "error TOC overflow" add -mminimal-toc to -+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not -+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. -+ -+ archive_cmds='' -+ hardcode_direct=yes -+ hardcode_direct_absolute=yes -+ hardcode_libdir_separator=':' -+ link_all_deplibs=yes -+ file_list_spec='${wl}-f,' -+ -+ if test "$GCC" = yes; then -+ case $host_os in aix4.[012]|aix4.[012].*) -+ # We only want to do this on AIX 4.2 and lower, the check -+ # below for broken collect2 doesn't work under 4.3+ -+ collect2name=`${CC} -print-prog-name=collect2` -+ if test -f "$collect2name" && -+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null -+ then -+ # We have reworked collect2 -+ : -+ else -+ # We have old collect2 -+ hardcode_direct=unsupported -+ # It fails to find uninstalled libraries when the uninstalled -+ # path is not listed in the libpath. Setting hardcode_minus_L -+ # to unsupported forces relinking -+ hardcode_minus_L=yes -+ hardcode_libdir_flag_spec='-L$libdir' -+ hardcode_libdir_separator= -+ fi -+ ;; -+ esac -+ shared_flag='-shared' -+ if test "$aix_use_runtimelinking" = yes; then -+ shared_flag="$shared_flag "'${wl}-G' -+ fi -+ else -+ # not using gcc -+ if test "$host_cpu" = ia64; then -+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release -+ # chokes on -Wl,-G. The following line is correct: -+ shared_flag='-G' -+ else -+ if test "$aix_use_runtimelinking" = yes; then -+ shared_flag='${wl}-G' -+ else -+ shared_flag='${wl}-bM:SRE' -+ fi -+ fi -+ fi -+ -+ export_dynamic_flag_spec='${wl}-bexpall' -+ # It seems that -bexpall does not export symbols beginning with -+ # underscore (_), so it is better to generate a list of symbols to export. -+ always_export_symbols=yes -+ if test "$aix_use_runtimelinking" = yes; then -+ # Warning - without using the other runtime loading flags (-brtl), -+ # -berok will link without error, but may produce a broken library. -+ allow_undefined_flag='-berok' -+ # Determine the default libpath from the value encoded in an -+ # empty executable. -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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 -+ -+lt_aix_libpath_sed=' -+ /Import File Strings/,/^$/ { -+ /^0/ { -+ s/^0 *\(.*\)$/\1/ -+ p -+ } -+ }' -+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -+# Check for a 64-bit object if we didn't find anything. -+if test -z "$aix_libpath"; then -+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -+fi -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi -+ -+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" -+ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" -+ else -+ if test "$host_cpu" = ia64; then -+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' -+ allow_undefined_flag="-z nodefs" -+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" -+ else -+ # Determine the default libpath from the value encoded in an -+ # empty executable. -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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 -+ -+lt_aix_libpath_sed=' -+ /Import File Strings/,/^$/ { -+ /^0/ { -+ s/^0 *\(.*\)$/\1/ -+ p -+ } -+ }' -+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -+# Check for a 64-bit object if we didn't find anything. -+if test -z "$aix_libpath"; then -+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -+fi -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi -+ -+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" -+ # Warning - without using the other run time loading flags, -+ # -berok will link without error, but may produce a broken library. -+ no_undefined_flag=' ${wl}-bernotok' -+ allow_undefined_flag=' ${wl}-berok' -+ # Exported symbols can be pulled into shared objects from archives -+ whole_archive_flag_spec='$convenience' -+ archive_cmds_need_lc=yes -+ # This is similar to how AIX traditionally builds its shared libraries. -+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' -+ fi -+ fi -+ ;; -+ -+ amigaos*) -+ case $host_cpu in -+ powerpc) -+ # see comment about AmigaOS4 .so support -+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ archive_expsym_cmds='' -+ ;; -+ m68k) -+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' -+ hardcode_libdir_flag_spec='-L$libdir' -+ hardcode_minus_L=yes -+ ;; -+ esac -+ ;; -+ -+ bsdi[45]*) -+ export_dynamic_flag_spec=-rdynamic -+ ;; -+ -+ cygwin* | mingw* | pw32* | cegcc*) -+ # When not using gcc, we currently assume that we are using -+ # Microsoft Visual C++. -+ # hardcode_libdir_flag_spec is actually meaningless, as there is -+ # no search path for DLLs. -+ hardcode_libdir_flag_spec=' ' -+ allow_undefined_flag=unsupported -+ # Tell ltmain to make .lib files, not .a files. -+ libext=lib -+ # Tell ltmain to make .dll files, not .so files. -+ shrext_cmds=".dll" -+ # FIXME: Setting linknames here is a bad hack. -+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' -+ # The linker will automatically build a .lib file if we build a DLL. -+ old_archive_from_new_cmds='true' -+ # FIXME: Should let the user specify the lib program. -+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' -+ fix_srcfile_path='`cygpath -w "$srcfile"`' -+ enable_shared_with_static_runtimes=yes -+ ;; -+ -+ darwin* | rhapsody*) -+ -+ -+ archive_cmds_need_lc=no -+ hardcode_direct=no -+ hardcode_automatic=yes -+ hardcode_shlibpath_var=unsupported -+ whole_archive_flag_spec='' -+ link_all_deplibs=yes -+ allow_undefined_flag="$_lt_dar_allow_undefined" -+ case $cc_basename in -+ ifort*) _lt_dar_can_shared=yes ;; -+ *) _lt_dar_can_shared=$GCC ;; -+ esac -+ if test "$_lt_dar_can_shared" = "yes"; then -+ output_verbose_link_cmd=echo -+ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" -+ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" -+ archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" -+ module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" -+ -+ else -+ ld_shlibs=no -+ fi -+ -+ ;; -+ -+ dgux*) -+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' -+ hardcode_libdir_flag_spec='-L$libdir' -+ hardcode_shlibpath_var=no -+ ;; -+ -+ freebsd1*) -+ ld_shlibs=no -+ ;; -+ -+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor -+ # support. Future versions do this automatically, but an explicit c++rt0.o -+ # does not break anything, and helps significantly (at the cost of a little -+ # extra space). -+ freebsd2.2*) -+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' -+ hardcode_libdir_flag_spec='-R$libdir' -+ hardcode_direct=yes -+ hardcode_shlibpath_var=no -+ ;; -+ -+ # Unfortunately, older versions of FreeBSD 2 do not have this feature. -+ freebsd2*) -+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' -+ hardcode_direct=yes -+ hardcode_minus_L=yes -+ hardcode_shlibpath_var=no -+ ;; -+ -+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries. -+ freebsd* | dragonfly*) -+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' -+ hardcode_libdir_flag_spec='-R$libdir' -+ hardcode_direct=yes -+ hardcode_shlibpath_var=no -+ ;; -+ -+ hpux9*) -+ if test "$GCC" = yes; then -+ archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' -+ else -+ archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' -+ fi -+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' -+ hardcode_libdir_separator=: -+ hardcode_direct=yes -+ -+ # hardcode_minus_L: Not really in the search PATH, -+ # but as the default location of the library. -+ hardcode_minus_L=yes -+ export_dynamic_flag_spec='${wl}-E' -+ ;; -+ -+ hpux10*) -+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then -+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' -+ else -+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' -+ fi -+ if test "$with_gnu_ld" = no; then -+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' -+ hardcode_libdir_flag_spec_ld='+b $libdir' -+ hardcode_libdir_separator=: -+ hardcode_direct=yes -+ hardcode_direct_absolute=yes -+ export_dynamic_flag_spec='${wl}-E' -+ # hardcode_minus_L: Not really in the search PATH, -+ # but as the default location of the library. -+ hardcode_minus_L=yes -+ fi -+ ;; -+ -+ hpux11*) -+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then -+ case $host_cpu in -+ hppa*64*) -+ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' -+ ;; -+ ia64*) -+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' -+ ;; -+ *) -+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' -+ ;; -+ esac -+ else -+ case $host_cpu in -+ hppa*64*) -+ archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' -+ ;; -+ ia64*) -+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' -+ ;; -+ *) -+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' -+ ;; -+ esac -+ fi -+ if test "$with_gnu_ld" = no; then -+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' -+ hardcode_libdir_separator=: -+ -+ case $host_cpu in -+ hppa*64*|ia64*) -+ hardcode_direct=no -+ hardcode_shlibpath_var=no -+ ;; -+ *) -+ hardcode_direct=yes -+ hardcode_direct_absolute=yes -+ export_dynamic_flag_spec='${wl}-E' -+ -+ # hardcode_minus_L: Not really in the search PATH, -+ # but as the default location of the library. -+ hardcode_minus_L=yes -+ ;; -+ esac -+ fi -+ ;; -+ -+ irix5* | irix6* | nonstopux*) -+ if test "$GCC" = yes; then -+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' -+ # Try to use the -exported_symbol ld option, if it does not -+ # work, assume that -exports_file does not work either and -+ # implicitly export all symbols. -+ save_LDFLAGS="$LDFLAGS" -+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" -+ cat >conftest.$ac_ext <<_ACEOF -+int foo(void) {} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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 -+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' -+ -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+ LDFLAGS="$save_LDFLAGS" -+ else -+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' -+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' -+ fi -+ archive_cmds_need_lc='no' -+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' -+ hardcode_libdir_separator=: -+ inherit_rpath=yes -+ link_all_deplibs=yes -+ ;; -+ -+ netbsd*) -+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then -+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out -+ else -+ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF -+ fi -+ hardcode_libdir_flag_spec='-R$libdir' -+ hardcode_direct=yes -+ hardcode_shlibpath_var=no -+ ;; -+ -+ newsos6) -+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' -+ hardcode_direct=yes -+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' -+ hardcode_libdir_separator=: -+ hardcode_shlibpath_var=no -+ ;; -+ -+ *nto* | *qnx*) -+ ;; -+ -+ openbsd*) -+ if test -f /usr/libexec/ld.so; then -+ hardcode_direct=yes -+ hardcode_shlibpath_var=no -+ hardcode_direct_absolute=yes -+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then -+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' -+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' -+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' -+ export_dynamic_flag_spec='${wl}-E' -+ else -+ case $host_os in -+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) -+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' -+ hardcode_libdir_flag_spec='-R$libdir' -+ ;; -+ *) -+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' -+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' -+ ;; -+ esac -+ fi -+ else -+ ld_shlibs=no -+ fi -+ ;; -+ -+ os2*) -+ hardcode_libdir_flag_spec='-L$libdir' -+ hardcode_minus_L=yes -+ allow_undefined_flag=unsupported -+ archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' -+ old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' -+ ;; -+ -+ osf3*) -+ if test "$GCC" = yes; then -+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' -+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' -+ else -+ allow_undefined_flag=' -expect_unresolved \*' -+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' -+ fi -+ archive_cmds_need_lc='no' -+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' -+ hardcode_libdir_separator=: -+ ;; -+ -+ osf4* | osf5*) # as osf3* with the addition of -msym flag -+ if test "$GCC" = yes; then -+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' -+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' -+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' -+ else -+ allow_undefined_flag=' -expect_unresolved \*' -+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' -+ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ -+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' -+ -+ # Both c and cxx compiler support -rpath directly -+ hardcode_libdir_flag_spec='-rpath $libdir' -+ fi -+ archive_cmds_need_lc='no' -+ hardcode_libdir_separator=: -+ ;; -+ -+ solaris*) -+ no_undefined_flag=' -z defs' -+ if test "$GCC" = yes; then -+ wlarc='${wl}' -+ archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' -+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ -+ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' -+ else -+ case `$CC -V 2>&1` in -+ *"Compilers 5.0"*) -+ wlarc='' -+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' -+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ -+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' -+ ;; -+ *) -+ wlarc='${wl}' -+ archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' -+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ -+ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' -+ ;; -+ esac -+ fi -+ hardcode_libdir_flag_spec='-R$libdir' -+ hardcode_shlibpath_var=no -+ case $host_os in -+ solaris2.[0-5] | solaris2.[0-5].*) ;; -+ *) -+ # The compiler driver will combine and reorder linker options, -+ # but understands `-z linker_flag'. GCC discards it without `$wl', -+ # but is careful enough not to reorder. -+ # Supported since Solaris 2.6 (maybe 2.5.1?) -+ if test "$GCC" = yes; then -+ whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' -+ else -+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract' -+ fi -+ ;; -+ esac -+ link_all_deplibs=yes -+ ;; -+ -+ sunos4*) -+ if test "x$host_vendor" = xsequent; then -+ # Use $CC to link under sequent, because it throws in some extra .o -+ # files that make .init and .fini sections work. -+ archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' -+ else -+ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' -+ fi -+ hardcode_libdir_flag_spec='-L$libdir' -+ hardcode_direct=yes -+ hardcode_minus_L=yes -+ hardcode_shlibpath_var=no -+ ;; -+ -+ sysv4) -+ case $host_vendor in -+ sni) -+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' -+ hardcode_direct=yes # is this really true??? -+ ;; -+ siemens) -+ ## LD is ld it makes a PLAMLIB -+ ## CC just makes a GrossModule. -+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' -+ reload_cmds='$CC -r -o $output$reload_objs' -+ hardcode_direct=no -+ ;; -+ motorola) -+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' -+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie -+ ;; -+ esac -+ runpath_var='LD_RUN_PATH' -+ hardcode_shlibpath_var=no -+ ;; -+ -+ sysv4.3*) -+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' -+ hardcode_shlibpath_var=no -+ export_dynamic_flag_spec='-Bexport' -+ ;; -+ -+ sysv4*MP*) -+ if test -d /usr/nec; then -+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' -+ hardcode_shlibpath_var=no -+ runpath_var=LD_RUN_PATH -+ hardcode_runpath_var=yes -+ ld_shlibs=yes -+ fi -+ ;; -+ -+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) -+ no_undefined_flag='${wl}-z,text' -+ archive_cmds_need_lc=no -+ hardcode_shlibpath_var=no -+ runpath_var='LD_RUN_PATH' -+ -+ if test "$GCC" = yes; then -+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' -+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' -+ else -+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' -+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' -+ fi -+ ;; -+ -+ sysv5* | sco3.2v5* | sco5v6*) -+ # Note: We can NOT use -z defs as we might desire, because we do not -+ # link with -lc, and that would cause any symbols used from libc to -+ # always be unresolved, which means just about no library would -+ # ever link correctly. If we're not using GNU ld we use -z text -+ # though, which does catch some bad symbols but isn't as heavy-handed -+ # as -z defs. -+ no_undefined_flag='${wl}-z,text' -+ allow_undefined_flag='${wl}-z,nodefs' -+ archive_cmds_need_lc=no -+ hardcode_shlibpath_var=no -+ hardcode_libdir_flag_spec='${wl}-R,$libdir' -+ hardcode_libdir_separator=':' -+ link_all_deplibs=yes -+ export_dynamic_flag_spec='${wl}-Bexport' -+ runpath_var='LD_RUN_PATH' -+ -+ if test "$GCC" = yes; then -+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' -+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' -+ else -+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' -+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' -+ fi -+ ;; -+ -+ uts4*) -+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' -+ hardcode_libdir_flag_spec='-L$libdir' -+ hardcode_shlibpath_var=no -+ ;; -+ -+ *) -+ ld_shlibs=no -+ ;; -+ esac -+ -+ if test x$host_vendor = xsni; then -+ case $host in -+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) -+ export_dynamic_flag_spec='${wl}-Blargedynsym' -+ ;; -+ esac -+ fi -+ fi -+ -+echo "$as_me:$LINENO: result: $ld_shlibs" >&5 -+echo "${ECHO_T}$ld_shlibs" >&6 -+test "$ld_shlibs" = no && can_build_shared=no -+ -+with_gnu_ld=$with_gnu_ld -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+# -+# Do we need to explicitly link libc? -+# -+case "x$archive_cmds_need_lc" in -+x|xyes) -+ # Assume -lc should be added -+ archive_cmds_need_lc=yes -+ -+ if test "$enable_shared" = yes && test "$GCC" = yes; then -+ case $archive_cmds in -+ *'~'*) -+ # FIXME: we may have to deal with multi-command sequences. -+ ;; -+ '$CC '*) -+ # Test whether the compiler implicitly links with -lc since on some -+ # systems, -lgcc has to come before -lc. If gcc already passes -lc -+ # to ld, don't add -lc before -lgcc. -+ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 -+ $RM conftest* -+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext -+ -+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -+ (eval $ac_compile) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } 2>conftest.err; then -+ soname=conftest -+ lib=conftest -+ libobjs=conftest.$ac_objext -+ deplibs= -+ wl=$lt_prog_compiler_wl -+ pic_flag=$lt_prog_compiler_pic -+ compiler_flags=-v -+ linker_flags=-v -+ verstring= -+ output_objdir=. -+ libname=conftest -+ lt_save_allow_undefined_flag=$allow_undefined_flag -+ allow_undefined_flag= -+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 -+ (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } -+ then -+ archive_cmds_need_lc=no -+ else -+ archive_cmds_need_lc=yes -+ fi -+ allow_undefined_flag=$lt_save_allow_undefined_flag -+ else -+ cat conftest.err 1>&5 -+ fi -+ $RM conftest* -+ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 -+echo "${ECHO_T}$archive_cmds_need_lc" >&6 -+ ;; -+ esac -+ fi -+ ;; -+esac -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 -+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 -+ -+if test "$GCC" = yes; then -+ case $host_os in -+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; -+ *) lt_awk_arg="/^libraries:/" ;; -+ esac -+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` -+ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then -+ # if the path contains ";" then we assume it to be the separator -+ # otherwise default to the standard path separator (i.e. ":") - it is -+ # assumed that no part of a normal pathname contains ";" but that should -+ # okay in the real world where ";" in dirpaths is itself problematic. -+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` -+ else -+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` -+ fi -+ # Ok, now we have the path, separated by spaces, we can step through it -+ # and add multilib dir if necessary. -+ lt_tmp_lt_search_path_spec= -+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` -+ for lt_sys_path in $lt_search_path_spec; do -+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then -+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" -+ else -+ test -d "$lt_sys_path" && \ -+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" -+ fi -+ done -+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' -+BEGIN {RS=" "; FS="/|\n";} { -+ lt_foo=""; -+ lt_count=0; -+ for (lt_i = NF; lt_i > 0; lt_i--) { -+ if ($lt_i != "" && $lt_i != ".") { -+ if ($lt_i == "..") { -+ lt_count++; -+ } else { -+ if (lt_count == 0) { -+ lt_foo="/" $lt_i lt_foo; -+ } else { -+ lt_count--; -+ } -+ } -+ } -+ } -+ if (lt_foo != "") { lt_freq[lt_foo]++; } -+ if (lt_freq[lt_foo] == 1) { print lt_foo; } -+}'` -+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` -+else -+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -+fi -+library_names_spec= -+libname_spec='lib$name' -+soname_spec= -+shrext_cmds=".so" -+postinstall_cmds= -+postuninstall_cmds= -+finish_cmds= -+finish_eval= -+shlibpath_var= -+shlibpath_overrides_runpath=unknown -+version_type=none -+dynamic_linker="$host_os ld.so" -+sys_lib_dlsearch_path_spec="/lib /usr/lib" -+need_lib_prefix=unknown -+hardcode_into_libs=no -+ -+# when you set need_version to no, make sure it does not cause -set_version -+# flags to be left without arguments -+need_version=unknown -+ -+case $host_os in -+aix3*) -+ version_type=linux -+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' -+ shlibpath_var=LIBPATH -+ -+ # AIX 3 has no versioning support, so we append a major version to the name. -+ soname_spec='${libname}${release}${shared_ext}$major' -+ ;; -+ -+aix[4-9]*) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ hardcode_into_libs=yes -+ if test "$host_cpu" = ia64; then -+ # AIX 5 supports IA64 -+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' -+ shlibpath_var=LD_LIBRARY_PATH -+ else -+ # With GCC up to 2.95.x, collect2 would create an import file -+ # for dependence libraries. The import file would start with -+ # the line `#! .'. This would cause the generated library to -+ # depend on `.', always an invalid library. This was fixed in -+ # development snapshots of GCC prior to 3.0. -+ case $host_os in -+ aix4 | aix4.[01] | aix4.[01].*) -+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' -+ echo ' yes ' -+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then -+ : -+ else -+ can_build_shared=no -+ fi -+ ;; -+ esac -+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct -+ # soname into executable. Probably we can add versioning support to -+ # collect2, so additional links can be useful in future. -+ if test "$aix_use_runtimelinking" = yes; then -+ # If using run time linking (on AIX 4.2 or later) use lib.so -+ # instead of lib.a to let people know that these are not -+ # typical AIX shared libraries. -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ else -+ # We preserve .a as extension for shared libraries through AIX4.2 -+ # and later when we are not doing run time linking. -+ library_names_spec='${libname}${release}.a $libname.a' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ fi -+ shlibpath_var=LIBPATH -+ fi -+ ;; -+ -+amigaos*) -+ case $host_cpu in -+ powerpc) -+ # Since July 2007 AmigaOS4 officially supports .so libraries. -+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ ;; -+ m68k) -+ library_names_spec='$libname.ixlibrary $libname.a' -+ # Create ${libname}_ixlibrary.a entries in /sys/libs. -+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' -+ ;; -+ esac -+ ;; -+ -+beos*) -+ library_names_spec='${libname}${shared_ext}' -+ dynamic_linker="$host_os ld.so" -+ shlibpath_var=LIBRARY_PATH -+ ;; -+ -+bsdi[45]*) -+ version_type=linux -+ need_version=no -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' -+ shlibpath_var=LD_LIBRARY_PATH -+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" -+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" -+ # the default ld.so.conf also contains /usr/contrib/lib and -+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow -+ # libtool to hard-code these into programs -+ ;; -+ -+cygwin* | mingw* | pw32* | cegcc*) -+ version_type=windows -+ shrext_cmds=".dll" -+ need_version=no -+ need_lib_prefix=no -+ -+ case $GCC,$host_os in -+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) -+ library_names_spec='$libname.dll.a' -+ # DLL is installed to $(libdir)/../bin by postinstall_cmds -+ postinstall_cmds='base_file=`basename \${file}`~ -+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ -+ dldir=$destdir/`dirname \$dlpath`~ -+ test -d \$dldir || mkdir -p \$dldir~ -+ $install_prog $dir/$dlname \$dldir/$dlname~ -+ chmod a+x \$dldir/$dlname~ -+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then -+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; -+ fi' -+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ -+ dlpath=$dir/\$dldll~ -+ $RM \$dlpath' -+ shlibpath_overrides_runpath=yes -+ -+ case $host_os in -+ cygwin*) -+ # Cygwin DLLs use 'cyg' prefix rather than 'lib' -+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" -+ ;; -+ mingw* | cegcc*) -+ # MinGW DLLs use traditional 'lib' prefix -+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` -+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then -+ # It is most probably a Windows format PATH printed by -+ # mingw gcc, but we are running on Cygwin. Gcc prints its search -+ # path with ; separators, and with drive letters. We can handle the -+ # drive letters (cygwin fileutils understands them), so leave them, -+ # especially as we might pass files found there to a mingw objdump, -+ # which wouldn't understand a cygwinified path. Ahh. -+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` -+ else -+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` -+ fi -+ ;; -+ pw32*) -+ # pw32 DLLs use 'pw' prefix rather than 'lib' -+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' -+ ;; -+ esac -+ ;; -+ -+ *) -+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' -+ ;; -+ esac -+ dynamic_linker='Win32 ld.exe' -+ # FIXME: first we should search . and the directory the executable is in -+ shlibpath_var=PATH -+ ;; -+ -+darwin* | rhapsody*) -+ dynamic_linker="$host_os dyld" -+ version_type=darwin -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' -+ soname_spec='${libname}${release}${major}$shared_ext' -+ shlibpath_overrides_runpath=yes -+ shlibpath_var=DYLD_LIBRARY_PATH -+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' -+ -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" -+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' -+ ;; -+ -+dgux*) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ shlibpath_var=LD_LIBRARY_PATH -+ ;; -+ -+freebsd1*) -+ dynamic_linker=no -+ ;; -+ -+freebsd* | dragonfly*) -+ # DragonFly does not have aout. When/if they implement a new -+ # versioning mechanism, adjust this. -+ if test -x /usr/bin/objformat; then -+ objformat=`/usr/bin/objformat` -+ else -+ case $host_os in -+ freebsd[123]*) objformat=aout ;; -+ *) objformat=elf ;; -+ esac -+ fi -+ version_type=freebsd-$objformat -+ case $version_type in -+ freebsd-elf*) -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' -+ need_version=no -+ need_lib_prefix=no -+ ;; -+ freebsd-*) -+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' -+ need_version=yes -+ ;; -+ esac -+ shlibpath_var=LD_LIBRARY_PATH -+ case $host_os in -+ freebsd2*) -+ shlibpath_overrides_runpath=yes -+ ;; -+ freebsd3.[01]* | freebsdelf3.[01]*) -+ shlibpath_overrides_runpath=yes -+ hardcode_into_libs=yes -+ ;; -+ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ -+ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) -+ shlibpath_overrides_runpath=no -+ hardcode_into_libs=yes -+ ;; -+ *) # from 4.6 on, and DragonFly -+ shlibpath_overrides_runpath=yes -+ hardcode_into_libs=yes -+ ;; -+ esac -+ ;; -+ -+gnu*) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ shlibpath_var=LD_LIBRARY_PATH -+ hardcode_into_libs=yes -+ ;; -+ -+hpux9* | hpux10* | hpux11*) -+ # Give a soname corresponding to the major version so that dld.sl refuses to -+ # link against other versions. -+ version_type=sunos -+ need_lib_prefix=no -+ need_version=no -+ case $host_cpu in -+ ia64*) -+ shrext_cmds='.so' -+ hardcode_into_libs=yes -+ dynamic_linker="$host_os dld.so" -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ if test "X$HPUX_IA64_MODE" = X32; then -+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" -+ else -+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" -+ fi -+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec -+ ;; -+ hppa*64*) -+ shrext_cmds='.sl' -+ hardcode_into_libs=yes -+ dynamic_linker="$host_os dld.sl" -+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH -+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" -+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec -+ ;; -+ *) -+ shrext_cmds='.sl' -+ dynamic_linker="$host_os dld.sl" -+ shlibpath_var=SHLIB_PATH -+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ ;; -+ esac -+ # HP-UX runs *really* slowly unless shared libraries are mode 555. -+ postinstall_cmds='chmod 555 $lib' -+ ;; -+ -+interix[3-9]*) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=no -+ hardcode_into_libs=yes -+ ;; -+ -+irix5* | irix6* | nonstopux*) -+ case $host_os in -+ nonstopux*) version_type=nonstopux ;; -+ *) -+ if test "$lt_cv_prog_gnu_ld" = yes; then -+ version_type=linux -+ else -+ version_type=irix -+ fi ;; -+ esac -+ need_lib_prefix=no -+ need_version=no -+ soname_spec='${libname}${release}${shared_ext}$major' -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' -+ case $host_os in -+ irix5* | nonstopux*) -+ libsuff= shlibsuff= -+ ;; -+ *) -+ case $LD in # libtool.m4 will add one of these switches to LD -+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") -+ libsuff= shlibsuff= libmagic=32-bit;; -+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") -+ libsuff=32 shlibsuff=N32 libmagic=N32;; -+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") -+ libsuff=64 shlibsuff=64 libmagic=64-bit;; -+ *) libsuff= shlibsuff= libmagic=never-match;; -+ esac -+ ;; -+ esac -+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH -+ shlibpath_overrides_runpath=no -+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" -+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" -+ hardcode_into_libs=yes -+ ;; -+ -+# No shared lib support for Linux oldld, aout, or coff. -+linux*oldld* | linux*aout* | linux*coff*) -+ dynamic_linker=no -+ ;; -+ -+# This must be Linux ELF. -+linux* | k*bsd*-gnu) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=no -+ # Some binutils ld are patched to set DT_RUNPATH -+ save_LDFLAGS=$LDFLAGS -+ save_libdir=$libdir -+ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ -+ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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 -+ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then -+ shlibpath_overrides_runpath=yes -+fi -+ -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+ LDFLAGS=$save_LDFLAGS -+ libdir=$save_libdir -+ -+ # This implies no fast_install, which is unacceptable. -+ # Some rework will be needed to allow for fast_install -+ # before this can be enabled. -+ hardcode_into_libs=yes -+ -+ # Append ld.so.conf contents to the search path -+ if test -f /etc/ld.so.conf; then -+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` -+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" -+ fi -+ -+ # We used to test for /lib/ld.so.1 and disable shared libraries on -+ # powerpc, because MkLinux only supported shared libraries with the -+ # GNU dynamic linker. Since this was broken with cross compilers, -+ # most powerpc-linux boxes support dynamic linking these days and -+ # people can always --disable-shared, the test was removed, and we -+ # assume the GNU/Linux dynamic linker is in use. -+ dynamic_linker='GNU/Linux ld.so' -+ ;; -+ -+netbsd*) -+ version_type=sunos -+ need_lib_prefix=no -+ need_version=no -+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' -+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' -+ dynamic_linker='NetBSD (a.out) ld.so' -+ else -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ dynamic_linker='NetBSD ld.elf_so' -+ fi -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=yes -+ hardcode_into_libs=yes -+ ;; -+ -+newsos6) -+ version_type=linux -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=yes -+ ;; -+ -+*nto* | *qnx*) -+ version_type=qnx -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=no -+ hardcode_into_libs=yes -+ dynamic_linker='ldqnx.so' -+ ;; -+ -+openbsd*) -+ version_type=sunos -+ sys_lib_dlsearch_path_spec="/usr/lib" -+ need_lib_prefix=no -+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. -+ case $host_os in -+ openbsd3.3 | openbsd3.3.*) need_version=yes ;; -+ *) need_version=no ;; -+ esac -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' -+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' -+ shlibpath_var=LD_LIBRARY_PATH -+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then -+ case $host_os in -+ openbsd2.[89] | openbsd2.[89].*) -+ shlibpath_overrides_runpath=no -+ ;; -+ *) -+ shlibpath_overrides_runpath=yes -+ ;; -+ esac -+ else -+ shlibpath_overrides_runpath=yes -+ fi -+ ;; -+ -+os2*) -+ libname_spec='$name' -+ shrext_cmds=".dll" -+ need_lib_prefix=no -+ library_names_spec='$libname${shared_ext} $libname.a' -+ dynamic_linker='OS/2 ld.exe' -+ shlibpath_var=LIBPATH -+ ;; -+ -+osf3* | osf4* | osf5*) -+ version_type=osf -+ need_lib_prefix=no -+ need_version=no -+ soname_spec='${libname}${release}${shared_ext}$major' -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ shlibpath_var=LD_LIBRARY_PATH -+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" -+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" -+ ;; -+ -+rdos*) -+ dynamic_linker=no -+ ;; -+ -+solaris*) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=yes -+ hardcode_into_libs=yes -+ # ldd complains unless libraries are executable -+ postinstall_cmds='chmod +x $lib' -+ ;; -+ -+sunos4*) -+ version_type=sunos -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' -+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=yes -+ if test "$with_gnu_ld" = yes; then -+ need_lib_prefix=no -+ fi -+ need_version=yes -+ ;; -+ -+sysv4 | sysv4.3*) -+ version_type=linux -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ shlibpath_var=LD_LIBRARY_PATH -+ case $host_vendor in -+ sni) -+ shlibpath_overrides_runpath=no -+ need_lib_prefix=no -+ runpath_var=LD_RUN_PATH -+ ;; -+ siemens) -+ need_lib_prefix=no -+ ;; -+ motorola) -+ need_lib_prefix=no -+ need_version=no -+ shlibpath_overrides_runpath=no -+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' -+ ;; -+ esac -+ ;; -+ -+sysv4*MP*) -+ if test -d /usr/nec ;then -+ version_type=linux -+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' -+ soname_spec='$libname${shared_ext}.$major' -+ shlibpath_var=LD_LIBRARY_PATH -+ fi -+ ;; -+ -+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) -+ version_type=freebsd-elf -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=yes -+ hardcode_into_libs=yes -+ if test "$with_gnu_ld" = yes; then -+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' -+ else -+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' -+ case $host_os in -+ sco3.2v5*) -+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" -+ ;; -+ esac -+ fi -+ sys_lib_dlsearch_path_spec='/usr/lib' -+ ;; -+ -+tpf*) -+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux. -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ shlibpath_var=LD_LIBRARY_PATH -+ shlibpath_overrides_runpath=no -+ hardcode_into_libs=yes -+ ;; -+ -+uts4*) -+ version_type=linux -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ shlibpath_var=LD_LIBRARY_PATH -+ ;; -+ -+*) -+ dynamic_linker=no -+ ;; -+esac -+echo "$as_me:$LINENO: result: $dynamic_linker" >&5 -+echo "${ECHO_T}$dynamic_linker" >&6 -+test "$dynamic_linker" = no && can_build_shared=no -+ -+variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -+if test "$GCC" = yes; then -+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -+fi -+ -+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then -+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -+fi -+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then -+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" -+fi -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 -+hardcode_action= -+if test -n "$hardcode_libdir_flag_spec" || -+ test -n "$runpath_var" || -+ test "X$hardcode_automatic" = "Xyes" ; then -+ -+ # We can hardcode non-existent directories. -+ if test "$hardcode_direct" != no && -+ # If the only mechanism to avoid hardcoding is shlibpath_var, we -+ # have to relink, otherwise we might link with an installed library -+ # when we should be linking with a yet-to-be-installed one -+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && -+ test "$hardcode_minus_L" != no; then -+ # Linking always hardcodes the temporary library directory. -+ hardcode_action=relink -+ else -+ # We can link without hardcoding, and we can hardcode nonexisting dirs. -+ hardcode_action=immediate -+ fi -+else -+ # We cannot hardcode anything, or else we can only hardcode existing -+ # directories. -+ hardcode_action=unsupported -+fi -+echo "$as_me:$LINENO: result: $hardcode_action" >&5 -+echo "${ECHO_T}$hardcode_action" >&6 -+ -+if test "$hardcode_action" = relink || -+ test "$inherit_rpath" = yes; then -+ # Fast installation is not supported -+ enable_fast_install=no -+elif test "$shlibpath_overrides_runpath" = yes || -+ test "$enable_shared" = no; then -+ # Fast installation is not necessary -+ enable_fast_install=needless -+fi -+ -+ -+ -+ -+ -+ -+ if test "x$enable_dlopen" != xyes; then -+ enable_dlopen=unknown -+ enable_dlopen_self=unknown -+ enable_dlopen_self_static=unknown -+else -+ lt_cv_dlopen=no -+ lt_cv_dlopen_libs= -+ -+ case $host_os in -+ beos*) -+ lt_cv_dlopen="load_add_on" -+ lt_cv_dlopen_libs= -+ lt_cv_dlopen_self=yes -+ ;; -+ -+ mingw* | pw32* | cegcc*) -+ lt_cv_dlopen="LoadLibrary" -+ lt_cv_dlopen_libs= -+ ;; -+ -+ cygwin*) -+ lt_cv_dlopen="dlopen" -+ lt_cv_dlopen_libs= -+ ;; -+ -+ darwin*) -+ # if libdl is installed we need to link against it -+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 -+if test "${ac_cv_lib_dl_dlopen+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_check_lib_save_LIBS=$LIBS -+LIBS="-ldl $LIBS" -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+/* Override any gcc2 internal prototype to avoid an error. */ -+#ifdef __cplusplus -+extern "C" -+#endif -+/* We use char because int might match the return type of a gcc2 -+ builtin and then its argument prototype would still apply. */ -+char dlopen (); -+int -+main () -+{ -+dlopen (); -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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_lib_dl_dlopen=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_lib_dl_dlopen=no -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+LIBS=$ac_check_lib_save_LIBS -+fi -+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 -+if test $ac_cv_lib_dl_dlopen = yes; then -+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -+else -+ -+ lt_cv_dlopen="dyld" -+ lt_cv_dlopen_libs= -+ lt_cv_dlopen_self=yes -+ -+fi -+ -+ ;; -+ -+ *) -+ echo "$as_me:$LINENO: checking for shl_load" >&5 -+echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 -+if test "${ac_cv_func_shl_load+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+/* Define shl_load to an innocuous variant, in case declares shl_load. -+ For example, HP-UX 11i declares gettimeofday. */ -+#define shl_load innocuous_shl_load -+ -+/* System header to define __stub macros and hopefully few prototypes, -+ which can conflict with char shl_load (); below. -+ Prefer to if __STDC__ is defined, since -+ exists even on freestanding compilers. */ -+ -+#ifdef __STDC__ -+# include -+#else -+# include -+#endif -+ -+#undef shl_load -+ -+/* Override any gcc2 internal prototype to avoid an error. */ -+#ifdef __cplusplus -+extern "C" -+{ -+#endif -+/* We use char because int might match the return type of a gcc2 -+ builtin and then its argument prototype would still apply. */ -+char shl_load (); -+/* The GNU C library defines this for functions which it implements -+ to always fail with ENOSYS. Some functions are actually named -+ something starting with __ and the normal name is an alias. */ -+#if defined (__stub_shl_load) || defined (__stub___shl_load) -+choke me -+#else -+char (*f) () = shl_load; -+#endif -+#ifdef __cplusplus -+} -+#endif -+ -+int -+main () -+{ -+return f != shl_load; -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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_func_shl_load=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_func_shl_load=no -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 -+echo "${ECHO_T}$ac_cv_func_shl_load" >&6 -+if test $ac_cv_func_shl_load = yes; then -+ lt_cv_dlopen="shl_load" -+else -+ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 -+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 -+if test "${ac_cv_lib_dld_shl_load+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_check_lib_save_LIBS=$LIBS -+LIBS="-ldld $LIBS" -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+/* Override any gcc2 internal prototype to avoid an error. */ -+#ifdef __cplusplus -+extern "C" -+#endif -+/* We use char because int might match the return type of a gcc2 -+ builtin and then its argument prototype would still apply. */ -+char shl_load (); -+int -+main () -+{ -+shl_load (); -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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_lib_dld_shl_load=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_lib_dld_shl_load=no -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+LIBS=$ac_check_lib_save_LIBS -+fi -+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 -+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 -+if test $ac_cv_lib_dld_shl_load = yes; then -+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" -+else -+ echo "$as_me:$LINENO: checking for dlopen" >&5 -+echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 -+if test "${ac_cv_func_dlopen+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+/* Define dlopen to an innocuous variant, in case declares dlopen. -+ For example, HP-UX 11i declares gettimeofday. */ -+#define dlopen innocuous_dlopen -+ -+/* System header to define __stub macros and hopefully few prototypes, -+ which can conflict with char dlopen (); below. -+ Prefer to if __STDC__ is defined, since -+ exists even on freestanding compilers. */ -+ -+#ifdef __STDC__ -+# include -+#else -+# include -+#endif -+ -+#undef dlopen -+ -+/* Override any gcc2 internal prototype to avoid an error. */ -+#ifdef __cplusplus -+extern "C" -+{ -+#endif -+/* We use char because int might match the return type of a gcc2 -+ builtin and then its argument prototype would still apply. */ -+char dlopen (); -+/* The GNU C library defines this for functions which it implements -+ to always fail with ENOSYS. Some functions are actually named -+ something starting with __ and the normal name is an alias. */ -+#if defined (__stub_dlopen) || defined (__stub___dlopen) -+choke me -+#else -+char (*f) () = dlopen; -+#endif -+#ifdef __cplusplus -+} -+#endif -+ -+int -+main () -+{ -+return f != dlopen; -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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_func_dlopen=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_func_dlopen=no -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 -+echo "${ECHO_T}$ac_cv_func_dlopen" >&6 -+if test $ac_cv_func_dlopen = yes; then -+ lt_cv_dlopen="dlopen" -+else -+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 -+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 -+if test "${ac_cv_lib_dl_dlopen+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_check_lib_save_LIBS=$LIBS -+LIBS="-ldl $LIBS" -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+/* Override any gcc2 internal prototype to avoid an error. */ -+#ifdef __cplusplus -+extern "C" -+#endif -+/* We use char because int might match the return type of a gcc2 -+ builtin and then its argument prototype would still apply. */ -+char dlopen (); -+int -+main () -+{ -+dlopen (); -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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_lib_dl_dlopen=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_lib_dl_dlopen=no -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+LIBS=$ac_check_lib_save_LIBS -+fi -+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 -+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 -+if test $ac_cv_lib_dl_dlopen = yes; then -+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" -+else -+ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 -+echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 -+if test "${ac_cv_lib_svld_dlopen+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_check_lib_save_LIBS=$LIBS -+LIBS="-lsvld $LIBS" -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+/* Override any gcc2 internal prototype to avoid an error. */ -+#ifdef __cplusplus -+extern "C" -+#endif -+/* We use char because int might match the return type of a gcc2 -+ builtin and then its argument prototype would still apply. */ -+char dlopen (); -+int -+main () -+{ -+dlopen (); -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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_lib_svld_dlopen=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_lib_svld_dlopen=no -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+LIBS=$ac_check_lib_save_LIBS -+fi -+echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 -+echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 -+if test $ac_cv_lib_svld_dlopen = yes; then -+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" -+else -+ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 -+echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 -+if test "${ac_cv_lib_dld_dld_link+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_check_lib_save_LIBS=$LIBS -+LIBS="-ldld $LIBS" -+cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+/* Override any gcc2 internal prototype to avoid an error. */ -+#ifdef __cplusplus -+extern "C" -+#endif -+/* We use char because int might match the return type of a gcc2 -+ builtin and then its argument prototype would still apply. */ -+char dld_link (); -+int -+main () -+{ -+dld_link (); -+ ; -+ return 0; -+} -+_ACEOF -+rm -f conftest.$ac_objext conftest$ac_exeext -+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 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_c_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_exeext' -+ { (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_lib_dld_dld_link=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_lib_dld_dld_link=no -+fi -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext -+LIBS=$ac_check_lib_save_LIBS -+fi -+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 -+echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 -+if test $ac_cv_lib_dld_dld_link = yes; then -+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" -+fi -+ -+ -+fi -+ -+ -+fi -+ -+ -+fi -+ -+ -+fi -+ -+ -+fi -+ -+ ;; -+ esac -+ -+ if test "x$lt_cv_dlopen" != xno; then -+ enable_dlopen=yes -+ else -+ enable_dlopen=no -+ fi -+ -+ case $lt_cv_dlopen in -+ dlopen) -+ save_CPPFLAGS="$CPPFLAGS" -+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" -+ -+ save_LDFLAGS="$LDFLAGS" -+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" -+ -+ save_LIBS="$LIBS" -+ LIBS="$lt_cv_dlopen_libs $LIBS" -+ -+ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 -+echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 -+if test "${lt_cv_dlopen_self+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test "$cross_compiling" = yes; then : -+ lt_cv_dlopen_self=cross -+else -+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 -+ lt_status=$lt_dlunknown -+ cat > conftest.$ac_ext <<_LT_EOF -+#line 11031 "configure" -+#include "confdefs.h" -+ -+#if HAVE_DLFCN_H -+#include -+#endif -+ -+#include -+ -+#ifdef RTLD_GLOBAL -+# define LT_DLGLOBAL RTLD_GLOBAL -+#else -+# ifdef DL_GLOBAL -+# define LT_DLGLOBAL DL_GLOBAL -+# else -+# define LT_DLGLOBAL 0 -+# endif -+#endif -+ -+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we -+ find out it does not work in some platform. */ -+#ifndef LT_DLLAZY_OR_NOW -+# ifdef RTLD_LAZY -+# define LT_DLLAZY_OR_NOW RTLD_LAZY -+# else -+# ifdef DL_LAZY -+# define LT_DLLAZY_OR_NOW DL_LAZY -+# else -+# ifdef RTLD_NOW -+# define LT_DLLAZY_OR_NOW RTLD_NOW -+# else -+# ifdef DL_NOW -+# define LT_DLLAZY_OR_NOW DL_NOW -+# else -+# define LT_DLLAZY_OR_NOW 0 -+# endif -+# endif -+# endif -+# endif -+#endif -+ -+void fnord() { int i=42;} -+int main () -+{ -+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -+ int status = $lt_dlunknown; -+ -+ if (self) -+ { -+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore; -+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; -+ /* dlclose (self); */ -+ } -+ else -+ puts (dlerror ()); -+ -+ return status; -+} -+_LT_EOF -+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then -+ (./conftest; exit; ) >&5 2>/dev/null -+ lt_status=$? -+ case x$lt_status in -+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; -+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; -+ x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; -+ esac -+ else : -+ # compilation failed -+ lt_cv_dlopen_self=no -+ fi -+fi -+rm -fr conftest* -+ -+ -+fi -+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 -+echo "${ECHO_T}$lt_cv_dlopen_self" >&6 -+ -+ if test "x$lt_cv_dlopen_self" = xyes; then -+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" -+ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 -+echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 -+if test "${lt_cv_dlopen_self_static+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test "$cross_compiling" = yes; then : -+ lt_cv_dlopen_self_static=cross -+else -+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 -+ lt_status=$lt_dlunknown -+ cat > conftest.$ac_ext <<_LT_EOF -+#line 11127 "configure" -+#include "confdefs.h" -+ -+#if HAVE_DLFCN_H -+#include -+#endif -+ -+#include -+ -+#ifdef RTLD_GLOBAL -+# define LT_DLGLOBAL RTLD_GLOBAL -+#else -+# ifdef DL_GLOBAL -+# define LT_DLGLOBAL DL_GLOBAL -+# else -+# define LT_DLGLOBAL 0 -+# endif -+#endif -+ -+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we -+ find out it does not work in some platform. */ -+#ifndef LT_DLLAZY_OR_NOW -+# ifdef RTLD_LAZY -+# define LT_DLLAZY_OR_NOW RTLD_LAZY -+# else -+# ifdef DL_LAZY -+# define LT_DLLAZY_OR_NOW DL_LAZY -+# else -+# ifdef RTLD_NOW -+# define LT_DLLAZY_OR_NOW RTLD_NOW -+# else -+# ifdef DL_NOW -+# define LT_DLLAZY_OR_NOW DL_NOW -+# else -+# define LT_DLLAZY_OR_NOW 0 -+# endif -+# endif -+# endif -+# endif -+#endif -+ -+void fnord() { int i=42;} -+int main () -+{ -+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -+ int status = $lt_dlunknown; -+ -+ if (self) -+ { -+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore; -+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; -+ /* dlclose (self); */ -+ } -+ else -+ puts (dlerror ()); -+ -+ return status; -+} -+_LT_EOF -+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -+ (eval $ac_link) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then -+ (./conftest; exit; ) >&5 2>/dev/null -+ lt_status=$? -+ case x$lt_status in -+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; -+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; -+ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; -+ esac -+ else : -+ # compilation failed -+ lt_cv_dlopen_self_static=no -+ fi -+fi -+rm -fr conftest* -+ -+ -+fi -+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 -+echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 -+ fi -+ -+ CPPFLAGS="$save_CPPFLAGS" -+ LDFLAGS="$save_LDFLAGS" -+ LIBS="$save_LIBS" -+ ;; -+ esac -+ -+ case $lt_cv_dlopen_self in -+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; -+ *) enable_dlopen_self=unknown ;; -+ esac -+ -+ case $lt_cv_dlopen_self_static in -+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; -+ *) enable_dlopen_self_static=unknown ;; -+ esac -+fi -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+striplib= -+old_striplib= -+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 -+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then -+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" -+ test -z "$striplib" && striplib="$STRIP --strip-unneeded" -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+else -+# FIXME - insert some real tests, host_os isn't really good enough -+ case $host_os in -+ darwin*) -+ if test -n "$STRIP" ; then -+ striplib="$STRIP -x" -+ old_striplib="$STRIP -S" -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+ else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+ fi -+ ;; -+ *) -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+ ;; -+ esac -+fi -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ # Report which library types will actually be built -+ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -+echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 -+ echo "$as_me:$LINENO: result: $can_build_shared" >&5 -+echo "${ECHO_T}$can_build_shared" >&6 -+ -+ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -+echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 -+ test "$can_build_shared" = "no" && enable_shared=no -+ -+ # On AIX, shared libraries and static libraries use the same namespace, and -+ # are all built from PIC. -+ case $host_os in -+ aix3*) -+ test "$enable_shared" = yes && enable_static=no -+ if test -n "$RANLIB"; then -+ archive_cmds="$archive_cmds~\$RANLIB \$lib" -+ postinstall_cmds='$RANLIB $lib' -+ fi -+ ;; -+ -+ aix[4-9]*) -+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then -+ test "$enable_shared" = yes && enable_static=no -+ fi -+ ;; -+ esac -+ echo "$as_me:$LINENO: result: $enable_shared" >&5 -+echo "${ECHO_T}$enable_shared" >&6 -+ -+ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -+echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 -+ # Make sure either enable_shared or enable_static is yes. -+ test "$enable_shared" = yes || enable_static=yes -+ echo "$as_me:$LINENO: result: $enable_static" >&5 -+echo "${ECHO_T}$enable_static" >&6 -+ -+ -+ -+ -+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 -+ -+CC="$lt_save_CC" -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ ac_config_commands="$ac_config_commands libtool" -+ -+ -+ -+ -+# Only expand once: -+ -+ -+fi -+ -+if test -n "${sys_dir}"; then -+ case ${sys_dir} in -+ a29khif) -+ -+subdirs="$subdirs a29khif" -+ ;; -+ arc) -+ -+subdirs="$subdirs arc" -+ ;; -+ arm) -+ -+subdirs="$subdirs arm" -+ ;; -+ d10v) -+ -+subdirs="$subdirs d10v" -+ ;; -+ decstation) -+ -+subdirs="$subdirs decstation" -+ ;; -+ h8300hms) -+ -+subdirs="$subdirs h8300hms" -+ ;; -+ h8500hms) -+ -+subdirs="$subdirs h8500hms" -+ ;; -+ linux) -+ -+subdirs="$subdirs linux" -+ ;; -+ m88kbug) -+ -+subdirs="$subdirs m88kbug" -+ ;; -+ mmixware) -+ -+subdirs="$subdirs mmixware" -+ ;; -+ netware) -+ -+subdirs="$subdirs netware" -+ ;; -+ rdos) -+ -+subdirs="$subdirs rdos" -+ ;; -+ rtems) -+ -+subdirs="$subdirs rtems" -+ ;; -+ sh) -+ -+subdirs="$subdirs sh" -+ ;; -+ sparc64) -+ -+subdirs="$subdirs sparc64" -+ ;; -+ sun4) -+ -+subdirs="$subdirs sun4" -+ ;; -+ sysmec) -+ -+subdirs="$subdirs sysmec" -+ ;; -+ sysnec810) -+ -+subdirs="$subdirs sysnec810" -+ ;; -+ sysnecv850) -+ -+subdirs="$subdirs sysnecv850" -+ ;; -+ sysvi386) -+ -+subdirs="$subdirs sysvi386" -+ ;; -+ sysvnecv70) -+ -+subdirs="$subdirs sysvnecv70" -+ ;; -+ tic80) -+ -+subdirs="$subdirs tic80" -+ ;; -+ w65) -+ -+subdirs="$subdirs w65" -+ ;; -+ z8ksim) -+ -+subdirs="$subdirs z8ksim" -+ ;; -+ esac; -+fi -+ -+CRT0= -+if test "x${have_crt0}" = "xyes"; then -+ CRT0=crt0.o -+fi -+ -+ -+ -+ -+if test x${sys_dir} != x; then -+ HAVE_SYS_DIR_TRUE= -+ HAVE_SYS_DIR_FALSE='#' -+else -+ HAVE_SYS_DIR_TRUE='#' -+ HAVE_SYS_DIR_FALSE= -+fi -+ -+ -+ ac_config_files="$ac_config_files Makefile" -+ -+cat >confcache <<\_ACEOF -+# This file is a shell script that caches the results of configure -+# tests run on this system so they can be shared between configure -+# scripts and configure runs, see configure's option --config-cache. -+# It is not useful on other systems. If it contains results you don't -+# want to keep, you may remove or edit it. -+# -+# config.status only pays attention to the cache file if you give it -+# the --recheck option to rerun configure. -+# -+# `ac_cv_env_foo' variables (set or unset) will be overridden when -+# loading this file, other *unset* `ac_cv_foo' will be assigned the -+# following values. -+ -+_ACEOF -+ -+# The following way of writing the cache mishandles newlines in values, -+# but we know of no workaround that is simple, portable, and efficient. -+# So, don't put newlines in cache variables' values. -+# Ultrix sh set writes to stderr and can't be redirected directly, -+# and sets the high bit in the cache file unless we assign to the vars. -+{ -+ (set) 2>&1 | -+ case `(ac_space=' '; set | grep ac_space) 2>&1` in -+ *ac_space=\ *) -+ # `set' does not quote correctly, so add quotes (double-quote -+ # substitution turns \\\\ into \\, and sed turns \\ into \). -+ sed -n \ -+ "s/'/'\\\\''/g; -+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" -+ ;; -+ *) -+ # `set' quotes correctly as required by POSIX, so do not add quotes. -+ sed -n \ -+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" -+ ;; -+ esac; -+} | -+ sed ' -+ t clear -+ : clear -+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ -+ t end -+ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ -+ : end' >>confcache -+if diff $cache_file confcache >/dev/null 2>&1; then :; else -+ if test -w $cache_file; then -+ test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" -+ cat confcache >$cache_file -+ else -+ echo "not updating unwritable cache $cache_file" -+ fi -+fi -+rm -f confcache -+ -+test "x$prefix" = xNONE && prefix=$ac_default_prefix -+# Let make expand exec_prefix. -+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -+ -+# VPATH may cause trouble with some makes, so we remove $(srcdir), -+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -+# trailing colons and then remove the whole line if VPATH becomes empty -+# (actually we leave an empty line to preserve line numbers). -+if test "x$srcdir" = x.; then -+ ac_vpsub='/^[ ]*VPATH[ ]*=/{ -+s/:*\$(srcdir):*/:/; -+s/:*\${srcdir}:*/:/; -+s/:*@srcdir@:*/:/; -+s/^\([^=]*=[ ]*\):*/\1/; -+s/:*$//; -+s/^[^=]*=[ ]*$//; -+}' -+fi -+ -+# Transform confdefs.h into DEFS. -+# Protect against shell expansion while executing Makefile rules. -+# Protect against Makefile macro expansion. -+# -+# If the first sed substitution is executed (which looks for macros that -+# take arguments), then we branch to the quote section. Otherwise, -+# look for a macro that doesn't take arguments. -+cat >confdef2opt.sed <<\_ACEOF -+t clear -+: clear -+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -+t quote -+s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -+t quote -+d -+: quote -+s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -+s,\[,\\&,g -+s,\],\\&,g -+s,\$,$$,g -+p -+_ACEOF -+# We use echo to avoid assuming a particular line-breaking character. -+# The extra dot is to prevent the shell from consuming trailing -+# line-breaks from the sub-command output. A line-break within -+# single-quotes doesn't work because, if this script is created in a -+# platform that uses two characters for line-breaks (e.g., DOS), tr -+# would break. -+ac_LF_and_DOT=`echo; echo .` -+DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -+rm -f confdef2opt.sed -+ -+ -+ac_libobjs= -+ac_ltlibobjs= -+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue -+ # 1. Remove the extension, and $U if already installed. -+ ac_i=`echo "$ac_i" | -+ sed 's/\$U\././;s/\.o$//;s/\.obj$//'` -+ # 2. Add them. -+ ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" -+ ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' -+done -+LIBOBJS=$ac_libobjs -+ -+LTLIBOBJS=$ac_ltlibobjs -+ -+ -+if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"AMDEP\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${HAVE_SYS_DIR_TRUE}" && test -z "${HAVE_SYS_DIR_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYS_DIR\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"HAVE_SYS_DIR\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ -+: ${CONFIG_STATUS=./config.status} -+ac_clean_files_save=$ac_clean_files -+ac_clean_files="$ac_clean_files $CONFIG_STATUS" -+{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -+echo "$as_me: creating $CONFIG_STATUS" >&6;} -+cat >$CONFIG_STATUS <<_ACEOF -+#! $SHELL -+# Generated by $as_me. -+# Run this file to recreate the current configuration. -+# Compiler output produced by configure, useful for debugging -+# configure, is in config.log if it exists. -+ -+debug=false -+ac_cs_recheck=false -+ac_cs_silent=false -+SHELL=\${CONFIG_SHELL-$SHELL} -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+## --------------------- ## -+## M4sh Initialization. ## -+## --------------------- ## -+ -+# Be Bourne compatible -+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then -+ emulate sh -+ NULLCMD=: -+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which -+ # is contrary to our usage. Disable this feature. -+ alias -g '${1+"$@"}'='"$@"' -+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then -+ set -o posix -+fi -+DUALCASE=1; export DUALCASE # for MKS sh -+ -+# Support unset when possible. -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then -+ as_unset=unset -+else -+ as_unset=false -+fi -+ -+ -+# Work around bugs in pre-3.0 UWIN ksh. -+$as_unset ENV MAIL MAILPATH -+PS1='$ ' -+PS2='> ' -+PS4='+ ' -+ -+# NLS nuisances. -+for as_var in \ -+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ -+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ -+ LC_TELEPHONE LC_TIME -+do -+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then -+ eval $as_var=C; export $as_var -+ else -+ $as_unset $as_var -+ fi -+done -+ -+# Required to use basename. -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then -+ as_basename=basename -+else -+ as_basename=false -+fi -+ -+ -+# Name of the executable. -+as_me=`$as_basename "$0" || -+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ -+ X"$0" : 'X\(//\)$' \| \ -+ X"$0" : 'X\(/\)$' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X/"$0" | -+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } -+ /^X\/\(\/\/\)$/{ s//\1/; q; } -+ /^X\/\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ -+ -+# PATH needs CR, and LINENO needs CR and PATH. -+# Avoid depending upon Character Ranges. -+as_cr_letters='abcdefghijklmnopqrstuvwxyz' -+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -+as_cr_Letters=$as_cr_letters$as_cr_LETTERS -+as_cr_digits='0123456789' -+as_cr_alnum=$as_cr_Letters$as_cr_digits -+ -+# 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 -+ -+ -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" || { -+ # Find who we are. Look in the path if we contain no path at all -+ # relative or not. -+ case $0 in -+ *[\\/]* ) as_myself=$0 ;; -+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -+done -+ -+ ;; -+ esac -+ # We did not find ourselves, most probably we were run as `sh COMMAND' -+ # in which case we are not to be found in the path. -+ if test "x$as_myself" = x; then -+ as_myself=$0 -+ fi -+ if test ! -f "$as_myself"; then -+ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 -+echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} -+ { (exit 1); exit 1; }; } -+ fi -+ case $CONFIG_SHELL in -+ '') -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ for as_base in sh bash ksh sh5; do -+ case $as_dir in -+ /*) -+ if ("$as_dir/$as_base" -c ' -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then -+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } -+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } -+ CONFIG_SHELL=$as_dir/$as_base -+ export CONFIG_SHELL -+ exec "$CONFIG_SHELL" "$0" ${1+"$@"} -+ fi;; -+ esac -+ done -+done -+;; -+ esac -+ -+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO -+ # uniformly replaced by the line number. The first 'sed' inserts a -+ # line-number line before each line; the second 'sed' does the real -+ # work. The second script uses 'N' to pair each line-number line -+ # with the numbered line, and appends trailing '-' during -+ # substitution so that $LINENO is not a special case at line end. -+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the -+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) -+ sed '=' <$as_myself | -+ sed ' -+ N -+ s,$,-, -+ : loop -+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, -+ t loop -+ s,-$,, -+ s,^['$as_cr_digits']*\n,, -+ ' >$as_me.lineno && -+ chmod +x $as_me.lineno || -+ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 -+echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} -+ { (exit 1); exit 1; }; } -+ -+ # Don't try to exec as it changes $[0], causing all sort of problems -+ # (the dirname of $[0] is not the place where we might find the -+ # original and so on. Autoconf is especially sensible to this). -+ . ./$as_me.lineno -+ # Exit status is that of the last command. -+ exit -+} -+ -+ -+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in -+ *c*,-n*) ECHO_N= ECHO_C=' -+' ECHO_T=' ' ;; -+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; -+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -+esac -+ -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+rm -f conf$$ conf$$.exe conf$$.file -+echo >conf$$.file -+if ln -s conf$$.file conf$$ 2>/dev/null; then -+ # We could just check for DJGPP; but this test a) works b) is more generic -+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). -+ if test -f conf$$.exe; then -+ # Don't use ln at all; we don't have any links -+ as_ln_s='cp -p' -+ else -+ as_ln_s='ln -s' -+ fi -+elif ln conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s=ln -+else -+ as_ln_s='cp -p' -+fi -+rm -f conf$$ conf$$.exe conf$$.file -+ -+if mkdir -p . 2>/dev/null; then -+ as_mkdir_p=: -+else -+ test -d ./-p && rmdir ./-p -+ as_mkdir_p=false -+fi -+ -+as_executable_p="test -f" -+ -+# Sed expression to map a string onto a valid CPP name. -+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -+ -+# Sed expression to map a string onto a valid variable name. -+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -+ -+ -+# IFS -+# We need space, tab and new line, in precisely that order. -+as_nl=' -+' -+IFS=" $as_nl" -+ -+# CDPATH. -+$as_unset CDPATH -+ -+exec 6>&1 -+ -+# Open the log real soon, to keep \$[0] and so on meaningful, and to -+# report actual input values of CONFIG_FILES etc. instead of their -+# values after options handling. Logging --version etc. is OK. -+exec 5>>config.log -+{ -+ echo -+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -+## Running $as_me. ## -+_ASBOX -+} >&5 -+cat >&5 <<_CSEOF -+ -+This file was extended by newlib $as_me 1.17.0, which was -+generated by GNU Autoconf 2.59. Invocation command line was -+ -+ CONFIG_FILES = $CONFIG_FILES -+ CONFIG_HEADERS = $CONFIG_HEADERS -+ CONFIG_LINKS = $CONFIG_LINKS -+ CONFIG_COMMANDS = $CONFIG_COMMANDS -+ $ $0 $@ -+ -+_CSEOF -+echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 -+echo >&5 -+_ACEOF -+ -+# Files that config.status was made for. -+if test -n "$ac_config_files"; then -+ echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -+fi -+ -+if test -n "$ac_config_headers"; then -+ echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -+fi -+ -+if test -n "$ac_config_links"; then -+ echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -+fi -+ -+if test -n "$ac_config_commands"; then -+ echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -+fi -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -+ac_cs_usage="\ -+\`$as_me' instantiates files from templates according to the -+current configuration. -+ -+Usage: $0 [OPTIONS] [FILE]... -+ -+ -h, --help print this help, then exit -+ -V, --version print version number, then exit -+ -q, --quiet do not print progress messages -+ -d, --debug don't remove temporary files -+ --recheck update $as_me by reconfiguring in the same conditions -+ --file=FILE[:TEMPLATE] -+ instantiate the configuration file FILE -+ -+Configuration files: -+$config_files -+ -+Configuration commands: -+$config_commands -+ -+Report bugs to ." -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<_ACEOF -+ac_cs_version="\\ -+newlib config.status 1.17.0 -+configured by $0, generated by GNU Autoconf 2.59, -+ with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" -+ -+Copyright (C) 2003 Free Software Foundation, Inc. -+This config.status script is free software; the Free Software Foundation -+gives unlimited permission to copy, distribute and modify it." -+srcdir=$srcdir -+INSTALL="$INSTALL" -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+# If no file are specified by the user, then we need to provide default -+# value. By we need to know if files were specified by the user. -+ac_need_defaults=: -+while test $# != 0 -+do -+ case $1 in -+ --*=*) -+ ac_option=`expr "x$1" : 'x\([^=]*\)='` -+ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` -+ ac_shift=: -+ ;; -+ -*) -+ ac_option=$1 -+ ac_optarg=$2 -+ ac_shift=shift -+ ;; -+ *) # This is not an option, so the user has probably given explicit -+ # arguments. -+ ac_option=$1 -+ ac_need_defaults=false;; -+ esac -+ -+ case $ac_option in -+ # Handling of the options. -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) -+ ac_cs_recheck=: ;; -+ --version | --vers* | -V ) -+ echo "$ac_cs_version"; exit 0 ;; -+ --he | --h) -+ # Conflict between --help and --header -+ { { echo "$as_me:$LINENO: error: ambiguous option: $1 -+Try \`$0 --help' for more information." >&5 -+echo "$as_me: error: ambiguous option: $1 -+Try \`$0 --help' for more information." >&2;} -+ { (exit 1); exit 1; }; };; -+ --help | --hel | -h ) -+ echo "$ac_cs_usage"; exit 0 ;; -+ --debug | --d* | -d ) -+ debug=: ;; -+ --file | --fil | --fi | --f ) -+ $ac_shift -+ CONFIG_FILES="$CONFIG_FILES $ac_optarg" -+ ac_need_defaults=false;; -+ --header | --heade | --head | --hea ) -+ $ac_shift -+ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" -+ ac_need_defaults=false;; -+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ -+ | -silent | --silent | --silen | --sile | --sil | --si | --s) -+ ac_cs_silent=: ;; -+ -+ # This is an error. -+ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 -+Try \`$0 --help' for more information." >&5 -+echo "$as_me: error: unrecognized option: $1 -+Try \`$0 --help' for more information." >&2;} -+ { (exit 1); exit 1; }; } ;; -+ -+ *) ac_config_targets="$ac_config_targets $1" ;; -+ -+ esac -+ shift -+done -+ -+ac_configure_extra_args= -+ -+if $ac_cs_silent; then -+ exec 6>/dev/null -+ ac_configure_extra_args="$ac_configure_extra_args --silent" -+fi -+ -+_ACEOF -+cat >>$CONFIG_STATUS <<_ACEOF -+if \$ac_cs_recheck; then -+ echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 -+ exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -+fi -+ -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<_ACEOF -+# -+# INIT-COMMANDS section. -+# -+ -+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" -+ -+ -+# The HP-UX ksh and POSIX shell print the target directory to stdout -+# if CDPATH is set. -+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH -+ -+sed_quote_subst='$sed_quote_subst' -+double_quote_subst='$double_quote_subst' -+delay_variable_subst='$delay_variable_subst' -+SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' -+Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' -+AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' -+DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' -+OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' -+macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' -+macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' -+enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' -+enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' -+pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' -+enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' -+host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' -+host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' -+host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' -+build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' -+build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' -+build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' -+GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' -+EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' -+FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' -+LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' -+NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' -+LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' -+max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' -+ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' -+exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' -+lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' -+lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' -+lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' -+reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' -+reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' -+file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' -+AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' -+AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' -+STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' -+RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' -+old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' -+CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' -+compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' -+GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' -+lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' -+lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' -+lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' -+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' -+objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' -+SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' -+ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' -+MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' -+lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' -+lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' -+lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' -+lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' -+lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' -+need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' -+DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' -+NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' -+LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' -+OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' -+OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' -+libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' -+shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' -+enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' -+export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' -+whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' -+compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' -+old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' -+allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' -+no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' -+hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' -+hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' -+hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' -+hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' -+hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' -+hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' -+hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' -+hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' -+inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' -+link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' -+fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' -+always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' -+export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' -+include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' -+prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' -+variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' -+need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' -+need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' -+version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' -+runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' -+shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' -+shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' -+libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' -+library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' -+soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' -+postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' -+finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' -+hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' -+sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' -+sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' -+hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' -+enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' -+enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' -+enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' -+old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' -+striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' -+ -+LTCC='$LTCC' -+LTCFLAGS='$LTCFLAGS' -+compiler='$compiler_DEFAULT' -+ -+# Quote evaled strings. -+for var in SED \ -+GREP \ -+EGREP \ -+FGREP \ -+LD \ -+NM \ -+LN_S \ -+lt_SP2NL \ -+lt_NL2SP \ -+reload_flag \ -+deplibs_check_method \ -+file_magic_cmd \ -+AR \ -+AR_FLAGS \ -+STRIP \ -+RANLIB \ -+CC \ -+CFLAGS \ -+compiler \ -+lt_cv_sys_global_symbol_pipe \ -+lt_cv_sys_global_symbol_to_cdecl \ -+lt_cv_sys_global_symbol_to_c_name_address \ -+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ -+SHELL \ -+ECHO \ -+lt_prog_compiler_no_builtin_flag \ -+lt_prog_compiler_wl \ -+lt_prog_compiler_pic \ -+lt_prog_compiler_static \ -+lt_cv_prog_compiler_c_o \ -+need_locks \ -+DSYMUTIL \ -+NMEDIT \ -+LIPO \ -+OTOOL \ -+OTOOL64 \ -+shrext_cmds \ -+export_dynamic_flag_spec \ -+whole_archive_flag_spec \ -+compiler_needs_object \ -+with_gnu_ld \ -+allow_undefined_flag \ -+no_undefined_flag \ -+hardcode_libdir_flag_spec \ -+hardcode_libdir_flag_spec_ld \ -+hardcode_libdir_separator \ -+fix_srcfile_path \ -+exclude_expsyms \ -+include_expsyms \ -+file_list_spec \ -+variables_saved_for_relink \ -+libname_spec \ -+library_names_spec \ -+soname_spec \ -+finish_eval \ -+old_striplib \ -+striplib; do -+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in -+ *[\\\\\\\`\\"\\\$]*) -+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" -+ ;; -+ *) -+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" -+ ;; -+ esac -+done -+ -+# Double-quote double-evaled strings. -+for var in reload_cmds \ -+old_postinstall_cmds \ -+old_postuninstall_cmds \ -+old_archive_cmds \ -+extract_expsyms_cmds \ -+old_archive_from_new_cmds \ -+old_archive_from_expsyms_cmds \ -+archive_cmds \ -+archive_expsym_cmds \ -+module_cmds \ -+module_expsym_cmds \ -+export_symbols_cmds \ -+prelink_cmds \ -+postinstall_cmds \ -+postuninstall_cmds \ -+finish_cmds \ -+sys_lib_search_path_spec \ -+sys_lib_dlsearch_path_spec; do -+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in -+ *[\\\\\\\`\\"\\\$]*) -+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" -+ ;; -+ *) -+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" -+ ;; -+ esac -+done -+ -+# Fix-up fallback echo if it was mangled by the above quoting rules. -+case \$lt_ECHO in -+*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` -+ ;; -+esac -+ -+ac_aux_dir='$ac_aux_dir' -+xsi_shell='$xsi_shell' -+lt_shell_append='$lt_shell_append' -+ -+# See if we are running on zsh, and set the options which allow our -+# commands through without removal of \ escapes INIT. -+if test -n "\${ZSH_VERSION+set}" ; then -+ setopt NO_GLOB_SUBST -+fi -+ -+ -+ PACKAGE='$PACKAGE' -+ VERSION='$VERSION' -+ TIMESTAMP='$TIMESTAMP' -+ RM='$RM' -+ ofile='$ofile' -+ -+ -+ -+ -+_ACEOF -+ -+ -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+for ac_config_target in $ac_config_targets -+do -+ case "$ac_config_target" in -+ # Handling of arguments. -+ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; -+ "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; -+ "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; -+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -+echo "$as_me: error: invalid argument: $ac_config_target" >&2;} -+ { (exit 1); exit 1; }; };; -+ esac -+done -+ -+# If the user did not use the arguments to specify the items to instantiate, -+# then the envvar interface is used. Set only those that are not. -+# We use the long form for the default assignment because of an extremely -+# bizarre bug on SunOS 4.1.3. -+if $ac_need_defaults; then -+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files -+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -+fi -+ -+# Have a temporary directory for convenience. Make it in the build tree -+# simply because there is no reason to put it here, and in addition, -+# creating and moving files from /tmp can sometimes cause problems. -+# Create a temporary directory, and hook for its removal unless debugging. -+$debug || -+{ -+ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 -+ trap '{ (exit 1); exit 1; }' 1 2 13 15 -+} -+ -+# Create a (secure) tmp directory for tmp files. -+ -+{ -+ tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && -+ test -n "$tmp" && test -d "$tmp" -+} || -+{ -+ tmp=./confstat$$-$RANDOM -+ (umask 077 && mkdir $tmp) -+} || -+{ -+ echo "$me: cannot create a temporary directory in ." >&2 -+ { (exit 1); exit 1; } -+} -+ -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<_ACEOF -+ -+# -+# CONFIG_FILES section. -+# -+ -+# No need to generate the scripts if there are no CONFIG_FILES. -+# This happens for instance when ./config.status config.h -+if test -n "\$CONFIG_FILES"; then -+ # Protect against being on the right side of a sed subst in config.status. -+ sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; -+ s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF -+s,@SHELL@,$SHELL,;t t -+s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -+s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -+s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -+s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -+s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -+s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -+s,@exec_prefix@,$exec_prefix,;t t -+s,@prefix@,$prefix,;t t -+s,@program_transform_name@,$program_transform_name,;t t -+s,@bindir@,$bindir,;t t -+s,@sbindir@,$sbindir,;t t -+s,@libexecdir@,$libexecdir,;t t -+s,@datadir@,$datadir,;t t -+s,@sysconfdir@,$sysconfdir,;t t -+s,@sharedstatedir@,$sharedstatedir,;t t -+s,@localstatedir@,$localstatedir,;t t -+s,@libdir@,$libdir,;t t -+s,@includedir@,$includedir,;t t -+s,@oldincludedir@,$oldincludedir,;t t -+s,@infodir@,$infodir,;t t -+s,@mandir@,$mandir,;t t -+s,@build_alias@,$build_alias,;t t -+s,@host_alias@,$host_alias,;t t -+s,@target_alias@,$target_alias,;t t -+s,@DEFS@,$DEFS,;t t -+s,@ECHO_C@,$ECHO_C,;t t -+s,@ECHO_N@,$ECHO_N,;t t -+s,@ECHO_T@,$ECHO_T,;t t -+s,@LIBS@,$LIBS,;t t -+s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t -+s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t -+s,@newlib_basedir@,$newlib_basedir,;t t -+s,@build@,$build,;t t -+s,@build_cpu@,$build_cpu,;t t -+s,@build_vendor@,$build_vendor,;t t -+s,@build_os@,$build_os,;t t -+s,@host@,$host,;t t -+s,@host_cpu@,$host_cpu,;t t -+s,@host_vendor@,$host_vendor,;t t -+s,@host_os@,$host_os,;t t -+s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t -+s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t -+s,@INSTALL_DATA@,$INSTALL_DATA,;t t -+s,@CYGPATH_W@,$CYGPATH_W,;t t -+s,@PACKAGE@,$PACKAGE,;t t -+s,@VERSION@,$VERSION,;t t -+s,@ACLOCAL@,$ACLOCAL,;t t -+s,@AUTOCONF@,$AUTOCONF,;t t -+s,@AUTOMAKE@,$AUTOMAKE,;t t -+s,@AUTOHEADER@,$AUTOHEADER,;t t -+s,@MAKEINFO@,$MAKEINFO,;t t -+s,@install_sh@,$install_sh,;t t -+s,@STRIP@,$STRIP,;t t -+s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t -+s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t -+s,@mkdir_p@,$mkdir_p,;t t -+s,@AWK@,$AWK,;t t -+s,@SET_MAKE@,$SET_MAKE,;t t -+s,@am__leading_dot@,$am__leading_dot,;t t -+s,@AMTAR@,$AMTAR,;t t -+s,@am__tar@,$am__tar,;t t -+s,@am__untar@,$am__untar,;t t -+s,@CC@,$CC,;t t -+s,@DEPDIR@,$DEPDIR,;t t -+s,@am__include@,$am__include,;t t -+s,@am__quote@,$am__quote,;t t -+s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t -+s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t -+s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t -+s,@CCDEPMODE@,$CCDEPMODE,;t t -+s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t -+s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t -+s,@AS@,$AS,;t t -+s,@ac_ct_AS@,$ac_ct_AS,;t t -+s,@AR@,$AR,;t t -+s,@ac_ct_AR@,$ac_ct_AR,;t t -+s,@RANLIB@,$RANLIB,;t t -+s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t -+s,@READELF@,$READELF,;t t -+s,@ac_ct_READELF@,$ac_ct_READELF,;t t -+s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t -+s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t -+s,@MAINT@,$MAINT,;t t -+s,@CCAS@,$CCAS,;t t -+s,@CCASFLAGS@,$CCASFLAGS,;t t -+s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t -+s,@LDFLAGS@,$LDFLAGS,;t t -+s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t -+s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t -+s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t -+s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t -+s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t -+s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t -+s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t -+s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t -+s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t -+s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t -+s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t -+s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t -+s,@OBJEXT@,$OBJEXT,;t t -+s,@oext@,$oext,;t t -+s,@aext@,$aext,;t t -+s,@lpfx@,$lpfx,;t t -+s,@libm_machine_dir@,$libm_machine_dir,;t t -+s,@machine_dir@,$machine_dir,;t t -+s,@sys_dir@,$sys_dir,;t t -+s,@SED@,$SED,;t t -+s,@DLLTOOL@,$DLLTOOL,;t t -+s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t -+s,@OBJDUMP@,$OBJDUMP,;t t -+s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t -+s,@LIBTOOL@,$LIBTOOL,;t t -+s,@CFLAGS@,$CFLAGS,;t t -+s,@CPPFLAGS@,$CPPFLAGS,;t t -+s,@ac_ct_CC@,$ac_ct_CC,;t t -+s,@EXEEXT@,$EXEEXT,;t t -+s,@EGREP@,$EGREP,;t t -+s,@FGREP@,$FGREP,;t t -+s,@GREP@,$GREP,;t t -+s,@LD@,$LD,;t t -+s,@DUMPBIN@,$DUMPBIN,;t t -+s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t -+s,@NM@,$NM,;t t -+s,@LN_S@,$LN_S,;t t -+s,@lt_ECHO@,$lt_ECHO,;t t -+s,@DSYMUTIL@,$DSYMUTIL,;t t -+s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t -+s,@NMEDIT@,$NMEDIT,;t t -+s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t -+s,@LIPO@,$LIPO,;t t -+s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t -+s,@OTOOL@,$OTOOL,;t t -+s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t -+s,@OTOOL64@,$OTOOL64,;t t -+s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t -+s,@CPP@,$CPP,;t t -+s,@subdirs@,$subdirs,;t t -+s,@CRT0@,$CRT0,;t t -+s,@HAVE_SYS_DIR_TRUE@,$HAVE_SYS_DIR_TRUE,;t t -+s,@HAVE_SYS_DIR_FALSE@,$HAVE_SYS_DIR_FALSE,;t t -+s,@LIBOBJS@,$LIBOBJS,;t t -+s,@LTLIBOBJS@,$LTLIBOBJS,;t t -+CEOF -+ -+_ACEOF -+ -+ cat >>$CONFIG_STATUS <<\_ACEOF -+ # Split the substitutions into bite-sized pieces for seds with -+ # small command number limits, like on Digital OSF/1 and HP-UX. -+ ac_max_sed_lines=48 -+ ac_sed_frag=1 # Number of current file. -+ ac_beg=1 # First line for current file. -+ ac_end=$ac_max_sed_lines # Line after last line for current file. -+ ac_more_lines=: -+ ac_sed_cmds= -+ while $ac_more_lines; do -+ if test $ac_beg -gt 1; then -+ sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag -+ else -+ sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag -+ fi -+ if test ! -s $tmp/subs.frag; then -+ ac_more_lines=false -+ else -+ # The purpose of the label and of the branching condition is to -+ # speed up the sed processing (if there are no `@' at all, there -+ # is no need to browse any of the substitutions). -+ # These are the two extra sed commands mentioned above. -+ (echo ':t -+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed -+ if test -z "$ac_sed_cmds"; then -+ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" -+ else -+ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" -+ fi -+ ac_sed_frag=`expr $ac_sed_frag + 1` -+ ac_beg=$ac_end -+ ac_end=`expr $ac_end + $ac_max_sed_lines` -+ fi -+ done -+ if test -z "$ac_sed_cmds"; then -+ ac_sed_cmds=cat -+ fi -+fi # test -n "$CONFIG_FILES" -+ -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue -+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". -+ case $ac_file in -+ - | *:- | *:-:* ) # input from stdin -+ cat >$tmp/stdin -+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` -+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; -+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` -+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; -+ * ) ac_file_in=$ac_file.in ;; -+ esac -+ -+ # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. -+ ac_dir=`(dirname "$ac_file") 2>/dev/null || -+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$ac_file" : 'X\(//\)[^/]' \| \ -+ X"$ac_file" : 'X\(//\)$' \| \ -+ X"$ac_file" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$ac_file" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ { if $as_mkdir_p; then -+ mkdir -p "$ac_dir" -+ else -+ as_dir="$ac_dir" -+ as_dirs= -+ while test ! -d "$as_dir"; do -+ as_dirs="$as_dir $as_dirs" -+ as_dir=`(dirname "$as_dir") 2>/dev/null || -+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$as_dir" : 'X\(//\)[^/]' \| \ -+ X"$as_dir" : 'X\(//\)$' \| \ -+ X"$as_dir" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$as_dir" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ done -+ test ! -n "$as_dirs" || mkdir $as_dirs -+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} -+ { (exit 1); exit 1; }; }; } -+ -+ ac_builddir=. -+ -+if test "$ac_dir" != .; then -+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` -+ # A "../" for each directory in $ac_dir_suffix. -+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -+else -+ ac_dir_suffix= ac_top_builddir= -+fi -+ -+case $srcdir in -+ .) # No --srcdir option. We are building in place. -+ ac_srcdir=. -+ if test -z "$ac_top_builddir"; then -+ ac_top_srcdir=. -+ else -+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` -+ fi ;; -+ [\\/]* | ?:[\\/]* ) # Absolute path. -+ ac_srcdir=$srcdir$ac_dir_suffix; -+ ac_top_srcdir=$srcdir ;; -+ *) # Relative path. -+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix -+ ac_top_srcdir=$ac_top_builddir$srcdir ;; -+esac -+ -+# Do not use `cd foo && pwd` to compute absolute paths, because -+# the directories may not exist. -+case `pwd` in -+.) ac_abs_builddir="$ac_dir";; -+*) -+ case "$ac_dir" in -+ .) ac_abs_builddir=`pwd`;; -+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; -+ *) ac_abs_builddir=`pwd`/"$ac_dir";; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_builddir=${ac_top_builddir}.;; -+*) -+ case ${ac_top_builddir}. in -+ .) ac_abs_top_builddir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; -+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_srcdir=$ac_srcdir;; -+*) -+ case $ac_srcdir in -+ .) ac_abs_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; -+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_srcdir=$ac_top_srcdir;; -+*) -+ case $ac_top_srcdir in -+ .) ac_abs_top_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; -+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; -+ esac;; -+esac -+ -+ -+ case $INSTALL in -+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; -+ *) ac_INSTALL=$ac_top_builddir$INSTALL ;; -+ esac -+ -+ if test x"$ac_file" != x-; then -+ { echo "$as_me:$LINENO: creating $ac_file" >&5 -+echo "$as_me: creating $ac_file" >&6;} -+ rm -f "$ac_file" -+ fi -+ # Let's still pretend it is `configure' which instantiates (i.e., don't -+ # use $as_me), people would be surprised to read: -+ # /* config.h. Generated by config.status. */ -+ if test x"$ac_file" = x-; then -+ configure_input= -+ else -+ configure_input="$ac_file. " -+ fi -+ configure_input=$configure_input"Generated from `echo $ac_file_in | -+ sed 's,.*/,,'` by configure." -+ -+ # First look for the input files in the build tree, otherwise in the -+ # src tree. -+ ac_file_inputs=`IFS=: -+ for f in $ac_file_in; do -+ case $f in -+ -) echo $tmp/stdin ;; -+ [\\/$]*) -+ # Absolute (can't be DOS-style, as IFS=:) -+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -+echo "$as_me: error: cannot find input file: $f" >&2;} -+ { (exit 1); exit 1; }; } -+ echo "$f";; -+ *) # Relative -+ if test -f "$f"; then -+ # Build tree -+ echo "$f" -+ elif test -f "$srcdir/$f"; then -+ # Source tree -+ echo "$srcdir/$f" -+ else -+ # /dev/null tree -+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -+echo "$as_me: error: cannot find input file: $f" >&2;} -+ { (exit 1); exit 1; }; } -+ fi;; -+ esac -+ done` || { (exit 1); exit 1; } -+_ACEOF -+cat >>$CONFIG_STATUS <<_ACEOF -+ sed "$ac_vpsub -+$extrasub -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+:t -+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -+s,@configure_input@,$configure_input,;t t -+s,@srcdir@,$ac_srcdir,;t t -+s,@abs_srcdir@,$ac_abs_srcdir,;t t -+s,@top_srcdir@,$ac_top_srcdir,;t t -+s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t -+s,@builddir@,$ac_builddir,;t t -+s,@abs_builddir@,$ac_abs_builddir,;t t -+s,@top_builddir@,$ac_top_builddir,;t t -+s,@abs_top_builddir@,$ac_abs_top_builddir,;t t -+s,@INSTALL@,$ac_INSTALL,;t t -+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out -+ rm -f $tmp/stdin -+ if test x"$ac_file" != x-; then -+ mv $tmp/out $ac_file -+ else -+ cat $tmp/out -+ rm -f $tmp/out -+ fi -+ -+done -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -+# -+# CONFIG_COMMANDS section. -+# -+for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue -+ ac_dest=`echo "$ac_file" | sed 's,:.*,,'` -+ ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` -+ ac_dir=`(dirname "$ac_dest") 2>/dev/null || -+$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$ac_dest" : 'X\(//\)[^/]' \| \ -+ X"$ac_dest" : 'X\(//\)$' \| \ -+ X"$ac_dest" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$ac_dest" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ { if $as_mkdir_p; then -+ mkdir -p "$ac_dir" -+ else -+ as_dir="$ac_dir" -+ as_dirs= -+ while test ! -d "$as_dir"; do -+ as_dirs="$as_dir $as_dirs" -+ as_dir=`(dirname "$as_dir") 2>/dev/null || -+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$as_dir" : 'X\(//\)[^/]' \| \ -+ X"$as_dir" : 'X\(//\)$' \| \ -+ X"$as_dir" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$as_dir" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ done -+ test ! -n "$as_dirs" || mkdir $as_dirs -+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} -+ { (exit 1); exit 1; }; }; } -+ -+ ac_builddir=. -+ -+if test "$ac_dir" != .; then -+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` -+ # A "../" for each directory in $ac_dir_suffix. -+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -+else -+ ac_dir_suffix= ac_top_builddir= -+fi -+ -+case $srcdir in -+ .) # No --srcdir option. We are building in place. -+ ac_srcdir=. -+ if test -z "$ac_top_builddir"; then -+ ac_top_srcdir=. -+ else -+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` -+ fi ;; -+ [\\/]* | ?:[\\/]* ) # Absolute path. -+ ac_srcdir=$srcdir$ac_dir_suffix; -+ ac_top_srcdir=$srcdir ;; -+ *) # Relative path. -+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix -+ ac_top_srcdir=$ac_top_builddir$srcdir ;; -+esac -+ -+# Do not use `cd foo && pwd` to compute absolute paths, because -+# the directories may not exist. -+case `pwd` in -+.) ac_abs_builddir="$ac_dir";; -+*) -+ case "$ac_dir" in -+ .) ac_abs_builddir=`pwd`;; -+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; -+ *) ac_abs_builddir=`pwd`/"$ac_dir";; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_builddir=${ac_top_builddir}.;; -+*) -+ case ${ac_top_builddir}. in -+ .) ac_abs_top_builddir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; -+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_srcdir=$ac_srcdir;; -+*) -+ case $ac_srcdir in -+ .) ac_abs_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; -+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_srcdir=$ac_top_srcdir;; -+*) -+ case $ac_top_srcdir in -+ .) ac_abs_top_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; -+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; -+ esac;; -+esac -+ -+ -+ { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 -+echo "$as_me: executing $ac_dest commands" >&6;} -+ case $ac_dest in -+ depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do -+ # Strip MF so we end up with the name of the file. -+ mf=`echo "$mf" | sed -e 's/:.*$//'` -+ # Check whether this is an Automake generated Makefile or not. -+ # We used to match only the files named `Makefile.in', but -+ # some people rename them; so instead we look at the file content. -+ # Grep'ing the first line is not enough: some people post-process -+ # each Makefile.in and add a new line on top of each file to say so. -+ # So let's grep whole file. -+ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then -+ dirpart=`(dirname "$mf") 2>/dev/null || -+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$mf" : 'X\(//\)[^/]' \| \ -+ X"$mf" : 'X\(//\)$' \| \ -+ X"$mf" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$mf" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ else -+ continue -+ fi -+ # Extract the definition of DEPDIR, am__include, and am__quote -+ # from the Makefile without running `make'. -+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` -+ test -z "$DEPDIR" && continue -+ am__include=`sed -n 's/^am__include = //p' < "$mf"` -+ test -z "am__include" && continue -+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"` -+ # When using ansi2knr, U may be empty or an underscore; expand it -+ U=`sed -n 's/^U = //p' < "$mf"` -+ # Find all dependency output files, they are included files with -+ # $(DEPDIR) in their names. We invoke sed twice because it is the -+ # simplest approach to changing $(DEPDIR) to its actual value in the -+ # expansion. -+ for file in `sed -n " -+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ -+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do -+ # Make sure the directory exists. -+ test -f "$dirpart/$file" && continue -+ fdir=`(dirname "$file") 2>/dev/null || -+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$file" : 'X\(//\)[^/]' \| \ -+ X"$file" : 'X\(//\)$' \| \ -+ X"$file" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$file" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ { if $as_mkdir_p; then -+ mkdir -p $dirpart/$fdir -+ else -+ as_dir=$dirpart/$fdir -+ as_dirs= -+ while test ! -d "$as_dir"; do -+ as_dirs="$as_dir $as_dirs" -+ as_dir=`(dirname "$as_dir") 2>/dev/null || -+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$as_dir" : 'X\(//\)[^/]' \| \ -+ X"$as_dir" : 'X\(//\)$' \| \ -+ X"$as_dir" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$as_dir" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ done -+ test ! -n "$as_dirs" || mkdir $as_dirs -+ fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 -+echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} -+ { (exit 1); exit 1; }; }; } -+ -+ # echo "creating $dirpart/$file" -+ echo '# dummy' > "$dirpart/$file" -+ done -+done -+ ;; -+ libtool ) -+ -+ # See if we are running on zsh, and set the options which allow our -+ # commands through without removal of \ escapes. -+ if test -n "${ZSH_VERSION+set}" ; then -+ setopt NO_GLOB_SUBST -+ fi -+ -+ cfgfile="${ofile}T" -+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15 -+ $RM "$cfgfile" -+ -+ cat <<_LT_EOF >> "$cfgfile" -+#! $SHELL -+ -+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION -+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -+# NOTE: Changes made to this file will be lost: look at ltmain.sh. -+# -+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -+# 2006, 2007, 2008 Free Software Foundation, Inc. -+# Written by Gordon Matzigkeit, 1996 -+# -+# This file is part of GNU Libtool. -+# -+# GNU Libtool is free software; you can redistribute it and/or -+# modify it under the terms of the GNU General Public License as -+# published by the Free Software Foundation; either version 2 of -+# the License, or (at your option) any later version. -+# -+# As a special exception to the GNU General Public License, -+# if you distribute this file as part of a program or library that -+# is built using GNU Libtool, you may include this file under the -+# same distribution terms that you use for the rest of that program. -+# -+# GNU Libtool is distributed in the hope that it will be useful, -+# but WITHOUT ANY WARRANTY; without even the implied warranty of -+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+# GNU General Public License for more details. -+# -+# You should have received a copy of the GNU General Public License -+# along with GNU Libtool; see the file COPYING. If not, a copy -+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or -+# obtained by writing to the Free Software Foundation, Inc., -+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -+ -+ -+# The names of the tagged configurations supported by this script. -+available_tags="" -+ -+# ### BEGIN LIBTOOL CONFIG -+ -+# A sed program that does not truncate output. -+SED=$lt_SED -+ -+# Sed that helps us avoid accidentally triggering echo(1) options like -n. -+Xsed="\$SED -e 1s/^X//" -+ -+# Assembler program. -+AS=$AS -+ -+# DLL creation program. -+DLLTOOL=$DLLTOOL -+ -+# Object dumper program. -+OBJDUMP=$OBJDUMP -+ -+# Which release of libtool.m4 was used? -+macro_version=$macro_version -+macro_revision=$macro_revision -+ -+# Whether or not to build shared libraries. -+build_libtool_libs=$enable_shared -+ -+# Whether or not to build static libraries. -+build_old_libs=$enable_static -+ -+# What type of objects to build. -+pic_mode=$pic_mode -+ -+# Whether or not to optimize for fast installation. -+fast_install=$enable_fast_install -+ -+# The host system. -+host_alias=$host_alias -+host=$host -+host_os=$host_os -+ -+# The build system. -+build_alias=$build_alias -+build=$build -+build_os=$build_os -+ -+# A grep program that handles long lines. -+GREP=$lt_GREP -+ -+# An ERE matcher. -+EGREP=$lt_EGREP -+ -+# A literal string matcher. -+FGREP=$lt_FGREP -+ -+# A BSD- or MS-compatible name lister. -+NM=$lt_NM -+ -+# Whether we need soft or hard links. -+LN_S=$lt_LN_S -+ -+# What is the maximum length of a command? -+max_cmd_len=$max_cmd_len -+ -+# Object file suffix (normally "o"). -+objext=$ac_objext -+ -+# Executable file suffix (normally ""). -+exeext=$exeext -+ -+# whether the shell understands "unset". -+lt_unset=$lt_unset -+ -+# turn spaces into newlines. -+SP2NL=$lt_lt_SP2NL -+ -+# turn newlines into spaces. -+NL2SP=$lt_lt_NL2SP -+ -+# How to create reloadable object files. -+reload_flag=$lt_reload_flag -+reload_cmds=$lt_reload_cmds -+ -+# Method to check whether dependent libraries are shared objects. -+deplibs_check_method=$lt_deplibs_check_method -+ -+# Command to use when deplibs_check_method == "file_magic". -+file_magic_cmd=$lt_file_magic_cmd -+ -+# The archiver. -+AR=$lt_AR -+AR_FLAGS=$lt_AR_FLAGS -+ -+# A symbol stripping program. -+STRIP=$lt_STRIP -+ -+# Commands used to install an old-style archive. -+RANLIB=$lt_RANLIB -+old_postinstall_cmds=$lt_old_postinstall_cmds -+old_postuninstall_cmds=$lt_old_postuninstall_cmds -+ -+# A C compiler. -+LTCC=$lt_CC -+ -+# LTCC compiler flags. -+LTCFLAGS=$lt_CFLAGS -+ -+# Take the output of nm and produce a listing of raw symbols and C names. -+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe -+ -+# Transform the output of nm in a proper C declaration. -+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -+ -+# Transform the output of nm in a C name address pair. -+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -+ -+# Transform the output of nm in a C name address pair when lib prefix is needed. -+global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix -+ -+# The name of the directory that contains temporary libtool files. -+objdir=$objdir -+ -+# Shell to use when invoking shell scripts. -+SHELL=$lt_SHELL -+ -+# An echo program that does not interpret backslashes. -+ECHO=$lt_ECHO -+ -+# Used to examine libraries when file_magic_cmd begins with "file". -+MAGIC_CMD=$MAGIC_CMD -+ -+# Must we lock files when doing compilation? -+need_locks=$lt_need_locks -+ -+# Tool to manipulate archived DWARF debug symbol files on Mac OS X. -+DSYMUTIL=$lt_DSYMUTIL -+ -+# Tool to change global to local symbols on Mac OS X. -+NMEDIT=$lt_NMEDIT -+ -+# Tool to manipulate fat objects and archives on Mac OS X. -+LIPO=$lt_LIPO -+ -+# ldd/readelf like tool for Mach-O binaries on Mac OS X. -+OTOOL=$lt_OTOOL -+ -+# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. -+OTOOL64=$lt_OTOOL64 -+ -+# Old archive suffix (normally "a"). -+libext=$libext -+ -+# Shared library suffix (normally ".so"). -+shrext_cmds=$lt_shrext_cmds -+ -+# The commands to extract the exported symbol list from a shared archive. -+extract_expsyms_cmds=$lt_extract_expsyms_cmds -+ -+# Variables whose values should be saved in libtool wrapper scripts and -+# restored at link time. -+variables_saved_for_relink=$lt_variables_saved_for_relink -+ -+# Do we need the "lib" prefix for modules? -+need_lib_prefix=$need_lib_prefix -+ -+# Do we need a version for libraries? -+need_version=$need_version -+ -+# Library versioning type. -+version_type=$version_type -+ -+# Shared library runtime path variable. -+runpath_var=$runpath_var -+ -+# Shared library path variable. -+shlibpath_var=$shlibpath_var -+ -+# Is shlibpath searched before the hard-coded library search path? -+shlibpath_overrides_runpath=$shlibpath_overrides_runpath -+ -+# Format of library name prefix. -+libname_spec=$lt_libname_spec -+ -+# List of archive names. First name is the real one, the rest are links. -+# The last name is the one that the linker finds with -lNAME -+library_names_spec=$lt_library_names_spec -+ -+# The coded name of the library, if different from the real name. -+soname_spec=$lt_soname_spec -+ -+# Command to use after installation of a shared archive. -+postinstall_cmds=$lt_postinstall_cmds -+ -+# Command to use after uninstallation of a shared archive. -+postuninstall_cmds=$lt_postuninstall_cmds -+ -+# Commands used to finish a libtool library installation in a directory. -+finish_cmds=$lt_finish_cmds -+ -+# As "finish_cmds", except a single script fragment to be evaled but -+# not shown. -+finish_eval=$lt_finish_eval -+ -+# Whether we should hardcode library paths into libraries. -+hardcode_into_libs=$hardcode_into_libs -+ -+# Compile-time system search path for libraries. -+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -+ -+# Run-time system search path for libraries. -+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -+ -+# Whether dlopen is supported. -+dlopen_support=$enable_dlopen -+ -+# Whether dlopen of programs is supported. -+dlopen_self=$enable_dlopen_self -+ -+# Whether dlopen of statically linked programs is supported. -+dlopen_self_static=$enable_dlopen_self_static -+ -+# Commands to strip libraries. -+old_striplib=$lt_old_striplib -+striplib=$lt_striplib -+ -+ -+# The linker used to build libraries. -+LD=$lt_LD -+ -+# Commands used to build an old-style archive. -+old_archive_cmds=$lt_old_archive_cmds -+ -+# A language specific compiler. -+CC=$lt_compiler -+ -+# Is the compiler the GNU compiler? -+with_gcc=$GCC -+ -+# Compiler flag to turn off builtin functions. -+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag -+ -+# How to pass a linker flag through the compiler. -+wl=$lt_lt_prog_compiler_wl -+ -+# Additional compiler flags for building library objects. -+pic_flag=$lt_lt_prog_compiler_pic -+ -+# Compiler flag to prevent dynamic linking. -+link_static_flag=$lt_lt_prog_compiler_static -+ -+# Does compiler simultaneously support -c and -o options? -+compiler_c_o=$lt_lt_cv_prog_compiler_c_o -+ -+# Whether or not to add -lc for building shared libraries. -+build_libtool_need_lc=$archive_cmds_need_lc -+ -+# Whether or not to disallow shared libs when runtime libs are static. -+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes -+ -+# Compiler flag to allow reflexive dlopens. -+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec -+ -+# Compiler flag to generate shared objects directly from archives. -+whole_archive_flag_spec=$lt_whole_archive_flag_spec -+ -+# Whether the compiler copes with passing no objects directly. -+compiler_needs_object=$lt_compiler_needs_object -+ -+# Create an old-style archive from a shared archive. -+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds -+ -+# Create a temporary old-style archive to link instead of a shared archive. -+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds -+ -+# Commands used to build a shared archive. -+archive_cmds=$lt_archive_cmds -+archive_expsym_cmds=$lt_archive_expsym_cmds -+ -+# Commands used to build a loadable module if different from building -+# a shared archive. -+module_cmds=$lt_module_cmds -+module_expsym_cmds=$lt_module_expsym_cmds -+ -+# Whether we are building with GNU ld or not. -+with_gnu_ld=$lt_with_gnu_ld -+ -+# Flag that allows shared libraries with undefined symbols to be built. -+allow_undefined_flag=$lt_allow_undefined_flag -+ -+# Flag that enforces no undefined symbols. -+no_undefined_flag=$lt_no_undefined_flag -+ -+# Flag to hardcode \$libdir into a binary during linking. -+# This must work even if \$libdir does not exist -+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec -+ -+# If ld is used when linking, flag to hardcode \$libdir into a binary -+# during linking. This must work even if \$libdir does not exist. -+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld -+ -+# Whether we need a single "-rpath" flag with a separated argument. -+hardcode_libdir_separator=$lt_hardcode_libdir_separator -+ -+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes -+# DIR into the resulting binary. -+hardcode_direct=$hardcode_direct -+ -+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes -+# DIR into the resulting binary and the resulting library dependency is -+# "absolute",i.e impossible to change by setting \${shlibpath_var} if the -+# library is relocated. -+hardcode_direct_absolute=$hardcode_direct_absolute -+ -+# Set to "yes" if using the -LDIR flag during linking hardcodes DIR -+# into the resulting binary. -+hardcode_minus_L=$hardcode_minus_L -+ -+# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR -+# into the resulting binary. -+hardcode_shlibpath_var=$hardcode_shlibpath_var -+ -+# Set to "yes" if building a shared library automatically hardcodes DIR -+# into the library and all subsequent libraries and executables linked -+# against it. -+hardcode_automatic=$hardcode_automatic -+ -+# Set to yes if linker adds runtime paths of dependent libraries -+# to runtime path list. -+inherit_rpath=$inherit_rpath -+ -+# Whether libtool must link a program against all its dependency libraries. -+link_all_deplibs=$link_all_deplibs -+ -+# Fix the shell variable \$srcfile for the compiler. -+fix_srcfile_path=$lt_fix_srcfile_path -+ -+# Set to "yes" if exported symbols are required. -+always_export_symbols=$always_export_symbols -+ -+# The commands to list exported symbols. -+export_symbols_cmds=$lt_export_symbols_cmds -+ -+# Symbols that should not be listed in the preloaded symbols. -+exclude_expsyms=$lt_exclude_expsyms -+ -+# Symbols that must always be exported. -+include_expsyms=$lt_include_expsyms -+ -+# Commands necessary for linking programs (against libraries) with templates. -+prelink_cmds=$lt_prelink_cmds -+ -+# Specify filename containing input files. -+file_list_spec=$lt_file_list_spec -+ -+# How to hardcode a shared library path into an executable. -+hardcode_action=$hardcode_action -+ -+# ### END LIBTOOL CONFIG -+ -+_LT_EOF -+ -+ case $host_os in -+ aix3*) -+ cat <<\_LT_EOF >> "$cfgfile" -+# AIX sometimes has problems with the GCC collect2 program. For some -+# reason, if we set the COLLECT_NAMES environment variable, the problems -+# vanish in a puff of smoke. -+if test "X${COLLECT_NAMES+set}" != Xset; then -+ COLLECT_NAMES= -+ export COLLECT_NAMES -+fi -+_LT_EOF -+ ;; -+ esac -+ -+ -+ltmain="$ac_aux_dir/ltmain.sh" -+ -+ -+ # We use sed instead of cat because bash on DJGPP gets confused if -+ # if finds mixed CR/LF and LF-only lines. Since sed operates in -+ # text mode, it properly converts lines to CR/LF. This bash problem -+ # is reportedly fixed, but why not run on old versions too? -+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ -+ || (rm -f "$cfgfile"; exit 1) -+ -+ case $xsi_shell in -+ yes) -+ cat << \_LT_EOF >> "$cfgfile" -+ -+# func_dirname file append nondir_replacement -+# Compute the dirname of FILE. If nonempty, add APPEND to the result, -+# otherwise set result to NONDIR_REPLACEMENT. -+func_dirname () -+{ -+ case ${1} in -+ */*) func_dirname_result="${1%/*}${2}" ;; -+ * ) func_dirname_result="${3}" ;; -+ esac -+} -+ -+# func_basename file -+func_basename () -+{ -+ func_basename_result="${1##*/}" -+} -+ -+# func_dirname_and_basename file append nondir_replacement -+# perform func_basename and func_dirname in a single function -+# call: -+# dirname: Compute the dirname of FILE. If nonempty, -+# add APPEND to the result, otherwise set result -+# to NONDIR_REPLACEMENT. -+# value returned in "$func_dirname_result" -+# basename: Compute filename of FILE. -+# value retuned in "$func_basename_result" -+# Implementation must be kept synchronized with func_dirname -+# and func_basename. For efficiency, we do not delegate to -+# those functions but instead duplicate the functionality here. -+func_dirname_and_basename () -+{ -+ case ${1} in -+ */*) func_dirname_result="${1%/*}${2}" ;; -+ * ) func_dirname_result="${3}" ;; -+ esac -+ func_basename_result="${1##*/}" -+} -+ -+# func_stripname prefix suffix name -+# strip PREFIX and SUFFIX off of NAME. -+# PREFIX and SUFFIX must not contain globbing or regex special -+# characters, hashes, percent signs, but SUFFIX may contain a leading -+# dot (in which case that matches only a dot). -+func_stripname () -+{ -+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are -+ # positional parameters, so assign one to ordinary parameter first. -+ func_stripname_result=${3} -+ func_stripname_result=${func_stripname_result#"${1}"} -+ func_stripname_result=${func_stripname_result%"${2}"} -+} -+ -+# func_opt_split -+func_opt_split () -+{ -+ func_opt_split_opt=${1%%=*} -+ func_opt_split_arg=${1#*=} -+} -+ -+# func_lo2o object -+func_lo2o () -+{ -+ case ${1} in -+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;; -+ *) func_lo2o_result=${1} ;; -+ esac -+} -+ -+# func_xform libobj-or-source -+func_xform () -+{ -+ func_xform_result=${1%.*}.lo -+} -+ -+# func_arith arithmetic-term... -+func_arith () -+{ -+ func_arith_result=$(( $* )) -+} -+ -+# func_len string -+# STRING may not start with a hyphen. -+func_len () -+{ -+ func_len_result=${#1} -+} -+ -+_LT_EOF -+ ;; -+ *) # Bourne compatible functions. -+ cat << \_LT_EOF >> "$cfgfile" -+ -+# func_dirname file append nondir_replacement -+# Compute the dirname of FILE. If nonempty, add APPEND to the result, -+# otherwise set result to NONDIR_REPLACEMENT. -+func_dirname () -+{ -+ # Extract subdirectory from the argument. -+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` -+ if test "X$func_dirname_result" = "X${1}"; then -+ func_dirname_result="${3}" -+ else -+ func_dirname_result="$func_dirname_result${2}" -+ fi -+} -+ -+# func_basename file -+func_basename () -+{ -+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` -+} -+ -+ -+# func_stripname prefix suffix name -+# strip PREFIX and SUFFIX off of NAME. -+# PREFIX and SUFFIX must not contain globbing or regex special -+# characters, hashes, percent signs, but SUFFIX may contain a leading -+# dot (in which case that matches only a dot). -+# func_strip_suffix prefix name -+func_stripname () -+{ -+ case ${2} in -+ .*) func_stripname_result=`$ECHO "X${3}" \ -+ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; -+ *) func_stripname_result=`$ECHO "X${3}" \ -+ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; -+ esac -+} -+ -+# sed scripts: -+my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' -+my_sed_long_arg='1s/^-[^=]*=//' -+ -+# func_opt_split -+func_opt_split () -+{ -+ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` -+ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` -+} -+ -+# func_lo2o object -+func_lo2o () -+{ -+ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` -+} -+ -+# func_xform libobj-or-source -+func_xform () -+{ -+ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` -+} -+ -+# func_arith arithmetic-term... -+func_arith () -+{ -+ func_arith_result=`expr "$@"` -+} -+ -+# func_len string -+# STRING may not start with a hyphen. -+func_len () -+{ -+ func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` -+} -+ -+_LT_EOF -+esac -+ -+case $lt_shell_append in -+ yes) -+ cat << \_LT_EOF >> "$cfgfile" -+ -+# func_append var value -+# Append VALUE to the end of shell variable VAR. -+func_append () -+{ -+ eval "$1+=\$2" -+} -+_LT_EOF -+ ;; -+ *) -+ cat << \_LT_EOF >> "$cfgfile" -+ -+# func_append var value -+# Append VALUE to the end of shell variable VAR. -+func_append () -+{ -+ eval "$1=\$$1\$2" -+} -+ -+_LT_EOF -+ ;; -+ esac -+ -+ -+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ -+ || (rm -f "$cfgfile"; exit 1) -+ -+ mv -f "$cfgfile" "$ofile" || -+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") -+ chmod +x "$ofile" -+ -+ ;; -+ esac -+done -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -+{ (exit 0); exit 0; } -+_ACEOF -+chmod +x $CONFIG_STATUS -+ac_clean_files=$ac_clean_files_save -+ -+ -+# configure is writing to config.log, and then calls config.status. -+# config.status does its own redirection, appending to config.log. -+# Unfortunately, on DOS this fails, as config.log is still kept open -+# by configure, so config.status won't be able to write to it; its -+# output is simply discarded. So we exec the FD to /dev/null, -+# effectively closing config.log, so it can be properly (re)opened and -+# appended to by config.status. When coming back to configure, we -+# need to make the FD available again. -+if test "$no_create" != yes; then -+ ac_cs_success=: -+ ac_config_status_args= -+ test "$silent" = yes && -+ ac_config_status_args="$ac_config_status_args --quiet" -+ exec 5>/dev/null -+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false -+ exec 5>>config.log -+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which -+ # would make configure fail if this is the last instruction. -+ $ac_cs_success || { (exit 1); exit 1; } -+fi -+ -+# -+# CONFIG_SUBDIRS section, as fixed in confsubdir.m4. -+# -+if test "$no_recursion" != yes; then -+ -+ # Remove --cache-file and --srcdir arguments so they do not pile up. -+ ac_sub_configure_args= -+ ac_prev= -+ eval "set x $ac_configure_args" -+ shift -+ for ac_arg -+ do -+ if test -n "$ac_prev"; then -+ ac_prev= -+ continue -+ fi -+ case $ac_arg in -+ -cache-file | --cache-file | --cache-fil | --cache-fi \ -+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) -+ ac_prev=cache_file ;; -+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ -+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ -+ | --c=*) -+ ;; -+ --config-cache | -C) -+ ;; -+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) -+ ac_prev=srcdir ;; -+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) -+ ;; -+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) -+ ac_prev=prefix ;; -+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) -+ ;; -+ *) -+ case $ac_arg in -+ *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; -+ esac -+ ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; -+ esac -+ done -+ -+ # Always prepend --prefix to ensure using the same prefix -+ # in subdir configurations. -+ ac_arg="--prefix=$prefix" -+ case $ac_arg in -+ *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; -+ esac -+ ac_sub_configure_args="$ac_arg $ac_sub_configure_args" -+ -+ ac_popdir=`pwd` -+ for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue -+ -+ # Do not complain, so a configure script can configure whichever -+ # parts of a large source tree are present. -+ test -d "$srcdir/$ac_dir" || continue -+ -+ { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 -+echo "$as_me: configuring in $ac_dir" >&6;} -+ { if $as_mkdir_p; then -+ mkdir -p "$ac_dir" -+ else -+ as_dir="$ac_dir" -+ as_dirs= -+ while test ! -d "$as_dir"; do -+ as_dirs="$as_dir $as_dirs" -+ as_dir=`(dirname "$as_dir") 2>/dev/null || -+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$as_dir" : 'X\(//\)[^/]' \| \ -+ X"$as_dir" : 'X\(//\)$' \| \ -+ X"$as_dir" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$as_dir" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ done -+ test ! -n "$as_dirs" || mkdir $as_dirs -+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} -+ { (exit 1); exit 1; }; }; } -+ -+ ac_builddir=. -+ -+if test "$ac_dir" != .; then -+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` -+ # A "../" for each directory in $ac_dir_suffix. -+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -+else -+ ac_dir_suffix= ac_top_builddir= -+fi -+ -+case $srcdir in -+ .) # No --srcdir option. We are building in place. -+ ac_srcdir=. -+ if test -z "$ac_top_builddir"; then -+ ac_top_srcdir=. -+ else -+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` -+ fi ;; -+ [\\/]* | ?:[\\/]* ) # Absolute path. -+ ac_srcdir=$srcdir$ac_dir_suffix; -+ ac_top_srcdir=$srcdir ;; -+ *) # Relative path. -+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix -+ ac_top_srcdir=$ac_top_builddir$srcdir ;; -+esac -+ -+# Do not use `cd foo && pwd` to compute absolute paths, because -+# the directories may not exist. -+case `pwd` in -+.) ac_abs_builddir="$ac_dir";; -+*) -+ case "$ac_dir" in -+ .) ac_abs_builddir=`pwd`;; -+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; -+ *) ac_abs_builddir=`pwd`/"$ac_dir";; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_builddir=${ac_top_builddir}.;; -+*) -+ case ${ac_top_builddir}. in -+ .) ac_abs_top_builddir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; -+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_srcdir=$ac_srcdir;; -+*) -+ case $ac_srcdir in -+ .) ac_abs_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; -+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_srcdir=$ac_top_srcdir;; -+*) -+ case $ac_top_srcdir in -+ .) ac_abs_top_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; -+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; -+ esac;; -+esac -+ -+ -+ cd "$ac_dir" -+ -+ # Check for guested configure; otherwise get Cygnus style configure. -+ if test -f "$ac_srcdir/configure.gnu"; then -+ ac_sub_configure=$ac_srcdir/configure.gnu -+ elif test -f "$ac_srcdir/configure"; then -+ ac_sub_configure=$ac_srcdir/configure -+ elif test -f "$ac_srcdir/configure.in"; then -+ # This should be Cygnus configure. -+ ac_sub_configure=$ac_aux_dir/configure -+ else -+ { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 -+echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} -+ ac_sub_configure= -+ fi -+ -+ # The recursion is here. -+ if test -n "$ac_sub_configure"; then -+ # Make the cache file name correct relative to the subdirectory. -+ case $cache_file in -+ [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; -+ *) # Relative path. -+ ac_sub_cache_file=$ac_top_builddir$cache_file ;; -+ esac -+ -+ { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 -+echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} -+ # The eval makes quoting arguments work. -+ eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ -+ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || -+ { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 -+echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} -+ { (exit 1); exit 1; }; } -+ fi -+ -+ cd "$ac_popdir" -+ done -+fi -+ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/Makefile.am newlib-1.17.0-psp/newlib/libc/sys/psp/Makefile.am ---- newlib-1.17.0/newlib/libc/sys/psp/Makefile.am 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/Makefile.am 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,71 @@ -+## Process this file with automake to generate Makefile.in -+ -+AUTOMAKE_OPTIONS = cygnus -+ -+INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) -+ -+AM_CCASFLAGS = $(INCLUDES) $(CFLAGS) -+ -+noinst_LIBRARIES = lib.a -+ -+LIBCGLUE_MULT_OBJS = _close.o _exit.o _fork.o _fstat.o _getpid.o \ -+ _gettimeofday.o _kill.o _lseek.o _open.o _read.o \ -+ _sbrk.o _wait.o _write.o clock.o isatty.o time.o \ -+ _link.o _unlink.o sleep.o opendir.o readdir.o \ -+ closedir.o getcwd.o chdir.o mkdir.o rmdir.o \ -+ realpath.o _stat.o truncate.o access.o tzset.o \ -+ __psp_set_errno.o mlock.o _fcntl.o _rename.o nanosleep.o -+ -+SOCKET_MULT_OBJS = socket.o accept.o bind.o connect.o getsockopt.o \ -+ listen.o recv.o recvfrom.o send.o sendto.o \ -+ setsockopt.o shutdown.o getsockname.o getpeername.o \ -+ inet_ntoa.o -+ -+PE_OBJS = pipe.o -+ -+FDMAN_OBJS = fdman.o -+ -+SELECT_OBJS = select.o -+ -+INTERRUPT_OBJS = interrupt.o -+ -+XPRINTF_MULT_OBJS = vxprintf.o _xprintf.o __sout.o vsnprintf.o snprintf.o \ -+ vsprintf.o sprintf.o __mout.o mprintf.o vmprintf.o asprintf.o \ -+ vasprintf.o __fout.o fprintf.o vfprintf.o printf.o vprintf.o \ -+ _sprintf_r.o -+ -+NETDB_MULT_OBJS = h_errno.o gethostbyaddr.o gethostbyname.o -+ -+ -+lib_a_SOURCES = libcglue.c socket.c pspcwd.c xprintf.c netdb.c pipe.c fdman.c select.c syscalls.c interrupt.S -+lib_a_LIBADD = $(LIBCGLUE_MULT_OBJS) $(SOCKET_MULT_OBJS) $(XPRINTF_MULT_OBJS) \ -+ $(NETDB_MULT_OBJS) $(PIPE_OBJS) $(FDMAN_OBJS) $(SELECT_OBJS) $(INTERRUPT_OBJS) -+ -+all: crt0.o -+ -+$(LIBCGLUE_MULT_OBJS): libcglue.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(SOCKET_MULT_OBJS): socket.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(XPRINTF_MULT_OBJS): xprintf.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(NETDB_MULT_OBJS): netdb.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(PIPE_OBJS): pipe.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(FDMAN_OBJS): fdman.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(SELECT_OBJS): select.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(INTERRUPT_OBJS): interrupt.S -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+ACLOCAL_AMFLAGS = -I ../../.. -+CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/Makefile.in newlib-1.17.0-psp/newlib/libc/sys/psp/Makefile.in ---- newlib-1.17.0/newlib/libc/sys/psp/Makefile.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/Makefile.in 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,464 @@ -+# Makefile.in generated by automake 1.9.6 from Makefile.am. -+# @configure_input@ -+ -+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -+# 2003, 2004, 2005 Free Software Foundation, Inc. -+# This Makefile.in is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# This program is distributed in the hope that it will be useful, -+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -+# PARTICULAR PURPOSE. -+ -+@SET_MAKE@ -+ -+srcdir = @srcdir@ -+top_srcdir = @top_srcdir@ -+VPATH = @srcdir@ -+pkgdatadir = $(datadir)/@PACKAGE@ -+pkglibdir = $(libdir)/@PACKAGE@ -+pkgincludedir = $(includedir)/@PACKAGE@ -+top_builddir = . -+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -+INSTALL = @INSTALL@ -+install_sh_DATA = $(install_sh) -c -m 644 -+install_sh_PROGRAM = $(install_sh) -c -+install_sh_SCRIPT = $(install_sh) -c -+INSTALL_HEADER = $(INSTALL_DATA) -+transform = $(program_transform_name) -+NORMAL_INSTALL = : -+PRE_INSTALL = : -+POST_INSTALL = : -+NORMAL_UNINSTALL = : -+PRE_UNINSTALL = : -+POST_UNINSTALL = : -+build_triplet = @build@ -+host_triplet = @host@ -+DIST_COMMON = $(srcdir)/../../../../config.guess \ -+ $(srcdir)/../../../../config.sub README $(srcdir)/Makefile.in \ -+ $(srcdir)/Makefile.am $(top_srcdir)/configure \ -+ $(am__configure_deps) $(srcdir)/../../../../mkinstalldirs -+subdir = . -+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -+am__aclocal_m4_deps = $(top_srcdir)/../../../acinclude.m4 \ -+ $(top_srcdir)/configure.in -+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ -+ $(ACLOCAL_M4) -+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ -+ configure.lineno configure.status.lineno -+mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs -+CONFIG_CLEAN_FILES = -+LIBRARIES = $(noinst_LIBRARIES) -+ARFLAGS = cru -+lib_a_AR = $(AR) $(ARFLAGS) -+am__DEPENDENCIES_1 = _close.o _exit.o _fork.o _fstat.o _getpid.o \ -+ _gettimeofday.o _kill.o _lseek.o _open.o _read.o _sbrk.o \ -+ _wait.o _write.o clock.o isatty.o time.o _link.o _unlink.o \ -+ sleep.o opendir.o readdir.o closedir.o getcwd.o chdir.o \ -+ mkdir.o rmdir.o realpath.o _stat.o truncate.o access.o tzset.o \ -+ __psp_set_errno.o mlock.o _fcntl.o _rename.o nanosleep.o -+am__DEPENDENCIES_2 = socket.o accept.o bind.o connect.o getsockopt.o \ -+ listen.o recv.o recvfrom.o send.o sendto.o setsockopt.o \ -+ shutdown.o getsockname.o getpeername.o inet_ntoa.o -+am__DEPENDENCIES_3 = vxprintf.o _xprintf.o __sout.o vsnprintf.o \ -+ snprintf.o vsprintf.o sprintf.o __mout.o mprintf.o vmprintf.o \ -+ asprintf.o vasprintf.o __fout.o fprintf.o vfprintf.o printf.o \ -+ vprintf.o _sprintf_r.o -+am__DEPENDENCIES_4 = h_errno.o gethostbyaddr.o gethostbyname.o -+am__DEPENDENCIES_5 = fdman.o -+am__DEPENDENCIES_6 = select.o -+am__DEPENDENCIES_7 = interrupt.o -+lib_a_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \ -+ $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_4) \ -+ $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_6) \ -+ $(am__DEPENDENCIES_7) -+am_lib_a_OBJECTS = libcglue.$(OBJEXT) socket.$(OBJEXT) \ -+ pspcwd.$(OBJEXT) xprintf.$(OBJEXT) netdb.$(OBJEXT) \ -+ pipe.$(OBJEXT) fdman.$(OBJEXT) select.$(OBJEXT) \ -+ syscalls.$(OBJEXT) interrupt.$(OBJEXT) -+lib_a_OBJECTS = $(am_lib_a_OBJECTS) -+DEFAULT_INCLUDES = -I. -I$(srcdir) -+depcomp = -+am__depfiles_maybe = -+CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) -+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ -+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -+CCLD = $(CC) -+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -+SOURCES = $(lib_a_SOURCES) -+ETAGS = etags -+CTAGS = ctags -+ACLOCAL = @ACLOCAL@ -+AMDEP_FALSE = @AMDEP_FALSE@ -+AMDEP_TRUE = @AMDEP_TRUE@ -+AMTAR = @AMTAR@ -+AR = @AR@ -+AS = @AS@ -+AUTOCONF = @AUTOCONF@ -+AUTOHEADER = @AUTOHEADER@ -+AUTOMAKE = @AUTOMAKE@ -+AWK = @AWK@ -+CC = @CC@ -+CCAS = @CCAS@ -+CCASFLAGS = @CCASFLAGS@ -+CCDEPMODE = @CCDEPMODE@ -+CYGPATH_W = @CYGPATH_W@ -+DEFS = @DEFS@ -+DEPDIR = @DEPDIR@ -+ECHO_C = @ECHO_C@ -+ECHO_N = @ECHO_N@ -+ECHO_T = @ECHO_T@ -+ELIX_LEVEL_0_FALSE = @ELIX_LEVEL_0_FALSE@ -+ELIX_LEVEL_0_TRUE = @ELIX_LEVEL_0_TRUE@ -+ELIX_LEVEL_1_FALSE = @ELIX_LEVEL_1_FALSE@ -+ELIX_LEVEL_1_TRUE = @ELIX_LEVEL_1_TRUE@ -+ELIX_LEVEL_2_FALSE = @ELIX_LEVEL_2_FALSE@ -+ELIX_LEVEL_2_TRUE = @ELIX_LEVEL_2_TRUE@ -+ELIX_LEVEL_3_FALSE = @ELIX_LEVEL_3_FALSE@ -+ELIX_LEVEL_3_TRUE = @ELIX_LEVEL_3_TRUE@ -+ELIX_LEVEL_4_FALSE = @ELIX_LEVEL_4_FALSE@ -+ELIX_LEVEL_4_TRUE = @ELIX_LEVEL_4_TRUE@ -+INSTALL_DATA = @INSTALL_DATA@ -+INSTALL_PROGRAM = @INSTALL_PROGRAM@ -+INSTALL_SCRIPT = @INSTALL_SCRIPT@ -+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -+LDFLAGS = @LDFLAGS@ -+LIBOBJS = @LIBOBJS@ -+LIBS = @LIBS@ -+LTLIBOBJS = @LTLIBOBJS@ -+MAINT = @MAINT@ -+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ -+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ -+MAKEINFO = @MAKEINFO@ -+MAY_SUPPLY_SYSCALLS_FALSE = @MAY_SUPPLY_SYSCALLS_FALSE@ -+MAY_SUPPLY_SYSCALLS_TRUE = @MAY_SUPPLY_SYSCALLS_TRUE@ -+NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ -+OBJEXT = @OBJEXT@ -+PACKAGE = @PACKAGE@ -+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -+PACKAGE_NAME = @PACKAGE_NAME@ -+PACKAGE_STRING = @PACKAGE_STRING@ -+PACKAGE_TARNAME = @PACKAGE_TARNAME@ -+PACKAGE_VERSION = @PACKAGE_VERSION@ -+PATH_SEPARATOR = @PATH_SEPARATOR@ -+RANLIB = @RANLIB@ -+READELF = @READELF@ -+SET_MAKE = @SET_MAKE@ -+SHELL = @SHELL@ -+STRIP = @STRIP@ -+USE_LIBTOOL_FALSE = @USE_LIBTOOL_FALSE@ -+USE_LIBTOOL_TRUE = @USE_LIBTOOL_TRUE@ -+VERSION = @VERSION@ -+aext = @aext@ -+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -+am__include = @am__include@ -+am__leading_dot = @am__leading_dot@ -+am__quote = @am__quote@ -+am__tar = @am__tar@ -+am__untar = @am__untar@ -+bindir = @bindir@ -+build = @build@ -+build_alias = @build_alias@ -+build_cpu = @build_cpu@ -+build_os = @build_os@ -+build_vendor = @build_vendor@ -+datadir = @datadir@ -+datarootdir = @datarootdir@ -+docdir = @docdir@ -+dvidir = @dvidir@ -+exec_prefix = @exec_prefix@ -+host = @host@ -+host_alias = @host_alias@ -+host_cpu = @host_cpu@ -+host_os = @host_os@ -+host_vendor = @host_vendor@ -+htmldir = @htmldir@ -+includedir = @includedir@ -+infodir = @infodir@ -+install_sh = @install_sh@ -+libdir = @libdir@ -+libexecdir = @libexecdir@ -+libm_machine_dir = @libm_machine_dir@ -+localedir = @localedir@ -+localstatedir = @localstatedir@ -+lpfx = @lpfx@ -+machine_dir = @machine_dir@ -+mandir = @mandir@ -+mkdir_p = @mkdir_p@ -+newlib_basedir = @newlib_basedir@ -+oext = @oext@ -+oldincludedir = @oldincludedir@ -+pdfdir = @pdfdir@ -+prefix = @prefix@ -+program_transform_name = @program_transform_name@ -+psdir = @psdir@ -+sbindir = @sbindir@ -+sharedstatedir = @sharedstatedir@ -+sys_dir = @sys_dir@ -+sysconfdir = @sysconfdir@ -+target_alias = @target_alias@ -+AUTOMAKE_OPTIONS = cygnus -+INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) -+AM_CCASFLAGS = $(INCLUDES) $(CFLAGS) -+noinst_LIBRARIES = lib.a -+LIBCGLUE_MULT_OBJS = _close.o _exit.o _fork.o _fstat.o _getpid.o \ -+ _gettimeofday.o _kill.o _lseek.o _open.o _read.o \ -+ _sbrk.o _wait.o _write.o clock.o isatty.o time.o \ -+ _link.o _unlink.o sleep.o opendir.o readdir.o \ -+ closedir.o getcwd.o chdir.o mkdir.o rmdir.o \ -+ realpath.o _stat.o truncate.o access.o tzset.o \ -+ __psp_set_errno.o mlock.o _fcntl.o _rename.o nanosleep.o -+ -+SOCKET_MULT_OBJS = socket.o accept.o bind.o connect.o getsockopt.o \ -+ listen.o recv.o recvfrom.o send.o sendto.o \ -+ setsockopt.o shutdown.o getsockname.o getpeername.o \ -+ inet_ntoa.o -+ -+PE_OBJS = pipe.o -+FDMAN_OBJS = fdman.o -+SELECT_OBJS = select.o -+INTERRUPT_OBJS = interrupt.o -+XPRINTF_MULT_OBJS = vxprintf.o _xprintf.o __sout.o vsnprintf.o snprintf.o \ -+ vsprintf.o sprintf.o __mout.o mprintf.o vmprintf.o asprintf.o \ -+ vasprintf.o __fout.o fprintf.o vfprintf.o printf.o vprintf.o \ -+ _sprintf_r.o -+ -+NETDB_MULT_OBJS = h_errno.o gethostbyaddr.o gethostbyname.o -+lib_a_SOURCES = libcglue.c socket.c pspcwd.c xprintf.c netdb.c pipe.c fdman.c select.c syscalls.c interrupt.S -+lib_a_LIBADD = $(LIBCGLUE_MULT_OBJS) $(SOCKET_MULT_OBJS) $(XPRINTF_MULT_OBJS) \ -+ $(NETDB_MULT_OBJS) $(PIPE_OBJS) $(FDMAN_OBJS) $(SELECT_OBJS) $(INTERRUPT_OBJS) -+ -+ACLOCAL_AMFLAGS = -I ../../.. -+CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host -+all: all-am -+ -+.SUFFIXES: -+.SUFFIXES: .S .c .o .obj -+am--refresh: -+ @: -+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) -+ @for dep in $?; do \ -+ case '$(am__configure_deps)' in \ -+ *$$dep*) \ -+ echo ' cd $(srcdir) && $(AUTOMAKE) --cygnus '; \ -+ cd $(srcdir) && $(AUTOMAKE) --cygnus \ -+ && exit 0; \ -+ exit 1;; \ -+ esac; \ -+ done; \ -+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile'; \ -+ cd $(top_srcdir) && \ -+ $(AUTOMAKE) --cygnus Makefile -+.PRECIOUS: Makefile -+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status -+ @case '$?' in \ -+ *config.status*) \ -+ echo ' $(SHELL) ./config.status'; \ -+ $(SHELL) ./config.status;; \ -+ *) \ -+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ -+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ -+ esac; -+ -+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) -+ $(SHELL) ./config.status --recheck -+ -+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) -+ cd $(srcdir) && $(AUTOCONF) -+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) -+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -+ -+clean-noinstLIBRARIES: -+ -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) -+lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) -+ -rm -f lib.a -+ $(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) -+ $(RANLIB) lib.a -+ -+mostlyclean-compile: -+ -rm -f *.$(OBJEXT) -+ -+distclean-compile: -+ -rm -f *.tab.c -+ -+.S.o: -+ $(CCASCOMPILE) -c $< -+ -+.S.obj: -+ $(CCASCOMPILE) -c `$(CYGPATH_W) '$<'` -+ -+.c.o: -+ $(COMPILE) -c $< -+ -+.c.obj: -+ $(COMPILE) -c `$(CYGPATH_W) '$<'` -+uninstall-info-am: -+ -+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) -+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ -+ unique=`for i in $$list; do \ -+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ -+ done | \ -+ $(AWK) ' { files[$$0] = 1; } \ -+ END { for (i in files) print i; }'`; \ -+ mkid -fID $$unique -+tags: TAGS -+ -+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ -+ $(TAGS_FILES) $(LISP) -+ tags=; \ -+ here=`pwd`; \ -+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ -+ unique=`for i in $$list; do \ -+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ -+ done | \ -+ $(AWK) ' { files[$$0] = 1; } \ -+ END { for (i in files) print i; }'`; \ -+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ -+ test -n "$$unique" || unique=$$empty_fix; \ -+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ -+ $$tags $$unique; \ -+ fi -+ctags: CTAGS -+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ -+ $(TAGS_FILES) $(LISP) -+ tags=; \ -+ here=`pwd`; \ -+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ -+ unique=`for i in $$list; do \ -+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ -+ done | \ -+ $(AWK) ' { files[$$0] = 1; } \ -+ END { for (i in files) print i; }'`; \ -+ test -z "$(CTAGS_ARGS)$$tags$$unique" \ -+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ -+ $$tags $$unique -+ -+GTAGS: -+ here=`$(am__cd) $(top_builddir) && pwd` \ -+ && cd $(top_srcdir) \ -+ && gtags -i $(GTAGS_ARGS) $$here -+ -+distclean-tags: -+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -+check-am: -+check: check-am -+all-am: Makefile $(LIBRARIES) -+installdirs: -+install: install-am -+install-exec: install-exec-am -+install-data: install-data-am -+uninstall: uninstall-am -+ -+install-am: all-am -+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am -+ -+installcheck: installcheck-am -+install-strip: -+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ -+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ -+ `test -z '$(STRIP)' || \ -+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -+mostlyclean-generic: -+ -+clean-generic: -+ -+distclean-generic: -+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -+ -+maintainer-clean-generic: -+ @echo "This command is intended for maintainers to use" -+ @echo "it deletes files that may require special tools to rebuild." -+clean: clean-am -+ -+clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am -+ -+distclean: distclean-am -+ -rm -f $(am__CONFIG_DISTCLEAN_FILES) -+ -rm -f Makefile -+distclean-am: clean-am distclean-compile distclean-generic \ -+ distclean-tags -+ -+dvi: dvi-am -+ -+dvi-am: -+ -+html: html-am -+ -+info: info-am -+ -+info-am: -+ -+install-data-am: -+ -+install-exec-am: -+ -+install-info: install-info-am -+ -+install-man: -+ -+installcheck-am: -+ -+maintainer-clean: maintainer-clean-am -+ -rm -f $(am__CONFIG_DISTCLEAN_FILES) -+ -rm -rf $(top_srcdir)/autom4te.cache -+ -rm -f Makefile -+maintainer-clean-am: distclean-am maintainer-clean-generic -+ -+mostlyclean: mostlyclean-am -+ -+mostlyclean-am: mostlyclean-compile mostlyclean-generic -+ -+pdf: pdf-am -+ -+pdf-am: -+ -+ps: ps-am -+ -+ps-am: -+ -+uninstall-am: -+ -+.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ -+ clean-generic clean-noinstLIBRARIES ctags distclean \ -+ distclean-compile distclean-generic distclean-tags dvi dvi-am \ -+ html html-am info info-am install install-am install-data \ -+ install-data-am install-exec install-exec-am install-info \ -+ install-info-am install-man install-strip installcheck \ -+ installcheck-am installdirs maintainer-clean \ -+ maintainer-clean-generic mostlyclean mostlyclean-compile \ -+ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ -+ uninstall-am uninstall-info-am -+ -+ -+all: crt0.o -+ -+$(LIBCGLUE_MULT_OBJS): libcglue.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(SOCKET_MULT_OBJS): socket.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(XPRINTF_MULT_OBJS): xprintf.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(NETDB_MULT_OBJS): netdb.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(PIPE_OBJS): pipe.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(FDMAN_OBJS): fdman.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(SELECT_OBJS): select.c -+ $(COMPILE) -DF_$* $< -c -o $@ -+ -+$(INTERRUPT_OBJS): interrupt.S -+ $(COMPILE) -DF_$* $< -c -o $@ -+# Tell versions [3.59,3.63) of GNU make to not export all variables. -+# Otherwise a system limit (for SysV at least) may be exceeded. -+.NOEXPORT: -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/README newlib-1.17.0-psp/newlib/libc/sys/psp/README ---- newlib-1.17.0/newlib/libc/sys/psp/README 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/README 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,16 @@ -+Newlib for PSP -+-- -+ -+This sys/psp directory depends on PSPSDK headers. It expects them to live in -+${prefix}/psp/sdk/include (see newlib/configure.host). -+ -+I used automake 1.4-p6 to generate aclocal.m4 and Makefile.in: -+ -+ aclocal -I ../../.. -+ automake --cygnus -+ -+Autoconf refused to work for me, so I copied configure from sys/sh and modified -+$ac_unique_file to point libcglue.c. -+ -+-- -+Marcus R. Brown -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/aclocal.m4 newlib-1.17.0-psp/newlib/libc/sys/psp/aclocal.m4 ---- newlib-1.17.0/newlib/libc/sys/psp/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/aclocal.m4 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,880 @@ -+# generated automatically by aclocal 1.9.6 -*- Autoconf -*- -+ -+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -+# 2005 Free Software Foundation, Inc. -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# This program is distributed in the hope that it will be useful, -+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -+# PARTICULAR PURPOSE. -+ -+# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# AM_AUTOMAKE_VERSION(VERSION) -+# ---------------------------- -+# Automake X.Y traces this macro to ensure aclocal.m4 has been -+# generated from the m4 files accompanying Automake X.Y. -+AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) -+ -+# AM_SET_CURRENT_AUTOMAKE_VERSION -+# ------------------------------- -+# Call AM_AUTOMAKE_VERSION so it can be traced. -+# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -+ [AM_AUTOMAKE_VERSION([1.9.6])]) -+ -+# AM_AUX_DIR_EXPAND -*- Autoconf -*- -+ -+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -+# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -+# -+# Of course, Automake must honor this variable whenever it calls a -+# tool from the auxiliary directory. The problem is that $srcdir (and -+# therefore $ac_aux_dir as well) can be either absolute or relative, -+# depending on how configure is run. This is pretty annoying, since -+# it makes $ac_aux_dir quite unusable in subdirectories: in the top -+# source directory, any form will work fine, but in subdirectories a -+# relative path needs to be adjusted first. -+# -+# $ac_aux_dir/missing -+# fails when called from a subdirectory if $ac_aux_dir is relative -+# $top_srcdir/$ac_aux_dir/missing -+# fails if $ac_aux_dir is absolute, -+# fails when called from a subdirectory in a VPATH build with -+# a relative $ac_aux_dir -+# -+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -+# are both prefixed by $srcdir. In an in-source build this is usually -+# harmless because $srcdir is `.', but things will broke when you -+# start a VPATH build or use an absolute $srcdir. -+# -+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -+# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -+# and then we would define $MISSING as -+# MISSING="\${SHELL} $am_aux_dir/missing" -+# This will work as long as MISSING is not called from configure, because -+# unfortunately $(top_srcdir) has no meaning in configure. -+# However there are other variables, like CC, which are often used in -+# configure, and could therefore not use this "fixed" $ac_aux_dir. -+# -+# Another solution, used here, is to always expand $ac_aux_dir to an -+# absolute PATH. The drawback is that using absolute paths prevent a -+# configured tree to be moved without reconfiguration. -+ -+AC_DEFUN([AM_AUX_DIR_EXPAND], -+[dnl Rely on autoconf to set up CDPATH properly. -+AC_PREREQ([2.50])dnl -+# expand $ac_aux_dir to an absolute path -+am_aux_dir=`cd $ac_aux_dir && pwd` -+]) -+ -+# AM_CONDITIONAL -*- Autoconf -*- -+ -+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 -+# Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# serial 7 -+ -+# AM_CONDITIONAL(NAME, SHELL-CONDITION) -+# ------------------------------------- -+# Define a conditional. -+AC_DEFUN([AM_CONDITIONAL], -+[AC_PREREQ(2.52)dnl -+ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], -+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -+AC_SUBST([$1_TRUE]) -+AC_SUBST([$1_FALSE]) -+if $2; then -+ $1_TRUE= -+ $1_FALSE='#' -+else -+ $1_TRUE='#' -+ $1_FALSE= -+fi -+AC_CONFIG_COMMANDS_PRE( -+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then -+ AC_MSG_ERROR([[conditional "$1" was never defined. -+Usually this means the macro was only invoked conditionally.]]) -+fi])]) -+ -+ -+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -+# Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# serial 8 -+ -+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -+# written in clear, in which case automake, when reading aclocal.m4, -+# will think it sees a *use*, and therefore will trigger all it's -+# C support machinery. Also note that it means that autoscan, seeing -+# CC etc. in the Makefile, will ask for an AC_PROG_CC use... -+ -+ -+# _AM_DEPENDENCIES(NAME) -+# ---------------------- -+# See how the compiler implements dependency checking. -+# NAME is "CC", "CXX", "GCJ", or "OBJC". -+# We try a few techniques and use that to set a single cache variable. -+# -+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -+# dependency, and given that the user is not expected to run this macro, -+# just rely on AC_PROG_CC. -+AC_DEFUN([_AM_DEPENDENCIES], -+[AC_REQUIRE([AM_SET_DEPDIR])dnl -+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -+AC_REQUIRE([AM_MAKE_INCLUDE])dnl -+AC_REQUIRE([AM_DEP_TRACK])dnl -+ -+ifelse([$1], CC, [depcc="$CC" am_compiler_list=], -+ [$1], CXX, [depcc="$CXX" am_compiler_list=], -+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], -+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], -+ [depcc="$$1" am_compiler_list=]) -+ -+AC_CACHE_CHECK([dependency style of $depcc], -+ [am_cv_$1_dependencies_compiler_type], -+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then -+ # We make a subdir and do the tests there. Otherwise we can end up -+ # making bogus files that we don't know about and never remove. For -+ # instance it was reported that on HP-UX the gcc test will end up -+ # making a dummy file named `D' -- because `-MD' means `put the output -+ # in D'. -+ mkdir conftest.dir -+ # Copy depcomp to subdir because otherwise we won't find it if we're -+ # using a relative directory. -+ cp "$am_depcomp" conftest.dir -+ cd conftest.dir -+ # We will build objects and dependencies in a subdirectory because -+ # it helps to detect inapplicable dependency modes. For instance -+ # both Tru64's cc and ICC support -MD to output dependencies as a -+ # side effect of compilation, but ICC will put the dependencies in -+ # the current directory while Tru64 will put them in the object -+ # directory. -+ mkdir sub -+ -+ am_cv_$1_dependencies_compiler_type=none -+ if test "$am_compiler_list" = ""; then -+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` -+ fi -+ for depmode in $am_compiler_list; do -+ # Setup a source with many dependencies, because some compilers -+ # like to wrap large dependency lists on column 80 (with \), and -+ # we should not choose a depcomp mode which is confused by this. -+ # -+ # We need to recreate these files for each test, as the compiler may -+ # overwrite some of them when testing with obscure command lines. -+ # This happens at least with the AIX C compiler. -+ : > sub/conftest.c -+ for i in 1 2 3 4 5 6; do -+ echo '#include "conftst'$i'.h"' >> sub/conftest.c -+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with -+ # Solaris 8's {/usr,}/bin/sh. -+ touch sub/conftst$i.h -+ done -+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf -+ -+ case $depmode in -+ nosideeffect) -+ # after this tag, mechanisms are not by side-effect, so they'll -+ # only be used when explicitly requested -+ if test "x$enable_dependency_tracking" = xyes; then -+ continue -+ else -+ break -+ fi -+ ;; -+ none) break ;; -+ esac -+ # We check with `-c' and `-o' for the sake of the "dashmstdout" -+ # mode. It turns out that the SunPro C++ compiler does not properly -+ # handle `-M -o', and we need to detect this. -+ if depmode=$depmode \ -+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ -+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ -+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ -+ >/dev/null 2>conftest.err && -+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && -+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && -+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then -+ # icc doesn't choke on unknown options, it will just issue warnings -+ # or remarks (even with -Werror). So we grep stderr for any message -+ # that says an option was ignored or not supported. -+ # When given -MP, icc 7.0 and 7.1 complain thusly: -+ # icc: Command line warning: ignoring option '-M'; no argument required -+ # The diagnosis changed in icc 8.0: -+ # icc: Command line remark: option '-MP' not supported -+ if (grep 'ignoring option' conftest.err || -+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else -+ am_cv_$1_dependencies_compiler_type=$depmode -+ break -+ fi -+ fi -+ done -+ -+ cd .. -+ rm -rf conftest.dir -+else -+ am_cv_$1_dependencies_compiler_type=none -+fi -+]) -+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -+AM_CONDITIONAL([am__fastdep$1], [ -+ test "x$enable_dependency_tracking" != xno \ -+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -+]) -+ -+ -+# AM_SET_DEPDIR -+# ------------- -+# Choose a directory name for dependency files. -+# This macro is AC_REQUIREd in _AM_DEPENDENCIES -+AC_DEFUN([AM_SET_DEPDIR], -+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -+]) -+ -+ -+# AM_DEP_TRACK -+# ------------ -+AC_DEFUN([AM_DEP_TRACK], -+[AC_ARG_ENABLE(dependency-tracking, -+[ --disable-dependency-tracking speeds up one-time build -+ --enable-dependency-tracking do not reject slow dependency extractors]) -+if test "x$enable_dependency_tracking" != xno; then -+ am_depcomp="$ac_aux_dir/depcomp" -+ AMDEPBACKSLASH='\' -+fi -+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -+AC_SUBST([AMDEPBACKSLASH]) -+]) -+ -+# Generate code to set up dependency tracking. -*- Autoconf -*- -+ -+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -+# Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+#serial 3 -+ -+# _AM_OUTPUT_DEPENDENCY_COMMANDS -+# ------------------------------ -+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -+[for mf in $CONFIG_FILES; do -+ # Strip MF so we end up with the name of the file. -+ mf=`echo "$mf" | sed -e 's/:.*$//'` -+ # Check whether this is an Automake generated Makefile or not. -+ # We used to match only the files named `Makefile.in', but -+ # some people rename them; so instead we look at the file content. -+ # Grep'ing the first line is not enough: some people post-process -+ # each Makefile.in and add a new line on top of each file to say so. -+ # So let's grep whole file. -+ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then -+ dirpart=`AS_DIRNAME("$mf")` -+ else -+ continue -+ fi -+ # Extract the definition of DEPDIR, am__include, and am__quote -+ # from the Makefile without running `make'. -+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` -+ test -z "$DEPDIR" && continue -+ am__include=`sed -n 's/^am__include = //p' < "$mf"` -+ test -z "am__include" && continue -+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"` -+ # When using ansi2knr, U may be empty or an underscore; expand it -+ U=`sed -n 's/^U = //p' < "$mf"` -+ # Find all dependency output files, they are included files with -+ # $(DEPDIR) in their names. We invoke sed twice because it is the -+ # simplest approach to changing $(DEPDIR) to its actual value in the -+ # expansion. -+ for file in `sed -n " -+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ -+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do -+ # Make sure the directory exists. -+ test -f "$dirpart/$file" && continue -+ fdir=`AS_DIRNAME(["$file"])` -+ AS_MKDIR_P([$dirpart/$fdir]) -+ # echo "creating $dirpart/$file" -+ echo '# dummy' > "$dirpart/$file" -+ done -+done -+])# _AM_OUTPUT_DEPENDENCY_COMMANDS -+ -+ -+# AM_OUTPUT_DEPENDENCY_COMMANDS -+# ----------------------------- -+# This macro should only be invoked once -- use via AC_REQUIRE. -+# -+# This code is only required when automatic dependency tracking -+# is enabled. FIXME. This creates each `.P' file that we will -+# need in order to bootstrap the dependency handling code. -+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -+[AC_CONFIG_COMMANDS([depfiles], -+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], -+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -+]) -+ -+# Do all the work for Automake. -*- Autoconf -*- -+ -+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -+# Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# serial 12 -+ -+# This macro actually does too much. Some checks are only needed if -+# your package does certain things. But this isn't really a big deal. -+ -+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -+# AM_INIT_AUTOMAKE([OPTIONS]) -+# ----------------------------------------------- -+# The call with PACKAGE and VERSION arguments is the old style -+# call (pre autoconf-2.50), which is being phased out. PACKAGE -+# and VERSION should now be passed to AC_INIT and removed from -+# the call to AM_INIT_AUTOMAKE. -+# We support both call styles for the transition. After -+# the next Automake release, Autoconf can make the AC_INIT -+# arguments mandatory, and then we can depend on a new Autoconf -+# release and drop the old call support. -+AC_DEFUN([AM_INIT_AUTOMAKE], -+[AC_PREREQ([2.58])dnl -+dnl Autoconf wants to disallow AM_ names. We explicitly allow -+dnl the ones we care about. -+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -+AC_REQUIRE([AC_PROG_INSTALL])dnl -+# test to see if srcdir already configured -+if test "`cd $srcdir && pwd`" != "`pwd`" && -+ test -f $srcdir/config.status; then -+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -+fi -+ -+# test whether we have cygpath -+if test -z "$CYGPATH_W"; then -+ if (cygpath --version) >/dev/null 2>/dev/null; then -+ CYGPATH_W='cygpath -w' -+ else -+ CYGPATH_W=echo -+ fi -+fi -+AC_SUBST([CYGPATH_W]) -+ -+# Define the identity of the package. -+dnl Distinguish between old-style and new-style calls. -+m4_ifval([$2], -+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl -+ AC_SUBST([PACKAGE], [$1])dnl -+ AC_SUBST([VERSION], [$2])], -+[_AM_SET_OPTIONS([$1])dnl -+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl -+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl -+ -+_AM_IF_OPTION([no-define],, -+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) -+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl -+ -+# Some tools Automake needs. -+AC_REQUIRE([AM_SANITY_CHECK])dnl -+AC_REQUIRE([AC_ARG_PROGRAM])dnl -+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -+AM_MISSING_PROG(AUTOCONF, autoconf) -+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -+AM_MISSING_PROG(AUTOHEADER, autoheader) -+AM_MISSING_PROG(MAKEINFO, makeinfo) -+AM_PROG_INSTALL_SH -+AM_PROG_INSTALL_STRIP -+AC_REQUIRE([AM_PROG_MKDIR_P])dnl -+# We need awk for the "check" target. The system "awk" is bad on -+# some platforms. -+AC_REQUIRE([AC_PROG_AWK])dnl -+AC_REQUIRE([AC_PROG_MAKE_SET])dnl -+AC_REQUIRE([AM_SET_LEADING_DOT])dnl -+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], -+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], -+ [_AM_PROG_TAR([v7])])]) -+_AM_IF_OPTION([no-dependencies],, -+[AC_PROVIDE_IFELSE([AC_PROG_CC], -+ [_AM_DEPENDENCIES(CC)], -+ [define([AC_PROG_CC], -+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -+AC_PROVIDE_IFELSE([AC_PROG_CXX], -+ [_AM_DEPENDENCIES(CXX)], -+ [define([AC_PROG_CXX], -+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -+]) -+]) -+ -+ -+# When config.status generates a header, we must update the stamp-h file. -+# This file resides in the same directory as the config header -+# that is generated. The stamp files are numbered to have different names. -+ -+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -+# loop where config.status creates the headers, so we can generate -+# our stamp files there. -+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -+[# Compute $1's index in $config_headers. -+_am_stamp_count=1 -+for _am_header in $config_headers :; do -+ case $_am_header in -+ $1 | $1:* ) -+ break ;; -+ * ) -+ _am_stamp_count=`expr $_am_stamp_count + 1` ;; -+ esac -+done -+echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) -+ -+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# AM_PROG_INSTALL_SH -+# ------------------ -+# Define $install_sh. -+AC_DEFUN([AM_PROG_INSTALL_SH], -+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -+install_sh=${install_sh-"$am_aux_dir/install-sh"} -+AC_SUBST(install_sh)]) -+ -+# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# serial 2 -+ -+# Check whether the underlying file-system supports filenames -+# with a leading dot. For instance MS-DOS doesn't. -+AC_DEFUN([AM_SET_LEADING_DOT], -+[rm -rf .tst 2>/dev/null -+mkdir .tst 2>/dev/null -+if test -d .tst; then -+ am__leading_dot=. -+else -+ am__leading_dot=_ -+fi -+rmdir .tst 2>/dev/null -+AC_SUBST([am__leading_dot])]) -+ -+# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- -+# From Jim Meyering -+ -+# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 -+# Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# serial 4 -+ -+AC_DEFUN([AM_MAINTAINER_MODE], -+[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) -+ dnl maintainer-mode is disabled by default -+ AC_ARG_ENABLE(maintainer-mode, -+[ --enable-maintainer-mode enable make rules and dependencies not useful -+ (and sometimes confusing) to the casual installer], -+ USE_MAINTAINER_MODE=$enableval, -+ USE_MAINTAINER_MODE=no) -+ AC_MSG_RESULT([$USE_MAINTAINER_MODE]) -+ AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) -+ MAINT=$MAINTAINER_MODE_TRUE -+ AC_SUBST(MAINT)dnl -+] -+) -+ -+AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) -+ -+# Check to see how 'make' treats includes. -*- Autoconf -*- -+ -+# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# serial 3 -+ -+# AM_MAKE_INCLUDE() -+# ----------------- -+# Check to see how make treats includes. -+AC_DEFUN([AM_MAKE_INCLUDE], -+[am_make=${MAKE-make} -+cat > confinc << 'END' -+am__doit: -+ @echo done -+.PHONY: am__doit -+END -+# If we don't find an include directive, just comment out the code. -+AC_MSG_CHECKING([for style of include used by $am_make]) -+am__include="#" -+am__quote= -+_am_result=none -+# First try GNU make style include. -+echo "include confinc" > confmf -+# We grep out `Entering directory' and `Leaving directory' -+# messages which can occur if `w' ends up in MAKEFLAGS. -+# In particular we don't look at `^make:' because GNU make might -+# be invoked under some other name (usually "gmake"), in which -+# case it prints its new name instead of `make'. -+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then -+ am__include=include -+ am__quote= -+ _am_result=GNU -+fi -+# Now try BSD make style include. -+if test "$am__include" = "#"; then -+ echo '.include "confinc"' > confmf -+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then -+ am__include=.include -+ am__quote="\"" -+ _am_result=BSD -+ fi -+fi -+AC_SUBST([am__include]) -+AC_SUBST([am__quote]) -+AC_MSG_RESULT([$_am_result]) -+rm -f confinc confmf -+]) -+ -+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -+ -+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 -+# Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# serial 4 -+ -+# AM_MISSING_PROG(NAME, PROGRAM) -+# ------------------------------ -+AC_DEFUN([AM_MISSING_PROG], -+[AC_REQUIRE([AM_MISSING_HAS_RUN]) -+$1=${$1-"${am_missing_run}$2"} -+AC_SUBST($1)]) -+ -+ -+# AM_MISSING_HAS_RUN -+# ------------------ -+# Define MISSING if not defined so far and test if it supports --run. -+# If it does, set am_missing_run to use it, otherwise, to nothing. -+AC_DEFUN([AM_MISSING_HAS_RUN], -+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -+# Use eval to expand $SHELL -+if eval "$MISSING --run true"; then -+ am_missing_run="$MISSING --run " -+else -+ am_missing_run= -+ AC_MSG_WARN([`missing' script is too old or missing]) -+fi -+]) -+ -+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# AM_PROG_MKDIR_P -+# --------------- -+# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. -+# -+# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories -+# created by `make install' are always world readable, even if the -+# installer happens to have an overly restrictive umask (e.g. 077). -+# This was a mistake. There are at least two reasons why we must not -+# use `-m 0755': -+# - it causes special bits like SGID to be ignored, -+# - it may be too restrictive (some setups expect 775 directories). -+# -+# Do not use -m 0755 and let people choose whatever they expect by -+# setting umask. -+# -+# We cannot accept any implementation of `mkdir' that recognizes `-p'. -+# Some implementations (such as Solaris 8's) are not thread-safe: if a -+# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' -+# concurrently, both version can detect that a/ is missing, but only -+# one can create it and the other will error out. Consequently we -+# restrict ourselves to GNU make (using the --version option ensures -+# this.) -+AC_DEFUN([AM_PROG_MKDIR_P], -+[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then -+ # We used to keeping the `.' as first argument, in order to -+ # allow $(mkdir_p) to be used without argument. As in -+ # $(mkdir_p) $(somedir) -+ # where $(somedir) is conditionally defined. However this is wrong -+ # for two reasons: -+ # 1. if the package is installed by a user who cannot write `.' -+ # make install will fail, -+ # 2. the above comment should most certainly read -+ # $(mkdir_p) $(DESTDIR)$(somedir) -+ # so it does not work when $(somedir) is undefined and -+ # $(DESTDIR) is not. -+ # To support the latter case, we have to write -+ # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), -+ # so the `.' trick is pointless. -+ mkdir_p='mkdir -p --' -+else -+ # On NextStep and OpenStep, the `mkdir' command does not -+ # recognize any option. It will interpret all options as -+ # directories to create, and then abort because `.' already -+ # exists. -+ for d in ./-p ./--version; -+ do -+ test -d $d && rmdir $d -+ done -+ # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. -+ if test -f "$ac_aux_dir/mkinstalldirs"; then -+ mkdir_p='$(mkinstalldirs)' -+ else -+ mkdir_p='$(install_sh) -d' -+ fi -+fi -+AC_SUBST([mkdir_p])]) -+ -+# Helper functions for option handling. -*- Autoconf -*- -+ -+# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# serial 3 -+ -+# _AM_MANGLE_OPTION(NAME) -+# ----------------------- -+AC_DEFUN([_AM_MANGLE_OPTION], -+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) -+ -+# _AM_SET_OPTION(NAME) -+# ------------------------------ -+# Set option NAME. Presently that only means defining a flag for this option. -+AC_DEFUN([_AM_SET_OPTION], -+[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) -+ -+# _AM_SET_OPTIONS(OPTIONS) -+# ---------------------------------- -+# OPTIONS is a space-separated list of Automake options. -+AC_DEFUN([_AM_SET_OPTIONS], -+[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) -+ -+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -+# ------------------------------------------- -+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -+AC_DEFUN([_AM_IF_OPTION], -+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -+ -+# Check to make sure that the build environment is sane. -*- Autoconf -*- -+ -+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -+# Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# serial 4 -+ -+# AM_SANITY_CHECK -+# --------------- -+AC_DEFUN([AM_SANITY_CHECK], -+[AC_MSG_CHECKING([whether build environment is sane]) -+# Just in case -+sleep 1 -+echo timestamp > conftest.file -+# Do `set' in a subshell so we don't clobber the current shell's -+# arguments. Must try -L first in case configure is actually a -+# symlink; some systems play weird games with the mod time of symlinks -+# (eg FreeBSD returns the mod time of the symlink's containing -+# directory). -+if ( -+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` -+ if test "$[*]" = "X"; then -+ # -L didn't work. -+ set X `ls -t $srcdir/configure conftest.file` -+ fi -+ rm -f conftest.file -+ if test "$[*]" != "X $srcdir/configure conftest.file" \ -+ && test "$[*]" != "X conftest.file $srcdir/configure"; then -+ -+ # If neither matched, then we have a broken ls. This can happen -+ # if, for instance, CONFIG_SHELL is bash and it inherits a -+ # broken ls alias from the environment. This has actually -+ # happened. Such a system could not be considered "sane". -+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -+alias in your environment]) -+ fi -+ -+ test "$[2]" = conftest.file -+ ) -+then -+ # Ok. -+ : -+else -+ AC_MSG_ERROR([newly created file is older than distributed files! -+Check your system clock]) -+fi -+AC_MSG_RESULT(yes)]) -+ -+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# AM_PROG_INSTALL_STRIP -+# --------------------- -+# One issue with vendor `install' (even GNU) is that you can't -+# specify the program used to strip binaries. This is especially -+# annoying in cross-compiling environments, where the build's strip -+# is unlikely to handle the host's binaries. -+# Fortunately install-sh will honor a STRIPPROG variable, so we -+# always use install-sh in `make install-strip', and initialize -+# STRIPPROG with the value of the STRIP variable (set by the user). -+AC_DEFUN([AM_PROG_INSTALL_STRIP], -+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -+# Installed binaries are usually stripped using `strip' when the user -+# run `make install-strip'. However `strip' might not be the right -+# tool to use in cross-compilation environments, therefore Automake -+# will honor the `STRIP' environment variable to overrule this program. -+dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -+if test "$cross_compiling" != no; then -+ AC_CHECK_TOOL([STRIP], [strip], :) -+fi -+INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" -+AC_SUBST([INSTALL_STRIP_PROGRAM])]) -+ -+# Check how to create a tarball. -*- Autoconf -*- -+ -+# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -+# -+# This file is free software; the Free Software Foundation -+# gives unlimited permission to copy and/or distribute it, -+# with or without modifications, as long as this notice is preserved. -+ -+# serial 2 -+ -+# _AM_PROG_TAR(FORMAT) -+# -------------------- -+# Check how to create a tarball in format FORMAT. -+# FORMAT should be one of `v7', `ustar', or `pax'. -+# -+# Substitute a variable $(am__tar) that is a command -+# writing to stdout a FORMAT-tarball containing the directory -+# $tardir. -+# tardir=directory && $(am__tar) > result.tar -+# -+# Substitute a variable $(am__untar) that extract such -+# a tarball read from stdin. -+# $(am__untar) < result.tar -+AC_DEFUN([_AM_PROG_TAR], -+[# Always define AMTAR for backward compatibility. -+AM_MISSING_PROG([AMTAR], [tar]) -+m4_if([$1], [v7], -+ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], -+ [m4_case([$1], [ustar],, [pax],, -+ [m4_fatal([Unknown tar format])]) -+AC_MSG_CHECKING([how to create a $1 tar archive]) -+# Loop over all known methods to create a tar archive until one works. -+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -+_am_tools=${am_cv_prog_tar_$1-$_am_tools} -+# Do not fold the above two line into one, because Tru64 sh and -+# Solaris sh will not grok spaces in the rhs of `-'. -+for _am_tool in $_am_tools -+do -+ case $_am_tool in -+ gnutar) -+ for _am_tar in tar gnutar gtar; -+ do -+ AM_RUN_LOG([$_am_tar --version]) && break -+ done -+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' -+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' -+ am__untar="$_am_tar -xf -" -+ ;; -+ plaintar) -+ # Must skip GNU tar: if it does not support --format= it doesn't create -+ # ustar tarball either. -+ (tar --version) >/dev/null 2>&1 && continue -+ am__tar='tar chf - "$$tardir"' -+ am__tar_='tar chf - "$tardir"' -+ am__untar='tar xf -' -+ ;; -+ pax) -+ am__tar='pax -L -x $1 -w "$$tardir"' -+ am__tar_='pax -L -x $1 -w "$tardir"' -+ am__untar='pax -r' -+ ;; -+ cpio) -+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L' -+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L' -+ am__untar='cpio -i -H $1 -d' -+ ;; -+ none) -+ am__tar=false -+ am__tar_=false -+ am__untar=false -+ ;; -+ esac -+ -+ # If the value was cached, stop now. We just wanted to have am__tar -+ # and am__untar set. -+ test -n "${am_cv_prog_tar_$1}" && break -+ -+ # tar/untar a dummy directory, and stop if the command works -+ rm -rf conftest.dir -+ mkdir conftest.dir -+ echo GrepMe > conftest.dir/file -+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) -+ rm -rf conftest.dir -+ if test -s conftest.tar; then -+ AM_RUN_LOG([$am__untar /dev/null 2>&1 && break -+ fi -+done -+rm -rf conftest.dir -+ -+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -+AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -+AC_SUBST([am__tar]) -+AC_SUBST([am__untar]) -+]) # _AM_PROG_TAR -+ -+m4_include([../../../acinclude.m4]) -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/arpa/inet.h newlib-1.17.0-psp/newlib/libc/sys/psp/arpa/inet.h ---- newlib-1.17.0/newlib/libc/sys/psp/arpa/inet.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/arpa/inet.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,26 @@ -+/* arpa/inet.h - Functions for converting IP addresses between strings and numbers */ -+ -+#ifndef _ARPA_INET_H_ -+#define _ARPA_INET_H_ -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+#include -+ -+in_addr_t sceNetInetInetAddr(const char *ip); -+int sceNetInetInetAton(const char *ip, struct in_addr *in); -+const char* sceNetInetInetNtop(int af, const void *src, char *dst, socklen_t cnt); -+int sceNetInetInetPton(int af, const char *src, void *dst); -+ -+char *inet_ntoa(struct in_addr in); -+#define inet_addr sceNetInetInetAddr -+#define inet_aton sceNetInetInetAton -+#define inet_ntop sceNetInetInetNtop -+#define inet_pton sceNetInetInetPton -+ -+#ifdef __cplusplus -+} -+#endif -+#endif /* _ARPA_INET_H_ */ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/confdefs.h newlib-1.17.0-psp/newlib/libc/sys/psp/confdefs.h ---- newlib-1.17.0/newlib/libc/sys/psp/confdefs.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/confdefs.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1 @@ -+ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/configure newlib-1.17.0-psp/newlib/libc/sys/psp/configure ---- newlib-1.17.0/newlib/libc/sys/psp/configure 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/configure 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,4085 @@ -+#! /bin/sh -+# Guess values for system-dependent variables and create Makefiles. -+# Generated by GNU Autoconf 2.59 for newlib 1.15.0. -+# -+# Copyright (C) 2003 Free Software Foundation, Inc. -+# This configure script is free software; the Free Software Foundation -+# gives unlimited permission to copy, distribute and modify it. -+## --------------------- ## -+## M4sh Initialization. ## -+## --------------------- ## -+ -+# Be Bourne compatible -+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then -+ emulate sh -+ NULLCMD=: -+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which -+ # is contrary to our usage. Disable this feature. -+ alias -g '${1+"$@"}'='"$@"' -+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then -+ set -o posix -+fi -+DUALCASE=1; export DUALCASE # for MKS sh -+ -+# Support unset when possible. -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then -+ as_unset=unset -+else -+ as_unset=false -+fi -+ -+ -+# Work around bugs in pre-3.0 UWIN ksh. -+$as_unset ENV MAIL MAILPATH -+PS1='$ ' -+PS2='> ' -+PS4='+ ' -+ -+# NLS nuisances. -+for as_var in \ -+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ -+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ -+ LC_TELEPHONE LC_TIME -+do -+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then -+ eval $as_var=C; export $as_var -+ else -+ $as_unset $as_var -+ fi -+done -+ -+# Required to use basename. -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then -+ as_basename=basename -+else -+ as_basename=false -+fi -+ -+ -+# Name of the executable. -+as_me=`$as_basename "$0" || -+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ -+ X"$0" : 'X\(//\)$' \| \ -+ X"$0" : 'X\(/\)$' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X/"$0" | -+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } -+ /^X\/\(\/\/\)$/{ s//\1/; q; } -+ /^X\/\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ -+ -+# PATH needs CR, and LINENO needs CR and PATH. -+# Avoid depending upon Character Ranges. -+as_cr_letters='abcdefghijklmnopqrstuvwxyz' -+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -+as_cr_Letters=$as_cr_letters$as_cr_LETTERS -+as_cr_digits='0123456789' -+as_cr_alnum=$as_cr_Letters$as_cr_digits -+ -+# 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 -+ -+ -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" || { -+ # Find who we are. Look in the path if we contain no path at all -+ # relative or not. -+ case $0 in -+ *[\\/]* ) as_myself=$0 ;; -+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -+done -+ -+ ;; -+ esac -+ # We did not find ourselves, most probably we were run as `sh COMMAND' -+ # in which case we are not to be found in the path. -+ if test "x$as_myself" = x; then -+ as_myself=$0 -+ fi -+ if test ! -f "$as_myself"; then -+ { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 -+ { (exit 1); exit 1; }; } -+ fi -+ case $CONFIG_SHELL in -+ '') -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ for as_base in sh bash ksh sh5; do -+ case $as_dir in -+ /*) -+ if ("$as_dir/$as_base" -c ' -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then -+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } -+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } -+ CONFIG_SHELL=$as_dir/$as_base -+ export CONFIG_SHELL -+ exec "$CONFIG_SHELL" "$0" ${1+"$@"} -+ fi;; -+ esac -+ done -+done -+;; -+ esac -+ -+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO -+ # uniformly replaced by the line number. The first 'sed' inserts a -+ # line-number line before each line; the second 'sed' does the real -+ # work. The second script uses 'N' to pair each line-number line -+ # with the numbered line, and appends trailing '-' during -+ # substitution so that $LINENO is not a special case at line end. -+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the -+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) -+ sed '=' <$as_myself | -+ sed ' -+ N -+ s,$,-, -+ : loop -+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, -+ t loop -+ s,-$,, -+ s,^['$as_cr_digits']*\n,, -+ ' >$as_me.lineno && -+ chmod +x $as_me.lineno || -+ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 -+ { (exit 1); exit 1; }; } -+ -+ # Don't try to exec as it changes $[0], causing all sort of problems -+ # (the dirname of $[0] is not the place where we might find the -+ # original and so on. Autoconf is especially sensible to this). -+ . ./$as_me.lineno -+ # Exit status is that of the last command. -+ exit -+} -+ -+ -+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in -+ *c*,-n*) ECHO_N= ECHO_C=' -+' ECHO_T=' ' ;; -+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; -+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -+esac -+ -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+rm -f conf$$ conf$$.exe conf$$.file -+echo >conf$$.file -+if ln -s conf$$.file conf$$ 2>/dev/null; then -+ # We could just check for DJGPP; but this test a) works b) is more generic -+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). -+ if test -f conf$$.exe; then -+ # Don't use ln at all; we don't have any links -+ as_ln_s='cp -p' -+ else -+ as_ln_s='ln -s' -+ fi -+elif ln conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s=ln -+else -+ as_ln_s='cp -p' -+fi -+rm -f conf$$ conf$$.exe conf$$.file -+ -+if mkdir -p . 2>/dev/null; then -+ as_mkdir_p=: -+else -+ test -d ./-p && rmdir ./-p -+ as_mkdir_p=false -+fi -+ -+as_executable_p="test -f" -+ -+# Sed expression to map a string onto a valid CPP name. -+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -+ -+# Sed expression to map a string onto a valid variable name. -+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -+ -+ -+# IFS -+# We need space, tab and new line, in precisely that order. -+as_nl=' -+' -+IFS=" $as_nl" -+ -+# CDPATH. -+$as_unset CDPATH -+ -+ -+# Name of the host. -+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -+# so uname gets run too. -+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` -+ -+exec 6>&1 -+ -+# -+# Initializations. -+# -+ac_default_prefix=/usr/local -+ac_config_libobj_dir=. -+cross_compiling=no -+subdirs= -+MFLAGS= -+MAKEFLAGS= -+SHELL=${CONFIG_SHELL-/bin/sh} -+ -+# Maximum number of lines to put in a shell here document. -+# This variable seems obsolete. It should probably be removed, and -+# only ac_max_sed_lines should be used. -+: ${ac_max_here_lines=38} -+ -+# Identity of this package. -+PACKAGE_NAME='newlib' -+PACKAGE_TARNAME='newlib' -+PACKAGE_VERSION='1.15.0' -+PACKAGE_STRING='newlib 1.15.0' -+PACKAGE_BUGREPORT='' -+ -+ac_unique_file="libcglue.c" -+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 MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir LIBOBJS LTLIBOBJS' -+ac_subst_files='' -+ -+# Initialize some variables set by options. -+ac_init_help= -+ac_init_version=false -+# The variables have the same names as the options, with -+# dashes changed to underlines. -+cache_file=/dev/null -+exec_prefix=NONE -+no_create= -+no_recursion= -+prefix=NONE -+program_prefix=NONE -+program_suffix=NONE -+program_transform_name=s,x,x, -+silent= -+site= -+srcdir= -+verbose= -+x_includes=NONE -+x_libraries=NONE -+ -+# Installation directory options. -+# These are left unexpanded so users can "make install exec_prefix=/foo" -+# and all the variables that are supposed to be based on exec_prefix -+# by default will actually change. -+# Use braces instead of parens because sh, perl, etc. also accept them. -+bindir='${exec_prefix}/bin' -+sbindir='${exec_prefix}/sbin' -+libexecdir='${exec_prefix}/libexec' -+datadir='${prefix}/share' -+sysconfdir='${prefix}/etc' -+sharedstatedir='${prefix}/com' -+localstatedir='${prefix}/var' -+libdir='${exec_prefix}/lib' -+includedir='${prefix}/include' -+oldincludedir='/usr/include' -+infodir='${prefix}/info' -+mandir='${prefix}/man' -+ -+ac_prev= -+for ac_option -+do -+ # If the previous option needs an argument, assign it. -+ if test -n "$ac_prev"; then -+ eval "$ac_prev=\$ac_option" -+ ac_prev= -+ continue -+ fi -+ -+ ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` -+ -+ # Accept the important Cygnus configure options, so we can diagnose typos. -+ -+ case $ac_option in -+ -+ -bindir | --bindir | --bindi | --bind | --bin | --bi) -+ ac_prev=bindir ;; -+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) -+ bindir=$ac_optarg ;; -+ -+ -build | --build | --buil | --bui | --bu) -+ ac_prev=build_alias ;; -+ -build=* | --build=* | --buil=* | --bui=* | --bu=*) -+ build_alias=$ac_optarg ;; -+ -+ -cache-file | --cache-file | --cache-fil | --cache-fi \ -+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) -+ ac_prev=cache_file ;; -+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ -+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) -+ cache_file=$ac_optarg ;; -+ -+ --config-cache | -C) -+ cache_file=config.cache ;; -+ -+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da) -+ ac_prev=datadir ;; -+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ -+ | --da=*) -+ datadir=$ac_optarg ;; -+ -+ -disable-* | --disable-*) -+ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 -+ { (exit 1); exit 1; }; } -+ ac_feature=`echo $ac_feature | sed 's/-/_/g'` -+ eval "enable_$ac_feature=no" ;; -+ -+ -enable-* | --enable-*) -+ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 -+ { (exit 1); exit 1; }; } -+ ac_feature=`echo $ac_feature | sed 's/-/_/g'` -+ case $ac_option in -+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; -+ *) ac_optarg=yes ;; -+ esac -+ eval "enable_$ac_feature='$ac_optarg'" ;; -+ -+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ -+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ -+ | --exec | --exe | --ex) -+ ac_prev=exec_prefix ;; -+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ -+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ -+ | --exec=* | --exe=* | --ex=*) -+ exec_prefix=$ac_optarg ;; -+ -+ -gas | --gas | --ga | --g) -+ # Obsolete; use --with-gas. -+ with_gas=yes ;; -+ -+ -help | --help | --hel | --he | -h) -+ ac_init_help=long ;; -+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) -+ ac_init_help=recursive ;; -+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) -+ ac_init_help=short ;; -+ -+ -host | --host | --hos | --ho) -+ ac_prev=host_alias ;; -+ -host=* | --host=* | --hos=* | --ho=*) -+ host_alias=$ac_optarg ;; -+ -+ -includedir | --includedir | --includedi | --included | --include \ -+ | --includ | --inclu | --incl | --inc) -+ ac_prev=includedir ;; -+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ -+ | --includ=* | --inclu=* | --incl=* | --inc=*) -+ includedir=$ac_optarg ;; -+ -+ -infodir | --infodir | --infodi | --infod | --info | --inf) -+ ac_prev=infodir ;; -+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) -+ infodir=$ac_optarg ;; -+ -+ -libdir | --libdir | --libdi | --libd) -+ ac_prev=libdir ;; -+ -libdir=* | --libdir=* | --libdi=* | --libd=*) -+ libdir=$ac_optarg ;; -+ -+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ -+ | --libexe | --libex | --libe) -+ ac_prev=libexecdir ;; -+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ -+ | --libexe=* | --libex=* | --libe=*) -+ libexecdir=$ac_optarg ;; -+ -+ -localstatedir | --localstatedir | --localstatedi | --localstated \ -+ | --localstate | --localstat | --localsta | --localst \ -+ | --locals | --local | --loca | --loc | --lo) -+ ac_prev=localstatedir ;; -+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ -+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ -+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) -+ localstatedir=$ac_optarg ;; -+ -+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m) -+ ac_prev=mandir ;; -+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) -+ mandir=$ac_optarg ;; -+ -+ -nfp | --nfp | --nf) -+ # Obsolete; use --without-fp. -+ with_fp=no ;; -+ -+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ -+ | --no-cr | --no-c | -n) -+ no_create=yes ;; -+ -+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ -+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) -+ no_recursion=yes ;; -+ -+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ -+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ -+ | --oldin | --oldi | --old | --ol | --o) -+ ac_prev=oldincludedir ;; -+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ -+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ -+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) -+ oldincludedir=$ac_optarg ;; -+ -+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) -+ ac_prev=prefix ;; -+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) -+ prefix=$ac_optarg ;; -+ -+ -program-prefix | --program-prefix | --program-prefi | --program-pref \ -+ | --program-pre | --program-pr | --program-p) -+ ac_prev=program_prefix ;; -+ -program-prefix=* | --program-prefix=* | --program-prefi=* \ -+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) -+ program_prefix=$ac_optarg ;; -+ -+ -program-suffix | --program-suffix | --program-suffi | --program-suff \ -+ | --program-suf | --program-su | --program-s) -+ ac_prev=program_suffix ;; -+ -program-suffix=* | --program-suffix=* | --program-suffi=* \ -+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) -+ program_suffix=$ac_optarg ;; -+ -+ -program-transform-name | --program-transform-name \ -+ | --program-transform-nam | --program-transform-na \ -+ | --program-transform-n | --program-transform- \ -+ | --program-transform | --program-transfor \ -+ | --program-transfo | --program-transf \ -+ | --program-trans | --program-tran \ -+ | --progr-tra | --program-tr | --program-t) -+ ac_prev=program_transform_name ;; -+ -program-transform-name=* | --program-transform-name=* \ -+ | --program-transform-nam=* | --program-transform-na=* \ -+ | --program-transform-n=* | --program-transform-=* \ -+ | --program-transform=* | --program-transfor=* \ -+ | --program-transfo=* | --program-transf=* \ -+ | --program-trans=* | --program-tran=* \ -+ | --progr-tra=* | --program-tr=* | --program-t=*) -+ program_transform_name=$ac_optarg ;; -+ -+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ -+ | -silent | --silent | --silen | --sile | --sil) -+ silent=yes ;; -+ -+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) -+ ac_prev=sbindir ;; -+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ -+ | --sbi=* | --sb=*) -+ sbindir=$ac_optarg ;; -+ -+ -sharedstatedir | --sharedstatedir | --sharedstatedi \ -+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ -+ | --sharedst | --shareds | --shared | --share | --shar \ -+ | --sha | --sh) -+ ac_prev=sharedstatedir ;; -+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ -+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ -+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ -+ | --sha=* | --sh=*) -+ sharedstatedir=$ac_optarg ;; -+ -+ -site | --site | --sit) -+ ac_prev=site ;; -+ -site=* | --site=* | --sit=*) -+ site=$ac_optarg ;; -+ -+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) -+ ac_prev=srcdir ;; -+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) -+ srcdir=$ac_optarg ;; -+ -+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ -+ | --syscon | --sysco | --sysc | --sys | --sy) -+ ac_prev=sysconfdir ;; -+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ -+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) -+ sysconfdir=$ac_optarg ;; -+ -+ -target | --target | --targe | --targ | --tar | --ta | --t) -+ ac_prev=target_alias ;; -+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) -+ target_alias=$ac_optarg ;; -+ -+ -v | -verbose | --verbose | --verbos | --verbo | --verb) -+ verbose=yes ;; -+ -+ -version | --version | --versio | --versi | --vers | -V) -+ ac_init_version=: ;; -+ -+ -with-* | --with-*) -+ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid package name: $ac_package" >&2 -+ { (exit 1); exit 1; }; } -+ ac_package=`echo $ac_package| sed 's/-/_/g'` -+ case $ac_option in -+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; -+ *) ac_optarg=yes ;; -+ esac -+ eval "with_$ac_package='$ac_optarg'" ;; -+ -+ -without-* | --without-*) -+ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid package name: $ac_package" >&2 -+ { (exit 1); exit 1; }; } -+ ac_package=`echo $ac_package | sed 's/-/_/g'` -+ eval "with_$ac_package=no" ;; -+ -+ --x) -+ # Obsolete; use --with-x. -+ with_x=yes ;; -+ -+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ -+ | --x-incl | --x-inc | --x-in | --x-i) -+ ac_prev=x_includes ;; -+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ -+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) -+ x_includes=$ac_optarg ;; -+ -+ -x-libraries | --x-libraries | --x-librarie | --x-librari \ -+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) -+ ac_prev=x_libraries ;; -+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ -+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) -+ x_libraries=$ac_optarg ;; -+ -+ -*) { echo "$as_me: error: unrecognized option: $ac_option -+Try \`$0 --help' for more information." >&2 -+ { (exit 1); exit 1; }; } -+ ;; -+ -+ *=*) -+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` -+ # Reject names that are not valid shell variable names. -+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && -+ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 -+ { (exit 1); exit 1; }; } -+ ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` -+ eval "$ac_envvar='$ac_optarg'" -+ export $ac_envvar ;; -+ -+ *) -+ # FIXME: should be removed in autoconf 3.0. -+ echo "$as_me: WARNING: you should use --build, --host, --target" >&2 -+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && -+ echo "$as_me: WARNING: invalid host type: $ac_option" >&2 -+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} -+ ;; -+ -+ esac -+done -+ -+if test -n "$ac_prev"; then -+ ac_option=--`echo $ac_prev | sed 's/_/-/g'` -+ { echo "$as_me: error: missing argument to $ac_option" >&2 -+ { (exit 1); exit 1; }; } -+fi -+ -+# Be sure to have absolute paths. -+for ac_var in exec_prefix prefix -+do -+ eval ac_val=$`echo $ac_var` -+ case $ac_val in -+ [\\/$]* | ?:[\\/]* | NONE | '' ) ;; -+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 -+ { (exit 1); exit 1; }; };; -+ esac -+done -+ -+# Be sure to have absolute paths. -+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ -+ localstatedir libdir includedir oldincludedir infodir mandir -+do -+ eval ac_val=$`echo $ac_var` -+ case $ac_val in -+ [\\/$]* | ?:[\\/]* ) ;; -+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 -+ { (exit 1); exit 1; }; };; -+ esac -+done -+ -+# There might be people who depend on the old broken behavior: `$host' -+# used to hold the argument of --host etc. -+# FIXME: To remove some day. -+build=$build_alias -+host=$host_alias -+target=$target_alias -+ -+# FIXME: To remove some day. -+if test "x$host_alias" != x; then -+ if test "x$build_alias" = x; then -+ cross_compiling=maybe -+ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. -+ If a cross compiler is detected then cross compile mode will be used." >&2 -+ elif test "x$build_alias" != "x$host_alias"; then -+ cross_compiling=yes -+ fi -+fi -+ -+ac_tool_prefix= -+test -n "$host_alias" && ac_tool_prefix=$host_alias- -+ -+test "$silent" = yes && exec 6>/dev/null -+ -+ -+# Find the source files, if location was not specified. -+if test -z "$srcdir"; then -+ ac_srcdir_defaulted=yes -+ # Try the directory containing this script, then its parent. -+ ac_confdir=`(dirname "$0") 2>/dev/null || -+$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$0" : 'X\(//\)[^/]' \| \ -+ X"$0" : 'X\(//\)$' \| \ -+ X"$0" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$0" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ srcdir=$ac_confdir -+ if test ! -r $srcdir/$ac_unique_file; then -+ srcdir=.. -+ fi -+else -+ ac_srcdir_defaulted=no -+fi -+if test ! -r $srcdir/$ac_unique_file; then -+ if test "$ac_srcdir_defaulted" = yes; then -+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 -+ { (exit 1); exit 1; }; } -+ else -+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 -+ { (exit 1); exit 1; }; } -+ fi -+fi -+(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || -+ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 -+ { (exit 1); exit 1; }; } -+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -+ac_env_build_alias_set=${build_alias+set} -+ac_env_build_alias_value=$build_alias -+ac_cv_env_build_alias_set=${build_alias+set} -+ac_cv_env_build_alias_value=$build_alias -+ac_env_host_alias_set=${host_alias+set} -+ac_env_host_alias_value=$host_alias -+ac_cv_env_host_alias_set=${host_alias+set} -+ac_cv_env_host_alias_value=$host_alias -+ac_env_target_alias_set=${target_alias+set} -+ac_env_target_alias_value=$target_alias -+ac_cv_env_target_alias_set=${target_alias+set} -+ac_cv_env_target_alias_value=$target_alias -+ac_env_CCAS_set=${CCAS+set} -+ac_env_CCAS_value=$CCAS -+ac_cv_env_CCAS_set=${CCAS+set} -+ac_cv_env_CCAS_value=$CCAS -+ac_env_CCASFLAGS_set=${CCASFLAGS+set} -+ac_env_CCASFLAGS_value=$CCASFLAGS -+ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set} -+ac_cv_env_CCASFLAGS_value=$CCASFLAGS -+ -+# -+# Report the --help message. -+# -+if test "$ac_init_help" = "long"; then -+ # Omit some internal or obsolete options to make the list less imposing. -+ # This message is too long to be a string in the A/UX 3.1 sh. -+ cat <<_ACEOF -+\`configure' configures newlib 1.15.0 to adapt to many kinds of systems. -+ -+Usage: $0 [OPTION]... [VAR=VALUE]... -+ -+To assign environment variables (e.g., CC, CFLAGS...), specify them as -+VAR=VALUE. See below for descriptions of some of the useful variables. -+ -+Defaults for the options are specified in brackets. -+ -+Configuration: -+ -h, --help display this help and exit -+ --help=short display options specific to this package -+ --help=recursive display the short help of all the included packages -+ -V, --version display version information and exit -+ -q, --quiet, --silent do not print \`checking...' messages -+ --cache-file=FILE cache test results in FILE [disabled] -+ -C, --config-cache alias for \`--cache-file=config.cache' -+ -n, --no-create do not create output files -+ --srcdir=DIR find the sources in DIR [configure dir or \`..'] -+ -+_ACEOF -+ -+ cat <<_ACEOF -+Installation directories: -+ --prefix=PREFIX install architecture-independent files in PREFIX -+ [$ac_default_prefix] -+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX -+ [PREFIX] -+ -+By default, \`make install' will install all the files in -+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -+an installation prefix other than \`$ac_default_prefix' using \`--prefix', -+for instance \`--prefix=\$HOME'. -+ -+For better control, use the options below. -+ -+Fine tuning of the installation directories: -+ --bindir=DIR user executables [EPREFIX/bin] -+ --sbindir=DIR system admin executables [EPREFIX/sbin] -+ --libexecdir=DIR program executables [EPREFIX/libexec] -+ --datadir=DIR read-only architecture-independent data [PREFIX/share] -+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] -+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] -+ --localstatedir=DIR modifiable single-machine data [PREFIX/var] -+ --libdir=DIR object code libraries [EPREFIX/lib] -+ --includedir=DIR C header files [PREFIX/include] -+ --oldincludedir=DIR C header files for non-gcc [/usr/include] -+ --infodir=DIR info documentation [PREFIX/info] -+ --mandir=DIR man documentation [PREFIX/man] -+_ACEOF -+ -+ cat <<\_ACEOF -+ -+Program names: -+ --program-prefix=PREFIX prepend PREFIX to installed program names -+ --program-suffix=SUFFIX append SUFFIX to installed program names -+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names -+ -+System types: -+ --build=BUILD configure for building on BUILD [guessed] -+ --host=HOST cross-compile to build programs to run on HOST [BUILD] -+_ACEOF -+fi -+ -+if test -n "$ac_init_help"; then -+ case $ac_init_help in -+ short | recursive ) echo "Configuration of newlib 1.15.0:";; -+ esac -+ cat <<\_ACEOF -+ -+Optional Features: -+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) -+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] -+ --enable-multilib build many library versions (default) -+ --enable-target-optspace optimize for space -+ --enable-malloc-debugging indicate malloc debugging requested -+ --enable-newlib-multithread enable support for multiple threads -+ --enable-newlib-iconv enable iconv library support -+ --enable-newlib-elix-level supply desired elix library level (1-4) -+ --disable-newlib-io-float disable printf/scanf family float support -+ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls -+ --disable-dependency-tracking speeds up one-time build -+ --enable-dependency-tracking do not reject slow dependency extractors -+ --enable-maintainer-mode enable make rules and dependencies not useful -+ (and sometimes confusing) to the casual installer -+ -+Some influential environment variables: -+ CCAS assembler compiler command (defaults to CC) -+ CCASFLAGS assembler compiler flags (defaults to CFLAGS) -+ -+Use these variables to override the choices made by `configure' or to help -+it to find libraries and programs with nonstandard names/locations. -+ -+_ACEOF -+fi -+ -+if test "$ac_init_help" = "recursive"; then -+ # If there are subdirs, report their specific --help. -+ ac_popdir=`pwd` -+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue -+ test -d $ac_dir || continue -+ ac_builddir=. -+ -+if test "$ac_dir" != .; then -+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` -+ # A "../" for each directory in $ac_dir_suffix. -+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -+else -+ ac_dir_suffix= ac_top_builddir= -+fi -+ -+case $srcdir in -+ .) # No --srcdir option. We are building in place. -+ ac_srcdir=. -+ if test -z "$ac_top_builddir"; then -+ ac_top_srcdir=. -+ else -+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` -+ fi ;; -+ [\\/]* | ?:[\\/]* ) # Absolute path. -+ ac_srcdir=$srcdir$ac_dir_suffix; -+ ac_top_srcdir=$srcdir ;; -+ *) # Relative path. -+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix -+ ac_top_srcdir=$ac_top_builddir$srcdir ;; -+esac -+ -+# Do not use `cd foo && pwd` to compute absolute paths, because -+# the directories may not exist. -+case `pwd` in -+.) ac_abs_builddir="$ac_dir";; -+*) -+ case "$ac_dir" in -+ .) ac_abs_builddir=`pwd`;; -+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; -+ *) ac_abs_builddir=`pwd`/"$ac_dir";; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_builddir=${ac_top_builddir}.;; -+*) -+ case ${ac_top_builddir}. in -+ .) ac_abs_top_builddir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; -+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_srcdir=$ac_srcdir;; -+*) -+ case $ac_srcdir in -+ .) ac_abs_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; -+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_srcdir=$ac_top_srcdir;; -+*) -+ case $ac_top_srcdir in -+ .) ac_abs_top_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; -+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; -+ esac;; -+esac -+ -+ cd $ac_dir -+ # Check for guested configure; otherwise get Cygnus style configure. -+ if test -f $ac_srcdir/configure.gnu; then -+ echo -+ $SHELL $ac_srcdir/configure.gnu --help=recursive -+ elif test -f $ac_srcdir/configure; then -+ echo -+ $SHELL $ac_srcdir/configure --help=recursive -+ elif test -f $ac_srcdir/configure.ac || -+ test -f $ac_srcdir/configure.in; then -+ echo -+ $ac_configure --help -+ else -+ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 -+ fi -+ cd $ac_popdir -+ done -+fi -+ -+test -n "$ac_init_help" && exit 0 -+if $ac_init_version; then -+ cat <<\_ACEOF -+newlib configure 1.15.0 -+generated by GNU Autoconf 2.59 -+ -+Copyright (C) 2003 Free Software Foundation, Inc. -+This configure script is free software; the Free Software Foundation -+gives unlimited permission to copy, distribute and modify it. -+_ACEOF -+ exit 0 -+fi -+exec 5>config.log -+cat >&5 <<_ACEOF -+This file contains any messages produced by compilers while -+running configure, to aid debugging if configure makes a mistake. -+ -+It was created by newlib $as_me 1.15.0, which was -+generated by GNU Autoconf 2.59. Invocation command line was -+ -+ $ $0 $@ -+ -+_ACEOF -+{ -+cat <<_ASUNAME -+## --------- ## -+## Platform. ## -+## --------- ## -+ -+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -+uname -m = `(uname -m) 2>/dev/null || echo unknown` -+uname -r = `(uname -r) 2>/dev/null || echo unknown` -+uname -s = `(uname -s) 2>/dev/null || echo unknown` -+uname -v = `(uname -v) 2>/dev/null || echo unknown` -+ -+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` -+ -+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -+hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` -+ -+_ASUNAME -+ -+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ echo "PATH: $as_dir" -+done -+ -+} >&5 -+ -+cat >&5 <<_ACEOF -+ -+ -+## ----------- ## -+## Core tests. ## -+## ----------- ## -+ -+_ACEOF -+ -+ -+# Keep a trace of the command line. -+# Strip out --no-create and --no-recursion so they do not pile up. -+# Strip out --silent because we don't want to record it for future runs. -+# Also quote any args containing shell meta-characters. -+# Make two passes to allow for proper duplicate-argument suppression. -+ac_configure_args= -+ac_configure_args0= -+ac_configure_args1= -+ac_sep= -+ac_must_keep_next=false -+for ac_pass in 1 2 -+do -+ for ac_arg -+ do -+ case $ac_arg in -+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ -+ | -silent | --silent | --silen | --sile | --sil) -+ continue ;; -+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) -+ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; -+ esac -+ case $ac_pass in -+ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; -+ 2) -+ ac_configure_args1="$ac_configure_args1 '$ac_arg'" -+ if test $ac_must_keep_next = true; then -+ ac_must_keep_next=false # Got value, back to normal. -+ else -+ case $ac_arg in -+ *=* | --config-cache | -C | -disable-* | --disable-* \ -+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ -+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ -+ | -with-* | --with-* | -without-* | --without-* | --x) -+ case "$ac_configure_args0 " in -+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; -+ esac -+ ;; -+ -* ) ac_must_keep_next=true ;; -+ esac -+ fi -+ ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" -+ # Get rid of the leading space. -+ ac_sep=" " -+ ;; -+ esac -+ done -+done -+$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -+$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } -+ -+# When interrupted or exit'd, cleanup temporary files, and complete -+# config.log. We remove comments because anyway the quotes in there -+# would cause problems or look ugly. -+# WARNING: Be sure not to use single quotes in there, as some shells, -+# such as our DU 5.0 friend, will then `close' the trap. -+trap 'exit_status=$? -+ # Save into config.log some information that might help in debugging. -+ { -+ echo -+ -+ cat <<\_ASBOX -+## ---------------- ## -+## Cache variables. ## -+## ---------------- ## -+_ASBOX -+ echo -+ # The following way of writing the cache mishandles newlines in values, -+{ -+ (set) 2>&1 | -+ case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in -+ *ac_space=\ *) -+ sed -n \ -+ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; -+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" -+ ;; -+ *) -+ sed -n \ -+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" -+ ;; -+ esac; -+} -+ echo -+ -+ cat <<\_ASBOX -+## ----------------- ## -+## Output variables. ## -+## ----------------- ## -+_ASBOX -+ echo -+ for ac_var in $ac_subst_vars -+ do -+ eval ac_val=$`echo $ac_var` -+ echo "$ac_var='"'"'$ac_val'"'"'" -+ done | sort -+ echo -+ -+ if test -n "$ac_subst_files"; then -+ cat <<\_ASBOX -+## ------------- ## -+## Output files. ## -+## ------------- ## -+_ASBOX -+ echo -+ for ac_var in $ac_subst_files -+ do -+ eval ac_val=$`echo $ac_var` -+ echo "$ac_var='"'"'$ac_val'"'"'" -+ done | sort -+ echo -+ fi -+ -+ if test -s confdefs.h; then -+ cat <<\_ASBOX -+## ----------- ## -+## confdefs.h. ## -+## ----------- ## -+_ASBOX -+ echo -+ sed "/^$/d" confdefs.h | sort -+ echo -+ fi -+ test "$ac_signal" != 0 && -+ echo "$as_me: caught signal $ac_signal" -+ echo "$as_me: exit $exit_status" -+ } >&5 -+ rm -f core *.core && -+ rm -rf conftest* confdefs* conf$$* $ac_clean_files && -+ exit $exit_status -+ ' 0 -+for ac_signal in 1 2 13 15; do -+ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -+done -+ac_signal=0 -+ -+# confdefs.h avoids OS command line length limits that DEFS can exceed. -+rm -rf conftest* confdefs.h -+# AIX cpp loses on an empty file, so make sure it contains at least a newline. -+echo >confdefs.h -+ -+# Predefined preprocessor variables. -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_NAME "$PACKAGE_NAME" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_VERSION "$PACKAGE_VERSION" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_STRING "$PACKAGE_STRING" -+_ACEOF -+ -+ -+cat >>confdefs.h <<_ACEOF -+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -+_ACEOF -+ -+ -+# Let the site file select an alternate cache file if it wants to. -+# Prefer explicitly selected file to automatically selected ones. -+if test -z "$CONFIG_SITE"; then -+ if test "x$prefix" != xNONE; then -+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" -+ else -+ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" -+ fi -+fi -+for ac_site_file in $CONFIG_SITE; do -+ if test -r "$ac_site_file"; then -+ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -+echo "$as_me: loading site script $ac_site_file" >&6;} -+ sed 's/^/| /' "$ac_site_file" >&5 -+ . "$ac_site_file" -+ fi -+done -+ -+if test -r "$cache_file"; then -+ # Some versions of bash will fail to source /dev/null (special -+ # files actually), so we avoid doing that. -+ if test -f "$cache_file"; then -+ { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -+echo "$as_me: loading cache $cache_file" >&6;} -+ case $cache_file in -+ [\\/]* | ?:[\\/]* ) . $cache_file;; -+ *) . ./$cache_file;; -+ esac -+ fi -+else -+ { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -+echo "$as_me: creating cache $cache_file" >&6;} -+ >$cache_file -+fi -+ -+# Check that the precious variables saved in the cache have kept the same -+# value. -+ac_cache_corrupted=false -+for ac_var in `(set) 2>&1 | -+ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do -+ eval ac_old_set=\$ac_cv_env_${ac_var}_set -+ eval ac_new_set=\$ac_env_${ac_var}_set -+ eval ac_old_val="\$ac_cv_env_${ac_var}_value" -+ eval ac_new_val="\$ac_env_${ac_var}_value" -+ case $ac_old_set,$ac_new_set in -+ set,) -+ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} -+ ac_cache_corrupted=: ;; -+ ,set) -+ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -+echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} -+ ac_cache_corrupted=: ;; -+ ,);; -+ *) -+ if test "x$ac_old_val" != "x$ac_new_val"; then -+ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -+echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} -+ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -+echo "$as_me: former value: $ac_old_val" >&2;} -+ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -+echo "$as_me: current value: $ac_new_val" >&2;} -+ ac_cache_corrupted=: -+ fi;; -+ esac -+ # Pass precious variables to config.status. -+ if test "$ac_new_set" = set; then -+ case $ac_new_val in -+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) -+ ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; -+ *) ac_arg=$ac_var=$ac_new_val ;; -+ esac -+ case " $ac_configure_args " in -+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. -+ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; -+ esac -+ fi -+done -+if $ac_cache_corrupted; then -+ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -+echo "$as_me: error: changes in the environment can compromise the build" >&2;} -+ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} -+ { (exit 1); exit 1; }; } -+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 -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ac_aux_dir= -+for ac_dir in ../../../.. $srcdir/../../../..; do -+ if test -f $ac_dir/install-sh; then -+ ac_aux_dir=$ac_dir -+ ac_install_sh="$ac_aux_dir/install-sh -c" -+ break -+ elif test -f $ac_dir/install.sh; then -+ ac_aux_dir=$ac_dir -+ ac_install_sh="$ac_aux_dir/install.sh -c" -+ break -+ elif test -f $ac_dir/shtool; then -+ ac_aux_dir=$ac_dir -+ ac_install_sh="$ac_aux_dir/shtool install -c" -+ break -+ fi -+done -+if test -z "$ac_aux_dir"; then -+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&5 -+echo "$as_me: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ac_config_guess="$SHELL $ac_aux_dir/config.guess" -+ac_config_sub="$SHELL $ac_aux_dir/config.sub" -+ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. -+ -+ -+ -+# Make sure we can run config.sub. -+$ac_config_sub sun4 >/dev/null 2>&1 || -+ { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 -+echo "$as_me: error: cannot run $ac_config_sub" >&2;} -+ { (exit 1); exit 1; }; } -+ -+echo "$as_me:$LINENO: checking build system type" >&5 -+echo $ECHO_N "checking build system type... $ECHO_C" >&6 -+if test "${ac_cv_build+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_cv_build_alias=$build_alias -+test -z "$ac_cv_build_alias" && -+ ac_cv_build_alias=`$ac_config_guess` -+test -z "$ac_cv_build_alias" && -+ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -+echo "$as_me: error: cannot guess build type; you must specify one" >&2;} -+ { (exit 1); exit 1; }; } -+ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || -+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 -+echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} -+ { (exit 1); exit 1; }; } -+ -+fi -+echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -+echo "${ECHO_T}$ac_cv_build" >&6 -+build=$ac_cv_build -+build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -+build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -+build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -+ -+ -+am__api_version="1.9" -+# Find a good install program. We prefer a C program (faster), -+# so one script is as good as another. But avoid the broken or -+# incompatible versions: -+# SysV /etc/install, /usr/sbin/install -+# SunOS /usr/etc/install -+# IRIX /sbin/install -+# AIX /bin/install -+# AmigaOS /C/install, which installs bootblocks on floppy discs -+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -+# AFS /usr/afsws/bin/install, which mishandles nonexistent args -+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -+# OS/2's system install, which has a completely different semantic -+# ./install, which can be erroneously created by make from ./install.sh. -+echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -+if test -z "$INSTALL"; then -+if test "${ac_cv_path_install+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ # Account for people who put trailing slashes in PATH elements. -+case $as_dir/ in -+ ./ | .// | /cC/* | \ -+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ -+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ -+ /usr/ucb/* ) ;; -+ *) -+ # OSF1 and SCO ODT 3.0 have their own names for install. -+ # Don't use installbsd from OSF since it installs stuff as root -+ # by default. -+ for ac_prog in ginstall scoinst install; do -+ for ac_exec_ext in '' $ac_executable_extensions; do -+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then -+ if test $ac_prog = install && -+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then -+ # AIX install. It has an incompatible calling convention. -+ : -+ elif test $ac_prog = install && -+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then -+ # program-specific install script used by HP pwplus--don't use. -+ : -+ else -+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" -+ break 3 -+ fi -+ fi -+ done -+ done -+ ;; -+esac -+done -+ -+ -+fi -+ if test "${ac_cv_path_install+set}" = set; then -+ INSTALL=$ac_cv_path_install -+ else -+ # As a last resort, use the slow shell script. We don't cache a -+ # path for INSTALL within a source directory, because that will -+ # break other packages using the cache if that directory is -+ # removed, or if the path is relative. -+ INSTALL=$ac_install_sh -+ fi -+fi -+echo "$as_me:$LINENO: result: $INSTALL" >&5 -+echo "${ECHO_T}$INSTALL" >&6 -+ -+# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -+# It thinks the first close brace ends the variable substitution. -+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -+ -+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -+ -+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -+ -+echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -+echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 -+# Just in case -+sleep 1 -+echo timestamp > conftest.file -+# Do `set' in a subshell so we don't clobber the current shell's -+# arguments. Must try -L first in case configure is actually a -+# symlink; some systems play weird games with the mod time of symlinks -+# (eg FreeBSD returns the mod time of the symlink's containing -+# directory). -+if ( -+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` -+ if test "$*" = "X"; then -+ # -L didn't work. -+ set X `ls -t $srcdir/configure conftest.file` -+ fi -+ rm -f conftest.file -+ if test "$*" != "X $srcdir/configure conftest.file" \ -+ && test "$*" != "X conftest.file $srcdir/configure"; then -+ -+ # If neither matched, then we have a broken ls. This can happen -+ # if, for instance, CONFIG_SHELL is bash and it inherits a -+ # broken ls alias from the environment. This has actually -+ # happened. Such a system could not be considered "sane". -+ { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -+alias in your environment" >&5 -+echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -+alias in your environment" >&2;} -+ { (exit 1); exit 1; }; } -+ fi -+ -+ test "$2" = conftest.file -+ ) -+then -+ # Ok. -+ : -+else -+ { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -+Check your system clock" >&5 -+echo "$as_me: error: newly created file is older than distributed files! -+Check your system clock" >&2;} -+ { (exit 1); exit 1; }; } -+fi -+echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+test "$program_prefix" != NONE && -+ program_transform_name="s,^,$program_prefix,;$program_transform_name" -+# Use a double $ so make ignores it. -+test "$program_suffix" != NONE && -+ program_transform_name="s,\$,$program_suffix,;$program_transform_name" -+# Double any \ or $. echo might interpret backslashes. -+# By default was `s,x,x', remove it if useless. -+cat <<\_ACEOF >conftest.sed -+s/[\\$]/&&/g;s/;s,x,x,$// -+_ACEOF -+program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -+rm conftest.sed -+ -+# expand $ac_aux_dir to an absolute path -+am_aux_dir=`cd $ac_aux_dir && pwd` -+ -+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -+# Use eval to expand $SHELL -+if eval "$MISSING --run true"; then -+ am_missing_run="$MISSING --run " -+else -+ am_missing_run= -+ { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -+echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -+fi -+ -+if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then -+ # We used to keeping the `.' as first argument, in order to -+ # allow $(mkdir_p) to be used without argument. As in -+ # $(mkdir_p) $(somedir) -+ # where $(somedir) is conditionally defined. However this is wrong -+ # for two reasons: -+ # 1. if the package is installed by a user who cannot write `.' -+ # make install will fail, -+ # 2. the above comment should most certainly read -+ # $(mkdir_p) $(DESTDIR)$(somedir) -+ # so it does not work when $(somedir) is undefined and -+ # $(DESTDIR) is not. -+ # To support the latter case, we have to write -+ # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), -+ # so the `.' trick is pointless. -+ mkdir_p='mkdir -p --' -+else -+ # On NextStep and OpenStep, the `mkdir' command does not -+ # recognize any option. It will interpret all options as -+ # directories to create, and then abort because `.' already -+ # exists. -+ for d in ./-p ./--version; -+ do -+ test -d $d && rmdir $d -+ done -+ # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. -+ if test -f "$ac_aux_dir/mkinstalldirs"; then -+ mkdir_p='$(mkinstalldirs)' -+ else -+ mkdir_p='$(install_sh) -d' -+ fi -+fi -+ -+for ac_prog in gawk mawk nawk awk -+do -+ # Extract the first word of "$ac_prog", so it can be a program name with args. -+set dummy $ac_prog; ac_word=$2 -+echo "$as_me:$LINENO: checking for $ac_word" >&5 -+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -+if test "${ac_cv_prog_AWK+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$AWK"; then -+ ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+AWK=$ac_cv_prog_AWK -+if test -n "$AWK"; then -+ echo "$as_me:$LINENO: result: $AWK" >&5 -+echo "${ECHO_T}$AWK" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -n "$AWK" && break -+done -+ -+echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -+echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -+set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.make <<\_ACEOF -+all: -+ @echo 'ac_maketemp="$(MAKE)"' -+_ACEOF -+# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -+eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -+if test -n "$ac_maketemp"; then -+ eval ac_cv_prog_make_${ac_make}_set=yes -+else -+ eval ac_cv_prog_make_${ac_make}_set=no -+fi -+rm -f conftest.make -+fi -+if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then -+ echo "$as_me:$LINENO: result: yes" >&5 -+echo "${ECHO_T}yes" >&6 -+ SET_MAKE= -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+ SET_MAKE="MAKE=${MAKE-make}" -+fi -+ -+rm -rf .tst 2>/dev/null -+mkdir .tst 2>/dev/null -+if test -d .tst; then -+ am__leading_dot=. -+else -+ am__leading_dot=_ -+fi -+rmdir .tst 2>/dev/null -+ -+DEPDIR="${am__leading_dot}deps" -+ -+ ac_config_commands="$ac_config_commands depfiles" -+ -+ -+am_make=${MAKE-make} -+cat > confinc << 'END' -+am__doit: -+ @echo done -+.PHONY: am__doit -+END -+# If we don't find an include directive, just comment out the code. -+echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -+echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 -+am__include="#" -+am__quote= -+_am_result=none -+# First try GNU make style include. -+echo "include confinc" > confmf -+# We grep out `Entering directory' and `Leaving directory' -+# messages which can occur if `w' ends up in MAKEFLAGS. -+# In particular we don't look at `^make:' because GNU make might -+# be invoked under some other name (usually "gmake"), in which -+# case it prints its new name instead of `make'. -+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then -+ am__include=include -+ am__quote= -+ _am_result=GNU -+fi -+# Now try BSD make style include. -+if test "$am__include" = "#"; then -+ echo '.include "confinc"' > confmf -+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then -+ am__include=.include -+ am__quote="\"" -+ _am_result=BSD -+ fi -+fi -+ -+ -+echo "$as_me:$LINENO: result: $_am_result" >&5 -+echo "${ECHO_T}$_am_result" >&6 -+rm -f confinc confmf -+ -+# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. -+if test "${enable_dependency_tracking+set}" = set; then -+ enableval="$enable_dependency_tracking" -+ -+fi; -+if test "x$enable_dependency_tracking" != xno; then -+ am_depcomp="$ac_aux_dir/depcomp" -+ AMDEPBACKSLASH='\' -+fi -+ -+ -+if test "x$enable_dependency_tracking" != xno; then -+ AMDEP_TRUE= -+ AMDEP_FALSE='#' -+else -+ AMDEP_TRUE='#' -+ AMDEP_FALSE= -+fi -+ -+ -+ -+ -+# Check whether --enable-multilib or --disable-multilib was given. -+if test "${enable_multilib+set}" = set; then -+ enableval="$enable_multilib" -+ case "${enableval}" in -+ yes) multilib=yes ;; -+ no) multilib=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5 -+echo "$as_me: error: bad value ${enableval} for multilib option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ multilib=yes -+fi; -+# Check whether --enable-target-optspace or --disable-target-optspace was given. -+if test "${enable_target_optspace+set}" = set; then -+ enableval="$enable_target_optspace" -+ case "${enableval}" in -+ yes) target_optspace=yes ;; -+ no) target_optspace=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5 -+echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ target_optspace= -+fi; -+# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given. -+if test "${enable_malloc_debugging+set}" = set; then -+ enableval="$enable_malloc_debugging" -+ case "${enableval}" in -+ yes) malloc_debugging=yes ;; -+ no) malloc_debugging=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5 -+echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ malloc_debugging= -+fi; -+# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given. -+if test "${enable_newlib_multithread+set}" = set; then -+ enableval="$enable_newlib_multithread" -+ case "${enableval}" in -+ yes) newlib_multithread=yes ;; -+ no) newlib_multithread=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5 -+echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ newlib_multithread=yes -+fi; -+# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given. -+if test "${enable_newlib_iconv+set}" = set; then -+ enableval="$enable_newlib_iconv" -+ if test "${newlib_iconv+set}" != set; then -+ case "${enableval}" in -+ yes) newlib_iconv=yes ;; -+ no) newlib_iconv=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5 -+echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+ fi -+else -+ newlib_iconv=${newlib_iconv} -+fi; -+# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given. -+if test "${enable_newlib_elix_level+set}" = set; then -+ enableval="$enable_newlib_elix_level" -+ case "${enableval}" in -+ 0) newlib_elix_level=0 ;; -+ 1) newlib_elix_level=1 ;; -+ 2) newlib_elix_level=2 ;; -+ 3) newlib_elix_level=3 ;; -+ 4) newlib_elix_level=4 ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5 -+echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ newlib_elix_level=0 -+fi; -+# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given. -+if test "${enable_newlib_io_float+set}" = set; then -+ enableval="$enable_newlib_io_float" -+ case "${enableval}" in -+ yes) newlib_io_float=yes ;; -+ no) newlib_io_float=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5 -+echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ newlib_io_float=yes -+fi; -+# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given. -+if test "${enable_newlib_supplied_syscalls+set}" = set; then -+ enableval="$enable_newlib_supplied_syscalls" -+ case "${enableval}" in -+ yes) newlib_may_supply_syscalls=yes ;; -+ no) newlib_may_supply_syscalls=no ;; -+ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5 -+echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;} -+ { (exit 1); exit 1; }; } ;; -+ esac -+else -+ newlib_may_supply_syscalls=yes -+fi; -+ -+ -+if test x${newlib_may_supply_syscalls} = xyes; then -+ MAY_SUPPLY_SYSCALLS_TRUE= -+ MAY_SUPPLY_SYSCALLS_FALSE='#' -+else -+ MAY_SUPPLY_SYSCALLS_TRUE='#' -+ MAY_SUPPLY_SYSCALLS_FALSE= -+fi -+ -+ -+ -+test -z "${with_target_subdir}" && with_target_subdir=. -+ -+if test "${srcdir}" = "."; then -+ if test "${with_target_subdir}" != "."; then -+ newlib_basedir="${srcdir}/${with_multisrctop}../../../.." -+ else -+ newlib_basedir="${srcdir}/${with_multisrctop}../../.." -+ fi -+else -+ newlib_basedir="${srcdir}/../../.." -+fi -+ -+ -+echo "$as_me:$LINENO: checking host system type" >&5 -+echo $ECHO_N "checking host system type... $ECHO_C" >&6 -+if test "${ac_cv_host+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ ac_cv_host_alias=$host_alias -+test -z "$ac_cv_host_alias" && -+ ac_cv_host_alias=$ac_cv_build_alias -+ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || -+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 -+echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} -+ { (exit 1); exit 1; }; } -+ -+fi -+echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -+echo "${ECHO_T}$ac_cv_host" >&6 -+host=$ac_cv_host -+host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -+host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -+host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -+ -+ -+ -+# test to see if srcdir already configured -+if test "`cd $srcdir && pwd`" != "`pwd`" && -+ test -f $srcdir/config.status; then -+ { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -+echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ -+# test whether we have cygpath -+if test -z "$CYGPATH_W"; then -+ if (cygpath --version) >/dev/null 2>/dev/null; then -+ CYGPATH_W='cygpath -w' -+ else -+ CYGPATH_W=echo -+ fi -+fi -+ -+ -+# Define the identity of the package. -+ PACKAGE='newlib' -+ VERSION='1.15.0' -+ -+ -+# Some tools Automake needs. -+ -+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} -+ -+ -+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} -+ -+ -+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} -+ -+ -+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} -+ -+ -+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} -+ -+install_sh=${install_sh-"$am_aux_dir/install-sh"} -+ -+# Installed binaries are usually stripped using `strip' when the user -+# run `make install-strip'. However `strip' might not be the right -+# tool to use in cross-compilation environments, therefore Automake -+# will honor the `STRIP' environment variable to overrule this program. -+if test "$cross_compiling" != no; then -+ if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -+set dummy ${ac_tool_prefix}strip; 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="${ac_tool_prefix}strip" -+ 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 -+ -+fi -+if test -z "$ac_cv_prog_STRIP"; then -+ ac_ct_STRIP=$STRIP -+ # Extract the first word of "strip", so it can be a program name with args. -+set dummy strip; 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_STRIP+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_STRIP"; then -+ ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip" -+ 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_STRIP" && ac_cv_prog_ac_ct_STRIP=":" -+fi -+fi -+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -+if test -n "$ac_ct_STRIP"; then -+ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -+echo "${ECHO_T}$ac_ct_STRIP" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ STRIP=$ac_ct_STRIP -+else -+ STRIP="$ac_cv_prog_STRIP" -+fi -+ -+fi -+INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" -+ -+# We need awk for the "check" target. The system "awk" is bad on -+# some platforms. -+# Always define AMTAR for backward compatibility. -+ -+AMTAR=${AMTAR-"${am_missing_run}tar"} -+ -+am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' -+ -+ -+ -+ -+ -+ -+# FIXME: We temporarily define our own version of AC_PROG_CC. This is -+# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We -+# are probably using a cross compiler, which will not be able to fully -+# link an executable. This should really be fixed in autoconf -+# itself. -+ -+ -+ -+ -+ -+ -+ -+# Extract the first word of "gcc", so it can be a program name with args. -+set dummy gcc; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # 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="gcc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ -+depcc="$CC" am_compiler_list= -+ -+echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -+echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 -+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then -+ # We make a subdir and do the tests there. Otherwise we can end up -+ # making bogus files that we don't know about and never remove. For -+ # instance it was reported that on HP-UX the gcc test will end up -+ # making a dummy file named `D' -- because `-MD' means `put the output -+ # in D'. -+ mkdir conftest.dir -+ # Copy depcomp to subdir because otherwise we won't find it if we're -+ # using a relative directory. -+ cp "$am_depcomp" conftest.dir -+ cd conftest.dir -+ # We will build objects and dependencies in a subdirectory because -+ # it helps to detect inapplicable dependency modes. For instance -+ # both Tru64's cc and ICC support -MD to output dependencies as a -+ # side effect of compilation, but ICC will put the dependencies in -+ # the current directory while Tru64 will put them in the object -+ # directory. -+ mkdir sub -+ -+ am_cv_CC_dependencies_compiler_type=none -+ if test "$am_compiler_list" = ""; then -+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` -+ fi -+ for depmode in $am_compiler_list; do -+ # Setup a source with many dependencies, because some compilers -+ # like to wrap large dependency lists on column 80 (with \), and -+ # we should not choose a depcomp mode which is confused by this. -+ # -+ # We need to recreate these files for each test, as the compiler may -+ # overwrite some of them when testing with obscure command lines. -+ # This happens at least with the AIX C compiler. -+ : > sub/conftest.c -+ for i in 1 2 3 4 5 6; do -+ echo '#include "conftst'$i'.h"' >> sub/conftest.c -+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with -+ # Solaris 8's {/usr,}/bin/sh. -+ touch sub/conftst$i.h -+ done -+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf -+ -+ case $depmode in -+ nosideeffect) -+ # after this tag, mechanisms are not by side-effect, so they'll -+ # only be used when explicitly requested -+ if test "x$enable_dependency_tracking" = xyes; then -+ continue -+ else -+ break -+ fi -+ ;; -+ none) break ;; -+ esac -+ # We check with `-c' and `-o' for the sake of the "dashmstdout" -+ # mode. It turns out that the SunPro C++ compiler does not properly -+ # handle `-M -o', and we need to detect this. -+ if depmode=$depmode \ -+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ -+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ -+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ -+ >/dev/null 2>conftest.err && -+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && -+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && -+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then -+ # icc doesn't choke on unknown options, it will just issue warnings -+ # or remarks (even with -Werror). So we grep stderr for any message -+ # that says an option was ignored or not supported. -+ # When given -MP, icc 7.0 and 7.1 complain thusly: -+ # icc: Command line warning: ignoring option '-M'; no argument required -+ # The diagnosis changed in icc 8.0: -+ # icc: Command line remark: option '-MP' not supported -+ if (grep 'ignoring option' conftest.err || -+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else -+ am_cv_CC_dependencies_compiler_type=$depmode -+ break -+ fi -+ fi -+ done -+ -+ cd .. -+ rm -rf conftest.dir -+else -+ am_cv_CC_dependencies_compiler_type=none -+fi -+ -+fi -+echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -+echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 -+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type -+ -+ -+ -+if -+ test "x$enable_dependency_tracking" != xno \ -+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then -+ am__fastdepCC_TRUE= -+ am__fastdepCC_FALSE='#' -+else -+ am__fastdepCC_TRUE='#' -+ am__fastdepCC_FALSE= -+fi -+ -+ -+if test -z "$CC"; then -+ # Extract the first word of "cc", so it can be a program name with args. -+set dummy cc; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$CC"; then -+ ac_cv_prog_CC="$CC" # Let the user override the test. -+else -+ ac_prog_rejected=no -+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 -+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then -+ ac_prog_rejected=yes -+ continue -+ fi -+ ac_cv_prog_CC="cc" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+if test $ac_prog_rejected = yes; then -+ # We found a bogon in the path, so make sure we never use it. -+ set dummy $ac_cv_prog_CC -+ shift -+ if test $# != 0; then -+ # We chose a different compiler from the bogus one. -+ # However, it has the same basename, so the bogon will be chosen -+ # first if we set CC to just the basename; use the full file name. -+ shift -+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" -+ fi -+fi -+fi -+fi -+CC=$ac_cv_prog_CC -+if test -n "$CC"; then -+ echo "$as_me:$LINENO: result: $CC" >&5 -+echo "${ECHO_T}$CC" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 -+echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ -+echo "$as_me:$LINENO: checking whether we are using GNU C" >&5 -+echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6 -+if test "${ac_cv_c_compiler_gnu+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat > conftest.c <&5 -+ (eval $ac_try) 2>&5 -+ ac_status=$? -+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 -+ (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then -+ ac_cv_c_compiler_gnu=yes -+else -+ ac_cv_c_compiler_gnu=no -+fi -+fi -+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -+ -+if test $ac_cv_c_compiler_gnu = yes; then -+ GCC=yes -+ ac_test_CFLAGS="${CFLAGS+set}" -+ ac_save_CFLAGS="$CFLAGS" -+ CFLAGS= -+ ac_test_CFLAGS=${CFLAGS+set} -+ac_save_CFLAGS=$CFLAGS -+CFLAGS="-g" -+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -+if test "${ac_cv_prog_cc_g+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ cat >conftest.$ac_ext <<_ACEOF -+/* confdefs.h. */ -+_ACEOF -+cat confdefs.h >>conftest.$ac_ext -+cat >>conftest.$ac_ext <<_ACEOF -+/* end confdefs.h. */ -+ -+int -+main () -+{ -+ -+ ; -+ 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_c_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_cc_g=yes -+else -+ echo "$as_me: failed program was:" >&5 -+sed 's/^/| /' conftest.$ac_ext >&5 -+ -+ac_cv_prog_cc_g=no -+fi -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -+fi -+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -+if test "$ac_test_CFLAGS" = set; then -+ CFLAGS=$ac_save_CFLAGS -+elif test $ac_cv_prog_cc_g = yes; then -+ if test "$GCC" = yes; then -+ CFLAGS="-g -O2" -+ else -+ CFLAGS="-g" -+ fi -+else -+ if test "$GCC" = yes; then -+ CFLAGS="-O2" -+ else -+ CFLAGS= -+ fi -+fi -+ if test "$ac_test_CFLAGS" = set; then -+ CFLAGS="$ac_save_CFLAGS" -+ elif test $ac_cv_prog_cc_g = yes; then -+ CFLAGS="-g -O2" -+ else -+ CFLAGS="-O2" -+ fi -+else -+ GCC= -+ test "${CFLAGS+set}" = set || CFLAGS="-g" -+fi -+ -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -+set dummy ${ac_tool_prefix}as; 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="${ac_tool_prefix}as" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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 -+if test -z "$ac_cv_prog_AS"; then -+ ac_ct_AS=$AS -+ # Extract the first word of "as", so it can be a program name with args. -+set dummy as; 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_AS+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_AS"; then -+ ac_cv_prog_ac_ct_AS="$ac_ct_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_ac_ct_AS="as" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_AS=$ac_cv_prog_ac_ct_AS -+if test -n "$ac_ct_AS"; then -+ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 -+echo "${ECHO_T}$ac_ct_AS" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ AS=$ac_ct_AS -+else -+ AS="$ac_cv_prog_AS" -+fi -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -+set dummy ${ac_tool_prefix}ar; 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="${ac_tool_prefix}ar" -+ 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 -+if test -z "$ac_cv_prog_AR"; then -+ ac_ct_AR=$AR -+ # Extract the first word of "ar", so it can be a program name with args. -+set dummy ar; 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_AR+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_AR"; then -+ ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="ar" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+ac_ct_AR=$ac_cv_prog_ac_ct_AR -+if test -n "$ac_ct_AR"; then -+ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -+echo "${ECHO_T}$ac_ct_AR" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ AR=$ac_ct_AR -+else -+ AR="$ac_cv_prog_AR" -+fi -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -+set dummy ${ac_tool_prefix}ranlib; 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+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ 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 -+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="${ac_tool_prefix}ranlib" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+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 -+if test -z "$ac_cv_prog_RANLIB"; then -+ ac_ct_RANLIB=$RANLIB -+ # Extract the first word of "ranlib", so it can be a program name with args. -+set dummy ranlib; 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_RANLIB+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_RANLIB"; then -+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib" -+ 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_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" -+fi -+fi -+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -+if test -n "$ac_ct_RANLIB"; then -+ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -+echo "${ECHO_T}$ac_ct_RANLIB" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ RANLIB=$ac_ct_RANLIB -+else -+ RANLIB="$ac_cv_prog_RANLIB" -+fi -+ -+if test -n "$ac_tool_prefix"; then -+ # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args. -+set dummy ${ac_tool_prefix}readelf; 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_READELF+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$READELF"; then -+ ac_cv_prog_READELF="$READELF" # 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_READELF="${ac_tool_prefix}readelf" -+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 -+ break 2 -+ fi -+done -+done -+ -+fi -+fi -+READELF=$ac_cv_prog_READELF -+if test -n "$READELF"; then -+ echo "$as_me:$LINENO: result: $READELF" >&5 -+echo "${ECHO_T}$READELF" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+fi -+if test -z "$ac_cv_prog_READELF"; then -+ ac_ct_READELF=$READELF -+ # Extract the first word of "readelf", so it can be a program name with args. -+set dummy readelf; 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_READELF+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ if test -n "$ac_ct_READELF"; then -+ ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # 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_READELF="readelf" -+ 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_READELF" && ac_cv_prog_ac_ct_READELF=":" -+fi -+fi -+ac_ct_READELF=$ac_cv_prog_ac_ct_READELF -+if test -n "$ac_ct_READELF"; then -+ echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5 -+echo "${ECHO_T}$ac_ct_READELF" >&6 -+else -+ echo "$as_me:$LINENO: result: no" >&5 -+echo "${ECHO_T}no" >&6 -+fi -+ -+ READELF=$ac_ct_READELF -+else -+ READELF="$ac_cv_prog_READELF" -+fi -+ -+ -+# Find a good install program. We prefer a C program (faster), -+# so one script is as good as another. But avoid the broken or -+# incompatible versions: -+# SysV /etc/install, /usr/sbin/install -+# SunOS /usr/etc/install -+# IRIX /sbin/install -+# AIX /bin/install -+# AmigaOS /C/install, which installs bootblocks on floppy discs -+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -+# AFS /usr/afsws/bin/install, which mishandles nonexistent args -+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -+# OS/2's system install, which has a completely different semantic -+# ./install, which can be erroneously created by make from ./install.sh. -+echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -+if test -z "$INSTALL"; then -+if test "${ac_cv_path_install+set}" = set; then -+ echo $ECHO_N "(cached) $ECHO_C" >&6 -+else -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ # Account for people who put trailing slashes in PATH elements. -+case $as_dir/ in -+ ./ | .// | /cC/* | \ -+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ -+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ -+ /usr/ucb/* ) ;; -+ *) -+ # OSF1 and SCO ODT 3.0 have their own names for install. -+ # Don't use installbsd from OSF since it installs stuff as root -+ # by default. -+ for ac_prog in ginstall scoinst install; do -+ for ac_exec_ext in '' $ac_executable_extensions; do -+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then -+ if test $ac_prog = install && -+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then -+ # AIX install. It has an incompatible calling convention. -+ : -+ elif test $ac_prog = install && -+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then -+ # program-specific install script used by HP pwplus--don't use. -+ : -+ else -+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" -+ break 3 -+ fi -+ fi -+ done -+ done -+ ;; -+esac -+done -+ -+ -+fi -+ if test "${ac_cv_path_install+set}" = set; then -+ INSTALL=$ac_cv_path_install -+ else -+ # As a last resort, use the slow shell script. We don't cache a -+ # path for INSTALL within a source directory, because that will -+ # break other packages using the cache if that directory is -+ # removed, or if the path is relative. -+ INSTALL=$ac_install_sh -+ fi -+fi -+echo "$as_me:$LINENO: result: $INSTALL" >&5 -+echo "${ECHO_T}$INSTALL" >&6 -+ -+# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -+# It thinks the first close brace ends the variable substitution. -+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' -+ -+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' -+ -+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -+ -+ -+# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */ -+ac_given_INSTALL=$INSTALL -+ -+echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 -+echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 -+ # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -+if test "${enable_maintainer_mode+set}" = set; then -+ enableval="$enable_maintainer_mode" -+ USE_MAINTAINER_MODE=$enableval -+else -+ USE_MAINTAINER_MODE=no -+fi; -+ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 -+echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 -+ -+ -+if test $USE_MAINTAINER_MODE = yes; then -+ MAINTAINER_MODE_TRUE= -+ MAINTAINER_MODE_FALSE='#' -+else -+ MAINTAINER_MODE_TRUE='#' -+ MAINTAINER_MODE_FALSE= -+fi -+ -+ MAINT=$MAINTAINER_MODE_TRUE -+ -+ -+# By default we simply use the C compiler to build assembly code. -+ -+test "${CCAS+set}" = set || CCAS=$CC -+test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS -+ -+ -+ -+ -+# We need AC_EXEEXT to keep automake happy in cygnus mode. However, -+# at least currently, we never actually build a program, so we never -+# need to use $(EXEEXT). Moreover, the test for EXEEXT normally -+# fails, because we are probably configuring with a cross compiler -+# which can't create executables. So we include AC_EXEEXT to keep -+# automake happy, but we don't execute it, since we don't care about -+# the result. -+if false; then -+ -+ dummy_var=1 -+fi -+ -+. ${newlib_basedir}/configure.host -+ -+newlib_cflags="${newlib_cflags} -fno-builtin" -+ -+NEWLIB_CFLAGS=${newlib_cflags} -+ -+ -+LDFLAGS=${ldflags} -+ -+ -+ -+ -+if test x${newlib_elix_level} = x0; then -+ ELIX_LEVEL_0_TRUE= -+ ELIX_LEVEL_0_FALSE='#' -+else -+ ELIX_LEVEL_0_TRUE='#' -+ ELIX_LEVEL_0_FALSE= -+fi -+ -+ -+ -+if test x${newlib_elix_level} = x1; then -+ ELIX_LEVEL_1_TRUE= -+ ELIX_LEVEL_1_FALSE='#' -+else -+ ELIX_LEVEL_1_TRUE='#' -+ ELIX_LEVEL_1_FALSE= -+fi -+ -+ -+ -+if test x${newlib_elix_level} = x2; then -+ ELIX_LEVEL_2_TRUE= -+ ELIX_LEVEL_2_FALSE='#' -+else -+ ELIX_LEVEL_2_TRUE='#' -+ ELIX_LEVEL_2_FALSE= -+fi -+ -+ -+ -+if test x${newlib_elix_level} = x3; then -+ ELIX_LEVEL_3_TRUE= -+ ELIX_LEVEL_3_FALSE='#' -+else -+ ELIX_LEVEL_3_TRUE='#' -+ ELIX_LEVEL_3_FALSE= -+fi -+ -+ -+ -+if test x${newlib_elix_level} = x4; then -+ ELIX_LEVEL_4_TRUE= -+ ELIX_LEVEL_4_FALSE='#' -+else -+ ELIX_LEVEL_4_TRUE='#' -+ ELIX_LEVEL_4_FALSE= -+fi -+ -+ -+ -+ -+if test x${use_libtool} = xyes; then -+ USE_LIBTOOL_TRUE= -+ USE_LIBTOOL_FALSE='#' -+else -+ USE_LIBTOOL_TRUE='#' -+ USE_LIBTOOL_FALSE= -+fi -+ -+ -+# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we -+# use oext, which is set in configure.host based on the target platform. -+OBJEXT=${oext} -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ ac_config_files="$ac_config_files Makefile" -+ -+cat >confcache <<\_ACEOF -+# This file is a shell script that caches the results of configure -+# tests run on this system so they can be shared between configure -+# scripts and configure runs, see configure's option --config-cache. -+# It is not useful on other systems. If it contains results you don't -+# want to keep, you may remove or edit it. -+# -+# config.status only pays attention to the cache file if you give it -+# the --recheck option to rerun configure. -+# -+# `ac_cv_env_foo' variables (set or unset) will be overridden when -+# loading this file, other *unset* `ac_cv_foo' will be assigned the -+# following values. -+ -+_ACEOF -+ -+# The following way of writing the cache mishandles newlines in values, -+# but we know of no workaround that is simple, portable, and efficient. -+# So, don't put newlines in cache variables' values. -+# Ultrix sh set writes to stderr and can't be redirected directly, -+# and sets the high bit in the cache file unless we assign to the vars. -+{ -+ (set) 2>&1 | -+ case `(ac_space=' '; set | grep ac_space) 2>&1` in -+ *ac_space=\ *) -+ # `set' does not quote correctly, so add quotes (double-quote -+ # substitution turns \\\\ into \\, and sed turns \\ into \). -+ sed -n \ -+ "s/'/'\\\\''/g; -+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" -+ ;; -+ *) -+ # `set' quotes correctly as required by POSIX, so do not add quotes. -+ sed -n \ -+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" -+ ;; -+ esac; -+} | -+ sed ' -+ t clear -+ : clear -+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ -+ t end -+ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ -+ : end' >>confcache -+if diff $cache_file confcache >/dev/null 2>&1; then :; else -+ if test -w $cache_file; then -+ test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" -+ cat confcache >$cache_file -+ else -+ echo "not updating unwritable cache $cache_file" -+ fi -+fi -+rm -f confcache -+ -+test "x$prefix" = xNONE && prefix=$ac_default_prefix -+# Let make expand exec_prefix. -+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -+ -+# VPATH may cause trouble with some makes, so we remove $(srcdir), -+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -+# trailing colons and then remove the whole line if VPATH becomes empty -+# (actually we leave an empty line to preserve line numbers). -+if test "x$srcdir" = x.; then -+ ac_vpsub='/^[ ]*VPATH[ ]*=/{ -+s/:*\$(srcdir):*/:/; -+s/:*\${srcdir}:*/:/; -+s/:*@srcdir@:*/:/; -+s/^\([^=]*=[ ]*\):*/\1/; -+s/:*$//; -+s/^[^=]*=[ ]*$//; -+}' -+fi -+ -+# Transform confdefs.h into DEFS. -+# Protect against shell expansion while executing Makefile rules. -+# Protect against Makefile macro expansion. -+# -+# If the first sed substitution is executed (which looks for macros that -+# take arguments), then we branch to the quote section. Otherwise, -+# look for a macro that doesn't take arguments. -+cat >confdef2opt.sed <<\_ACEOF -+t clear -+: clear -+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g -+t quote -+s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g -+t quote -+d -+: quote -+s,[ `~#$^&*(){}\\|;'"<>?],\\&,g -+s,\[,\\&,g -+s,\],\\&,g -+s,\$,$$,g -+p -+_ACEOF -+# We use echo to avoid assuming a particular line-breaking character. -+# The extra dot is to prevent the shell from consuming trailing -+# line-breaks from the sub-command output. A line-break within -+# single-quotes doesn't work because, if this script is created in a -+# platform that uses two characters for line-breaks (e.g., DOS), tr -+# would break. -+ac_LF_and_DOT=`echo; echo .` -+DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` -+rm -f confdef2opt.sed -+ -+ -+ac_libobjs= -+ac_ltlibobjs= -+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue -+ # 1. Remove the extension, and $U if already installed. -+ ac_i=`echo "$ac_i" | -+ sed 's/\$U\././;s/\.o$//;s/\.obj$//'` -+ # 2. Add them. -+ ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" -+ ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' -+done -+LIBOBJS=$ac_libobjs -+ -+LTLIBOBJS=$ac_ltlibobjs -+ -+ -+if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"AMDEP\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then -+ { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined. -+Usually this means the macro was only invoked conditionally." >&5 -+echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined. -+Usually this means the macro was only invoked conditionally." >&2;} -+ { (exit 1); exit 1; }; } -+fi -+ -+: ${CONFIG_STATUS=./config.status} -+ac_clean_files_save=$ac_clean_files -+ac_clean_files="$ac_clean_files $CONFIG_STATUS" -+{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -+echo "$as_me: creating $CONFIG_STATUS" >&6;} -+cat >$CONFIG_STATUS <<_ACEOF -+#! $SHELL -+# Generated by $as_me. -+# Run this file to recreate the current configuration. -+# Compiler output produced by configure, useful for debugging -+# configure, is in config.log if it exists. -+ -+debug=false -+ac_cs_recheck=false -+ac_cs_silent=false -+SHELL=\${CONFIG_SHELL-$SHELL} -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+## --------------------- ## -+## M4sh Initialization. ## -+## --------------------- ## -+ -+# Be Bourne compatible -+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then -+ emulate sh -+ NULLCMD=: -+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which -+ # is contrary to our usage. Disable this feature. -+ alias -g '${1+"$@"}'='"$@"' -+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then -+ set -o posix -+fi -+DUALCASE=1; export DUALCASE # for MKS sh -+ -+# Support unset when possible. -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then -+ as_unset=unset -+else -+ as_unset=false -+fi -+ -+ -+# Work around bugs in pre-3.0 UWIN ksh. -+$as_unset ENV MAIL MAILPATH -+PS1='$ ' -+PS2='> ' -+PS4='+ ' -+ -+# NLS nuisances. -+for as_var in \ -+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ -+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ -+ LC_TELEPHONE LC_TIME -+do -+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then -+ eval $as_var=C; export $as_var -+ else -+ $as_unset $as_var -+ fi -+done -+ -+# Required to use basename. -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then -+ as_basename=basename -+else -+ as_basename=false -+fi -+ -+ -+# Name of the executable. -+as_me=`$as_basename "$0" || -+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ -+ X"$0" : 'X\(//\)$' \| \ -+ X"$0" : 'X\(/\)$' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X/"$0" | -+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } -+ /^X\/\(\/\/\)$/{ s//\1/; q; } -+ /^X\/\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ -+ -+# PATH needs CR, and LINENO needs CR and PATH. -+# Avoid depending upon Character Ranges. -+as_cr_letters='abcdefghijklmnopqrstuvwxyz' -+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -+as_cr_Letters=$as_cr_letters$as_cr_LETTERS -+as_cr_digits='0123456789' -+as_cr_alnum=$as_cr_Letters$as_cr_digits -+ -+# 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 -+ -+ -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" || { -+ # Find who we are. Look in the path if we contain no path at all -+ # relative or not. -+ case $0 in -+ *[\\/]* ) as_myself=$0 ;; -+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in $PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -+done -+ -+ ;; -+ esac -+ # We did not find ourselves, most probably we were run as `sh COMMAND' -+ # in which case we are not to be found in the path. -+ if test "x$as_myself" = x; then -+ as_myself=$0 -+ fi -+ if test ! -f "$as_myself"; then -+ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 -+echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} -+ { (exit 1); exit 1; }; } -+ fi -+ case $CONFIG_SHELL in -+ '') -+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -+do -+ IFS=$as_save_IFS -+ test -z "$as_dir" && as_dir=. -+ for as_base in sh bash ksh sh5; do -+ case $as_dir in -+ /*) -+ if ("$as_dir/$as_base" -c ' -+ as_lineno_1=$LINENO -+ as_lineno_2=$LINENO -+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` -+ test "x$as_lineno_1" != "x$as_lineno_2" && -+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then -+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } -+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } -+ CONFIG_SHELL=$as_dir/$as_base -+ export CONFIG_SHELL -+ exec "$CONFIG_SHELL" "$0" ${1+"$@"} -+ fi;; -+ esac -+ done -+done -+;; -+ esac -+ -+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO -+ # uniformly replaced by the line number. The first 'sed' inserts a -+ # line-number line before each line; the second 'sed' does the real -+ # work. The second script uses 'N' to pair each line-number line -+ # with the numbered line, and appends trailing '-' during -+ # substitution so that $LINENO is not a special case at line end. -+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the -+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) -+ sed '=' <$as_myself | -+ sed ' -+ N -+ s,$,-, -+ : loop -+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, -+ t loop -+ s,-$,, -+ s,^['$as_cr_digits']*\n,, -+ ' >$as_me.lineno && -+ chmod +x $as_me.lineno || -+ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 -+echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} -+ { (exit 1); exit 1; }; } -+ -+ # Don't try to exec as it changes $[0], causing all sort of problems -+ # (the dirname of $[0] is not the place where we might find the -+ # original and so on. Autoconf is especially sensible to this). -+ . ./$as_me.lineno -+ # Exit status is that of the last command. -+ exit -+} -+ -+ -+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in -+ *c*,-n*) ECHO_N= ECHO_C=' -+' ECHO_T=' ' ;; -+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; -+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -+esac -+ -+if expr a : '\(a\)' >/dev/null 2>&1; then -+ as_expr=expr -+else -+ as_expr=false -+fi -+ -+rm -f conf$$ conf$$.exe conf$$.file -+echo >conf$$.file -+if ln -s conf$$.file conf$$ 2>/dev/null; then -+ # We could just check for DJGPP; but this test a) works b) is more generic -+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). -+ if test -f conf$$.exe; then -+ # Don't use ln at all; we don't have any links -+ as_ln_s='cp -p' -+ else -+ as_ln_s='ln -s' -+ fi -+elif ln conf$$.file conf$$ 2>/dev/null; then -+ as_ln_s=ln -+else -+ as_ln_s='cp -p' -+fi -+rm -f conf$$ conf$$.exe conf$$.file -+ -+if mkdir -p . 2>/dev/null; then -+ as_mkdir_p=: -+else -+ test -d ./-p && rmdir ./-p -+ as_mkdir_p=false -+fi -+ -+as_executable_p="test -f" -+ -+# Sed expression to map a string onto a valid CPP name. -+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" -+ -+# Sed expression to map a string onto a valid variable name. -+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" -+ -+ -+# IFS -+# We need space, tab and new line, in precisely that order. -+as_nl=' -+' -+IFS=" $as_nl" -+ -+# CDPATH. -+$as_unset CDPATH -+ -+exec 6>&1 -+ -+# Open the log real soon, to keep \$[0] and so on meaningful, and to -+# report actual input values of CONFIG_FILES etc. instead of their -+# values after options handling. Logging --version etc. is OK. -+exec 5>>config.log -+{ -+ echo -+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -+## Running $as_me. ## -+_ASBOX -+} >&5 -+cat >&5 <<_CSEOF -+ -+This file was extended by newlib $as_me 1.15.0, which was -+generated by GNU Autoconf 2.59. Invocation command line was -+ -+ CONFIG_FILES = $CONFIG_FILES -+ CONFIG_HEADERS = $CONFIG_HEADERS -+ CONFIG_LINKS = $CONFIG_LINKS -+ CONFIG_COMMANDS = $CONFIG_COMMANDS -+ $ $0 $@ -+ -+_CSEOF -+echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 -+echo >&5 -+_ACEOF -+ -+# Files that config.status was made for. -+if test -n "$ac_config_files"; then -+ echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -+fi -+ -+if test -n "$ac_config_headers"; then -+ echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -+fi -+ -+if test -n "$ac_config_links"; then -+ echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -+fi -+ -+if test -n "$ac_config_commands"; then -+ echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -+fi -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -+ac_cs_usage="\ -+\`$as_me' instantiates files from templates according to the -+current configuration. -+ -+Usage: $0 [OPTIONS] [FILE]... -+ -+ -h, --help print this help, then exit -+ -V, --version print version number, then exit -+ -q, --quiet do not print progress messages -+ -d, --debug don't remove temporary files -+ --recheck update $as_me by reconfiguring in the same conditions -+ --file=FILE[:TEMPLATE] -+ instantiate the configuration file FILE -+ -+Configuration files: -+$config_files -+ -+Configuration commands: -+$config_commands -+ -+Report bugs to ." -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<_ACEOF -+ac_cs_version="\\ -+newlib config.status 1.15.0 -+configured by $0, generated by GNU Autoconf 2.59, -+ with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" -+ -+Copyright (C) 2003 Free Software Foundation, Inc. -+This config.status script is free software; the Free Software Foundation -+gives unlimited permission to copy, distribute and modify it." -+srcdir=$srcdir -+INSTALL="$INSTALL" -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+# If no file are specified by the user, then we need to provide default -+# value. By we need to know if files were specified by the user. -+ac_need_defaults=: -+while test $# != 0 -+do -+ case $1 in -+ --*=*) -+ ac_option=`expr "x$1" : 'x\([^=]*\)='` -+ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` -+ ac_shift=: -+ ;; -+ -*) -+ ac_option=$1 -+ ac_optarg=$2 -+ ac_shift=shift -+ ;; -+ *) # This is not an option, so the user has probably given explicit -+ # arguments. -+ ac_option=$1 -+ ac_need_defaults=false;; -+ esac -+ -+ case $ac_option in -+ # Handling of the options. -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) -+ ac_cs_recheck=: ;; -+ --version | --vers* | -V ) -+ echo "$ac_cs_version"; exit 0 ;; -+ --he | --h) -+ # Conflict between --help and --header -+ { { echo "$as_me:$LINENO: error: ambiguous option: $1 -+Try \`$0 --help' for more information." >&5 -+echo "$as_me: error: ambiguous option: $1 -+Try \`$0 --help' for more information." >&2;} -+ { (exit 1); exit 1; }; };; -+ --help | --hel | -h ) -+ echo "$ac_cs_usage"; exit 0 ;; -+ --debug | --d* | -d ) -+ debug=: ;; -+ --file | --fil | --fi | --f ) -+ $ac_shift -+ CONFIG_FILES="$CONFIG_FILES $ac_optarg" -+ ac_need_defaults=false;; -+ --header | --heade | --head | --hea ) -+ $ac_shift -+ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" -+ ac_need_defaults=false;; -+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ -+ | -silent | --silent | --silen | --sile | --sil | --si | --s) -+ ac_cs_silent=: ;; -+ -+ # This is an error. -+ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 -+Try \`$0 --help' for more information." >&5 -+echo "$as_me: error: unrecognized option: $1 -+Try \`$0 --help' for more information." >&2;} -+ { (exit 1); exit 1; }; } ;; -+ -+ *) ac_config_targets="$ac_config_targets $1" ;; -+ -+ esac -+ shift -+done -+ -+ac_configure_extra_args= -+ -+if $ac_cs_silent; then -+ exec 6>/dev/null -+ ac_configure_extra_args="$ac_configure_extra_args --silent" -+fi -+ -+_ACEOF -+cat >>$CONFIG_STATUS <<_ACEOF -+if \$ac_cs_recheck; then -+ echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 -+ exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -+fi -+ -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<_ACEOF -+# -+# INIT-COMMANDS section. -+# -+ -+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" -+ -+_ACEOF -+ -+ -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+for ac_config_target in $ac_config_targets -+do -+ case "$ac_config_target" in -+ # Handling of arguments. -+ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; -+ "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; -+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -+echo "$as_me: error: invalid argument: $ac_config_target" >&2;} -+ { (exit 1); exit 1; }; };; -+ esac -+done -+ -+# If the user did not use the arguments to specify the items to instantiate, -+# then the envvar interface is used. Set only those that are not. -+# We use the long form for the default assignment because of an extremely -+# bizarre bug on SunOS 4.1.3. -+if $ac_need_defaults; then -+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files -+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -+fi -+ -+# Have a temporary directory for convenience. Make it in the build tree -+# simply because there is no reason to put it here, and in addition, -+# creating and moving files from /tmp can sometimes cause problems. -+# Create a temporary directory, and hook for its removal unless debugging. -+$debug || -+{ -+ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 -+ trap '{ (exit 1); exit 1; }' 1 2 13 15 -+} -+ -+# Create a (secure) tmp directory for tmp files. -+ -+{ -+ tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && -+ test -n "$tmp" && test -d "$tmp" -+} || -+{ -+ tmp=./confstat$$-$RANDOM -+ (umask 077 && mkdir $tmp) -+} || -+{ -+ echo "$me: cannot create a temporary directory in ." >&2 -+ { (exit 1); exit 1; } -+} -+ -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<_ACEOF -+ -+# -+# CONFIG_FILES section. -+# -+ -+# No need to generate the scripts if there are no CONFIG_FILES. -+# This happens for instance when ./config.status config.h -+if test -n "\$CONFIG_FILES"; then -+ # Protect against being on the right side of a sed subst in config.status. -+ sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; -+ s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF -+s,@SHELL@,$SHELL,;t t -+s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -+s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -+s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -+s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -+s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -+s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -+s,@exec_prefix@,$exec_prefix,;t t -+s,@prefix@,$prefix,;t t -+s,@program_transform_name@,$program_transform_name,;t t -+s,@bindir@,$bindir,;t t -+s,@sbindir@,$sbindir,;t t -+s,@libexecdir@,$libexecdir,;t t -+s,@datadir@,$datadir,;t t -+s,@sysconfdir@,$sysconfdir,;t t -+s,@sharedstatedir@,$sharedstatedir,;t t -+s,@localstatedir@,$localstatedir,;t t -+s,@libdir@,$libdir,;t t -+s,@includedir@,$includedir,;t t -+s,@oldincludedir@,$oldincludedir,;t t -+s,@infodir@,$infodir,;t t -+s,@mandir@,$mandir,;t t -+s,@build_alias@,$build_alias,;t t -+s,@host_alias@,$host_alias,;t t -+s,@target_alias@,$target_alias,;t t -+s,@DEFS@,$DEFS,;t t -+s,@ECHO_C@,$ECHO_C,;t t -+s,@ECHO_N@,$ECHO_N,;t t -+s,@ECHO_T@,$ECHO_T,;t t -+s,@LIBS@,$LIBS,;t t -+s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t -+s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t -+s,@newlib_basedir@,$newlib_basedir,;t t -+s,@build@,$build,;t t -+s,@build_cpu@,$build_cpu,;t t -+s,@build_vendor@,$build_vendor,;t t -+s,@build_os@,$build_os,;t t -+s,@host@,$host,;t t -+s,@host_cpu@,$host_cpu,;t t -+s,@host_vendor@,$host_vendor,;t t -+s,@host_os@,$host_os,;t t -+s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t -+s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t -+s,@INSTALL_DATA@,$INSTALL_DATA,;t t -+s,@CYGPATH_W@,$CYGPATH_W,;t t -+s,@PACKAGE@,$PACKAGE,;t t -+s,@VERSION@,$VERSION,;t t -+s,@ACLOCAL@,$ACLOCAL,;t t -+s,@AUTOCONF@,$AUTOCONF,;t t -+s,@AUTOMAKE@,$AUTOMAKE,;t t -+s,@AUTOHEADER@,$AUTOHEADER,;t t -+s,@MAKEINFO@,$MAKEINFO,;t t -+s,@install_sh@,$install_sh,;t t -+s,@STRIP@,$STRIP,;t t -+s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t -+s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t -+s,@mkdir_p@,$mkdir_p,;t t -+s,@AWK@,$AWK,;t t -+s,@SET_MAKE@,$SET_MAKE,;t t -+s,@am__leading_dot@,$am__leading_dot,;t t -+s,@AMTAR@,$AMTAR,;t t -+s,@am__tar@,$am__tar,;t t -+s,@am__untar@,$am__untar,;t t -+s,@CC@,$CC,;t t -+s,@DEPDIR@,$DEPDIR,;t t -+s,@am__include@,$am__include,;t t -+s,@am__quote@,$am__quote,;t t -+s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t -+s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t -+s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t -+s,@CCDEPMODE@,$CCDEPMODE,;t t -+s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t -+s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t -+s,@AS@,$AS,;t t -+s,@ac_ct_AS@,$ac_ct_AS,;t t -+s,@AR@,$AR,;t t -+s,@ac_ct_AR@,$ac_ct_AR,;t t -+s,@RANLIB@,$RANLIB,;t t -+s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t -+s,@READELF@,$READELF,;t t -+s,@ac_ct_READELF@,$ac_ct_READELF,;t t -+s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t -+s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t -+s,@MAINT@,$MAINT,;t t -+s,@CCAS@,$CCAS,;t t -+s,@CCASFLAGS@,$CCASFLAGS,;t t -+s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t -+s,@LDFLAGS@,$LDFLAGS,;t t -+s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t -+s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t -+s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t -+s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t -+s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t -+s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t -+s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t -+s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t -+s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t -+s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t -+s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t -+s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t -+s,@OBJEXT@,$OBJEXT,;t t -+s,@oext@,$oext,;t t -+s,@aext@,$aext,;t t -+s,@lpfx@,$lpfx,;t t -+s,@libm_machine_dir@,$libm_machine_dir,;t t -+s,@machine_dir@,$machine_dir,;t t -+s,@sys_dir@,$sys_dir,;t t -+s,@LIBOBJS@,$LIBOBJS,;t t -+s,@LTLIBOBJS@,$LTLIBOBJS,;t t -+CEOF -+ -+_ACEOF -+ -+ cat >>$CONFIG_STATUS <<\_ACEOF -+ # Split the substitutions into bite-sized pieces for seds with -+ # small command number limits, like on Digital OSF/1 and HP-UX. -+ ac_max_sed_lines=48 -+ ac_sed_frag=1 # Number of current file. -+ ac_beg=1 # First line for current file. -+ ac_end=$ac_max_sed_lines # Line after last line for current file. -+ ac_more_lines=: -+ ac_sed_cmds= -+ while $ac_more_lines; do -+ if test $ac_beg -gt 1; then -+ sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag -+ else -+ sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag -+ fi -+ if test ! -s $tmp/subs.frag; then -+ ac_more_lines=false -+ else -+ # The purpose of the label and of the branching condition is to -+ # speed up the sed processing (if there are no `@' at all, there -+ # is no need to browse any of the substitutions). -+ # These are the two extra sed commands mentioned above. -+ (echo ':t -+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed -+ if test -z "$ac_sed_cmds"; then -+ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" -+ else -+ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" -+ fi -+ ac_sed_frag=`expr $ac_sed_frag + 1` -+ ac_beg=$ac_end -+ ac_end=`expr $ac_end + $ac_max_sed_lines` -+ fi -+ done -+ if test -z "$ac_sed_cmds"; then -+ ac_sed_cmds=cat -+ fi -+fi # test -n "$CONFIG_FILES" -+ -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue -+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". -+ case $ac_file in -+ - | *:- | *:-:* ) # input from stdin -+ cat >$tmp/stdin -+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` -+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; -+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` -+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; -+ * ) ac_file_in=$ac_file.in ;; -+ esac -+ -+ # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. -+ ac_dir=`(dirname "$ac_file") 2>/dev/null || -+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$ac_file" : 'X\(//\)[^/]' \| \ -+ X"$ac_file" : 'X\(//\)$' \| \ -+ X"$ac_file" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$ac_file" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ { if $as_mkdir_p; then -+ mkdir -p "$ac_dir" -+ else -+ as_dir="$ac_dir" -+ as_dirs= -+ while test ! -d "$as_dir"; do -+ as_dirs="$as_dir $as_dirs" -+ as_dir=`(dirname "$as_dir") 2>/dev/null || -+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$as_dir" : 'X\(//\)[^/]' \| \ -+ X"$as_dir" : 'X\(//\)$' \| \ -+ X"$as_dir" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$as_dir" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ done -+ test ! -n "$as_dirs" || mkdir $as_dirs -+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} -+ { (exit 1); exit 1; }; }; } -+ -+ ac_builddir=. -+ -+if test "$ac_dir" != .; then -+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` -+ # A "../" for each directory in $ac_dir_suffix. -+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -+else -+ ac_dir_suffix= ac_top_builddir= -+fi -+ -+case $srcdir in -+ .) # No --srcdir option. We are building in place. -+ ac_srcdir=. -+ if test -z "$ac_top_builddir"; then -+ ac_top_srcdir=. -+ else -+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` -+ fi ;; -+ [\\/]* | ?:[\\/]* ) # Absolute path. -+ ac_srcdir=$srcdir$ac_dir_suffix; -+ ac_top_srcdir=$srcdir ;; -+ *) # Relative path. -+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix -+ ac_top_srcdir=$ac_top_builddir$srcdir ;; -+esac -+ -+# Do not use `cd foo && pwd` to compute absolute paths, because -+# the directories may not exist. -+case `pwd` in -+.) ac_abs_builddir="$ac_dir";; -+*) -+ case "$ac_dir" in -+ .) ac_abs_builddir=`pwd`;; -+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; -+ *) ac_abs_builddir=`pwd`/"$ac_dir";; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_builddir=${ac_top_builddir}.;; -+*) -+ case ${ac_top_builddir}. in -+ .) ac_abs_top_builddir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; -+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_srcdir=$ac_srcdir;; -+*) -+ case $ac_srcdir in -+ .) ac_abs_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; -+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_srcdir=$ac_top_srcdir;; -+*) -+ case $ac_top_srcdir in -+ .) ac_abs_top_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; -+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; -+ esac;; -+esac -+ -+ -+ case $INSTALL in -+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; -+ *) ac_INSTALL=$ac_top_builddir$INSTALL ;; -+ esac -+ -+ if test x"$ac_file" != x-; then -+ { echo "$as_me:$LINENO: creating $ac_file" >&5 -+echo "$as_me: creating $ac_file" >&6;} -+ rm -f "$ac_file" -+ fi -+ # Let's still pretend it is `configure' which instantiates (i.e., don't -+ # use $as_me), people would be surprised to read: -+ # /* config.h. Generated by config.status. */ -+ if test x"$ac_file" = x-; then -+ configure_input= -+ else -+ configure_input="$ac_file. " -+ fi -+ configure_input=$configure_input"Generated from `echo $ac_file_in | -+ sed 's,.*/,,'` by configure." -+ -+ # First look for the input files in the build tree, otherwise in the -+ # src tree. -+ ac_file_inputs=`IFS=: -+ for f in $ac_file_in; do -+ case $f in -+ -) echo $tmp/stdin ;; -+ [\\/$]*) -+ # Absolute (can't be DOS-style, as IFS=:) -+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -+echo "$as_me: error: cannot find input file: $f" >&2;} -+ { (exit 1); exit 1; }; } -+ echo "$f";; -+ *) # Relative -+ if test -f "$f"; then -+ # Build tree -+ echo "$f" -+ elif test -f "$srcdir/$f"; then -+ # Source tree -+ echo "$srcdir/$f" -+ else -+ # /dev/null tree -+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -+echo "$as_me: error: cannot find input file: $f" >&2;} -+ { (exit 1); exit 1; }; } -+ fi;; -+ esac -+ done` || { (exit 1); exit 1; } -+_ACEOF -+cat >>$CONFIG_STATUS <<_ACEOF -+ sed "$ac_vpsub -+$extrasub -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+:t -+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -+s,@configure_input@,$configure_input,;t t -+s,@srcdir@,$ac_srcdir,;t t -+s,@abs_srcdir@,$ac_abs_srcdir,;t t -+s,@top_srcdir@,$ac_top_srcdir,;t t -+s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t -+s,@builddir@,$ac_builddir,;t t -+s,@abs_builddir@,$ac_abs_builddir,;t t -+s,@top_builddir@,$ac_top_builddir,;t t -+s,@abs_top_builddir@,$ac_abs_top_builddir,;t t -+s,@INSTALL@,$ac_INSTALL,;t t -+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out -+ rm -f $tmp/stdin -+ if test x"$ac_file" != x-; then -+ mv $tmp/out $ac_file -+ else -+ cat $tmp/out -+ rm -f $tmp/out -+ fi -+ -+done -+_ACEOF -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -+# -+# CONFIG_COMMANDS section. -+# -+for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue -+ ac_dest=`echo "$ac_file" | sed 's,:.*,,'` -+ ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` -+ ac_dir=`(dirname "$ac_dest") 2>/dev/null || -+$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$ac_dest" : 'X\(//\)[^/]' \| \ -+ X"$ac_dest" : 'X\(//\)$' \| \ -+ X"$ac_dest" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$ac_dest" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ { if $as_mkdir_p; then -+ mkdir -p "$ac_dir" -+ else -+ as_dir="$ac_dir" -+ as_dirs= -+ while test ! -d "$as_dir"; do -+ as_dirs="$as_dir $as_dirs" -+ as_dir=`(dirname "$as_dir") 2>/dev/null || -+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$as_dir" : 'X\(//\)[^/]' \| \ -+ X"$as_dir" : 'X\(//\)$' \| \ -+ X"$as_dir" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$as_dir" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ done -+ test ! -n "$as_dirs" || mkdir $as_dirs -+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} -+ { (exit 1); exit 1; }; }; } -+ -+ ac_builddir=. -+ -+if test "$ac_dir" != .; then -+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` -+ # A "../" for each directory in $ac_dir_suffix. -+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -+else -+ ac_dir_suffix= ac_top_builddir= -+fi -+ -+case $srcdir in -+ .) # No --srcdir option. We are building in place. -+ ac_srcdir=. -+ if test -z "$ac_top_builddir"; then -+ ac_top_srcdir=. -+ else -+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` -+ fi ;; -+ [\\/]* | ?:[\\/]* ) # Absolute path. -+ ac_srcdir=$srcdir$ac_dir_suffix; -+ ac_top_srcdir=$srcdir ;; -+ *) # Relative path. -+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix -+ ac_top_srcdir=$ac_top_builddir$srcdir ;; -+esac -+ -+# Do not use `cd foo && pwd` to compute absolute paths, because -+# the directories may not exist. -+case `pwd` in -+.) ac_abs_builddir="$ac_dir";; -+*) -+ case "$ac_dir" in -+ .) ac_abs_builddir=`pwd`;; -+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; -+ *) ac_abs_builddir=`pwd`/"$ac_dir";; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_builddir=${ac_top_builddir}.;; -+*) -+ case ${ac_top_builddir}. in -+ .) ac_abs_top_builddir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; -+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_srcdir=$ac_srcdir;; -+*) -+ case $ac_srcdir in -+ .) ac_abs_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; -+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; -+ esac;; -+esac -+case $ac_abs_builddir in -+.) ac_abs_top_srcdir=$ac_top_srcdir;; -+*) -+ case $ac_top_srcdir in -+ .) ac_abs_top_srcdir=$ac_abs_builddir;; -+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; -+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; -+ esac;; -+esac -+ -+ -+ { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 -+echo "$as_me: executing $ac_dest commands" >&6;} -+ case $ac_dest in -+ depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do -+ # Strip MF so we end up with the name of the file. -+ mf=`echo "$mf" | sed -e 's/:.*$//'` -+ # Check whether this is an Automake generated Makefile or not. -+ # We used to match only the files named `Makefile.in', but -+ # some people rename them; so instead we look at the file content. -+ # Grep'ing the first line is not enough: some people post-process -+ # each Makefile.in and add a new line on top of each file to say so. -+ # So let's grep whole file. -+ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then -+ dirpart=`(dirname "$mf") 2>/dev/null || -+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$mf" : 'X\(//\)[^/]' \| \ -+ X"$mf" : 'X\(//\)$' \| \ -+ X"$mf" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$mf" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ else -+ continue -+ fi -+ # Extract the definition of DEPDIR, am__include, and am__quote -+ # from the Makefile without running `make'. -+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` -+ test -z "$DEPDIR" && continue -+ am__include=`sed -n 's/^am__include = //p' < "$mf"` -+ test -z "am__include" && continue -+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"` -+ # When using ansi2knr, U may be empty or an underscore; expand it -+ U=`sed -n 's/^U = //p' < "$mf"` -+ # Find all dependency output files, they are included files with -+ # $(DEPDIR) in their names. We invoke sed twice because it is the -+ # simplest approach to changing $(DEPDIR) to its actual value in the -+ # expansion. -+ for file in `sed -n " -+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ -+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do -+ # Make sure the directory exists. -+ test -f "$dirpart/$file" && continue -+ fdir=`(dirname "$file") 2>/dev/null || -+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$file" : 'X\(//\)[^/]' \| \ -+ X"$file" : 'X\(//\)$' \| \ -+ X"$file" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$file" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ { if $as_mkdir_p; then -+ mkdir -p $dirpart/$fdir -+ else -+ as_dir=$dirpart/$fdir -+ as_dirs= -+ while test ! -d "$as_dir"; do -+ as_dirs="$as_dir $as_dirs" -+ as_dir=`(dirname "$as_dir") 2>/dev/null || -+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ -+ X"$as_dir" : 'X\(//\)[^/]' \| \ -+ X"$as_dir" : 'X\(//\)$' \| \ -+ X"$as_dir" : 'X\(/\)' \| \ -+ . : '\(.\)' 2>/dev/null || -+echo X"$as_dir" | -+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } -+ /^X\(\/\/\)[^/].*/{ s//\1/; q; } -+ /^X\(\/\/\)$/{ s//\1/; q; } -+ /^X\(\/\).*/{ s//\1/; q; } -+ s/.*/./; q'` -+ done -+ test ! -n "$as_dirs" || mkdir $as_dirs -+ fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 -+echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} -+ { (exit 1); exit 1; }; }; } -+ -+ # echo "creating $dirpart/$file" -+ echo '# dummy' > "$dirpart/$file" -+ done -+done -+ ;; -+ esac -+done -+_ACEOF -+ -+cat >>$CONFIG_STATUS <<\_ACEOF -+ -+{ (exit 0); exit 0; } -+_ACEOF -+chmod +x $CONFIG_STATUS -+ac_clean_files=$ac_clean_files_save -+ -+ -+# configure is writing to config.log, and then calls config.status. -+# config.status does its own redirection, appending to config.log. -+# Unfortunately, on DOS this fails, as config.log is still kept open -+# by configure, so config.status won't be able to write to it; its -+# output is simply discarded. So we exec the FD to /dev/null, -+# effectively closing config.log, so it can be properly (re)opened and -+# appended to by config.status. When coming back to configure, we -+# need to make the FD available again. -+if test "$no_create" != yes; then -+ ac_cs_success=: -+ ac_config_status_args= -+ test "$silent" = yes && -+ ac_config_status_args="$ac_config_status_args --quiet" -+ exec 5>/dev/null -+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false -+ exec 5>>config.log -+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which -+ # would make configure fail if this is the last instruction. -+ $ac_cs_success || { (exit 1); exit 1; } -+fi -+ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/configure.in newlib-1.17.0-psp/newlib/libc/sys/psp/configure.in ---- newlib-1.17.0/newlib/libc/sys/psp/configure.in 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/configure.in 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,14 @@ -+dnl This is the newlib/libc/sys/sun4 configure.in file. -+dnl Process this file with autoconf to produce a configure script. -+ -+AC_PREREQ(2.59) -+AC_INIT([newlib],[NEWLIB_VERSION]) -+AC_CONFIG_SRCDIR([libcglue.c]) -+ -+dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. -+AC_CONFIG_AUX_DIR(../../../..) -+ -+NEWLIB_CONFIGURE(../../..) -+ -+AC_CONFIG_FILES(Makefile) -+AC_OUTPUT -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/crt0.c newlib-1.17.0-psp/newlib/libc/sys/psp/crt0.c ---- newlib-1.17.0/newlib/libc/sys/psp/crt0.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/crt0.c 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,3 @@ -+/* The real crt0.c lives in PSPSDK. */ -+ -+void _start() { } -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/fdman.c newlib-1.17.0-psp/newlib/libc/sys/psp/fdman.c ---- newlib-1.17.0/newlib/libc/sys/psp/fdman.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/fdman.c 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,115 @@ -+/* -+ * PSP Software Development Kit - http://www.pspdev.org -+ * ----------------------------------------------------------------------- -+ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. -+ * -+ * fdman.c - File descriptor management. -+ * -+ * Copyright (c) 2006 Rafael Cabezas -+ */ -+#include -+#include -+#include "fdman.h" -+ -+extern int pspDisableInterrupts(); -+extern void pspEnableInterrupts(int); -+ -+static __psp_descriptormap_type __psp_descriptor_data_pool[__PSP_FILENO_MAX]; -+__psp_descriptormap_type *__psp_descriptormap [__PSP_FILENO_MAX]; -+ -+void __psp_fdman_init() -+{ -+ int scefd; -+ -+ /* Initialize descriptor data*/ -+ memset(__psp_descriptor_data_pool, 0, sizeof(__psp_descriptormap_type) *__PSP_FILENO_MAX); -+ /* Initialize descriptor map*/ -+ memset(__psp_descriptormap, 0, sizeof(__psp_descriptormap_type*)*__PSP_FILENO_MAX); -+ -+ scefd = sceKernelStdin(); -+ if (scefd >= 0) { -+ __psp_descriptormap[0] = &__psp_descriptor_data_pool[0]; -+ __psp_descriptormap[0]->sce_descriptor = scefd; -+ __psp_descriptormap[0]->type = __PSP_DESCRIPTOR_TYPE_TTY; -+ } -+ scefd = sceKernelStdout(); -+ if (scefd >= 0) { -+ __psp_descriptormap[1] = &__psp_descriptor_data_pool[1]; -+ __psp_descriptormap[1]->sce_descriptor = scefd; -+ __psp_descriptormap[1]->type = __PSP_DESCRIPTOR_TYPE_TTY; -+ } -+ scefd = sceKernelStderr(); -+ if (scefd >= 0) { -+ __psp_descriptormap[2] = &__psp_descriptor_data_pool[2]; -+ __psp_descriptormap[2]->sce_descriptor = scefd; -+ __psp_descriptormap[2]->type = __PSP_DESCRIPTOR_TYPE_TTY; -+ } -+} -+ -+int __psp_fdman_get_new_descriptor() -+{ -+ int i = 0; -+ int inten; -+ -+ inten = pspDisableInterrupts(); /* lock here to make thread safe */ -+ for (i = 0; i < __PSP_FILENO_MAX; i++) { -+ if (__psp_descriptormap[i] == NULL) { -+ __psp_descriptormap[i] = &__psp_descriptor_data_pool[i]; -+ __psp_descriptormap[i]->ref_count++; -+ pspEnableInterrupts(inten); /* release lock */ -+ return i; -+ } -+ } -+ pspEnableInterrupts(inten); /* release lock */ -+ -+ errno = ENOMEM; -+ return -1; -+} -+ -+int __psp_fdman_get_dup_descriptor(int fd) -+{ -+ int i = 0; -+ int inten; -+ -+ if (!__PSP_IS_FD_VALID(fd)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ inten = pspDisableInterrupts(); /* lock here to make thread safe */ -+ for (i = 0; i < __PSP_FILENO_MAX; i++) { -+ if (__psp_descriptormap[i] == NULL) { -+ __psp_descriptormap[i] = &__psp_descriptor_data_pool[fd]; -+ __psp_descriptormap[i]->ref_count++; -+ pspEnableInterrupts(inten); /* release lock */ -+ return i; -+ } -+ } -+ pspEnableInterrupts(inten); /* release lock */ -+ -+ errno = ENOMEM; -+ return -1; -+} -+ -+void __psp_fdman_release_descriptor(int fd) -+{ -+ if (!__PSP_IS_FD_VALID(fd)) { -+ errno = EBADF; -+ return; -+ } -+ -+ __psp_descriptormap[fd]->ref_count--; -+ -+ if (__psp_descriptormap[fd]->ref_count == 0) { -+ -+ if (__psp_descriptormap[fd]->filename != NULL) { -+ free(__psp_descriptormap[fd]->filename); -+ } -+ __psp_descriptormap[fd]->filename = NULL; -+ __psp_descriptormap[fd]->sce_descriptor = 0; -+ __psp_descriptormap[fd]->type = 0; -+ __psp_descriptormap[fd]->flags = 0; -+ -+ } -+ __psp_descriptormap[fd] = NULL; -+} -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/fdman.h newlib-1.17.0-psp/newlib/libc/sys/psp/fdman.h ---- newlib-1.17.0/newlib/libc/sys/psp/fdman.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/fdman.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,44 @@ -+/* -+ * PSP Software Development Kit - http://www.pspdev.org -+ * ----------------------------------------------------------------------- -+ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. -+ * -+ * fdman.h - File descriptor management. -+ * -+ * Copyright (c) 2006 Rafael Cabezas -+ */ -+ -+#ifndef _FDMAN_H_ -+ #define _FDMAN_H_ -+ -+ #define __PSP_FILENO_MAX 1024 -+ -+ #define __PSP_IS_FD_VALID(FD) \ -+ ( (FD >= 0) && (FD < __PSP_FILENO_MAX) && (__psp_descriptormap[FD] != NULL) ) -+ -+ #define __PSP_IS_FD_OF_TYPE(FD, TYPE) \ -+ ( (__PSP_IS_FD_VALID(FD)) && (__psp_descriptormap[FD]->type == TYPE) ) -+ -+ typedef enum { -+ __PSP_DESCRIPTOR_TYPE_FILE , -+ __PSP_DESCRIPTOR_TYPE_PIPE , -+ __PSP_DESCRIPTOR_TYPE_SOCKET, -+ __PSP_DESCRIPTOR_TYPE_TTY -+ } __psp_fdman_fd_types; -+ -+ typedef struct { -+ char * filename; -+ u8 type; -+ u32 sce_descriptor; -+ u32 flags; -+ u32 ref_count; -+ } __psp_descriptormap_type; -+ -+ extern __psp_descriptormap_type *__psp_descriptormap[__PSP_FILENO_MAX]; -+ -+ void __psp_fdman_init(); -+ int __psp_fdman_get_new_descriptor(); -+ int __psp_fdman_get_dup_descriptor(int fd); -+ void __psp_fdman_release_descriptor(int fd); -+ -+#endif -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/include/netdb.h newlib-1.17.0-psp/newlib/libc/sys/psp/include/netdb.h ---- newlib-1.17.0/newlib/libc/sys/psp/include/netdb.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/include/netdb.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,36 @@ -+/* Simple gethostbyname and gethostbyaddr replacements, note not thread safe */ -+#ifndef __NETDB_H__ -+#define __NETDB_H__ -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+#define NETDB_INTERNAL -1 /* see errno */ -+#define NETDB_SUCCESS 0 /* no problem */ -+#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */ -+#define TRY_AGAIN 2 /* Non-Authoritative Host not found, or SERVERFAIL */ -+#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */ -+#define NO_DATA 4 /* Valid name, no data record of requested type */ -+#define NO_ADDRESS NO_DATA /* no address, look for MX record */ -+ -+extern int h_errno; -+ -+struct hostent -+{ -+ char *h_name; -+ char **h_aliases; -+ int h_addrtype; -+ int h_length; -+ char **h_addr_list; -+ char *h_addr; -+}; -+ -+struct hostent *gethostbyaddr(const void *addr, int len, int type); -+struct hostent *gethostbyname(const char *name); -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/interrupt.S newlib-1.17.0-psp/newlib/libc/sys/psp/interrupt.S ---- newlib-1.17.0/newlib/libc/sys/psp/interrupt.S 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/interrupt.S 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,66 @@ -+ -+ .set noreorder -+ .set noat -+ -+ .global pspDisableInterrupts -+ .ent pspDisableInterrupts -+ -+pspDisableInterrupts: -+ mfic $v0, $0 -+ mtic $0, $0 -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ jr $ra -+ nop -+ -+ .end pspDisableInterrupts -+ -+ .global pspEnableInterrupts -+ .ent pspEnableInterrupts -+ -+pspEnableInterrupts: -+ mtic $a0, $0 -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ nop -+ jr $ra -+ nop -+ -+ .end pspEnableInterrupts -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/libcglue.c newlib-1.17.0-psp/newlib/libc/sys/psp/libcglue.c ---- newlib-1.17.0/newlib/libc/sys/psp/libcglue.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/libcglue.c 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,962 @@ -+/* -+ * PSP Software Development Kit - http://www.pspdev.org -+ * ----------------------------------------------------------------------- -+ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. -+ * -+ * libcglue.c - Newlib-compatible system calls. -+ * -+ * Copyright (c) 2005 Marcus R. Brown -+ * Copyright (c) 2005 James Forshaw -+ * Copyright (c) 2005 John Kelley -+ * Copyright (c) 2005 Jim Paris -+ * -+ */ -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+ -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include "fdman.h" -+ -+extern char __psp_cwd[MAXPATHLEN + 1]; -+extern void __psp_init_cwd(char *argv_0); -+extern int __psp_path_absolute(const char *in, char *out, int len); -+extern int pspDisableInterrupts(); -+extern void pspEnableInterrupts(int); -+ -+/* The following functions are defined in socket.c. They have weak linkage so -+ that the user doesn't have to link against the PSP network libraries if they -+ don't use the sockets API. */ -+extern int __psp_socket_close(int s) __attribute__((weak)); -+extern ssize_t __psp_socket_recv(int s, void *buf, size_t len, int flags) __attribute__((weak)); -+extern ssize_t __psp_socket_send(int s, const void *buf, size_t len, int flags) __attribute__((weak)); -+ -+extern int pipe(int fildes[2]); -+extern int __psp_pipe_close(int filedes); -+extern int __psp_pipe_nonblocking_read(int fd, void *buf, size_t len); -+extern int __psp_pipe_read(int fd, void *buf, size_t len); -+extern int __psp_pipe_write(int fd, const void *buf, size_t size); -+extern int __psp_pipe_nonblocking_write(int fd, const void *buf, size_t len); -+ -+int __psp_set_errno(int code); -+ -+#ifdef F___psp_set_errno -+int __psp_set_errno(int code) -+{ -+ if ((code & 0x80010000) == 0x80010000) { -+ errno = code & 0xFFFF; -+ return -1; -+ } -+ return code; -+} -+#endif -+ -+#ifdef F_getcwd -+char *getcwd(char *buf, size_t size) -+{ -+ if(!buf) { -+ errno = EINVAL; -+ return NULL; -+ } -+ -+ if(strlen(__psp_cwd) >= size) { -+ errno = ERANGE; -+ return NULL; -+ } -+ -+ strcpy(buf, __psp_cwd); -+ return buf; -+} -+#endif -+ -+#ifdef F_chdir -+int chdir(const char *path) -+{ -+ char dest[MAXPATHLEN + 1]; -+ SceUID uid; -+ -+ if(__psp_path_absolute(path, dest, MAXPATHLEN) < 0) { -+ errno = ENAMETOOLONG; -+ return -1; -+ } -+ -+ /* sceIoChdir doesn't give an indication of whether it worked, -+ so test for existence by attempting to open the dir */ -+ uid = sceIoDopen(dest); -+ if(uid < 0) { -+ errno = ENOTDIR; -+ return -1; -+ } -+ sceIoDclose(uid); -+ -+ sceIoChdir(dest); -+ strcpy(__psp_cwd, dest); -+ return 0; -+} -+#endif -+ -+#ifdef F_mkdir -+int mkdir(const char *pathname, mode_t mode) -+{ -+ char dest[MAXPATHLEN + 1]; -+ -+ if(__psp_path_absolute(pathname, dest, MAXPATHLEN) < 0) { -+ errno = ENAMETOOLONG; -+ return -1; -+ } -+ -+ return __psp_set_errno(sceIoMkdir(dest, mode)); -+} -+#endif -+ -+#ifdef F_rmdir -+int rmdir(const char *pathname) -+{ -+ char dest[MAXPATHLEN + 1]; -+ -+ if(__psp_path_absolute(pathname, dest, MAXPATHLEN) < 0) { -+ errno = ENAMETOOLONG; -+ return -1; -+ } -+ -+ return __psp_set_errno(sceIoRmdir(dest)); -+} -+#endif -+ -+#ifdef F_realpath -+char *realpath(const char *path, char *resolved_path) -+{ -+ if(!path || !resolved_path) { -+ errno = EINVAL; -+ return NULL; -+ } -+ if(__psp_path_absolute(path, resolved_path, MAXPATHLEN) < 0) { -+ errno = ENAMETOOLONG; -+ return NULL; -+ } -+ if(access(resolved_path, F_OK) < 0) { -+ errno = ENOENT; -+ return NULL; -+ } -+ return resolved_path; -+} -+#endif -+ -+/* Wrappers of the standard open(), close(), read(), write(), unlink() and lseek() routines. */ -+#ifdef F__open -+int _open(const char *name, int flags, int mode) -+{ -+ int scefd, fd; -+ int sce_flags; -+ char dest[MAXPATHLEN + 1]; -+ -+ if(__psp_path_absolute(name, dest, MAXPATHLEN) < 0) { -+ errno = ENAMETOOLONG; -+ return -1; -+ } -+ -+ /* O_RDONLY starts at 0, where PSP_O_RDONLY starts at 1, so remap the read/write -+ flags by adding 1. */ -+ sce_flags = (flags & O_ACCMODE) + 1; -+ -+ /* Translate standard open flags into the flags understood by the PSP kernel. */ -+ if (flags & O_APPEND) { -+ sce_flags |= PSP_O_APPEND; -+ } -+ if (flags & O_CREAT) { -+ sce_flags |= PSP_O_CREAT; -+ } -+ if (flags & O_TRUNC) { -+ sce_flags |= PSP_O_TRUNC; -+ } -+ if (flags & O_EXCL) { -+ sce_flags |= PSP_O_EXCL; -+ } -+ if (flags & O_NONBLOCK) { -+ sce_flags |= PSP_O_NBLOCK; -+ } -+ -+ scefd = sceIoOpen(dest, sce_flags, mode); -+ if (scefd >= 0) { -+ fd = __psp_fdman_get_new_descriptor(); -+ if (fd != -1) { -+ __psp_descriptormap[fd]->sce_descriptor = scefd; -+ __psp_descriptormap[fd]->type = __PSP_DESCRIPTOR_TYPE_FILE; -+ __psp_descriptormap[fd]->flags = flags; -+ __psp_descriptormap[fd]->filename = strdup(dest); -+ return fd; -+ } -+ else { -+ sceIoClose(scefd); -+ errno = ENOMEM; -+ return -1; -+ } -+ } -+ else { -+ return __psp_set_errno(scefd); -+ } -+ -+} -+#endif -+ -+#ifdef F__close -+int _close(int fd) -+{ -+ int ret = 0; -+ -+ if (!__PSP_IS_FD_VALID(fd)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ switch(__psp_descriptormap[fd]->type) -+ { -+ case __PSP_DESCRIPTOR_TYPE_FILE: -+ case __PSP_DESCRIPTOR_TYPE_TTY: -+ if (__psp_descriptormap[fd]->ref_count == 1) { -+ ret = __psp_set_errno(sceIoClose(__psp_descriptormap[fd]->sce_descriptor)); -+ } -+ __psp_fdman_release_descriptor(fd); -+ return ret; -+ break; -+ case __PSP_DESCRIPTOR_TYPE_PIPE: -+ return __psp_pipe_close(fd); -+ break; -+ case __PSP_DESCRIPTOR_TYPE_SOCKET: -+ if (__psp_socket_close != NULL) { -+ ret = __psp_socket_close(fd); -+ return ret; -+ } -+ break; -+ default: -+ break; -+ } -+ -+ errno = EBADF; -+ return -1; -+} -+#endif -+ -+#ifdef F__read -+int _read(int fd, void *buf, size_t size) -+{ -+ if (!__PSP_IS_FD_VALID(fd)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ switch(__psp_descriptormap[fd]->type) -+ { -+ case __PSP_DESCRIPTOR_TYPE_FILE: -+ case __PSP_DESCRIPTOR_TYPE_TTY: -+ return __psp_set_errno(sceIoRead(__psp_descriptormap[fd]->sce_descriptor, buf, size)); -+ break; -+ case __PSP_DESCRIPTOR_TYPE_PIPE: -+ if (__psp_descriptormap[fd]->flags & O_NONBLOCK) { -+ return __psp_pipe_nonblocking_read(fd, buf, size); -+ } -+ else { -+ return __psp_pipe_read(fd, buf, size); -+ } -+ break; -+ case __PSP_DESCRIPTOR_TYPE_SOCKET: -+ if (__psp_socket_recv != NULL) { -+ return __psp_socket_recv(fd, buf, size, 0); -+ } -+ break; -+ default: -+ break; -+ } -+ -+ errno = EBADF; -+ return -1; -+ -+} -+#endif -+ -+#ifdef F__write -+int _write(int fd, const void *buf, size_t size) -+{ -+ if (!__PSP_IS_FD_VALID(fd)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ switch(__psp_descriptormap[fd]->type) -+ { -+ case __PSP_DESCRIPTOR_TYPE_FILE: -+ case __PSP_DESCRIPTOR_TYPE_TTY: -+ return __psp_set_errno(sceIoWrite(__psp_descriptormap[fd]->sce_descriptor, buf, size)); -+ break; -+ case __PSP_DESCRIPTOR_TYPE_PIPE: -+ if (__psp_descriptormap[fd]->flags & O_NONBLOCK) { -+ return __psp_pipe_nonblocking_write(fd, buf, size); -+ } -+ else { -+ return __psp_pipe_write(fd, buf, size); -+ } -+ break; -+ break; -+ case __PSP_DESCRIPTOR_TYPE_SOCKET: -+ if (__psp_socket_send != NULL) { -+ return __psp_socket_send(fd, buf, size, 0); -+ } -+ break; -+ default: -+ break; -+ } -+ -+ errno = EBADF; -+ return -1; -+} -+#endif -+ -+#ifdef F__lseek -+off_t _lseek(int fd, off_t offset, int whence) -+{ -+ if (!__PSP_IS_FD_VALID(fd)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ switch(__psp_descriptormap[fd]->type) -+ { -+ case __PSP_DESCRIPTOR_TYPE_FILE: -+ /* We don't have to do anything with the whence argument because SEEK_* == PSP_SEEK_*. */ -+ return (off_t) __psp_set_errno(sceIoLseek(__psp_descriptormap[fd]->sce_descriptor, offset, whence)); -+ break; -+ case __PSP_DESCRIPTOR_TYPE_PIPE: -+ break; -+ case __PSP_DESCRIPTOR_TYPE_SOCKET: -+ break; -+ default: -+ break; -+ } -+ -+ errno = EBADF; -+ return -1; -+ -+} -+#endif -+ -+#ifdef F__unlink -+int _unlink(const char *path) -+{ -+ char dest[MAXPATHLEN + 1]; -+ -+ if(__psp_path_absolute(path, dest, MAXPATHLEN) < 0) { -+ errno = ENAMETOOLONG; -+ return -1; -+ } -+ -+ return __psp_set_errno(sceIoRemove(dest)); -+} -+#endif -+ -+#ifdef F__link -+int _link(const char *name1, const char *name2) -+{ -+ errno = ENOSYS; -+ return -1; /* not supported */ -+} -+#endif -+ -+#ifdef F_opendir -+DIR *opendir(const char *filename) -+{ -+ char dest[MAXPATHLEN + 1]; -+ DIR *dirp; -+ SceUID uid; -+ -+ /* Normalize pathname so that opendir(".") works */ -+ if(__psp_path_absolute(filename, dest, MAXPATHLEN) < 0) { -+ errno = ENOENT; -+ return NULL; -+ } -+ -+ dirp = (DIR *)malloc(sizeof(DIR)); -+ -+ uid = sceIoDopen(dest); -+ -+ if (uid < 0) -+ { -+ free(dirp); -+ (void) __psp_set_errno(uid); -+ return NULL; -+ } -+ -+ dirp->uid = uid; -+ -+ return dirp; -+} -+#endif -+ -+#ifdef F_readdir -+struct dirent *readdir(DIR *dirp) -+{ -+ int ret; -+ -+ /* Zero the dirent, to avoid possible problems with sceIoDread */ -+ memset(&dirp->de, 0, sizeof(struct dirent)); -+ -+ ret = sceIoDread(dirp->uid, (SceIoDirent *)&dirp->de); -+ if (ret == 0) { -+ /* EOF */ -+ errno = 0; -+ return NULL; -+ } -+ if (ret < 0) { -+ (void) __psp_set_errno(ret); -+ return NULL; -+ } -+ -+ return &dirp->de; -+} -+#endif -+ -+#ifdef F_closedir -+int closedir(DIR *dirp) -+{ -+ if (dirp != NULL) -+ { -+ int uid; -+ uid = dirp->uid; -+ free (dirp); -+ return __psp_set_errno(sceIoDclose(uid)); -+ } -+ errno = EBADF; -+ return -1; -+} -+#endif -+ -+/* Time routines. These wrap around the routines provided by the kernel. */ -+#ifdef F__gettimeofday -+int _gettimeofday(struct timeval *tp, struct timezone *tzp) -+{ -+ int ret; -+ time_t t; -+ struct timeval tv1, tv2; -+ -+ /* The kernel sceKernelLibcGettimeofday only returns time -+ since midnight. To get a proper timeval return value, we -+ get seconds using sceKernelLibcTime and microseconds using -+ sceKernelLibcGettimeofday. Since we are reading the time -+ with two different function calls, we need to be careful -+ to avoid glitches when the time changes between calls. */ -+ -+ retry: -+ /* Get seconds and microseconds since midnight */ -+ ret = __psp_set_errno(sceKernelLibcGettimeofday(&tv1, tzp)); -+ if (ret < 0) -+ return ret; -+ -+ /* Get seconds since epoch */ -+ ret = __psp_set_errno(sceKernelLibcTime(&t)); -+ if (ret < 0) -+ return ret; -+ -+ /* Get seconds and microseconds since midnight, again */ -+ ret = __psp_set_errno(sceKernelLibcGettimeofday(&tv2, tzp)); -+ if (ret < 0) -+ return ret; -+ -+ /* Retry if microseconds wrapped around */ -+ if (tv2.tv_usec < tv1.tv_usec) -+ goto retry; -+ -+ /* Return the actual time since epoch */ -+ tp->tv_sec = t; -+ tp->tv_usec = tv2.tv_usec; -+ -+ return 0; -+} -+ -+#endif -+ -+#if defined(F_clock) -+clock_t clock(void) -+{ -+ return sceKernelLibcClock(); -+} -+#endif -+ -+#if defined(F_time) -+time_t time(time_t *t) -+{ -+ return __psp_set_errno(sceKernelLibcTime(t)); -+} -+#endif -+ -+#if defined(F_sleep) -+unsigned int sleep(unsigned int secs) { -+ while(secs--) { -+ sceKernelDelayThreadCB(1000000); -+ } -+ return 0; -+} -+#endif -+ -+/* PSP-compatible sbrk(). */ -+#if defined(F__sbrk) || defined(F_glue__sbrk) -+ -+#define DEFAULT_PRX_HEAP_SIZE_KB 64 -+ -+/* If defined it specifies the desired size of the heap, in KB. */ -+extern int sce_newlib_heap_kb_size __attribute__((weak)); -+extern int __pspsdk_is_prx __attribute__((weak)); -+ -+/* UID of the memory block that represents the heap. */ -+static SceUID __psp_heap_blockid; -+ -+void * _sbrk(ptrdiff_t incr) -+{ -+ static void * heap_bottom = NULL; -+ static void * heap_top = NULL; -+ static void * heap_ptr = NULL; -+ -+ /* Has our heap been initialized? */ -+ if (heap_bottom == NULL) { -+ /* No, initialize the heap. */ -+ SceSize heap_size = (SceSize) -1; -+ -+ if (&sce_newlib_heap_kb_size != NULL) { -+ heap_size = sce_newlib_heap_kb_size; -+ } else if(&__pspsdk_is_prx != NULL) { -+ heap_size = DEFAULT_PRX_HEAP_SIZE_KB; -+ } -+ -+ heap_size *= 1024; -+ if ((int)heap_size < 0) { -+ heap_size += sceKernelMaxFreeMemSize(); -+ } -+ -+ if (heap_size != 0) { -+ __psp_heap_blockid = sceKernelAllocPartitionMemory(2, "block", PSP_SMEM_Low, heap_size, NULL); -+ if (__psp_heap_blockid > 0) { -+ heap_bottom = sceKernelGetBlockHeadAddr(__psp_heap_blockid); -+ heap_ptr = heap_bottom; -+ heap_top = (unsigned char *) heap_bottom + heap_size; -+ } -+ } -+ } -+ -+ void * heap_addr = (void *) -1; -+ void * next_heap_ptr = (void *) ((ptrdiff_t) heap_ptr + incr); -+ if ((heap_bottom != NULL) && (next_heap_ptr >= heap_bottom) && (next_heap_ptr < heap_top)) { -+ heap_addr = heap_ptr; -+ heap_ptr = next_heap_ptr; -+ } -+ -+ return heap_addr; -+} -+ -+/* Free the heap. */ -+int __psp_free_heap(void) -+{ -+ if (__psp_heap_blockid > 0) { -+ return sceKernelFreePartitionMemory(__psp_heap_blockid); -+ } -+ -+ return __psp_heap_blockid; -+} -+#endif -+ -+/* Other POSIX routines that must be defined. */ -+#ifdef F__fstat -+int _fstat(int fd, struct stat *sbuf) -+{ -+ int ret; -+ SceOff oldpos; -+ if (!__PSP_IS_FD_VALID(fd)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ switch(__psp_descriptormap[fd]->type) -+ { -+ case __PSP_DESCRIPTOR_TYPE_TTY: -+ memset(sbuf, '\0', sizeof(struct stat)); -+ sbuf->st_mode = S_IFCHR; -+ return 0; -+ break; -+ case __PSP_DESCRIPTOR_TYPE_FILE: -+ if (__psp_descriptormap[fd]->filename != NULL) { -+ ret = stat(__psp_descriptormap[fd]->filename, sbuf); -+ -+ /* Find true size of the open file */ -+ oldpos = sceIoLseek(__psp_descriptormap[fd]->sce_descriptor, 0, SEEK_CUR); -+ if (oldpos != (off_t) -1) { -+ sbuf->st_size = (off_t) sceIoLseek(__psp_descriptormap[fd]->sce_descriptor, 0, SEEK_END); -+ sceIoLseek(__psp_descriptormap[fd]->sce_descriptor, oldpos, SEEK_SET); -+ } -+ return ret; -+ } -+ break; -+ case __PSP_DESCRIPTOR_TYPE_PIPE: -+ case __PSP_DESCRIPTOR_TYPE_SOCKET: -+ default: -+ break; -+ } -+ -+ errno = EBADF; -+ return -1; -+} -+#endif -+ -+#ifdef F_isatty -+int isatty(int fd) -+{ -+ if (!__PSP_IS_FD_VALID(fd)) { -+ errno = EBADF; -+ return 0; -+ } -+ -+ if (__psp_descriptormap[fd]->type == __PSP_DESCRIPTOR_TYPE_TTY) { -+ return 1; -+ } -+ else { -+ return 0; -+ } -+} -+#endif -+ -+#ifdef F__stat -+static time_t psp_to_epoch_time(ScePspDateTime psp_time) -+{ -+ struct tm conv_time; -+ conv_time.tm_year = psp_time.year; -+ conv_time.tm_mon = psp_time.month; -+ conv_time.tm_mday = psp_time.day; -+ conv_time.tm_hour = psp_time.hour; -+ conv_time.tm_min = psp_time.minute; -+ conv_time.tm_sec = psp_time.second; -+ conv_time.tm_isdst = -1; -+ return mktime(&conv_time); -+} -+ -+int _stat(const char *filename, struct stat *buf) -+{ -+ SceIoStat psp_stat; -+ char dest[MAXPATHLEN + 1]; -+ int ret; -+ -+ if(__psp_path_absolute(filename, dest, MAXPATHLEN) < 0) { -+ errno = ENAMETOOLONG; -+ return -1; -+ } -+ -+ memset(buf, '\0', sizeof(struct stat)); -+ ret = sceIoGetstat(dest, &psp_stat); -+ if (ret < 0) { -+ return __psp_set_errno(ret); -+ } -+ -+ buf->st_ctime = psp_to_epoch_time(psp_stat.st_ctime); -+ buf->st_atime = psp_to_epoch_time(psp_stat.st_atime); -+ buf->st_mtime = psp_to_epoch_time(psp_stat.st_mtime); -+ -+ buf->st_mode = (psp_stat.st_mode & 0xfff) | -+ ((FIO_S_ISLNK(psp_stat.st_mode))?(S_IFLNK):(0)) | -+ ((FIO_S_ISREG(psp_stat.st_mode))?(S_IFREG):(0)) | -+ ((FIO_S_ISDIR(psp_stat.st_mode))?(S_IFDIR):(0)); -+ buf->st_size = psp_stat.st_size; -+ return 0; -+} -+#endif -+ -+/* from stat.h in ps2sdk, this function may be correct */ -+#define FIO_CST_SIZE 0x0004 -+ -+#ifdef F_truncate -+int truncate(const char *filename, off_t length) -+{ -+ SceIoStat psp_stat; -+ char dest[MAXPATHLEN + 1]; -+ -+ if(__psp_path_absolute(filename, dest, MAXPATHLEN) < 0) { -+ errno = ENAMETOOLONG; -+ return -1; -+ } -+ -+ psp_stat.st_size = length; -+ if(length < 0) -+ { -+ errno = EINVAL; -+ return -1; -+ } -+ return __psp_set_errno(sceIoChstat(dest, &psp_stat, FIO_CST_SIZE)); -+} -+#endif -+ -+/* Unsupported newlib system calls. */ -+#ifdef F__fork -+pid_t fork(void) -+{ -+ errno = ENOSYS; -+ return (pid_t) -1; -+} -+#endif -+ -+#ifdef F__getpid -+pid_t _getpid(void) -+{ -+ errno = ENOSYS; -+ return (pid_t) -1; -+} -+#endif -+ -+#ifdef F__kill -+int _kill(int unused, int unused2) -+{ -+ errno = ENOSYS; -+ return -1; -+} -+#endif -+ -+#ifdef F__wait -+pid_t _wait(int *unused) -+{ -+ errno = ENOSYS; -+ return (pid_t) -1; -+} -+#endif -+ -+#ifdef F_access -+int access(const char *fn, int flags) -+{ -+ struct stat s; -+ if (stat(fn, &s)) -+ return -1; -+ if (s.st_mode & S_IFDIR) -+ return 0; -+ if (flags & W_OK) -+ { -+ if (s.st_mode & S_IWRITE) -+ return 0; -+ errno = EACCES; -+ return -1; -+ } -+ return 0; -+} -+#endif -+ -+#ifdef F__fcntl -+int _fcntl(int fd, int cmd, ...) -+{ -+ if (!__PSP_IS_FD_VALID(fd)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ switch (cmd) -+ { -+ case F_DUPFD: -+ { -+ return __psp_fdman_get_dup_descriptor(fd); -+ break; -+ } -+ case F_GETFL: -+ { -+ return __psp_descriptormap[fd]->flags; -+ break; -+ } -+ case F_SETFL: -+ { -+ int newfl; -+ va_list args; -+ -+ va_start (args, cmd); /* Initialize the argument list. */ -+ newfl = va_arg(args, int); -+ va_end (args); /* Clean up. */ -+ -+ __psp_descriptormap[fd]->flags = newfl; -+ -+ switch(__psp_descriptormap[fd]->type) -+ { -+ case __PSP_DESCRIPTOR_TYPE_FILE: -+ break; -+ case __PSP_DESCRIPTOR_TYPE_PIPE: -+ break; -+ case __PSP_DESCRIPTOR_TYPE_SOCKET: -+ if (newfl & O_NONBLOCK) -+ { -+ int one = 1; -+ return setsockopt(fd, SOL_SOCKET, SO_NONBLOCK, (char *)&one, sizeof(one)); -+ } -+ else -+ { -+ int zero = 0; -+ return setsockopt(fd, SOL_SOCKET, SO_NONBLOCK, (char *)&zero, sizeof(zero)); -+ } -+ break; -+ default: -+ break; -+ } -+ return 0; -+ break; -+ } -+ } -+ -+ errno = EBADF; -+ return -1; -+} -+#endif /* F__fcntl */ -+ -+#ifdef F_tzset -+void tzset(void) -+{ -+ static int initialized = 0; -+ -+ if (!initialized) -+ { -+ initialized = 1; -+ -+ /* Don't init if TZ has already been set once, this probably means the user -+ wanted to override what we would set below. */ -+ if (getenv("TZ") == NULL) -+ { -+ /* Initialize timezone from PSP configuration */ -+ int tzOffset = 0; -+ sceUtilityGetSystemParamInt(PSP_SYSTEMPARAM_ID_INT_TIMEZONE, &tzOffset); -+ int tzOffsetAbs = tzOffset < 0 ? -tzOffset : tzOffset; -+ int hours = tzOffsetAbs / 60; -+ int minutes = tzOffsetAbs - hours * 60; -+ int pspDaylight = 0; -+ sceUtilityGetSystemParamInt(PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS, &pspDaylight); -+ static char tz[18]; -+ sprintf(tz, "GMT%s%02i:%02i%s", tzOffset < 0 ? "+" : "-", hours, minutes, pspDaylight ? "daylight" : ""); -+ setenv("TZ", tz, 1); -+ } -+ } -+ -+ _tzset_r(_REENT); -+} -+#endif -+ -+#ifdef F_mlock -+static unsigned int lock_count = 0; -+static unsigned int intr_flags = 0; -+ -+void __malloc_lock(struct _reent *ptr) -+{ -+ unsigned int flags = pspDisableInterrupts(); -+ -+ if (lock_count == 0) { -+ intr_flags = flags; -+ } -+ -+ lock_count++; -+} -+ -+void __malloc_unlock(struct _reent *ptr) -+{ -+ if (--lock_count == 0) { -+ pspEnableInterrupts(intr_flags); -+ } -+} -+#endif -+ -+/* Exit. */ -+#if defined(F__exit) || defined(F_glue__exit) -+extern int sce_newlib_nocreate_thread_in_start __attribute__((weak)); -+ -+extern int __psp_free_heap(void); -+ -+void _exit(int status) -+{ -+ if (&sce_newlib_nocreate_thread_in_start == NULL) { -+ /* Free the heap created by _sbrk(). */ -+ __psp_free_heap(); -+ -+ sceKernelSelfStopUnloadModule(1, 0, NULL); -+ } else { -+ if (status == 0) { -+ /* Free the heap created by _sbrk(). */ -+ __psp_free_heap(); -+ } -+ -+ sceKernelExitThread(status); -+ } -+ -+ while (1) ; -+} -+ -+/* Note: This function is being linked into _exit.o. -+ -+ Because __psp_libc_init is a weak import in crt0.c, the linker -+ chooses to ignore an object file in libc.a that contains just this -+ function, since it's not necessary for successful compilation. -+ -+ By putting it instead in _exit.o, which is already used by crt0.c, -+ the linker sees __psp_libc_init and resolves the symbol properly. -+*/ -+void __psp_libc_init(int argc, char *argv[]) -+{ -+ (void) argc; -+ -+ /* Initialize cwd from this program's path */ -+ __psp_init_cwd(argv[0]); -+ -+ /* Initialize filedescriptor management */ -+ __psp_fdman_init(); -+} -+ -+#endif /* F__exit */ -+ -+#ifdef F__rename -+int _rename(const char *old, const char *new) -+{ -+ char oldname[MAXPATHLEN + 1]; -+ char newname[MAXPATHLEN + 1]; -+ -+ if(__psp_path_absolute(old, oldname, MAXPATHLEN) < 0) { -+ errno = ENAMETOOLONG; -+ return -1; -+ } -+ -+ if(__psp_path_absolute(new, newname, MAXPATHLEN) < 0) { -+ errno = ENAMETOOLONG; -+ return -1; -+ } -+ -+ return __psp_set_errno(sceIoRename(oldname, newname)); -+} -+#endif -+ -+#ifdef F_nanosleep -+/* note: we don't use rem as we have no signals */ -+int nanosleep(const struct timespec *req, struct timespec *rem) -+{ -+ if( req == NULL ) -+ return EFAULT; -+ -+ if( rem != NULL ) { -+ rem->tv_sec = 0; -+ rem->tv_nsec = 0; -+ } -+ -+ sceKernelDelayThreadCB( 1000000 * req->tv_sec + (req->tv_nsec / 1000) ); -+ -+ return 0; -+} -+#endif -+ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/netdb.c newlib-1.17.0-psp/newlib/libc/sys/psp/netdb.c ---- newlib-1.17.0/newlib/libc/sys/psp/netdb.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/netdb.c 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,103 @@ -+/* Simple gethostbyname and gethostbyaddr replacements using the resolver lib */ -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+ -+#define MAX_NAME 512 -+ -+#ifdef F_h_errno -+int h_errno = NETDB_SUCCESS; -+#endif -+ -+#ifdef F_gethostbyaddr -+struct hostent *gethostbyaddr(const void *addr, int len, int type) -+{ -+ static struct hostent ent; -+ static char * aliases[1] = { NULL }; -+ char buf[1024]; -+ static char sname[MAX_NAME] = ""; -+ static struct in_addr saddr = { 0 }; -+ static char *addrlist[2] = { (char *) &saddr, NULL }; -+ int rid; -+ int err; -+ -+ if((len != sizeof(struct in_addr)) || (type != AF_INET) || (addr == NULL)) -+ { -+ h_errno = HOST_NOT_FOUND; -+ return NULL; -+ } -+ -+ memcpy(&saddr, addr, len); -+ -+ if(sceNetResolverCreate(&rid, buf, sizeof(buf)) < 0) -+ { -+ h_errno = NO_RECOVERY; -+ return NULL; -+ } -+ -+ err = sceNetResolverStartAtoN(rid, &saddr, sname, sizeof(sname), 2, 3); -+ sceNetResolverStop(rid); -+ sceNetResolverDelete(rid); -+ if(err < 0) -+ { -+ h_errno = HOST_NOT_FOUND; -+ return NULL; -+ } -+ -+ ent.h_name = sname; -+ ent.h_aliases = aliases; -+ ent.h_addrtype = AF_INET; -+ ent.h_length = sizeof(struct in_addr); -+ ent.h_addr_list = addrlist; -+ ent.h_addr = (char *) &saddr; -+ -+ return &ent; -+} -+#endif -+ -+#ifdef F_gethostbyname -+struct hostent *gethostbyname(const char *name) -+{ -+ static struct hostent ent; -+ char buf[1024]; -+ static char sname[MAX_NAME] = ""; -+ static struct in_addr saddr = { 0 }; -+ static char *addrlist[2] = { (char *) &saddr, NULL }; -+ int rid; -+ -+ if(sceNetInetInetAton(name, &saddr) == 0) -+ { -+ int err; -+ -+ if(sceNetResolverCreate(&rid, buf, sizeof(buf)) < 0) -+ { -+ h_errno = NO_RECOVERY; -+ return NULL; -+ } -+ -+ err = sceNetResolverStartNtoA(rid, name, &saddr, 2, 3); -+ sceNetResolverDelete(rid); -+ if(err < 0) -+ { -+ h_errno = HOST_NOT_FOUND; -+ return NULL; -+ } -+ -+ } -+ -+ snprintf(sname, MAX_NAME, "%s", name); -+ ent.h_name = sname; -+ ent.h_aliases = 0; -+ ent.h_addrtype = AF_INET; -+ ent.h_length = sizeof(struct in_addr); -+ ent.h_addr_list = addrlist; -+ ent.h_addr = (char *) &saddr; -+ -+ return &ent; -+} -+ -+#endif -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/netinet/in.h newlib-1.17.0-psp/newlib/libc/sys/psp/netinet/in.h ---- newlib-1.17.0/newlib/libc/sys/psp/netinet/in.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/netinet/in.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,271 @@ -+/* $NetBSD: in.h,v 1.71 2005/08/05 09:21:25 elad Exp $ */ -+ -+/* -+ * Copyright (c) 1982, 1986, 1990, 1993 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ * @(#)in.h 8.3 (Berkeley) 1/3/94 -+ */ -+ -+/* -+ * Constants and structures defined by the internet system, -+ * Per RFC 790, September 1981, and numerous additions. -+ */ -+ -+#ifndef _NETINET_IN_H_ -+#define _NETINET_IN_H_ -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+#include -+ -+typedef uint32_t in_addr_t; -+typedef uint16_t in_port_t; -+ -+/* -+ * Protocols -+ */ -+#define IPPROTO_IP 0 /* dummy for IP */ -+#define IPPROTO_HOPOPTS 0 /* IP6 hop-by-hop options */ -+#define IPPROTO_ICMP 1 /* control message protocol */ -+#define IPPROTO_IGMP 2 /* group mgmt protocol */ -+#define IPPROTO_GGP 3 /* gateway^2 (deprecated) */ -+#define IPPROTO_IPV4 4 /* IP header */ -+#define IPPROTO_IPIP 4 /* IP inside IP */ -+#define IPPROTO_TCP 6 /* tcp */ -+#define IPPROTO_EGP 8 /* exterior gateway protocol */ -+#define IPPROTO_PUP 12 /* pup */ -+#define IPPROTO_UDP 17 /* user datagram protocol */ -+#define IPPROTO_IDP 22 /* xns idp */ -+#define IPPROTO_TP 29 /* tp-4 w/ class negotiation */ -+#define IPPROTO_IPV6 41 /* IP6 header */ -+#define IPPROTO_ROUTING 43 /* IP6 routing header */ -+#define IPPROTO_FRAGMENT 44 /* IP6 fragmentation header */ -+#define IPPROTO_RSVP 46 /* resource reservation */ -+#define IPPROTO_GRE 47 /* GRE encaps RFC 1701 */ -+#define IPPROTO_ESP 50 /* encap. security payload */ -+#define IPPROTO_AH 51 /* authentication header */ -+#define IPPROTO_MOBILE 55 /* IP Mobility RFC 2004 */ -+#define IPPROTO_IPV6_ICMP 58 /* IPv6 ICMP */ -+#define IPPROTO_ICMPV6 58 /* ICMP6 */ -+#define IPPROTO_NONE 59 /* IP6 no next header */ -+#define IPPROTO_DSTOPTS 60 /* IP6 destination option */ -+#define IPPROTO_EON 80 /* ISO cnlp */ -+#define IPPROTO_ETHERIP 97 /* Ethernet-in-IP */ -+#define IPPROTO_ENCAP 98 /* encapsulation header */ -+#define IPPROTO_PIM 103 /* Protocol indep. multicast */ -+#define IPPROTO_IPCOMP 108 /* IP Payload Comp. Protocol */ -+#define IPPROTO_VRRP 112 /* VRRP RFC 2338 */ -+ -+#define IPPROTO_RAW 255 /* raw IP packet */ -+#define IPPROTO_MAX 256 -+ -+/* last return value of *_input(), meaning "all job for this pkt is done". */ -+#define IPPROTO_DONE 257 -+ -+/* sysctl placeholder for (FAST_)IPSEC */ -+#define CTL_IPPROTO_IPSEC 258 -+ -+ -+/* -+ * Local port number conventions: -+ * -+ * Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root), -+ * unless a kernel is compiled with IPNOPRIVPORTS defined. -+ * -+ * When a user does a bind(2) or connect(2) with a port number of zero, -+ * a non-conflicting local port address is chosen. -+ * -+ * The default range is IPPORT_ANONMIN to IPPORT_ANONMAX, although -+ * that is settable by sysctl(3); net.inet.ip.anonportmin and -+ * net.inet.ip.anonportmax respectively. -+ * -+ * A user may set the IPPROTO_IP option IP_PORTRANGE to change this -+ * default assignment range. -+ * -+ * The value IP_PORTRANGE_DEFAULT causes the default behavior. -+ * -+ * The value IP_PORTRANGE_HIGH is the same as IP_PORTRANGE_DEFAULT, -+ * and exists only for FreeBSD compatibility purposes. -+ * -+ * The value IP_PORTRANGE_LOW changes the range to the "low" are -+ * that is (by convention) restricted to privileged processes. -+ * This convention is based on "vouchsafe" principles only. -+ * It is only secure if you trust the remote host to restrict these ports. -+ * The range is IPPORT_RESERVEDMIN to IPPORT_RESERVEDMAX. -+ */ -+ -+#define IPPORT_RESERVED 1024 -+#define IPPORT_ANONMIN 49152 -+#define IPPORT_ANONMAX 65535 -+#define IPPORT_RESERVEDMIN 600 -+#define IPPORT_RESERVEDMAX (IPPORT_RESERVED-1) -+ -+/* -+ * Internet address (a structure for historical reasons) -+ */ -+struct in_addr { -+ in_addr_t s_addr; -+} __attribute__((__packed__)); -+ -+#define __IPADDR(x) ((uint32_t)(x)) -+ -+#define IN_CLASSA(i) (((uint32_t)(i) & __IPADDR(0x80000000)) == \ -+ __IPADDR(0x00000000)) -+#define IN_CLASSA_NET __IPADDR(0xff000000) -+#define IN_CLASSA_NSHIFT 24 -+#define IN_CLASSA_HOST __IPADDR(0x00ffffff) -+#define IN_CLASSA_MAX 128 -+ -+#define IN_CLASSB(i) (((uint32_t)(i) & __IPADDR(0xc0000000)) == \ -+ __IPADDR(0x80000000)) -+#define IN_CLASSB_NET __IPADDR(0xffff0000) -+#define IN_CLASSB_NSHIFT 16 -+#define IN_CLASSB_HOST __IPADDR(0x0000ffff) -+#define IN_CLASSB_MAX 65536 -+ -+#define IN_CLASSC(i) (((uint32_t)(i) & __IPADDR(0xe0000000)) == \ -+ __IPADDR(0xc0000000)) -+#define IN_CLASSC_NET __IPADDR(0xffffff00) -+#define IN_CLASSC_NSHIFT 8 -+#define IN_CLASSC_HOST __IPADDR(0x000000ff) -+ -+#define IN_CLASSD(i) (((uint32_t)(i) & __IPADDR(0xf0000000)) == \ -+ __IPADDR(0xe0000000)) -+/* These ones aren't really net and host fields, but routing needn't know. */ -+#define IN_CLASSD_NET __IPADDR(0xf0000000) -+#define IN_CLASSD_NSHIFT 28 -+#define IN_CLASSD_HOST __IPADDR(0x0fffffff) -+#define IN_MULTICAST(i) IN_CLASSD(i) -+ -+#define IN_EXPERIMENTAL(i) (((uint32_t)(i) & __IPADDR(0xf0000000)) == \ -+ __IPADDR(0xf0000000)) -+#define IN_BADCLASS(i) (((uint32_t)(i) & __IPADDR(0xf0000000)) == \ -+ __IPADDR(0xf0000000)) -+ -+#define IN_LOCAL_GROUP(i) (((uint32_t)(i) & __IPADDR(0xffffff00)) == \ -+ __IPADDR(0xe0000000)) -+ -+#define INADDR_ANY __IPADDR(0x00000000) -+#define INADDR_LOOPBACK __IPADDR(0x7f000001) -+#define INADDR_BROADCAST __IPADDR(0xffffffff) /* must be masked */ -+ -+#define INADDR_UNSPEC_GROUP __IPADDR(0xe0000000) /* 224.0.0.0 */ -+#define INADDR_ALLHOSTS_GROUP __IPADDR(0xe0000001) /* 224.0.0.1 */ -+#define INADDR_ALLRTRS_GROUP __IPADDR(0xe0000002) /* 224.0.0.2 */ -+#define INADDR_MAX_LOCAL_GROUP __IPADDR(0xe00000ff) /* 224.0.0.255 */ -+ -+#define IN_LOOPBACKNET 127 /* official! */ -+ -+/* -+ * Socket address, internet style. -+ */ -+struct sockaddr_in { -+ uint8_t sin_len; -+ sa_family_t sin_family; -+ in_port_t sin_port; -+ struct in_addr sin_addr; -+ int8_t sin_zero[8]; -+}; -+ -+#define INET_ADDRSTRLEN 16 -+ -+/* -+ * Structure used to describe IP options. -+ * Used to store options internally, to pass them to a process, -+ * or to restore options retrieved earlier. -+ * The ip_dst is used for the first-hop gateway when using a source route -+ * (this gets put into the header proper). -+ */ -+struct ip_opts { -+ struct in_addr ip_dst; /* first hop, 0 w/o src rt */ -+#if defined(__cplusplus) -+ int8_t Ip_opts[40]; /* actually variable in size */ -+#else -+ int8_t ip_opts[40]; /* actually variable in size */ -+#endif -+}; -+ -+/* -+ * Options for use with [gs]etsockopt at the IP level. -+ * First word of comment is data type; bool is stored in int. -+ */ -+#define IP_OPTIONS 1 /* buf/ip_opts; set/get IP options */ -+#define IP_HDRINCL 2 /* int; header is included with data */ -+#define IP_TOS 3 /* int; IP type of service and preced. */ -+#define IP_TTL 4 /* int; IP time to live */ -+#define IP_RECVOPTS 5 /* bool; receive all IP opts w/dgram */ -+#define IP_RECVRETOPTS 6 /* bool; receive IP opts for response */ -+#define IP_RECVDSTADDR 7 /* bool; receive IP dst addr w/dgram */ -+#define IP_RETOPTS 8 /* ip_opts; set/get IP options */ -+#define IP_MULTICAST_IF 9 /* in_addr; set/get IP multicast i/f */ -+#define IP_MULTICAST_TTL 10 /* u_char; set/get IP multicast ttl */ -+#define IP_MULTICAST_LOOP 11 /* u_char; set/get IP multicast loopback */ -+#define IP_ADD_MEMBERSHIP 12 /* ip_mreq; add an IP group membership */ -+#define IP_DROP_MEMBERSHIP 13 /* ip_mreq; drop an IP group membership */ -+#define IP_PORTRANGE 19 /* int; range to use for ephemeral port */ -+#define IP_RECVIF 20 /* bool; receive reception if w/dgram */ -+#define IP_ERRORMTU 21 /* int; get MTU of last xmit = EMSGSIZE */ -+#if 1 /*IPSEC*/ -+#define IP_IPSEC_POLICY 22 /* struct; get/set security policy */ -+#endif -+ -+/* -+ * Defaults and limits for options -+ */ -+#define IP_DEFAULT_MULTICAST_TTL 1 /* normally limit m'casts to 1 hop */ -+#define IP_DEFAULT_MULTICAST_LOOP 1 /* normally hear sends if a member */ -+#define IP_MAX_MEMBERSHIPS 20 /* per socket; must fit in one mbuf */ -+ -+/* -+ * Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. -+ */ -+struct ip_mreq { -+ struct in_addr imr_multiaddr; /* IP multicast address of group */ -+ struct in_addr imr_interface; /* local IP address of interface */ -+}; -+ -+/* -+ * Argument for IP_PORTRANGE: -+ * - which range to search when port is unspecified at bind() or connect() -+ */ -+#define IP_PORTRANGE_DEFAULT 0 /* default range */ -+#define IP_PORTRANGE_HIGH 1 /* same as DEFAULT (FreeBSD compat) */ -+#define IP_PORTRANGE_LOW 2 /* use privileged range */ -+ -+#define ntohs(x) __builtin_allegrex_wsbh(x) -+#define ntohl(x) __builtin_allegrex_wsbw(x) -+#define htons(x) __builtin_allegrex_wsbh(x) -+#define htonl(x) __builtin_allegrex_wsbw(x) -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif /* !_NETINET_IN_H_ */ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/netinet/tcp.h newlib-1.17.0-psp/newlib/libc/sys/psp/netinet/tcp.h ---- newlib-1.17.0/newlib/libc/sys/psp/netinet/tcp.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/netinet/tcp.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,12 @@ -+#ifndef __NETINET_TCP_H__ -+#define __NETINET_TCP_H__ -+ -+#include -+ -+#define SOL_TCP IPPROTO_TCP -+ -+/* Socket options */ -+#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */ -+#define TCP_MAXSEG 0x02 /* set maximum segment size */ -+ -+#endif -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/pipe.c newlib-1.17.0-psp/newlib/libc/sys/psp/pipe.c ---- newlib-1.17.0/newlib/libc/sys/psp/pipe.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/pipe.c 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,305 @@ -+/* -+ * PSP Software Development Kit - http://www.pspdev.org -+ * ----------------------------------------------------------------------- -+ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. -+ * -+ * pipe.c - Socket wrappers to provide similar functions to normal unix -+ * -+ * Copyright (c) 2006 Rafael Cabezas -+ * -+ * - 20070630 Alper Akcan "anhanguera" -+ * [non]blocking read/write() fix -+ * illegal size fix for read/write() -+ * -+ */ -+#include -+#include -+#include -+#include -+ -+#include -+#include -+#include -+#include -+#include "fdman.h" -+ -+/* Pipe functions */ -+/* Returns how many bytes are in the pipe -- waiting to be read */ -+size_t __psp_pipe_peekmsgsize(int fd) -+{ -+ SceKernelMppInfo info; -+ info.size = sizeof(info); -+ -+ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ if (sceKernelReferMsgPipeStatus(__psp_descriptormap[fd]->sce_descriptor, &info) == 0) { -+ return (info.bufSize - info.freeSize); -+ } -+ else { -+ return -1; -+ } -+} -+ -+int pipe(int fildes[2]) -+{ -+ static int iIndex = 0; -+ char name[32]; -+ iIndex++; -+ -+ sprintf(name, "__psp_pipe_%02d", iIndex); -+ -+ SceUID uid = sceKernelCreateMsgPipe(name, PSP_MEMORY_PARTITION_USER, 0, (void *)PIPE_BUF, NULL); -+ -+ if (uid >= 0) { -+ fildes[0] = __psp_fdman_get_new_descriptor(); -+ if (fildes[0] != -1) { -+ __psp_descriptormap[fildes[0]]->sce_descriptor = uid; -+ __psp_descriptormap[fildes[0]]->type = __PSP_DESCRIPTOR_TYPE_PIPE; -+ } -+ else { -+ sceKernelDeleteMsgPipe(uid); -+ errno = EFAULT; -+ return -1; -+ } -+ -+ fildes[1] = __psp_fdman_get_dup_descriptor(fildes[0]); -+ if (fildes[1] != -1) { -+ __psp_descriptormap[fildes[1]]->sce_descriptor = uid; -+ return 0; -+ } -+ else { -+ sceKernelDeleteMsgPipe(uid); -+ errno = EFAULT; -+ return -1; -+ } -+ -+ } -+ else { -+ errno = EFAULT; -+ return -1; -+ } -+} -+ -+int __psp_pipe_close(int fd) -+{ -+ int ret = 0; -+ -+ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ -+ if ( __psp_descriptormap[fd]->ref_count == 1 ) { -+ /** -+ * Delete a message pipe -+ * -+ * @param uid - The UID of the pipe -+ * -+ * @return 0 on success, < 0 on error -+ */ -+ ret = sceKernelDeleteMsgPipe(__psp_descriptormap[fd]->sce_descriptor); -+ } -+ -+ __psp_fdman_release_descriptor(fd); -+ -+ if(ret < 0) { -+ return __psp_set_errno(ret); -+ } -+ -+ return 0; -+} -+ -+int __psp_pipe_nonblocking_read(int fd, void *buf, size_t len) -+{ -+ int ret; -+ int sceuid; -+ int size; -+ -+ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ sceuid = __psp_descriptormap[fd]->sce_descriptor; -+ -+ size = __psp_pipe_peekmsgsize(fd); -+ if (size > 0) { -+ if (size < len) { -+ len = size; -+ } -+ } -+ else if (size == 0) { -+ errno = EAGAIN; -+ return -1; -+ } -+ else { -+ errno = EBADF; -+ return -1; -+ } -+ -+ /** -+ * Receive a message from a pipe -+ * -+ * @param uid - The UID of the pipe -+ * @param message - Pointer to the message -+ * @param size - Size of the message -+ * @param unk1 - Unknown -+ * @param unk2 - Unknown -+ * @param timeout - Timeout for receive -+ * -+ * @return 0 on success, < 0 on error -+ */ -+ ret = sceKernelTryReceiveMsgPipe(sceuid, buf, len, 0, 0); -+ -+ if (ret == 0) {/* Success - Data */ -+ return len; -+ } -+ else if (ret == SCE_KERNEL_ERROR_MPP_EMPTY) {/* No data */ -+ errno = EAGAIN; -+ return -1; -+ } -+ else {/* Error */ -+ return __psp_set_errno(ret); -+ } -+} -+ -+int __psp_pipe_read(int fd, void *buf, size_t len) -+{ -+ int ret; -+ int sceuid; -+ int size; -+ -+ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ sceuid = __psp_descriptormap[fd]->sce_descriptor; -+ -+#if 0 -+ /* we should block until there is some data (or maybe for enough data), -+ * peeking the msg size should be only for nonblocking reads -+ */ -+ size = __psp_pipe_peekmsgsize(fd); -+ if (size > 0) { -+ if (size < len) { -+ len = size; -+ } -+ } -+ else { -+ errno = EBADF; -+ return -1; -+ } -+#endif -+ /* if len is greater than PIPE_BUF then, MsgPipe functions returns -+ * SCE_KERNEL_ERROR_ILLEGAL_SIZE, but it should read at least -+ * PIPE_BUF bytes, and return the number of bytes read. -+ */ -+ if (len > PIPE_BUF) { -+ len = PIPE_BUF; -+ } -+ -+ /** -+ * Receive a message from a pipe -+ * -+ * @param uid - The UID of the pipe -+ * @param message - Pointer to the message -+ * @param size - Size of the message -+ * @param unk1 - Unknown -+ * @param unk2 - Unknown -+ * @param timeout - Timeout for receive -+ * -+ * @return 0 on success, < 0 on error -+ */ -+ ret = sceKernelReceiveMsgPipe(sceuid, buf, len, 0, NULL, NULL); -+ -+ if (ret == 0) {/* Success - Data */ -+ return len; -+ } -+ else {/* Error */ -+ return __psp_set_errno(ret); -+ } -+} -+ -+int __psp_pipe_write(int fd, const void *buf, size_t len) -+{ -+ int ret; -+ int sceuid; -+ char *cbuf; -+ -+ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ sceuid = __psp_descriptormap[fd]->sce_descriptor; -+ -+ /* if len is greater than PIPE_BUF then, MsgPipe functions returns -+ * SCE_KERNEL_ERROR_ILLEGAL_SIZE, but it should write at least -+ * PIPE_BUF bytes, and return the number of bytes written. -+ */ -+ if (len > PIPE_BUF) { -+ len = PIPE_BUF; -+ } -+ -+ /** -+ * Send a message to a pipe -+ * -+ * @param uid - The UID of the pipe -+ * @param message - Pointer to the message -+ * @param size - Size of the message -+ * @param unk1 - Unknown -+ * @param unk2 - Unknown -+ * @param timeout - Timeout for send -+ * -+ * @return 0 on success, < 0 on error -+ */ -+ cbuf = (char *)buf; -+ ret = sceKernelSendMsgPipe(sceuid, cbuf, len, 0, NULL, NULL); -+ if (ret == 0) {/* Success - Data */ -+ return len; -+ } -+ else {/* Error */ -+ return __psp_set_errno(ret); -+ } -+} -+ -+int __psp_pipe_nonblocking_write(int fd, const void *buf, size_t len) -+{ -+ int ret; -+ int sceuid; -+ char *cbuf; -+ -+ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ sceuid = __psp_descriptormap[fd]->sce_descriptor; -+ -+ /* if len is greater than PIPE_BUF then, MsgPipe functions returns -+ * SCE_KERNEL_ERROR_ILLEGAL_SIZE, but it should write at least -+ * PIPE_BUF bytes, and return the number of bytes written. -+ */ -+ if (len > PIPE_BUF) { -+ len = PIPE_BUF; -+ } -+ -+ cbuf = (char *)buf; -+ ret = sceKernelTrySendMsgPipe(sceuid, cbuf, len, 0, 0); -+ -+ if (ret == 0) {/* Success - Data */ -+ return len; -+ } -+ else if (ret == SCE_KERNEL_ERROR_MPP_FULL) { -+ errno = EAGAIN; -+ return -1; -+ } -+ else {/* Error */ -+ return __psp_set_errno(ret); -+ } -+} -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/pspcwd.c newlib-1.17.0-psp/newlib/libc/sys/psp/pspcwd.c ---- newlib-1.17.0/newlib/libc/sys/psp/pspcwd.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/pspcwd.c 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,166 @@ -+/* -+ * PSP Software Development Kit - http://www.pspdev.org -+ * ----------------------------------------------------------------------- -+ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. -+ * -+ * pspcwd.c - Current working directory emulation helper functions -+ * -+ * Copyright (c) 2005 Marcus R. Brown -+ * Copyright (c) 2005 James Forshaw -+ * Copyright (c) 2005 John Kelley -+ * Copyright (c) 2005 Jim Paris -+ * -+ */ -+#include -+#include -+#include -+ -+#include -+#include -+ -+char __psp_cwd[MAXPATHLEN + 1] = { 0 }; -+ -+/* Set the current working directory (CWD) to the path where the module was launched. */ -+void __psp_init_cwd(char *argv_0) -+{ -+ if (argv_0 != NULL) { -+ char base_path[MAXPATHLEN + 1]; -+ char *end; -+ -+ strncpy(base_path, argv_0, sizeof(base_path) - 1); -+ base_path[sizeof(base_path) - 1] = '\0'; -+ end = strrchr(base_path, '/'); -+ if (end != NULL) { -+ *(end + 1) = '\0'; -+ chdir(base_path); -+ } -+ } -+} -+ -+/* Return the number of bytes taken up by the "drive:" prefix, -+ or -1 if it's not found */ -+int __psp_get_drive(const char *d) -+{ -+ int i; -+ for(i=0; d[i]; i++) { -+ if(! ((d[i] >= 'a' && d[i] <= 'z') || -+ (d[i] >= '0' && d[i] <= '9') )) -+ break; -+ } -+ if(d[i] == ':') return i+1; -+ return -1; -+} -+ -+/* Like strcpy, but returns 0 if the string doesn't fit */ -+int __psp_safe_strcpy(char *out, const char *in, int maxlen) -+{ -+ for( ; maxlen > 0 && *in ; maxlen-- ) -+ *(out++) = *(in++); -+ if(maxlen < 1) return 0; -+ *out = 0; -+ return 1; -+} -+ -+/* Like strcat, but returns 0 if the string doesn't fit */ -+int __psp_safe_strcat(char *out, const char *in, int maxlen) -+{ -+ for( ; *out ; out++,maxlen-- ) -+ continue; -+ return __psp_safe_strcpy(out, in, maxlen); -+} -+ -+/* Normalize a pathname (without leading "drive:") by removing -+ . and .. components, duplicated /, etc. */ -+int __psp_path_normalize(char *out, int len) -+{ -+ int i, j; -+ int first, next; -+ -+ /* First append "/" to make the rest easier */ -+ if(!__psp_safe_strcat(out,"/",len)) return -10; -+ -+ /* Convert "//" to "/" */ -+ for(i=0; out[i+1]; i++) { -+ if(out[i]=='/' && out[i+1]=='/') { -+ for(j=i+1; out[j]; j++) -+ out[j] = out[j+1]; -+ i--; -+ } -+ } -+ -+ /* Convert "/./" to "/" */ -+ for(i=0; out[i] && out[i+1] && out[i+2]; i++) { -+ if(out[i]=='/' && out[i+1]=='.' && out[i+2]=='/') { -+ for(j=i+1; out[j]; j++) -+ out[j] = out[j+2]; -+ i--; -+ } -+ } -+ -+ /* Convert "/asdf/../" to "/" until we can't anymore. Also -+ * convert leading "/../" to "/" */ -+ first = next = 0; -+ while(1) { -+ /* If a "../" follows, remove it and the parent */ -+ if(out[next+1] && out[next+1]=='.' && -+ out[next+2] && out[next+2]=='.' && -+ out[next+3] && out[next+3]=='/') { -+ for(j=0; out[first+j+1]; j++) -+ out[first+j+1] = out[next+j+4]; -+ first = next = 0; -+ continue; -+ } -+ -+ /* Find next slash */ -+ first = next; -+ for(next=first+1; out[next] && out[next] != '/'; next++) -+ continue; -+ if(!out[next]) break; -+ } -+ -+ /* Remove trailing "/" */ -+ for(i=1; out[i]; i++) -+ continue; -+ if(i >= 1 && out[i-1] == '/') -+ out[i-1] = 0; -+ -+ return 0; -+} -+ -+/* Convert relative path to absolute path. */ -+int __psp_path_absolute(const char *in, char *out, int len) -+{ -+ int dr; -+ -+ /* See what the relative URL starts with */ -+ dr = __psp_get_drive(in); -+ if(dr > 0 && in[dr] == '/') { -+ /* It starts with "drive:/", so it's already absolute */ -+ if(!__psp_safe_strcpy(out, in, len)) -+ return -1; -+ } else if(in[0] == '/') { -+ /* It's absolute, but missing the drive, so use cwd's drive */ -+ if(strlen(__psp_cwd) >= len) -+ return -2; -+ strcpy(out, __psp_cwd); -+ dr = __psp_get_drive(out); -+ out[dr] = 0; -+ if(!__psp_safe_strcat(out, in, len)) -+ return -3; -+ } else { -+ /* It's not absolute, so append it to the current cwd */ -+ if(strlen(__psp_cwd) >= len) -+ return -4; -+ strcpy(out, __psp_cwd); -+ if(!__psp_safe_strcat(out, "/", len)) -+ return -6; -+ if(!__psp_safe_strcat(out, in, len)) -+ return -7; -+ } -+ -+ /* Now normalize the pathname portion */ -+ dr = __psp_get_drive(out); -+ if(dr < 0) dr = 0; -+ return __psp_path_normalize(out + dr, len - dr); -+} -+ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/select.c newlib-1.17.0-psp/newlib/libc/sys/psp/select.c ---- newlib-1.17.0/newlib/libc/sys/psp/select.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/select.c 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,199 @@ -+/* -+ * PSP Software Development Kit - http://www.pspdev.org -+ * ----------------------------------------------------------------------- -+ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. -+ * -+ * select.c - Socket wrappers to provide similar functions to normal unix -+ * -+ * Copyright (c) 2006 Rafael Cabezas -+ * -+ * - 20070701 Alper Akcan "anhanguera" -+ * select EBADF fix -+ * -+ */ -+#include -+#include -+#include -+#include -+#include -+ -+#include "fdman.h" -+ -+#define SELECT_POLLING_DELAY_IN_us 100 -+ -+static int __psp_poll_select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds); -+ -+int select(int n, fd_set *readfds, fd_set *writefds, -+ fd_set *exceptfds, struct timeval *timeout) -+{ -+ int count; -+ clock_t start_time, time; -+ -+ start_time = clock(); -+ -+ count = 0; -+ -+ if (timeout) { -+ time = (timeout->tv_sec * CLOCKS_PER_SEC) + (timeout->tv_usec * (1*1000*1000/CLOCKS_PER_SEC)); -+ } -+ else { -+ time = 0; -+ } -+ -+ for (;;) { -+ count = __psp_poll_select(n, readfds, writefds, exceptfds); -+ /* If timeout == NULL, then don't timeout! */ -+ if ( (count > 0) || ((timeout != NULL) && ((clock() - start_time) >= time)) ) { -+ break; -+ } -+ if (count < 0) { -+ /* anhanguera - 20070701 -+ * error, lets let the caller to handle error state -+ */ -+ break; -+ } -+ else { -+ /* Nothing found, and not timed-out yet; let's yield for SELECT_POLLING_DELAY_IN_us, so we're not in a busy loop */ -+ sceKernelDelayThread(SELECT_POLLING_DELAY_IN_us); -+ } -+ } -+ -+ return count; -+} -+ -+#define SCE_FD_SET(n, p) \ -+ ((p)->fds_bits[((n) & 0xFF) /__NFDBITS] |= (1 << ((n) % __NFDBITS))) -+ -+static int __psp_poll_select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds) -+{ -+ int fd, count; -+ fd_set ready_readfds, ready_writefds, ready_exceptfds; -+ fd_set scereadfds, scewritefds, sceexceptfds; -+ SceKernelMppInfo info; -+ struct timeval scetv; -+ -+ FD_ZERO(&ready_readfds); -+ FD_ZERO(&ready_writefds); -+ FD_ZERO(&ready_exceptfds); -+ -+ info.size = sizeof(info); -+ scetv.tv_sec = 0; -+ scetv.tv_usec = 0; -+ count = 0; -+ -+ for (fd = 0; fd < n; fd++) -+ { -+ if (__psp_descriptormap[fd] != NULL) { -+ switch(__psp_descriptormap[fd]->type) -+ { -+ case __PSP_DESCRIPTOR_TYPE_PIPE: -+ if (readfds && FD_ISSET(fd, readfds)) { -+ if (sceKernelReferMsgPipeStatus(__psp_descriptormap[fd]->sce_descriptor, &info) == 0) { -+ if (info.bufSize != info.freeSize) { -+ FD_SET(fd, &ready_readfds); -+ count++; -+ } -+ } -+ else { -+ FD_SET(fd, &ready_exceptfds); -+ count++; -+ } -+ } -+ if (writefds && FD_ISSET(fd, writefds)) { -+ if (sceKernelReferMsgPipeStatus(__psp_descriptormap[fd]->sce_descriptor, &info) == 0) { -+ if (info.freeSize > 0) { -+ FD_SET(fd, &ready_writefds); -+ count++; -+ } -+ } -+ else { -+ FD_SET(fd, &ready_exceptfds); -+ count++; -+ } -+ } -+ break; -+ case __PSP_DESCRIPTOR_TYPE_FILE: -+ if (readfds && FD_ISSET(fd, readfds)) { -+ if (readfds && FD_ISSET(fd, readfds)) { -+ /** Just set it for now */ -+ FD_SET(fd, &ready_readfds); -+ count++; -+ } -+ } -+ break; -+ case __PSP_DESCRIPTOR_TYPE_SOCKET: -+ if (readfds && FD_ISSET(fd, readfds)) { -+ int sce_ret, sce_fd; -+ sce_fd = __psp_descriptormap[fd]->sce_descriptor; -+ FD_ZERO(&scereadfds); -+ SCE_FD_SET(sce_fd, &scereadfds); -+ errno = 0; -+ sce_ret = sceNetInetSelect (sce_fd+1, &scereadfds, NULL, NULL, &scetv); -+ if (sce_ret>0) { -+ FD_SET(fd, &ready_readfds); -+ count++; -+ } -+ else if (sce_ret == -1) { -+ errno = sceNetInetGetErrno(); -+ if (exceptfds && FD_ISSET(fd, exceptfds)) { -+ FD_SET(fd, &ready_exceptfds); -+ count++; -+ } else { -+ count = -1; -+ } -+ } -+ } -+ if (writefds && FD_ISSET(fd, writefds)) { -+ int sce_ret; -+ FD_ZERO(&scewritefds); -+ SCE_FD_SET(__psp_descriptormap[fd]->sce_descriptor, &scewritefds); -+ sce_ret = sceNetInetSelect (__psp_descriptormap[fd]->sce_descriptor+1, NULL, &scewritefds, NULL, &scetv); -+ if (sce_ret>0) { -+ FD_SET(fd, &ready_writefds); -+ count++; -+ } -+ else if (sce_ret == -1) { -+ if (exceptfds && FD_ISSET(fd, exceptfds)) { -+ FD_SET(fd, &ready_exceptfds); -+ count++; -+ } -+ else { -+ count = -1; -+ } -+ } -+ } -+ break; -+ } -+ } else { -+ /* anhanguera - 20070701 -+ * -+ * here we know that, system has no idea about 'fd'. if caller requested -+ * information about 'fd', return '-1' and set errno to 'EBADF'. we should -+ * increse the count and set exceptfd for fd, but it is safe to obey select -+ * manual. -+ * -+ * from manual; -+ * On error, -1 is returned, and errno is set appropriately; the sets and -+ * timeout become undefined, so do not rely on their contents after an error. -+ */ -+ if ((readfds && FD_ISSET(fd, readfds)) || -+ (writefds && FD_ISSET(fd, writefds)) || -+ (exceptfds && FD_ISSET(fd, exceptfds))) { -+ errno = EBADF; -+ return -1; -+ } -+ } -+ } -+ -+ if (count > 0) { -+ if (readfds) -+ *readfds = ready_readfds; -+ if (writefds) -+ *writefds = ready_writefds; -+ if (exceptfds) -+ *exceptfds = ready_exceptfds; -+ } -+ -+ return count; -+} -+ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/socket.c newlib-1.17.0-psp/newlib/libc/sys/psp/socket.c ---- newlib-1.17.0/newlib/libc/sys/psp/socket.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/socket.c 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,390 @@ -+/* -+ * PSP Software Development Kit - http://www.pspdev.org -+ * ----------------------------------------------------------------------- -+ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. -+ * -+ * socket.c - Socket wrappers to provide similar functions to normal unix -+ * -+ * Copyright (c) 2005 Marcus R. Brown -+ * Copyright (c) 2005 James Forshaw -+ * -+ */ -+#include -+#include -+#include -+#include -+#include -+#include -+ -+#include -+#include "fdman.h" -+ -+#ifdef F_socket -+int socket(int domain, int type, int protocol) -+{ -+ int sock, scesock; -+ int i; -+ -+ scesock = sceNetInetSocket(domain, type, protocol); -+ if(scesock < 0) { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ sock = __psp_fdman_get_new_descriptor(); -+ if( sock != -1 ) { -+ __psp_descriptormap[sock]->sce_descriptor = scesock; -+ __psp_descriptormap[sock]->type = __PSP_DESCRIPTOR_TYPE_SOCKET; -+ } -+ else { -+ sceNetInetClose(scesock); -+ errno = ENOENT; -+ return -1; -+ } -+ -+ return sock; -+} -+ -+/* These are glue routines that are called from _close(), _read(), and -+ _write(). They are here so that any program that uses socket() will pull -+ them in and have expanded socket capability. */ -+ -+int __psp_socket_close(int sock) -+{ -+ int ret = 0; -+ -+ if (__psp_descriptormap[sock]->ref_count == 1) { -+ ret = sceNetInetClose(__psp_descriptormap[sock]->sce_descriptor); -+ } -+ -+ __psp_fdman_release_descriptor(sock); -+ -+ if(ret < 0) -+ { -+ /* If close is defined likely errno is */ -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return 0; -+} -+ -+ssize_t __psp_socket_recv(int s, void *buf, size_t len, int flags) -+{ -+ return recv(s, buf, len, flags); -+} -+ -+ssize_t __psp_socket_send(int s, const void *buf, size_t len, int flags) -+{ -+ return send(s, buf, len, flags); -+} -+#endif -+ -+#ifdef F_accept -+int accept(int s, struct sockaddr *addr, socklen_t *addrlen) -+{ -+ int newscesock, newsock; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ newscesock = sceNetInetAccept(__psp_descriptormap[s]->sce_descriptor, addr, addrlen); -+ if( (newscesock >= 0) ) { -+ newsock = __psp_fdman_get_new_descriptor(); -+ if ( newsock != -1 ) { -+ __psp_descriptormap[newsock]->sce_descriptor = newscesock; -+ __psp_descriptormap[newsock]->type = __PSP_DESCRIPTOR_TYPE_SOCKET; -+ } -+ else { -+ sceNetInetClose(newscesock); -+ errno = ENOENT; -+ return -1; -+ } -+ } -+ else { -+ errno = ENOENT; -+ return -1; -+ } -+ -+ return newsock; -+} -+#endif -+ -+#ifdef F_bind -+int bind(int s, const struct sockaddr *my_addr, socklen_t addrlen) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetBind(__psp_descriptormap[s]->sce_descriptor, my_addr, addrlen); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return 0; -+} -+#endif -+ -+#ifdef F_connect -+int connect(int s, const struct sockaddr *serv_addr, socklen_t addrlen) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetConnect(__psp_descriptormap[s]->sce_descriptor, serv_addr, addrlen); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return 0; -+} -+#endif -+ -+#ifdef F_setsockopt -+int getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetGetsockopt(__psp_descriptormap[s]->sce_descriptor, level, optname, optval, optlen); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return 0; -+} -+#endif -+ -+#ifdef F_listen -+int listen(int s, int backlog) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetListen(__psp_descriptormap[s]->sce_descriptor, backlog); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return 0; -+} -+#endif -+ -+#ifdef F_recv -+ssize_t recv(int s, void *buf, size_t len, int flags) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetRecv(__psp_descriptormap[s]->sce_descriptor, buf, len, flags); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return ret; -+} -+#endif -+ -+#ifdef F_recvfrom -+ssize_t recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetRecvfrom(__psp_descriptormap[s]->sce_descriptor, buf, len, flags, from, fromlen); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return ret; -+} -+#endif -+ -+#ifdef F_send -+ssize_t send(int s, const void *buf, size_t len, int flags) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetSend(__psp_descriptormap[s]->sce_descriptor, buf, len, flags); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return ret; -+} -+#endif -+ -+#ifdef F_sendto -+ssize_t sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetSendto(__psp_descriptormap[s]->sce_descriptor, buf, len, flags, to, tolen); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return ret; -+} -+#endif -+ -+#ifdef F_setsockopt -+int setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetSetsockopt(__psp_descriptormap[s]->sce_descriptor, level, optname, optval, optlen); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ else -+ { -+ if ( (level == SOL_SOCKET) && (optname == SO_NONBLOCK) ) { -+ if (*((int*)optval) == 1) { -+ __psp_descriptormap[s]->flags |= O_NONBLOCK; -+ } -+ else { -+ __psp_descriptormap[s]->flags &= ~O_NONBLOCK; -+ } -+ } -+ } -+ -+ return 0; -+} -+#endif -+ -+#ifdef F_shutdown -+int shutdown(int s, int how) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetShutdown(__psp_descriptormap[s]->sce_descriptor, how); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return 0; -+} -+#endif -+ -+#ifdef F_getpeername -+int getpeername(int s, struct sockaddr *name, socklen_t *namelen) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetGetpeername(__psp_descriptormap[s]->sce_descriptor, name, namelen); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return 0; -+} -+#endif -+ -+#ifdef F_getsockname -+int getsockname(int s, struct sockaddr *name, socklen_t *namelen) -+{ -+ int ret; -+ -+ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { -+ errno = EBADF; -+ return -1; -+ } -+ -+ ret = sceNetInetGetsockname(__psp_descriptormap[s]->sce_descriptor, name, namelen); -+ if(ret < 0) -+ { -+ errno = sceNetInetGetErrno(); -+ return -1; -+ } -+ -+ return 0; -+} -+#endif -+ -+#ifdef F_inet_ntoa -+char *inet_ntoa(struct in_addr in) -+{ -+ static char ip_addr[INET_ADDRSTRLEN+1]; -+ -+ if(sceNetInetInetNtop(AF_INET, &in, ip_addr, INET_ADDRSTRLEN) == NULL) -+ { -+ strcpy(ip_addr, "Invalid"); -+ } -+ -+ return ip_addr; -+} -+#endif -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/sys/dirent.h newlib-1.17.0-psp/newlib/libc/sys/psp/sys/dirent.h ---- newlib-1.17.0/newlib/libc/sys/psp/sys/dirent.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/sys/dirent.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,39 @@ -+#ifndef _SYS_DIRENT_H -+#define _SYS_DIRENT_H -+ -+/* PSP dirent.h, based on pspiofilemgr_dirent.h -+ by Jim Paris */ -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+#include -+ -+#define MAXNAMLEN 255 -+ -+/* Same as SceIoDirent, just with a different name. */ -+struct dirent { -+ /** File status. */ -+ SceIoStat d_stat; -+ /** File name. */ -+ char d_name[256]; -+ /** Device-specific data. */ -+ void * d_private; -+ int dummy; -+}; -+ -+typedef struct { -+ SceUID uid; -+ struct dirent de; -+} DIR; -+ -+DIR *opendir (const char *); -+struct dirent *readdir (DIR *); -+int closedir (DIR *); -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/sys/errno.h newlib-1.17.0-psp/newlib/libc/sys/psp/sys/errno.h ---- newlib-1.17.0/newlib/libc/sys/psp/sys/errno.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/sys/errno.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,158 @@ -+/* errno.h for PSP, based on newlib/libc/include/sys/errno.h. */ -+ -+#ifndef _SYS_ERRNO_H_ -+#ifdef __cplusplus -+extern "C" { -+#endif -+#define _SYS_ERRNO_H_ -+ -+#include -+ -+#ifndef _REENT_ONLY -+#define errno (*__errno()) -+extern int *__errno _PARAMS ((void)); -+#endif -+ -+/* Please don't use these variables directly. -+ Use strerror instead. */ -+extern __IMPORT _CONST char * _CONST _sys_errlist[]; -+extern __IMPORT int _sys_nerr; -+#ifdef __CYGWIN__ -+extern __IMPORT const char * const sys_errlist[]; -+extern __IMPORT int sys_nerr; -+#endif -+ -+#define __errno_r(ptr) ((ptr)->_errno) -+ -+#define EPERM 1 /* Not super-user */ -+#define ENOENT 2 /* No such file or directory */ -+#define ESRCH 3 /* No such process */ -+#define EINTR 4 /* Interrupted system call */ -+#define EIO 5 /* I/O error */ -+#define ENXIO 6 /* No such device or address */ -+#define E2BIG 7 /* Arg list too long */ -+#define ENOEXEC 8 /* Exec format error */ -+#define EBADF 9 /* Bad file number */ -+#define ECHILD 10 /* No children */ -+#define EAGAIN 11 /* No more processes */ -+#define ENOMEM 12 /* Not enough core */ -+#define EACCES 13 /* Permission denied */ -+#define EFAULT 14 /* Bad address */ -+#define ENOTBLK 15 /* Block device required */ -+#define EBUSY 16 /* Mount device busy */ -+#define EEXIST 17 /* File exists */ -+#define EXDEV 18 /* Cross-device link */ -+#define ENODEV 19 /* No such device */ -+#define ENOTDIR 20 /* Not a directory */ -+#define EISDIR 21 /* Is a directory */ -+#define EINVAL 22 /* Invalid argument */ -+#define ENFILE 23 /* Too many open files in system */ -+#define EMFILE 24 /* Too many open files */ -+#define ENOTTY 25 /* Not a typewriter */ -+#define ETXTBSY 26 /* Text file busy */ -+#define EFBIG 27 /* File too large */ -+#define ENOSPC 28 /* No space left on device */ -+#define ESPIPE 29 /* Illegal seek */ -+#define EROFS 30 /* Read only file system */ -+#define EMLINK 31 /* Too many links */ -+#define EPIPE 32 /* Broken pipe */ -+#define EDOM 33 /* Math arg out of domain of func */ -+#define ERANGE 34 /* Math result not representable */ -+#define ENOMSG 35 /* No message of desired type */ -+#define EIDRM 36 /* Identifier removed */ -+#define ECHRNG 37 /* Channel number out of range */ -+#define EL2NSYNC 38 /* Level 2 not synchronized */ -+#define EL3HLT 39 /* Level 3 halted */ -+#define EL3RST 40 /* Level 3 reset */ -+#define ELNRNG 41 /* Link number out of range */ -+#define EUNATCH 42 /* Protocol driver not attached */ -+#define ENOCSI 43 /* No CSI structure available */ -+#define EL2HLT 44 /* Level 2 halted */ -+#define EDEADLK 45 /* Deadlock condition */ -+#define ENOLCK 46 /* No record locks available */ -+#define EBADE 50 /* Invalid exchange */ -+#define EBADR 51 /* Invalid request descriptor */ -+#define EXFULL 52 /* Exchange full */ -+#define ENOANO 53 /* No anode */ -+#define EBADRQC 54 /* Invalid request code */ -+#define EBADSLT 55 /* Invalid slot */ -+#define EDEADLOCK 56 /* File locking deadlock error */ -+#define EBFONT 57 /* Bad font file fmt */ -+#define ENOSTR 60 /* Device not a stream */ -+#define ENODATA 61 /* No data (for no delay io) */ -+#define ETIME 62 /* Timer expired */ -+#define ENOSR 63 /* Out of streams resources */ -+#define ENONET 64 /* Machine is not on the network */ -+#define ENOPKG 65 /* Package not installed */ -+#define EREMOTE 66 /* The object is remote */ -+#define ENOLINK 67 /* The link has been severed */ -+#define EADV 68 /* Advertise error */ -+#define ESRMNT 69 /* Srmount error */ -+#define ECOMM 70 /* Communication error on send */ -+#define EPROTO 71 /* Protocol error */ -+#define EMULTIHOP 74 /* Multihop attempted */ -+#define ELBIN 75 /* Inode is remote (not really error) */ -+#define EDOTDOT 76 /* Cross mount point (not really error) */ -+#define EBADMSG 77 /* Trying to read unreadable message */ -+#define EFTYPE 79 /* Inappropriate file type or format */ -+#define ENOTUNIQ 80 /* Given log. name not unique */ -+#define EBADFD 81 /* f.d. invalid for this operation */ -+#define EREMCHG 82 /* Remote address changed */ -+#define ELIBACC 83 /* Can't access a needed shared lib */ -+#define ELIBBAD 84 /* Accessing a corrupted shared lib */ -+#define ELIBSCN 85 /* .lib section in a.out corrupted */ -+#define ELIBMAX 86 /* Attempting to link in too many libs */ -+#define ELIBEXEC 87 /* Attempting to exec a shared library */ -+#define ENOSYS 88 /* Function not implemented */ -+#define ENMFILE 89 /* No more files */ -+#define ENOTEMPTY 90 /* Directory not empty */ -+#define ENAMETOOLONG 91 /* File or path name too long */ -+#define ELOOP 92 /* Too many symbolic links */ -+#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ -+#define EPFNOSUPPORT 96 /* Protocol family not supported */ -+#define ECONNRESET 104 /* Connection reset by peer */ -+#define ENOBUFS 105 /* No buffer space available */ -+#define EAFNOSUPPORT 106 /* Address family not supported by protocol family */ -+#define EPROTOTYPE 107 /* Protocol wrong type for socket */ -+#define ENOTSOCK 108 /* Socket operation on non-socket */ -+#define ENOPROTOOPT 109 /* Protocol not available */ -+#define ESHUTDOWN 110 /* Can't send after socket shutdown */ -+#define ECONNREFUSED 111 /* Connection refused */ -+#define EADDRINUSE 112 /* Address already in use */ -+#define ECONNABORTED 113 /* Connection aborted */ -+#define ENETUNREACH 114 /* Network is unreachable */ -+#define ENETDOWN 115 /* Network interface is not configured */ -+#define ETIMEDOUT 116 /* Connection timed out */ -+#define EHOSTDOWN 117 /* Host is down */ -+#define EHOSTUNREACH 118 /* Host is unreachable */ -+#define EINPROGRESS 119 /* Connection already in progress */ -+#define EALREADY 120 /* Socket already connected */ -+#define EDESTADDRREQ 121 /* Destination address required */ -+#define EMSGSIZE 122 /* Message too long */ -+#define EPROTONOSUPPORT 123 /* Unknown protocol */ -+#define ESOCKTNOSUPPORT 124 /* Socket type not supported */ -+#define EADDRNOTAVAIL 125 /* Address not available */ -+#define ENETRESET 126 -+#define EISCONN 127 /* Socket is already connected */ -+#define ENOTCONN 128 /* Socket is not connected */ -+#define ETOOMANYREFS 129 -+#define EPROCLIM 130 -+#define EUSERS 131 -+#define EDQUOT 132 -+#define ESTALE 133 -+#define ENOTSUP 134 /* Not supported */ -+#define ENOMEDIUM 135 /* No medium (in tape drive) */ -+#define ENOSHARE 136 /* No such host or network path */ -+#define ECASECLASH 137 /* Filename exists with different case */ -+#define EILSEQ 138 -+#define EOVERFLOW 139 /* Value too large for defined data type */ -+ -+/* From cygwin32. */ -+#define EWOULDBLOCK EAGAIN /* Operation would block */ -+ -+#define __ELASTERROR 2000 /* Users can add values starting here */ -+ -+#ifdef __cplusplus -+} -+#endif -+#endif /* _SYS_ERRNO_H */ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/sys/fd_set.h newlib-1.17.0-psp/newlib/libc/sys/psp/sys/fd_set.h ---- newlib-1.17.0/newlib/libc/sys/psp/sys/fd_set.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/sys/fd_set.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,69 @@ -+/* $NetBSD: fd_set.h,v 1.1 2005/05/22 12:44:24 kleink Exp $ */ -+ -+/*- -+ * Copyright (c) 1992, 1993 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ * from: @(#)types.h 8.4 (Berkeley) 1/21/94 -+ */ -+ -+#ifndef _SYS_FD_SET_H_ -+#define _SYS_FD_SET_H_ -+ -+#include -+#include -+ -+/* -+ * Implementation dependent defines, hidden from user space. X/Open does not -+ * specify them. -+ */ -+#define __NBBY 8 /* number of bits in a byte */ -+typedef uint32_t __fd_mask; -+ -+/* bits per mask */ -+#define __NFDBITS ((unsigned int)sizeof(__fd_mask) * __NBBY) -+ -+#define __howmany(x, y) (((x) + ((y) - 1)) / (y)) -+ -+#define FD_SETSIZE 256 -+ -+typedef struct fd_set { -+ __fd_mask fds_bits[__howmany(FD_SETSIZE, __NFDBITS)]; -+} fd_set; -+ -+#define FD_SET(n, p) \ -+ ((p)->fds_bits[(n) /__NFDBITS] |= (1 << ((n) % __NFDBITS))) -+ -+#define FD_CLR(n, p) \ -+ ((p)->fds_bits[(n) /__NFDBITS] &= ~(1 << ((n) % __NFDBITS))) -+ -+#define FD_ISSET(n, p) \ -+ ((p)->fds_bits[(n) /__NFDBITS] & (1 << ((n) % __NFDBITS))) -+ -+#define FD_ZERO(p) (void)__builtin_memset((p), 0, sizeof(*(p))) -+ -+#endif /* _SYS_FD_SET_H_ */ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/sys/ioctl.h newlib-1.17.0-psp/newlib/libc/sys/psp/sys/ioctl.h ---- newlib-1.17.0/newlib/libc/sys/psp/sys/ioctl.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/sys/ioctl.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1 @@ -+/* Empty file, here for compatibility */ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/sys/select.h newlib-1.17.0-psp/newlib/libc/sys/psp/sys/select.h ---- newlib-1.17.0/newlib/libc/sys/psp/sys/select.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/sys/select.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,54 @@ -+/* $NetBSD: select.h,v 1.24 2005/05/22 12:44:24 kleink Exp $ */ -+ -+/*- -+ * Copyright (c) 1992, 1993 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ * @(#)select.h 8.2 (Berkeley) 1/4/94 -+ */ -+ -+#ifndef _SYS_SELECT_H_ -+#define _SYS_SELECT_H_ -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+#include -+#include -+ -+int sceNetInetSelect(int n, fd_set *readfds, fd_set *writefds, -+ fd_set *exceptfds, struct timeval *timeout); -+ -+int select(int n, fd_set *readfds, fd_set *writefds, -+ fd_set *exceptfds, struct timeval *timeout); -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif /* !_SYS_SELECT_H_ */ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/sys/socket.h newlib-1.17.0-psp/newlib/libc/sys/psp/sys/socket.h ---- newlib-1.17.0/newlib/libc/sys/psp/sys/socket.h 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/sys/socket.h 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,294 @@ -+/* $NetBSD: socket.h,v 1.77 2005/11/29 03:12:16 christos Exp $ */ -+ -+/* -+ * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. -+ * All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. Neither the name of the project nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ */ -+ -+/* -+ * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ * @(#)socket.h 8.6 (Berkeley) 5/3/95 -+ */ -+ -+#ifndef _SYS_SOCKET_H_ -+#define _SYS_SOCKET_H_ -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+#include -+#include -+#include -+ -+typedef uint8_t sa_family_t; -+typedef uint32_t socklen_t; -+ -+/* -+ * Socket types. -+ */ -+#define SOCK_STREAM 1 /* stream socket */ -+#define SOCK_DGRAM 2 /* datagram socket */ -+#define SOCK_RAW 3 /* raw-protocol interface */ -+#define SOCK_RDM 4 /* reliably-delivered message */ -+#define SOCK_SEQPACKET 5 /* sequenced packet stream */ -+ -+/* -+ * Option flags per-socket. -+ */ -+#define SO_DEBUG 0x0001 /* turn on debugging info recording */ -+#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ -+#define SO_REUSEADDR 0x0004 /* allow local address reuse */ -+#define SO_KEEPALIVE 0x0008 /* keep connections alive */ -+#define SO_DONTROUTE 0x0010 /* just use interface addresses */ -+#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */ -+#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */ -+#define SO_LINGER 0x0080 /* linger on close if data present */ -+#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ -+#define SO_REUSEPORT 0x0200 /* allow local address & port reuse */ -+#define SO_TIMESTAMP 0x0400 /* timestamp received dgram traffic */ -+ -+/* -+ * Additional options, not kept in so_options. -+ */ -+#define SO_SNDBUF 0x1001 /* send buffer size */ -+#define SO_RCVBUF 0x1002 /* receive buffer size */ -+#define SO_SNDLOWAT 0x1003 /* send low-water mark */ -+#define SO_RCVLOWAT 0x1004 /* receive low-water mark */ -+#define SO_SNDTIMEO 0x1005 /* send timeout */ -+#define SO_RCVTIMEO 0x1006 /* receive timeout */ -+#define SO_ERROR 0x1007 /* get error status and clear */ -+#define SO_TYPE 0x1008 /* get socket type */ -+#define SO_OVERFLOWED 0x1009 /* datagrams: return packets dropped */ -+#define SO_NONBLOCK 0x1009 /* non-blocking I/O */ -+ -+/* -+ * Structure used for manipulating linger option. -+ */ -+struct linger { -+ int l_onoff; /* option on/off */ -+ int l_linger; /* linger time in seconds */ -+}; -+ -+/* -+ * Level number for (get/set)sockopt() to apply to socket itself. -+ */ -+#define SOL_SOCKET 0xffff /* options for socket level */ -+ -+/* -+ * Address families. -+ */ -+#define AF_UNSPEC 0 /* unspecified */ -+#define AF_LOCAL 1 /* local to host (pipes, portals) */ -+#define AF_UNIX AF_LOCAL /* backward compatibility */ -+#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ -+#define AF_IMPLINK 3 /* arpanet imp addresses */ -+#define AF_PUP 4 /* pup protocols: e.g. BSP */ -+#define AF_CHAOS 5 /* mit CHAOS protocols */ -+#define AF_NS 6 /* XEROX NS protocols */ -+#define AF_ISO 7 /* ISO protocols */ -+#define AF_OSI AF_ISO -+#define AF_ECMA 8 /* european computer manufacturers */ -+#define AF_DATAKIT 9 /* datakit protocols */ -+#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ -+#define AF_SNA 11 /* IBM SNA */ -+#define AF_DECnet 12 /* DECnet */ -+#define AF_DLI 13 /* DEC Direct data link interface */ -+#define AF_LAT 14 /* LAT */ -+#define AF_HYLINK 15 /* NSC Hyperchannel */ -+#define AF_APPLETALK 16 /* Apple Talk */ -+#define AF_ROUTE 17 /* Internal Routing Protocol */ -+#define AF_LINK 18 /* Link layer interface */ -+#define AF_COIP 20 /* connection-oriented IP, aka ST II */ -+#define AF_CNT 21 /* Computer Network Technology */ -+#define AF_IPX 23 /* Novell Internet Protocol */ -+#define AF_INET6 24 /* IP version 6 */ -+#define AF_ISDN 26 /* Integrated Services Digital Network*/ -+#define AF_E164 AF_ISDN /* CCITT E.164 recommendation */ -+#define AF_NATM 27 /* native ATM access */ -+#define AF_ARP 28 /* (rev.) addr. res. prot. (RFC 826) */ -+#define AF_MAX 31 -+ -+/* -+ * Structure used by kernel to store most -+ * addresses. -+ */ -+struct sockaddr { -+ uint8_t sa_len; /* total length */ -+ sa_family_t sa_family; /* address family */ -+ char sa_data[14]; /* actually longer; address value */ -+}; -+ -+/* -+ * Protocol families, same as address families for now. -+ */ -+#define PF_UNSPEC AF_UNSPEC -+#define PF_LOCAL AF_LOCAL -+#define PF_UNIX PF_LOCAL /* backward compatibility */ -+#define PF_INET AF_INET -+#define PF_IMPLINK AF_IMPLINK -+#define PF_PUP AF_PUP -+#define PF_CHAOS AF_CHAOS -+#define PF_NS AF_NS -+#define PF_ISO AF_ISO -+#define PF_OSI AF_ISO -+#define PF_ECMA AF_ECMA -+#define PF_DATAKIT AF_DATAKIT -+#define PF_CCITT AF_CCITT -+#define PF_SNA AF_SNA -+#define PF_DECnet AF_DECnet -+#define PF_DLI AF_DLI -+#define PF_LAT AF_LAT -+#define PF_HYLINK AF_HYLINK -+#define PF_APPLETALK AF_APPLETALK -+#define PF_ROUTE AF_ROUTE -+#define PF_LINK AF_LINK -+#if defined(_NETBSD_SOURCE) -+#define PF_XTP pseudo_AF_XTP /* really just proto family, no AF */ -+#endif -+#define PF_COIP AF_COIP -+#define PF_CNT AF_CNT -+#define PF_INET6 AF_INET6 -+#define PF_IPX AF_IPX /* same format as AF_NS */ -+#if defined(_NETBSD_SOURCE) -+#define PF_RTIP pseudo_AF_RTIP /* same format as AF_INET */ -+#define PF_PIP pseudo_AF_PIP -+#endif -+#define PF_ISDN AF_ISDN /* same as E164 */ -+#define PF_E164 AF_E164 -+#define PF_NATM AF_NATM -+#define PF_ARP AF_ARP -+#if defined(_NETBSD_SOURCE) -+#define PF_KEY pseudo_AF_KEY /* like PF_ROUTE, only for key mgmt */ -+#endif -+ -+#define PF_MAX AF_MAX -+ -+#define MSG_OOB 0x1 /* process out-of-band data */ -+#define MSG_PEEK 0x2 /* peek at incoming message */ -+#define MSG_DONTROUTE 0x4 /* send without using routing tables */ -+#define MSG_EOR 0x8 /* data completes record */ -+#define MSG_TRUNC 0x10 /* data discarded before delivery */ -+#define MSG_CTRUNC 0x20 /* control data lost before delivery */ -+#define MSG_WAITALL 0x40 /* wait for full request or error */ -+#define MSG_DONTWAIT 0x80 /* this message should be nonblocking */ -+#define MSG_BCAST 0x100 /* this message was rcvd using link-level brdcst */ -+#define MSG_MCAST 0x200 /* this message was rcvd using link-level mcast */ -+ -+/* -+ * Types of socket shutdown(2). -+ */ -+#define SHUT_RD 0 /* Disallow further receives. */ -+#define SHUT_WR 1 /* Disallow further sends. */ -+#define SHUT_RDWR 2 /* Disallow further sends/receives. */ -+ -+struct iovec { -+ void *iov_base; /* Base address. */ -+ size_t iov_len; /* Length. */ -+}; -+ -+struct msghdr { -+ void *msg_name; /* optional address */ -+ socklen_t msg_namelen; /* size of address */ -+ struct iovec *msg_iov; /* scatter/gather array */ -+ int msg_iovlen; /* # elements in msg_iov */ -+ void *msg_control; /* ancillary data, see below */ -+ socklen_t msg_controllen; /* ancillary data buffer len */ -+ int msg_flags; /* flags on received message */ -+}; -+ -+/* BSD-compatible socket API. */ -+int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); -+int bind(int, const struct sockaddr *, socklen_t); -+int connect(int, const struct sockaddr *, socklen_t); -+int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); -+int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); -+int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); -+int listen(int, int); -+ssize_t recv(int, void *, size_t, int); -+ssize_t recvfrom(int, void * __restrict, size_t, int, -+ struct sockaddr * __restrict, socklen_t * __restrict); -+ssize_t recvmsg(int s, struct msghdr *msg, int flags); -+ssize_t send(int, const void *, size_t, int); -+ssize_t sendto(int, const void *, -+ size_t, int, const struct sockaddr *, socklen_t); -+ssize_t sendmsg(int s, const struct msghdr *msg, int flags); -+int setsockopt(int, int, int, const void *, socklen_t); -+int shutdown(int, int); -+int socket(int, int, int); -+ -+/* sceNetInet socket API. */ -+int sceNetInetAccept(int s, struct sockaddr *addr, socklen_t *addrlen); -+int sceNetInetBind(int s, const struct sockaddr *my_addr, socklen_t addrlen); -+int sceNetInetConnect(int s, const struct sockaddr *serv_addr, socklen_t addrlen); -+int sceNetInetGetsockopt(int s, int level, int optname, void *optval, socklen_t *optlen); -+int sceNetInetListen(int s, int backlog); -+ssize_t sceNetInetRecv(int s, void *buf, size_t len, int flags); -+ssize_t sceNetInetRecvfrom(int s, void *buf, size_t flags, int, struct sockaddr *from, socklen_t *fromlen); -+ssize_t sceNetInetRecvmsg(int s, struct msghdr *msg, int flags); -+ssize_t sceNetInetSend(int s, const void *buf, size_t len, int flags); -+ssize_t sceNetInetSendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); -+ssize_t sceNetInetSendmsg(int s, const struct msghdr *msg, int flags); -+int sceNetInetSetsockopt(int s, int level, int optname, const void *optval, socklen_t optlen); -+int sceNetInetShutdown(int s, int how); -+int sceNetInetSocket(int domain, int type, int protocol); -+int sceNetInetClose(int s); -+int sceNetInetGetErrno(void); -+int sceNetInetGetsockname(int s, struct sockaddr *name, socklen_t *namelen); -+int sceNetInetGetpeername(int s, struct sockaddr *name, socklen_t *namelen); -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif /* !_SYS_SOCKET_H_ */ -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/syscalls.c newlib-1.17.0-psp/newlib/libc/sys/psp/syscalls.c ---- newlib-1.17.0/newlib/libc/sys/psp/syscalls.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/syscalls.c 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,19 @@ -+/* -+ * PSP Software Development Kit - http://www.pspdev.org -+ * ----------------------------------------------------------------------- -+ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. -+ * -+ * syscalls.c - functions in systeam namespace goes here -+ * -+ * Copyright (c) 2007 Alper Akcan "anhanguera" -+ * -+ */ -+ -+#include -+ -+int __psp_set_errno (int code); -+ -+time_t _times (time_t *t) -+{ -+ return __psp_set_errno(sceKernelLibcTime(t)); -+} -diff -Nbaur newlib-1.17.0/newlib/libc/sys/psp/xprintf.c newlib-1.17.0-psp/newlib/libc/sys/psp/xprintf.c ---- newlib-1.17.0/newlib/libc/sys/psp/xprintf.c 1970-01-01 01:00:00.000000000 +0100 -+++ newlib-1.17.0-psp/newlib/libc/sys/psp/xprintf.c 2009-02-11 09:56:27.000000000 +0000 -@@ -0,0 +1,984 @@ -+/* -+ * PSP Software Development Kit - http://www.pspdev.org -+ * ----------------------------------------------------------------------- -+ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. -+ * -+ * xprintf.c - Various *printf functions. -+ * -+ * Copyright (c) 2005 Marcus R. Brown -+ * Copyright (c) 2005 James Forshaw -+ * Copyright (c) 2005 John Kelley -+ * -+ * $Id: newlib-1.13.0.patch 1891 2006-05-02 15:32:28Z raf $ -+ */ -+/* Code borrowed from mysql's xprintf.c, by Richard Hipp */ -+/* This xprintf.c file on which this one is based is in public domain. */ -+ -+#include -+#include -+#include -+ -+#include -+#include -+ -+/* -+** The maximum number of digits of accuracy in a floating-point conversion. -+*/ -+#define MAXDIG 20 -+ -+/* Instead of including ctype.h, use the isdigit() prototype because psplibc doesn't -+ know about newlib, and newlib defines isdigit as a macro that uses _ctype_. */ -+int isdigit(int __c); -+ -+int vxprintf(void (*func)(char *, int, void *), void *arg, const char *format, va_list ap); -+ -+#ifdef F_vxprintf -+/* -+** Conversion types fall into various categories as defined by the -+** following enumeration. -+*/ -+ -+enum e_type { /* The type of the format field */ -+ RADIX, /* Integer types. %d, %x, %o, and so forth */ -+ FLOAT, /* Floating point. %f */ -+ EXP, /* Exponentional notation. %e and %E */ -+ GENERIC, /* Floating or exponential, depending on exponent. %g */ -+ SIZE, /* Return number of characters processed so far. %n */ -+ STRING, /* Strings. %s */ -+ PERCENT, /* Percent symbol. %% */ -+ CHAR, /* Characters. %c */ -+ ERROR, /* Used to indicate no such conversion type */ -+/* The rest are extensions, not normally found in printf() */ -+ CHARLIT, /* Literal characters. %' */ -+ SEEIT, /* Strings with visible control characters. %S */ -+ MEM_STRING, /* A string which should be deleted after use. %z */ -+ ORDINAL, /* 1st, 2nd, 3rd and so forth */ -+}; -+ -+/* -+** Each builtin conversion character (ex: the 'd' in "%d") is described -+** by an instance of the following structure -+*/ -+typedef struct s_info { /* Information about each format field */ -+ int fmttype; /* The format field code letter */ -+ int base; /* The base for radix conversion */ -+ char *charset; /* The character set for conversion */ -+ int flag_signed; /* Is the quantity signed? */ -+ char *prefix; /* Prefix on non-zero values in alt format */ -+ enum e_type type; /* Conversion paradigm */ -+} info; -+ -+/* -+** The following table is searched linearly, so it is good to put the -+** most frequently used conversion types first. -+*/ -+static info fmtinfo[] = { -+ { 'd', 10, "0123456789", 1, 0, RADIX, }, -+ { 's', 0, 0, 0, 0, STRING, }, -+ { 'S', 0, 0, 0, 0, SEEIT, }, -+ { 'z', 0, 0, 0, 0, MEM_STRING, }, -+ { 'c', 0, 0, 0, 0, CHAR, }, -+ { 'o', 8, "01234567", 0, "0", RADIX, }, -+ { 'u', 10, "0123456789", 0, 0, RADIX, }, -+ { 'x', 16, "0123456789abcdef", 0, "x0", RADIX, }, -+ { 'X', 16, "0123456789ABCDEF", 0, "X0", RADIX, }, -+ { 'r', 10, "0123456789", 0, 0, ORDINAL, }, -+ { 'f', 0, 0, 1, 0, FLOAT, }, -+ { 'e', 0, "e", 1, 0, EXP, }, -+ { 'E', 0, "E", 1, 0, EXP, }, -+ { 'g', 0, "e", 1, 0, GENERIC, }, -+ { 'G', 0, "E", 1, 0, GENERIC, }, -+ { 'i', 10, "0123456789", 1, 0, RADIX, }, -+ { 'n', 0, 0, 0, 0, SIZE, }, -+ { 'S', 0, 0, 0, 0, SEEIT, }, -+ { '%', 0, 0, 0, 0, PERCENT, }, -+ { 'b', 2, "01", 0, "b0", RADIX, }, /* Binary notation */ -+ { 'p', 16, "0123456789ABCDEF", 0, "x0", RADIX, }, /* Pointers */ -+ { '\'', 0, 0, 0, 0, CHARLIT, }, /* Literal char */ -+}; -+#define NINFO (sizeof(fmtinfo)/sizeof(info)) /* Size of the fmtinfo table */ -+ -+/* -+** If NOFLOATINGPOINT is defined, then none of the floating point -+** conversions will work. -+*/ -+#ifndef NOFLOATINGPOINT -+/* -+** "*val" is a double such that 0.1 <= *val < 10.0 -+** Return the ascii code for the leading digit of *val, then -+** multiply "*val" by 10.0 to renormalize. -+** -+** Example: -+** input: *val = 3.14159 -+** output: *val = 1.4159 function return = '3' -+** -+** The counter *cnt is incremented each time. After counter exceeds -+** 16 (the number of significant digits in a 64-bit float) '0' is -+** always returned. -+*/ -+static int getdigit(long double *val, int *cnt){ -+ int digit; -+ long double d; -+ if( (*cnt)++ >= MAXDIG ) return '0'; -+ digit = (int)*val; -+ d = digit; -+ digit += '0'; -+ *val = (*val - d)*10.0; -+ return digit; -+} -+#endif -+ -+/* -+** Setting the size of the BUFFER involves trade-offs. No %d or %f -+** conversion can have more than BUFSIZE characters. If the field -+** width is larger than BUFSIZE, it is silently shortened. On the -+** other hand, this routine consumes more stack space with larger -+** BUFSIZEs. If you have some threads for which you want to minimize -+** stack space, you should keep BUFSIZE small. -+*/ -+#define BUFSIZE 100 /* Size of the output buffer */ -+ -+/* -+** The root program. All variations call this core. -+** -+** INPUTS: -+** func This is a pointer to a function taking three arguments -+** 1. A pointer to the list of characters to be output -+** (Note, this list is NOT null terminated.) -+** 2. An integer number of characters to be output. -+** (Note: This number might be zero.) -+** 3. A pointer to anything. Same as the "arg" parameter. -+** -+** arg This is the pointer to anything which will be passed as the -+** third argument to "func". Use it for whatever you like. -+** -+** fmt This is the format string, as in the usual print. -+** -+** ap This is a pointer to a list of arguments. Same as in -+** vfprint. -+** -+** OUTPUTS: -+** The return value is the total number of characters sent to -+** the function "func". Returns -1 on a error. -+** -+** Note that the order in which automatic variables are declared below -+** seems to make a big difference in determining how fast this beast -+** will run. -+*/ -+ -+int vxprintf(func,arg,format,ap) -+ void (*func)(char*,int,void*); -+ void *arg; -+ const char *format; -+ va_list ap; -+{ -+ register const char *fmt; /* The format string. */ -+ register int c; /* Next character in the format string */ -+ register char *bufpt; /* Pointer to the conversion buffer */ -+ register int precision; /* Precision of the current field */ -+ register int length; /* Length of the field */ -+ register int idx; /* A general purpose loop counter */ -+ int count; /* Total number of characters output */ -+ int width; /* Width of the current field */ -+ int flag_leftjustify; /* True if "-" flag is present */ -+ int flag_plussign; /* True if "+" flag is present */ -+ int flag_blanksign; /* True if " " flag is present */ -+ int flag_alternateform; /* True if "#" flag is present */ -+ int flag_zeropad; /* True if field width constant starts with zero */ -+ int flag_long; /* True if "l" flag is present */ -+ int flag_center; /* True if "=" flag is present */ -+ unsigned long long longvalue; /* Value for integer types */ -+ -+ long double realvalue; /* Value for real types */ -+ info *infop; /* Pointer to the appropriate info structure */ -+ char buf[BUFSIZE]; /* Conversion buffer */ -+ char prefix; /* Prefix character. "+" or "-" or " " or '\0'. */ -+ int errorflag = 0; /* True if an error is encountered */ -+ enum e_type xtype; /* Conversion paradigm */ -+ char *zMem = 0; /* String to be freed */ -+ static char spaces[] = -+ " "; -+#define SPACESIZE (sizeof(spaces)-1) -+#ifndef NOFLOATINGPOINT -+ int exp; /* exponent of real numbers */ -+ long double rounder; /* Used for rounding floating point values */ -+ int flag_dp; /* True if decimal point should be shown */ -+ int flag_rtz; /* True if trailing zeros should be removed */ -+ int flag_exp; /* True to force display of the exponent */ -+ int nsd; /* Number of significant digits returned */ -+#endif -+ -+ fmt = format; /* Put in a register for speed */ -+ count = length = 0; -+ bufpt = 0; -+ for(; (c=(*fmt))!=0; ++fmt){ -+ if( c!='%' ){ -+ register int amt; -+ bufpt = (char *)fmt; -+ amt = 1; -+ while( (c=(*++fmt))!='%' && c!=0 ) amt++; -+ (*func)(bufpt,amt,arg); -+ count += amt; -+ if( c==0 ) break; -+ } -+ if( (c=(*++fmt))==0 ){ -+ errorflag = 1; -+ (*func)("%",1,arg); -+ count++; -+ break; -+ } -+ /* Find out what flags are present */ -+ flag_leftjustify = flag_plussign = flag_blanksign = -+ flag_alternateform = flag_zeropad = flag_center = 0; -+ do{ -+ switch( c ){ -+ case '-': flag_leftjustify = 1; c = 0; break; -+ case '+': flag_plussign = 1; c = 0; break; -+ case ' ': flag_blanksign = 1; c = 0; break; -+ case '#': flag_alternateform = 1; c = 0; break; -+ case '0': flag_zeropad = 1; c = 0; break; -+ case '=': flag_center = 1; c = 0; break; -+ default: break; -+ } -+ }while( c==0 && (c=(*++fmt))!=0 ); -+ if( flag_center ) flag_leftjustify = 0; -+ /* Get the field width */ -+ width = 0; -+ if( c=='*' ){ -+ width = va_arg(ap,int); -+ if( width<0 ){ -+ flag_leftjustify = 1; -+ width = -width; -+ } -+ c = *++fmt; -+ }else{ -+ while( isdigit(c) ){ -+ width = width*10 + c - '0'; -+ c = *++fmt; -+ } -+ } -+ if( width > BUFSIZE-10 ){ -+ width = BUFSIZE-10; -+ } -+ /* Get the precision */ -+ if( c=='.' ){ -+ precision = 0; -+ c = *++fmt; -+ if( c=='*' ){ -+ precision = va_arg(ap,int); -+#ifndef COMPATIBILITY -+ /* This is sensible, but SUN OS 4.1 doesn't do it. */ -+ if( precision<0 ) precision = -precision; -+#endif -+ c = *++fmt; -+ }else{ -+ while( isdigit(c) ){ -+ precision = precision*10 + c - '0'; -+ c = *++fmt; -+ } -+ } -+ /* Limit the precision to prevent overflowing buf[] during conversion */ -+ if( precision>BUFSIZE-40 ) precision = BUFSIZE-40; -+ }else{ -+ precision = -1; -+ } -+ /* Get the conversion type modifier */ -+ if( c=='l' ){ -+ flag_long = 1; -+ c = *++fmt; -+ if( c == 'l' ){ -+ flag_long = 2; -+ c = *++fmt; -+ } -+ }else{ -+ flag_long = 0; -+ } -+ /* Fetch the info entry for the field */ -+ infop = 0; -+ for(idx=0; idxtype; -+ } -+ -+ /* -+ ** At this point, variables are initialized as follows: -+ ** -+ ** flag_alternateform TRUE if a '#' is present. -+ ** flag_plussign TRUE if a '+' is present. -+ ** flag_leftjustify TRUE if a '-' is present or if the -+ ** field width was negative. -+ ** flag_zeropad TRUE if the width began with 0. -+ ** flag_long TRUE if the letter 'l' (ell) prefixed -+ ** the conversion character. -+ ** flag_blanksign TRUE if a ' ' is present. -+ ** width The specified field width. This is -+ ** always non-negative. Zero is the default. -+ ** precision The specified precision. The default -+ ** is -1. -+ ** xtype The class of the conversion. -+ ** infop Pointer to the appropriate info struct. -+ */ -+ switch( xtype ){ -+ case ORDINAL: -+ case RADIX: -+ if(( flag_long>1 )&&( infop->flag_signed )){ -+ signed long long t = va_arg(ap,signed long long); -+ longvalue = t; -+ }else if(( flag_long>1 )&&( !infop->flag_signed )){ -+ unsigned long long t = va_arg(ap,unsigned long long); -+ longvalue = t; -+ }else if(( flag_long )&&( infop->flag_signed )){ -+ signed long t = va_arg(ap,signed long); -+ longvalue = t; -+ }else if(( flag_long )&&( !infop->flag_signed )){ -+ unsigned long t = va_arg(ap,unsigned long); -+ longvalue = t; -+ }else if(( !flag_long )&&( infop->flag_signed )){ -+ signed int t = va_arg(ap,signed int) & ((unsigned long) 0xffffffff); -+ longvalue = t; -+ }else{ -+ unsigned int t = va_arg(ap,unsigned int) & ((unsigned long) 0xffffffff); -+ longvalue = t; -+ } -+#ifdef COMPATIBILITY -+ /* For the format %#x, the value zero is printed "0" not "0x0". -+ ** I think this is stupid. */ -+ if( longvalue==0 ) flag_alternateform = 0; -+#else -+ /* More sensible: turn off the prefix for octal (to prevent "00"), -+ ** but leave the prefix for hex. */ -+ if( longvalue==0 && infop->base==8 ) flag_alternateform = 0; -+#endif -+ if( infop->flag_signed ){ -+ if( *(long long*)&longvalue<0 ){ -+ longvalue = -*(long long*)&longvalue; -+ prefix = '-'; -+ }else if( flag_plussign ) prefix = '+'; -+ else if( flag_blanksign ) prefix = ' '; -+ else prefix = 0; -+ }else prefix = 0; -+ if( flag_zeropad && precision3 || (b>10 && b<14) ){ -+ bufpt[0] = 't'; -+ bufpt[1] = 'h'; -+ }else if( a==1 ){ -+ bufpt[0] = 's'; -+ bufpt[1] = 't'; -+ }else if( a==2 ){ -+ bufpt[0] = 'n'; -+ bufpt[1] = 'd'; -+ }else if( a==3 ){ -+ bufpt[0] = 'r'; -+ bufpt[1] = 'd'; -+ } -+ } -+ { -+ register char *cset; /* Use registers for speed */ -+ register int base; -+ cset = infop->charset; -+ base = infop->base; -+ do{ /* Convert to ascii */ -+ *(--bufpt) = cset[longvalue%base]; -+ longvalue = longvalue/base; -+ }while( longvalue>0 ); -+ } -+ length = (int)(&buf[BUFSIZE]-bufpt); -+ if(infop->fmttype == 'p') -+ { -+ precision = 8; -+ flag_alternateform = 1; -+ } -+ -+ for(idx=precision-length; idx>0; idx--){ -+ *(--bufpt) = '0'; /* Zero pad */ -+ } -+ if( prefix ) *(--bufpt) = prefix; /* Add sign */ -+ if( flag_alternateform && infop->prefix ){ /* Add "0" or "0x" */ -+ char *pre, x; -+ pre = infop->prefix; -+ if( *bufpt!=pre[0] ){ -+ for(pre=infop->prefix; (x=(*pre))!=0; pre++) *(--bufpt) = x; -+ } -+ } -+ -+ length = (int)(&buf[BUFSIZE]-bufpt); -+ break; -+ case FLOAT: -+ case EXP: -+ case GENERIC: -+ realvalue = va_arg(ap,double); -+#ifndef NOFLOATINGPOINT -+ if( precision<0 ) precision = 6; /* Set default precision */ -+ if( precision>BUFSIZE-10 ) precision = BUFSIZE-10; -+ if( realvalue<0.0 ){ -+ realvalue = -realvalue; -+ prefix = '-'; -+ }else{ -+ if( flag_plussign ) prefix = '+'; -+ else if( flag_blanksign ) prefix = ' '; -+ else prefix = 0; -+ } -+ if( infop->type==GENERIC && precision>0 ) precision--; -+ rounder = 0.0; -+#ifdef COMPATIBILITY -+ /* Rounding works like BSD when the constant 0.4999 is used. Wierd! */ -+ for(idx=precision, rounder=0.4999; idx>0; idx--, rounder*=0.1); -+#else -+ /* It makes more sense to use 0.5 */ -+ if( precision>MAXDIG-1 ) idx = MAXDIG-1; -+ else idx = precision; -+ for(rounder=0.5; idx>0; idx--, rounder*=0.1); -+#endif -+ if( infop->type==FLOAT ) realvalue += rounder; -+ /* Normalize realvalue to within 10.0 > realvalue >= 1.0 */ -+ exp = 0; -+ if( realvalue>0.0 ){ -+ int k = 0; -+ while( realvalue>=1e8 && k++<100 ){ realvalue *= 1e-8; exp+=8; } -+ while( realvalue>=10.0 && k++<100 ){ realvalue *= 0.1; exp++; } -+ while( realvalue<1e-8 && k++<100 ){ realvalue *= 1e8; exp-=8; } -+ while( realvalue<1.0 && k++<100 ){ realvalue *= 10.0; exp--; } -+ if( k>=100 ){ -+ bufpt = "NaN"; -+ length = 3; -+ break; -+ } -+ } -+ bufpt = buf; -+ /* -+ ** If the field type is GENERIC, then convert to either EXP -+ ** or FLOAT, as appropriate. -+ */ -+ flag_exp = xtype==EXP; -+ if( xtype!=FLOAT ){ -+ realvalue += rounder; -+ if( realvalue>=10.0 ){ realvalue *= 0.1; exp++; } -+ } -+ if( xtype==GENERIC ){ -+ flag_rtz = !flag_alternateform; -+ if( exp<-4 || exp>precision ){ -+ xtype = EXP; -+ }else{ -+ precision = precision - exp; -+ xtype = FLOAT; -+ } -+ }else{ -+ flag_rtz = 0; -+ } -+ /* -+ ** The "exp+precision" test causes output to be of type EXP if -+ ** the precision is too large to fit in buf[]. -+ */ -+ nsd = 0; -+ if( xtype==FLOAT && exp+precision0 || flag_alternateform); -+ if( prefix ) *(bufpt++) = prefix; /* Sign */ -+ if( exp<0 ) *(bufpt++) = '0'; /* Digits before "." */ -+ else for(; exp>=0; exp--) *(bufpt++) = getdigit(&realvalue,&nsd); -+ if( flag_dp ) *(bufpt++) = '.'; /* The decimal point */ -+ for(exp++; exp<0 && precision>0; precision--, exp++){ -+ *(bufpt++) = '0'; -+ } -+ while( (precision--)>0 ) *(bufpt++) = getdigit(&realvalue,&nsd); -+ *(bufpt--) = 0; /* Null terminate */ -+ if( flag_rtz && flag_dp ){ /* Remove trailing zeros and "." */ -+ while( bufpt>=buf && *bufpt=='0' ) *(bufpt--) = 0; -+ if( bufpt>=buf && *bufpt=='.' ) *(bufpt--) = 0; -+ } -+ bufpt++; /* point to next free slot */ -+ }else{ /* EXP or GENERIC */ -+ flag_dp = (precision>0 || flag_alternateform); -+ if( prefix ) *(bufpt++) = prefix; /* Sign */ -+ *(bufpt++) = getdigit(&realvalue,&nsd); /* First digit */ -+ if( flag_dp ) *(bufpt++) = '.'; /* Decimal point */ -+ while( (precision--)>0 ) *(bufpt++) = getdigit(&realvalue,&nsd); -+ bufpt--; /* point to last digit */ -+ if( flag_rtz && flag_dp ){ /* Remove tail zeros */ -+ while( bufpt>=buf && *bufpt=='0' ) *(bufpt--) = 0; -+ if( bufpt>=buf && *bufpt=='.' ) *(bufpt--) = 0; -+ } -+ bufpt++; /* point to next free slot */ -+ if( exp || flag_exp ){ -+ *(bufpt++) = infop->charset[0]; -+ if( exp<0 ){ *(bufpt++) = '-'; exp = -exp; } /* sign of exp */ -+ else { *(bufpt++) = '+'; } -+ if( exp>=100 ){ -+ *(bufpt++) = (exp/100)+'0'; /* 100's digit */ -+ exp %= 100; -+ } -+ *(bufpt++) = exp/10+'0'; /* 10's digit */ -+ *(bufpt++) = exp%10+'0'; /* 1's digit */ -+ } -+ } -+ /* The converted number is in buf[] and zero terminated. Output it. -+ ** Note that the number is in the usual order, not reversed as with -+ ** integer conversions. */ -+ length = (int)(bufpt-buf); -+ bufpt = buf; -+ -+ /* Special case: Add leading zeros if the flag_zeropad flag is -+ ** set and we are not left justified */ -+ if( flag_zeropad && !flag_leftjustify && length < width){ -+ int i; -+ int nPad = width - length; -+ for(i=width; i>=nPad; i--){ -+ bufpt[i] = bufpt[i-nPad]; -+ } -+ i = prefix!=0; -+ while( nPad-- ) bufpt[i++] = '0'; -+ length = width; -+ } -+#endif -+ break; -+ case SIZE: -+ *(va_arg(ap,int*)) = count; -+ length = width = 0; -+ break; -+ case PERCENT: -+ buf[0] = '%'; -+ bufpt = buf; -+ length = 1; -+ break; -+ case CHARLIT: -+ case CHAR: -+ c = buf[0] = (xtype==CHAR ? va_arg(ap,int) : *++fmt); -+ if( precision>=0 ){ -+ for(idx=1; idx=0 && precision=0x7f ){ -+ buf[i++] = '^'; -+ buf[i] = (c&0x1f)+0x40; -+ }else{ -+ buf[i] = c; -+ } -+ } -+ bufpt = buf; -+ length = i; -+ if( precision>=0 && precision0 ){ -+ if( flag_center ){ -+ nspace = nspace/2; -+ width -= nspace; -+ flag_leftjustify = 1; -+ } -+ count += nspace; -+ while( nspace>=SPACESIZE ){ -+ (*func)(spaces,SPACESIZE,arg); -+ nspace -= SPACESIZE; -+ } -+ if( nspace>0 ) (*func)(spaces,nspace,arg); -+ } -+ } -+ if( length>0 ){ -+ (*func)(bufpt,length,arg); -+ count += length; -+ } -+ if( xtype==MEM_STRING && zMem ){ -+ free(zMem); -+ } -+ if( flag_leftjustify ){ -+ register int nspace; -+ nspace = width-length; -+ if( nspace>0 ){ -+ count += nspace; -+ while( nspace>=SPACESIZE ){ -+ (*func)(spaces,SPACESIZE,arg); -+ nspace -= SPACESIZE; -+ } -+ if( nspace>0 ) (*func)(spaces,nspace,arg); -+ } -+ } -+ }/* End for loop over the format string */ -+ return errorflag ? -1 : count; -+} /* End of function */ -+#endif -+ -+#ifdef F__xprintf -+/* -+** This non-standard function is still occasionally useful.... -+*/ -+int xprintf( -+ void (*func)(char*,int,void*), -+ void *arg, -+ const char *format, -+ ... -+){ -+ va_list ap; -+ va_start(ap,format); -+ return vxprintf(func,arg,format,ap); -+} -+#endif -+ -+/* -+** Now for string-print, also as found in any standard library. -+** Add to this the snprint function which stops added characters -+** to the string at a given length. -+** -+** Note that snprint returns the length of the string as it would -+** be if there were no limit on the output. -+*/ -+struct s_strargument { /* Describes the string being written to */ -+ char *next; /* Next free slot in the string */ -+ char *last; /* Last available slot in the string */ -+}; -+ -+void __sout(char *, int, void *); -+#ifdef F___sout -+void __sout(txt,amt,arg) -+ char *txt; -+ int amt; -+ void *arg; -+{ -+ register char *head; -+ register const char *t; -+ register int a; -+ register char *tail; -+ a = amt; -+ t = txt; -+ head = ((struct s_strargument*)arg)->next; -+ tail = ((struct s_strargument*)arg)->last; -+ if( tail ){ -+ while( a-- >0 && head0 ) *(head++) = *(t++); -+ } -+ *head = 0; -+ ((struct s_strargument*)arg)->next = head; -+} -+#endif -+ -+#ifdef F_vsnprintf -+int vsnprintf(char *buf, size_t n, const char *fmt, va_list ap){ -+ struct s_strargument arg; -+ arg.next = buf; -+ arg.last = &buf[n-1]; -+ *buf = 0; -+ return vxprintf(__sout,&arg,fmt,ap); -+} -+#endif -+ -+#ifdef F_snprintf -+int snprintf(char *str, size_t sz, const char *format, ...) -+{ -+ va_list args; -+ struct s_strargument arg; -+ int ret; -+ -+ arg.next = str; -+ arg.last = &str[sz-1]; -+ -+ va_start(args, format); -+ ret = vxprintf(__sout, &arg, format, args); -+ va_end(args); -+ -+ return ret; -+} -+#endif -+ -+#ifdef F_vsprintf -+int vsprintf(char *buf, const char *fmt, va_list ap){ -+ struct s_strargument arg; -+ arg.next = buf; -+ arg.last = NULL; -+ *buf = 0; -+ return vxprintf(__sout,&arg,fmt,ap); -+} -+#endif -+ -+#ifdef F_sprintf -+int sprintf (char *str, const char *format, ...) -+{ -+ va_list args; -+ struct s_strargument arg; -+ int ret; -+ -+ arg.next = str; -+ arg.last = NULL; -+ -+ va_start(args, format); -+ ret = vxprintf(__sout, &arg, format, args); -+ va_end(args); -+ -+ return ret; -+} -+#endif -+ -+/* -+** The following section of code handles the mprintf routine, that -+** writes to memory obtained from malloc(). -+*/ -+ -+/* This structure is used to store state information about the -+** write in progress -+*/ -+struct sgMprintf { -+ char *zBase; /* A base allocation */ -+ char *zText; /* The string collected so far */ -+ int nChar; /* Length of the string so far */ -+ int nAlloc; /* Amount of space allocated in zText */ -+}; -+ -+void __mout(char *, int, void*); -+ -+#ifdef F___mout -+/* The xprintf callback function. */ -+void __mout(zNewText,nNewChar,arg) -+ char *zNewText; -+ int nNewChar; -+ void *arg; -+{ -+ struct sgMprintf *pM = (struct sgMprintf*)arg; -+ if( pM->nChar + nNewChar + 1 > pM->nAlloc ){ -+ pM->nAlloc = pM->nChar + nNewChar*2 + 1; -+ if( pM->zText==pM->zBase ){ -+ pM->zText = malloc(pM->nAlloc); -+ if( pM->zText && pM->nChar ) memcpy(pM->zText,pM->zBase,pM->nChar); -+ }else{ -+ pM->zText = realloc(pM->zText, pM->nAlloc); -+ } -+ } -+ if( pM->zText ){ -+ memcpy(&pM->zText[pM->nChar], zNewText, nNewChar); -+ pM->nChar += nNewChar; -+ pM->zText[pM->nChar] = 0; -+ } -+} -+#endif -+ -+/* -+** mprintf() works like printf(), but allocations memory to hold the -+** resulting string and returns a pointer to the allocated memory. -+** -+** We changed the name to TclMPrint() to conform with the Tcl private -+** routine naming conventions. -+*/ -+ -+#ifdef F_mprintf -+char *mprintf(const char *zFormat, ...){ -+ va_list ap; -+ struct sgMprintf sMprintf; -+ char *zNew; -+ char zBuf[200]; -+ -+ va_start(ap,zFormat); -+ sMprintf.nChar = 0; -+ sMprintf.nAlloc = sizeof(zBuf); -+ sMprintf.zText = zBuf; -+ sMprintf.zBase = zBuf; -+ vxprintf(__mout,&sMprintf,zFormat,ap); -+ va_end(ap); -+ if( sMprintf.zText==sMprintf.zBase ){ -+ zNew = malloc( sMprintf.nChar+1 ); -+ if( zNew ) strcpy(zNew,zBuf); -+ }else{ -+ zNew = realloc(sMprintf.zText,sMprintf.nChar+1); -+ } -+ -+ return zNew; -+} -+#endif -+ -+/* This is the varargs version of mprintf. -+** -+** The name is changed to TclVMPrintf() to conform with Tcl naming -+** conventions. -+*/ -+#ifdef F_vmprintf -+char *vmprintf(const char *zFormat,va_list ap){ -+ struct sgMprintf sMprintf; -+ char zBuf[200]; -+ sMprintf.nChar = 0; -+ sMprintf.zText = zBuf; -+ sMprintf.nAlloc = sizeof(zBuf); -+ sMprintf.zBase = zBuf; -+ vxprintf(__mout,&sMprintf,zFormat,ap); -+ if( sMprintf.zText==sMprintf.zBase ){ -+ sMprintf.zText = malloc( strlen(zBuf)+1 ); -+ if( sMprintf.zText ) strcpy(sMprintf.zText,zBuf); -+ }else{ -+ sMprintf.zText = realloc(sMprintf.zText,sMprintf.nChar+1); -+ } -+ return sMprintf.zText; -+} -+#endif -+ -+#ifdef F_asprintf -+int asprintf(char ** strp, const char *zFormat, ...){ -+ va_list ap; -+ struct sgMprintf sMprintf; -+ char *zNew; -+ char zBuf[200]; -+ -+ va_start(ap,zFormat); -+ sMprintf.nChar = 0; -+ sMprintf.nAlloc = sizeof(zBuf); -+ sMprintf.zText = zBuf; -+ sMprintf.zBase = zBuf; -+ vxprintf(__mout,&sMprintf,zFormat,ap); -+ va_end(ap); -+ if( sMprintf.zText==sMprintf.zBase ){ -+ zNew = malloc( sMprintf.nChar+1 ); -+ if( zNew ) strcpy(zNew,zBuf); -+ }else{ -+ zNew = realloc(sMprintf.zText,sMprintf.nChar+1); -+ } -+ -+ *strp = zNew; -+ -+ return sMprintf.nChar+1; -+} -+#endif -+ -+#ifdef F_vasprintf -+int vasprintf(char **strp, const char *format, va_list ap) { -+ struct sgMprintf sMprintf; -+ char zBuf[200]; -+ sMprintf.nChar = 0; -+ sMprintf.zText = zBuf; -+ sMprintf.nAlloc = sizeof(zBuf); -+ sMprintf.zBase = zBuf; -+ vxprintf(__mout,&sMprintf,format,ap); -+ if( sMprintf.zText==sMprintf.zBase ){ -+ sMprintf.zText = malloc( strlen(zBuf)+1 ); -+ if( sMprintf.zText ) strcpy(sMprintf.zText,zBuf); -+ }else{ -+ sMprintf.zText = realloc(sMprintf.zText,sMprintf.nChar+1); -+ } -+ *strp = sMprintf.zText; -+ return sMprintf.nChar; -+} -+#endif -+ -+/* -+** The following section of code handles the standard fprintf routines -+** for pthreads. -+*/ -+ -+void __fout(char *, int, void *); -+ -+#ifdef F___fout -+void __fout(zNewText,nNewChar,arg) -+ char *zNewText; -+ int nNewChar; -+ void *arg; -+{ -+ fwrite(zNewText,1,nNewChar,(FILE*)arg); -+} -+#endif -+ -+#ifdef F_fprintf -+/* The public interface routines */ -+int fprintf(FILE *pOut, const char *zFormat, ...){ -+ va_list ap; -+ int retc; -+ -+ va_start(ap,zFormat); -+ retc = vxprintf(__fout,pOut,zFormat,ap); -+ va_end(ap); -+ return retc; -+} -+#endif -+ -+#ifdef F_vfprintf -+int vfprintf(FILE *pOut, const char *zFormat, va_list ap){ -+ return vxprintf(__fout,pOut,zFormat,ap); -+} -+#endif -+ -+ -+#ifdef F_printf -+int printf(const char *format, ...) -+{ -+ va_list args; -+ int ret; -+ -+ va_start(args, format); -+ ret = vprintf(format, args); -+ va_end(args); -+ -+ return ret; -+} -+#endif -+ -+#ifdef F_vprintf -+int vprintf(const char *format, va_list args) -+{ -+ return vxprintf(__fout, stdout, format, args); -+} -+#endif -+ -+#ifdef F__sprintf_r -+/* Idiotic kludge to get around newlib stupidity. tmpnam() calls this -+ directly, but since sprintf() above replaces newlib's sprintf() (and -+ _sprintf_r()) we have to define this in order to link tmpnam(). */ -+int _sprintf_r(struct _reent *unused, char *str, const char *format, ...) -+{ -+ va_list args; -+ struct s_strargument arg; -+ int ret; -+ -+ (void) unused; -+ arg.next = str; -+ arg.last = NULL; -+ -+ va_start(args, format); -+ ret = vxprintf(__sout, &arg, format, args); -+ va_end(args); -+ -+ return ret; -+} -+#endif diff --git a/dkpsp/patches/newlib-1.19.0.patch b/dkpsp/patches/newlib-1.19.0.patch new file mode 100644 index 0000000..035ce61 --- /dev/null +++ b/dkpsp/patches/newlib-1.19.0.patch @@ -0,0 +1,10677 @@ +diff -Nbaur newlib-1.19.0/config.sub newlib-1.19.0-psp/config.sub +--- newlib-1.19.0/config.sub 2010-06-01 18:53:40.000000000 +0100 ++++ newlib-1.19.0-psp/config.sub 2011-07-29 14:24:56.000000000 +0100 +@@ -279,6 +279,7 @@ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ ++ | mipsallegrex | mipsallegrexel \ + | mn10200 | mn10300 \ + | moxie \ + | mt \ +@@ -375,6 +376,7 @@ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ ++ | mipsallegrex-* | mipsallegrexel-* \ + | mmix-* \ + | mt-* \ + | msp430-* \ +@@ -771,6 +773,10 @@ + basic_machine=m68k-atari + os=-mint + ;; ++ psp) ++ basic_machine=mipsallegrexel-psp ++ os=-elf ++ ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; +diff -Nbaur newlib-1.19.0/configure newlib-1.19.0-psp/configure +--- newlib-1.19.0/configure 2010-12-10 14:50:10.000000000 +0000 ++++ newlib-1.19.0-psp/configure 2011-07-29 14:24:56.000000000 +0100 +@@ -3529,6 +3529,9 @@ + mips*-*-linux*) + noconfigdirs="$noconfigdirs target-newlib target-libgloss" + ;; ++ mipsallegrex*-*-*) ++ noconfigdirs="$noconfigdirs target-libgloss" ++ ;; + mips*-*-*) + noconfigdirs="$noconfigdirs gprof ${libgcj}" + libgloss_dir=mips +diff -Nbaur newlib-1.19.0/configure.ac newlib-1.19.0-psp/configure.ac +--- newlib-1.19.0/configure.ac 2010-12-10 14:50:10.000000000 +0000 ++++ newlib-1.19.0-psp/configure.ac 2011-07-29 14:24:56.000000000 +0100 +@@ -980,6 +980,9 @@ + mips*-*-linux*) + noconfigdirs="$noconfigdirs target-newlib target-libgloss" + ;; ++ mipsallegrex*-*-*) ++ noconfigdirs="$noconfigdirs target-libgloss" ++ ;; + mips*-*-*) + noconfigdirs="$noconfigdirs gprof ${libgcj}" + libgloss_dir=mips +diff -Nbaur newlib-1.19.0/newlib/Makefile.am newlib-1.19.0-psp/newlib/Makefile.am +--- newlib-1.19.0/newlib/Makefile.am 2010-12-16 21:58:38.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/Makefile.am 2011-07-29 14:24:56.000000000 +0100 +@@ -283,6 +283,18 @@ + for i in $(srcdir)/libc/include/rpc/*.h; do \ + $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/rpc/`basename $$i`; \ + done; \ ++ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/netinet; \ ++ for i in $(srcdir)/libc/sys/$(sys_dir)/netinet/*.h; do \ ++ if [ -f $$i ]; then \ ++ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/netinet/`basename $$i`; \ ++ else true; fi ; \ ++ done ; \ ++ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/arpa; \ ++ for i in $(srcdir)/libc/sys/$(sys_dir)/arpa/*.h; do \ ++ if [ -f $$i ]; then \ ++ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/arpa/`basename $$i`; \ ++ else true; fi ; \ ++ done ; \ + $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \ + for i in $(srcdir)/libc/include/sys/*.h; do \ + $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \ +diff -Nbaur newlib-1.19.0/newlib/Makefile.in newlib-1.19.0-psp/newlib/Makefile.in +--- newlib-1.19.0/newlib/Makefile.in 2010-12-16 21:58:38.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/Makefile.in 2011-07-29 14:24:56.000000000 +0100 +@@ -989,6 +989,18 @@ + for i in $(srcdir)/libc/include/rpc/*.h; do \ + $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/rpc/`basename $$i`; \ + done; \ ++ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/netinet; \ ++ for i in $(srcdir)/libc/sys/$(sys_dir)/netinet/*.h; do \ ++ if [ -f $$i ]; then \ ++ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/netinet/`basename $$i`; \ ++ else true; fi ; \ ++ done ; \ ++ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/arpa; \ ++ for i in $(srcdir)/libc/sys/$(sys_dir)/arpa/*.h; do \ ++ if [ -f $$i ]; then \ ++ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/arpa/`basename $$i`; \ ++ else true; fi ; \ ++ done ; \ + $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \ + for i in $(srcdir)/libc/include/sys/*.h; do \ + $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \ +diff -Nbaur newlib-1.19.0/newlib/configure.host newlib-1.19.0-psp/newlib/configure.host +--- newlib-1.19.0/newlib/configure.host 2010-12-02 19:30:46.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/configure.host 2011-07-29 14:24:56.000000000 +0100 +@@ -704,7 +704,14 @@ + ;; + mips*-*-elf*) + default_newlib_io_long_long="yes" +- newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" ++ case "${host}" in ++ mipsallegrex*-psp-*) ++ sys_dir=psp ++ syscall_dir=syscalls ++ newlib_cflags="${newlib_cflags} -G0 -mno-explicit-relocs -DCOMPACT_CTYPE -DCLOCK_PROVIDED -DHAVE_FCNTL -DHAVE_RENAME -DMALLOC_ALIGNMENT=16 -I${prefix}/psp/sdk/include" ;; ++ *) ++ newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" ;; ++ esac + ;; + mmix-*) + syscall_dir=syscalls +diff -Nbaur newlib-1.19.0/newlib/libc/include/machine/fastmath.h newlib-1.19.0-psp/newlib/libc/include/machine/fastmath.h +--- newlib-1.19.0/newlib/libc/include/machine/fastmath.h 2000-02-17 19:39:46.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/libc/include/machine/fastmath.h 2011-07-29 14:24:56.000000000 +0100 +@@ -98,3 +98,33 @@ + /* Override the functions defined in math.h */ + #endif /* __sysvnecv70_target */ + ++#ifdef __psp__ ++#ifdef __cplusplus ++extern "C" { ++#endif ++float _EXFUN(fast_sinf,(float)); ++float _EXFUN(fast_cosf,(float)); ++ ++float _EXFUN(fast_asinf,(float)); ++float _EXFUN(fast_acosf,(float)); ++float _EXFUN(fast_atanf,(float)); ++ ++float _EXFUN(fast_absf,(float)); ++float _EXFUN(fast_sqrtf,(float)); ++float _EXFUN(fast_expef,(float)); ++float _EXFUN(fast_logef,(float)); ++#ifdef __cplusplus ++} ++#endif ++ ++#define sinf(x) fast_sinf(x) ++#define cosf(x) fast_cosf(x) ++#define asinf(x) fast_asinf(x) ++#define acosf(x) fast_acosf(x) ++#define atanf(x) fast_atanf(x) ++#define absf(x) fast_absf(x) ++#define sqrtf(x) fast_sqrtf(x) ++#define expef(x) fast_expef(x) ++#define logef(x) fast_logef(x) ++/* Override the functions defined in math.h */ ++#endif /* __psp__ */ +diff -Nbaur newlib-1.19.0/newlib/libc/include/machine/time.h newlib-1.19.0-psp/newlib/libc/include/machine/time.h +--- newlib-1.19.0/newlib/libc/include/machine/time.h 2009-04-06 23:04:33.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/include/machine/time.h 2011-07-29 14:24:56.000000000 +0100 +@@ -14,6 +14,10 @@ + int nanosleep (const struct timespec *, struct timespec *); + #endif + ++#if defined(__psp__) ++#define _CLOCKS_PER_SEC_ 1000000 ++#endif ++ + #endif /* _MACHTIME_H_ */ + + +diff -Nbaur newlib-1.19.0/newlib/libc/include/stdint.h newlib-1.19.0-psp/newlib/libc/include/stdint.h +--- newlib-1.19.0/newlib/libc/include/stdint.h 2009-04-24 22:55:07.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/include/stdint.h 2011-07-29 14:24:56.000000000 +0100 +@@ -33,7 +33,7 @@ + /* Check if "long" is 64bit or 32bit wide */ + #if __STDINT_EXP(LONG_MAX) > 0x7fffffff + #define __have_long64 1 +-#elif __STDINT_EXP(LONG_MAX) == 0x7fffffff && !defined(__SPU__) ++#elif __STDINT_EXP(LONG_MAX) == 0x7fffffff && !defined(__SPU__) && !defined(__psp__) + #define __have_long32 1 + #endif + +diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/config.h newlib-1.19.0-psp/newlib/libc/include/sys/config.h +--- newlib-1.19.0/newlib/libc/include/sys/config.h 2010-12-02 19:30:46.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/libc/include/sys/config.h 2011-07-29 14:24:57.000000000 +0100 +@@ -130,6 +130,12 @@ + #define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata"))) + #endif + ++/* We compile newlib with -G0 for PSP, but if we're compiling an app with $gp enabled, ++ then _impure_ptr is expected to live in .sdata. */ ++#if defined(__psp__) ++#define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata"))) ++#endif ++ + #ifdef __xstormy16__ + #define __SMALL_BITFIELDS + #undef INT_MAX +diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/types.h newlib-1.19.0-psp/newlib/libc/include/sys/types.h +--- newlib-1.19.0/newlib/libc/include/sys/types.h 2010-12-08 14:44:06.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/libc/include/sys/types.h 2011-07-29 14:24:57.000000000 +0100 +@@ -199,6 +199,7 @@ + + typedef unsigned short nlink_t; + ++#if !defined(__psp__) + /* We don't define fd_set and friends if we are compiling POSIX + source, or if we have included (or may include as indicated + by __USE_W32_SOCKETS) the W32api winsock[2].h header which +@@ -244,6 +245,7 @@ + })) + + # endif /* !(defined (_POSIX_SOURCE) || defined (_WINSOCK_H) || defined (__USE_W32_SOCKETS)) */ ++#endif /* !defined(__psp__) */ + + #undef __MS_types__ + #undef _ST_INT32 +diff -Nbaur newlib-1.19.0/newlib/libc/include/sys/unistd.h newlib-1.19.0-psp/newlib/libc/include/sys/unistd.h +--- newlib-1.19.0/newlib/libc/include/sys/unistd.h 2010-10-08 16:28:49.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/include/sys/unistd.h 2011-07-29 14:24:57.000000000 +0100 +@@ -238,11 +238,15 @@ + void _EXFUN(sync, (void)); + #endif + ++#if !defined(__psp__) + ssize_t _EXFUN(readlink, (const char *__path, char *__buf, size_t __buflen)); ++#endif + #if defined(__CYGWIN__) + ssize_t _EXFUN(readlinkat, (int __dirfd1, const char *__path, char *__buf, size_t __buflen)); + #endif ++#if !defined(__psp__) + int _EXFUN(symlink, (const char *__name1, const char *__name2)); ++#endif + #if defined(__CYGWIN__) + int _EXFUN(symlinkat, (const char *, int, const char *)); + int _EXFUN(unlinkat, (int, const char *, int)); +diff -Nbaur newlib-1.19.0/newlib/libc/include/time.h newlib-1.19.0-psp/newlib/libc/include/time.h +--- newlib-1.19.0/newlib/libc/include/time.h 2008-10-16 22:53:58.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/include/time.h 2011-07-29 14:24:57.000000000 +0100 +@@ -175,6 +175,17 @@ + #endif + #endif /* _POSIX_TIMERS */ + ++#if defined(__psp__) ++#ifdef __cplusplus ++extern "C" { ++#endif ++int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp)); ++#ifdef __cplusplus ++} ++#endif ++#endif /* __psp__ */ ++ ++ + #ifdef __cplusplus + extern "C" { + #endif +diff -Nbaur newlib-1.19.0/newlib/libc/machine/mips/Makefile.am newlib-1.19.0-psp/newlib/libc/machine/mips/Makefile.am +--- newlib-1.19.0/newlib/libc/machine/mips/Makefile.am 2007-05-24 18:33:35.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/machine/mips/Makefile.am 2011-07-29 14:24:57.000000000 +0100 +@@ -8,7 +8,7 @@ + + noinst_LIBRARIES = lib.a + +-lib_a_SOURCES = setjmp.S strlen.c strcmp.c strncpy.c memset.c memcpy.c ++lib_a_SOURCES = setjmp.S strlen.c strcmp.c strncpy.c memset.c memcpy.c fastmath.c + lib_a_CCASFLAGS=$(AM_CCASFLAGS) + lib_a_CFLAGS=$(AM_CFLAGS) + +diff -Nbaur newlib-1.19.0/newlib/libc/machine/mips/Makefile.in newlib-1.19.0-psp/newlib/libc/machine/mips/Makefile.in +--- newlib-1.19.0/newlib/libc/machine/mips/Makefile.in 2010-12-16 21:58:50.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/libc/machine/mips/Makefile.in 2011-07-29 14:24:57.000000000 +0100 +@@ -54,7 +54,8 @@ + lib_a_LIBADD = + am_lib_a_OBJECTS = lib_a-setjmp.$(OBJEXT) lib_a-strlen.$(OBJEXT) \ + lib_a-strcmp.$(OBJEXT) lib_a-strncpy.$(OBJEXT) \ +- lib_a-memset.$(OBJEXT) lib_a-memcpy.$(OBJEXT) ++ lib_a-memset.$(OBJEXT) lib_a-memcpy.$(OBJEXT) \ ++ lib_a-fastmath.$(OBJEXT) + lib_a_OBJECTS = $(am_lib_a_OBJECTS) + DEFAULT_INCLUDES = -I.@am__isrc@ + depcomp = +@@ -174,7 +175,7 @@ + INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) + AM_CCASFLAGS = $(INCLUDES) + noinst_LIBRARIES = lib.a +-lib_a_SOURCES = setjmp.S strlen.c strcmp.c strncpy.c memset.c memcpy.c ++lib_a_SOURCES = setjmp.S strlen.c strcmp.c strncpy.c memset.c memcpy.c fastmath.c + lib_a_CCASFLAGS = $(AM_CCASFLAGS) + lib_a_CFLAGS = $(AM_CFLAGS) + ACLOCAL_AMFLAGS = -I ../../.. -I ../../../.. +@@ -279,6 +280,12 @@ + lib_a-memcpy.obj: memcpy.c + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-memcpy.obj `if test -f 'memcpy.c'; then $(CYGPATH_W) 'memcpy.c'; else $(CYGPATH_W) '$(srcdir)/memcpy.c'; fi` + ++lib_a-fastmath.o: fastmath.c ++ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fastmath.o `test -f 'fastmath.c' || echo '$(srcdir)/'`fastmath.c ++ ++lib_a-fastmath.obj: fastmath.c ++ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-fastmath.obj `if test -f 'fastmath.c'; then $(CYGPATH_W) 'fastmath.c'; else $(CYGPATH_W) '$(srcdir)/fastmath.c'; fi` ++ + ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ +diff -Nbaur newlib-1.19.0/newlib/libc/machine/mips/fastmath.c newlib-1.19.0-psp/newlib/libc/machine/mips/fastmath.c +--- newlib-1.19.0/newlib/libc/machine/mips/fastmath.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/machine/mips/fastmath.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,277 @@ ++#include ++ ++#define PSP_MATH_PI 3.14159265358979323846 ++#define PSP_MATH_TWOPI (PSP_MATH_PI * 2.0) ++#define PSP_MATH_SQRT2 1.41421356237309504880 ++#define PSP_MATH_LN2 0.69314718055994530942 ++#define PSP_MATH_LOG2E 1.4426950408889634074 ++#define COS_SIN_DIV 0.208 ++ ++static const float logPoly[] = { ++ 4194305.0 / (1024.0 * 1024.0 * 2.0), /* arround 2.0 */ ++ 5590817.0 / (1024.0 * 1024.0 * 8.0), /* arround 2.0/3.0 */ ++ 13890687.0 / (1024.0 * 1024.0 * 32.0), /* arround 2.0/5.0 */ ++}; ++ ++static const float triPoly[] = { ++ (float)(2.0*PSP_MATH_PI), ++ (float)(1.0), ++ (float)(-0xAAAA98/(1024.0*1024*64)), ++ (float)( 0x88801C/(1024.0*1024*1024)), ++ (float)(-0xCB9F27/(1024.0*1024*1024*64)), ++ ++ (float)(-0xFFFFF9/(1024.0*1024*32)), ++ (float)( 0xAAA6FB/(1024.0*1024*256)), ++ (float)(-0xB3D431/(1024.0*1024*1024*8)), ++ ++ (float)(-0xAAAAAA/(1024.0*1024*32)), ++ (float)( 0xCCCCCD/(1024.0*1024*64)), ++ (float)(-0x8F5C29/(1024.0*1024*64)), ++}; ++ ++static float _pspFpuSinMain(float x) ++{ ++ float y = x*x; ++ return x * (((triPoly[4] * y ++ + triPoly[3]) * y ++ + triPoly[2]) * y ++ + triPoly[1]); ++} ++ ++static float _pspFpuCosMain(float x) ++{ ++ float y = x*x; ++ return ((triPoly[7] * y ++ + triPoly[6]) * y ++ + triPoly[5]) * y ++ + triPoly[1]; ++} ++ ++static float _pspFpuAtanMain(float x) ++{ ++ float y = x*x; ++ return x * (((triPoly[10] * y ++ + triPoly[9]) * y ++ + triPoly[8]) * y ++ + triPoly[1]); ++} ++ ++static float _atanf(float x) ++{ ++ if (x < 0.19890f) { ++ return _pspFpuAtanMain(x); ++ } ++ if (x < 0.668106f) { ++ return (float)(PSP_MATH_PI / 8) ++ + _pspFpuAtanMain((x - (float)(PSP_MATH_SQRT2 - 1)) / (1.0f + ((float)(PSP_MATH_SQRT2 - 1)*x))); ++ } ++ return ((float)PSP_MATH_PI / 4) + _pspFpuAtanMain((x - 1.0f) / (x + 1.0f)); ++} ++ ++float fast_absf(float fs) ++{ ++ register float fd; ++ asm ( ++ "abs.s %0, %1\n" ++ : "=f"(fd) ++ : "f"(fs) ++ ); ++ return (fd); ++} ++ ++float fast_sinf(float x) ++{ ++ float pi2; ++ int sign = 1; ++ ++ /* NaN */ ++ if (x != x) { ++ return x; ++ } ++ ++ pi2 = triPoly[0]; ++ if (x < 0.0f) { ++ sign = -1; ++ x = -x; ++ } ++ ++ if (x > pi2) { ++ float y = x / pi2; ++ x -= (float)((int)y) * pi2; ++ } ++ ++ pi2 *= 0.5f; ++ if (x > pi2) { ++ x -= pi2; ++ sign = -sign; ++ } ++ ++ if (x > pi2*0.5f) { ++ x = pi2 - x; ++ } ++ if (x > (float)(PSP_MATH_PI * (0.5 - COS_SIN_DIV))) { ++ return _pspFpuCosMain(pi2*0.5f - x) * sign; ++ } ++ ++ return _pspFpuSinMain(x) * sign; ++} ++ ++float fast_cosf(float x) ++{ ++ float pi2; ++ int sign = 1; ++ ++ /* NaN */ ++ if (x != x) { ++ return x; ++ } ++ ++ pi2 = triPoly[0]; ++ if (x < 0.0f) { ++ x = -x; ++ } ++ ++ if (x > pi2) { ++ float y = x / pi2; ++ x -= (float)((int)y) * pi2; ++ } ++ ++ pi2 *= 0.5f; // pi2 = PI ++ if (x > pi2) { ++ x -= pi2; ++ sign = -1; ++ } ++ ++ if (x > pi2*0.5f) { ++ sign = -sign; ++ x = pi2 - x; ++ } ++ if (x > (float) (PSP_MATH_PI * COS_SIN_DIV)) { ++ return _pspFpuSinMain(pi2*0.5f - x) * sign; ++ } ++ ++ return _pspFpuCosMain(x) * sign; ++} ++ ++float fast_atanf(float x) ++{ ++ int sign = 1; ++ ++ /* NaN */ ++ if (x != x) { ++ return x; ++ } ++ ++ if (x < 0.0f) { ++ x = -x; ++ sign = -1; ++ } ++ if (x >= 1.0f) { ++ /*J atan(x) = pi/2 - atan(1/x) */ ++ x = 1.0f / x; ++ x = ((float)(PSP_MATH_PI / 2)) - _atanf(x); ++ } else { ++ x = _atanf(x); ++ } ++ return x * (float)sign; ++} ++ ++float fast_asinf(float x) ++{ ++ x = x*x; ++ return fast_atanf(__builtin_allegrex_sqrt_s(x/(1.0f-x))); ++} ++ ++float fast_acosf(float x) ++{ ++ x = x*x; ++ return fast_atanf(__builtin_allegrex_sqrt_s((1.0f-x)/x)); ++} ++ ++float fast_sqrtf(float fs) ++{ ++ return (__builtin_allegrex_sqrt_s(fs)); ++} ++ ++float fast_logef(float x) ++{ ++ union { ++ float f; ++ int i; ++ } fi; ++ int a, b, exponent; ++ float y, z; ++ fi.f = x; ++ if (fi.i <= 0) { ++ if ((fi.i & 0x7fffffff) == 0) { ++ fi.i = 0xff800000; /* -INF */ ++ return fi.f; ++ } ++ fi.i = 0xff80ffff; /* Quiet NaN */ ++ return fi.f; ++ } ++ ++ b = (fi.i & 0x007fffff); ++ a = b - (1<<23); ++ exponent = fi.i; ++ if (b <= 0x3504F3) { ++ a = b; ++ b = b - (1 << 23); ++ exponent -= (1<<23); ++ } ++ b = b - (1 << 23) + (1<<25); ++ ++ x = (float)(a) / (float)(b); ++ z = (((exponent>>23)-126) * 0xB17218) * (float)(1.0/(1<<24)); ++ y = x * x; ++ return z + x * (((logPoly[2] * y + logPoly[1]) * y) + logPoly[0]); ++} ++ ++float fast_expef(float x) ++{ ++ /* ++ * exp(x)=e^x=e^(y * log2)=2^Y ++ * =2^z * 2^y ++ * =2^z * (2^(y/2))^2 ++ * =2^z * (e^(f/2))^2 ++ * =2^z * (e^(f/4))^4 ++ * where y=x/log 2 ++ * z=nearest(y) , -0.5 <= f=y-z < 0.5 ++ */ ++ union { ++ float f; ++ int i; ++ } fi; ++ float z, f; ++ ++ fi.f = x; ++ fi.i &= 0x7fffffff; ++ if (fi.i >= 0x42b00f34) {/* arround 88.03 */ ++ /* overflow */ ++ if (x != x) { ++ return x; /* NaN */ ++ } ++ if (fi.i < 0) { ++ return 0.0; /* underflow */ ++ } ++ fi.i = 0x7f800000; ++ return fi.f; /* +INF */ ++ } ++ ++ f = fi.f * (float)PSP_MATH_LOG2E; ++ ++ z = __builtin_allegrex_round_w_s(f); ++ f = f-z; ++ fi.i = z; ++ if (x < 0) ++ fi.i = -fi.i; ++ fi.i = (fi.i+127) << 23; ++ ++ /* use Pade aprox. */ ++ f = (6.0f + (float)(4.0*PSP_MATH_LN2 * 0.25)*f ++ + (float)(0.9996*PSP_MATH_LN2*0.25*PSP_MATH_LN2*0.25)*f*f) ++ / (6.0f - (float)(2.0*PSP_MATH_LN2 * 0.25)*f); ++ f *= f; ++ fi.f *= f*f; ++ return fi.f; ++} +diff -Nbaur newlib-1.19.0/newlib/libc/machine/mips/strlen.c newlib-1.19.0-psp/newlib/libc/machine/mips/strlen.c +--- newlib-1.19.0/newlib/libc/machine/mips/strlen.c 2002-03-14 02:41:43.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/libc/machine/mips/strlen.c 2011-07-29 14:24:57.000000000 +0100 +@@ -20,7 +20,7 @@ + + /* MIPS16 needs to come first. */ + +-#if defined(__mips16) ++#if defined(__mips16) || defined(__psp__) + size_t + strlen (const char *str) + { +diff -Nbaur newlib-1.19.0/newlib/libc/stdlib/strtod.c newlib-1.19.0-psp/newlib/libc/stdlib/strtod.c +--- newlib-1.19.0/newlib/libc/stdlib/strtod.c 2010-12-07 21:26:45.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/libc/stdlib/strtod.c 2011-07-29 14:24:57.000000000 +0100 +@@ -1181,6 +1181,7 @@ + return _strtod_r (_REENT, s00, se); + } + ++__attribute__((weak)) + float + _DEFUN (strtof, (s00, se), + _CONST char *s00 _AND +diff -Nbaur newlib-1.19.0/newlib/libc/sys/configure newlib-1.19.0-psp/newlib/libc/sys/configure +--- newlib-1.19.0/newlib/libc/sys/configure 2010-12-16 21:59:03.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/libc/sys/configure 2011-07-29 14:24:57.000000000 +0100 +@@ -11796,6 +11796,8 @@ + ;; + netware) subdirs="$subdirs netware" + ;; ++ psp) subdirs="$subdirs psp" ++ ;; + rdos) subdirs="$subdirs rdos" + ;; + rtems) subdirs="$subdirs rtems" +diff -Nbaur newlib-1.19.0/newlib/libc/sys/configure.in newlib-1.19.0-psp/newlib/libc/sys/configure.in +--- newlib-1.19.0/newlib/libc/sys/configure.in 2010-02-24 20:59:55.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/libc/sys/configure.in 2011-07-29 14:24:57.000000000 +0100 +@@ -34,6 +34,7 @@ + mmixware) AC_CONFIG_SUBDIRS(mmixware) ;; + netware) AC_CONFIG_SUBDIRS(netware) ;; + rdos) AC_CONFIG_SUBDIRS(rdos) ;; ++ psp) AC_CONFIG_SUBDIRS(psp) ;; + rtems) AC_CONFIG_SUBDIRS(rtems) ;; + sh) AC_CONFIG_SUBDIRS(sh) ;; + sparc64) AC_CONFIG_SUBDIRS(sparc64) ;; +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/Makefile.am newlib-1.19.0-psp/newlib/libc/sys/psp/Makefile.am +--- newlib-1.19.0/newlib/libc/sys/psp/Makefile.am 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/Makefile.am 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,71 @@ ++## Process this file with automake to generate Makefile.in ++ ++AUTOMAKE_OPTIONS = cygnus ++ ++INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) ++ ++AM_CCASFLAGS = $(INCLUDES) $(CFLAGS) ++ ++noinst_LIBRARIES = lib.a ++ ++LIBCGLUE_MULT_OBJS = _close.o _exit.o _fork.o _fstat.o _getpid.o \ ++ _gettimeofday.o _kill.o _lseek.o _open.o _read.o \ ++ _sbrk.o _wait.o _write.o clock.o isatty.o time.o \ ++ _link.o _unlink.o sleep.o opendir.o readdir.o \ ++ closedir.o getcwd.o chdir.o mkdir.o rmdir.o \ ++ realpath.o _stat.o truncate.o access.o tzset.o \ ++ __psp_set_errno.o mlock.o _fcntl.o _rename.o nanosleep.o ++ ++SOCKET_MULT_OBJS = socket.o accept.o bind.o connect.o getsockopt.o \ ++ listen.o recv.o recvfrom.o send.o sendto.o \ ++ setsockopt.o shutdown.o getsockname.o getpeername.o \ ++ inet_ntoa.o ++ ++PE_OBJS = pipe.o ++ ++FDMAN_OBJS = fdman.o ++ ++SELECT_OBJS = select.o ++ ++INTERRUPT_OBJS = interrupt.o ++ ++XPRINTF_MULT_OBJS = vxprintf.o _xprintf.o __sout.o vsnprintf.o snprintf.o \ ++ vsprintf.o sprintf.o __mout.o mprintf.o vmprintf.o asprintf.o \ ++ vasprintf.o __fout.o fprintf.o vfprintf.o printf.o vprintf.o \ ++ _sprintf_r.o ++ ++NETDB_MULT_OBJS = h_errno.o gethostbyaddr.o gethostbyname.o ++ ++ ++lib_a_SOURCES = libcglue.c socket.c pspcwd.c xprintf.c netdb.c pipe.c fdman.c select.c syscalls.c interrupt.S ++lib_a_LIBADD = $(LIBCGLUE_MULT_OBJS) $(SOCKET_MULT_OBJS) $(XPRINTF_MULT_OBJS) \ ++ $(NETDB_MULT_OBJS) $(PIPE_OBJS) $(FDMAN_OBJS) $(SELECT_OBJS) $(INTERRUPT_OBJS) ++ ++all: crt0.o ++ ++$(LIBCGLUE_MULT_OBJS): libcglue.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(SOCKET_MULT_OBJS): socket.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(XPRINTF_MULT_OBJS): xprintf.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(NETDB_MULT_OBJS): netdb.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(PIPE_OBJS): pipe.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(FDMAN_OBJS): fdman.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(SELECT_OBJS): select.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(INTERRUPT_OBJS): interrupt.S ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++ACLOCAL_AMFLAGS = -I ../../.. ++CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/Makefile.in newlib-1.19.0-psp/newlib/libc/sys/psp/Makefile.in +--- newlib-1.19.0/newlib/libc/sys/psp/Makefile.in 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/Makefile.in 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,464 @@ ++# Makefile.in generated by automake 1.9.6 from Makefile.am. ++# @configure_input@ ++ ++# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, ++# 2003, 2004, 2005 Free Software Foundation, Inc. ++# This Makefile.in is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY, to the extent permitted by law; without ++# even the implied warranty of MERCHANTABILITY or FITNESS FOR A ++# PARTICULAR PURPOSE. ++ ++@SET_MAKE@ ++ ++srcdir = @srcdir@ ++top_srcdir = @top_srcdir@ ++VPATH = @srcdir@ ++pkgdatadir = $(datadir)/@PACKAGE@ ++pkglibdir = $(libdir)/@PACKAGE@ ++pkgincludedir = $(includedir)/@PACKAGE@ ++top_builddir = . ++am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd ++INSTALL = @INSTALL@ ++install_sh_DATA = $(install_sh) -c -m 644 ++install_sh_PROGRAM = $(install_sh) -c ++install_sh_SCRIPT = $(install_sh) -c ++INSTALL_HEADER = $(INSTALL_DATA) ++transform = $(program_transform_name) ++NORMAL_INSTALL = : ++PRE_INSTALL = : ++POST_INSTALL = : ++NORMAL_UNINSTALL = : ++PRE_UNINSTALL = : ++POST_UNINSTALL = : ++build_triplet = @build@ ++host_triplet = @host@ ++DIST_COMMON = $(srcdir)/../../../../config.guess \ ++ $(srcdir)/../../../../config.sub README $(srcdir)/Makefile.in \ ++ $(srcdir)/Makefile.am $(top_srcdir)/configure \ ++ $(am__configure_deps) $(srcdir)/../../../../mkinstalldirs ++subdir = . ++ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 ++am__aclocal_m4_deps = $(top_srcdir)/../../../acinclude.m4 \ ++ $(top_srcdir)/configure.in ++am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ ++ $(ACLOCAL_M4) ++am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ ++ configure.lineno configure.status.lineno ++mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs ++CONFIG_CLEAN_FILES = ++LIBRARIES = $(noinst_LIBRARIES) ++ARFLAGS = cru ++lib_a_AR = $(AR) $(ARFLAGS) ++am__DEPENDENCIES_1 = _close.o _exit.o _fork.o _fstat.o _getpid.o \ ++ _gettimeofday.o _kill.o _lseek.o _open.o _read.o _sbrk.o \ ++ _wait.o _write.o clock.o isatty.o time.o _link.o _unlink.o \ ++ sleep.o opendir.o readdir.o closedir.o getcwd.o chdir.o \ ++ mkdir.o rmdir.o realpath.o _stat.o truncate.o access.o tzset.o \ ++ __psp_set_errno.o mlock.o _fcntl.o _rename.o nanosleep.o ++am__DEPENDENCIES_2 = socket.o accept.o bind.o connect.o getsockopt.o \ ++ listen.o recv.o recvfrom.o send.o sendto.o setsockopt.o \ ++ shutdown.o getsockname.o getpeername.o inet_ntoa.o ++am__DEPENDENCIES_3 = vxprintf.o _xprintf.o __sout.o vsnprintf.o \ ++ snprintf.o vsprintf.o sprintf.o __mout.o mprintf.o vmprintf.o \ ++ asprintf.o vasprintf.o __fout.o fprintf.o vfprintf.o printf.o \ ++ vprintf.o _sprintf_r.o ++am__DEPENDENCIES_4 = h_errno.o gethostbyaddr.o gethostbyname.o ++am__DEPENDENCIES_5 = fdman.o ++am__DEPENDENCIES_6 = select.o ++am__DEPENDENCIES_7 = interrupt.o ++lib_a_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \ ++ $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_4) \ ++ $(am__DEPENDENCIES_5) $(am__DEPENDENCIES_6) \ ++ $(am__DEPENDENCIES_7) ++am_lib_a_OBJECTS = libcglue.$(OBJEXT) socket.$(OBJEXT) \ ++ pspcwd.$(OBJEXT) xprintf.$(OBJEXT) netdb.$(OBJEXT) \ ++ pipe.$(OBJEXT) fdman.$(OBJEXT) select.$(OBJEXT) \ ++ syscalls.$(OBJEXT) interrupt.$(OBJEXT) ++lib_a_OBJECTS = $(am_lib_a_OBJECTS) ++DEFAULT_INCLUDES = -I. -I$(srcdir) ++depcomp = ++am__depfiles_maybe = ++CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS) ++COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ ++ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) ++CCLD = $(CC) ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ ++SOURCES = $(lib_a_SOURCES) ++ETAGS = etags ++CTAGS = ctags ++ACLOCAL = @ACLOCAL@ ++AMDEP_FALSE = @AMDEP_FALSE@ ++AMDEP_TRUE = @AMDEP_TRUE@ ++AMTAR = @AMTAR@ ++AR = @AR@ ++AS = @AS@ ++AUTOCONF = @AUTOCONF@ ++AUTOHEADER = @AUTOHEADER@ ++AUTOMAKE = @AUTOMAKE@ ++AWK = @AWK@ ++CC = @CC@ ++CCAS = @CCAS@ ++CCASFLAGS = @CCASFLAGS@ ++CCDEPMODE = @CCDEPMODE@ ++CYGPATH_W = @CYGPATH_W@ ++DEFS = @DEFS@ ++DEPDIR = @DEPDIR@ ++ECHO_C = @ECHO_C@ ++ECHO_N = @ECHO_N@ ++ECHO_T = @ECHO_T@ ++ELIX_LEVEL_0_FALSE = @ELIX_LEVEL_0_FALSE@ ++ELIX_LEVEL_0_TRUE = @ELIX_LEVEL_0_TRUE@ ++ELIX_LEVEL_1_FALSE = @ELIX_LEVEL_1_FALSE@ ++ELIX_LEVEL_1_TRUE = @ELIX_LEVEL_1_TRUE@ ++ELIX_LEVEL_2_FALSE = @ELIX_LEVEL_2_FALSE@ ++ELIX_LEVEL_2_TRUE = @ELIX_LEVEL_2_TRUE@ ++ELIX_LEVEL_3_FALSE = @ELIX_LEVEL_3_FALSE@ ++ELIX_LEVEL_3_TRUE = @ELIX_LEVEL_3_TRUE@ ++ELIX_LEVEL_4_FALSE = @ELIX_LEVEL_4_FALSE@ ++ELIX_LEVEL_4_TRUE = @ELIX_LEVEL_4_TRUE@ ++INSTALL_DATA = @INSTALL_DATA@ ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ ++INSTALL_SCRIPT = @INSTALL_SCRIPT@ ++INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ ++LDFLAGS = @LDFLAGS@ ++LIBOBJS = @LIBOBJS@ ++LIBS = @LIBS@ ++LTLIBOBJS = @LTLIBOBJS@ ++MAINT = @MAINT@ ++MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ ++MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ ++MAKEINFO = @MAKEINFO@ ++MAY_SUPPLY_SYSCALLS_FALSE = @MAY_SUPPLY_SYSCALLS_FALSE@ ++MAY_SUPPLY_SYSCALLS_TRUE = @MAY_SUPPLY_SYSCALLS_TRUE@ ++NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ ++OBJEXT = @OBJEXT@ ++PACKAGE = @PACKAGE@ ++PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ ++PACKAGE_NAME = @PACKAGE_NAME@ ++PACKAGE_STRING = @PACKAGE_STRING@ ++PACKAGE_TARNAME = @PACKAGE_TARNAME@ ++PACKAGE_VERSION = @PACKAGE_VERSION@ ++PATH_SEPARATOR = @PATH_SEPARATOR@ ++RANLIB = @RANLIB@ ++READELF = @READELF@ ++SET_MAKE = @SET_MAKE@ ++SHELL = @SHELL@ ++STRIP = @STRIP@ ++USE_LIBTOOL_FALSE = @USE_LIBTOOL_FALSE@ ++USE_LIBTOOL_TRUE = @USE_LIBTOOL_TRUE@ ++VERSION = @VERSION@ ++aext = @aext@ ++am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ ++am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ ++am__include = @am__include@ ++am__leading_dot = @am__leading_dot@ ++am__quote = @am__quote@ ++am__tar = @am__tar@ ++am__untar = @am__untar@ ++bindir = @bindir@ ++build = @build@ ++build_alias = @build_alias@ ++build_cpu = @build_cpu@ ++build_os = @build_os@ ++build_vendor = @build_vendor@ ++datadir = @datadir@ ++datarootdir = @datarootdir@ ++docdir = @docdir@ ++dvidir = @dvidir@ ++exec_prefix = @exec_prefix@ ++host = @host@ ++host_alias = @host_alias@ ++host_cpu = @host_cpu@ ++host_os = @host_os@ ++host_vendor = @host_vendor@ ++htmldir = @htmldir@ ++includedir = @includedir@ ++infodir = @infodir@ ++install_sh = @install_sh@ ++libdir = @libdir@ ++libexecdir = @libexecdir@ ++libm_machine_dir = @libm_machine_dir@ ++localedir = @localedir@ ++localstatedir = @localstatedir@ ++lpfx = @lpfx@ ++machine_dir = @machine_dir@ ++mandir = @mandir@ ++mkdir_p = @mkdir_p@ ++newlib_basedir = @newlib_basedir@ ++oext = @oext@ ++oldincludedir = @oldincludedir@ ++pdfdir = @pdfdir@ ++prefix = @prefix@ ++program_transform_name = @program_transform_name@ ++psdir = @psdir@ ++sbindir = @sbindir@ ++sharedstatedir = @sharedstatedir@ ++sys_dir = @sys_dir@ ++sysconfdir = @sysconfdir@ ++target_alias = @target_alias@ ++AUTOMAKE_OPTIONS = cygnus ++INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) ++AM_CCASFLAGS = $(INCLUDES) $(CFLAGS) ++noinst_LIBRARIES = lib.a ++LIBCGLUE_MULT_OBJS = _close.o _exit.o _fork.o _fstat.o _getpid.o \ ++ _gettimeofday.o _kill.o _lseek.o _open.o _read.o \ ++ _sbrk.o _wait.o _write.o clock.o isatty.o time.o \ ++ _link.o _unlink.o sleep.o opendir.o readdir.o \ ++ closedir.o getcwd.o chdir.o mkdir.o rmdir.o \ ++ realpath.o _stat.o truncate.o access.o tzset.o \ ++ __psp_set_errno.o mlock.o _fcntl.o _rename.o nanosleep.o ++ ++SOCKET_MULT_OBJS = socket.o accept.o bind.o connect.o getsockopt.o \ ++ listen.o recv.o recvfrom.o send.o sendto.o \ ++ setsockopt.o shutdown.o getsockname.o getpeername.o \ ++ inet_ntoa.o ++ ++PE_OBJS = pipe.o ++FDMAN_OBJS = fdman.o ++SELECT_OBJS = select.o ++INTERRUPT_OBJS = interrupt.o ++XPRINTF_MULT_OBJS = vxprintf.o _xprintf.o __sout.o vsnprintf.o snprintf.o \ ++ vsprintf.o sprintf.o __mout.o mprintf.o vmprintf.o asprintf.o \ ++ vasprintf.o __fout.o fprintf.o vfprintf.o printf.o vprintf.o \ ++ _sprintf_r.o ++ ++NETDB_MULT_OBJS = h_errno.o gethostbyaddr.o gethostbyname.o ++lib_a_SOURCES = libcglue.c socket.c pspcwd.c xprintf.c netdb.c pipe.c fdman.c select.c syscalls.c interrupt.S ++lib_a_LIBADD = $(LIBCGLUE_MULT_OBJS) $(SOCKET_MULT_OBJS) $(XPRINTF_MULT_OBJS) \ ++ $(NETDB_MULT_OBJS) $(PIPE_OBJS) $(FDMAN_OBJS) $(SELECT_OBJS) $(INTERRUPT_OBJS) ++ ++ACLOCAL_AMFLAGS = -I ../../.. ++CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host ++all: all-am ++ ++.SUFFIXES: ++.SUFFIXES: .S .c .o .obj ++am--refresh: ++ @: ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) ++ @for dep in $?; do \ ++ case '$(am__configure_deps)' in \ ++ *$$dep*) \ ++ echo ' cd $(srcdir) && $(AUTOMAKE) --cygnus '; \ ++ cd $(srcdir) && $(AUTOMAKE) --cygnus \ ++ && exit 0; \ ++ exit 1;; \ ++ esac; \ ++ done; \ ++ echo ' cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile'; \ ++ cd $(top_srcdir) && \ ++ $(AUTOMAKE) --cygnus Makefile ++.PRECIOUS: Makefile ++Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status ++ @case '$?' in \ ++ *config.status*) \ ++ echo ' $(SHELL) ./config.status'; \ ++ $(SHELL) ./config.status;; \ ++ *) \ ++ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ ++ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ ++ esac; ++ ++$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) ++ $(SHELL) ./config.status --recheck ++ ++$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) ++ cd $(srcdir) && $(AUTOCONF) ++$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) ++ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) ++ ++clean-noinstLIBRARIES: ++ -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) ++lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) ++ -rm -f lib.a ++ $(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) ++ $(RANLIB) lib.a ++ ++mostlyclean-compile: ++ -rm -f *.$(OBJEXT) ++ ++distclean-compile: ++ -rm -f *.tab.c ++ ++.S.o: ++ $(CCASCOMPILE) -c $< ++ ++.S.obj: ++ $(CCASCOMPILE) -c `$(CYGPATH_W) '$<'` ++ ++.c.o: ++ $(COMPILE) -c $< ++ ++.c.obj: ++ $(COMPILE) -c `$(CYGPATH_W) '$<'` ++uninstall-info-am: ++ ++ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) ++ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ ++ unique=`for i in $$list; do \ ++ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ ++ done | \ ++ $(AWK) ' { files[$$0] = 1; } \ ++ END { for (i in files) print i; }'`; \ ++ mkid -fID $$unique ++tags: TAGS ++ ++TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ ++ $(TAGS_FILES) $(LISP) ++ tags=; \ ++ here=`pwd`; \ ++ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ ++ unique=`for i in $$list; do \ ++ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ ++ done | \ ++ $(AWK) ' { files[$$0] = 1; } \ ++ END { for (i in files) print i; }'`; \ ++ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ ++ test -n "$$unique" || unique=$$empty_fix; \ ++ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ ++ $$tags $$unique; \ ++ fi ++ctags: CTAGS ++CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ ++ $(TAGS_FILES) $(LISP) ++ tags=; \ ++ here=`pwd`; \ ++ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ ++ unique=`for i in $$list; do \ ++ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ ++ done | \ ++ $(AWK) ' { files[$$0] = 1; } \ ++ END { for (i in files) print i; }'`; \ ++ test -z "$(CTAGS_ARGS)$$tags$$unique" \ ++ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ ++ $$tags $$unique ++ ++GTAGS: ++ here=`$(am__cd) $(top_builddir) && pwd` \ ++ && cd $(top_srcdir) \ ++ && gtags -i $(GTAGS_ARGS) $$here ++ ++distclean-tags: ++ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags ++check-am: ++check: check-am ++all-am: Makefile $(LIBRARIES) ++installdirs: ++install: install-am ++install-exec: install-exec-am ++install-data: install-data-am ++uninstall: uninstall-am ++ ++install-am: all-am ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am ++ ++installcheck: installcheck-am ++install-strip: ++ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ ++ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ ++ `test -z '$(STRIP)' || \ ++ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install ++mostlyclean-generic: ++ ++clean-generic: ++ ++distclean-generic: ++ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) ++ ++maintainer-clean-generic: ++ @echo "This command is intended for maintainers to use" ++ @echo "it deletes files that may require special tools to rebuild." ++clean: clean-am ++ ++clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am ++ ++distclean: distclean-am ++ -rm -f $(am__CONFIG_DISTCLEAN_FILES) ++ -rm -f Makefile ++distclean-am: clean-am distclean-compile distclean-generic \ ++ distclean-tags ++ ++dvi: dvi-am ++ ++dvi-am: ++ ++html: html-am ++ ++info: info-am ++ ++info-am: ++ ++install-data-am: ++ ++install-exec-am: ++ ++install-info: install-info-am ++ ++install-man: ++ ++installcheck-am: ++ ++maintainer-clean: maintainer-clean-am ++ -rm -f $(am__CONFIG_DISTCLEAN_FILES) ++ -rm -rf $(top_srcdir)/autom4te.cache ++ -rm -f Makefile ++maintainer-clean-am: distclean-am maintainer-clean-generic ++ ++mostlyclean: mostlyclean-am ++ ++mostlyclean-am: mostlyclean-compile mostlyclean-generic ++ ++pdf: pdf-am ++ ++pdf-am: ++ ++ps: ps-am ++ ++ps-am: ++ ++uninstall-am: ++ ++.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ ++ clean-generic clean-noinstLIBRARIES ctags distclean \ ++ distclean-compile distclean-generic distclean-tags dvi dvi-am \ ++ html html-am info info-am install install-am install-data \ ++ install-data-am install-exec install-exec-am install-info \ ++ install-info-am install-man install-strip installcheck \ ++ installcheck-am installdirs maintainer-clean \ ++ maintainer-clean-generic mostlyclean mostlyclean-compile \ ++ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ ++ uninstall-am uninstall-info-am ++ ++ ++all: crt0.o ++ ++$(LIBCGLUE_MULT_OBJS): libcglue.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(SOCKET_MULT_OBJS): socket.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(XPRINTF_MULT_OBJS): xprintf.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(NETDB_MULT_OBJS): netdb.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(PIPE_OBJS): pipe.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(FDMAN_OBJS): fdman.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(SELECT_OBJS): select.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++$(INTERRUPT_OBJS): interrupt.S ++ $(COMPILE) -DF_$* $< -c -o $@ ++# Tell versions [3.59,3.63) of GNU make to not export all variables. ++# Otherwise a system limit (for SysV at least) may be exceeded. ++.NOEXPORT: +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/README newlib-1.19.0-psp/newlib/libc/sys/psp/README +--- newlib-1.19.0/newlib/libc/sys/psp/README 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/README 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,16 @@ ++Newlib for PSP ++-- ++ ++This sys/psp directory depends on PSPSDK headers. It expects them to live in ++${prefix}/psp/sdk/include (see newlib/configure.host). ++ ++I used automake 1.4-p6 to generate aclocal.m4 and Makefile.in: ++ ++ aclocal -I ../../.. ++ automake --cygnus ++ ++Autoconf refused to work for me, so I copied configure from sys/sh and modified ++$ac_unique_file to point libcglue.c. ++ ++-- ++Marcus R. Brown +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/aclocal.m4 newlib-1.19.0-psp/newlib/libc/sys/psp/aclocal.m4 +--- newlib-1.19.0/newlib/libc/sys/psp/aclocal.m4 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/aclocal.m4 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,880 @@ ++# generated automatically by aclocal 1.9.6 -*- Autoconf -*- ++ ++# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, ++# 2005 Free Software Foundation, Inc. ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY, to the extent permitted by law; without ++# even the implied warranty of MERCHANTABILITY or FITNESS FOR A ++# PARTICULAR PURPOSE. ++ ++# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# AM_AUTOMAKE_VERSION(VERSION) ++# ---------------------------- ++# Automake X.Y traces this macro to ensure aclocal.m4 has been ++# generated from the m4 files accompanying Automake X.Y. ++AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) ++ ++# AM_SET_CURRENT_AUTOMAKE_VERSION ++# ------------------------------- ++# Call AM_AUTOMAKE_VERSION so it can be traced. ++# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. ++AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], ++ [AM_AUTOMAKE_VERSION([1.9.6])]) ++ ++# AM_AUX_DIR_EXPAND -*- Autoconf -*- ++ ++# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets ++# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to ++# `$srcdir', `$srcdir/..', or `$srcdir/../..'. ++# ++# Of course, Automake must honor this variable whenever it calls a ++# tool from the auxiliary directory. The problem is that $srcdir (and ++# therefore $ac_aux_dir as well) can be either absolute or relative, ++# depending on how configure is run. This is pretty annoying, since ++# it makes $ac_aux_dir quite unusable in subdirectories: in the top ++# source directory, any form will work fine, but in subdirectories a ++# relative path needs to be adjusted first. ++# ++# $ac_aux_dir/missing ++# fails when called from a subdirectory if $ac_aux_dir is relative ++# $top_srcdir/$ac_aux_dir/missing ++# fails if $ac_aux_dir is absolute, ++# fails when called from a subdirectory in a VPATH build with ++# a relative $ac_aux_dir ++# ++# The reason of the latter failure is that $top_srcdir and $ac_aux_dir ++# are both prefixed by $srcdir. In an in-source build this is usually ++# harmless because $srcdir is `.', but things will broke when you ++# start a VPATH build or use an absolute $srcdir. ++# ++# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, ++# iff we strip the leading $srcdir from $ac_aux_dir. That would be: ++# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` ++# and then we would define $MISSING as ++# MISSING="\${SHELL} $am_aux_dir/missing" ++# This will work as long as MISSING is not called from configure, because ++# unfortunately $(top_srcdir) has no meaning in configure. ++# However there are other variables, like CC, which are often used in ++# configure, and could therefore not use this "fixed" $ac_aux_dir. ++# ++# Another solution, used here, is to always expand $ac_aux_dir to an ++# absolute PATH. The drawback is that using absolute paths prevent a ++# configured tree to be moved without reconfiguration. ++ ++AC_DEFUN([AM_AUX_DIR_EXPAND], ++[dnl Rely on autoconf to set up CDPATH properly. ++AC_PREREQ([2.50])dnl ++# expand $ac_aux_dir to an absolute path ++am_aux_dir=`cd $ac_aux_dir && pwd` ++]) ++ ++# AM_CONDITIONAL -*- Autoconf -*- ++ ++# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 ++# Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 7 ++ ++# AM_CONDITIONAL(NAME, SHELL-CONDITION) ++# ------------------------------------- ++# Define a conditional. ++AC_DEFUN([AM_CONDITIONAL], ++[AC_PREREQ(2.52)dnl ++ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], ++ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl ++AC_SUBST([$1_TRUE]) ++AC_SUBST([$1_FALSE]) ++if $2; then ++ $1_TRUE= ++ $1_FALSE='#' ++else ++ $1_TRUE='#' ++ $1_FALSE= ++fi ++AC_CONFIG_COMMANDS_PRE( ++[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then ++ AC_MSG_ERROR([[conditional "$1" was never defined. ++Usually this means the macro was only invoked conditionally.]]) ++fi])]) ++ ++ ++# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 ++# Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 8 ++ ++# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be ++# written in clear, in which case automake, when reading aclocal.m4, ++# will think it sees a *use*, and therefore will trigger all it's ++# C support machinery. Also note that it means that autoscan, seeing ++# CC etc. in the Makefile, will ask for an AC_PROG_CC use... ++ ++ ++# _AM_DEPENDENCIES(NAME) ++# ---------------------- ++# See how the compiler implements dependency checking. ++# NAME is "CC", "CXX", "GCJ", or "OBJC". ++# We try a few techniques and use that to set a single cache variable. ++# ++# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was ++# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular ++# dependency, and given that the user is not expected to run this macro, ++# just rely on AC_PROG_CC. ++AC_DEFUN([_AM_DEPENDENCIES], ++[AC_REQUIRE([AM_SET_DEPDIR])dnl ++AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl ++AC_REQUIRE([AM_MAKE_INCLUDE])dnl ++AC_REQUIRE([AM_DEP_TRACK])dnl ++ ++ifelse([$1], CC, [depcc="$CC" am_compiler_list=], ++ [$1], CXX, [depcc="$CXX" am_compiler_list=], ++ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], ++ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], ++ [depcc="$$1" am_compiler_list=]) ++ ++AC_CACHE_CHECK([dependency style of $depcc], ++ [am_cv_$1_dependencies_compiler_type], ++[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_$1_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_$1_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_$1_dependencies_compiler_type=none ++fi ++]) ++AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) ++AM_CONDITIONAL([am__fastdep$1], [ ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ++]) ++ ++ ++# AM_SET_DEPDIR ++# ------------- ++# Choose a directory name for dependency files. ++# This macro is AC_REQUIREd in _AM_DEPENDENCIES ++AC_DEFUN([AM_SET_DEPDIR], ++[AC_REQUIRE([AM_SET_LEADING_DOT])dnl ++AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ++]) ++ ++ ++# AM_DEP_TRACK ++# ------------ ++AC_DEFUN([AM_DEP_TRACK], ++[AC_ARG_ENABLE(dependency-tracking, ++[ --disable-dependency-tracking speeds up one-time build ++ --enable-dependency-tracking do not reject slow dependency extractors]) ++if test "x$enable_dependency_tracking" != xno; then ++ am_depcomp="$ac_aux_dir/depcomp" ++ AMDEPBACKSLASH='\' ++fi ++AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) ++AC_SUBST([AMDEPBACKSLASH]) ++]) ++ ++# Generate code to set up dependency tracking. -*- Autoconf -*- ++ ++# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 ++# Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++#serial 3 ++ ++# _AM_OUTPUT_DEPENDENCY_COMMANDS ++# ------------------------------ ++AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], ++[for mf in $CONFIG_FILES; do ++ # Strip MF so we end up with the name of the file. ++ mf=`echo "$mf" | sed -e 's/:.*$//'` ++ # Check whether this is an Automake generated Makefile or not. ++ # We used to match only the files named `Makefile.in', but ++ # some people rename them; so instead we look at the file content. ++ # Grep'ing the first line is not enough: some people post-process ++ # each Makefile.in and add a new line on top of each file to say so. ++ # So let's grep whole file. ++ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then ++ dirpart=`AS_DIRNAME("$mf")` ++ else ++ continue ++ fi ++ # Extract the definition of DEPDIR, am__include, and am__quote ++ # from the Makefile without running `make'. ++ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` ++ test -z "$DEPDIR" && continue ++ am__include=`sed -n 's/^am__include = //p' < "$mf"` ++ test -z "am__include" && continue ++ am__quote=`sed -n 's/^am__quote = //p' < "$mf"` ++ # When using ansi2knr, U may be empty or an underscore; expand it ++ U=`sed -n 's/^U = //p' < "$mf"` ++ # Find all dependency output files, they are included files with ++ # $(DEPDIR) in their names. We invoke sed twice because it is the ++ # simplest approach to changing $(DEPDIR) to its actual value in the ++ # expansion. ++ for file in `sed -n " ++ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ ++ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do ++ # Make sure the directory exists. ++ test -f "$dirpart/$file" && continue ++ fdir=`AS_DIRNAME(["$file"])` ++ AS_MKDIR_P([$dirpart/$fdir]) ++ # echo "creating $dirpart/$file" ++ echo '# dummy' > "$dirpart/$file" ++ done ++done ++])# _AM_OUTPUT_DEPENDENCY_COMMANDS ++ ++ ++# AM_OUTPUT_DEPENDENCY_COMMANDS ++# ----------------------------- ++# This macro should only be invoked once -- use via AC_REQUIRE. ++# ++# This code is only required when automatic dependency tracking ++# is enabled. FIXME. This creates each `.P' file that we will ++# need in order to bootstrap the dependency handling code. ++AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], ++[AC_CONFIG_COMMANDS([depfiles], ++ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], ++ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ++]) ++ ++# Do all the work for Automake. -*- Autoconf -*- ++ ++# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 ++# Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 12 ++ ++# This macro actually does too much. Some checks are only needed if ++# your package does certain things. But this isn't really a big deal. ++ ++# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) ++# AM_INIT_AUTOMAKE([OPTIONS]) ++# ----------------------------------------------- ++# The call with PACKAGE and VERSION arguments is the old style ++# call (pre autoconf-2.50), which is being phased out. PACKAGE ++# and VERSION should now be passed to AC_INIT and removed from ++# the call to AM_INIT_AUTOMAKE. ++# We support both call styles for the transition. After ++# the next Automake release, Autoconf can make the AC_INIT ++# arguments mandatory, and then we can depend on a new Autoconf ++# release and drop the old call support. ++AC_DEFUN([AM_INIT_AUTOMAKE], ++[AC_PREREQ([2.58])dnl ++dnl Autoconf wants to disallow AM_ names. We explicitly allow ++dnl the ones we care about. ++m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl ++AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl ++AC_REQUIRE([AC_PROG_INSTALL])dnl ++# test to see if srcdir already configured ++if test "`cd $srcdir && pwd`" != "`pwd`" && ++ test -f $srcdir/config.status; then ++ AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) ++fi ++ ++# test whether we have cygpath ++if test -z "$CYGPATH_W"; then ++ if (cygpath --version) >/dev/null 2>/dev/null; then ++ CYGPATH_W='cygpath -w' ++ else ++ CYGPATH_W=echo ++ fi ++fi ++AC_SUBST([CYGPATH_W]) ++ ++# Define the identity of the package. ++dnl Distinguish between old-style and new-style calls. ++m4_ifval([$2], ++[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl ++ AC_SUBST([PACKAGE], [$1])dnl ++ AC_SUBST([VERSION], [$2])], ++[_AM_SET_OPTIONS([$1])dnl ++ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl ++ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl ++ ++_AM_IF_OPTION([no-define],, ++[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) ++ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl ++ ++# Some tools Automake needs. ++AC_REQUIRE([AM_SANITY_CHECK])dnl ++AC_REQUIRE([AC_ARG_PROGRAM])dnl ++AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) ++AM_MISSING_PROG(AUTOCONF, autoconf) ++AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) ++AM_MISSING_PROG(AUTOHEADER, autoheader) ++AM_MISSING_PROG(MAKEINFO, makeinfo) ++AM_PROG_INSTALL_SH ++AM_PROG_INSTALL_STRIP ++AC_REQUIRE([AM_PROG_MKDIR_P])dnl ++# We need awk for the "check" target. The system "awk" is bad on ++# some platforms. ++AC_REQUIRE([AC_PROG_AWK])dnl ++AC_REQUIRE([AC_PROG_MAKE_SET])dnl ++AC_REQUIRE([AM_SET_LEADING_DOT])dnl ++_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], ++ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], ++ [_AM_PROG_TAR([v7])])]) ++_AM_IF_OPTION([no-dependencies],, ++[AC_PROVIDE_IFELSE([AC_PROG_CC], ++ [_AM_DEPENDENCIES(CC)], ++ [define([AC_PROG_CC], ++ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl ++AC_PROVIDE_IFELSE([AC_PROG_CXX], ++ [_AM_DEPENDENCIES(CXX)], ++ [define([AC_PROG_CXX], ++ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ++]) ++]) ++ ++ ++# When config.status generates a header, we must update the stamp-h file. ++# This file resides in the same directory as the config header ++# that is generated. The stamp files are numbered to have different names. ++ ++# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the ++# loop where config.status creates the headers, so we can generate ++# our stamp files there. ++AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], ++[# Compute $1's index in $config_headers. ++_am_stamp_count=1 ++for _am_header in $config_headers :; do ++ case $_am_header in ++ $1 | $1:* ) ++ break ;; ++ * ) ++ _am_stamp_count=`expr $_am_stamp_count + 1` ;; ++ esac ++done ++echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) ++ ++# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# AM_PROG_INSTALL_SH ++# ------------------ ++# Define $install_sh. ++AC_DEFUN([AM_PROG_INSTALL_SH], ++[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl ++install_sh=${install_sh-"$am_aux_dir/install-sh"} ++AC_SUBST(install_sh)]) ++ ++# Copyright (C) 2003, 2005 Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 2 ++ ++# Check whether the underlying file-system supports filenames ++# with a leading dot. For instance MS-DOS doesn't. ++AC_DEFUN([AM_SET_LEADING_DOT], ++[rm -rf .tst 2>/dev/null ++mkdir .tst 2>/dev/null ++if test -d .tst; then ++ am__leading_dot=. ++else ++ am__leading_dot=_ ++fi ++rmdir .tst 2>/dev/null ++AC_SUBST([am__leading_dot])]) ++ ++# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- ++# From Jim Meyering ++ ++# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 ++# Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 4 ++ ++AC_DEFUN([AM_MAINTAINER_MODE], ++[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) ++ dnl maintainer-mode is disabled by default ++ AC_ARG_ENABLE(maintainer-mode, ++[ --enable-maintainer-mode enable make rules and dependencies not useful ++ (and sometimes confusing) to the casual installer], ++ USE_MAINTAINER_MODE=$enableval, ++ USE_MAINTAINER_MODE=no) ++ AC_MSG_RESULT([$USE_MAINTAINER_MODE]) ++ AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) ++ MAINT=$MAINTAINER_MODE_TRUE ++ AC_SUBST(MAINT)dnl ++] ++) ++ ++AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) ++ ++# Check to see how 'make' treats includes. -*- Autoconf -*- ++ ++# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 3 ++ ++# AM_MAKE_INCLUDE() ++# ----------------- ++# Check to see how make treats includes. ++AC_DEFUN([AM_MAKE_INCLUDE], ++[am_make=${MAKE-make} ++cat > confinc << 'END' ++am__doit: ++ @echo done ++.PHONY: am__doit ++END ++# If we don't find an include directive, just comment out the code. ++AC_MSG_CHECKING([for style of include used by $am_make]) ++am__include="#" ++am__quote= ++_am_result=none ++# First try GNU make style include. ++echo "include confinc" > confmf ++# We grep out `Entering directory' and `Leaving directory' ++# messages which can occur if `w' ends up in MAKEFLAGS. ++# In particular we don't look at `^make:' because GNU make might ++# be invoked under some other name (usually "gmake"), in which ++# case it prints its new name instead of `make'. ++if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then ++ am__include=include ++ am__quote= ++ _am_result=GNU ++fi ++# Now try BSD make style include. ++if test "$am__include" = "#"; then ++ echo '.include "confinc"' > confmf ++ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then ++ am__include=.include ++ am__quote="\"" ++ _am_result=BSD ++ fi ++fi ++AC_SUBST([am__include]) ++AC_SUBST([am__quote]) ++AC_MSG_RESULT([$_am_result]) ++rm -f confinc confmf ++]) ++ ++# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- ++ ++# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 ++# Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 4 ++ ++# AM_MISSING_PROG(NAME, PROGRAM) ++# ------------------------------ ++AC_DEFUN([AM_MISSING_PROG], ++[AC_REQUIRE([AM_MISSING_HAS_RUN]) ++$1=${$1-"${am_missing_run}$2"} ++AC_SUBST($1)]) ++ ++ ++# AM_MISSING_HAS_RUN ++# ------------------ ++# Define MISSING if not defined so far and test if it supports --run. ++# If it does, set am_missing_run to use it, otherwise, to nothing. ++AC_DEFUN([AM_MISSING_HAS_RUN], ++[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl ++test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" ++# Use eval to expand $SHELL ++if eval "$MISSING --run true"; then ++ am_missing_run="$MISSING --run " ++else ++ am_missing_run= ++ AC_MSG_WARN([`missing' script is too old or missing]) ++fi ++]) ++ ++# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# AM_PROG_MKDIR_P ++# --------------- ++# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. ++# ++# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories ++# created by `make install' are always world readable, even if the ++# installer happens to have an overly restrictive umask (e.g. 077). ++# This was a mistake. There are at least two reasons why we must not ++# use `-m 0755': ++# - it causes special bits like SGID to be ignored, ++# - it may be too restrictive (some setups expect 775 directories). ++# ++# Do not use -m 0755 and let people choose whatever they expect by ++# setting umask. ++# ++# We cannot accept any implementation of `mkdir' that recognizes `-p'. ++# Some implementations (such as Solaris 8's) are not thread-safe: if a ++# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' ++# concurrently, both version can detect that a/ is missing, but only ++# one can create it and the other will error out. Consequently we ++# restrict ourselves to GNU make (using the --version option ensures ++# this.) ++AC_DEFUN([AM_PROG_MKDIR_P], ++[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then ++ # We used to keeping the `.' as first argument, in order to ++ # allow $(mkdir_p) to be used without argument. As in ++ # $(mkdir_p) $(somedir) ++ # where $(somedir) is conditionally defined. However this is wrong ++ # for two reasons: ++ # 1. if the package is installed by a user who cannot write `.' ++ # make install will fail, ++ # 2. the above comment should most certainly read ++ # $(mkdir_p) $(DESTDIR)$(somedir) ++ # so it does not work when $(somedir) is undefined and ++ # $(DESTDIR) is not. ++ # To support the latter case, we have to write ++ # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), ++ # so the `.' trick is pointless. ++ mkdir_p='mkdir -p --' ++else ++ # On NextStep and OpenStep, the `mkdir' command does not ++ # recognize any option. It will interpret all options as ++ # directories to create, and then abort because `.' already ++ # exists. ++ for d in ./-p ./--version; ++ do ++ test -d $d && rmdir $d ++ done ++ # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. ++ if test -f "$ac_aux_dir/mkinstalldirs"; then ++ mkdir_p='$(mkinstalldirs)' ++ else ++ mkdir_p='$(install_sh) -d' ++ fi ++fi ++AC_SUBST([mkdir_p])]) ++ ++# Helper functions for option handling. -*- Autoconf -*- ++ ++# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 3 ++ ++# _AM_MANGLE_OPTION(NAME) ++# ----------------------- ++AC_DEFUN([_AM_MANGLE_OPTION], ++[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) ++ ++# _AM_SET_OPTION(NAME) ++# ------------------------------ ++# Set option NAME. Presently that only means defining a flag for this option. ++AC_DEFUN([_AM_SET_OPTION], ++[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) ++ ++# _AM_SET_OPTIONS(OPTIONS) ++# ---------------------------------- ++# OPTIONS is a space-separated list of Automake options. ++AC_DEFUN([_AM_SET_OPTIONS], ++[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) ++ ++# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) ++# ------------------------------------------- ++# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. ++AC_DEFUN([_AM_IF_OPTION], ++[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) ++ ++# Check to make sure that the build environment is sane. -*- Autoconf -*- ++ ++# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 ++# Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 4 ++ ++# AM_SANITY_CHECK ++# --------------- ++AC_DEFUN([AM_SANITY_CHECK], ++[AC_MSG_CHECKING([whether build environment is sane]) ++# Just in case ++sleep 1 ++echo timestamp > conftest.file ++# Do `set' in a subshell so we don't clobber the current shell's ++# arguments. Must try -L first in case configure is actually a ++# symlink; some systems play weird games with the mod time of symlinks ++# (eg FreeBSD returns the mod time of the symlink's containing ++# directory). ++if ( ++ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` ++ if test "$[*]" = "X"; then ++ # -L didn't work. ++ set X `ls -t $srcdir/configure conftest.file` ++ fi ++ rm -f conftest.file ++ if test "$[*]" != "X $srcdir/configure conftest.file" \ ++ && test "$[*]" != "X conftest.file $srcdir/configure"; then ++ ++ # If neither matched, then we have a broken ls. This can happen ++ # if, for instance, CONFIG_SHELL is bash and it inherits a ++ # broken ls alias from the environment. This has actually ++ # happened. Such a system could not be considered "sane". ++ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken ++alias in your environment]) ++ fi ++ ++ test "$[2]" = conftest.file ++ ) ++then ++ # Ok. ++ : ++else ++ AC_MSG_ERROR([newly created file is older than distributed files! ++Check your system clock]) ++fi ++AC_MSG_RESULT(yes)]) ++ ++# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# AM_PROG_INSTALL_STRIP ++# --------------------- ++# One issue with vendor `install' (even GNU) is that you can't ++# specify the program used to strip binaries. This is especially ++# annoying in cross-compiling environments, where the build's strip ++# is unlikely to handle the host's binaries. ++# Fortunately install-sh will honor a STRIPPROG variable, so we ++# always use install-sh in `make install-strip', and initialize ++# STRIPPROG with the value of the STRIP variable (set by the user). ++AC_DEFUN([AM_PROG_INSTALL_STRIP], ++[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl ++# Installed binaries are usually stripped using `strip' when the user ++# run `make install-strip'. However `strip' might not be the right ++# tool to use in cross-compilation environments, therefore Automake ++# will honor the `STRIP' environment variable to overrule this program. ++dnl Don't test for $cross_compiling = yes, because it might be `maybe'. ++if test "$cross_compiling" != no; then ++ AC_CHECK_TOOL([STRIP], [strip], :) ++fi ++INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" ++AC_SUBST([INSTALL_STRIP_PROGRAM])]) ++ ++# Check how to create a tarball. -*- Autoconf -*- ++ ++# Copyright (C) 2004, 2005 Free Software Foundation, Inc. ++# ++# This file is free software; the Free Software Foundation ++# gives unlimited permission to copy and/or distribute it, ++# with or without modifications, as long as this notice is preserved. ++ ++# serial 2 ++ ++# _AM_PROG_TAR(FORMAT) ++# -------------------- ++# Check how to create a tarball in format FORMAT. ++# FORMAT should be one of `v7', `ustar', or `pax'. ++# ++# Substitute a variable $(am__tar) that is a command ++# writing to stdout a FORMAT-tarball containing the directory ++# $tardir. ++# tardir=directory && $(am__tar) > result.tar ++# ++# Substitute a variable $(am__untar) that extract such ++# a tarball read from stdin. ++# $(am__untar) < result.tar ++AC_DEFUN([_AM_PROG_TAR], ++[# Always define AMTAR for backward compatibility. ++AM_MISSING_PROG([AMTAR], [tar]) ++m4_if([$1], [v7], ++ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], ++ [m4_case([$1], [ustar],, [pax],, ++ [m4_fatal([Unknown tar format])]) ++AC_MSG_CHECKING([how to create a $1 tar archive]) ++# Loop over all known methods to create a tar archive until one works. ++_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' ++_am_tools=${am_cv_prog_tar_$1-$_am_tools} ++# Do not fold the above two line into one, because Tru64 sh and ++# Solaris sh will not grok spaces in the rhs of `-'. ++for _am_tool in $_am_tools ++do ++ case $_am_tool in ++ gnutar) ++ for _am_tar in tar gnutar gtar; ++ do ++ AM_RUN_LOG([$_am_tar --version]) && break ++ done ++ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' ++ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' ++ am__untar="$_am_tar -xf -" ++ ;; ++ plaintar) ++ # Must skip GNU tar: if it does not support --format= it doesn't create ++ # ustar tarball either. ++ (tar --version) >/dev/null 2>&1 && continue ++ am__tar='tar chf - "$$tardir"' ++ am__tar_='tar chf - "$tardir"' ++ am__untar='tar xf -' ++ ;; ++ pax) ++ am__tar='pax -L -x $1 -w "$$tardir"' ++ am__tar_='pax -L -x $1 -w "$tardir"' ++ am__untar='pax -r' ++ ;; ++ cpio) ++ am__tar='find "$$tardir" -print | cpio -o -H $1 -L' ++ am__tar_='find "$tardir" -print | cpio -o -H $1 -L' ++ am__untar='cpio -i -H $1 -d' ++ ;; ++ none) ++ am__tar=false ++ am__tar_=false ++ am__untar=false ++ ;; ++ esac ++ ++ # If the value was cached, stop now. We just wanted to have am__tar ++ # and am__untar set. ++ test -n "${am_cv_prog_tar_$1}" && break ++ ++ # tar/untar a dummy directory, and stop if the command works ++ rm -rf conftest.dir ++ mkdir conftest.dir ++ echo GrepMe > conftest.dir/file ++ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) ++ rm -rf conftest.dir ++ if test -s conftest.tar; then ++ AM_RUN_LOG([$am__untar /dev/null 2>&1 && break ++ fi ++done ++rm -rf conftest.dir ++ ++AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) ++AC_MSG_RESULT([$am_cv_prog_tar_$1])]) ++AC_SUBST([am__tar]) ++AC_SUBST([am__untar]) ++]) # _AM_PROG_TAR ++ ++m4_include([../../../acinclude.m4]) +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/arpa/inet.h newlib-1.19.0-psp/newlib/libc/sys/psp/arpa/inet.h +--- newlib-1.19.0/newlib/libc/sys/psp/arpa/inet.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/arpa/inet.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,26 @@ ++/* arpa/inet.h - Functions for converting IP addresses between strings and numbers */ ++ ++#ifndef _ARPA_INET_H_ ++#define _ARPA_INET_H_ ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++#include ++ ++in_addr_t sceNetInetInetAddr(const char *ip); ++int sceNetInetInetAton(const char *ip, struct in_addr *in); ++const char* sceNetInetInetNtop(int af, const void *src, char *dst, socklen_t cnt); ++int sceNetInetInetPton(int af, const char *src, void *dst); ++ ++char *inet_ntoa(struct in_addr in); ++#define inet_addr sceNetInetInetAddr ++#define inet_aton sceNetInetInetAton ++#define inet_ntop sceNetInetInetNtop ++#define inet_pton sceNetInetInetPton ++ ++#ifdef __cplusplus ++} ++#endif ++#endif /* _ARPA_INET_H_ */ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/confdefs.h newlib-1.19.0-psp/newlib/libc/sys/psp/confdefs.h +--- newlib-1.19.0/newlib/libc/sys/psp/confdefs.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/confdefs.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1 @@ ++ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/configure newlib-1.19.0-psp/newlib/libc/sys/psp/configure +--- newlib-1.19.0/newlib/libc/sys/psp/configure 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/configure 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,4085 @@ ++#! /bin/sh ++# Guess values for system-dependent variables and create Makefiles. ++# Generated by GNU Autoconf 2.59 for newlib 1.15.0. ++# ++# Copyright (C) 2003 Free Software Foundation, Inc. ++# This configure script is free software; the Free Software Foundation ++# gives unlimited permission to copy, distribute and modify it. ++## --------------------- ## ++## M4sh Initialization. ## ++## --------------------- ## ++ ++# Be Bourne compatible ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then ++ set -o posix ++fi ++DUALCASE=1; export DUALCASE # for MKS sh ++ ++# Support unset when possible. ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ++ as_unset=unset ++else ++ as_unset=false ++fi ++ ++ ++# Work around bugs in pre-3.0 UWIN ksh. ++$as_unset ENV MAIL MAILPATH ++PS1='$ ' ++PS2='> ' ++PS4='+ ' ++ ++# NLS nuisances. ++for as_var in \ ++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ++ LC_TELEPHONE LC_TIME ++do ++ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ++ eval $as_var=C; export $as_var ++ else ++ $as_unset $as_var ++ fi ++done ++ ++# Required to use basename. ++if expr a : '\(a\)' >/dev/null 2>&1; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then ++ as_basename=basename ++else ++ as_basename=false ++fi ++ ++ ++# Name of the executable. ++as_me=`$as_basename "$0" || ++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ++ X"$0" : 'X\(//\)$' \| \ ++ X"$0" : 'X\(/\)$' \| \ ++ . : '\(.\)' 2>/dev/null || ++echo X/"$0" | ++ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } ++ /^X\/\(\/\/\)$/{ s//\1/; q; } ++ /^X\/\(\/\).*/{ s//\1/; q; } ++ s/.*/./; q'` ++ ++ ++# PATH needs CR, and LINENO needs CR and PATH. ++# Avoid depending upon Character Ranges. ++as_cr_letters='abcdefghijklmnopqrstuvwxyz' ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS ++as_cr_digits='0123456789' ++as_cr_alnum=$as_cr_Letters$as_cr_digits ++ ++# 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 ++ ++ ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x$as_lineno_3" = "x$as_lineno_2" || { ++ # Find who we are. Look in the path if we contain no path at all ++ # relative or not. ++ case $0 in ++ *[\\/]* ) as_myself=$0 ;; ++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ++done ++ ++ ;; ++ esac ++ # We did not find ourselves, most probably we were run as `sh COMMAND' ++ # in which case we are not to be found in the path. ++ if test "x$as_myself" = x; then ++ as_myself=$0 ++ fi ++ if test ! -f "$as_myself"; then ++ { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 ++ { (exit 1); exit 1; }; } ++ fi ++ case $CONFIG_SHELL in ++ '') ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for as_base in sh bash ksh sh5; do ++ case $as_dir in ++ /*) ++ if ("$as_dir/$as_base" -c ' ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then ++ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } ++ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } ++ CONFIG_SHELL=$as_dir/$as_base ++ export CONFIG_SHELL ++ exec "$CONFIG_SHELL" "$0" ${1+"$@"} ++ fi;; ++ esac ++ done ++done ++;; ++ esac ++ ++ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ++ # uniformly replaced by the line number. The first 'sed' inserts a ++ # line-number line before each line; the second 'sed' does the real ++ # work. The second script uses 'N' to pair each line-number line ++ # with the numbered line, and appends trailing '-' during ++ # substitution so that $LINENO is not a special case at line end. ++ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ++ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) ++ sed '=' <$as_myself | ++ sed ' ++ N ++ s,$,-, ++ : loop ++ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, ++ t loop ++ s,-$,, ++ s,^['$as_cr_digits']*\n,, ++ ' >$as_me.lineno && ++ chmod +x $as_me.lineno || ++ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 ++ { (exit 1); exit 1; }; } ++ ++ # Don't try to exec as it changes $[0], causing all sort of problems ++ # (the dirname of $[0] is not the place where we might find the ++ # original and so on. Autoconf is especially sensible to this). ++ . ./$as_me.lineno ++ # Exit status is that of the last command. ++ exit ++} ++ ++ ++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in ++ *c*,-n*) ECHO_N= ECHO_C=' ++' ECHO_T=' ' ;; ++ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; ++ *) ECHO_N= ECHO_C='\c' ECHO_T= ;; ++esac ++ ++if expr a : '\(a\)' >/dev/null 2>&1; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++rm -f conf$$ conf$$.exe conf$$.file ++echo >conf$$.file ++if ln -s conf$$.file conf$$ 2>/dev/null; then ++ # We could just check for DJGPP; but this test a) works b) is more generic ++ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). ++ if test -f conf$$.exe; then ++ # Don't use ln at all; we don't have any links ++ as_ln_s='cp -p' ++ else ++ as_ln_s='ln -s' ++ fi ++elif ln conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s=ln ++else ++ as_ln_s='cp -p' ++fi ++rm -f conf$$ conf$$.exe conf$$.file ++ ++if mkdir -p . 2>/dev/null; then ++ as_mkdir_p=: ++else ++ test -d ./-p && rmdir ./-p ++ as_mkdir_p=false ++fi ++ ++as_executable_p="test -f" ++ ++# Sed expression to map a string onto a valid CPP name. ++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" ++ ++# Sed expression to map a string onto a valid variable name. ++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" ++ ++ ++# IFS ++# We need space, tab and new line, in precisely that order. ++as_nl=' ++' ++IFS=" $as_nl" ++ ++# CDPATH. ++$as_unset CDPATH ++ ++ ++# Name of the host. ++# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, ++# so uname gets run too. ++ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` ++ ++exec 6>&1 ++ ++# ++# Initializations. ++# ++ac_default_prefix=/usr/local ++ac_config_libobj_dir=. ++cross_compiling=no ++subdirs= ++MFLAGS= ++MAKEFLAGS= ++SHELL=${CONFIG_SHELL-/bin/sh} ++ ++# Maximum number of lines to put in a shell here document. ++# This variable seems obsolete. It should probably be removed, and ++# only ac_max_sed_lines should be used. ++: ${ac_max_here_lines=38} ++ ++# Identity of this package. ++PACKAGE_NAME='newlib' ++PACKAGE_TARNAME='newlib' ++PACKAGE_VERSION='1.15.0' ++PACKAGE_STRING='newlib 1.15.0' ++PACKAGE_BUGREPORT='' ++ ++ac_unique_file="libcglue.c" ++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 MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir LIBOBJS LTLIBOBJS' ++ac_subst_files='' ++ ++# Initialize some variables set by options. ++ac_init_help= ++ac_init_version=false ++# The variables have the same names as the options, with ++# dashes changed to underlines. ++cache_file=/dev/null ++exec_prefix=NONE ++no_create= ++no_recursion= ++prefix=NONE ++program_prefix=NONE ++program_suffix=NONE ++program_transform_name=s,x,x, ++silent= ++site= ++srcdir= ++verbose= ++x_includes=NONE ++x_libraries=NONE ++ ++# Installation directory options. ++# These are left unexpanded so users can "make install exec_prefix=/foo" ++# and all the variables that are supposed to be based on exec_prefix ++# by default will actually change. ++# Use braces instead of parens because sh, perl, etc. also accept them. ++bindir='${exec_prefix}/bin' ++sbindir='${exec_prefix}/sbin' ++libexecdir='${exec_prefix}/libexec' ++datadir='${prefix}/share' ++sysconfdir='${prefix}/etc' ++sharedstatedir='${prefix}/com' ++localstatedir='${prefix}/var' ++libdir='${exec_prefix}/lib' ++includedir='${prefix}/include' ++oldincludedir='/usr/include' ++infodir='${prefix}/info' ++mandir='${prefix}/man' ++ ++ac_prev= ++for ac_option ++do ++ # If the previous option needs an argument, assign it. ++ if test -n "$ac_prev"; then ++ eval "$ac_prev=\$ac_option" ++ ac_prev= ++ continue ++ fi ++ ++ ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` ++ ++ # Accept the important Cygnus configure options, so we can diagnose typos. ++ ++ case $ac_option in ++ ++ -bindir | --bindir | --bindi | --bind | --bin | --bi) ++ ac_prev=bindir ;; ++ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) ++ bindir=$ac_optarg ;; ++ ++ -build | --build | --buil | --bui | --bu) ++ ac_prev=build_alias ;; ++ -build=* | --build=* | --buil=* | --bui=* | --bu=*) ++ build_alias=$ac_optarg ;; ++ ++ -cache-file | --cache-file | --cache-fil | --cache-fi \ ++ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ++ ac_prev=cache_file ;; ++ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ ++ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) ++ cache_file=$ac_optarg ;; ++ ++ --config-cache | -C) ++ cache_file=config.cache ;; ++ ++ -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ++ ac_prev=datadir ;; ++ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ ++ | --da=*) ++ datadir=$ac_optarg ;; ++ ++ -disable-* | --disable-*) ++ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ++ { (exit 1); exit 1; }; } ++ ac_feature=`echo $ac_feature | sed 's/-/_/g'` ++ eval "enable_$ac_feature=no" ;; ++ ++ -enable-* | --enable-*) ++ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid feature name: $ac_feature" >&2 ++ { (exit 1); exit 1; }; } ++ ac_feature=`echo $ac_feature | sed 's/-/_/g'` ++ case $ac_option in ++ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; ++ *) ac_optarg=yes ;; ++ esac ++ eval "enable_$ac_feature='$ac_optarg'" ;; ++ ++ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ ++ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ ++ | --exec | --exe | --ex) ++ ac_prev=exec_prefix ;; ++ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ ++ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ ++ | --exec=* | --exe=* | --ex=*) ++ exec_prefix=$ac_optarg ;; ++ ++ -gas | --gas | --ga | --g) ++ # Obsolete; use --with-gas. ++ with_gas=yes ;; ++ ++ -help | --help | --hel | --he | -h) ++ ac_init_help=long ;; ++ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ++ ac_init_help=recursive ;; ++ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ++ ac_init_help=short ;; ++ ++ -host | --host | --hos | --ho) ++ ac_prev=host_alias ;; ++ -host=* | --host=* | --hos=* | --ho=*) ++ host_alias=$ac_optarg ;; ++ ++ -includedir | --includedir | --includedi | --included | --include \ ++ | --includ | --inclu | --incl | --inc) ++ ac_prev=includedir ;; ++ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ ++ | --includ=* | --inclu=* | --incl=* | --inc=*) ++ includedir=$ac_optarg ;; ++ ++ -infodir | --infodir | --infodi | --infod | --info | --inf) ++ ac_prev=infodir ;; ++ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) ++ infodir=$ac_optarg ;; ++ ++ -libdir | --libdir | --libdi | --libd) ++ ac_prev=libdir ;; ++ -libdir=* | --libdir=* | --libdi=* | --libd=*) ++ libdir=$ac_optarg ;; ++ ++ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ ++ | --libexe | --libex | --libe) ++ ac_prev=libexecdir ;; ++ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ ++ | --libexe=* | --libex=* | --libe=*) ++ libexecdir=$ac_optarg ;; ++ ++ -localstatedir | --localstatedir | --localstatedi | --localstated \ ++ | --localstate | --localstat | --localsta | --localst \ ++ | --locals | --local | --loca | --loc | --lo) ++ ac_prev=localstatedir ;; ++ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ ++ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ ++ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) ++ localstatedir=$ac_optarg ;; ++ ++ -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ++ ac_prev=mandir ;; ++ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) ++ mandir=$ac_optarg ;; ++ ++ -nfp | --nfp | --nf) ++ # Obsolete; use --without-fp. ++ with_fp=no ;; ++ ++ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ++ | --no-cr | --no-c | -n) ++ no_create=yes ;; ++ ++ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ++ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ++ no_recursion=yes ;; ++ ++ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ ++ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ ++ | --oldin | --oldi | --old | --ol | --o) ++ ac_prev=oldincludedir ;; ++ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ ++ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ ++ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) ++ oldincludedir=$ac_optarg ;; ++ ++ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ++ ac_prev=prefix ;; ++ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ++ prefix=$ac_optarg ;; ++ ++ -program-prefix | --program-prefix | --program-prefi | --program-pref \ ++ | --program-pre | --program-pr | --program-p) ++ ac_prev=program_prefix ;; ++ -program-prefix=* | --program-prefix=* | --program-prefi=* \ ++ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) ++ program_prefix=$ac_optarg ;; ++ ++ -program-suffix | --program-suffix | --program-suffi | --program-suff \ ++ | --program-suf | --program-su | --program-s) ++ ac_prev=program_suffix ;; ++ -program-suffix=* | --program-suffix=* | --program-suffi=* \ ++ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) ++ program_suffix=$ac_optarg ;; ++ ++ -program-transform-name | --program-transform-name \ ++ | --program-transform-nam | --program-transform-na \ ++ | --program-transform-n | --program-transform- \ ++ | --program-transform | --program-transfor \ ++ | --program-transfo | --program-transf \ ++ | --program-trans | --program-tran \ ++ | --progr-tra | --program-tr | --program-t) ++ ac_prev=program_transform_name ;; ++ -program-transform-name=* | --program-transform-name=* \ ++ | --program-transform-nam=* | --program-transform-na=* \ ++ | --program-transform-n=* | --program-transform-=* \ ++ | --program-transform=* | --program-transfor=* \ ++ | --program-transfo=* | --program-transf=* \ ++ | --program-trans=* | --program-tran=* \ ++ | --progr-tra=* | --program-tr=* | --program-t=*) ++ program_transform_name=$ac_optarg ;; ++ ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ++ | -silent | --silent | --silen | --sile | --sil) ++ silent=yes ;; ++ ++ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ++ ac_prev=sbindir ;; ++ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ ++ | --sbi=* | --sb=*) ++ sbindir=$ac_optarg ;; ++ ++ -sharedstatedir | --sharedstatedir | --sharedstatedi \ ++ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ ++ | --sharedst | --shareds | --shared | --share | --shar \ ++ | --sha | --sh) ++ ac_prev=sharedstatedir ;; ++ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ ++ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ ++ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ ++ | --sha=* | --sh=*) ++ sharedstatedir=$ac_optarg ;; ++ ++ -site | --site | --sit) ++ ac_prev=site ;; ++ -site=* | --site=* | --sit=*) ++ site=$ac_optarg ;; ++ ++ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ++ ac_prev=srcdir ;; ++ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ++ srcdir=$ac_optarg ;; ++ ++ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ ++ | --syscon | --sysco | --sysc | --sys | --sy) ++ ac_prev=sysconfdir ;; ++ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ ++ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) ++ sysconfdir=$ac_optarg ;; ++ ++ -target | --target | --targe | --targ | --tar | --ta | --t) ++ ac_prev=target_alias ;; ++ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) ++ target_alias=$ac_optarg ;; ++ ++ -v | -verbose | --verbose | --verbos | --verbo | --verb) ++ verbose=yes ;; ++ ++ -version | --version | --versio | --versi | --vers | -V) ++ ac_init_version=: ;; ++ ++ -with-* | --with-*) ++ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid package name: $ac_package" >&2 ++ { (exit 1); exit 1; }; } ++ ac_package=`echo $ac_package| sed 's/-/_/g'` ++ case $ac_option in ++ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; ++ *) ac_optarg=yes ;; ++ esac ++ eval "with_$ac_package='$ac_optarg'" ;; ++ ++ -without-* | --without-*) ++ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid package name: $ac_package" >&2 ++ { (exit 1); exit 1; }; } ++ ac_package=`echo $ac_package | sed 's/-/_/g'` ++ eval "with_$ac_package=no" ;; ++ ++ --x) ++ # Obsolete; use --with-x. ++ with_x=yes ;; ++ ++ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ ++ | --x-incl | --x-inc | --x-in | --x-i) ++ ac_prev=x_includes ;; ++ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ ++ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) ++ x_includes=$ac_optarg ;; ++ ++ -x-libraries | --x-libraries | --x-librarie | --x-librari \ ++ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ++ ac_prev=x_libraries ;; ++ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ ++ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) ++ x_libraries=$ac_optarg ;; ++ ++ -*) { echo "$as_me: error: unrecognized option: $ac_option ++Try \`$0 --help' for more information." >&2 ++ { (exit 1); exit 1; }; } ++ ;; ++ ++ *=*) ++ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` ++ # Reject names that are not valid shell variable names. ++ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && ++ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 ++ { (exit 1); exit 1; }; } ++ ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ++ eval "$ac_envvar='$ac_optarg'" ++ export $ac_envvar ;; ++ ++ *) ++ # FIXME: should be removed in autoconf 3.0. ++ echo "$as_me: WARNING: you should use --build, --host, --target" >&2 ++ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && ++ echo "$as_me: WARNING: invalid host type: $ac_option" >&2 ++ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ++ ;; ++ ++ esac ++done ++ ++if test -n "$ac_prev"; then ++ ac_option=--`echo $ac_prev | sed 's/_/-/g'` ++ { echo "$as_me: error: missing argument to $ac_option" >&2 ++ { (exit 1); exit 1; }; } ++fi ++ ++# Be sure to have absolute paths. ++for ac_var in exec_prefix prefix ++do ++ eval ac_val=$`echo $ac_var` ++ case $ac_val in ++ [\\/$]* | ?:[\\/]* | NONE | '' ) ;; ++ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ++ { (exit 1); exit 1; }; };; ++ esac ++done ++ ++# Be sure to have absolute paths. ++for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ ++ localstatedir libdir includedir oldincludedir infodir mandir ++do ++ eval ac_val=$`echo $ac_var` ++ case $ac_val in ++ [\\/$]* | ?:[\\/]* ) ;; ++ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 ++ { (exit 1); exit 1; }; };; ++ esac ++done ++ ++# There might be people who depend on the old broken behavior: `$host' ++# used to hold the argument of --host etc. ++# FIXME: To remove some day. ++build=$build_alias ++host=$host_alias ++target=$target_alias ++ ++# FIXME: To remove some day. ++if test "x$host_alias" != x; then ++ if test "x$build_alias" = x; then ++ cross_compiling=maybe ++ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. ++ If a cross compiler is detected then cross compile mode will be used." >&2 ++ elif test "x$build_alias" != "x$host_alias"; then ++ cross_compiling=yes ++ fi ++fi ++ ++ac_tool_prefix= ++test -n "$host_alias" && ac_tool_prefix=$host_alias- ++ ++test "$silent" = yes && exec 6>/dev/null ++ ++ ++# Find the source files, if location was not specified. ++if test -z "$srcdir"; then ++ ac_srcdir_defaulted=yes ++ # Try the directory containing this script, then its parent. ++ ac_confdir=`(dirname "$0") 2>/dev/null || ++$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$0" : 'X\(//\)[^/]' \| \ ++ X"$0" : 'X\(//\)$' \| \ ++ X"$0" : 'X\(/\)' \| \ ++ . : '\(.\)' 2>/dev/null || ++echo X"$0" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; } ++ /^X\(\/\/\)$/{ s//\1/; q; } ++ /^X\(\/\).*/{ s//\1/; q; } ++ s/.*/./; q'` ++ srcdir=$ac_confdir ++ if test ! -r $srcdir/$ac_unique_file; then ++ srcdir=.. ++ fi ++else ++ ac_srcdir_defaulted=no ++fi ++if test ! -r $srcdir/$ac_unique_file; then ++ if test "$ac_srcdir_defaulted" = yes; then ++ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 ++ { (exit 1); exit 1; }; } ++ else ++ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 ++ { (exit 1); exit 1; }; } ++ fi ++fi ++(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || ++ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 ++ { (exit 1); exit 1; }; } ++srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` ++ac_env_build_alias_set=${build_alias+set} ++ac_env_build_alias_value=$build_alias ++ac_cv_env_build_alias_set=${build_alias+set} ++ac_cv_env_build_alias_value=$build_alias ++ac_env_host_alias_set=${host_alias+set} ++ac_env_host_alias_value=$host_alias ++ac_cv_env_host_alias_set=${host_alias+set} ++ac_cv_env_host_alias_value=$host_alias ++ac_env_target_alias_set=${target_alias+set} ++ac_env_target_alias_value=$target_alias ++ac_cv_env_target_alias_set=${target_alias+set} ++ac_cv_env_target_alias_value=$target_alias ++ac_env_CCAS_set=${CCAS+set} ++ac_env_CCAS_value=$CCAS ++ac_cv_env_CCAS_set=${CCAS+set} ++ac_cv_env_CCAS_value=$CCAS ++ac_env_CCASFLAGS_set=${CCASFLAGS+set} ++ac_env_CCASFLAGS_value=$CCASFLAGS ++ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set} ++ac_cv_env_CCASFLAGS_value=$CCASFLAGS ++ ++# ++# Report the --help message. ++# ++if test "$ac_init_help" = "long"; then ++ # Omit some internal or obsolete options to make the list less imposing. ++ # This message is too long to be a string in the A/UX 3.1 sh. ++ cat <<_ACEOF ++\`configure' configures newlib 1.15.0 to adapt to many kinds of systems. ++ ++Usage: $0 [OPTION]... [VAR=VALUE]... ++ ++To assign environment variables (e.g., CC, CFLAGS...), specify them as ++VAR=VALUE. See below for descriptions of some of the useful variables. ++ ++Defaults for the options are specified in brackets. ++ ++Configuration: ++ -h, --help display this help and exit ++ --help=short display options specific to this package ++ --help=recursive display the short help of all the included packages ++ -V, --version display version information and exit ++ -q, --quiet, --silent do not print \`checking...' messages ++ --cache-file=FILE cache test results in FILE [disabled] ++ -C, --config-cache alias for \`--cache-file=config.cache' ++ -n, --no-create do not create output files ++ --srcdir=DIR find the sources in DIR [configure dir or \`..'] ++ ++_ACEOF ++ ++ cat <<_ACEOF ++Installation directories: ++ --prefix=PREFIX install architecture-independent files in PREFIX ++ [$ac_default_prefix] ++ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ++ [PREFIX] ++ ++By default, \`make install' will install all the files in ++\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify ++an installation prefix other than \`$ac_default_prefix' using \`--prefix', ++for instance \`--prefix=\$HOME'. ++ ++For better control, use the options below. ++ ++Fine tuning of the installation directories: ++ --bindir=DIR user executables [EPREFIX/bin] ++ --sbindir=DIR system admin executables [EPREFIX/sbin] ++ --libexecdir=DIR program executables [EPREFIX/libexec] ++ --datadir=DIR read-only architecture-independent data [PREFIX/share] ++ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] ++ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] ++ --localstatedir=DIR modifiable single-machine data [PREFIX/var] ++ --libdir=DIR object code libraries [EPREFIX/lib] ++ --includedir=DIR C header files [PREFIX/include] ++ --oldincludedir=DIR C header files for non-gcc [/usr/include] ++ --infodir=DIR info documentation [PREFIX/info] ++ --mandir=DIR man documentation [PREFIX/man] ++_ACEOF ++ ++ cat <<\_ACEOF ++ ++Program names: ++ --program-prefix=PREFIX prepend PREFIX to installed program names ++ --program-suffix=SUFFIX append SUFFIX to installed program names ++ --program-transform-name=PROGRAM run sed PROGRAM on installed program names ++ ++System types: ++ --build=BUILD configure for building on BUILD [guessed] ++ --host=HOST cross-compile to build programs to run on HOST [BUILD] ++_ACEOF ++fi ++ ++if test -n "$ac_init_help"; then ++ case $ac_init_help in ++ short | recursive ) echo "Configuration of newlib 1.15.0:";; ++ esac ++ cat <<\_ACEOF ++ ++Optional Features: ++ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) ++ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] ++ --enable-multilib build many library versions (default) ++ --enable-target-optspace optimize for space ++ --enable-malloc-debugging indicate malloc debugging requested ++ --enable-newlib-multithread enable support for multiple threads ++ --enable-newlib-iconv enable iconv library support ++ --enable-newlib-elix-level supply desired elix library level (1-4) ++ --disable-newlib-io-float disable printf/scanf family float support ++ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls ++ --disable-dependency-tracking speeds up one-time build ++ --enable-dependency-tracking do not reject slow dependency extractors ++ --enable-maintainer-mode enable make rules and dependencies not useful ++ (and sometimes confusing) to the casual installer ++ ++Some influential environment variables: ++ CCAS assembler compiler command (defaults to CC) ++ CCASFLAGS assembler compiler flags (defaults to CFLAGS) ++ ++Use these variables to override the choices made by `configure' or to help ++it to find libraries and programs with nonstandard names/locations. ++ ++_ACEOF ++fi ++ ++if test "$ac_init_help" = "recursive"; then ++ # If there are subdirs, report their specific --help. ++ ac_popdir=`pwd` ++ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue ++ test -d $ac_dir || continue ++ ac_builddir=. ++ ++if test "$ac_dir" != .; then ++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ++ # A "../" for each directory in $ac_dir_suffix. ++ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ++else ++ ac_dir_suffix= ac_top_builddir= ++fi ++ ++case $srcdir in ++ .) # No --srcdir option. We are building in place. ++ ac_srcdir=. ++ if test -z "$ac_top_builddir"; then ++ ac_top_srcdir=. ++ else ++ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ++ fi ;; ++ [\\/]* | ?:[\\/]* ) # Absolute path. ++ ac_srcdir=$srcdir$ac_dir_suffix; ++ ac_top_srcdir=$srcdir ;; ++ *) # Relative path. ++ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ++ ac_top_srcdir=$ac_top_builddir$srcdir ;; ++esac ++ ++# Do not use `cd foo && pwd` to compute absolute paths, because ++# the directories may not exist. ++case `pwd` in ++.) ac_abs_builddir="$ac_dir";; ++*) ++ case "$ac_dir" in ++ .) ac_abs_builddir=`pwd`;; ++ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; ++ *) ac_abs_builddir=`pwd`/"$ac_dir";; ++ esac;; ++esac ++case $ac_abs_builddir in ++.) ac_abs_top_builddir=${ac_top_builddir}.;; ++*) ++ case ${ac_top_builddir}. in ++ .) ac_abs_top_builddir=$ac_abs_builddir;; ++ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ++ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; ++ esac;; ++esac ++case $ac_abs_builddir in ++.) ac_abs_srcdir=$ac_srcdir;; ++*) ++ case $ac_srcdir in ++ .) ac_abs_srcdir=$ac_abs_builddir;; ++ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ++ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; ++ esac;; ++esac ++case $ac_abs_builddir in ++.) ac_abs_top_srcdir=$ac_top_srcdir;; ++*) ++ case $ac_top_srcdir in ++ .) ac_abs_top_srcdir=$ac_abs_builddir;; ++ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ++ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; ++ esac;; ++esac ++ ++ cd $ac_dir ++ # Check for guested configure; otherwise get Cygnus style configure. ++ if test -f $ac_srcdir/configure.gnu; then ++ echo ++ $SHELL $ac_srcdir/configure.gnu --help=recursive ++ elif test -f $ac_srcdir/configure; then ++ echo ++ $SHELL $ac_srcdir/configure --help=recursive ++ elif test -f $ac_srcdir/configure.ac || ++ test -f $ac_srcdir/configure.in; then ++ echo ++ $ac_configure --help ++ else ++ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 ++ fi ++ cd $ac_popdir ++ done ++fi ++ ++test -n "$ac_init_help" && exit 0 ++if $ac_init_version; then ++ cat <<\_ACEOF ++newlib configure 1.15.0 ++generated by GNU Autoconf 2.59 ++ ++Copyright (C) 2003 Free Software Foundation, Inc. ++This configure script is free software; the Free Software Foundation ++gives unlimited permission to copy, distribute and modify it. ++_ACEOF ++ exit 0 ++fi ++exec 5>config.log ++cat >&5 <<_ACEOF ++This file contains any messages produced by compilers while ++running configure, to aid debugging if configure makes a mistake. ++ ++It was created by newlib $as_me 1.15.0, which was ++generated by GNU Autoconf 2.59. Invocation command line was ++ ++ $ $0 $@ ++ ++_ACEOF ++{ ++cat <<_ASUNAME ++## --------- ## ++## Platform. ## ++## --------- ## ++ ++hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` ++uname -m = `(uname -m) 2>/dev/null || echo unknown` ++uname -r = `(uname -r) 2>/dev/null || echo unknown` ++uname -s = `(uname -s) 2>/dev/null || echo unknown` ++uname -v = `(uname -v) 2>/dev/null || echo unknown` ++ ++/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` ++/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` ++ ++/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` ++/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` ++/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` ++hostinfo = `(hostinfo) 2>/dev/null || echo unknown` ++/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` ++/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` ++/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` ++ ++_ASUNAME ++ ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ echo "PATH: $as_dir" ++done ++ ++} >&5 ++ ++cat >&5 <<_ACEOF ++ ++ ++## ----------- ## ++## Core tests. ## ++## ----------- ## ++ ++_ACEOF ++ ++ ++# Keep a trace of the command line. ++# Strip out --no-create and --no-recursion so they do not pile up. ++# Strip out --silent because we don't want to record it for future runs. ++# Also quote any args containing shell meta-characters. ++# Make two passes to allow for proper duplicate-argument suppression. ++ac_configure_args= ++ac_configure_args0= ++ac_configure_args1= ++ac_sep= ++ac_must_keep_next=false ++for ac_pass in 1 2 ++do ++ for ac_arg ++ do ++ case $ac_arg in ++ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ++ | -silent | --silent | --silen | --sile | --sil) ++ continue ;; ++ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ++ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; ++ esac ++ case $ac_pass in ++ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; ++ 2) ++ ac_configure_args1="$ac_configure_args1 '$ac_arg'" ++ if test $ac_must_keep_next = true; then ++ ac_must_keep_next=false # Got value, back to normal. ++ else ++ case $ac_arg in ++ *=* | --config-cache | -C | -disable-* | --disable-* \ ++ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ ++ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ ++ | -with-* | --with-* | -without-* | --without-* | --x) ++ case "$ac_configure_args0 " in ++ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; ++ esac ++ ;; ++ -* ) ac_must_keep_next=true ;; ++ esac ++ fi ++ ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" ++ # Get rid of the leading space. ++ ac_sep=" " ++ ;; ++ esac ++ done ++done ++$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } ++$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } ++ ++# When interrupted or exit'd, cleanup temporary files, and complete ++# config.log. We remove comments because anyway the quotes in there ++# would cause problems or look ugly. ++# WARNING: Be sure not to use single quotes in there, as some shells, ++# such as our DU 5.0 friend, will then `close' the trap. ++trap 'exit_status=$? ++ # Save into config.log some information that might help in debugging. ++ { ++ echo ++ ++ cat <<\_ASBOX ++## ---------------- ## ++## Cache variables. ## ++## ---------------- ## ++_ASBOX ++ echo ++ # The following way of writing the cache mishandles newlines in values, ++{ ++ (set) 2>&1 | ++ case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in ++ *ac_space=\ *) ++ sed -n \ ++ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ++ ;; ++ *) ++ sed -n \ ++ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ++ ;; ++ esac; ++} ++ echo ++ ++ cat <<\_ASBOX ++## ----------------- ## ++## Output variables. ## ++## ----------------- ## ++_ASBOX ++ echo ++ for ac_var in $ac_subst_vars ++ do ++ eval ac_val=$`echo $ac_var` ++ echo "$ac_var='"'"'$ac_val'"'"'" ++ done | sort ++ echo ++ ++ if test -n "$ac_subst_files"; then ++ cat <<\_ASBOX ++## ------------- ## ++## Output files. ## ++## ------------- ## ++_ASBOX ++ echo ++ for ac_var in $ac_subst_files ++ do ++ eval ac_val=$`echo $ac_var` ++ echo "$ac_var='"'"'$ac_val'"'"'" ++ done | sort ++ echo ++ fi ++ ++ if test -s confdefs.h; then ++ cat <<\_ASBOX ++## ----------- ## ++## confdefs.h. ## ++## ----------- ## ++_ASBOX ++ echo ++ sed "/^$/d" confdefs.h | sort ++ echo ++ fi ++ test "$ac_signal" != 0 && ++ echo "$as_me: caught signal $ac_signal" ++ echo "$as_me: exit $exit_status" ++ } >&5 ++ rm -f core *.core && ++ rm -rf conftest* confdefs* conf$$* $ac_clean_files && ++ exit $exit_status ++ ' 0 ++for ac_signal in 1 2 13 15; do ++ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal ++done ++ac_signal=0 ++ ++# confdefs.h avoids OS command line length limits that DEFS can exceed. ++rm -rf conftest* confdefs.h ++# AIX cpp loses on an empty file, so make sure it contains at least a newline. ++echo >confdefs.h ++ ++# Predefined preprocessor variables. ++ ++cat >>confdefs.h <<_ACEOF ++#define PACKAGE_NAME "$PACKAGE_NAME" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++#define PACKAGE_TARNAME "$PACKAGE_TARNAME" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++#define PACKAGE_VERSION "$PACKAGE_VERSION" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++#define PACKAGE_STRING "$PACKAGE_STRING" ++_ACEOF ++ ++ ++cat >>confdefs.h <<_ACEOF ++#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" ++_ACEOF ++ ++ ++# Let the site file select an alternate cache file if it wants to. ++# Prefer explicitly selected file to automatically selected ones. ++if test -z "$CONFIG_SITE"; then ++ if test "x$prefix" != xNONE; then ++ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" ++ else ++ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" ++ fi ++fi ++for ac_site_file in $CONFIG_SITE; do ++ if test -r "$ac_site_file"; then ++ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 ++echo "$as_me: loading site script $ac_site_file" >&6;} ++ sed 's/^/| /' "$ac_site_file" >&5 ++ . "$ac_site_file" ++ fi ++done ++ ++if test -r "$cache_file"; then ++ # Some versions of bash will fail to source /dev/null (special ++ # files actually), so we avoid doing that. ++ if test -f "$cache_file"; then ++ { echo "$as_me:$LINENO: loading cache $cache_file" >&5 ++echo "$as_me: loading cache $cache_file" >&6;} ++ case $cache_file in ++ [\\/]* | ?:[\\/]* ) . $cache_file;; ++ *) . ./$cache_file;; ++ esac ++ fi ++else ++ { echo "$as_me:$LINENO: creating cache $cache_file" >&5 ++echo "$as_me: creating cache $cache_file" >&6;} ++ >$cache_file ++fi ++ ++# Check that the precious variables saved in the cache have kept the same ++# value. ++ac_cache_corrupted=false ++for ac_var in `(set) 2>&1 | ++ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do ++ eval ac_old_set=\$ac_cv_env_${ac_var}_set ++ eval ac_new_set=\$ac_env_${ac_var}_set ++ eval ac_old_val="\$ac_cv_env_${ac_var}_value" ++ eval ac_new_val="\$ac_env_${ac_var}_value" ++ case $ac_old_set,$ac_new_set in ++ set,) ++ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 ++echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ++ ac_cache_corrupted=: ;; ++ ,set) ++ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 ++echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ++ ac_cache_corrupted=: ;; ++ ,);; ++ *) ++ if test "x$ac_old_val" != "x$ac_new_val"; then ++ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 ++echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ++ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 ++echo "$as_me: former value: $ac_old_val" >&2;} ++ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 ++echo "$as_me: current value: $ac_new_val" >&2;} ++ ac_cache_corrupted=: ++ fi;; ++ esac ++ # Pass precious variables to config.status. ++ if test "$ac_new_set" = set; then ++ case $ac_new_val in ++ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) ++ ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; ++ *) ac_arg=$ac_var=$ac_new_val ;; ++ esac ++ case " $ac_configure_args " in ++ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. ++ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; ++ esac ++ fi ++done ++if $ac_cache_corrupted; then ++ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 ++echo "$as_me: error: changes in the environment can compromise the build" >&2;} ++ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 ++echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} ++ { (exit 1); exit 1; }; } ++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 ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ac_aux_dir= ++for ac_dir in ../../../.. $srcdir/../../../..; do ++ if test -f $ac_dir/install-sh; then ++ ac_aux_dir=$ac_dir ++ ac_install_sh="$ac_aux_dir/install-sh -c" ++ break ++ elif test -f $ac_dir/install.sh; then ++ ac_aux_dir=$ac_dir ++ ac_install_sh="$ac_aux_dir/install.sh -c" ++ break ++ elif test -f $ac_dir/shtool; then ++ ac_aux_dir=$ac_dir ++ ac_install_sh="$ac_aux_dir/shtool install -c" ++ break ++ fi ++done ++if test -z "$ac_aux_dir"; then ++ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&5 ++echo "$as_me: error: cannot find install-sh or install.sh in ../../../.. $srcdir/../../../.." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ac_config_guess="$SHELL $ac_aux_dir/config.guess" ++ac_config_sub="$SHELL $ac_aux_dir/config.sub" ++ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. ++ ++ ++ ++# Make sure we can run config.sub. ++$ac_config_sub sun4 >/dev/null 2>&1 || ++ { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 ++echo "$as_me: error: cannot run $ac_config_sub" >&2;} ++ { (exit 1); exit 1; }; } ++ ++echo "$as_me:$LINENO: checking build system type" >&5 ++echo $ECHO_N "checking build system type... $ECHO_C" >&6 ++if test "${ac_cv_build+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_build_alias=$build_alias ++test -z "$ac_cv_build_alias" && ++ ac_cv_build_alias=`$ac_config_guess` ++test -z "$ac_cv_build_alias" && ++ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 ++echo "$as_me: error: cannot guess build type; you must specify one" >&2;} ++ { (exit 1); exit 1; }; } ++ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || ++ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 ++echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} ++ { (exit 1); exit 1; }; } ++ ++fi ++echo "$as_me:$LINENO: result: $ac_cv_build" >&5 ++echo "${ECHO_T}$ac_cv_build" >&6 ++build=$ac_cv_build ++build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ++build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ++build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++ ++ ++am__api_version="1.9" ++# Find a good install program. We prefer a C program (faster), ++# so one script is as good as another. But avoid the broken or ++# incompatible versions: ++# SysV /etc/install, /usr/sbin/install ++# SunOS /usr/etc/install ++# IRIX /sbin/install ++# AIX /bin/install ++# AmigaOS /C/install, which installs bootblocks on floppy discs ++# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag ++# AFS /usr/afsws/bin/install, which mishandles nonexistent args ++# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" ++# OS/2's system install, which has a completely different semantic ++# ./install, which can be erroneously created by make from ./install.sh. ++echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 ++if test -z "$INSTALL"; then ++if test "${ac_cv_path_install+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ # Account for people who put trailing slashes in PATH elements. ++case $as_dir/ in ++ ./ | .// | /cC/* | \ ++ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ++ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ ++ /usr/ucb/* ) ;; ++ *) ++ # OSF1 and SCO ODT 3.0 have their own names for install. ++ # Don't use installbsd from OSF since it installs stuff as root ++ # by default. ++ for ac_prog in ginstall scoinst install; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then ++ if test $ac_prog = install && ++ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ++ # AIX install. It has an incompatible calling convention. ++ : ++ elif test $ac_prog = install && ++ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ++ # program-specific install script used by HP pwplus--don't use. ++ : ++ else ++ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ++ break 3 ++ fi ++ fi ++ done ++ done ++ ;; ++esac ++done ++ ++ ++fi ++ if test "${ac_cv_path_install+set}" = set; then ++ INSTALL=$ac_cv_path_install ++ else ++ # As a last resort, use the slow shell script. We don't cache a ++ # path for INSTALL within a source directory, because that will ++ # break other packages using the cache if that directory is ++ # removed, or if the path is relative. ++ INSTALL=$ac_install_sh ++ fi ++fi ++echo "$as_me:$LINENO: result: $INSTALL" >&5 ++echo "${ECHO_T}$INSTALL" >&6 ++ ++# Use test -z because SunOS4 sh mishandles braces in ${var-val}. ++# It thinks the first close brace ends the variable substitution. ++test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' ++ ++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' ++ ++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ++ ++echo "$as_me:$LINENO: checking whether build environment is sane" >&5 ++echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 ++# Just in case ++sleep 1 ++echo timestamp > conftest.file ++# Do `set' in a subshell so we don't clobber the current shell's ++# arguments. Must try -L first in case configure is actually a ++# symlink; some systems play weird games with the mod time of symlinks ++# (eg FreeBSD returns the mod time of the symlink's containing ++# directory). ++if ( ++ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` ++ if test "$*" = "X"; then ++ # -L didn't work. ++ set X `ls -t $srcdir/configure conftest.file` ++ fi ++ rm -f conftest.file ++ if test "$*" != "X $srcdir/configure conftest.file" \ ++ && test "$*" != "X conftest.file $srcdir/configure"; then ++ ++ # If neither matched, then we have a broken ls. This can happen ++ # if, for instance, CONFIG_SHELL is bash and it inherits a ++ # broken ls alias from the environment. This has actually ++ # happened. Such a system could not be considered "sane". ++ { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken ++alias in your environment" >&5 ++echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken ++alias in your environment" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ ++ test "$2" = conftest.file ++ ) ++then ++ # Ok. ++ : ++else ++ { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! ++Check your system clock" >&5 ++echo "$as_me: error: newly created file is older than distributed files! ++Check your system clock" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6 ++test "$program_prefix" != NONE && ++ program_transform_name="s,^,$program_prefix,;$program_transform_name" ++# Use a double $ so make ignores it. ++test "$program_suffix" != NONE && ++ program_transform_name="s,\$,$program_suffix,;$program_transform_name" ++# Double any \ or $. echo might interpret backslashes. ++# By default was `s,x,x', remove it if useless. ++cat <<\_ACEOF >conftest.sed ++s/[\\$]/&&/g;s/;s,x,x,$// ++_ACEOF ++program_transform_name=`echo $program_transform_name | sed -f conftest.sed` ++rm conftest.sed ++ ++# expand $ac_aux_dir to an absolute path ++am_aux_dir=`cd $ac_aux_dir && pwd` ++ ++test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" ++# Use eval to expand $SHELL ++if eval "$MISSING --run true"; then ++ am_missing_run="$MISSING --run " ++else ++ am_missing_run= ++ { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 ++echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} ++fi ++ ++if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then ++ # We used to keeping the `.' as first argument, in order to ++ # allow $(mkdir_p) to be used without argument. As in ++ # $(mkdir_p) $(somedir) ++ # where $(somedir) is conditionally defined. However this is wrong ++ # for two reasons: ++ # 1. if the package is installed by a user who cannot write `.' ++ # make install will fail, ++ # 2. the above comment should most certainly read ++ # $(mkdir_p) $(DESTDIR)$(somedir) ++ # so it does not work when $(somedir) is undefined and ++ # $(DESTDIR) is not. ++ # To support the latter case, we have to write ++ # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), ++ # so the `.' trick is pointless. ++ mkdir_p='mkdir -p --' ++else ++ # On NextStep and OpenStep, the `mkdir' command does not ++ # recognize any option. It will interpret all options as ++ # directories to create, and then abort because `.' already ++ # exists. ++ for d in ./-p ./--version; ++ do ++ test -d $d && rmdir $d ++ done ++ # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. ++ if test -f "$ac_aux_dir/mkinstalldirs"; then ++ mkdir_p='$(mkinstalldirs)' ++ else ++ mkdir_p='$(install_sh) -d' ++ fi ++fi ++ ++for ac_prog in gawk mawk nawk awk ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++if test "${ac_cv_prog_AWK+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$AWK"; then ++ ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++ ++fi ++fi ++AWK=$ac_cv_prog_AWK ++if test -n "$AWK"; then ++ echo "$as_me:$LINENO: result: $AWK" >&5 ++echo "${ECHO_T}$AWK" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++ test -n "$AWK" && break ++done ++ ++echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 ++echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 ++set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` ++if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.make <<\_ACEOF ++all: ++ @echo 'ac_maketemp="$(MAKE)"' ++_ACEOF ++# GNU make sometimes prints "make[1]: Entering...", which would confuse us. ++eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` ++if test -n "$ac_maketemp"; then ++ eval ac_cv_prog_make_${ac_make}_set=yes ++else ++ eval ac_cv_prog_make_${ac_make}_set=no ++fi ++rm -f conftest.make ++fi ++if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then ++ echo "$as_me:$LINENO: result: yes" >&5 ++echo "${ECHO_T}yes" >&6 ++ SET_MAKE= ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++ SET_MAKE="MAKE=${MAKE-make}" ++fi ++ ++rm -rf .tst 2>/dev/null ++mkdir .tst 2>/dev/null ++if test -d .tst; then ++ am__leading_dot=. ++else ++ am__leading_dot=_ ++fi ++rmdir .tst 2>/dev/null ++ ++DEPDIR="${am__leading_dot}deps" ++ ++ ac_config_commands="$ac_config_commands depfiles" ++ ++ ++am_make=${MAKE-make} ++cat > confinc << 'END' ++am__doit: ++ @echo done ++.PHONY: am__doit ++END ++# If we don't find an include directive, just comment out the code. ++echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 ++echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 ++am__include="#" ++am__quote= ++_am_result=none ++# First try GNU make style include. ++echo "include confinc" > confmf ++# We grep out `Entering directory' and `Leaving directory' ++# messages which can occur if `w' ends up in MAKEFLAGS. ++# In particular we don't look at `^make:' because GNU make might ++# be invoked under some other name (usually "gmake"), in which ++# case it prints its new name instead of `make'. ++if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then ++ am__include=include ++ am__quote= ++ _am_result=GNU ++fi ++# Now try BSD make style include. ++if test "$am__include" = "#"; then ++ echo '.include "confinc"' > confmf ++ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then ++ am__include=.include ++ am__quote="\"" ++ _am_result=BSD ++ fi ++fi ++ ++ ++echo "$as_me:$LINENO: result: $_am_result" >&5 ++echo "${ECHO_T}$_am_result" >&6 ++rm -f confinc confmf ++ ++# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. ++if test "${enable_dependency_tracking+set}" = set; then ++ enableval="$enable_dependency_tracking" ++ ++fi; ++if test "x$enable_dependency_tracking" != xno; then ++ am_depcomp="$ac_aux_dir/depcomp" ++ AMDEPBACKSLASH='\' ++fi ++ ++ ++if test "x$enable_dependency_tracking" != xno; then ++ AMDEP_TRUE= ++ AMDEP_FALSE='#' ++else ++ AMDEP_TRUE='#' ++ AMDEP_FALSE= ++fi ++ ++ ++ ++ ++# Check whether --enable-multilib or --disable-multilib was given. ++if test "${enable_multilib+set}" = set; then ++ enableval="$enable_multilib" ++ case "${enableval}" in ++ yes) multilib=yes ;; ++ no) multilib=no ;; ++ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5 ++echo "$as_me: error: bad value ${enableval} for multilib option" >&2;} ++ { (exit 1); exit 1; }; } ;; ++ esac ++else ++ multilib=yes ++fi; ++# Check whether --enable-target-optspace or --disable-target-optspace was given. ++if test "${enable_target_optspace+set}" = set; then ++ enableval="$enable_target_optspace" ++ case "${enableval}" in ++ yes) target_optspace=yes ;; ++ no) target_optspace=no ;; ++ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5 ++echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;} ++ { (exit 1); exit 1; }; } ;; ++ esac ++else ++ target_optspace= ++fi; ++# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given. ++if test "${enable_malloc_debugging+set}" = set; then ++ enableval="$enable_malloc_debugging" ++ case "${enableval}" in ++ yes) malloc_debugging=yes ;; ++ no) malloc_debugging=no ;; ++ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5 ++echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;} ++ { (exit 1); exit 1; }; } ;; ++ esac ++else ++ malloc_debugging= ++fi; ++# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given. ++if test "${enable_newlib_multithread+set}" = set; then ++ enableval="$enable_newlib_multithread" ++ case "${enableval}" in ++ yes) newlib_multithread=yes ;; ++ no) newlib_multithread=no ;; ++ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5 ++echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;} ++ { (exit 1); exit 1; }; } ;; ++ esac ++else ++ newlib_multithread=yes ++fi; ++# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given. ++if test "${enable_newlib_iconv+set}" = set; then ++ enableval="$enable_newlib_iconv" ++ if test "${newlib_iconv+set}" != set; then ++ case "${enableval}" in ++ yes) newlib_iconv=yes ;; ++ no) newlib_iconv=no ;; ++ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5 ++echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;} ++ { (exit 1); exit 1; }; } ;; ++ esac ++ fi ++else ++ newlib_iconv=${newlib_iconv} ++fi; ++# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given. ++if test "${enable_newlib_elix_level+set}" = set; then ++ enableval="$enable_newlib_elix_level" ++ case "${enableval}" in ++ 0) newlib_elix_level=0 ;; ++ 1) newlib_elix_level=1 ;; ++ 2) newlib_elix_level=2 ;; ++ 3) newlib_elix_level=3 ;; ++ 4) newlib_elix_level=4 ;; ++ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5 ++echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;} ++ { (exit 1); exit 1; }; } ;; ++ esac ++else ++ newlib_elix_level=0 ++fi; ++# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given. ++if test "${enable_newlib_io_float+set}" = set; then ++ enableval="$enable_newlib_io_float" ++ case "${enableval}" in ++ yes) newlib_io_float=yes ;; ++ no) newlib_io_float=no ;; ++ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5 ++echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;} ++ { (exit 1); exit 1; }; } ;; ++ esac ++else ++ newlib_io_float=yes ++fi; ++# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given. ++if test "${enable_newlib_supplied_syscalls+set}" = set; then ++ enableval="$enable_newlib_supplied_syscalls" ++ case "${enableval}" in ++ yes) newlib_may_supply_syscalls=yes ;; ++ no) newlib_may_supply_syscalls=no ;; ++ *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5 ++echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;} ++ { (exit 1); exit 1; }; } ;; ++ esac ++else ++ newlib_may_supply_syscalls=yes ++fi; ++ ++ ++if test x${newlib_may_supply_syscalls} = xyes; then ++ MAY_SUPPLY_SYSCALLS_TRUE= ++ MAY_SUPPLY_SYSCALLS_FALSE='#' ++else ++ MAY_SUPPLY_SYSCALLS_TRUE='#' ++ MAY_SUPPLY_SYSCALLS_FALSE= ++fi ++ ++ ++ ++test -z "${with_target_subdir}" && with_target_subdir=. ++ ++if test "${srcdir}" = "."; then ++ if test "${with_target_subdir}" != "."; then ++ newlib_basedir="${srcdir}/${with_multisrctop}../../../.." ++ else ++ newlib_basedir="${srcdir}/${with_multisrctop}../../.." ++ fi ++else ++ newlib_basedir="${srcdir}/../../.." ++fi ++ ++ ++echo "$as_me:$LINENO: checking host system type" >&5 ++echo $ECHO_N "checking host system type... $ECHO_C" >&6 ++if test "${ac_cv_host+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ ac_cv_host_alias=$host_alias ++test -z "$ac_cv_host_alias" && ++ ac_cv_host_alias=$ac_cv_build_alias ++ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || ++ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 ++echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} ++ { (exit 1); exit 1; }; } ++ ++fi ++echo "$as_me:$LINENO: result: $ac_cv_host" >&5 ++echo "${ECHO_T}$ac_cv_host" >&6 ++host=$ac_cv_host ++host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ++host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ++host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++ ++ ++ ++# test to see if srcdir already configured ++if test "`cd $srcdir && pwd`" != "`pwd`" && ++ test -f $srcdir/config.status; then ++ { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 ++echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++# test whether we have cygpath ++if test -z "$CYGPATH_W"; then ++ if (cygpath --version) >/dev/null 2>/dev/null; then ++ CYGPATH_W='cygpath -w' ++ else ++ CYGPATH_W=echo ++ fi ++fi ++ ++ ++# Define the identity of the package. ++ PACKAGE='newlib' ++ VERSION='1.15.0' ++ ++ ++# Some tools Automake needs. ++ ++ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} ++ ++ ++AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} ++ ++ ++AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} ++ ++ ++AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} ++ ++ ++MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} ++ ++install_sh=${install_sh-"$am_aux_dir/install-sh"} ++ ++# Installed binaries are usually stripped using `strip' when the user ++# run `make install-strip'. However `strip' might not be the right ++# tool to use in cross-compilation environments, therefore Automake ++# will honor the `STRIP' environment variable to overrule this program. ++if test "$cross_compiling" != no; then ++ if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. ++set dummy ${ac_tool_prefix}strip; 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="${ac_tool_prefix}strip" ++ 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 ++ ++fi ++if test -z "$ac_cv_prog_STRIP"; then ++ ac_ct_STRIP=$STRIP ++ # Extract the first word of "strip", so it can be a program name with args. ++set dummy strip; 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_STRIP+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_STRIP"; then ++ ac_cv_prog_ac_ct_STRIP="$ac_ct_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_ac_ct_STRIP="strip" ++ 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_STRIP" && ac_cv_prog_ac_ct_STRIP=":" ++fi ++fi ++ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP ++if test -n "$ac_ct_STRIP"; then ++ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 ++echo "${ECHO_T}$ac_ct_STRIP" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++ STRIP=$ac_ct_STRIP ++else ++ STRIP="$ac_cv_prog_STRIP" ++fi ++ ++fi ++INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" ++ ++# We need awk for the "check" target. The system "awk" is bad on ++# some platforms. ++# Always define AMTAR for backward compatibility. ++ ++AMTAR=${AMTAR-"${am_missing_run}tar"} ++ ++am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ++ ++ ++ ++ ++ ++ ++# FIXME: We temporarily define our own version of AC_PROG_CC. This is ++# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We ++# are probably using a cross compiler, which will not be able to fully ++# link an executable. This should really be fixed in autoconf ++# itself. ++ ++ ++ ++ ++ ++ ++ ++# Extract the first word of "gcc", so it can be a program name with args. ++set dummy gcc; 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+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # 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="gcc" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++ ++fi ++fi ++CC=$ac_cv_prog_CC ++if test -n "$CC"; then ++ echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++ ++depcc="$CC" am_compiler_list= ++ ++echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 ++echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 ++if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then ++ # We make a subdir and do the tests there. Otherwise we can end up ++ # making bogus files that we don't know about and never remove. For ++ # instance it was reported that on HP-UX the gcc test will end up ++ # making a dummy file named `D' -- because `-MD' means `put the output ++ # in D'. ++ mkdir conftest.dir ++ # Copy depcomp to subdir because otherwise we won't find it if we're ++ # using a relative directory. ++ cp "$am_depcomp" conftest.dir ++ cd conftest.dir ++ # We will build objects and dependencies in a subdirectory because ++ # it helps to detect inapplicable dependency modes. For instance ++ # both Tru64's cc and ICC support -MD to output dependencies as a ++ # side effect of compilation, but ICC will put the dependencies in ++ # the current directory while Tru64 will put them in the object ++ # directory. ++ mkdir sub ++ ++ am_cv_CC_dependencies_compiler_type=none ++ if test "$am_compiler_list" = ""; then ++ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` ++ fi ++ for depmode in $am_compiler_list; do ++ # Setup a source with many dependencies, because some compilers ++ # like to wrap large dependency lists on column 80 (with \), and ++ # we should not choose a depcomp mode which is confused by this. ++ # ++ # We need to recreate these files for each test, as the compiler may ++ # overwrite some of them when testing with obscure command lines. ++ # This happens at least with the AIX C compiler. ++ : > sub/conftest.c ++ for i in 1 2 3 4 5 6; do ++ echo '#include "conftst'$i'.h"' >> sub/conftest.c ++ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with ++ # Solaris 8's {/usr,}/bin/sh. ++ touch sub/conftst$i.h ++ done ++ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf ++ ++ case $depmode in ++ nosideeffect) ++ # after this tag, mechanisms are not by side-effect, so they'll ++ # only be used when explicitly requested ++ if test "x$enable_dependency_tracking" = xyes; then ++ continue ++ else ++ break ++ fi ++ ;; ++ none) break ;; ++ esac ++ # We check with `-c' and `-o' for the sake of the "dashmstdout" ++ # mode. It turns out that the SunPro C++ compiler does not properly ++ # handle `-M -o', and we need to detect this. ++ if depmode=$depmode \ ++ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ ++ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ ++ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ ++ >/dev/null 2>conftest.err && ++ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && ++ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ++ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then ++ # icc doesn't choke on unknown options, it will just issue warnings ++ # or remarks (even with -Werror). So we grep stderr for any message ++ # that says an option was ignored or not supported. ++ # When given -MP, icc 7.0 and 7.1 complain thusly: ++ # icc: Command line warning: ignoring option '-M'; no argument required ++ # The diagnosis changed in icc 8.0: ++ # icc: Command line remark: option '-MP' not supported ++ if (grep 'ignoring option' conftest.err || ++ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else ++ am_cv_CC_dependencies_compiler_type=$depmode ++ break ++ fi ++ fi ++ done ++ ++ cd .. ++ rm -rf conftest.dir ++else ++ am_cv_CC_dependencies_compiler_type=none ++fi ++ ++fi ++echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 ++echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 ++CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type ++ ++ ++ ++if ++ test "x$enable_dependency_tracking" != xno \ ++ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then ++ am__fastdepCC_TRUE= ++ am__fastdepCC_FALSE='#' ++else ++ am__fastdepCC_TRUE='#' ++ am__fastdepCC_FALSE= ++fi ++ ++ ++if test -z "$CC"; then ++ # Extract the first word of "cc", so it can be a program name with args. ++set dummy cc; 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+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++ ac_prog_rejected=no ++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 ++ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ++ ac_prog_rejected=yes ++ continue ++ fi ++ ac_cv_prog_CC="cc" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++ ++if test $ac_prog_rejected = yes; then ++ # We found a bogon in the path, so make sure we never use it. ++ set dummy $ac_cv_prog_CC ++ shift ++ if test $# != 0; then ++ # We chose a different compiler from the bogus one. ++ # However, it has the same basename, so the bogon will be chosen ++ # first if we set CC to just the basename; use the full file name. ++ shift ++ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" ++ fi ++fi ++fi ++fi ++CC=$ac_cv_prog_CC ++if test -n "$CC"; then ++ echo "$as_me:$LINENO: result: $CC" >&5 ++echo "${ECHO_T}$CC" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++ test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 ++echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++echo "$as_me:$LINENO: checking whether we are using GNU C" >&5 ++echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6 ++if test "${ac_cv_c_compiler_gnu+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat > conftest.c <&5 ++ (eval $ac_try) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then ++ ac_cv_c_compiler_gnu=yes ++else ++ ac_cv_c_compiler_gnu=no ++fi ++fi ++echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 ++echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 ++ ++if test $ac_cv_c_compiler_gnu = yes; then ++ GCC=yes ++ ac_test_CFLAGS="${CFLAGS+set}" ++ ac_save_CFLAGS="$CFLAGS" ++ CFLAGS= ++ ac_test_CFLAGS=${CFLAGS+set} ++ac_save_CFLAGS=$CFLAGS ++CFLAGS="-g" ++echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 ++echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 ++if test "${ac_cv_prog_cc_g+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++ ++int ++main () ++{ ++ ++ ; ++ 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_c_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_cc_g=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ac_cv_prog_cc_g=no ++fi ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 ++echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 ++if test "$ac_test_CFLAGS" = set; then ++ CFLAGS=$ac_save_CFLAGS ++elif test $ac_cv_prog_cc_g = yes; then ++ if test "$GCC" = yes; then ++ CFLAGS="-g -O2" ++ else ++ CFLAGS="-g" ++ fi ++else ++ if test "$GCC" = yes; then ++ CFLAGS="-O2" ++ else ++ CFLAGS= ++ fi ++fi ++ if test "$ac_test_CFLAGS" = set; then ++ CFLAGS="$ac_save_CFLAGS" ++ elif test $ac_cv_prog_cc_g = yes; then ++ CFLAGS="-g -O2" ++ else ++ CFLAGS="-O2" ++ fi ++else ++ GCC= ++ test "${CFLAGS+set}" = set || CFLAGS="-g" ++fi ++ ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. ++set dummy ${ac_tool_prefix}as; 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="${ac_tool_prefix}as" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++ ++fi ++fi ++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 ++if test -z "$ac_cv_prog_AS"; then ++ ac_ct_AS=$AS ++ # Extract the first word of "as", so it can be a program name with args. ++set dummy as; 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_AS+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_AS"; then ++ ac_cv_prog_ac_ct_AS="$ac_ct_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_ac_ct_AS="as" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++ ++fi ++fi ++ac_ct_AS=$ac_cv_prog_ac_ct_AS ++if test -n "$ac_ct_AS"; then ++ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 ++echo "${ECHO_T}$ac_ct_AS" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++ AS=$ac_ct_AS ++else ++ AS="$ac_cv_prog_AS" ++fi ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. ++set dummy ${ac_tool_prefix}ar; 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="${ac_tool_prefix}ar" ++ 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 ++if test -z "$ac_cv_prog_AR"; then ++ ac_ct_AR=$AR ++ # Extract the first word of "ar", so it can be a program name with args. ++set dummy ar; 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_AR+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_AR"; then ++ ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="ar" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++ ++fi ++fi ++ac_ct_AR=$ac_cv_prog_ac_ct_AR ++if test -n "$ac_ct_AR"; then ++ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 ++echo "${ECHO_T}$ac_ct_AR" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++ AR=$ac_ct_AR ++else ++ AR="$ac_cv_prog_AR" ++fi ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. ++set dummy ${ac_tool_prefix}ranlib; 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+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ 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 ++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="${ac_tool_prefix}ranlib" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++ ++fi ++fi ++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 ++if test -z "$ac_cv_prog_RANLIB"; then ++ ac_ct_RANLIB=$RANLIB ++ # Extract the first word of "ranlib", so it can be a program name with args. ++set dummy ranlib; 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_RANLIB+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_RANLIB"; then ++ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib" ++ 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_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" ++fi ++fi ++ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB ++if test -n "$ac_ct_RANLIB"; then ++ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 ++echo "${ECHO_T}$ac_ct_RANLIB" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++ RANLIB=$ac_ct_RANLIB ++else ++ RANLIB="$ac_cv_prog_RANLIB" ++fi ++ ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args. ++set dummy ${ac_tool_prefix}readelf; 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_READELF+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$READELF"; then ++ ac_cv_prog_READELF="$READELF" # 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_READELF="${ac_tool_prefix}readelf" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++ ++fi ++fi ++READELF=$ac_cv_prog_READELF ++if test -n "$READELF"; then ++ echo "$as_me:$LINENO: result: $READELF" >&5 ++echo "${ECHO_T}$READELF" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++fi ++if test -z "$ac_cv_prog_READELF"; then ++ ac_ct_READELF=$READELF ++ # Extract the first word of "readelf", so it can be a program name with args. ++set dummy readelf; 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_READELF+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$ac_ct_READELF"; then ++ ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # 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_READELF="readelf" ++ 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_READELF" && ac_cv_prog_ac_ct_READELF=":" ++fi ++fi ++ac_ct_READELF=$ac_cv_prog_ac_ct_READELF ++if test -n "$ac_ct_READELF"; then ++ echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5 ++echo "${ECHO_T}$ac_ct_READELF" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++ READELF=$ac_ct_READELF ++else ++ READELF="$ac_cv_prog_READELF" ++fi ++ ++ ++# Find a good install program. We prefer a C program (faster), ++# so one script is as good as another. But avoid the broken or ++# incompatible versions: ++# SysV /etc/install, /usr/sbin/install ++# SunOS /usr/etc/install ++# IRIX /sbin/install ++# AIX /bin/install ++# AmigaOS /C/install, which installs bootblocks on floppy discs ++# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag ++# AFS /usr/afsws/bin/install, which mishandles nonexistent args ++# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" ++# OS/2's system install, which has a completely different semantic ++# ./install, which can be erroneously created by make from ./install.sh. ++echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 ++echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 ++if test -z "$INSTALL"; then ++if test "${ac_cv_path_install+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ # Account for people who put trailing slashes in PATH elements. ++case $as_dir/ in ++ ./ | .// | /cC/* | \ ++ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ++ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ ++ /usr/ucb/* ) ;; ++ *) ++ # OSF1 and SCO ODT 3.0 have their own names for install. ++ # Don't use installbsd from OSF since it installs stuff as root ++ # by default. ++ for ac_prog in ginstall scoinst install; do ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then ++ if test $ac_prog = install && ++ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ++ # AIX install. It has an incompatible calling convention. ++ : ++ elif test $ac_prog = install && ++ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then ++ # program-specific install script used by HP pwplus--don't use. ++ : ++ else ++ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" ++ break 3 ++ fi ++ fi ++ done ++ done ++ ;; ++esac ++done ++ ++ ++fi ++ if test "${ac_cv_path_install+set}" = set; then ++ INSTALL=$ac_cv_path_install ++ else ++ # As a last resort, use the slow shell script. We don't cache a ++ # path for INSTALL within a source directory, because that will ++ # break other packages using the cache if that directory is ++ # removed, or if the path is relative. ++ INSTALL=$ac_install_sh ++ fi ++fi ++echo "$as_me:$LINENO: result: $INSTALL" >&5 ++echo "${ECHO_T}$INSTALL" >&6 ++ ++# Use test -z because SunOS4 sh mishandles braces in ${var-val}. ++# It thinks the first close brace ends the variable substitution. ++test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' ++ ++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' ++ ++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ++ ++ ++# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */ ++ac_given_INSTALL=$INSTALL ++ ++echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 ++echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 ++ # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. ++if test "${enable_maintainer_mode+set}" = set; then ++ enableval="$enable_maintainer_mode" ++ USE_MAINTAINER_MODE=$enableval ++else ++ USE_MAINTAINER_MODE=no ++fi; ++ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 ++echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 ++ ++ ++if test $USE_MAINTAINER_MODE = yes; then ++ MAINTAINER_MODE_TRUE= ++ MAINTAINER_MODE_FALSE='#' ++else ++ MAINTAINER_MODE_TRUE='#' ++ MAINTAINER_MODE_FALSE= ++fi ++ ++ MAINT=$MAINTAINER_MODE_TRUE ++ ++ ++# By default we simply use the C compiler to build assembly code. ++ ++test "${CCAS+set}" = set || CCAS=$CC ++test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS ++ ++ ++ ++ ++# We need AC_EXEEXT to keep automake happy in cygnus mode. However, ++# at least currently, we never actually build a program, so we never ++# need to use $(EXEEXT). Moreover, the test for EXEEXT normally ++# fails, because we are probably configuring with a cross compiler ++# which can't create executables. So we include AC_EXEEXT to keep ++# automake happy, but we don't execute it, since we don't care about ++# the result. ++if false; then ++ ++ dummy_var=1 ++fi ++ ++. ${newlib_basedir}/configure.host ++ ++newlib_cflags="${newlib_cflags} -fno-builtin" ++ ++NEWLIB_CFLAGS=${newlib_cflags} ++ ++ ++LDFLAGS=${ldflags} ++ ++ ++ ++ ++if test x${newlib_elix_level} = x0; then ++ ELIX_LEVEL_0_TRUE= ++ ELIX_LEVEL_0_FALSE='#' ++else ++ ELIX_LEVEL_0_TRUE='#' ++ ELIX_LEVEL_0_FALSE= ++fi ++ ++ ++ ++if test x${newlib_elix_level} = x1; then ++ ELIX_LEVEL_1_TRUE= ++ ELIX_LEVEL_1_FALSE='#' ++else ++ ELIX_LEVEL_1_TRUE='#' ++ ELIX_LEVEL_1_FALSE= ++fi ++ ++ ++ ++if test x${newlib_elix_level} = x2; then ++ ELIX_LEVEL_2_TRUE= ++ ELIX_LEVEL_2_FALSE='#' ++else ++ ELIX_LEVEL_2_TRUE='#' ++ ELIX_LEVEL_2_FALSE= ++fi ++ ++ ++ ++if test x${newlib_elix_level} = x3; then ++ ELIX_LEVEL_3_TRUE= ++ ELIX_LEVEL_3_FALSE='#' ++else ++ ELIX_LEVEL_3_TRUE='#' ++ ELIX_LEVEL_3_FALSE= ++fi ++ ++ ++ ++if test x${newlib_elix_level} = x4; then ++ ELIX_LEVEL_4_TRUE= ++ ELIX_LEVEL_4_FALSE='#' ++else ++ ELIX_LEVEL_4_TRUE='#' ++ ELIX_LEVEL_4_FALSE= ++fi ++ ++ ++ ++ ++if test x${use_libtool} = xyes; then ++ USE_LIBTOOL_TRUE= ++ USE_LIBTOOL_FALSE='#' ++else ++ USE_LIBTOOL_TRUE='#' ++ USE_LIBTOOL_FALSE= ++fi ++ ++ ++# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we ++# use oext, which is set in configure.host based on the target platform. ++OBJEXT=${oext} ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ac_config_files="$ac_config_files Makefile" ++ ++cat >confcache <<\_ACEOF ++# This file is a shell script that caches the results of configure ++# tests run on this system so they can be shared between configure ++# scripts and configure runs, see configure's option --config-cache. ++# It is not useful on other systems. If it contains results you don't ++# want to keep, you may remove or edit it. ++# ++# config.status only pays attention to the cache file if you give it ++# the --recheck option to rerun configure. ++# ++# `ac_cv_env_foo' variables (set or unset) will be overridden when ++# loading this file, other *unset* `ac_cv_foo' will be assigned the ++# following values. ++ ++_ACEOF ++ ++# The following way of writing the cache mishandles newlines in values, ++# but we know of no workaround that is simple, portable, and efficient. ++# So, don't put newlines in cache variables' values. ++# Ultrix sh set writes to stderr and can't be redirected directly, ++# and sets the high bit in the cache file unless we assign to the vars. ++{ ++ (set) 2>&1 | ++ case `(ac_space=' '; set | grep ac_space) 2>&1` in ++ *ac_space=\ *) ++ # `set' does not quote correctly, so add quotes (double-quote ++ # substitution turns \\\\ into \\, and sed turns \\ into \). ++ sed -n \ ++ "s/'/'\\\\''/g; ++ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ++ ;; ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n \ ++ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ++ ;; ++ esac; ++} | ++ sed ' ++ t clear ++ : clear ++ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ ++ t end ++ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ ++ : end' >>confcache ++if diff $cache_file confcache >/dev/null 2>&1; then :; else ++ if test -w $cache_file; then ++ test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" ++ cat confcache >$cache_file ++ else ++ echo "not updating unwritable cache $cache_file" ++ fi ++fi ++rm -f confcache ++ ++test "x$prefix" = xNONE && prefix=$ac_default_prefix ++# Let make expand exec_prefix. ++test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' ++ ++# VPATH may cause trouble with some makes, so we remove $(srcdir), ++# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and ++# trailing colons and then remove the whole line if VPATH becomes empty ++# (actually we leave an empty line to preserve line numbers). ++if test "x$srcdir" = x.; then ++ ac_vpsub='/^[ ]*VPATH[ ]*=/{ ++s/:*\$(srcdir):*/:/; ++s/:*\${srcdir}:*/:/; ++s/:*@srcdir@:*/:/; ++s/^\([^=]*=[ ]*\):*/\1/; ++s/:*$//; ++s/^[^=]*=[ ]*$//; ++}' ++fi ++ ++# Transform confdefs.h into DEFS. ++# Protect against shell expansion while executing Makefile rules. ++# Protect against Makefile macro expansion. ++# ++# If the first sed substitution is executed (which looks for macros that ++# take arguments), then we branch to the quote section. Otherwise, ++# look for a macro that doesn't take arguments. ++cat >confdef2opt.sed <<\_ACEOF ++t clear ++: clear ++s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g ++t quote ++s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g ++t quote ++d ++: quote ++s,[ `~#$^&*(){}\\|;'"<>?],\\&,g ++s,\[,\\&,g ++s,\],\\&,g ++s,\$,$$,g ++p ++_ACEOF ++# We use echo to avoid assuming a particular line-breaking character. ++# The extra dot is to prevent the shell from consuming trailing ++# line-breaks from the sub-command output. A line-break within ++# single-quotes doesn't work because, if this script is created in a ++# platform that uses two characters for line-breaks (e.g., DOS), tr ++# would break. ++ac_LF_and_DOT=`echo; echo .` ++DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` ++rm -f confdef2opt.sed ++ ++ ++ac_libobjs= ++ac_ltlibobjs= ++for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue ++ # 1. Remove the extension, and $U if already installed. ++ ac_i=`echo "$ac_i" | ++ sed 's/\$U\././;s/\.o$//;s/\.obj$//'` ++ # 2. Add them. ++ ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ++ ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' ++done ++LIBOBJS=$ac_libobjs ++ ++LTLIBOBJS=$ac_ltlibobjs ++ ++ ++if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"AMDEP\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then ++ { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined. ++Usually this means the macro was only invoked conditionally." >&5 ++echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined. ++Usually this means the macro was only invoked conditionally." >&2;} ++ { (exit 1); exit 1; }; } ++fi ++ ++: ${CONFIG_STATUS=./config.status} ++ac_clean_files_save=$ac_clean_files ++ac_clean_files="$ac_clean_files $CONFIG_STATUS" ++{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 ++echo "$as_me: creating $CONFIG_STATUS" >&6;} ++cat >$CONFIG_STATUS <<_ACEOF ++#! $SHELL ++# Generated by $as_me. ++# Run this file to recreate the current configuration. ++# Compiler output produced by configure, useful for debugging ++# configure, is in config.log if it exists. ++ ++debug=false ++ac_cs_recheck=false ++ac_cs_silent=false ++SHELL=\${CONFIG_SHELL-$SHELL} ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++## --------------------- ## ++## M4sh Initialization. ## ++## --------------------- ## ++ ++# Be Bourne compatible ++if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then ++ emulate sh ++ NULLCMD=: ++ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which ++ # is contrary to our usage. Disable this feature. ++ alias -g '${1+"$@"}'='"$@"' ++elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then ++ set -o posix ++fi ++DUALCASE=1; export DUALCASE # for MKS sh ++ ++# Support unset when possible. ++if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then ++ as_unset=unset ++else ++ as_unset=false ++fi ++ ++ ++# Work around bugs in pre-3.0 UWIN ksh. ++$as_unset ENV MAIL MAILPATH ++PS1='$ ' ++PS2='> ' ++PS4='+ ' ++ ++# NLS nuisances. ++for as_var in \ ++ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ ++ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ ++ LC_TELEPHONE LC_TIME ++do ++ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then ++ eval $as_var=C; export $as_var ++ else ++ $as_unset $as_var ++ fi ++done ++ ++# Required to use basename. ++if expr a : '\(a\)' >/dev/null 2>&1; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then ++ as_basename=basename ++else ++ as_basename=false ++fi ++ ++ ++# Name of the executable. ++as_me=`$as_basename "$0" || ++$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ ++ X"$0" : 'X\(//\)$' \| \ ++ X"$0" : 'X\(/\)$' \| \ ++ . : '\(.\)' 2>/dev/null || ++echo X/"$0" | ++ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } ++ /^X\/\(\/\/\)$/{ s//\1/; q; } ++ /^X\/\(\/\).*/{ s//\1/; q; } ++ s/.*/./; q'` ++ ++ ++# PATH needs CR, and LINENO needs CR and PATH. ++# Avoid depending upon Character Ranges. ++as_cr_letters='abcdefghijklmnopqrstuvwxyz' ++as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' ++as_cr_Letters=$as_cr_letters$as_cr_LETTERS ++as_cr_digits='0123456789' ++as_cr_alnum=$as_cr_Letters$as_cr_digits ++ ++# 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 ++ ++ ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x$as_lineno_3" = "x$as_lineno_2" || { ++ # Find who we are. Look in the path if we contain no path at all ++ # relative or not. ++ case $0 in ++ *[\\/]* ) as_myself=$0 ;; ++ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break ++done ++ ++ ;; ++ esac ++ # We did not find ourselves, most probably we were run as `sh COMMAND' ++ # in which case we are not to be found in the path. ++ if test "x$as_myself" = x; then ++ as_myself=$0 ++ fi ++ if test ! -f "$as_myself"; then ++ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 ++echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ case $CONFIG_SHELL in ++ '') ++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for as_base in sh bash ksh sh5; do ++ case $as_dir in ++ /*) ++ if ("$as_dir/$as_base" -c ' ++ as_lineno_1=$LINENO ++ as_lineno_2=$LINENO ++ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` ++ test "x$as_lineno_1" != "x$as_lineno_2" && ++ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then ++ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } ++ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } ++ CONFIG_SHELL=$as_dir/$as_base ++ export CONFIG_SHELL ++ exec "$CONFIG_SHELL" "$0" ${1+"$@"} ++ fi;; ++ esac ++ done ++done ++;; ++ esac ++ ++ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO ++ # uniformly replaced by the line number. The first 'sed' inserts a ++ # line-number line before each line; the second 'sed' does the real ++ # work. The second script uses 'N' to pair each line-number line ++ # with the numbered line, and appends trailing '-' during ++ # substitution so that $LINENO is not a special case at line end. ++ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the ++ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) ++ sed '=' <$as_myself | ++ sed ' ++ N ++ s,$,-, ++ : loop ++ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, ++ t loop ++ s,-$,, ++ s,^['$as_cr_digits']*\n,, ++ ' >$as_me.lineno && ++ chmod +x $as_me.lineno || ++ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 ++echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} ++ { (exit 1); exit 1; }; } ++ ++ # Don't try to exec as it changes $[0], causing all sort of problems ++ # (the dirname of $[0] is not the place where we might find the ++ # original and so on. Autoconf is especially sensible to this). ++ . ./$as_me.lineno ++ # Exit status is that of the last command. ++ exit ++} ++ ++ ++case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in ++ *c*,-n*) ECHO_N= ECHO_C=' ++' ECHO_T=' ' ;; ++ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; ++ *) ECHO_N= ECHO_C='\c' ECHO_T= ;; ++esac ++ ++if expr a : '\(a\)' >/dev/null 2>&1; then ++ as_expr=expr ++else ++ as_expr=false ++fi ++ ++rm -f conf$$ conf$$.exe conf$$.file ++echo >conf$$.file ++if ln -s conf$$.file conf$$ 2>/dev/null; then ++ # We could just check for DJGPP; but this test a) works b) is more generic ++ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). ++ if test -f conf$$.exe; then ++ # Don't use ln at all; we don't have any links ++ as_ln_s='cp -p' ++ else ++ as_ln_s='ln -s' ++ fi ++elif ln conf$$.file conf$$ 2>/dev/null; then ++ as_ln_s=ln ++else ++ as_ln_s='cp -p' ++fi ++rm -f conf$$ conf$$.exe conf$$.file ++ ++if mkdir -p . 2>/dev/null; then ++ as_mkdir_p=: ++else ++ test -d ./-p && rmdir ./-p ++ as_mkdir_p=false ++fi ++ ++as_executable_p="test -f" ++ ++# Sed expression to map a string onto a valid CPP name. ++as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" ++ ++# Sed expression to map a string onto a valid variable name. ++as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" ++ ++ ++# IFS ++# We need space, tab and new line, in precisely that order. ++as_nl=' ++' ++IFS=" $as_nl" ++ ++# CDPATH. ++$as_unset CDPATH ++ ++exec 6>&1 ++ ++# Open the log real soon, to keep \$[0] and so on meaningful, and to ++# report actual input values of CONFIG_FILES etc. instead of their ++# values after options handling. Logging --version etc. is OK. ++exec 5>>config.log ++{ ++ echo ++ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ++## Running $as_me. ## ++_ASBOX ++} >&5 ++cat >&5 <<_CSEOF ++ ++This file was extended by newlib $as_me 1.15.0, which was ++generated by GNU Autoconf 2.59. Invocation command line was ++ ++ CONFIG_FILES = $CONFIG_FILES ++ CONFIG_HEADERS = $CONFIG_HEADERS ++ CONFIG_LINKS = $CONFIG_LINKS ++ CONFIG_COMMANDS = $CONFIG_COMMANDS ++ $ $0 $@ ++ ++_CSEOF ++echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 ++echo >&5 ++_ACEOF ++ ++# Files that config.status was made for. ++if test -n "$ac_config_files"; then ++ echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS ++fi ++ ++if test -n "$ac_config_headers"; then ++ echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS ++fi ++ ++if test -n "$ac_config_links"; then ++ echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS ++fi ++ ++if test -n "$ac_config_commands"; then ++ echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS ++fi ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++ ++ac_cs_usage="\ ++\`$as_me' instantiates files from templates according to the ++current configuration. ++ ++Usage: $0 [OPTIONS] [FILE]... ++ ++ -h, --help print this help, then exit ++ -V, --version print version number, then exit ++ -q, --quiet do not print progress messages ++ -d, --debug don't remove temporary files ++ --recheck update $as_me by reconfiguring in the same conditions ++ --file=FILE[:TEMPLATE] ++ instantiate the configuration file FILE ++ ++Configuration files: ++$config_files ++ ++Configuration commands: ++$config_commands ++ ++Report bugs to ." ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++ac_cs_version="\\ ++newlib config.status 1.15.0 ++configured by $0, generated by GNU Autoconf 2.59, ++ with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" ++ ++Copyright (C) 2003 Free Software Foundation, Inc. ++This config.status script is free software; the Free Software Foundation ++gives unlimited permission to copy, distribute and modify it." ++srcdir=$srcdir ++INSTALL="$INSTALL" ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++# If no file are specified by the user, then we need to provide default ++# value. By we need to know if files were specified by the user. ++ac_need_defaults=: ++while test $# != 0 ++do ++ case $1 in ++ --*=*) ++ ac_option=`expr "x$1" : 'x\([^=]*\)='` ++ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ++ ac_shift=: ++ ;; ++ -*) ++ ac_option=$1 ++ ac_optarg=$2 ++ ac_shift=shift ++ ;; ++ *) # This is not an option, so the user has probably given explicit ++ # arguments. ++ ac_option=$1 ++ ac_need_defaults=false;; ++ esac ++ ++ case $ac_option in ++ # Handling of the options. ++_ACEOF ++cat >>$CONFIG_STATUS <<\_ACEOF ++ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ++ ac_cs_recheck=: ;; ++ --version | --vers* | -V ) ++ echo "$ac_cs_version"; exit 0 ;; ++ --he | --h) ++ # Conflict between --help and --header ++ { { echo "$as_me:$LINENO: error: ambiguous option: $1 ++Try \`$0 --help' for more information." >&5 ++echo "$as_me: error: ambiguous option: $1 ++Try \`$0 --help' for more information." >&2;} ++ { (exit 1); exit 1; }; };; ++ --help | --hel | -h ) ++ echo "$ac_cs_usage"; exit 0 ;; ++ --debug | --d* | -d ) ++ debug=: ;; ++ --file | --fil | --fi | --f ) ++ $ac_shift ++ CONFIG_FILES="$CONFIG_FILES $ac_optarg" ++ ac_need_defaults=false;; ++ --header | --heade | --head | --hea ) ++ $ac_shift ++ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ++ ac_need_defaults=false;; ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \ ++ | -silent | --silent | --silen | --sile | --sil | --si | --s) ++ ac_cs_silent=: ;; ++ ++ # This is an error. ++ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 ++Try \`$0 --help' for more information." >&5 ++echo "$as_me: error: unrecognized option: $1 ++Try \`$0 --help' for more information." >&2;} ++ { (exit 1); exit 1; }; } ;; ++ ++ *) ac_config_targets="$ac_config_targets $1" ;; ++ ++ esac ++ shift ++done ++ ++ac_configure_extra_args= ++ ++if $ac_cs_silent; then ++ exec 6>/dev/null ++ ac_configure_extra_args="$ac_configure_extra_args --silent" ++fi ++ ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++if \$ac_cs_recheck; then ++ echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 ++ exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion ++fi ++ ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++# ++# INIT-COMMANDS section. ++# ++ ++AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" ++ ++_ACEOF ++ ++ ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++for ac_config_target in $ac_config_targets ++do ++ case "$ac_config_target" in ++ # Handling of arguments. ++ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; ++ "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; ++ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 ++echo "$as_me: error: invalid argument: $ac_config_target" >&2;} ++ { (exit 1); exit 1; }; };; ++ esac ++done ++ ++# If the user did not use the arguments to specify the items to instantiate, ++# then the envvar interface is used. Set only those that are not. ++# We use the long form for the default assignment because of an extremely ++# bizarre bug on SunOS 4.1.3. ++if $ac_need_defaults; then ++ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files ++ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands ++fi ++ ++# Have a temporary directory for convenience. Make it in the build tree ++# simply because there is no reason to put it here, and in addition, ++# creating and moving files from /tmp can sometimes cause problems. ++# Create a temporary directory, and hook for its removal unless debugging. ++$debug || ++{ ++ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 ++ trap '{ (exit 1); exit 1; }' 1 2 13 15 ++} ++ ++# Create a (secure) tmp directory for tmp files. ++ ++{ ++ tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && ++ test -n "$tmp" && test -d "$tmp" ++} || ++{ ++ tmp=./confstat$$-$RANDOM ++ (umask 077 && mkdir $tmp) ++} || ++{ ++ echo "$me: cannot create a temporary directory in ." >&2 ++ { (exit 1); exit 1; } ++} ++ ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<_ACEOF ++ ++# ++# CONFIG_FILES section. ++# ++ ++# No need to generate the scripts if there are no CONFIG_FILES. ++# This happens for instance when ./config.status config.h ++if test -n "\$CONFIG_FILES"; then ++ # Protect against being on the right side of a sed subst in config.status. ++ sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; ++ s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF ++s,@SHELL@,$SHELL,;t t ++s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t ++s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t ++s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t ++s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t ++s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t ++s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t ++s,@exec_prefix@,$exec_prefix,;t t ++s,@prefix@,$prefix,;t t ++s,@program_transform_name@,$program_transform_name,;t t ++s,@bindir@,$bindir,;t t ++s,@sbindir@,$sbindir,;t t ++s,@libexecdir@,$libexecdir,;t t ++s,@datadir@,$datadir,;t t ++s,@sysconfdir@,$sysconfdir,;t t ++s,@sharedstatedir@,$sharedstatedir,;t t ++s,@localstatedir@,$localstatedir,;t t ++s,@libdir@,$libdir,;t t ++s,@includedir@,$includedir,;t t ++s,@oldincludedir@,$oldincludedir,;t t ++s,@infodir@,$infodir,;t t ++s,@mandir@,$mandir,;t t ++s,@build_alias@,$build_alias,;t t ++s,@host_alias@,$host_alias,;t t ++s,@target_alias@,$target_alias,;t t ++s,@DEFS@,$DEFS,;t t ++s,@ECHO_C@,$ECHO_C,;t t ++s,@ECHO_N@,$ECHO_N,;t t ++s,@ECHO_T@,$ECHO_T,;t t ++s,@LIBS@,$LIBS,;t t ++s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t ++s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t ++s,@newlib_basedir@,$newlib_basedir,;t t ++s,@build@,$build,;t t ++s,@build_cpu@,$build_cpu,;t t ++s,@build_vendor@,$build_vendor,;t t ++s,@build_os@,$build_os,;t t ++s,@host@,$host,;t t ++s,@host_cpu@,$host_cpu,;t t ++s,@host_vendor@,$host_vendor,;t t ++s,@host_os@,$host_os,;t t ++s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t ++s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t ++s,@INSTALL_DATA@,$INSTALL_DATA,;t t ++s,@CYGPATH_W@,$CYGPATH_W,;t t ++s,@PACKAGE@,$PACKAGE,;t t ++s,@VERSION@,$VERSION,;t t ++s,@ACLOCAL@,$ACLOCAL,;t t ++s,@AUTOCONF@,$AUTOCONF,;t t ++s,@AUTOMAKE@,$AUTOMAKE,;t t ++s,@AUTOHEADER@,$AUTOHEADER,;t t ++s,@MAKEINFO@,$MAKEINFO,;t t ++s,@install_sh@,$install_sh,;t t ++s,@STRIP@,$STRIP,;t t ++s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t ++s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t ++s,@mkdir_p@,$mkdir_p,;t t ++s,@AWK@,$AWK,;t t ++s,@SET_MAKE@,$SET_MAKE,;t t ++s,@am__leading_dot@,$am__leading_dot,;t t ++s,@AMTAR@,$AMTAR,;t t ++s,@am__tar@,$am__tar,;t t ++s,@am__untar@,$am__untar,;t t ++s,@CC@,$CC,;t t ++s,@DEPDIR@,$DEPDIR,;t t ++s,@am__include@,$am__include,;t t ++s,@am__quote@,$am__quote,;t t ++s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t ++s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t ++s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t ++s,@CCDEPMODE@,$CCDEPMODE,;t t ++s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t ++s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t ++s,@AS@,$AS,;t t ++s,@ac_ct_AS@,$ac_ct_AS,;t t ++s,@AR@,$AR,;t t ++s,@ac_ct_AR@,$ac_ct_AR,;t t ++s,@RANLIB@,$RANLIB,;t t ++s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t ++s,@READELF@,$READELF,;t t ++s,@ac_ct_READELF@,$ac_ct_READELF,;t t ++s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t ++s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t ++s,@MAINT@,$MAINT,;t t ++s,@CCAS@,$CCAS,;t t ++s,@CCASFLAGS@,$CCASFLAGS,;t t ++s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t ++s,@LDFLAGS@,$LDFLAGS,;t t ++s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t ++s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t ++s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t ++s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t ++s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t ++s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t ++s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t ++s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t ++s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t ++s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t ++s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t ++s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t ++s,@OBJEXT@,$OBJEXT,;t t ++s,@oext@,$oext,;t t ++s,@aext@,$aext,;t t ++s,@lpfx@,$lpfx,;t t ++s,@libm_machine_dir@,$libm_machine_dir,;t t ++s,@machine_dir@,$machine_dir,;t t ++s,@sys_dir@,$sys_dir,;t t ++s,@LIBOBJS@,$LIBOBJS,;t t ++s,@LTLIBOBJS@,$LTLIBOBJS,;t t ++CEOF ++ ++_ACEOF ++ ++ cat >>$CONFIG_STATUS <<\_ACEOF ++ # Split the substitutions into bite-sized pieces for seds with ++ # small command number limits, like on Digital OSF/1 and HP-UX. ++ ac_max_sed_lines=48 ++ ac_sed_frag=1 # Number of current file. ++ ac_beg=1 # First line for current file. ++ ac_end=$ac_max_sed_lines # Line after last line for current file. ++ ac_more_lines=: ++ ac_sed_cmds= ++ while $ac_more_lines; do ++ if test $ac_beg -gt 1; then ++ sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag ++ else ++ sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag ++ fi ++ if test ! -s $tmp/subs.frag; then ++ ac_more_lines=false ++ else ++ # The purpose of the label and of the branching condition is to ++ # speed up the sed processing (if there are no `@' at all, there ++ # is no need to browse any of the substitutions). ++ # These are the two extra sed commands mentioned above. ++ (echo ':t ++ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed ++ if test -z "$ac_sed_cmds"; then ++ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" ++ else ++ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" ++ fi ++ ac_sed_frag=`expr $ac_sed_frag + 1` ++ ac_beg=$ac_end ++ ac_end=`expr $ac_end + $ac_max_sed_lines` ++ fi ++ done ++ if test -z "$ac_sed_cmds"; then ++ ac_sed_cmds=cat ++ fi ++fi # test -n "$CONFIG_FILES" ++ ++_ACEOF ++cat >>$CONFIG_STATUS <<\_ACEOF ++for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue ++ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ++ case $ac_file in ++ - | *:- | *:-:* ) # input from stdin ++ cat >$tmp/stdin ++ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ++ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ++ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ++ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; ++ * ) ac_file_in=$ac_file.in ;; ++ esac ++ ++ # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ++ ac_dir=`(dirname "$ac_file") 2>/dev/null || ++$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$ac_file" : 'X\(//\)[^/]' \| \ ++ X"$ac_file" : 'X\(//\)$' \| \ ++ X"$ac_file" : 'X\(/\)' \| \ ++ . : '\(.\)' 2>/dev/null || ++echo X"$ac_file" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; } ++ /^X\(\/\/\)$/{ s//\1/; q; } ++ /^X\(\/\).*/{ s//\1/; q; } ++ s/.*/./; q'` ++ { if $as_mkdir_p; then ++ mkdir -p "$ac_dir" ++ else ++ as_dir="$ac_dir" ++ as_dirs= ++ while test ! -d "$as_dir"; do ++ as_dirs="$as_dir $as_dirs" ++ as_dir=`(dirname "$as_dir") 2>/dev/null || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| \ ++ . : '\(.\)' 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; } ++ /^X\(\/\/\)$/{ s//\1/; q; } ++ /^X\(\/\).*/{ s//\1/; q; } ++ s/.*/./; q'` ++ done ++ test ! -n "$as_dirs" || mkdir $as_dirs ++ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 ++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ ac_builddir=. ++ ++if test "$ac_dir" != .; then ++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ++ # A "../" for each directory in $ac_dir_suffix. ++ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ++else ++ ac_dir_suffix= ac_top_builddir= ++fi ++ ++case $srcdir in ++ .) # No --srcdir option. We are building in place. ++ ac_srcdir=. ++ if test -z "$ac_top_builddir"; then ++ ac_top_srcdir=. ++ else ++ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ++ fi ;; ++ [\\/]* | ?:[\\/]* ) # Absolute path. ++ ac_srcdir=$srcdir$ac_dir_suffix; ++ ac_top_srcdir=$srcdir ;; ++ *) # Relative path. ++ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ++ ac_top_srcdir=$ac_top_builddir$srcdir ;; ++esac ++ ++# Do not use `cd foo && pwd` to compute absolute paths, because ++# the directories may not exist. ++case `pwd` in ++.) ac_abs_builddir="$ac_dir";; ++*) ++ case "$ac_dir" in ++ .) ac_abs_builddir=`pwd`;; ++ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; ++ *) ac_abs_builddir=`pwd`/"$ac_dir";; ++ esac;; ++esac ++case $ac_abs_builddir in ++.) ac_abs_top_builddir=${ac_top_builddir}.;; ++*) ++ case ${ac_top_builddir}. in ++ .) ac_abs_top_builddir=$ac_abs_builddir;; ++ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ++ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; ++ esac;; ++esac ++case $ac_abs_builddir in ++.) ac_abs_srcdir=$ac_srcdir;; ++*) ++ case $ac_srcdir in ++ .) ac_abs_srcdir=$ac_abs_builddir;; ++ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ++ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; ++ esac;; ++esac ++case $ac_abs_builddir in ++.) ac_abs_top_srcdir=$ac_top_srcdir;; ++*) ++ case $ac_top_srcdir in ++ .) ac_abs_top_srcdir=$ac_abs_builddir;; ++ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ++ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; ++ esac;; ++esac ++ ++ ++ case $INSTALL in ++ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; ++ *) ac_INSTALL=$ac_top_builddir$INSTALL ;; ++ esac ++ ++ if test x"$ac_file" != x-; then ++ { echo "$as_me:$LINENO: creating $ac_file" >&5 ++echo "$as_me: creating $ac_file" >&6;} ++ rm -f "$ac_file" ++ fi ++ # Let's still pretend it is `configure' which instantiates (i.e., don't ++ # use $as_me), people would be surprised to read: ++ # /* config.h. Generated by config.status. */ ++ if test x"$ac_file" = x-; then ++ configure_input= ++ else ++ configure_input="$ac_file. " ++ fi ++ configure_input=$configure_input"Generated from `echo $ac_file_in | ++ sed 's,.*/,,'` by configure." ++ ++ # First look for the input files in the build tree, otherwise in the ++ # src tree. ++ ac_file_inputs=`IFS=: ++ for f in $ac_file_in; do ++ case $f in ++ -) echo $tmp/stdin ;; ++ [\\/$]*) ++ # Absolute (can't be DOS-style, as IFS=:) ++ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ++echo "$as_me: error: cannot find input file: $f" >&2;} ++ { (exit 1); exit 1; }; } ++ echo "$f";; ++ *) # Relative ++ if test -f "$f"; then ++ # Build tree ++ echo "$f" ++ elif test -f "$srcdir/$f"; then ++ # Source tree ++ echo "$srcdir/$f" ++ else ++ # /dev/null tree ++ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 ++echo "$as_me: error: cannot find input file: $f" >&2;} ++ { (exit 1); exit 1; }; } ++ fi;; ++ esac ++ done` || { (exit 1); exit 1; } ++_ACEOF ++cat >>$CONFIG_STATUS <<_ACEOF ++ sed "$ac_vpsub ++$extrasub ++_ACEOF ++cat >>$CONFIG_STATUS <<\_ACEOF ++:t ++/@[a-zA-Z_][a-zA-Z_0-9]*@/!b ++s,@configure_input@,$configure_input,;t t ++s,@srcdir@,$ac_srcdir,;t t ++s,@abs_srcdir@,$ac_abs_srcdir,;t t ++s,@top_srcdir@,$ac_top_srcdir,;t t ++s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t ++s,@builddir@,$ac_builddir,;t t ++s,@abs_builddir@,$ac_abs_builddir,;t t ++s,@top_builddir@,$ac_top_builddir,;t t ++s,@abs_top_builddir@,$ac_abs_top_builddir,;t t ++s,@INSTALL@,$ac_INSTALL,;t t ++" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out ++ rm -f $tmp/stdin ++ if test x"$ac_file" != x-; then ++ mv $tmp/out $ac_file ++ else ++ cat $tmp/out ++ rm -f $tmp/out ++ fi ++ ++done ++_ACEOF ++cat >>$CONFIG_STATUS <<\_ACEOF ++ ++# ++# CONFIG_COMMANDS section. ++# ++for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ++ ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ++ ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ++ ac_dir=`(dirname "$ac_dest") 2>/dev/null || ++$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$ac_dest" : 'X\(//\)[^/]' \| \ ++ X"$ac_dest" : 'X\(//\)$' \| \ ++ X"$ac_dest" : 'X\(/\)' \| \ ++ . : '\(.\)' 2>/dev/null || ++echo X"$ac_dest" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; } ++ /^X\(\/\/\)$/{ s//\1/; q; } ++ /^X\(\/\).*/{ s//\1/; q; } ++ s/.*/./; q'` ++ { if $as_mkdir_p; then ++ mkdir -p "$ac_dir" ++ else ++ as_dir="$ac_dir" ++ as_dirs= ++ while test ! -d "$as_dir"; do ++ as_dirs="$as_dir $as_dirs" ++ as_dir=`(dirname "$as_dir") 2>/dev/null || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| \ ++ . : '\(.\)' 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; } ++ /^X\(\/\/\)$/{ s//\1/; q; } ++ /^X\(\/\).*/{ s//\1/; q; } ++ s/.*/./; q'` ++ done ++ test ! -n "$as_dirs" || mkdir $as_dirs ++ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 ++echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ ac_builddir=. ++ ++if test "$ac_dir" != .; then ++ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` ++ # A "../" for each directory in $ac_dir_suffix. ++ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` ++else ++ ac_dir_suffix= ac_top_builddir= ++fi ++ ++case $srcdir in ++ .) # No --srcdir option. We are building in place. ++ ac_srcdir=. ++ if test -z "$ac_top_builddir"; then ++ ac_top_srcdir=. ++ else ++ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` ++ fi ;; ++ [\\/]* | ?:[\\/]* ) # Absolute path. ++ ac_srcdir=$srcdir$ac_dir_suffix; ++ ac_top_srcdir=$srcdir ;; ++ *) # Relative path. ++ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ++ ac_top_srcdir=$ac_top_builddir$srcdir ;; ++esac ++ ++# Do not use `cd foo && pwd` to compute absolute paths, because ++# the directories may not exist. ++case `pwd` in ++.) ac_abs_builddir="$ac_dir";; ++*) ++ case "$ac_dir" in ++ .) ac_abs_builddir=`pwd`;; ++ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; ++ *) ac_abs_builddir=`pwd`/"$ac_dir";; ++ esac;; ++esac ++case $ac_abs_builddir in ++.) ac_abs_top_builddir=${ac_top_builddir}.;; ++*) ++ case ${ac_top_builddir}. in ++ .) ac_abs_top_builddir=$ac_abs_builddir;; ++ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; ++ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; ++ esac;; ++esac ++case $ac_abs_builddir in ++.) ac_abs_srcdir=$ac_srcdir;; ++*) ++ case $ac_srcdir in ++ .) ac_abs_srcdir=$ac_abs_builddir;; ++ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; ++ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; ++ esac;; ++esac ++case $ac_abs_builddir in ++.) ac_abs_top_srcdir=$ac_top_srcdir;; ++*) ++ case $ac_top_srcdir in ++ .) ac_abs_top_srcdir=$ac_abs_builddir;; ++ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; ++ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; ++ esac;; ++esac ++ ++ ++ { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 ++echo "$as_me: executing $ac_dest commands" >&6;} ++ case $ac_dest in ++ depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do ++ # Strip MF so we end up with the name of the file. ++ mf=`echo "$mf" | sed -e 's/:.*$//'` ++ # Check whether this is an Automake generated Makefile or not. ++ # We used to match only the files named `Makefile.in', but ++ # some people rename them; so instead we look at the file content. ++ # Grep'ing the first line is not enough: some people post-process ++ # each Makefile.in and add a new line on top of each file to say so. ++ # So let's grep whole file. ++ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then ++ dirpart=`(dirname "$mf") 2>/dev/null || ++$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$mf" : 'X\(//\)[^/]' \| \ ++ X"$mf" : 'X\(//\)$' \| \ ++ X"$mf" : 'X\(/\)' \| \ ++ . : '\(.\)' 2>/dev/null || ++echo X"$mf" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; } ++ /^X\(\/\/\)$/{ s//\1/; q; } ++ /^X\(\/\).*/{ s//\1/; q; } ++ s/.*/./; q'` ++ else ++ continue ++ fi ++ # Extract the definition of DEPDIR, am__include, and am__quote ++ # from the Makefile without running `make'. ++ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` ++ test -z "$DEPDIR" && continue ++ am__include=`sed -n 's/^am__include = //p' < "$mf"` ++ test -z "am__include" && continue ++ am__quote=`sed -n 's/^am__quote = //p' < "$mf"` ++ # When using ansi2knr, U may be empty or an underscore; expand it ++ U=`sed -n 's/^U = //p' < "$mf"` ++ # Find all dependency output files, they are included files with ++ # $(DEPDIR) in their names. We invoke sed twice because it is the ++ # simplest approach to changing $(DEPDIR) to its actual value in the ++ # expansion. ++ for file in `sed -n " ++ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ ++ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do ++ # Make sure the directory exists. ++ test -f "$dirpart/$file" && continue ++ fdir=`(dirname "$file") 2>/dev/null || ++$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$file" : 'X\(//\)[^/]' \| \ ++ X"$file" : 'X\(//\)$' \| \ ++ X"$file" : 'X\(/\)' \| \ ++ . : '\(.\)' 2>/dev/null || ++echo X"$file" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; } ++ /^X\(\/\/\)$/{ s//\1/; q; } ++ /^X\(\/\).*/{ s//\1/; q; } ++ s/.*/./; q'` ++ { if $as_mkdir_p; then ++ mkdir -p $dirpart/$fdir ++ else ++ as_dir=$dirpart/$fdir ++ as_dirs= ++ while test ! -d "$as_dir"; do ++ as_dirs="$as_dir $as_dirs" ++ as_dir=`(dirname "$as_dir") 2>/dev/null || ++$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ ++ X"$as_dir" : 'X\(//\)[^/]' \| \ ++ X"$as_dir" : 'X\(//\)$' \| \ ++ X"$as_dir" : 'X\(/\)' \| \ ++ . : '\(.\)' 2>/dev/null || ++echo X"$as_dir" | ++ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } ++ /^X\(\/\/\)[^/].*/{ s//\1/; q; } ++ /^X\(\/\/\)$/{ s//\1/; q; } ++ /^X\(\/\).*/{ s//\1/; q; } ++ s/.*/./; q'` ++ done ++ test ! -n "$as_dirs" || mkdir $as_dirs ++ fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 ++echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} ++ { (exit 1); exit 1; }; }; } ++ ++ # echo "creating $dirpart/$file" ++ echo '# dummy' > "$dirpart/$file" ++ done ++done ++ ;; ++ esac ++done ++_ACEOF ++ ++cat >>$CONFIG_STATUS <<\_ACEOF ++ ++{ (exit 0); exit 0; } ++_ACEOF ++chmod +x $CONFIG_STATUS ++ac_clean_files=$ac_clean_files_save ++ ++ ++# configure is writing to config.log, and then calls config.status. ++# config.status does its own redirection, appending to config.log. ++# Unfortunately, on DOS this fails, as config.log is still kept open ++# by configure, so config.status won't be able to write to it; its ++# output is simply discarded. So we exec the FD to /dev/null, ++# effectively closing config.log, so it can be properly (re)opened and ++# appended to by config.status. When coming back to configure, we ++# need to make the FD available again. ++if test "$no_create" != yes; then ++ ac_cs_success=: ++ ac_config_status_args= ++ test "$silent" = yes && ++ ac_config_status_args="$ac_config_status_args --quiet" ++ exec 5>/dev/null ++ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false ++ exec 5>>config.log ++ # Use ||, not &&, to avoid exiting from the if with $? = 1, which ++ # would make configure fail if this is the last instruction. ++ $ac_cs_success || { (exit 1); exit 1; } ++fi ++ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/configure.in newlib-1.19.0-psp/newlib/libc/sys/psp/configure.in +--- newlib-1.19.0/newlib/libc/sys/psp/configure.in 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/configure.in 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,14 @@ ++dnl This is the newlib/libc/sys/sun4 configure.in file. ++dnl Process this file with autoconf to produce a configure script. ++ ++AC_PREREQ(2.59) ++AC_INIT([newlib],[NEWLIB_VERSION]) ++AC_CONFIG_SRCDIR([libcglue.c]) ++ ++dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. ++AC_CONFIG_AUX_DIR(../../../..) ++ ++NEWLIB_CONFIGURE(../../..) ++ ++AC_CONFIG_FILES(Makefile) ++AC_OUTPUT +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/crt0.c newlib-1.19.0-psp/newlib/libc/sys/psp/crt0.c +--- newlib-1.19.0/newlib/libc/sys/psp/crt0.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/crt0.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,3 @@ ++/* The real crt0.c lives in PSPSDK. */ ++ ++void _start() { } +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/fdman.c newlib-1.19.0-psp/newlib/libc/sys/psp/fdman.c +--- newlib-1.19.0/newlib/libc/sys/psp/fdman.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/fdman.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,115 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * fdman.c - File descriptor management. ++ * ++ * Copyright (c) 2006 Rafael Cabezas ++ */ ++#include ++#include ++#include "fdman.h" ++ ++extern int pspDisableInterrupts(); ++extern void pspEnableInterrupts(int); ++ ++static __psp_descriptormap_type __psp_descriptor_data_pool[__PSP_FILENO_MAX]; ++__psp_descriptormap_type *__psp_descriptormap [__PSP_FILENO_MAX]; ++ ++void __psp_fdman_init() ++{ ++ int scefd; ++ ++ /* Initialize descriptor data*/ ++ memset(__psp_descriptor_data_pool, 0, sizeof(__psp_descriptormap_type) *__PSP_FILENO_MAX); ++ /* Initialize descriptor map*/ ++ memset(__psp_descriptormap, 0, sizeof(__psp_descriptormap_type*)*__PSP_FILENO_MAX); ++ ++ scefd = sceKernelStdin(); ++ if (scefd >= 0) { ++ __psp_descriptormap[0] = &__psp_descriptor_data_pool[0]; ++ __psp_descriptormap[0]->sce_descriptor = scefd; ++ __psp_descriptormap[0]->type = __PSP_DESCRIPTOR_TYPE_TTY; ++ } ++ scefd = sceKernelStdout(); ++ if (scefd >= 0) { ++ __psp_descriptormap[1] = &__psp_descriptor_data_pool[1]; ++ __psp_descriptormap[1]->sce_descriptor = scefd; ++ __psp_descriptormap[1]->type = __PSP_DESCRIPTOR_TYPE_TTY; ++ } ++ scefd = sceKernelStderr(); ++ if (scefd >= 0) { ++ __psp_descriptormap[2] = &__psp_descriptor_data_pool[2]; ++ __psp_descriptormap[2]->sce_descriptor = scefd; ++ __psp_descriptormap[2]->type = __PSP_DESCRIPTOR_TYPE_TTY; ++ } ++} ++ ++int __psp_fdman_get_new_descriptor() ++{ ++ int i = 0; ++ int inten; ++ ++ inten = pspDisableInterrupts(); /* lock here to make thread safe */ ++ for (i = 0; i < __PSP_FILENO_MAX; i++) { ++ if (__psp_descriptormap[i] == NULL) { ++ __psp_descriptormap[i] = &__psp_descriptor_data_pool[i]; ++ __psp_descriptormap[i]->ref_count++; ++ pspEnableInterrupts(inten); /* release lock */ ++ return i; ++ } ++ } ++ pspEnableInterrupts(inten); /* release lock */ ++ ++ errno = ENOMEM; ++ return -1; ++} ++ ++int __psp_fdman_get_dup_descriptor(int fd) ++{ ++ int i = 0; ++ int inten; ++ ++ if (!__PSP_IS_FD_VALID(fd)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ inten = pspDisableInterrupts(); /* lock here to make thread safe */ ++ for (i = 0; i < __PSP_FILENO_MAX; i++) { ++ if (__psp_descriptormap[i] == NULL) { ++ __psp_descriptormap[i] = &__psp_descriptor_data_pool[fd]; ++ __psp_descriptormap[i]->ref_count++; ++ pspEnableInterrupts(inten); /* release lock */ ++ return i; ++ } ++ } ++ pspEnableInterrupts(inten); /* release lock */ ++ ++ errno = ENOMEM; ++ return -1; ++} ++ ++void __psp_fdman_release_descriptor(int fd) ++{ ++ if (!__PSP_IS_FD_VALID(fd)) { ++ errno = EBADF; ++ return; ++ } ++ ++ __psp_descriptormap[fd]->ref_count--; ++ ++ if (__psp_descriptormap[fd]->ref_count == 0) { ++ ++ if (__psp_descriptormap[fd]->filename != NULL) { ++ free(__psp_descriptormap[fd]->filename); ++ } ++ __psp_descriptormap[fd]->filename = NULL; ++ __psp_descriptormap[fd]->sce_descriptor = 0; ++ __psp_descriptormap[fd]->type = 0; ++ __psp_descriptormap[fd]->flags = 0; ++ ++ } ++ __psp_descriptormap[fd] = NULL; ++} +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/fdman.h newlib-1.19.0-psp/newlib/libc/sys/psp/fdman.h +--- newlib-1.19.0/newlib/libc/sys/psp/fdman.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/fdman.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,44 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * fdman.h - File descriptor management. ++ * ++ * Copyright (c) 2006 Rafael Cabezas ++ */ ++ ++#ifndef _FDMAN_H_ ++ #define _FDMAN_H_ ++ ++ #define __PSP_FILENO_MAX 1024 ++ ++ #define __PSP_IS_FD_VALID(FD) \ ++ ( (FD >= 0) && (FD < __PSP_FILENO_MAX) && (__psp_descriptormap[FD] != NULL) ) ++ ++ #define __PSP_IS_FD_OF_TYPE(FD, TYPE) \ ++ ( (__PSP_IS_FD_VALID(FD)) && (__psp_descriptormap[FD]->type == TYPE) ) ++ ++ typedef enum { ++ __PSP_DESCRIPTOR_TYPE_FILE , ++ __PSP_DESCRIPTOR_TYPE_PIPE , ++ __PSP_DESCRIPTOR_TYPE_SOCKET, ++ __PSP_DESCRIPTOR_TYPE_TTY ++ } __psp_fdman_fd_types; ++ ++ typedef struct { ++ char * filename; ++ u8 type; ++ u32 sce_descriptor; ++ u32 flags; ++ u32 ref_count; ++ } __psp_descriptormap_type; ++ ++ extern __psp_descriptormap_type *__psp_descriptormap[__PSP_FILENO_MAX]; ++ ++ void __psp_fdman_init(); ++ int __psp_fdman_get_new_descriptor(); ++ int __psp_fdman_get_dup_descriptor(int fd); ++ void __psp_fdman_release_descriptor(int fd); ++ ++#endif +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/include/netdb.h newlib-1.19.0-psp/newlib/libc/sys/psp/include/netdb.h +--- newlib-1.19.0/newlib/libc/sys/psp/include/netdb.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/include/netdb.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,36 @@ ++/* Simple gethostbyname and gethostbyaddr replacements, note not thread safe */ ++#ifndef __NETDB_H__ ++#define __NETDB_H__ ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++#define NETDB_INTERNAL -1 /* see errno */ ++#define NETDB_SUCCESS 0 /* no problem */ ++#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */ ++#define TRY_AGAIN 2 /* Non-Authoritative Host not found, or SERVERFAIL */ ++#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */ ++#define NO_DATA 4 /* Valid name, no data record of requested type */ ++#define NO_ADDRESS NO_DATA /* no address, look for MX record */ ++ ++extern int h_errno; ++ ++struct hostent ++{ ++ char *h_name; ++ char **h_aliases; ++ int h_addrtype; ++ int h_length; ++ char **h_addr_list; ++ char *h_addr; ++}; ++ ++struct hostent *gethostbyaddr(const void *addr, int len, int type); ++struct hostent *gethostbyname(const char *name); ++ ++#ifdef __cplusplus ++} ++#endif ++ ++#endif +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/interrupt.S newlib-1.19.0-psp/newlib/libc/sys/psp/interrupt.S +--- newlib-1.19.0/newlib/libc/sys/psp/interrupt.S 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/interrupt.S 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,66 @@ ++ ++ .set noreorder ++ .set noat ++ ++ .global pspDisableInterrupts ++ .ent pspDisableInterrupts ++ ++pspDisableInterrupts: ++ mfic $v0, $0 ++ mtic $0, $0 ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ jr $ra ++ nop ++ ++ .end pspDisableInterrupts ++ ++ .global pspEnableInterrupts ++ .ent pspEnableInterrupts ++ ++pspEnableInterrupts: ++ mtic $a0, $0 ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ nop ++ jr $ra ++ nop ++ ++ .end pspEnableInterrupts +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/libcglue.c newlib-1.19.0-psp/newlib/libc/sys/psp/libcglue.c +--- newlib-1.19.0/newlib/libc/sys/psp/libcglue.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/libcglue.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,972 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * libcglue.c - Newlib-compatible system calls. ++ * ++ * Copyright (c) 2005 Marcus R. Brown ++ * Copyright (c) 2005 James Forshaw ++ * Copyright (c) 2005 John Kelley ++ * Copyright (c) 2005 Jim Paris ++ * ++ */ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include "fdman.h" ++ ++extern char __psp_cwd[MAXPATHLEN + 1]; ++extern void __psp_init_cwd(char *argv_0); ++extern int __psp_path_absolute(const char *in, char *out, int len); ++extern int pspDisableInterrupts(); ++extern void pspEnableInterrupts(int); ++ ++/* The following functions are defined in socket.c. They have weak linkage so ++ that the user doesn't have to link against the PSP network libraries if they ++ don't use the sockets API. */ ++extern int __psp_socket_close(int s) __attribute__((weak)); ++extern ssize_t __psp_socket_recv(int s, void *buf, size_t len, int flags) __attribute__((weak)); ++extern ssize_t __psp_socket_send(int s, const void *buf, size_t len, int flags) __attribute__((weak)); ++ ++extern int pipe(int fildes[2]); ++extern int __psp_pipe_close(int filedes); ++extern int __psp_pipe_nonblocking_read(int fd, void *buf, size_t len); ++extern int __psp_pipe_read(int fd, void *buf, size_t len); ++extern int __psp_pipe_write(int fd, const void *buf, size_t size); ++extern int __psp_pipe_nonblocking_write(int fd, const void *buf, size_t len); ++ ++int __psp_set_errno(int code); ++ ++#ifdef F___psp_set_errno ++int __psp_set_errno(int code) ++{ ++ if ((code & 0x80010000) == 0x80010000) { ++ errno = code & 0xFFFF; ++ return -1; ++ } ++ return code; ++} ++#endif ++ ++#ifdef F_getcwd ++char *getcwd(char *buf, size_t size) ++{ ++ if(!buf) { ++ errno = EINVAL; ++ return NULL; ++ } ++ ++ if(strlen(__psp_cwd) >= size) { ++ errno = ERANGE; ++ return NULL; ++ } ++ ++ strcpy(buf, __psp_cwd); ++ return buf; ++} ++#endif ++ ++#ifdef F_chdir ++int chdir(const char *path) ++{ ++ char dest[MAXPATHLEN + 1]; ++ SceUID uid; ++ ++ if(__psp_path_absolute(path, dest, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return -1; ++ } ++ ++ /* sceIoChdir doesn't give an indication of whether it worked, ++ so test for existence by attempting to open the dir */ ++ uid = sceIoDopen(dest); ++ if(uid < 0) { ++ errno = ENOTDIR; ++ return -1; ++ } ++ sceIoDclose(uid); ++ ++ sceIoChdir(dest); ++ strcpy(__psp_cwd, dest); ++ return 0; ++} ++#endif ++ ++#ifdef F_mkdir ++int mkdir(const char *pathname, mode_t mode) ++{ ++ char dest[MAXPATHLEN + 1]; ++ ++ if(__psp_path_absolute(pathname, dest, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return -1; ++ } ++ ++ return __psp_set_errno(sceIoMkdir(dest, mode)); ++} ++#endif ++ ++#ifdef F_rmdir ++int rmdir(const char *pathname) ++{ ++ char dest[MAXPATHLEN + 1]; ++ ++ if(__psp_path_absolute(pathname, dest, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return -1; ++ } ++ ++ return __psp_set_errno(sceIoRmdir(dest)); ++} ++#endif ++ ++#ifdef F_realpath ++char *realpath(const char *path, char *resolved_path) ++{ ++ if(!path || !resolved_path) { ++ errno = EINVAL; ++ return NULL; ++ } ++ if(__psp_path_absolute(path, resolved_path, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return NULL; ++ } ++ if(access(resolved_path, F_OK) < 0) { ++ errno = ENOENT; ++ return NULL; ++ } ++ return resolved_path; ++} ++#endif ++ ++/* Wrappers of the standard open(), close(), read(), write(), unlink() and lseek() routines. */ ++#ifdef F__open ++int _open(const char *name, int flags, int mode) ++{ ++ int scefd, fd; ++ int sce_flags; ++ char dest[MAXPATHLEN + 1]; ++ ++ if(__psp_path_absolute(name, dest, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return -1; ++ } ++ ++ /* O_RDONLY starts at 0, where PSP_O_RDONLY starts at 1, so remap the read/write ++ flags by adding 1. */ ++ sce_flags = (flags & O_ACCMODE) + 1; ++ ++ /* Translate standard open flags into the flags understood by the PSP kernel. */ ++ if (flags & O_APPEND) { ++ sce_flags |= PSP_O_APPEND; ++ } ++ if (flags & O_CREAT) { ++ sce_flags |= PSP_O_CREAT; ++ } ++ if (flags & O_TRUNC) { ++ sce_flags |= PSP_O_TRUNC; ++ } ++ if (flags & O_EXCL) { ++ sce_flags |= PSP_O_EXCL; ++ } ++ if (flags & O_NONBLOCK) { ++ sce_flags |= PSP_O_NBLOCK; ++ } ++ ++ scefd = sceIoOpen(dest, sce_flags, mode); ++ if (scefd >= 0) { ++ fd = __psp_fdman_get_new_descriptor(); ++ if (fd != -1) { ++ __psp_descriptormap[fd]->sce_descriptor = scefd; ++ __psp_descriptormap[fd]->type = __PSP_DESCRIPTOR_TYPE_FILE; ++ __psp_descriptormap[fd]->flags = flags; ++ __psp_descriptormap[fd]->filename = strdup(dest); ++ return fd; ++ } ++ else { ++ sceIoClose(scefd); ++ errno = ENOMEM; ++ return -1; ++ } ++ } ++ else { ++ return __psp_set_errno(scefd); ++ } ++ ++} ++#endif ++ ++#ifdef F__close ++int _close(int fd) ++{ ++ int ret = 0; ++ ++ if (!__PSP_IS_FD_VALID(fd)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ switch(__psp_descriptormap[fd]->type) ++ { ++ case __PSP_DESCRIPTOR_TYPE_FILE: ++ case __PSP_DESCRIPTOR_TYPE_TTY: ++ if (__psp_descriptormap[fd]->ref_count == 1) { ++ ret = __psp_set_errno(sceIoClose(__psp_descriptormap[fd]->sce_descriptor)); ++ } ++ __psp_fdman_release_descriptor(fd); ++ return ret; ++ break; ++ case __PSP_DESCRIPTOR_TYPE_PIPE: ++ return __psp_pipe_close(fd); ++ break; ++ case __PSP_DESCRIPTOR_TYPE_SOCKET: ++ if (__psp_socket_close != NULL) { ++ ret = __psp_socket_close(fd); ++ return ret; ++ } ++ break; ++ default: ++ break; ++ } ++ ++ errno = EBADF; ++ return -1; ++} ++#endif ++ ++#ifdef F__read ++int _read(int fd, void *buf, size_t size) ++{ ++ if (!__PSP_IS_FD_VALID(fd)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ switch(__psp_descriptormap[fd]->type) ++ { ++ case __PSP_DESCRIPTOR_TYPE_FILE: ++ case __PSP_DESCRIPTOR_TYPE_TTY: ++ return __psp_set_errno(sceIoRead(__psp_descriptormap[fd]->sce_descriptor, buf, size)); ++ break; ++ case __PSP_DESCRIPTOR_TYPE_PIPE: ++ if (__psp_descriptormap[fd]->flags & O_NONBLOCK) { ++ return __psp_pipe_nonblocking_read(fd, buf, size); ++ } ++ else { ++ return __psp_pipe_read(fd, buf, size); ++ } ++ break; ++ case __PSP_DESCRIPTOR_TYPE_SOCKET: ++ if (__psp_socket_recv != NULL) { ++ return __psp_socket_recv(fd, buf, size, 0); ++ } ++ break; ++ default: ++ break; ++ } ++ ++ errno = EBADF; ++ return -1; ++ ++} ++#endif ++ ++#ifdef F__write ++int _write(int fd, const void *buf, size_t size) ++{ ++ if (!__PSP_IS_FD_VALID(fd)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ switch(__psp_descriptormap[fd]->type) ++ { ++ case __PSP_DESCRIPTOR_TYPE_FILE: ++ case __PSP_DESCRIPTOR_TYPE_TTY: ++ return __psp_set_errno(sceIoWrite(__psp_descriptormap[fd]->sce_descriptor, buf, size)); ++ break; ++ case __PSP_DESCRIPTOR_TYPE_PIPE: ++ if (__psp_descriptormap[fd]->flags & O_NONBLOCK) { ++ return __psp_pipe_nonblocking_write(fd, buf, size); ++ } ++ else { ++ return __psp_pipe_write(fd, buf, size); ++ } ++ break; ++ break; ++ case __PSP_DESCRIPTOR_TYPE_SOCKET: ++ if (__psp_socket_send != NULL) { ++ return __psp_socket_send(fd, buf, size, 0); ++ } ++ break; ++ default: ++ break; ++ } ++ ++ errno = EBADF; ++ return -1; ++} ++#endif ++ ++#ifdef F__lseek ++off_t _lseek(int fd, off_t offset, int whence) ++{ ++ if (!__PSP_IS_FD_VALID(fd)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ switch(__psp_descriptormap[fd]->type) ++ { ++ case __PSP_DESCRIPTOR_TYPE_FILE: ++ /* We don't have to do anything with the whence argument because SEEK_* == PSP_SEEK_*. */ ++ return (off_t) __psp_set_errno(sceIoLseek(__psp_descriptormap[fd]->sce_descriptor, offset, whence)); ++ break; ++ case __PSP_DESCRIPTOR_TYPE_PIPE: ++ break; ++ case __PSP_DESCRIPTOR_TYPE_SOCKET: ++ break; ++ default: ++ break; ++ } ++ ++ errno = EBADF; ++ return -1; ++ ++} ++#endif ++ ++#ifdef F__unlink ++int _unlink(const char *path) ++{ ++ char dest[MAXPATHLEN + 1]; ++ ++ if(__psp_path_absolute(path, dest, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return -1; ++ } ++ ++ return __psp_set_errno(sceIoRemove(dest)); ++} ++#endif ++ ++#ifdef F__link ++int _link(const char *name1, const char *name2) ++{ ++ errno = ENOSYS; ++ return -1; /* not supported */ ++} ++#endif ++ ++#ifdef F_opendir ++DIR *opendir(const char *filename) ++{ ++ char dest[MAXPATHLEN + 1]; ++ DIR *dirp; ++ SceUID uid; ++ ++ /* Normalize pathname so that opendir(".") works */ ++ if(__psp_path_absolute(filename, dest, MAXPATHLEN) < 0) { ++ errno = ENOENT; ++ return NULL; ++ } ++ ++ dirp = (DIR *)malloc(sizeof(DIR)); ++ ++ uid = sceIoDopen(dest); ++ ++ if (uid < 0) ++ { ++ free(dirp); ++ (void) __psp_set_errno(uid); ++ return NULL; ++ } ++ ++ dirp->uid = uid; ++ ++ return dirp; ++} ++#endif ++ ++#ifdef F_readdir ++struct dirent *readdir(DIR *dirp) ++{ ++ int ret; ++ ++ /* Zero the dirent, to avoid possible problems with sceIoDread */ ++ memset(&dirp->de, 0, sizeof(struct dirent)); ++ ++ ret = sceIoDread(dirp->uid, (SceIoDirent *)&dirp->de); ++ if (ret == 0) { ++ /* EOF */ ++ errno = 0; ++ return NULL; ++ } ++ if (ret < 0) { ++ (void) __psp_set_errno(ret); ++ return NULL; ++ } ++ ++ return &dirp->de; ++} ++#endif ++ ++#ifdef F_closedir ++int closedir(DIR *dirp) ++{ ++ if (dirp != NULL) ++ { ++ int uid; ++ uid = dirp->uid; ++ free (dirp); ++ return __psp_set_errno(sceIoDclose(uid)); ++ } ++ errno = EBADF; ++ return -1; ++} ++#endif ++ ++/* Time routines. These wrap around the routines provided by the kernel. */ ++#ifdef F__gettimeofday ++int _gettimeofday(struct timeval *tp, struct timezone *tzp) ++{ ++ int ret; ++ time_t t; ++ struct timeval tv1, tv2; ++ ++ /* The kernel sceKernelLibcGettimeofday only returns time ++ since midnight. To get a proper timeval return value, we ++ get seconds using sceKernelLibcTime and microseconds using ++ sceKernelLibcGettimeofday. Since we are reading the time ++ with two different function calls, we need to be careful ++ to avoid glitches when the time changes between calls. */ ++ ++ retry: ++ /* Get seconds and microseconds since midnight */ ++ ret = __psp_set_errno(sceKernelLibcGettimeofday(&tv1, tzp)); ++ if (ret < 0) ++ return ret; ++ ++ /* Get seconds since epoch */ ++ ret = __psp_set_errno(sceKernelLibcTime(&t)); ++ if (ret < 0) ++ return ret; ++ ++ /* Get seconds and microseconds since midnight, again */ ++ ret = __psp_set_errno(sceKernelLibcGettimeofday(&tv2, tzp)); ++ if (ret < 0) ++ return ret; ++ ++ /* Retry if microseconds wrapped around */ ++ if (tv2.tv_usec < tv1.tv_usec) ++ goto retry; ++ ++ /* Return the actual time since epoch */ ++ tp->tv_sec = t; ++ tp->tv_usec = tv2.tv_usec; ++ ++ return 0; ++} ++ ++#endif ++ ++#if defined(F_clock) ++clock_t clock(void) ++{ ++ return sceKernelLibcClock(); ++} ++#endif ++ ++#if defined(F_time) ++time_t time(time_t *t) ++{ ++ return __psp_set_errno(sceKernelLibcTime(t)); ++} ++#endif ++ ++#if defined(F_sleep) ++unsigned int sleep(unsigned int secs) { ++ while(secs--) { ++ sceKernelDelayThreadCB(1000000); ++ } ++ return 0; ++} ++#endif ++ ++/* PSP-compatible sbrk(). */ ++#if defined(F__sbrk) || defined(F_glue__sbrk) ++ ++#define DEFAULT_PRX_HEAP_SIZE_KB 64 ++ ++/* If defined it specifies the desired size of the heap, in KB. */ ++extern int sce_newlib_heap_kb_size __attribute__((weak)); ++extern int __pspsdk_is_prx __attribute__((weak)); ++ ++/* UID of the memory block that represents the heap. */ ++static SceUID __psp_heap_blockid; ++ ++void * _sbrk(ptrdiff_t incr) ++{ ++ static void * heap_bottom = NULL; ++ static void * heap_top = NULL; ++ static void * heap_ptr = NULL; ++ ++ /* Has our heap been initialized? */ ++ if (heap_bottom == NULL) { ++ /* No, initialize the heap. */ ++ SceSize heap_size = (SceSize) -1; ++ ++ if (&sce_newlib_heap_kb_size != NULL) { ++ heap_size = sce_newlib_heap_kb_size; ++ } else if(&__pspsdk_is_prx != NULL) { ++ heap_size = DEFAULT_PRX_HEAP_SIZE_KB; ++ } ++ ++ heap_size *= 1024; ++ if ((int)heap_size < 0) { ++ heap_size += sceKernelMaxFreeMemSize(); ++ } ++ ++ if (heap_size != 0) { ++ __psp_heap_blockid = sceKernelAllocPartitionMemory(2, "block", PSP_SMEM_Low, heap_size, NULL); ++ if (__psp_heap_blockid > 0) { ++ heap_bottom = sceKernelGetBlockHeadAddr(__psp_heap_blockid); ++ heap_ptr = heap_bottom; ++ heap_top = (unsigned char *) heap_bottom + heap_size; ++ } ++ } ++ } ++ ++ void * heap_addr = (void *) -1; ++ void * next_heap_ptr = (void *) ((ptrdiff_t) heap_ptr + incr); ++ if ((heap_bottom != NULL) && (next_heap_ptr >= heap_bottom) && (next_heap_ptr < heap_top)) { ++ heap_addr = heap_ptr; ++ heap_ptr = next_heap_ptr; ++ } ++ ++ return heap_addr; ++} ++ ++/* Free the heap. */ ++int __psp_free_heap(void) ++{ ++ if (__psp_heap_blockid > 0) { ++ return sceKernelFreePartitionMemory(__psp_heap_blockid); ++ } ++ ++ return __psp_heap_blockid; ++} ++#endif ++ ++/* Other POSIX routines that must be defined. */ ++#ifdef F__fstat ++int _fstat(int fd, struct stat *sbuf) ++{ ++ int ret; ++ SceOff oldpos; ++ if (!__PSP_IS_FD_VALID(fd)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ switch(__psp_descriptormap[fd]->type) ++ { ++ case __PSP_DESCRIPTOR_TYPE_TTY: ++ memset(sbuf, '\0', sizeof(struct stat)); ++ sbuf->st_mode = S_IFCHR; ++ return 0; ++ break; ++ case __PSP_DESCRIPTOR_TYPE_FILE: ++ if (__psp_descriptormap[fd]->filename != NULL) { ++ ret = stat(__psp_descriptormap[fd]->filename, sbuf); ++ ++ /* Find true size of the open file */ ++ oldpos = sceIoLseek(__psp_descriptormap[fd]->sce_descriptor, 0, SEEK_CUR); ++ if (oldpos != (off_t) -1) { ++ sbuf->st_size = (off_t) sceIoLseek(__psp_descriptormap[fd]->sce_descriptor, 0, SEEK_END); ++ sceIoLseek(__psp_descriptormap[fd]->sce_descriptor, oldpos, SEEK_SET); ++ } ++ return ret; ++ } ++ break; ++ case __PSP_DESCRIPTOR_TYPE_PIPE: ++ case __PSP_DESCRIPTOR_TYPE_SOCKET: ++ default: ++ break; ++ } ++ ++ errno = EBADF; ++ return -1; ++} ++#endif ++ ++#ifdef F_isatty ++int isatty(int fd) ++{ ++ if (!__PSP_IS_FD_VALID(fd)) { ++ errno = EBADF; ++ return 0; ++ } ++ ++ if (__psp_descriptormap[fd]->type == __PSP_DESCRIPTOR_TYPE_TTY) { ++ return 1; ++ } ++ else { ++ return 0; ++ } ++} ++ ++int _isatty_r (struct _reent *ptr, int fd) ++{ ++ int ret; ++ ++ errno = 0; ++ if ((ret = isatty (fd)) == -1 && errno != 0) ++ ptr->_errno = errno; ++ return ret; ++} ++#endif ++ ++#ifdef F__stat ++static time_t psp_to_epoch_time(ScePspDateTime psp_time) ++{ ++ struct tm conv_time; ++ conv_time.tm_year = psp_time.year; ++ conv_time.tm_mon = psp_time.month; ++ conv_time.tm_mday = psp_time.day; ++ conv_time.tm_hour = psp_time.hour; ++ conv_time.tm_min = psp_time.minute; ++ conv_time.tm_sec = psp_time.second; ++ conv_time.tm_isdst = -1; ++ return mktime(&conv_time); ++} ++ ++int _stat(const char *filename, struct stat *buf) ++{ ++ SceIoStat psp_stat; ++ char dest[MAXPATHLEN + 1]; ++ int ret; ++ ++ if(__psp_path_absolute(filename, dest, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return -1; ++ } ++ ++ memset(buf, '\0', sizeof(struct stat)); ++ ret = sceIoGetstat(dest, &psp_stat); ++ if (ret < 0) { ++ return __psp_set_errno(ret); ++ } ++ ++ buf->st_ctime = psp_to_epoch_time(psp_stat.st_ctime); ++ buf->st_atime = psp_to_epoch_time(psp_stat.st_atime); ++ buf->st_mtime = psp_to_epoch_time(psp_stat.st_mtime); ++ ++ buf->st_mode = (psp_stat.st_mode & 0xfff) | ++ ((FIO_S_ISLNK(psp_stat.st_mode))?(S_IFLNK):(0)) | ++ ((FIO_S_ISREG(psp_stat.st_mode))?(S_IFREG):(0)) | ++ ((FIO_S_ISDIR(psp_stat.st_mode))?(S_IFDIR):(0)); ++ buf->st_size = psp_stat.st_size; ++ return 0; ++} ++#endif ++ ++/* from stat.h in ps2sdk, this function may be correct */ ++#define FIO_CST_SIZE 0x0004 ++ ++#ifdef F_truncate ++int truncate(const char *filename, off_t length) ++{ ++ SceIoStat psp_stat; ++ char dest[MAXPATHLEN + 1]; ++ ++ if(__psp_path_absolute(filename, dest, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return -1; ++ } ++ ++ psp_stat.st_size = length; ++ if(length < 0) ++ { ++ errno = EINVAL; ++ return -1; ++ } ++ return __psp_set_errno(sceIoChstat(dest, &psp_stat, FIO_CST_SIZE)); ++} ++#endif ++ ++/* Unsupported newlib system calls. */ ++#ifdef F__fork ++pid_t fork(void) ++{ ++ errno = ENOSYS; ++ return (pid_t) -1; ++} ++#endif ++ ++#ifdef F__getpid ++pid_t _getpid(void) ++{ ++ errno = ENOSYS; ++ return (pid_t) -1; ++} ++#endif ++ ++#ifdef F__kill ++int _kill(int unused, int unused2) ++{ ++ errno = ENOSYS; ++ return -1; ++} ++#endif ++ ++#ifdef F__wait ++pid_t _wait(int *unused) ++{ ++ errno = ENOSYS; ++ return (pid_t) -1; ++} ++#endif ++ ++#ifdef F_access ++int access(const char *fn, int flags) ++{ ++ struct stat s; ++ if (stat(fn, &s)) ++ return -1; ++ if (s.st_mode & S_IFDIR) ++ return 0; ++ if (flags & W_OK) ++ { ++ if (s.st_mode & S_IWRITE) ++ return 0; ++ errno = EACCES; ++ return -1; ++ } ++ return 0; ++} ++#endif ++ ++#ifdef F__fcntl ++int _fcntl(int fd, int cmd, ...) ++{ ++ if (!__PSP_IS_FD_VALID(fd)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ switch (cmd) ++ { ++ case F_DUPFD: ++ { ++ return __psp_fdman_get_dup_descriptor(fd); ++ break; ++ } ++ case F_GETFL: ++ { ++ return __psp_descriptormap[fd]->flags; ++ break; ++ } ++ case F_SETFL: ++ { ++ int newfl; ++ va_list args; ++ ++ va_start (args, cmd); /* Initialize the argument list. */ ++ newfl = va_arg(args, int); ++ va_end (args); /* Clean up. */ ++ ++ __psp_descriptormap[fd]->flags = newfl; ++ ++ switch(__psp_descriptormap[fd]->type) ++ { ++ case __PSP_DESCRIPTOR_TYPE_FILE: ++ break; ++ case __PSP_DESCRIPTOR_TYPE_PIPE: ++ break; ++ case __PSP_DESCRIPTOR_TYPE_SOCKET: ++ if (newfl & O_NONBLOCK) ++ { ++ int one = 1; ++ return setsockopt(fd, SOL_SOCKET, SO_NONBLOCK, (char *)&one, sizeof(one)); ++ } ++ else ++ { ++ int zero = 0; ++ return setsockopt(fd, SOL_SOCKET, SO_NONBLOCK, (char *)&zero, sizeof(zero)); ++ } ++ break; ++ default: ++ break; ++ } ++ return 0; ++ break; ++ } ++ } ++ ++ errno = EBADF; ++ return -1; ++} ++#endif /* F__fcntl */ ++ ++#ifdef F_tzset ++void tzset(void) ++{ ++ static int initialized = 0; ++ ++ if (!initialized) ++ { ++ initialized = 1; ++ ++ /* Don't init if TZ has already been set once, this probably means the user ++ wanted to override what we would set below. */ ++ if (getenv("TZ") == NULL) ++ { ++ /* Initialize timezone from PSP configuration */ ++ int tzOffset = 0; ++ sceUtilityGetSystemParamInt(PSP_SYSTEMPARAM_ID_INT_TIMEZONE, &tzOffset); ++ int tzOffsetAbs = tzOffset < 0 ? -tzOffset : tzOffset; ++ int hours = tzOffsetAbs / 60; ++ int minutes = tzOffsetAbs - hours * 60; ++ int pspDaylight = 0; ++ sceUtilityGetSystemParamInt(PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS, &pspDaylight); ++ static char tz[18]; ++ sprintf(tz, "GMT%s%02i:%02i%s", tzOffset < 0 ? "+" : "-", hours, minutes, pspDaylight ? "daylight" : ""); ++ setenv("TZ", tz, 1); ++ } ++ } ++ ++ _tzset_r(_REENT); ++} ++#endif ++ ++#ifdef F_mlock ++static unsigned int lock_count = 0; ++static unsigned int intr_flags = 0; ++ ++void __malloc_lock(struct _reent *ptr) ++{ ++ unsigned int flags = pspDisableInterrupts(); ++ ++ if (lock_count == 0) { ++ intr_flags = flags; ++ } ++ ++ lock_count++; ++} ++ ++void __malloc_unlock(struct _reent *ptr) ++{ ++ if (--lock_count == 0) { ++ pspEnableInterrupts(intr_flags); ++ } ++} ++#endif ++ ++/* Exit. */ ++#if defined(F__exit) || defined(F_glue__exit) ++extern int sce_newlib_nocreate_thread_in_start __attribute__((weak)); ++ ++extern int __psp_free_heap(void); ++ ++void _exit(int status) ++{ ++ if (&sce_newlib_nocreate_thread_in_start == NULL) { ++ /* Free the heap created by _sbrk(). */ ++ __psp_free_heap(); ++ ++ sceKernelSelfStopUnloadModule(1, 0, NULL); ++ } else { ++ if (status == 0) { ++ /* Free the heap created by _sbrk(). */ ++ __psp_free_heap(); ++ } ++ ++ sceKernelExitThread(status); ++ } ++ ++ while (1) ; ++} ++ ++/* Note: This function is being linked into _exit.o. ++ ++ Because __psp_libc_init is a weak import in crt0.c, the linker ++ chooses to ignore an object file in libc.a that contains just this ++ function, since it's not necessary for successful compilation. ++ ++ By putting it instead in _exit.o, which is already used by crt0.c, ++ the linker sees __psp_libc_init and resolves the symbol properly. ++*/ ++void __psp_libc_init(int argc, char *argv[]) ++{ ++ (void) argc; ++ ++ /* Initialize cwd from this program's path */ ++ __psp_init_cwd(argv[0]); ++ ++ /* Initialize filedescriptor management */ ++ __psp_fdman_init(); ++} ++ ++#endif /* F__exit */ ++ ++#ifdef F__rename ++int _rename(const char *old, const char *new) ++{ ++ char oldname[MAXPATHLEN + 1]; ++ char newname[MAXPATHLEN + 1]; ++ ++ if(__psp_path_absolute(old, oldname, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return -1; ++ } ++ ++ if(__psp_path_absolute(new, newname, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return -1; ++ } ++ ++ return __psp_set_errno(sceIoRename(oldname, newname)); ++} ++#endif ++ ++#ifdef F_nanosleep ++/* note: we don't use rem as we have no signals */ ++int nanosleep(const struct timespec *req, struct timespec *rem) ++{ ++ if( req == NULL ) ++ return EFAULT; ++ ++ if( rem != NULL ) { ++ rem->tv_sec = 0; ++ rem->tv_nsec = 0; ++ } ++ ++ sceKernelDelayThreadCB( 1000000 * req->tv_sec + (req->tv_nsec / 1000) ); ++ ++ return 0; ++} ++#endif ++ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/netdb.c newlib-1.19.0-psp/newlib/libc/sys/psp/netdb.c +--- newlib-1.19.0/newlib/libc/sys/psp/netdb.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/netdb.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,103 @@ ++/* Simple gethostbyname and gethostbyaddr replacements using the resolver lib */ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++#define MAX_NAME 512 ++ ++#ifdef F_h_errno ++int h_errno = NETDB_SUCCESS; ++#endif ++ ++#ifdef F_gethostbyaddr ++struct hostent *gethostbyaddr(const void *addr, int len, int type) ++{ ++ static struct hostent ent; ++ static char * aliases[1] = { NULL }; ++ char buf[1024]; ++ static char sname[MAX_NAME] = ""; ++ static struct in_addr saddr = { 0 }; ++ static char *addrlist[2] = { (char *) &saddr, NULL }; ++ int rid; ++ int err; ++ ++ if((len != sizeof(struct in_addr)) || (type != AF_INET) || (addr == NULL)) ++ { ++ h_errno = HOST_NOT_FOUND; ++ return NULL; ++ } ++ ++ memcpy(&saddr, addr, len); ++ ++ if(sceNetResolverCreate(&rid, buf, sizeof(buf)) < 0) ++ { ++ h_errno = NO_RECOVERY; ++ return NULL; ++ } ++ ++ err = sceNetResolverStartAtoN(rid, &saddr, sname, sizeof(sname), 2, 3); ++ sceNetResolverStop(rid); ++ sceNetResolverDelete(rid); ++ if(err < 0) ++ { ++ h_errno = HOST_NOT_FOUND; ++ return NULL; ++ } ++ ++ ent.h_name = sname; ++ ent.h_aliases = aliases; ++ ent.h_addrtype = AF_INET; ++ ent.h_length = sizeof(struct in_addr); ++ ent.h_addr_list = addrlist; ++ ent.h_addr = (char *) &saddr; ++ ++ return &ent; ++} ++#endif ++ ++#ifdef F_gethostbyname ++struct hostent *gethostbyname(const char *name) ++{ ++ static struct hostent ent; ++ char buf[1024]; ++ static char sname[MAX_NAME] = ""; ++ static struct in_addr saddr = { 0 }; ++ static char *addrlist[2] = { (char *) &saddr, NULL }; ++ int rid; ++ ++ if(sceNetInetInetAton(name, &saddr) == 0) ++ { ++ int err; ++ ++ if(sceNetResolverCreate(&rid, buf, sizeof(buf)) < 0) ++ { ++ h_errno = NO_RECOVERY; ++ return NULL; ++ } ++ ++ err = sceNetResolverStartNtoA(rid, name, &saddr, 2, 3); ++ sceNetResolverDelete(rid); ++ if(err < 0) ++ { ++ h_errno = HOST_NOT_FOUND; ++ return NULL; ++ } ++ ++ } ++ ++ snprintf(sname, MAX_NAME, "%s", name); ++ ent.h_name = sname; ++ ent.h_aliases = 0; ++ ent.h_addrtype = AF_INET; ++ ent.h_length = sizeof(struct in_addr); ++ ent.h_addr_list = addrlist; ++ ent.h_addr = (char *) &saddr; ++ ++ return &ent; ++} ++ ++#endif +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/netinet/in.h newlib-1.19.0-psp/newlib/libc/sys/psp/netinet/in.h +--- newlib-1.19.0/newlib/libc/sys/psp/netinet/in.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/netinet/in.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,271 @@ ++/* $NetBSD: in.h,v 1.71 2005/08/05 09:21:25 elad Exp $ */ ++ ++/* ++ * Copyright (c) 1982, 1986, 1990, 1993 ++ * The Regents of the University of California. All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * 3. Neither the name of the University nor the names of its contributors ++ * may be used to endorse or promote products derived from this software ++ * without specific prior written permission. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * @(#)in.h 8.3 (Berkeley) 1/3/94 ++ */ ++ ++/* ++ * Constants and structures defined by the internet system, ++ * Per RFC 790, September 1981, and numerous additions. ++ */ ++ ++#ifndef _NETINET_IN_H_ ++#define _NETINET_IN_H_ ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++#include ++ ++typedef uint32_t in_addr_t; ++typedef uint16_t in_port_t; ++ ++/* ++ * Protocols ++ */ ++#define IPPROTO_IP 0 /* dummy for IP */ ++#define IPPROTO_HOPOPTS 0 /* IP6 hop-by-hop options */ ++#define IPPROTO_ICMP 1 /* control message protocol */ ++#define IPPROTO_IGMP 2 /* group mgmt protocol */ ++#define IPPROTO_GGP 3 /* gateway^2 (deprecated) */ ++#define IPPROTO_IPV4 4 /* IP header */ ++#define IPPROTO_IPIP 4 /* IP inside IP */ ++#define IPPROTO_TCP 6 /* tcp */ ++#define IPPROTO_EGP 8 /* exterior gateway protocol */ ++#define IPPROTO_PUP 12 /* pup */ ++#define IPPROTO_UDP 17 /* user datagram protocol */ ++#define IPPROTO_IDP 22 /* xns idp */ ++#define IPPROTO_TP 29 /* tp-4 w/ class negotiation */ ++#define IPPROTO_IPV6 41 /* IP6 header */ ++#define IPPROTO_ROUTING 43 /* IP6 routing header */ ++#define IPPROTO_FRAGMENT 44 /* IP6 fragmentation header */ ++#define IPPROTO_RSVP 46 /* resource reservation */ ++#define IPPROTO_GRE 47 /* GRE encaps RFC 1701 */ ++#define IPPROTO_ESP 50 /* encap. security payload */ ++#define IPPROTO_AH 51 /* authentication header */ ++#define IPPROTO_MOBILE 55 /* IP Mobility RFC 2004 */ ++#define IPPROTO_IPV6_ICMP 58 /* IPv6 ICMP */ ++#define IPPROTO_ICMPV6 58 /* ICMP6 */ ++#define IPPROTO_NONE 59 /* IP6 no next header */ ++#define IPPROTO_DSTOPTS 60 /* IP6 destination option */ ++#define IPPROTO_EON 80 /* ISO cnlp */ ++#define IPPROTO_ETHERIP 97 /* Ethernet-in-IP */ ++#define IPPROTO_ENCAP 98 /* encapsulation header */ ++#define IPPROTO_PIM 103 /* Protocol indep. multicast */ ++#define IPPROTO_IPCOMP 108 /* IP Payload Comp. Protocol */ ++#define IPPROTO_VRRP 112 /* VRRP RFC 2338 */ ++ ++#define IPPROTO_RAW 255 /* raw IP packet */ ++#define IPPROTO_MAX 256 ++ ++/* last return value of *_input(), meaning "all job for this pkt is done". */ ++#define IPPROTO_DONE 257 ++ ++/* sysctl placeholder for (FAST_)IPSEC */ ++#define CTL_IPPROTO_IPSEC 258 ++ ++ ++/* ++ * Local port number conventions: ++ * ++ * Ports < IPPORT_RESERVED are reserved for privileged processes (e.g. root), ++ * unless a kernel is compiled with IPNOPRIVPORTS defined. ++ * ++ * When a user does a bind(2) or connect(2) with a port number of zero, ++ * a non-conflicting local port address is chosen. ++ * ++ * The default range is IPPORT_ANONMIN to IPPORT_ANONMAX, although ++ * that is settable by sysctl(3); net.inet.ip.anonportmin and ++ * net.inet.ip.anonportmax respectively. ++ * ++ * A user may set the IPPROTO_IP option IP_PORTRANGE to change this ++ * default assignment range. ++ * ++ * The value IP_PORTRANGE_DEFAULT causes the default behavior. ++ * ++ * The value IP_PORTRANGE_HIGH is the same as IP_PORTRANGE_DEFAULT, ++ * and exists only for FreeBSD compatibility purposes. ++ * ++ * The value IP_PORTRANGE_LOW changes the range to the "low" are ++ * that is (by convention) restricted to privileged processes. ++ * This convention is based on "vouchsafe" principles only. ++ * It is only secure if you trust the remote host to restrict these ports. ++ * The range is IPPORT_RESERVEDMIN to IPPORT_RESERVEDMAX. ++ */ ++ ++#define IPPORT_RESERVED 1024 ++#define IPPORT_ANONMIN 49152 ++#define IPPORT_ANONMAX 65535 ++#define IPPORT_RESERVEDMIN 600 ++#define IPPORT_RESERVEDMAX (IPPORT_RESERVED-1) ++ ++/* ++ * Internet address (a structure for historical reasons) ++ */ ++struct in_addr { ++ in_addr_t s_addr; ++} __attribute__((__packed__)); ++ ++#define __IPADDR(x) ((uint32_t)(x)) ++ ++#define IN_CLASSA(i) (((uint32_t)(i) & __IPADDR(0x80000000)) == \ ++ __IPADDR(0x00000000)) ++#define IN_CLASSA_NET __IPADDR(0xff000000) ++#define IN_CLASSA_NSHIFT 24 ++#define IN_CLASSA_HOST __IPADDR(0x00ffffff) ++#define IN_CLASSA_MAX 128 ++ ++#define IN_CLASSB(i) (((uint32_t)(i) & __IPADDR(0xc0000000)) == \ ++ __IPADDR(0x80000000)) ++#define IN_CLASSB_NET __IPADDR(0xffff0000) ++#define IN_CLASSB_NSHIFT 16 ++#define IN_CLASSB_HOST __IPADDR(0x0000ffff) ++#define IN_CLASSB_MAX 65536 ++ ++#define IN_CLASSC(i) (((uint32_t)(i) & __IPADDR(0xe0000000)) == \ ++ __IPADDR(0xc0000000)) ++#define IN_CLASSC_NET __IPADDR(0xffffff00) ++#define IN_CLASSC_NSHIFT 8 ++#define IN_CLASSC_HOST __IPADDR(0x000000ff) ++ ++#define IN_CLASSD(i) (((uint32_t)(i) & __IPADDR(0xf0000000)) == \ ++ __IPADDR(0xe0000000)) ++/* These ones aren't really net and host fields, but routing needn't know. */ ++#define IN_CLASSD_NET __IPADDR(0xf0000000) ++#define IN_CLASSD_NSHIFT 28 ++#define IN_CLASSD_HOST __IPADDR(0x0fffffff) ++#define IN_MULTICAST(i) IN_CLASSD(i) ++ ++#define IN_EXPERIMENTAL(i) (((uint32_t)(i) & __IPADDR(0xf0000000)) == \ ++ __IPADDR(0xf0000000)) ++#define IN_BADCLASS(i) (((uint32_t)(i) & __IPADDR(0xf0000000)) == \ ++ __IPADDR(0xf0000000)) ++ ++#define IN_LOCAL_GROUP(i) (((uint32_t)(i) & __IPADDR(0xffffff00)) == \ ++ __IPADDR(0xe0000000)) ++ ++#define INADDR_ANY __IPADDR(0x00000000) ++#define INADDR_LOOPBACK __IPADDR(0x7f000001) ++#define INADDR_BROADCAST __IPADDR(0xffffffff) /* must be masked */ ++ ++#define INADDR_UNSPEC_GROUP __IPADDR(0xe0000000) /* 224.0.0.0 */ ++#define INADDR_ALLHOSTS_GROUP __IPADDR(0xe0000001) /* 224.0.0.1 */ ++#define INADDR_ALLRTRS_GROUP __IPADDR(0xe0000002) /* 224.0.0.2 */ ++#define INADDR_MAX_LOCAL_GROUP __IPADDR(0xe00000ff) /* 224.0.0.255 */ ++ ++#define IN_LOOPBACKNET 127 /* official! */ ++ ++/* ++ * Socket address, internet style. ++ */ ++struct sockaddr_in { ++ uint8_t sin_len; ++ sa_family_t sin_family; ++ in_port_t sin_port; ++ struct in_addr sin_addr; ++ int8_t sin_zero[8]; ++}; ++ ++#define INET_ADDRSTRLEN 16 ++ ++/* ++ * Structure used to describe IP options. ++ * Used to store options internally, to pass them to a process, ++ * or to restore options retrieved earlier. ++ * The ip_dst is used for the first-hop gateway when using a source route ++ * (this gets put into the header proper). ++ */ ++struct ip_opts { ++ struct in_addr ip_dst; /* first hop, 0 w/o src rt */ ++#if defined(__cplusplus) ++ int8_t Ip_opts[40]; /* actually variable in size */ ++#else ++ int8_t ip_opts[40]; /* actually variable in size */ ++#endif ++}; ++ ++/* ++ * Options for use with [gs]etsockopt at the IP level. ++ * First word of comment is data type; bool is stored in int. ++ */ ++#define IP_OPTIONS 1 /* buf/ip_opts; set/get IP options */ ++#define IP_HDRINCL 2 /* int; header is included with data */ ++#define IP_TOS 3 /* int; IP type of service and preced. */ ++#define IP_TTL 4 /* int; IP time to live */ ++#define IP_RECVOPTS 5 /* bool; receive all IP opts w/dgram */ ++#define IP_RECVRETOPTS 6 /* bool; receive IP opts for response */ ++#define IP_RECVDSTADDR 7 /* bool; receive IP dst addr w/dgram */ ++#define IP_RETOPTS 8 /* ip_opts; set/get IP options */ ++#define IP_MULTICAST_IF 9 /* in_addr; set/get IP multicast i/f */ ++#define IP_MULTICAST_TTL 10 /* u_char; set/get IP multicast ttl */ ++#define IP_MULTICAST_LOOP 11 /* u_char; set/get IP multicast loopback */ ++#define IP_ADD_MEMBERSHIP 12 /* ip_mreq; add an IP group membership */ ++#define IP_DROP_MEMBERSHIP 13 /* ip_mreq; drop an IP group membership */ ++#define IP_PORTRANGE 19 /* int; range to use for ephemeral port */ ++#define IP_RECVIF 20 /* bool; receive reception if w/dgram */ ++#define IP_ERRORMTU 21 /* int; get MTU of last xmit = EMSGSIZE */ ++#if 1 /*IPSEC*/ ++#define IP_IPSEC_POLICY 22 /* struct; get/set security policy */ ++#endif ++ ++/* ++ * Defaults and limits for options ++ */ ++#define IP_DEFAULT_MULTICAST_TTL 1 /* normally limit m'casts to 1 hop */ ++#define IP_DEFAULT_MULTICAST_LOOP 1 /* normally hear sends if a member */ ++#define IP_MAX_MEMBERSHIPS 20 /* per socket; must fit in one mbuf */ ++ ++/* ++ * Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP. ++ */ ++struct ip_mreq { ++ struct in_addr imr_multiaddr; /* IP multicast address of group */ ++ struct in_addr imr_interface; /* local IP address of interface */ ++}; ++ ++/* ++ * Argument for IP_PORTRANGE: ++ * - which range to search when port is unspecified at bind() or connect() ++ */ ++#define IP_PORTRANGE_DEFAULT 0 /* default range */ ++#define IP_PORTRANGE_HIGH 1 /* same as DEFAULT (FreeBSD compat) */ ++#define IP_PORTRANGE_LOW 2 /* use privileged range */ ++ ++#define ntohs(x) __builtin_allegrex_wsbh(x) ++#define ntohl(x) __builtin_allegrex_wsbw(x) ++#define htons(x) __builtin_allegrex_wsbh(x) ++#define htonl(x) __builtin_allegrex_wsbw(x) ++ ++#ifdef __cplusplus ++} ++#endif ++ ++#endif /* !_NETINET_IN_H_ */ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/netinet/tcp.h newlib-1.19.0-psp/newlib/libc/sys/psp/netinet/tcp.h +--- newlib-1.19.0/newlib/libc/sys/psp/netinet/tcp.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/netinet/tcp.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,12 @@ ++#ifndef __NETINET_TCP_H__ ++#define __NETINET_TCP_H__ ++ ++#include ++ ++#define SOL_TCP IPPROTO_TCP ++ ++/* Socket options */ ++#define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */ ++#define TCP_MAXSEG 0x02 /* set maximum segment size */ ++ ++#endif +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/pipe.c newlib-1.19.0-psp/newlib/libc/sys/psp/pipe.c +--- newlib-1.19.0/newlib/libc/sys/psp/pipe.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/pipe.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,305 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * pipe.c - Socket wrappers to provide similar functions to normal unix ++ * ++ * Copyright (c) 2006 Rafael Cabezas ++ * ++ * - 20070630 Alper Akcan "anhanguera" ++ * [non]blocking read/write() fix ++ * illegal size fix for read/write() ++ * ++ */ ++#include ++#include ++#include ++#include ++ ++#include ++#include ++#include ++#include ++#include "fdman.h" ++ ++/* Pipe functions */ ++/* Returns how many bytes are in the pipe -- waiting to be read */ ++size_t __psp_pipe_peekmsgsize(int fd) ++{ ++ SceKernelMppInfo info; ++ info.size = sizeof(info); ++ ++ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ if (sceKernelReferMsgPipeStatus(__psp_descriptormap[fd]->sce_descriptor, &info) == 0) { ++ return (info.bufSize - info.freeSize); ++ } ++ else { ++ return -1; ++ } ++} ++ ++int pipe(int fildes[2]) ++{ ++ static int iIndex = 0; ++ char name[32]; ++ iIndex++; ++ ++ sprintf(name, "__psp_pipe_%02d", iIndex); ++ ++ SceUID uid = sceKernelCreateMsgPipe(name, PSP_MEMORY_PARTITION_USER, 0, (void *)PIPE_BUF, NULL); ++ ++ if (uid >= 0) { ++ fildes[0] = __psp_fdman_get_new_descriptor(); ++ if (fildes[0] != -1) { ++ __psp_descriptormap[fildes[0]]->sce_descriptor = uid; ++ __psp_descriptormap[fildes[0]]->type = __PSP_DESCRIPTOR_TYPE_PIPE; ++ } ++ else { ++ sceKernelDeleteMsgPipe(uid); ++ errno = EFAULT; ++ return -1; ++ } ++ ++ fildes[1] = __psp_fdman_get_dup_descriptor(fildes[0]); ++ if (fildes[1] != -1) { ++ __psp_descriptormap[fildes[1]]->sce_descriptor = uid; ++ return 0; ++ } ++ else { ++ sceKernelDeleteMsgPipe(uid); ++ errno = EFAULT; ++ return -1; ++ } ++ ++ } ++ else { ++ errno = EFAULT; ++ return -1; ++ } ++} ++ ++int __psp_pipe_close(int fd) ++{ ++ int ret = 0; ++ ++ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ++ if ( __psp_descriptormap[fd]->ref_count == 1 ) { ++ /** ++ * Delete a message pipe ++ * ++ * @param uid - The UID of the pipe ++ * ++ * @return 0 on success, < 0 on error ++ */ ++ ret = sceKernelDeleteMsgPipe(__psp_descriptormap[fd]->sce_descriptor); ++ } ++ ++ __psp_fdman_release_descriptor(fd); ++ ++ if(ret < 0) { ++ return __psp_set_errno(ret); ++ } ++ ++ return 0; ++} ++ ++int __psp_pipe_nonblocking_read(int fd, void *buf, size_t len) ++{ ++ int ret; ++ int sceuid; ++ int size; ++ ++ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ sceuid = __psp_descriptormap[fd]->sce_descriptor; ++ ++ size = __psp_pipe_peekmsgsize(fd); ++ if (size > 0) { ++ if (size < len) { ++ len = size; ++ } ++ } ++ else if (size == 0) { ++ errno = EAGAIN; ++ return -1; ++ } ++ else { ++ errno = EBADF; ++ return -1; ++ } ++ ++ /** ++ * Receive a message from a pipe ++ * ++ * @param uid - The UID of the pipe ++ * @param message - Pointer to the message ++ * @param size - Size of the message ++ * @param unk1 - Unknown ++ * @param unk2 - Unknown ++ * @param timeout - Timeout for receive ++ * ++ * @return 0 on success, < 0 on error ++ */ ++ ret = sceKernelTryReceiveMsgPipe(sceuid, buf, len, 0, 0); ++ ++ if (ret == 0) {/* Success - Data */ ++ return len; ++ } ++ else if (ret == SCE_KERNEL_ERROR_MPP_EMPTY) {/* No data */ ++ errno = EAGAIN; ++ return -1; ++ } ++ else {/* Error */ ++ return __psp_set_errno(ret); ++ } ++} ++ ++int __psp_pipe_read(int fd, void *buf, size_t len) ++{ ++ int ret; ++ int sceuid; ++ int size; ++ ++ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ sceuid = __psp_descriptormap[fd]->sce_descriptor; ++ ++#if 0 ++ /* we should block until there is some data (or maybe for enough data), ++ * peeking the msg size should be only for nonblocking reads ++ */ ++ size = __psp_pipe_peekmsgsize(fd); ++ if (size > 0) { ++ if (size < len) { ++ len = size; ++ } ++ } ++ else { ++ errno = EBADF; ++ return -1; ++ } ++#endif ++ /* if len is greater than PIPE_BUF then, MsgPipe functions returns ++ * SCE_KERNEL_ERROR_ILLEGAL_SIZE, but it should read at least ++ * PIPE_BUF bytes, and return the number of bytes read. ++ */ ++ if (len > PIPE_BUF) { ++ len = PIPE_BUF; ++ } ++ ++ /** ++ * Receive a message from a pipe ++ * ++ * @param uid - The UID of the pipe ++ * @param message - Pointer to the message ++ * @param size - Size of the message ++ * @param unk1 - Unknown ++ * @param unk2 - Unknown ++ * @param timeout - Timeout for receive ++ * ++ * @return 0 on success, < 0 on error ++ */ ++ ret = sceKernelReceiveMsgPipe(sceuid, buf, len, 0, NULL, NULL); ++ ++ if (ret == 0) {/* Success - Data */ ++ return len; ++ } ++ else {/* Error */ ++ return __psp_set_errno(ret); ++ } ++} ++ ++int __psp_pipe_write(int fd, const void *buf, size_t len) ++{ ++ int ret; ++ int sceuid; ++ char *cbuf; ++ ++ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ sceuid = __psp_descriptormap[fd]->sce_descriptor; ++ ++ /* if len is greater than PIPE_BUF then, MsgPipe functions returns ++ * SCE_KERNEL_ERROR_ILLEGAL_SIZE, but it should write at least ++ * PIPE_BUF bytes, and return the number of bytes written. ++ */ ++ if (len > PIPE_BUF) { ++ len = PIPE_BUF; ++ } ++ ++ /** ++ * Send a message to a pipe ++ * ++ * @param uid - The UID of the pipe ++ * @param message - Pointer to the message ++ * @param size - Size of the message ++ * @param unk1 - Unknown ++ * @param unk2 - Unknown ++ * @param timeout - Timeout for send ++ * ++ * @return 0 on success, < 0 on error ++ */ ++ cbuf = (char *)buf; ++ ret = sceKernelSendMsgPipe(sceuid, cbuf, len, 0, NULL, NULL); ++ if (ret == 0) {/* Success - Data */ ++ return len; ++ } ++ else {/* Error */ ++ return __psp_set_errno(ret); ++ } ++} ++ ++int __psp_pipe_nonblocking_write(int fd, const void *buf, size_t len) ++{ ++ int ret; ++ int sceuid; ++ char *cbuf; ++ ++ if (!__PSP_IS_FD_OF_TYPE(fd, __PSP_DESCRIPTOR_TYPE_PIPE)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ sceuid = __psp_descriptormap[fd]->sce_descriptor; ++ ++ /* if len is greater than PIPE_BUF then, MsgPipe functions returns ++ * SCE_KERNEL_ERROR_ILLEGAL_SIZE, but it should write at least ++ * PIPE_BUF bytes, and return the number of bytes written. ++ */ ++ if (len > PIPE_BUF) { ++ len = PIPE_BUF; ++ } ++ ++ cbuf = (char *)buf; ++ ret = sceKernelTrySendMsgPipe(sceuid, cbuf, len, 0, 0); ++ ++ if (ret == 0) {/* Success - Data */ ++ return len; ++ } ++ else if (ret == SCE_KERNEL_ERROR_MPP_FULL) { ++ errno = EAGAIN; ++ return -1; ++ } ++ else {/* Error */ ++ return __psp_set_errno(ret); ++ } ++} +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/pspcwd.c newlib-1.19.0-psp/newlib/libc/sys/psp/pspcwd.c +--- newlib-1.19.0/newlib/libc/sys/psp/pspcwd.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/pspcwd.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,166 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * pspcwd.c - Current working directory emulation helper functions ++ * ++ * Copyright (c) 2005 Marcus R. Brown ++ * Copyright (c) 2005 James Forshaw ++ * Copyright (c) 2005 John Kelley ++ * Copyright (c) 2005 Jim Paris ++ * ++ */ ++#include ++#include ++#include ++ ++#include ++#include ++ ++char __psp_cwd[MAXPATHLEN + 1] = { 0 }; ++ ++/* Set the current working directory (CWD) to the path where the module was launched. */ ++void __psp_init_cwd(char *argv_0) ++{ ++ if (argv_0 != NULL) { ++ char base_path[MAXPATHLEN + 1]; ++ char *end; ++ ++ strncpy(base_path, argv_0, sizeof(base_path) - 1); ++ base_path[sizeof(base_path) - 1] = '\0'; ++ end = strrchr(base_path, '/'); ++ if (end != NULL) { ++ *(end + 1) = '\0'; ++ chdir(base_path); ++ } ++ } ++} ++ ++/* Return the number of bytes taken up by the "drive:" prefix, ++ or -1 if it's not found */ ++int __psp_get_drive(const char *d) ++{ ++ int i; ++ for(i=0; d[i]; i++) { ++ if(! ((d[i] >= 'a' && d[i] <= 'z') || ++ (d[i] >= '0' && d[i] <= '9') )) ++ break; ++ } ++ if(d[i] == ':') return i+1; ++ return -1; ++} ++ ++/* Like strcpy, but returns 0 if the string doesn't fit */ ++int __psp_safe_strcpy(char *out, const char *in, int maxlen) ++{ ++ for( ; maxlen > 0 && *in ; maxlen-- ) ++ *(out++) = *(in++); ++ if(maxlen < 1) return 0; ++ *out = 0; ++ return 1; ++} ++ ++/* Like strcat, but returns 0 if the string doesn't fit */ ++int __psp_safe_strcat(char *out, const char *in, int maxlen) ++{ ++ for( ; *out ; out++,maxlen-- ) ++ continue; ++ return __psp_safe_strcpy(out, in, maxlen); ++} ++ ++/* Normalize a pathname (without leading "drive:") by removing ++ . and .. components, duplicated /, etc. */ ++int __psp_path_normalize(char *out, int len) ++{ ++ int i, j; ++ int first, next; ++ ++ /* First append "/" to make the rest easier */ ++ if(!__psp_safe_strcat(out,"/",len)) return -10; ++ ++ /* Convert "//" to "/" */ ++ for(i=0; out[i+1]; i++) { ++ if(out[i]=='/' && out[i+1]=='/') { ++ for(j=i+1; out[j]; j++) ++ out[j] = out[j+1]; ++ i--; ++ } ++ } ++ ++ /* Convert "/./" to "/" */ ++ for(i=0; out[i] && out[i+1] && out[i+2]; i++) { ++ if(out[i]=='/' && out[i+1]=='.' && out[i+2]=='/') { ++ for(j=i+1; out[j]; j++) ++ out[j] = out[j+2]; ++ i--; ++ } ++ } ++ ++ /* Convert "/asdf/../" to "/" until we can't anymore. Also ++ * convert leading "/../" to "/" */ ++ first = next = 0; ++ while(1) { ++ /* If a "../" follows, remove it and the parent */ ++ if(out[next+1] && out[next+1]=='.' && ++ out[next+2] && out[next+2]=='.' && ++ out[next+3] && out[next+3]=='/') { ++ for(j=0; out[first+j+1]; j++) ++ out[first+j+1] = out[next+j+4]; ++ first = next = 0; ++ continue; ++ } ++ ++ /* Find next slash */ ++ first = next; ++ for(next=first+1; out[next] && out[next] != '/'; next++) ++ continue; ++ if(!out[next]) break; ++ } ++ ++ /* Remove trailing "/" */ ++ for(i=1; out[i]; i++) ++ continue; ++ if(i >= 1 && out[i-1] == '/') ++ out[i-1] = 0; ++ ++ return 0; ++} ++ ++/* Convert relative path to absolute path. */ ++int __psp_path_absolute(const char *in, char *out, int len) ++{ ++ int dr; ++ ++ /* See what the relative URL starts with */ ++ dr = __psp_get_drive(in); ++ if(dr > 0 && in[dr] == '/') { ++ /* It starts with "drive:/", so it's already absolute */ ++ if(!__psp_safe_strcpy(out, in, len)) ++ return -1; ++ } else if(in[0] == '/') { ++ /* It's absolute, but missing the drive, so use cwd's drive */ ++ if(strlen(__psp_cwd) >= len) ++ return -2; ++ strcpy(out, __psp_cwd); ++ dr = __psp_get_drive(out); ++ out[dr] = 0; ++ if(!__psp_safe_strcat(out, in, len)) ++ return -3; ++ } else { ++ /* It's not absolute, so append it to the current cwd */ ++ if(strlen(__psp_cwd) >= len) ++ return -4; ++ strcpy(out, __psp_cwd); ++ if(!__psp_safe_strcat(out, "/", len)) ++ return -6; ++ if(!__psp_safe_strcat(out, in, len)) ++ return -7; ++ } ++ ++ /* Now normalize the pathname portion */ ++ dr = __psp_get_drive(out); ++ if(dr < 0) dr = 0; ++ return __psp_path_normalize(out + dr, len - dr); ++} ++ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/select.c newlib-1.19.0-psp/newlib/libc/sys/psp/select.c +--- newlib-1.19.0/newlib/libc/sys/psp/select.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/select.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,199 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * select.c - Socket wrappers to provide similar functions to normal unix ++ * ++ * Copyright (c) 2006 Rafael Cabezas ++ * ++ * - 20070701 Alper Akcan "anhanguera" ++ * select EBADF fix ++ * ++ */ ++#include ++#include ++#include ++#include ++#include ++ ++#include "fdman.h" ++ ++#define SELECT_POLLING_DELAY_IN_us 100 ++ ++static int __psp_poll_select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds); ++ ++int select(int n, fd_set *readfds, fd_set *writefds, ++ fd_set *exceptfds, struct timeval *timeout) ++{ ++ int count; ++ clock_t start_time, time; ++ ++ start_time = clock(); ++ ++ count = 0; ++ ++ if (timeout) { ++ time = (timeout->tv_sec * CLOCKS_PER_SEC) + (timeout->tv_usec * (1*1000*1000/CLOCKS_PER_SEC)); ++ } ++ else { ++ time = 0; ++ } ++ ++ for (;;) { ++ count = __psp_poll_select(n, readfds, writefds, exceptfds); ++ /* If timeout == NULL, then don't timeout! */ ++ if ( (count > 0) || ((timeout != NULL) && ((clock() - start_time) >= time)) ) { ++ break; ++ } ++ if (count < 0) { ++ /* anhanguera - 20070701 ++ * error, lets let the caller to handle error state ++ */ ++ break; ++ } ++ else { ++ /* Nothing found, and not timed-out yet; let's yield for SELECT_POLLING_DELAY_IN_us, so we're not in a busy loop */ ++ sceKernelDelayThread(SELECT_POLLING_DELAY_IN_us); ++ } ++ } ++ ++ return count; ++} ++ ++#define SCE_FD_SET(n, p) \ ++ ((p)->fds_bits[((n) & 0xFF) /__NFDBITS] |= (1 << ((n) % __NFDBITS))) ++ ++static int __psp_poll_select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds) ++{ ++ int fd, count; ++ fd_set ready_readfds, ready_writefds, ready_exceptfds; ++ fd_set scereadfds, scewritefds, sceexceptfds; ++ SceKernelMppInfo info; ++ struct timeval scetv; ++ ++ FD_ZERO(&ready_readfds); ++ FD_ZERO(&ready_writefds); ++ FD_ZERO(&ready_exceptfds); ++ ++ info.size = sizeof(info); ++ scetv.tv_sec = 0; ++ scetv.tv_usec = 0; ++ count = 0; ++ ++ for (fd = 0; fd < n; fd++) ++ { ++ if (__psp_descriptormap[fd] != NULL) { ++ switch(__psp_descriptormap[fd]->type) ++ { ++ case __PSP_DESCRIPTOR_TYPE_PIPE: ++ if (readfds && FD_ISSET(fd, readfds)) { ++ if (sceKernelReferMsgPipeStatus(__psp_descriptormap[fd]->sce_descriptor, &info) == 0) { ++ if (info.bufSize != info.freeSize) { ++ FD_SET(fd, &ready_readfds); ++ count++; ++ } ++ } ++ else { ++ FD_SET(fd, &ready_exceptfds); ++ count++; ++ } ++ } ++ if (writefds && FD_ISSET(fd, writefds)) { ++ if (sceKernelReferMsgPipeStatus(__psp_descriptormap[fd]->sce_descriptor, &info) == 0) { ++ if (info.freeSize > 0) { ++ FD_SET(fd, &ready_writefds); ++ count++; ++ } ++ } ++ else { ++ FD_SET(fd, &ready_exceptfds); ++ count++; ++ } ++ } ++ break; ++ case __PSP_DESCRIPTOR_TYPE_FILE: ++ if (readfds && FD_ISSET(fd, readfds)) { ++ if (readfds && FD_ISSET(fd, readfds)) { ++ /** Just set it for now */ ++ FD_SET(fd, &ready_readfds); ++ count++; ++ } ++ } ++ break; ++ case __PSP_DESCRIPTOR_TYPE_SOCKET: ++ if (readfds && FD_ISSET(fd, readfds)) { ++ int sce_ret, sce_fd; ++ sce_fd = __psp_descriptormap[fd]->sce_descriptor; ++ FD_ZERO(&scereadfds); ++ SCE_FD_SET(sce_fd, &scereadfds); ++ errno = 0; ++ sce_ret = sceNetInetSelect (sce_fd+1, &scereadfds, NULL, NULL, &scetv); ++ if (sce_ret>0) { ++ FD_SET(fd, &ready_readfds); ++ count++; ++ } ++ else if (sce_ret == -1) { ++ errno = sceNetInetGetErrno(); ++ if (exceptfds && FD_ISSET(fd, exceptfds)) { ++ FD_SET(fd, &ready_exceptfds); ++ count++; ++ } else { ++ count = -1; ++ } ++ } ++ } ++ if (writefds && FD_ISSET(fd, writefds)) { ++ int sce_ret; ++ FD_ZERO(&scewritefds); ++ SCE_FD_SET(__psp_descriptormap[fd]->sce_descriptor, &scewritefds); ++ sce_ret = sceNetInetSelect (__psp_descriptormap[fd]->sce_descriptor+1, NULL, &scewritefds, NULL, &scetv); ++ if (sce_ret>0) { ++ FD_SET(fd, &ready_writefds); ++ count++; ++ } ++ else if (sce_ret == -1) { ++ if (exceptfds && FD_ISSET(fd, exceptfds)) { ++ FD_SET(fd, &ready_exceptfds); ++ count++; ++ } ++ else { ++ count = -1; ++ } ++ } ++ } ++ break; ++ } ++ } else { ++ /* anhanguera - 20070701 ++ * ++ * here we know that, system has no idea about 'fd'. if caller requested ++ * information about 'fd', return '-1' and set errno to 'EBADF'. we should ++ * increse the count and set exceptfd for fd, but it is safe to obey select ++ * manual. ++ * ++ * from manual; ++ * On error, -1 is returned, and errno is set appropriately; the sets and ++ * timeout become undefined, so do not rely on their contents after an error. ++ */ ++ if ((readfds && FD_ISSET(fd, readfds)) || ++ (writefds && FD_ISSET(fd, writefds)) || ++ (exceptfds && FD_ISSET(fd, exceptfds))) { ++ errno = EBADF; ++ return -1; ++ } ++ } ++ } ++ ++ if (count > 0) { ++ if (readfds) ++ *readfds = ready_readfds; ++ if (writefds) ++ *writefds = ready_writefds; ++ if (exceptfds) ++ *exceptfds = ready_exceptfds; ++ } ++ ++ return count; ++} ++ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/socket.c newlib-1.19.0-psp/newlib/libc/sys/psp/socket.c +--- newlib-1.19.0/newlib/libc/sys/psp/socket.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/socket.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,390 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * socket.c - Socket wrappers to provide similar functions to normal unix ++ * ++ * Copyright (c) 2005 Marcus R. Brown ++ * Copyright (c) 2005 James Forshaw ++ * ++ */ ++#include ++#include ++#include ++#include ++#include ++#include ++ ++#include ++#include "fdman.h" ++ ++#ifdef F_socket ++int socket(int domain, int type, int protocol) ++{ ++ int sock, scesock; ++ int i; ++ ++ scesock = sceNetInetSocket(domain, type, protocol); ++ if(scesock < 0) { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ sock = __psp_fdman_get_new_descriptor(); ++ if( sock != -1 ) { ++ __psp_descriptormap[sock]->sce_descriptor = scesock; ++ __psp_descriptormap[sock]->type = __PSP_DESCRIPTOR_TYPE_SOCKET; ++ } ++ else { ++ sceNetInetClose(scesock); ++ errno = ENOENT; ++ return -1; ++ } ++ ++ return sock; ++} ++ ++/* These are glue routines that are called from _close(), _read(), and ++ _write(). They are here so that any program that uses socket() will pull ++ them in and have expanded socket capability. */ ++ ++int __psp_socket_close(int sock) ++{ ++ int ret = 0; ++ ++ if (__psp_descriptormap[sock]->ref_count == 1) { ++ ret = sceNetInetClose(__psp_descriptormap[sock]->sce_descriptor); ++ } ++ ++ __psp_fdman_release_descriptor(sock); ++ ++ if(ret < 0) ++ { ++ /* If close is defined likely errno is */ ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return 0; ++} ++ ++ssize_t __psp_socket_recv(int s, void *buf, size_t len, int flags) ++{ ++ return recv(s, buf, len, flags); ++} ++ ++ssize_t __psp_socket_send(int s, const void *buf, size_t len, int flags) ++{ ++ return send(s, buf, len, flags); ++} ++#endif ++ ++#ifdef F_accept ++int accept(int s, struct sockaddr *addr, socklen_t *addrlen) ++{ ++ int newscesock, newsock; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ newscesock = sceNetInetAccept(__psp_descriptormap[s]->sce_descriptor, addr, addrlen); ++ if( (newscesock >= 0) ) { ++ newsock = __psp_fdman_get_new_descriptor(); ++ if ( newsock != -1 ) { ++ __psp_descriptormap[newsock]->sce_descriptor = newscesock; ++ __psp_descriptormap[newsock]->type = __PSP_DESCRIPTOR_TYPE_SOCKET; ++ } ++ else { ++ sceNetInetClose(newscesock); ++ errno = ENOENT; ++ return -1; ++ } ++ } ++ else { ++ errno = ENOENT; ++ return -1; ++ } ++ ++ return newsock; ++} ++#endif ++ ++#ifdef F_bind ++int bind(int s, const struct sockaddr *my_addr, socklen_t addrlen) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetBind(__psp_descriptormap[s]->sce_descriptor, my_addr, addrlen); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return 0; ++} ++#endif ++ ++#ifdef F_connect ++int connect(int s, const struct sockaddr *serv_addr, socklen_t addrlen) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetConnect(__psp_descriptormap[s]->sce_descriptor, serv_addr, addrlen); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return 0; ++} ++#endif ++ ++#ifdef F_setsockopt ++int getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetGetsockopt(__psp_descriptormap[s]->sce_descriptor, level, optname, optval, optlen); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return 0; ++} ++#endif ++ ++#ifdef F_listen ++int listen(int s, int backlog) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetListen(__psp_descriptormap[s]->sce_descriptor, backlog); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return 0; ++} ++#endif ++ ++#ifdef F_recv ++ssize_t recv(int s, void *buf, size_t len, int flags) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetRecv(__psp_descriptormap[s]->sce_descriptor, buf, len, flags); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return ret; ++} ++#endif ++ ++#ifdef F_recvfrom ++ssize_t recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetRecvfrom(__psp_descriptormap[s]->sce_descriptor, buf, len, flags, from, fromlen); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return ret; ++} ++#endif ++ ++#ifdef F_send ++ssize_t send(int s, const void *buf, size_t len, int flags) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetSend(__psp_descriptormap[s]->sce_descriptor, buf, len, flags); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return ret; ++} ++#endif ++ ++#ifdef F_sendto ++ssize_t sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetSendto(__psp_descriptormap[s]->sce_descriptor, buf, len, flags, to, tolen); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return ret; ++} ++#endif ++ ++#ifdef F_setsockopt ++int setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetSetsockopt(__psp_descriptormap[s]->sce_descriptor, level, optname, optval, optlen); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ else ++ { ++ if ( (level == SOL_SOCKET) && (optname == SO_NONBLOCK) ) { ++ if (*((int*)optval) == 1) { ++ __psp_descriptormap[s]->flags |= O_NONBLOCK; ++ } ++ else { ++ __psp_descriptormap[s]->flags &= ~O_NONBLOCK; ++ } ++ } ++ } ++ ++ return 0; ++} ++#endif ++ ++#ifdef F_shutdown ++int shutdown(int s, int how) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetShutdown(__psp_descriptormap[s]->sce_descriptor, how); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return 0; ++} ++#endif ++ ++#ifdef F_getpeername ++int getpeername(int s, struct sockaddr *name, socklen_t *namelen) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetGetpeername(__psp_descriptormap[s]->sce_descriptor, name, namelen); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return 0; ++} ++#endif ++ ++#ifdef F_getsockname ++int getsockname(int s, struct sockaddr *name, socklen_t *namelen) ++{ ++ int ret; ++ ++ if (!__PSP_IS_FD_OF_TYPE(s, __PSP_DESCRIPTOR_TYPE_SOCKET)) { ++ errno = EBADF; ++ return -1; ++ } ++ ++ ret = sceNetInetGetsockname(__psp_descriptormap[s]->sce_descriptor, name, namelen); ++ if(ret < 0) ++ { ++ errno = sceNetInetGetErrno(); ++ return -1; ++ } ++ ++ return 0; ++} ++#endif ++ ++#ifdef F_inet_ntoa ++char *inet_ntoa(struct in_addr in) ++{ ++ static char ip_addr[INET_ADDRSTRLEN+1]; ++ ++ if(sceNetInetInetNtop(AF_INET, &in, ip_addr, INET_ADDRSTRLEN) == NULL) ++ { ++ strcpy(ip_addr, "Invalid"); ++ } ++ ++ return ip_addr; ++} ++#endif +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/sys/dirent.h newlib-1.19.0-psp/newlib/libc/sys/psp/sys/dirent.h +--- newlib-1.19.0/newlib/libc/sys/psp/sys/dirent.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/sys/dirent.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,39 @@ ++#ifndef _SYS_DIRENT_H ++#define _SYS_DIRENT_H ++ ++/* PSP dirent.h, based on pspiofilemgr_dirent.h ++ by Jim Paris */ ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++#include ++ ++#define MAXNAMLEN 255 ++ ++/* Same as SceIoDirent, just with a different name. */ ++struct dirent { ++ /** File status. */ ++ SceIoStat d_stat; ++ /** File name. */ ++ char d_name[256]; ++ /** Device-specific data. */ ++ void * d_private; ++ int dummy; ++}; ++ ++typedef struct { ++ SceUID uid; ++ struct dirent de; ++} DIR; ++ ++DIR *opendir (const char *); ++struct dirent *readdir (DIR *); ++int closedir (DIR *); ++ ++#ifdef __cplusplus ++} ++#endif ++ ++#endif +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/sys/errno.h newlib-1.19.0-psp/newlib/libc/sys/psp/sys/errno.h +--- newlib-1.19.0/newlib/libc/sys/psp/sys/errno.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/sys/errno.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,158 @@ ++/* errno.h for PSP, based on newlib/libc/include/sys/errno.h. */ ++ ++#ifndef _SYS_ERRNO_H_ ++#ifdef __cplusplus ++extern "C" { ++#endif ++#define _SYS_ERRNO_H_ ++ ++#include ++ ++#ifndef _REENT_ONLY ++#define errno (*__errno()) ++extern int *__errno _PARAMS ((void)); ++#endif ++ ++/* Please don't use these variables directly. ++ Use strerror instead. */ ++extern __IMPORT _CONST char * _CONST _sys_errlist[]; ++extern __IMPORT int _sys_nerr; ++#ifdef __CYGWIN__ ++extern __IMPORT const char * const sys_errlist[]; ++extern __IMPORT int sys_nerr; ++#endif ++ ++#define __errno_r(ptr) ((ptr)->_errno) ++ ++#define EPERM 1 /* Not super-user */ ++#define ENOENT 2 /* No such file or directory */ ++#define ESRCH 3 /* No such process */ ++#define EINTR 4 /* Interrupted system call */ ++#define EIO 5 /* I/O error */ ++#define ENXIO 6 /* No such device or address */ ++#define E2BIG 7 /* Arg list too long */ ++#define ENOEXEC 8 /* Exec format error */ ++#define EBADF 9 /* Bad file number */ ++#define ECHILD 10 /* No children */ ++#define EAGAIN 11 /* No more processes */ ++#define ENOMEM 12 /* Not enough core */ ++#define EACCES 13 /* Permission denied */ ++#define EFAULT 14 /* Bad address */ ++#define ENOTBLK 15 /* Block device required */ ++#define EBUSY 16 /* Mount device busy */ ++#define EEXIST 17 /* File exists */ ++#define EXDEV 18 /* Cross-device link */ ++#define ENODEV 19 /* No such device */ ++#define ENOTDIR 20 /* Not a directory */ ++#define EISDIR 21 /* Is a directory */ ++#define EINVAL 22 /* Invalid argument */ ++#define ENFILE 23 /* Too many open files in system */ ++#define EMFILE 24 /* Too many open files */ ++#define ENOTTY 25 /* Not a typewriter */ ++#define ETXTBSY 26 /* Text file busy */ ++#define EFBIG 27 /* File too large */ ++#define ENOSPC 28 /* No space left on device */ ++#define ESPIPE 29 /* Illegal seek */ ++#define EROFS 30 /* Read only file system */ ++#define EMLINK 31 /* Too many links */ ++#define EPIPE 32 /* Broken pipe */ ++#define EDOM 33 /* Math arg out of domain of func */ ++#define ERANGE 34 /* Math result not representable */ ++#define ENOMSG 35 /* No message of desired type */ ++#define EIDRM 36 /* Identifier removed */ ++#define ECHRNG 37 /* Channel number out of range */ ++#define EL2NSYNC 38 /* Level 2 not synchronized */ ++#define EL3HLT 39 /* Level 3 halted */ ++#define EL3RST 40 /* Level 3 reset */ ++#define ELNRNG 41 /* Link number out of range */ ++#define EUNATCH 42 /* Protocol driver not attached */ ++#define ENOCSI 43 /* No CSI structure available */ ++#define EL2HLT 44 /* Level 2 halted */ ++#define EDEADLK 45 /* Deadlock condition */ ++#define ENOLCK 46 /* No record locks available */ ++#define EBADE 50 /* Invalid exchange */ ++#define EBADR 51 /* Invalid request descriptor */ ++#define EXFULL 52 /* Exchange full */ ++#define ENOANO 53 /* No anode */ ++#define EBADRQC 54 /* Invalid request code */ ++#define EBADSLT 55 /* Invalid slot */ ++#define EDEADLOCK 56 /* File locking deadlock error */ ++#define EBFONT 57 /* Bad font file fmt */ ++#define ENOSTR 60 /* Device not a stream */ ++#define ENODATA 61 /* No data (for no delay io) */ ++#define ETIME 62 /* Timer expired */ ++#define ENOSR 63 /* Out of streams resources */ ++#define ENONET 64 /* Machine is not on the network */ ++#define ENOPKG 65 /* Package not installed */ ++#define EREMOTE 66 /* The object is remote */ ++#define ENOLINK 67 /* The link has been severed */ ++#define EADV 68 /* Advertise error */ ++#define ESRMNT 69 /* Srmount error */ ++#define ECOMM 70 /* Communication error on send */ ++#define EPROTO 71 /* Protocol error */ ++#define EMULTIHOP 74 /* Multihop attempted */ ++#define ELBIN 75 /* Inode is remote (not really error) */ ++#define EDOTDOT 76 /* Cross mount point (not really error) */ ++#define EBADMSG 77 /* Trying to read unreadable message */ ++#define EFTYPE 79 /* Inappropriate file type or format */ ++#define ENOTUNIQ 80 /* Given log. name not unique */ ++#define EBADFD 81 /* f.d. invalid for this operation */ ++#define EREMCHG 82 /* Remote address changed */ ++#define ELIBACC 83 /* Can't access a needed shared lib */ ++#define ELIBBAD 84 /* Accessing a corrupted shared lib */ ++#define ELIBSCN 85 /* .lib section in a.out corrupted */ ++#define ELIBMAX 86 /* Attempting to link in too many libs */ ++#define ELIBEXEC 87 /* Attempting to exec a shared library */ ++#define ENOSYS 88 /* Function not implemented */ ++#define ENMFILE 89 /* No more files */ ++#define ENOTEMPTY 90 /* Directory not empty */ ++#define ENAMETOOLONG 91 /* File or path name too long */ ++#define ELOOP 92 /* Too many symbolic links */ ++#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ ++#define EPFNOSUPPORT 96 /* Protocol family not supported */ ++#define ECONNRESET 104 /* Connection reset by peer */ ++#define ENOBUFS 105 /* No buffer space available */ ++#define EAFNOSUPPORT 106 /* Address family not supported by protocol family */ ++#define EPROTOTYPE 107 /* Protocol wrong type for socket */ ++#define ENOTSOCK 108 /* Socket operation on non-socket */ ++#define ENOPROTOOPT 109 /* Protocol not available */ ++#define ESHUTDOWN 110 /* Can't send after socket shutdown */ ++#define ECONNREFUSED 111 /* Connection refused */ ++#define EADDRINUSE 112 /* Address already in use */ ++#define ECONNABORTED 113 /* Connection aborted */ ++#define ENETUNREACH 114 /* Network is unreachable */ ++#define ENETDOWN 115 /* Network interface is not configured */ ++#define ETIMEDOUT 116 /* Connection timed out */ ++#define EHOSTDOWN 117 /* Host is down */ ++#define EHOSTUNREACH 118 /* Host is unreachable */ ++#define EINPROGRESS 119 /* Connection already in progress */ ++#define EALREADY 120 /* Socket already connected */ ++#define EDESTADDRREQ 121 /* Destination address required */ ++#define EMSGSIZE 122 /* Message too long */ ++#define EPROTONOSUPPORT 123 /* Unknown protocol */ ++#define ESOCKTNOSUPPORT 124 /* Socket type not supported */ ++#define EADDRNOTAVAIL 125 /* Address not available */ ++#define ENETRESET 126 ++#define EISCONN 127 /* Socket is already connected */ ++#define ENOTCONN 128 /* Socket is not connected */ ++#define ETOOMANYREFS 129 ++#define EPROCLIM 130 ++#define EUSERS 131 ++#define EDQUOT 132 ++#define ESTALE 133 ++#define ENOTSUP 134 /* Not supported */ ++#define ENOMEDIUM 135 /* No medium (in tape drive) */ ++#define ENOSHARE 136 /* No such host or network path */ ++#define ECASECLASH 137 /* Filename exists with different case */ ++#define EILSEQ 138 ++#define EOVERFLOW 139 /* Value too large for defined data type */ ++ ++/* From cygwin32. */ ++#define EWOULDBLOCK EAGAIN /* Operation would block */ ++ ++#define __ELASTERROR 2000 /* Users can add values starting here */ ++ ++#ifdef __cplusplus ++} ++#endif ++#endif /* _SYS_ERRNO_H */ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/sys/fd_set.h newlib-1.19.0-psp/newlib/libc/sys/psp/sys/fd_set.h +--- newlib-1.19.0/newlib/libc/sys/psp/sys/fd_set.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/sys/fd_set.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,69 @@ ++/* $NetBSD: fd_set.h,v 1.1 2005/05/22 12:44:24 kleink Exp $ */ ++ ++/*- ++ * Copyright (c) 1992, 1993 ++ * The Regents of the University of California. All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * 3. Neither the name of the University nor the names of its contributors ++ * may be used to endorse or promote products derived from this software ++ * without specific prior written permission. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * from: @(#)types.h 8.4 (Berkeley) 1/21/94 ++ */ ++ ++#ifndef _SYS_FD_SET_H_ ++#define _SYS_FD_SET_H_ ++ ++#include ++#include ++ ++/* ++ * Implementation dependent defines, hidden from user space. X/Open does not ++ * specify them. ++ */ ++#define __NBBY 8 /* number of bits in a byte */ ++typedef uint32_t __fd_mask; ++ ++/* bits per mask */ ++#define __NFDBITS ((unsigned int)sizeof(__fd_mask) * __NBBY) ++ ++#define __howmany(x, y) (((x) + ((y) - 1)) / (y)) ++ ++#define FD_SETSIZE 256 ++ ++typedef struct fd_set { ++ __fd_mask fds_bits[__howmany(FD_SETSIZE, __NFDBITS)]; ++} fd_set; ++ ++#define FD_SET(n, p) \ ++ ((p)->fds_bits[(n) /__NFDBITS] |= (1 << ((n) % __NFDBITS))) ++ ++#define FD_CLR(n, p) \ ++ ((p)->fds_bits[(n) /__NFDBITS] &= ~(1 << ((n) % __NFDBITS))) ++ ++#define FD_ISSET(n, p) \ ++ ((p)->fds_bits[(n) /__NFDBITS] & (1 << ((n) % __NFDBITS))) ++ ++#define FD_ZERO(p) (void)__builtin_memset((p), 0, sizeof(*(p))) ++ ++#endif /* _SYS_FD_SET_H_ */ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/sys/ioctl.h newlib-1.19.0-psp/newlib/libc/sys/psp/sys/ioctl.h +--- newlib-1.19.0/newlib/libc/sys/psp/sys/ioctl.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/sys/ioctl.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1 @@ ++/* Empty file, here for compatibility */ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/sys/select.h newlib-1.19.0-psp/newlib/libc/sys/psp/sys/select.h +--- newlib-1.19.0/newlib/libc/sys/psp/sys/select.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/sys/select.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,54 @@ ++/* $NetBSD: select.h,v 1.24 2005/05/22 12:44:24 kleink Exp $ */ ++ ++/*- ++ * Copyright (c) 1992, 1993 ++ * The Regents of the University of California. All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * 3. Neither the name of the University nor the names of its contributors ++ * may be used to endorse or promote products derived from this software ++ * without specific prior written permission. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * @(#)select.h 8.2 (Berkeley) 1/4/94 ++ */ ++ ++#ifndef _SYS_SELECT_H_ ++#define _SYS_SELECT_H_ ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++#include ++#include ++ ++int sceNetInetSelect(int n, fd_set *readfds, fd_set *writefds, ++ fd_set *exceptfds, struct timeval *timeout); ++ ++int select(int n, fd_set *readfds, fd_set *writefds, ++ fd_set *exceptfds, struct timeval *timeout); ++ ++#ifdef __cplusplus ++} ++#endif ++ ++#endif /* !_SYS_SELECT_H_ */ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/sys/socket.h newlib-1.19.0-psp/newlib/libc/sys/psp/sys/socket.h +--- newlib-1.19.0/newlib/libc/sys/psp/sys/socket.h 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/sys/socket.h 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,294 @@ ++/* $NetBSD: socket.h,v 1.77 2005/11/29 03:12:16 christos Exp $ */ ++ ++/* ++ * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * 3. Neither the name of the project nor the names of its contributors ++ * may be used to endorse or promote products derived from this software ++ * without specific prior written permission. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++/* ++ * Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994 ++ * The Regents of the University of California. All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * 3. Neither the name of the University nor the names of its contributors ++ * may be used to endorse or promote products derived from this software ++ * without specific prior written permission. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * @(#)socket.h 8.6 (Berkeley) 5/3/95 ++ */ ++ ++#ifndef _SYS_SOCKET_H_ ++#define _SYS_SOCKET_H_ ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++#include ++#include ++#include ++ ++typedef uint8_t sa_family_t; ++typedef uint32_t socklen_t; ++ ++/* ++ * Socket types. ++ */ ++#define SOCK_STREAM 1 /* stream socket */ ++#define SOCK_DGRAM 2 /* datagram socket */ ++#define SOCK_RAW 3 /* raw-protocol interface */ ++#define SOCK_RDM 4 /* reliably-delivered message */ ++#define SOCK_SEQPACKET 5 /* sequenced packet stream */ ++ ++/* ++ * Option flags per-socket. ++ */ ++#define SO_DEBUG 0x0001 /* turn on debugging info recording */ ++#define SO_ACCEPTCONN 0x0002 /* socket has had listen() */ ++#define SO_REUSEADDR 0x0004 /* allow local address reuse */ ++#define SO_KEEPALIVE 0x0008 /* keep connections alive */ ++#define SO_DONTROUTE 0x0010 /* just use interface addresses */ ++#define SO_BROADCAST 0x0020 /* permit sending of broadcast msgs */ ++#define SO_USELOOPBACK 0x0040 /* bypass hardware when possible */ ++#define SO_LINGER 0x0080 /* linger on close if data present */ ++#define SO_OOBINLINE 0x0100 /* leave received OOB data in line */ ++#define SO_REUSEPORT 0x0200 /* allow local address & port reuse */ ++#define SO_TIMESTAMP 0x0400 /* timestamp received dgram traffic */ ++ ++/* ++ * Additional options, not kept in so_options. ++ */ ++#define SO_SNDBUF 0x1001 /* send buffer size */ ++#define SO_RCVBUF 0x1002 /* receive buffer size */ ++#define SO_SNDLOWAT 0x1003 /* send low-water mark */ ++#define SO_RCVLOWAT 0x1004 /* receive low-water mark */ ++#define SO_SNDTIMEO 0x1005 /* send timeout */ ++#define SO_RCVTIMEO 0x1006 /* receive timeout */ ++#define SO_ERROR 0x1007 /* get error status and clear */ ++#define SO_TYPE 0x1008 /* get socket type */ ++#define SO_OVERFLOWED 0x1009 /* datagrams: return packets dropped */ ++#define SO_NONBLOCK 0x1009 /* non-blocking I/O */ ++ ++/* ++ * Structure used for manipulating linger option. ++ */ ++struct linger { ++ int l_onoff; /* option on/off */ ++ int l_linger; /* linger time in seconds */ ++}; ++ ++/* ++ * Level number for (get/set)sockopt() to apply to socket itself. ++ */ ++#define SOL_SOCKET 0xffff /* options for socket level */ ++ ++/* ++ * Address families. ++ */ ++#define AF_UNSPEC 0 /* unspecified */ ++#define AF_LOCAL 1 /* local to host (pipes, portals) */ ++#define AF_UNIX AF_LOCAL /* backward compatibility */ ++#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ ++#define AF_IMPLINK 3 /* arpanet imp addresses */ ++#define AF_PUP 4 /* pup protocols: e.g. BSP */ ++#define AF_CHAOS 5 /* mit CHAOS protocols */ ++#define AF_NS 6 /* XEROX NS protocols */ ++#define AF_ISO 7 /* ISO protocols */ ++#define AF_OSI AF_ISO ++#define AF_ECMA 8 /* european computer manufacturers */ ++#define AF_DATAKIT 9 /* datakit protocols */ ++#define AF_CCITT 10 /* CCITT protocols, X.25 etc */ ++#define AF_SNA 11 /* IBM SNA */ ++#define AF_DECnet 12 /* DECnet */ ++#define AF_DLI 13 /* DEC Direct data link interface */ ++#define AF_LAT 14 /* LAT */ ++#define AF_HYLINK 15 /* NSC Hyperchannel */ ++#define AF_APPLETALK 16 /* Apple Talk */ ++#define AF_ROUTE 17 /* Internal Routing Protocol */ ++#define AF_LINK 18 /* Link layer interface */ ++#define AF_COIP 20 /* connection-oriented IP, aka ST II */ ++#define AF_CNT 21 /* Computer Network Technology */ ++#define AF_IPX 23 /* Novell Internet Protocol */ ++#define AF_INET6 24 /* IP version 6 */ ++#define AF_ISDN 26 /* Integrated Services Digital Network*/ ++#define AF_E164 AF_ISDN /* CCITT E.164 recommendation */ ++#define AF_NATM 27 /* native ATM access */ ++#define AF_ARP 28 /* (rev.) addr. res. prot. (RFC 826) */ ++#define AF_MAX 31 ++ ++/* ++ * Structure used by kernel to store most ++ * addresses. ++ */ ++struct sockaddr { ++ uint8_t sa_len; /* total length */ ++ sa_family_t sa_family; /* address family */ ++ char sa_data[14]; /* actually longer; address value */ ++}; ++ ++/* ++ * Protocol families, same as address families for now. ++ */ ++#define PF_UNSPEC AF_UNSPEC ++#define PF_LOCAL AF_LOCAL ++#define PF_UNIX PF_LOCAL /* backward compatibility */ ++#define PF_INET AF_INET ++#define PF_IMPLINK AF_IMPLINK ++#define PF_PUP AF_PUP ++#define PF_CHAOS AF_CHAOS ++#define PF_NS AF_NS ++#define PF_ISO AF_ISO ++#define PF_OSI AF_ISO ++#define PF_ECMA AF_ECMA ++#define PF_DATAKIT AF_DATAKIT ++#define PF_CCITT AF_CCITT ++#define PF_SNA AF_SNA ++#define PF_DECnet AF_DECnet ++#define PF_DLI AF_DLI ++#define PF_LAT AF_LAT ++#define PF_HYLINK AF_HYLINK ++#define PF_APPLETALK AF_APPLETALK ++#define PF_ROUTE AF_ROUTE ++#define PF_LINK AF_LINK ++#if defined(_NETBSD_SOURCE) ++#define PF_XTP pseudo_AF_XTP /* really just proto family, no AF */ ++#endif ++#define PF_COIP AF_COIP ++#define PF_CNT AF_CNT ++#define PF_INET6 AF_INET6 ++#define PF_IPX AF_IPX /* same format as AF_NS */ ++#if defined(_NETBSD_SOURCE) ++#define PF_RTIP pseudo_AF_RTIP /* same format as AF_INET */ ++#define PF_PIP pseudo_AF_PIP ++#endif ++#define PF_ISDN AF_ISDN /* same as E164 */ ++#define PF_E164 AF_E164 ++#define PF_NATM AF_NATM ++#define PF_ARP AF_ARP ++#if defined(_NETBSD_SOURCE) ++#define PF_KEY pseudo_AF_KEY /* like PF_ROUTE, only for key mgmt */ ++#endif ++ ++#define PF_MAX AF_MAX ++ ++#define MSG_OOB 0x1 /* process out-of-band data */ ++#define MSG_PEEK 0x2 /* peek at incoming message */ ++#define MSG_DONTROUTE 0x4 /* send without using routing tables */ ++#define MSG_EOR 0x8 /* data completes record */ ++#define MSG_TRUNC 0x10 /* data discarded before delivery */ ++#define MSG_CTRUNC 0x20 /* control data lost before delivery */ ++#define MSG_WAITALL 0x40 /* wait for full request or error */ ++#define MSG_DONTWAIT 0x80 /* this message should be nonblocking */ ++#define MSG_BCAST 0x100 /* this message was rcvd using link-level brdcst */ ++#define MSG_MCAST 0x200 /* this message was rcvd using link-level mcast */ ++ ++/* ++ * Types of socket shutdown(2). ++ */ ++#define SHUT_RD 0 /* Disallow further receives. */ ++#define SHUT_WR 1 /* Disallow further sends. */ ++#define SHUT_RDWR 2 /* Disallow further sends/receives. */ ++ ++struct iovec { ++ void *iov_base; /* Base address. */ ++ size_t iov_len; /* Length. */ ++}; ++ ++struct msghdr { ++ void *msg_name; /* optional address */ ++ socklen_t msg_namelen; /* size of address */ ++ struct iovec *msg_iov; /* scatter/gather array */ ++ int msg_iovlen; /* # elements in msg_iov */ ++ void *msg_control; /* ancillary data, see below */ ++ socklen_t msg_controllen; /* ancillary data buffer len */ ++ int msg_flags; /* flags on received message */ ++}; ++ ++/* BSD-compatible socket API. */ ++int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ++int bind(int, const struct sockaddr *, socklen_t); ++int connect(int, const struct sockaddr *, socklen_t); ++int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); ++int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); ++int getsockopt(int, int, int, void * __restrict, socklen_t * __restrict); ++int listen(int, int); ++ssize_t recv(int, void *, size_t, int); ++ssize_t recvfrom(int, void * __restrict, size_t, int, ++ struct sockaddr * __restrict, socklen_t * __restrict); ++ssize_t recvmsg(int s, struct msghdr *msg, int flags); ++ssize_t send(int, const void *, size_t, int); ++ssize_t sendto(int, const void *, ++ size_t, int, const struct sockaddr *, socklen_t); ++ssize_t sendmsg(int s, const struct msghdr *msg, int flags); ++int setsockopt(int, int, int, const void *, socklen_t); ++int shutdown(int, int); ++int socket(int, int, int); ++ ++/* sceNetInet socket API. */ ++int sceNetInetAccept(int s, struct sockaddr *addr, socklen_t *addrlen); ++int sceNetInetBind(int s, const struct sockaddr *my_addr, socklen_t addrlen); ++int sceNetInetConnect(int s, const struct sockaddr *serv_addr, socklen_t addrlen); ++int sceNetInetGetsockopt(int s, int level, int optname, void *optval, socklen_t *optlen); ++int sceNetInetListen(int s, int backlog); ++ssize_t sceNetInetRecv(int s, void *buf, size_t len, int flags); ++ssize_t sceNetInetRecvfrom(int s, void *buf, size_t flags, int, struct sockaddr *from, socklen_t *fromlen); ++ssize_t sceNetInetRecvmsg(int s, struct msghdr *msg, int flags); ++ssize_t sceNetInetSend(int s, const void *buf, size_t len, int flags); ++ssize_t sceNetInetSendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); ++ssize_t sceNetInetSendmsg(int s, const struct msghdr *msg, int flags); ++int sceNetInetSetsockopt(int s, int level, int optname, const void *optval, socklen_t optlen); ++int sceNetInetShutdown(int s, int how); ++int sceNetInetSocket(int domain, int type, int protocol); ++int sceNetInetClose(int s); ++int sceNetInetGetErrno(void); ++int sceNetInetGetsockname(int s, struct sockaddr *name, socklen_t *namelen); ++int sceNetInetGetpeername(int s, struct sockaddr *name, socklen_t *namelen); ++ ++#ifdef __cplusplus ++} ++#endif ++ ++#endif /* !_SYS_SOCKET_H_ */ +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/syscalls.c newlib-1.19.0-psp/newlib/libc/sys/psp/syscalls.c +--- newlib-1.19.0/newlib/libc/sys/psp/syscalls.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/syscalls.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,19 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * syscalls.c - functions in systeam namespace goes here ++ * ++ * Copyright (c) 2007 Alper Akcan "anhanguera" ++ * ++ */ ++ ++#include ++ ++int __psp_set_errno (int code); ++ ++time_t _times (time_t *t) ++{ ++ return __psp_set_errno(sceKernelLibcTime(t)); ++} +diff -Nbaur newlib-1.19.0/newlib/libc/sys/psp/xprintf.c newlib-1.19.0-psp/newlib/libc/sys/psp/xprintf.c +--- newlib-1.19.0/newlib/libc/sys/psp/xprintf.c 1970-01-01 01:00:00.000000000 +0100 ++++ newlib-1.19.0-psp/newlib/libc/sys/psp/xprintf.c 2011-07-29 14:24:57.000000000 +0100 +@@ -0,0 +1,984 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * xprintf.c - Various *printf functions. ++ * ++ * Copyright (c) 2005 Marcus R. Brown ++ * Copyright (c) 2005 James Forshaw ++ * Copyright (c) 2005 John Kelley ++ * ++ * $Id: newlib-1.13.0.patch 1891 2006-05-02 15:32:28Z raf $ ++ */ ++/* Code borrowed from mysql's xprintf.c, by Richard Hipp */ ++/* This xprintf.c file on which this one is based is in public domain. */ ++ ++#include ++#include ++#include ++ ++#include ++#include ++ ++/* ++** The maximum number of digits of accuracy in a floating-point conversion. ++*/ ++#define MAXDIG 20 ++ ++/* Instead of including ctype.h, use the isdigit() prototype because psplibc doesn't ++ know about newlib, and newlib defines isdigit as a macro that uses _ctype_. */ ++int isdigit(int __c); ++ ++int vxprintf(void (*func)(char *, int, void *), void *arg, const char *format, va_list ap); ++ ++#ifdef F_vxprintf ++/* ++** Conversion types fall into various categories as defined by the ++** following enumeration. ++*/ ++ ++enum e_type { /* The type of the format field */ ++ RADIX, /* Integer types. %d, %x, %o, and so forth */ ++ FLOAT, /* Floating point. %f */ ++ EXP, /* Exponentional notation. %e and %E */ ++ GENERIC, /* Floating or exponential, depending on exponent. %g */ ++ SIZE, /* Return number of characters processed so far. %n */ ++ STRING, /* Strings. %s */ ++ PERCENT, /* Percent symbol. %% */ ++ CHAR, /* Characters. %c */ ++ ERROR, /* Used to indicate no such conversion type */ ++/* The rest are extensions, not normally found in printf() */ ++ CHARLIT, /* Literal characters. %' */ ++ SEEIT, /* Strings with visible control characters. %S */ ++ MEM_STRING, /* A string which should be deleted after use. %z */ ++ ORDINAL, /* 1st, 2nd, 3rd and so forth */ ++}; ++ ++/* ++** Each builtin conversion character (ex: the 'd' in "%d") is described ++** by an instance of the following structure ++*/ ++typedef struct s_info { /* Information about each format field */ ++ int fmttype; /* The format field code letter */ ++ int base; /* The base for radix conversion */ ++ char *charset; /* The character set for conversion */ ++ int flag_signed; /* Is the quantity signed? */ ++ char *prefix; /* Prefix on non-zero values in alt format */ ++ enum e_type type; /* Conversion paradigm */ ++} info; ++ ++/* ++** The following table is searched linearly, so it is good to put the ++** most frequently used conversion types first. ++*/ ++static info fmtinfo[] = { ++ { 'd', 10, "0123456789", 1, 0, RADIX, }, ++ { 's', 0, 0, 0, 0, STRING, }, ++ { 'S', 0, 0, 0, 0, SEEIT, }, ++ { 'z', 0, 0, 0, 0, MEM_STRING, }, ++ { 'c', 0, 0, 0, 0, CHAR, }, ++ { 'o', 8, "01234567", 0, "0", RADIX, }, ++ { 'u', 10, "0123456789", 0, 0, RADIX, }, ++ { 'x', 16, "0123456789abcdef", 0, "x0", RADIX, }, ++ { 'X', 16, "0123456789ABCDEF", 0, "X0", RADIX, }, ++ { 'r', 10, "0123456789", 0, 0, ORDINAL, }, ++ { 'f', 0, 0, 1, 0, FLOAT, }, ++ { 'e', 0, "e", 1, 0, EXP, }, ++ { 'E', 0, "E", 1, 0, EXP, }, ++ { 'g', 0, "e", 1, 0, GENERIC, }, ++ { 'G', 0, "E", 1, 0, GENERIC, }, ++ { 'i', 10, "0123456789", 1, 0, RADIX, }, ++ { 'n', 0, 0, 0, 0, SIZE, }, ++ { 'S', 0, 0, 0, 0, SEEIT, }, ++ { '%', 0, 0, 0, 0, PERCENT, }, ++ { 'b', 2, "01", 0, "b0", RADIX, }, /* Binary notation */ ++ { 'p', 16, "0123456789ABCDEF", 0, "x0", RADIX, }, /* Pointers */ ++ { '\'', 0, 0, 0, 0, CHARLIT, }, /* Literal char */ ++}; ++#define NINFO (sizeof(fmtinfo)/sizeof(info)) /* Size of the fmtinfo table */ ++ ++/* ++** If NOFLOATINGPOINT is defined, then none of the floating point ++** conversions will work. ++*/ ++#ifndef NOFLOATINGPOINT ++/* ++** "*val" is a double such that 0.1 <= *val < 10.0 ++** Return the ascii code for the leading digit of *val, then ++** multiply "*val" by 10.0 to renormalize. ++** ++** Example: ++** input: *val = 3.14159 ++** output: *val = 1.4159 function return = '3' ++** ++** The counter *cnt is incremented each time. After counter exceeds ++** 16 (the number of significant digits in a 64-bit float) '0' is ++** always returned. ++*/ ++static int getdigit(long double *val, int *cnt){ ++ int digit; ++ long double d; ++ if( (*cnt)++ >= MAXDIG ) return '0'; ++ digit = (int)*val; ++ d = digit; ++ digit += '0'; ++ *val = (*val - d)*10.0; ++ return digit; ++} ++#endif ++ ++/* ++** Setting the size of the BUFFER involves trade-offs. No %d or %f ++** conversion can have more than BUFSIZE characters. If the field ++** width is larger than BUFSIZE, it is silently shortened. On the ++** other hand, this routine consumes more stack space with larger ++** BUFSIZEs. If you have some threads for which you want to minimize ++** stack space, you should keep BUFSIZE small. ++*/ ++#define BUFSIZE 100 /* Size of the output buffer */ ++ ++/* ++** The root program. All variations call this core. ++** ++** INPUTS: ++** func This is a pointer to a function taking three arguments ++** 1. A pointer to the list of characters to be output ++** (Note, this list is NOT null terminated.) ++** 2. An integer number of characters to be output. ++** (Note: This number might be zero.) ++** 3. A pointer to anything. Same as the "arg" parameter. ++** ++** arg This is the pointer to anything which will be passed as the ++** third argument to "func". Use it for whatever you like. ++** ++** fmt This is the format string, as in the usual print. ++** ++** ap This is a pointer to a list of arguments. Same as in ++** vfprint. ++** ++** OUTPUTS: ++** The return value is the total number of characters sent to ++** the function "func". Returns -1 on a error. ++** ++** Note that the order in which automatic variables are declared below ++** seems to make a big difference in determining how fast this beast ++** will run. ++*/ ++ ++int vxprintf(func,arg,format,ap) ++ void (*func)(char*,int,void*); ++ void *arg; ++ const char *format; ++ va_list ap; ++{ ++ register const char *fmt; /* The format string. */ ++ register int c; /* Next character in the format string */ ++ register char *bufpt; /* Pointer to the conversion buffer */ ++ register int precision; /* Precision of the current field */ ++ register int length; /* Length of the field */ ++ register int idx; /* A general purpose loop counter */ ++ int count; /* Total number of characters output */ ++ int width; /* Width of the current field */ ++ int flag_leftjustify; /* True if "-" flag is present */ ++ int flag_plussign; /* True if "+" flag is present */ ++ int flag_blanksign; /* True if " " flag is present */ ++ int flag_alternateform; /* True if "#" flag is present */ ++ int flag_zeropad; /* True if field width constant starts with zero */ ++ int flag_long; /* True if "l" flag is present */ ++ int flag_center; /* True if "=" flag is present */ ++ unsigned long long longvalue; /* Value for integer types */ ++ ++ long double realvalue; /* Value for real types */ ++ info *infop; /* Pointer to the appropriate info structure */ ++ char buf[BUFSIZE]; /* Conversion buffer */ ++ char prefix; /* Prefix character. "+" or "-" or " " or '\0'. */ ++ int errorflag = 0; /* True if an error is encountered */ ++ enum e_type xtype; /* Conversion paradigm */ ++ char *zMem = 0; /* String to be freed */ ++ static char spaces[] = ++ " "; ++#define SPACESIZE (sizeof(spaces)-1) ++#ifndef NOFLOATINGPOINT ++ int exp; /* exponent of real numbers */ ++ long double rounder; /* Used for rounding floating point values */ ++ int flag_dp; /* True if decimal point should be shown */ ++ int flag_rtz; /* True if trailing zeros should be removed */ ++ int flag_exp; /* True to force display of the exponent */ ++ int nsd; /* Number of significant digits returned */ ++#endif ++ ++ fmt = format; /* Put in a register for speed */ ++ count = length = 0; ++ bufpt = 0; ++ for(; (c=(*fmt))!=0; ++fmt){ ++ if( c!='%' ){ ++ register int amt; ++ bufpt = (char *)fmt; ++ amt = 1; ++ while( (c=(*++fmt))!='%' && c!=0 ) amt++; ++ (*func)(bufpt,amt,arg); ++ count += amt; ++ if( c==0 ) break; ++ } ++ if( (c=(*++fmt))==0 ){ ++ errorflag = 1; ++ (*func)("%",1,arg); ++ count++; ++ break; ++ } ++ /* Find out what flags are present */ ++ flag_leftjustify = flag_plussign = flag_blanksign = ++ flag_alternateform = flag_zeropad = flag_center = 0; ++ do{ ++ switch( c ){ ++ case '-': flag_leftjustify = 1; c = 0; break; ++ case '+': flag_plussign = 1; c = 0; break; ++ case ' ': flag_blanksign = 1; c = 0; break; ++ case '#': flag_alternateform = 1; c = 0; break; ++ case '0': flag_zeropad = 1; c = 0; break; ++ case '=': flag_center = 1; c = 0; break; ++ default: break; ++ } ++ }while( c==0 && (c=(*++fmt))!=0 ); ++ if( flag_center ) flag_leftjustify = 0; ++ /* Get the field width */ ++ width = 0; ++ if( c=='*' ){ ++ width = va_arg(ap,int); ++ if( width<0 ){ ++ flag_leftjustify = 1; ++ width = -width; ++ } ++ c = *++fmt; ++ }else{ ++ while( isdigit(c) ){ ++ width = width*10 + c - '0'; ++ c = *++fmt; ++ } ++ } ++ if( width > BUFSIZE-10 ){ ++ width = BUFSIZE-10; ++ } ++ /* Get the precision */ ++ if( c=='.' ){ ++ precision = 0; ++ c = *++fmt; ++ if( c=='*' ){ ++ precision = va_arg(ap,int); ++#ifndef COMPATIBILITY ++ /* This is sensible, but SUN OS 4.1 doesn't do it. */ ++ if( precision<0 ) precision = -precision; ++#endif ++ c = *++fmt; ++ }else{ ++ while( isdigit(c) ){ ++ precision = precision*10 + c - '0'; ++ c = *++fmt; ++ } ++ } ++ /* Limit the precision to prevent overflowing buf[] during conversion */ ++ if( precision>BUFSIZE-40 ) precision = BUFSIZE-40; ++ }else{ ++ precision = -1; ++ } ++ /* Get the conversion type modifier */ ++ if( c=='l' ){ ++ flag_long = 1; ++ c = *++fmt; ++ if( c == 'l' ){ ++ flag_long = 2; ++ c = *++fmt; ++ } ++ }else{ ++ flag_long = 0; ++ } ++ /* Fetch the info entry for the field */ ++ infop = 0; ++ for(idx=0; idxtype; ++ } ++ ++ /* ++ ** At this point, variables are initialized as follows: ++ ** ++ ** flag_alternateform TRUE if a '#' is present. ++ ** flag_plussign TRUE if a '+' is present. ++ ** flag_leftjustify TRUE if a '-' is present or if the ++ ** field width was negative. ++ ** flag_zeropad TRUE if the width began with 0. ++ ** flag_long TRUE if the letter 'l' (ell) prefixed ++ ** the conversion character. ++ ** flag_blanksign TRUE if a ' ' is present. ++ ** width The specified field width. This is ++ ** always non-negative. Zero is the default. ++ ** precision The specified precision. The default ++ ** is -1. ++ ** xtype The class of the conversion. ++ ** infop Pointer to the appropriate info struct. ++ */ ++ switch( xtype ){ ++ case ORDINAL: ++ case RADIX: ++ if(( flag_long>1 )&&( infop->flag_signed )){ ++ signed long long t = va_arg(ap,signed long long); ++ longvalue = t; ++ }else if(( flag_long>1 )&&( !infop->flag_signed )){ ++ unsigned long long t = va_arg(ap,unsigned long long); ++ longvalue = t; ++ }else if(( flag_long )&&( infop->flag_signed )){ ++ signed long t = va_arg(ap,signed long); ++ longvalue = t; ++ }else if(( flag_long )&&( !infop->flag_signed )){ ++ unsigned long t = va_arg(ap,unsigned long); ++ longvalue = t; ++ }else if(( !flag_long )&&( infop->flag_signed )){ ++ signed int t = va_arg(ap,signed int) & ((unsigned long) 0xffffffff); ++ longvalue = t; ++ }else{ ++ unsigned int t = va_arg(ap,unsigned int) & ((unsigned long) 0xffffffff); ++ longvalue = t; ++ } ++#ifdef COMPATIBILITY ++ /* For the format %#x, the value zero is printed "0" not "0x0". ++ ** I think this is stupid. */ ++ if( longvalue==0 ) flag_alternateform = 0; ++#else ++ /* More sensible: turn off the prefix for octal (to prevent "00"), ++ ** but leave the prefix for hex. */ ++ if( longvalue==0 && infop->base==8 ) flag_alternateform = 0; ++#endif ++ if( infop->flag_signed ){ ++ if( *(long long*)&longvalue<0 ){ ++ longvalue = -*(long long*)&longvalue; ++ prefix = '-'; ++ }else if( flag_plussign ) prefix = '+'; ++ else if( flag_blanksign ) prefix = ' '; ++ else prefix = 0; ++ }else prefix = 0; ++ if( flag_zeropad && precision3 || (b>10 && b<14) ){ ++ bufpt[0] = 't'; ++ bufpt[1] = 'h'; ++ }else if( a==1 ){ ++ bufpt[0] = 's'; ++ bufpt[1] = 't'; ++ }else if( a==2 ){ ++ bufpt[0] = 'n'; ++ bufpt[1] = 'd'; ++ }else if( a==3 ){ ++ bufpt[0] = 'r'; ++ bufpt[1] = 'd'; ++ } ++ } ++ { ++ register char *cset; /* Use registers for speed */ ++ register int base; ++ cset = infop->charset; ++ base = infop->base; ++ do{ /* Convert to ascii */ ++ *(--bufpt) = cset[longvalue%base]; ++ longvalue = longvalue/base; ++ }while( longvalue>0 ); ++ } ++ length = (int)(&buf[BUFSIZE]-bufpt); ++ if(infop->fmttype == 'p') ++ { ++ precision = 8; ++ flag_alternateform = 1; ++ } ++ ++ for(idx=precision-length; idx>0; idx--){ ++ *(--bufpt) = '0'; /* Zero pad */ ++ } ++ if( prefix ) *(--bufpt) = prefix; /* Add sign */ ++ if( flag_alternateform && infop->prefix ){ /* Add "0" or "0x" */ ++ char *pre, x; ++ pre = infop->prefix; ++ if( *bufpt!=pre[0] ){ ++ for(pre=infop->prefix; (x=(*pre))!=0; pre++) *(--bufpt) = x; ++ } ++ } ++ ++ length = (int)(&buf[BUFSIZE]-bufpt); ++ break; ++ case FLOAT: ++ case EXP: ++ case GENERIC: ++ realvalue = va_arg(ap,double); ++#ifndef NOFLOATINGPOINT ++ if( precision<0 ) precision = 6; /* Set default precision */ ++ if( precision>BUFSIZE-10 ) precision = BUFSIZE-10; ++ if( realvalue<0.0 ){ ++ realvalue = -realvalue; ++ prefix = '-'; ++ }else{ ++ if( flag_plussign ) prefix = '+'; ++ else if( flag_blanksign ) prefix = ' '; ++ else prefix = 0; ++ } ++ if( infop->type==GENERIC && precision>0 ) precision--; ++ rounder = 0.0; ++#ifdef COMPATIBILITY ++ /* Rounding works like BSD when the constant 0.4999 is used. Wierd! */ ++ for(idx=precision, rounder=0.4999; idx>0; idx--, rounder*=0.1); ++#else ++ /* It makes more sense to use 0.5 */ ++ if( precision>MAXDIG-1 ) idx = MAXDIG-1; ++ else idx = precision; ++ for(rounder=0.5; idx>0; idx--, rounder*=0.1); ++#endif ++ if( infop->type==FLOAT ) realvalue += rounder; ++ /* Normalize realvalue to within 10.0 > realvalue >= 1.0 */ ++ exp = 0; ++ if( realvalue>0.0 ){ ++ int k = 0; ++ while( realvalue>=1e8 && k++<100 ){ realvalue *= 1e-8; exp+=8; } ++ while( realvalue>=10.0 && k++<100 ){ realvalue *= 0.1; exp++; } ++ while( realvalue<1e-8 && k++<100 ){ realvalue *= 1e8; exp-=8; } ++ while( realvalue<1.0 && k++<100 ){ realvalue *= 10.0; exp--; } ++ if( k>=100 ){ ++ bufpt = "NaN"; ++ length = 3; ++ break; ++ } ++ } ++ bufpt = buf; ++ /* ++ ** If the field type is GENERIC, then convert to either EXP ++ ** or FLOAT, as appropriate. ++ */ ++ flag_exp = xtype==EXP; ++ if( xtype!=FLOAT ){ ++ realvalue += rounder; ++ if( realvalue>=10.0 ){ realvalue *= 0.1; exp++; } ++ } ++ if( xtype==GENERIC ){ ++ flag_rtz = !flag_alternateform; ++ if( exp<-4 || exp>precision ){ ++ xtype = EXP; ++ }else{ ++ precision = precision - exp; ++ xtype = FLOAT; ++ } ++ }else{ ++ flag_rtz = 0; ++ } ++ /* ++ ** The "exp+precision" test causes output to be of type EXP if ++ ** the precision is too large to fit in buf[]. ++ */ ++ nsd = 0; ++ if( xtype==FLOAT && exp+precision0 || flag_alternateform); ++ if( prefix ) *(bufpt++) = prefix; /* Sign */ ++ if( exp<0 ) *(bufpt++) = '0'; /* Digits before "." */ ++ else for(; exp>=0; exp--) *(bufpt++) = getdigit(&realvalue,&nsd); ++ if( flag_dp ) *(bufpt++) = '.'; /* The decimal point */ ++ for(exp++; exp<0 && precision>0; precision--, exp++){ ++ *(bufpt++) = '0'; ++ } ++ while( (precision--)>0 ) *(bufpt++) = getdigit(&realvalue,&nsd); ++ *(bufpt--) = 0; /* Null terminate */ ++ if( flag_rtz && flag_dp ){ /* Remove trailing zeros and "." */ ++ while( bufpt>=buf && *bufpt=='0' ) *(bufpt--) = 0; ++ if( bufpt>=buf && *bufpt=='.' ) *(bufpt--) = 0; ++ } ++ bufpt++; /* point to next free slot */ ++ }else{ /* EXP or GENERIC */ ++ flag_dp = (precision>0 || flag_alternateform); ++ if( prefix ) *(bufpt++) = prefix; /* Sign */ ++ *(bufpt++) = getdigit(&realvalue,&nsd); /* First digit */ ++ if( flag_dp ) *(bufpt++) = '.'; /* Decimal point */ ++ while( (precision--)>0 ) *(bufpt++) = getdigit(&realvalue,&nsd); ++ bufpt--; /* point to last digit */ ++ if( flag_rtz && flag_dp ){ /* Remove tail zeros */ ++ while( bufpt>=buf && *bufpt=='0' ) *(bufpt--) = 0; ++ if( bufpt>=buf && *bufpt=='.' ) *(bufpt--) = 0; ++ } ++ bufpt++; /* point to next free slot */ ++ if( exp || flag_exp ){ ++ *(bufpt++) = infop->charset[0]; ++ if( exp<0 ){ *(bufpt++) = '-'; exp = -exp; } /* sign of exp */ ++ else { *(bufpt++) = '+'; } ++ if( exp>=100 ){ ++ *(bufpt++) = (exp/100)+'0'; /* 100's digit */ ++ exp %= 100; ++ } ++ *(bufpt++) = exp/10+'0'; /* 10's digit */ ++ *(bufpt++) = exp%10+'0'; /* 1's digit */ ++ } ++ } ++ /* The converted number is in buf[] and zero terminated. Output it. ++ ** Note that the number is in the usual order, not reversed as with ++ ** integer conversions. */ ++ length = (int)(bufpt-buf); ++ bufpt = buf; ++ ++ /* Special case: Add leading zeros if the flag_zeropad flag is ++ ** set and we are not left justified */ ++ if( flag_zeropad && !flag_leftjustify && length < width){ ++ int i; ++ int nPad = width - length; ++ for(i=width; i>=nPad; i--){ ++ bufpt[i] = bufpt[i-nPad]; ++ } ++ i = prefix!=0; ++ while( nPad-- ) bufpt[i++] = '0'; ++ length = width; ++ } ++#endif ++ break; ++ case SIZE: ++ *(va_arg(ap,int*)) = count; ++ length = width = 0; ++ break; ++ case PERCENT: ++ buf[0] = '%'; ++ bufpt = buf; ++ length = 1; ++ break; ++ case CHARLIT: ++ case CHAR: ++ c = buf[0] = (xtype==CHAR ? va_arg(ap,int) : *++fmt); ++ if( precision>=0 ){ ++ for(idx=1; idx=0 && precision=0x7f ){ ++ buf[i++] = '^'; ++ buf[i] = (c&0x1f)+0x40; ++ }else{ ++ buf[i] = c; ++ } ++ } ++ bufpt = buf; ++ length = i; ++ if( precision>=0 && precision0 ){ ++ if( flag_center ){ ++ nspace = nspace/2; ++ width -= nspace; ++ flag_leftjustify = 1; ++ } ++ count += nspace; ++ while( nspace>=SPACESIZE ){ ++ (*func)(spaces,SPACESIZE,arg); ++ nspace -= SPACESIZE; ++ } ++ if( nspace>0 ) (*func)(spaces,nspace,arg); ++ } ++ } ++ if( length>0 ){ ++ (*func)(bufpt,length,arg); ++ count += length; ++ } ++ if( xtype==MEM_STRING && zMem ){ ++ free(zMem); ++ } ++ if( flag_leftjustify ){ ++ register int nspace; ++ nspace = width-length; ++ if( nspace>0 ){ ++ count += nspace; ++ while( nspace>=SPACESIZE ){ ++ (*func)(spaces,SPACESIZE,arg); ++ nspace -= SPACESIZE; ++ } ++ if( nspace>0 ) (*func)(spaces,nspace,arg); ++ } ++ } ++ }/* End for loop over the format string */ ++ return errorflag ? -1 : count; ++} /* End of function */ ++#endif ++ ++#ifdef F__xprintf ++/* ++** This non-standard function is still occasionally useful.... ++*/ ++int xprintf( ++ void (*func)(char*,int,void*), ++ void *arg, ++ const char *format, ++ ... ++){ ++ va_list ap; ++ va_start(ap,format); ++ return vxprintf(func,arg,format,ap); ++} ++#endif ++ ++/* ++** Now for string-print, also as found in any standard library. ++** Add to this the snprint function which stops added characters ++** to the string at a given length. ++** ++** Note that snprint returns the length of the string as it would ++** be if there were no limit on the output. ++*/ ++struct s_strargument { /* Describes the string being written to */ ++ char *next; /* Next free slot in the string */ ++ char *last; /* Last available slot in the string */ ++}; ++ ++void __sout(char *, int, void *); ++#ifdef F___sout ++void __sout(txt,amt,arg) ++ char *txt; ++ int amt; ++ void *arg; ++{ ++ register char *head; ++ register const char *t; ++ register int a; ++ register char *tail; ++ a = amt; ++ t = txt; ++ head = ((struct s_strargument*)arg)->next; ++ tail = ((struct s_strargument*)arg)->last; ++ if( tail ){ ++ while( a-- >0 && head0 ) *(head++) = *(t++); ++ } ++ *head = 0; ++ ((struct s_strargument*)arg)->next = head; ++} ++#endif ++ ++#ifdef F_vsnprintf ++int vsnprintf(char *buf, size_t n, const char *fmt, va_list ap){ ++ struct s_strargument arg; ++ arg.next = buf; ++ arg.last = &buf[n-1]; ++ *buf = 0; ++ return vxprintf(__sout,&arg,fmt,ap); ++} ++#endif ++ ++#ifdef F_snprintf ++int snprintf(char *str, size_t sz, const char *format, ...) ++{ ++ va_list args; ++ struct s_strargument arg; ++ int ret; ++ ++ arg.next = str; ++ arg.last = &str[sz-1]; ++ ++ va_start(args, format); ++ ret = vxprintf(__sout, &arg, format, args); ++ va_end(args); ++ ++ return ret; ++} ++#endif ++ ++#ifdef F_vsprintf ++int vsprintf(char *buf, const char *fmt, va_list ap){ ++ struct s_strargument arg; ++ arg.next = buf; ++ arg.last = NULL; ++ *buf = 0; ++ return vxprintf(__sout,&arg,fmt,ap); ++} ++#endif ++ ++#ifdef F_sprintf ++int sprintf (char *str, const char *format, ...) ++{ ++ va_list args; ++ struct s_strargument arg; ++ int ret; ++ ++ arg.next = str; ++ arg.last = NULL; ++ ++ va_start(args, format); ++ ret = vxprintf(__sout, &arg, format, args); ++ va_end(args); ++ ++ return ret; ++} ++#endif ++ ++/* ++** The following section of code handles the mprintf routine, that ++** writes to memory obtained from malloc(). ++*/ ++ ++/* This structure is used to store state information about the ++** write in progress ++*/ ++struct sgMprintf { ++ char *zBase; /* A base allocation */ ++ char *zText; /* The string collected so far */ ++ int nChar; /* Length of the string so far */ ++ int nAlloc; /* Amount of space allocated in zText */ ++}; ++ ++void __mout(char *, int, void*); ++ ++#ifdef F___mout ++/* The xprintf callback function. */ ++void __mout(zNewText,nNewChar,arg) ++ char *zNewText; ++ int nNewChar; ++ void *arg; ++{ ++ struct sgMprintf *pM = (struct sgMprintf*)arg; ++ if( pM->nChar + nNewChar + 1 > pM->nAlloc ){ ++ pM->nAlloc = pM->nChar + nNewChar*2 + 1; ++ if( pM->zText==pM->zBase ){ ++ pM->zText = malloc(pM->nAlloc); ++ if( pM->zText && pM->nChar ) memcpy(pM->zText,pM->zBase,pM->nChar); ++ }else{ ++ pM->zText = realloc(pM->zText, pM->nAlloc); ++ } ++ } ++ if( pM->zText ){ ++ memcpy(&pM->zText[pM->nChar], zNewText, nNewChar); ++ pM->nChar += nNewChar; ++ pM->zText[pM->nChar] = 0; ++ } ++} ++#endif ++ ++/* ++** mprintf() works like printf(), but allocations memory to hold the ++** resulting string and returns a pointer to the allocated memory. ++** ++** We changed the name to TclMPrint() to conform with the Tcl private ++** routine naming conventions. ++*/ ++ ++#ifdef F_mprintf ++char *mprintf(const char *zFormat, ...){ ++ va_list ap; ++ struct sgMprintf sMprintf; ++ char *zNew; ++ char zBuf[200]; ++ ++ va_start(ap,zFormat); ++ sMprintf.nChar = 0; ++ sMprintf.nAlloc = sizeof(zBuf); ++ sMprintf.zText = zBuf; ++ sMprintf.zBase = zBuf; ++ vxprintf(__mout,&sMprintf,zFormat,ap); ++ va_end(ap); ++ if( sMprintf.zText==sMprintf.zBase ){ ++ zNew = malloc( sMprintf.nChar+1 ); ++ if( zNew ) strcpy(zNew,zBuf); ++ }else{ ++ zNew = realloc(sMprintf.zText,sMprintf.nChar+1); ++ } ++ ++ return zNew; ++} ++#endif ++ ++/* This is the varargs version of mprintf. ++** ++** The name is changed to TclVMPrintf() to conform with Tcl naming ++** conventions. ++*/ ++#ifdef F_vmprintf ++char *vmprintf(const char *zFormat,va_list ap){ ++ struct sgMprintf sMprintf; ++ char zBuf[200]; ++ sMprintf.nChar = 0; ++ sMprintf.zText = zBuf; ++ sMprintf.nAlloc = sizeof(zBuf); ++ sMprintf.zBase = zBuf; ++ vxprintf(__mout,&sMprintf,zFormat,ap); ++ if( sMprintf.zText==sMprintf.zBase ){ ++ sMprintf.zText = malloc( strlen(zBuf)+1 ); ++ if( sMprintf.zText ) strcpy(sMprintf.zText,zBuf); ++ }else{ ++ sMprintf.zText = realloc(sMprintf.zText,sMprintf.nChar+1); ++ } ++ return sMprintf.zText; ++} ++#endif ++ ++#ifdef F_asprintf ++int asprintf(char ** strp, const char *zFormat, ...){ ++ va_list ap; ++ struct sgMprintf sMprintf; ++ char *zNew; ++ char zBuf[200]; ++ ++ va_start(ap,zFormat); ++ sMprintf.nChar = 0; ++ sMprintf.nAlloc = sizeof(zBuf); ++ sMprintf.zText = zBuf; ++ sMprintf.zBase = zBuf; ++ vxprintf(__mout,&sMprintf,zFormat,ap); ++ va_end(ap); ++ if( sMprintf.zText==sMprintf.zBase ){ ++ zNew = malloc( sMprintf.nChar+1 ); ++ if( zNew ) strcpy(zNew,zBuf); ++ }else{ ++ zNew = realloc(sMprintf.zText,sMprintf.nChar+1); ++ } ++ ++ *strp = zNew; ++ ++ return sMprintf.nChar+1; ++} ++#endif ++ ++#ifdef F_vasprintf ++int vasprintf(char **strp, const char *format, va_list ap) { ++ struct sgMprintf sMprintf; ++ char zBuf[200]; ++ sMprintf.nChar = 0; ++ sMprintf.zText = zBuf; ++ sMprintf.nAlloc = sizeof(zBuf); ++ sMprintf.zBase = zBuf; ++ vxprintf(__mout,&sMprintf,format,ap); ++ if( sMprintf.zText==sMprintf.zBase ){ ++ sMprintf.zText = malloc( strlen(zBuf)+1 ); ++ if( sMprintf.zText ) strcpy(sMprintf.zText,zBuf); ++ }else{ ++ sMprintf.zText = realloc(sMprintf.zText,sMprintf.nChar+1); ++ } ++ *strp = sMprintf.zText; ++ return sMprintf.nChar; ++} ++#endif ++ ++/* ++** The following section of code handles the standard fprintf routines ++** for pthreads. ++*/ ++ ++void __fout(char *, int, void *); ++ ++#ifdef F___fout ++void __fout(zNewText,nNewChar,arg) ++ char *zNewText; ++ int nNewChar; ++ void *arg; ++{ ++ fwrite(zNewText,1,nNewChar,(FILE*)arg); ++} ++#endif ++ ++#ifdef F_fprintf ++/* The public interface routines */ ++int fprintf(FILE *pOut, const char *zFormat, ...){ ++ va_list ap; ++ int retc; ++ ++ va_start(ap,zFormat); ++ retc = vxprintf(__fout,pOut,zFormat,ap); ++ va_end(ap); ++ return retc; ++} ++#endif ++ ++#ifdef F_vfprintf ++int vfprintf(FILE *pOut, const char *zFormat, va_list ap){ ++ return vxprintf(__fout,pOut,zFormat,ap); ++} ++#endif ++ ++ ++#ifdef F_printf ++int printf(const char *format, ...) ++{ ++ va_list args; ++ int ret; ++ ++ va_start(args, format); ++ ret = vprintf(format, args); ++ va_end(args); ++ ++ return ret; ++} ++#endif ++ ++#ifdef F_vprintf ++int vprintf(const char *format, va_list args) ++{ ++ return vxprintf(__fout, stdout, format, args); ++} ++#endif ++ ++#ifdef F__sprintf_r ++/* Idiotic kludge to get around newlib stupidity. tmpnam() calls this ++ directly, but since sprintf() above replaces newlib's sprintf() (and ++ _sprintf_r()) we have to define this in order to link tmpnam(). */ ++int _sprintf_r(struct _reent *unused, char *str, const char *format, ...) ++{ ++ va_list args; ++ struct s_strargument arg; ++ int ret; ++ ++ (void) unused; ++ arg.next = str; ++ arg.last = NULL; ++ ++ va_start(args, format); ++ ret = vxprintf(__sout, &arg, format, args); ++ va_end(args); ++ ++ return ret; ++} ++#endif +diff -Nbaur newlib-1.19.0/newlib/libm/common/sf_isinff.c newlib-1.19.0-psp/newlib/libm/common/sf_isinff.c +--- newlib-1.19.0/newlib/libm/common/sf_isinff.c 2006-02-27 23:51:28.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/libm/common/sf_isinff.c 2011-07-29 14:24:57.000000000 +0100 +@@ -9,10 +9,32 @@ + _DEFUN (__isinff, (x), + float x) + { ++#ifdef __psp__ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 $8, %1\n" // t0 = f ++ "sll $9, $8, 1\n" // t1 = t0<<1 ++ "sra %0, $8, 30\n" // v = t0>>30 ++ "srl $9, $9, 24\n" // t1 = t1>>24 ++ "sll $8, $8, 9\n" // t0 = t0<<9 ++ "ori %0, %0, 0x0001\n" // v = v | 0x00000001 = (f>=0) ? +1 : -1 ++ "sltiu $9, $9, 0x00FF\n" // t1 = (t1<0xFF) ++ "movn %0, $0, $8\n" // v = (t0!=0) ? 0 : v if (frac!=0) is not Infinity ++ "movn %0, $0, $9\n" // v = (t1!=0) ? 0 : v if (exp!=0xFF) is not Infinity ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(x) ++ : "$8", "$9" ++ ); ++ return (v); ++#else + __int32_t ix; + GET_FLOAT_WORD(ix,x); + ix &= 0x7fffffff; + return FLT_UWORD_IS_INFINITE(ix); ++#endif + } + + #ifdef _DOUBLE_IS_32BITS +diff -Nbaur newlib-1.19.0/newlib/libm/common/sf_isnanf.c newlib-1.19.0-psp/newlib/libm/common/sf_isnanf.c +--- newlib-1.19.0/newlib/libm/common/sf_isnanf.c 2006-02-27 23:51:28.000000000 +0000 ++++ newlib-1.19.0-psp/newlib/libm/common/sf_isnanf.c 2011-07-29 14:24:57.000000000 +0100 +@@ -19,10 +19,33 @@ + _DEFUN (__isnanf, (x), + float x) + { ++#ifdef __psp__ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "lui %0, 0x807F\n" // ++ "mfc1 $8, %1\n" // t0 = f ++ "ori %0, %0, 0xFFFF\n" // v = 0x807FFFFF ++ "sll $9, $8, 1\n" // t1 = t0<<1 ++ "and %0, %0, $8\n" // v = v & t0 ++ "srl $9, $9, 24\n" // t1 = t1>>24 ++ "sll $8, $8, 9\n" // t0 = t0<<9 ++ "sltiu $9, $9, 0x00FF\n" // t1 = (t1<0xFF) ++ "movz %0, $0, $8\n" // v = (t0==0) ? 0 : v if (frac==0) is not NaN ++ "movn %0, $0, $9\n" // v = (t1!=0) ? 0 : v if (exp!=0xFF) is not NAN ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(x) ++ : "$8", "$9" ++ ); ++ return (v); ++#else + __int32_t ix; + GET_FLOAT_WORD(ix,x); + ix &= 0x7fffffff; + return FLT_UWORD_IS_NAN(ix); ++#endif + } + + #ifdef _DOUBLE_IS_32BITS diff --git a/dkpsp/patches/pspsdk.patch b/dkpsp/patches/pspsdk.patch new file mode 100644 index 0000000..94e1a72 --- /dev/null +++ b/dkpsp/patches/pspsdk.patch @@ -0,0 +1,2391 @@ +diff -Nbaur pspsdk/src/atrac3/pspatrac3.h pspsdk.new/src/atrac3/pspatrac3.h +--- pspsdk/src/atrac3/pspatrac3.h 2011-07-29 15:56:36.000000000 +0100 ++++ pspsdk.new/src/atrac3/pspatrac3.h 2011-07-29 14:56:08.000000000 +0100 +@@ -18,6 +18,57 @@ + extern "C" { + #endif + ++/* Error code definition */ ++#define PSP_ATRAC_SUCCESS SCE_OK ++ ++#define PSP_ATRAC_ERROR_PARAM_FAIL (0x80630001) ++#define PSP_ATRAC_ERROR_API_FAIL (0x80630002) ++#define PSP_ATRAC_ERROR_NO_ATRACID (0x80630003) ++#define PSP_ATRAC_ERROR_BAD_CODECTYPE (0x80630004) ++#define PSP_ATRAC_ERROR_BAD_ATRACID (0x80630005) ++#define PSP_ATRAC_ERROR_UNKNOWN_FORMAT (0x80630006) ++#define PSP_ATRAC_ERROR_UNMATCH_FORMAT (0x80630007) ++#define PSP_ATRAC_ERROR_BAD_DATA (0x80630008) ++#define PSP_ATRAC_ERROR_ALLDATA_IS_ONMEMORY (0x80630009) ++#define PSP_ATRAC_ERROR_UNSET_DATA (0x80630010) ++ ++#define PSP_ATRAC_ERROR_READSIZE_IS_TOO_SMALL (0x80630011) ++#define PSP_ATRAC_ERROR_NEED_SECOND_BUFFER (0x80630012) ++#define PSP_ATRAC_ERROR_READSIZE_OVER_BUFFER (0x80630013) ++#define PSP_ATRAC_ERROR_NOT_4BYTE_ALIGNMENT (0x80630014) ++#define PSP_ATRAC_ERROR_BAD_SAMPLE (0x80630015) ++#define PSP_ATRAC_ERROR_WRITEBYTE_FIRST_BUFFER (0x80630016) ++#define PSP_ATRAC_ERROR_WRITEBYTE_SECOND_BUFFER (0x80630017) ++#define PSP_ATRAC_ERROR_ADD_DATA_IS_TOO_BIG (0x80630018) ++ ++#define PSP_ATRAC_ERROR_UNSET_PARAM (0x80630021) ++#define PSP_ATRAC_ERROR_NONEED_SECOND_BUFFER (0x80630022) ++#define PSP_ATRAC_ERROR_NODATA_IN_BUFFER (0x80630023) ++#define PSP_ATRAC_ERROR_ALLDATA_WAS_DECODED (0x80630024) ++ ++/* Audio Codec ID */ ++#define PSP_ATRAC_AT3PLUS (0x00001000) ++#define PSP_ATRAC_AT3 (0x00001001) ++ ++/* Remain Frame typical Status */ ++#define PSP_ATRAC_ALLDATA_IS_ON_MEMORY (-1) ++#define PSP_ATRAC_NONLOOP_STREAM_DATA_IS_ON_MEMORY (-2) ++#define PSP_ATRAC_LOOP_STREAM_DATA_IS_ON_MEMORY (-3) ++ ++typedef struct { ++ u8 *pucWritePositionFirstBuf; ++ u32 uiWritableByteFirstBuf; ++ u32 uiMinWriteByteFirstBuf; ++ u32 uiReadPositionFirstBuf; ++ ++ u8 *pucWritePositionSecondBuf; ++ u32 uiWritableByteSecondBuf; ++ u32 uiMinWriteByteSecondBuf; ++ u32 uiReadPositionSecondBuf; ++} PspBufferInfo; ++ ++int sceAtracGetAtracID(uint uiCodecType); ++ + /** + * Creates a new Atrac ID from the specified data + * +@@ -132,6 +183,30 @@ + */ + int sceAtracGetMaxSample(int atracID, int *outMax); + ++int sceAtracGetBufferInfoForReseting(int atracID, u32 uiSample, PspBufferInfo *pBufferInfo); ++ ++int sceAtracGetChannel(int atracID, u32 *puiChannel); ++ ++int sceAtracGetInternalErrorInfo(int atracID, int *piResult); ++ ++int sceAtracGetLoopStatus(int atracID, int *piLoopNum, u32 *puiLoopStatus); ++ ++int sceAtracGetNextDecodePosition(int atracID, u32 *puiSamplePosition); ++ ++int sceAtracGetSecondBufferInfo(int atracID, u32 *puiPosition, u32 *puiDataByte); ++ ++int sceAtracGetSoundSample(int atracID, int *piEndSample, int *piLoopStartSample, int *piLoopEndSample); ++ ++int sceAtracResetPlayPosition(int atracID, u32 uiSample, u32 uiWriteByteFirstBuf, u32 uiWriteByteSecondBuf); ++ ++int sceAtracSetData(int atracID, u8 *pucBufferAddr, u32 uiBufferByte); ++ ++int sceAtracSetHalfwayBuffer(int atracID, u8 *pucBufferAddr, u32 uiReadByte, u32 uiBufferByte); ++ ++int sceAtracSetHalfwayBufferAndGetID(u8 *pucBufferAddr, u32 uiReadByte, u32 uiBufferByte); ++ ++int sceAtracSetSecondBuffer(int atracID, u8 *pucSecondBufferAddr, u32 uiSecondBufferByte); ++ + #ifdef __cplusplus + } + #endif +diff -Nbaur pspsdk/src/base/build.mak pspsdk.new/src/base/build.mak +--- pspsdk/src/base/build.mak 2011-07-29 15:56:34.000000000 +0100 ++++ pspsdk.new/src/base/build.mak 2011-07-29 14:58:45.000000000 +0100 +@@ -45,6 +45,11 @@ + CFLAGS += -D_PSP_FW_VERSION=$(PSP_FW_VERSION) + CXXFLAGS += -D_PSP_FW_VERSION=$(PSP_FW_VERSION) + ++# Objective-C selection. All Objective C code must be linked against libobjc.a ++ifeq ($(USE_OBJC),1) ++LIBS := $(LIBS) -lobjc ++endif ++ + ifeq ($(BUILD_PRX),1) + LDFLAGS := $(addprefix -L,$(LIBDIR)) -specs=$(PSPSDK)/lib/prxspecs -Wl,-q,-T$(PSPSDK)/lib/linkfile.prx $(LDFLAGS) + EXTRA_CLEAN += $(TARGET).elf +@@ -198,6 +203,12 @@ + %.c: %.exp + psp-build-exports -b $< > $@ + ++%.o: %.m ++ $(CC) $(CFLAGS) -c -o $@ $< ++ ++%.o: %.mm ++ $(CXX) $(CXXFLAGS) -c -o $@ $< ++ + clean: + -rm -f $(FINAL_TARGET) $(EXTRA_CLEAN) $(OBJS) $(PSP_EBOOT_SFO) $(PSP_EBOOT) $(EXTRA_TARGETS) + +diff -Nbaur pspsdk/src/base/build_prx.mak pspsdk.new/src/base/build_prx.mak +--- pspsdk/src/base/build_prx.mak 2011-07-29 15:56:34.000000000 +0100 ++++ pspsdk.new/src/base/build_prx.mak 2011-07-29 14:59:19.000000000 +0100 +@@ -37,6 +37,11 @@ + + CFLAGS += -D_PSP_FW_VERSION=$(PSP_FW_VERSION) + ++# Objective-C selection. All Objective C code must be linked against libobjc.a ++ifeq ($(USE_OBJC),1) ++LIBS := $(LIBS) -lobjc ++endif ++ + # Library selection. By default we link with Newlib's libc. Allow the + # user to link with PSPSDK's libc if USE_PSPSDK_LIBC is set to 1. + +@@ -80,6 +85,12 @@ + %.c: %.exp + psp-build-exports -b $< > $@ + ++%.o: %.m ++ $(CC) $(CFLAGS) -c -o $@ $< ++ ++%.o: %.mm ++ $(CXX) $(CXXFLAGS) -c -o $@ $< ++ + clean: $(EXTRA_CLEAN) + -rm -f $(FINAL_TARGET) $(TARGET).elf $(OBJS) + +diff -Nbaur pspsdk/src/display/pspdisplay.h pspsdk.new/src/display/pspdisplay.h +--- pspsdk/src/display/pspdisplay.h 2011-07-29 15:56:33.000000000 +0100 ++++ pspsdk.new/src/display/pspdisplay.h 2011-07-29 14:56:08.000000000 +0100 +@@ -122,6 +122,31 @@ + */ + int sceDisplayWaitVblankCB(void); + ++/** ++ * Get accumlated HSYNC count ++ */ ++int sceDisplayGetAccumulatedHcount(void); ++ ++/** ++ * Get current HSYNC count ++ */ ++int sceDisplayGetCurrentHcount(void); ++ ++/** ++ * Get number of frames per second ++ */ ++float sceDisplayGetFramePerSec(void); ++ ++/** ++ * Get whether or not frame buffer is being displayed ++ */ ++int sceDisplayIsForeground(void); ++ ++/** ++ * Test whether VBLANK is active ++ */ ++int sceDisplayIsVblank(void); ++ + #ifdef __cplusplus + } + #endif +diff -Nbaur pspsdk/src/fpu/Makefile.am pspsdk.new/src/fpu/Makefile.am +--- pspsdk/src/fpu/Makefile.am 2011-07-29 15:56:23.000000000 +0100 ++++ pspsdk.new/src/fpu/Makefile.am 2011-07-29 14:56:08.000000000 +0100 +@@ -14,5 +14,5 @@ + libpspfpuinclude_HEADERS = pspfpu.h + + lib_LIBRARIES = libpspfpu.a +-libpspfpu_a_SOURCES = pspfpu.c ++libpspfpu_a_SOURCES = pspfpu.c double.S + libpspfpu_a_LIBADD = +diff -Nbaur pspsdk/src/fpu/double.S pspsdk.new/src/fpu/double.S +--- pspsdk/src/fpu/double.S 1970-01-01 01:00:00.000000000 +0100 ++++ pspsdk.new/src/fpu/double.S 2011-07-29 14:56:08.000000000 +0100 +@@ -0,0 +1,196 @@ ++#define zero $0 /* wired zero */ ++#define at $1 /* assembler temp */ ++#define v0 $2 /* return value */ ++#define v1 $3 ++#define a0 $4 /* argument registers */ ++#define a1 $5 ++#define a2 $6 ++#define a3 $7 ++#define t0 $8 /* caller saved */ ++#define t1 $9 ++#define t2 $10 ++#define t3 $11 ++#define t4 $12 ++#define t5 $13 ++#define t6 $14 ++#define t7 $15 ++#define s0 $16 /* callee saved */ ++#define s1 $17 ++#define s2 $18 ++#define s3 $19 ++#define s4 $20 ++#define s5 $21 ++#define s6 $22 ++#define s7 $23 ++#define t8 $24 /* code generator */ ++#define t9 $25 ++#define k0 $26 /* kernel temporary */ ++#define k1 $27 ++#define gp $28 /* global pointer */ ++#define sp $29 /* stack pointer */ ++#define fp $30 /* frame pointer */ ++#define ra $31 /* return address */ ++ ++#define fv0 $f0 ++#define fv1 $f1 ++#define ft0 $f2 ++#define ft1 $f3 ++#define ft2 $f4 ++#define ft3 $f5 ++#define ft4 $f6 ++#define ft5 $f7 ++#define ft6 $f8 ++#define ft7 $f9 ++#define ft8 $f10 ++#define ft9 $f11 ++#define fa0 $f12 ++#define fa1 $f13 ++#define fa2 $f14 ++#define fa3 $f15 ++#define fa4 $f16 ++#define fa5 $f17 ++#define fa6 $f18 ++#define fa7 $f19 ++#define fs0 $f20 ++#define fs1 $f21 ++#define fs2 $f22 ++#define fs3 $f23 ++#define fs4 $f24 ++#define fs5 $f25 ++#define fs6 $f26 ++#define fs7 $f27 ++#define fs8 $f28 ++#define fs9 $f29 ++#define fs10 $f30 ++#define fs11 $f31 ++ ++.set noreorder ++.set noat ++ ++.text ++.align 4 ++ ++.global pspFpuFloatToDouble ++.global pspFpuDoubleToFloat ++ ++/** ++ * convert float to double ++ * double pspFpuFloatToDouble(float a); ++ * ++ * input: fa0 ++ * output: v0,v1 ++ * clobber: t0,t1 ++ */ ++.ent pspFpuFloatToDouble ++pspFpuFloatToDouble: ++ mfc1 t0, fa0 /* t0 = fa0 */ ++ ext t1, t0, 23, 8 /* t1 = (t0 >> 23) & 0xFF */ ++ beq t1, zero, ftod_denormal /* if (t1==0) goto ftod_denormal */ ++ addiu v0, t1, (-0x7F+0x3FF) /* v0 = t1 - 0x7F + 0x3FF */ ++ xori t1, t1, 0xFF /* t1 = t1 ^ 0xFF */ ++ li v1, 0x7FF /* v1 = 0x7FF */ ++ movz v0, v1, t1 /* v0 = (t1==0) ? v1 : v0 */ ++ ext v1, t0, 3, 20 /* v1 = (t0 >> 3 ) & 0x00FFFFF */ ++ ins v1, v0, 20, 11 /* v1 = (v1 & 0x800FFFFF) | ((v0<<20) & 0x7FF00000) */ ++ sll v0, t0, 29 /* v0 = (t0 << 29) */ ++ srl t0, t0, 31 /* t0 = (t0 >> 31) & 1 */ ++ jr ra /* return */ ++ ins v1, t0, 31, 1 /* v1 = (v1 & 0x7FFFFFFF) | ((t0<<31) & 0x80000000) */ ++ ++ftod_denormal: ++ sll v0, t0, 9 /* v0 = t0 << 9 */ ++ beql v0, zero, ftod_zero /* if (v0==0) goto ftod_zero */ ++ move v1, zero /* v1 = 0 */ ++ li v1, 0x380 /* v1 = 0x380 */ ++ clz t1, v0 /* t1 = clz(v0) */ ++ subu v0, v1, t1 /* v0 = v1 - v0 = 0x380 - clz(t1) */ ++ sllv t1, t0, t1 /* t1 = t0 << t1 */ ++ ext v1, t1, 2, 20 /* v1 = (t1 >> 2 ) & 0x00FFFFF */ ++ ins v1, v0, 20, 11 /* v1 = (v1 & 0x800FFFFF) | ((v0<<20) & 0x7FF00000) */ ++ sll v0, t1, 30 /* v0 = (t1 << 30) */ ++ftod_zero: ++ srl t0, t0, 31 /* t0 = (t0 >> 31) & 1 */ ++ jr ra /* return */ ++ ins v1, t0, 31, 1 /* v1 = (v1 & 0x7FFFFFFF) | ((t0<<31) & 0x80000000) */ ++.end pspFpuFloatToDouble ++ ++/** ++ * convert double to float ++ * float pspFpuDoubleToFloat(double a); ++ * input: a0,a1 ++ * output: fv0 ++ * clobber: t0,t1,t2,v0 ++ */ ++.ent pspFpuDoubleToFloat ++pspFpuDoubleToFloat: ++ ext t0, a1, 20, 11 /* t0 = (a1>>20) & 0x000007FF */ ++ beq t0, zero, dtof_zero /* if (t0==0) goto dtof_zero */ ++ xori t1, t0, 0x7FF /* t1 = t0 ^ 0x7FF */ ++ beq t1, zero, dtof_naninf /* if (t1==0) goto dtof_naninf */ ++ addiu t1, t0, (+0x7F-0x3FF) /* t1 = t0 + 0x7F - 0x3FF */ ++ blez t1, dtof_denormal /* if (t1<=0) goto dtof_denormal */ ++ addiu t2, t1, -0xFE /* t2 = t1 - 0xFE */ ++ bgtz t2, dtof_inf /* if (t2 > 0) goto dtof_inf */ ++ move v0, zero /* v0 = 0 */ ++ ++ srl v0, a0, 29 /* v0 = (a0>>29) & 0x00000007 */ ++ ins v0, a1, 3, 20 /* v0 = (v0 & 0xFF800007) | ((a1 & 0FFFFF)<<3) */ ++ beq t2, zero, dtof_inf_normal /* if (t2==0) goto dtof_inf_normal */ ++dtof_normal: ++ srl t2, a1, 31 /* t2 = (a1>>31) & 1 */ ++ ins v0, t2, 31, 1 /* v0 = (v0 & 0x7FFFFFFF) | (t2 << 31) */ ++ ins v0, t1, 23, 8 /* v0 = (v0 & 0x8007FFFF) | (t1 << 23) */ ++ jr ra /* return */ ++ mtc1 v0, fv0 /* fv0 = v0 */ ++dtof_denormal: ++ sll t0, a1, 12 /* t0 = a1 << 12 */ ++ srl v0, t0, 10 /* v0 = t0 >> 10 */ ++ srl t0, a0, 30 /* t0 = t0 >> 30 */ ++ or v0, v0, t0 /* v0 = v0 | t0 */ ++ li t0, 0x00400000 /* t0 = 0x00400000 */ ++ or v0, v0, t0 /* v0 = v0 | t0 */ ++ subu t0, zero, t1 /* t0 = zero - t1 */ ++ sltiu t1, t0, 22 /* t1 = (t0 < 22) */ ++ beq t1, zero, dtof_min /* if (t1==0) goto dtof_min */ ++ srlv v0, v0, t0 /* v0 = v0 >> t0 */ ++ srl t2, a1, 31 /* t2 = (a1>>31) & 1 */ ++ ins v0, t2, 31, 1 /* v0 = (v0 & 0x7FFFFFFF) | (t2 << 31) */ ++ jr ra /* return */ ++ mtc1 v0, fv0 /* fv0 = v0 */ ++dtof_zero: ++ sll t0, a1, 12 /* t0 = a1 << 12 */ ++ or t0, t0, a0 /* t0 = t0 | a0 */ ++dtof_min: ++ li v0, 0x00000001 /* v0 = 0x00000001 */ ++ movz v0, zero, t0 /* v0 = (t0==0) ? zero : v0 */ ++ srl t0, a1, 31 /* t0 = (a1 >> 31) & 1 */ ++ ins v0, t0, 31, 1 /* v0 = (v0 & 0x7FFFFFFF) | ((t0<<31) & 0x80000000) */ ++ jr ra /* return */ ++ mtc1 v0, fv0 /* fv0 = v0 */ ++dtof_inf_normal: ++ nor t0, zero, a1 /* t0 = ~a1 */ ++ sll t0, t0, 12 /* t0 = t0 << 12 */ ++ bne t0, zero, dtof_normal /* if (t0!=0) goto dtof_normal */ ++ srl t0, a0, 28 /* t0 = a0 >> 28 */ ++ sltiu t0, t0, 0xF /* t0 = (t0 < 0xF) */ ++ bne t0, zero, dtof_normal /* if (t0!=0) goto dtof_normal */ ++ nop /* waste delay slot */ ++ j dtof_inf /* goto dtof_inf */ ++ move v0, zero /* v0 = 0 */ ++dtof_naninf: ++ sll t0, a1, 12 /* t0 = a1 << 12 */ ++ or t1, t0, a0 /* t1 = t0 | a0 */ ++ srl v0, t0, 9 /* v0 = t0 >> 9 */ ++ srl t0, a0, 29 /* t0 = t0 >> 29 */ ++ or v0, v0, t0 /* v0 = v0 | t0 */ ++ sltiu t0, v0, 1 /* t0 = (v0 < 1) */ ++ or v0, v0, t0 /* v0 = v0 | t0 */ ++ movz v0, zero, t1 /* v0 = (t1==0) ? zero : v0 */ ++dtof_inf: ++ li t0, 0x7F800000 /* t0 = 0x7F800000 */ ++ or v0, v0, t0 /* v0 = v0 | t0 */ ++ srl t0, a1, 31 /* t0 = (a1 >> 31) & 1 */ ++ ins v0, t0, 31, 1 /* v0 = (v0 & 0x7FFFFFFF) | ((t0<<31) & 0x80000000) */ ++ jr ra /* return */ ++ mtc1 v0, fv0 /* fv0 = v0 */ ++.end pspFpuDoubleToFloat +diff -Nbaur pspsdk/src/fpu/pspfpu.c pspsdk.new/src/fpu/pspfpu.c +--- pspsdk/src/fpu/pspfpu.c 2011-07-29 15:56:23.000000000 +0100 ++++ pspsdk.new/src/fpu/pspfpu.c 2011-07-29 15:49:37.000000000 +0100 +@@ -5,13 +5,42 @@ + * + * pspfpu.h - PSP FPU library + * ++ * Copyright (c) 2009 JetCube + * Copyright (c) 2006 TyRaNiD (James F.) + * +- * $Id: pspfpu.c 1781 2006-02-04 12:53:40Z tyranid $ + */ + #include "pspfpu.h" + +-uint32_t pspfpu_get_fcr31(void) ++#define PSP_MATH_PI 3.14159265358979323846 ++#define PSP_MATH_TWOPI (PSP_MATH_PI * 2.0) ++#define PSP_MATH_SQRT2 1.41421356237309504880 ++#define PSP_MATH_LN2 0.69314718055994530942 ++#define PSP_MATH_LOG2E 1.4426950408889634074 ++#define COS_SIN_DIV 0.208 ++ ++static const float logPoly[] = { ++ 4194305.0 / (1024.0 * 1024.0 * 2.0), /* arround 2.0 */ ++ 5590817.0 / (1024.0 * 1024.0 * 8.0), /* arround 2.0/3.0 */ ++ 13890687.0 / (1024.0 * 1024.0 * 32.0), /* arround 2.0/5.0 */ ++}; ++ ++static const float triPoly[] = { ++ (float)(2.0*PSP_MATH_PI), ++ (float)(1.0), ++ (float)(-0xAAAA98/(1024.0*1024*64)), ++ (float)( 0x88801C/(1024.0*1024*1024)), ++ (float)(-0xCB9F27/(1024.0*1024*1024*64)), ++ ++ (float)(-0xFFFFF9/(1024.0*1024*32)), ++ (float)( 0xAAA6FB/(1024.0*1024*256)), ++ (float)(-0xB3D431/(1024.0*1024*1024*8)), ++ ++ (float)(-0xAAAAAA/(1024.0*1024*32)), ++ (float)( 0xCCCCCD/(1024.0*1024*64)), ++ (float)(-0x8F5C29/(1024.0*1024*64)), ++}; ++ ++uint32_t pspFpuGetFCR31(void) + { + uint32_t ret; + +@@ -23,7 +52,7 @@ + return ret; + } + +-void pspfpu_set_fcr31(uint32_t var) ++void pspFpuSetFCR31(uint32_t var) + { + asm ( + "ctc1 %0, $31\n" +@@ -32,120 +61,883 @@ + ); + } + +-void pspfpu_set_roundmode(enum FpuRoundMode mode) ++void pspFpuSetRoundmode(enum PspFpuRoundMode mode) + { + uint32_t fcr; + +- fcr = pspfpu_get_fcr31(); +- fcr &= ~FPU_RM_MASK; +- fcr |= (mode & FPU_RM_MASK); +- pspfpu_set_fcr31(fcr); ++ fcr = pspFpuGetFCR31(); ++ fcr &= ~PSP_FPU_RM_MASK; ++ fcr |= (mode & PSP_FPU_RM_MASK); ++ pspFpuSetFCR31(fcr); + } + +-enum FpuRoundMode pspfpu_get_roundmode(void) ++enum PspFpuRoundMode pspFpuGetRoundmode(void) + { +- return pspfpu_get_fcr31() & FPU_RM_MASK; ++ return pspFpuGetFCR31() & PSP_FPU_RM_MASK; + } + +-uint32_t pspfpu_get_flags(void) ++uint32_t pspFpuGetFlags(void) + { + uint32_t fcr; + +- fcr = pspfpu_get_fcr31(); ++ fcr = pspFpuGetFCR31(); + +- return (fcr & FPU_FLAGS_MASK) >> FPU_FLAGS_POS; ++ return (fcr & PSP_FPU_FLAGS_MASK) >> PSP_FPU_FLAGS_POS; + } + +-void pspfpu_clear_flags(uint32_t clear) ++void pspFpuClearFlags(uint32_t clear) + { + uint32_t fcr; + + clear &= 0x1F; +- fcr = pspfpu_get_fcr31(); +- fcr &= ~(clear << FPU_FLAGS_POS); +- pspfpu_set_fcr31(fcr); ++ fcr = pspFpuGetFCR31(); ++ fcr &= ~(clear << PSP_FPU_FLAGS_POS); ++ pspFpuSetFCR31(fcr); + } + +-uint32_t pspfpu_get_enable(void) ++uint32_t pspFpuGetEnable(void) + { + uint32_t fcr; + +- fcr = pspfpu_get_fcr31(); ++ fcr = pspFpuGetFCR31(); + +- return (fcr & FPU_ENABLE_MASK) >> FPU_ENABLE_POS; ++ return (fcr & PSP_FPU_ENABLE_MASK) >> PSP_FPU_ENABLE_POS; + } + +-void pspfpu_set_enable(uint32_t enable) ++void pspFpuSetEnable(uint32_t enable) + { + uint32_t fcr; + + enable &= 0x1F; +- fcr = pspfpu_get_fcr31() & ~FPU_ENABLE_MASK; +- fcr |= enable << FPU_ENABLE_POS; +- pspfpu_set_fcr31(fcr); ++ fcr = pspFpuGetFCR31() & ~PSP_FPU_ENABLE_MASK; ++ fcr |= enable << PSP_FPU_ENABLE_POS; ++ pspFpuSetFCR31(fcr); + } + +-uint32_t pspfpu_get_cause(void) ++uint32_t pspFpuGetCause(void) + { + uint32_t fcr; + +- fcr = pspfpu_get_fcr31(); ++ fcr = pspFpuGetFCR31(); + +- return (fcr & FPU_CAUSE_MASK) >> FPU_CAUSE_POS; ++ return (fcr & PSP_FPU_CAUSE_MASK) >> PSP_FPU_CAUSE_POS; + } + +-void pspfpu_clear_cause(uint32_t clear) ++void pspFpuClearCause(uint32_t clear) + { + uint32_t fcr; + + clear &= 0x3F; +- fcr = pspfpu_get_fcr31(); +- fcr &= ~(clear << FPU_CAUSE_POS); +- pspfpu_set_fcr31(fcr); ++ fcr = pspFpuGetFCR31(); ++ fcr &= ~(clear << PSP_FPU_CAUSE_POS); ++ pspFpuSetFCR31(fcr); + } + +-uint32_t pspfpu_get_fs(void) ++uint32_t pspFpuGetFS(void) + { + uint32_t fcr; + +- fcr = pspfpu_get_fcr31(); ++ fcr = pspFpuGetFCR31(); + +- return (fcr & FPU_FS_MASK) >> FPU_FS_POS; ++ return (fcr & PSP_FPU_FS_MASK) >> PSP_FPU_FS_POS; + } + +-void pspfpu_set_fs(uint32_t fs) ++void pspFpuSetFS(uint32_t fs) + { + uint32_t fcr; + +- fcr = pspfpu_get_fcr31(); +- fcr &= ~FPU_FS_MASK; ++ fcr = pspFpuGetFCR31(); ++ fcr &= ~PSP_FPU_FS_MASK; + +- fcr |= ((fs & 1) << FPU_FS_POS); ++ fcr |= ((fs & 1) << PSP_FPU_FS_POS); + +- pspfpu_set_fcr31(fcr); ++ pspFpuSetFCR31(fcr); + } + +-uint32_t pspfpu_get_condbits(void) ++uint32_t pspFpuGetCondbits(void) + { + uint32_t fcr; + uint32_t cond; + +- fcr = pspfpu_get_fcr31(); +- cond = (fcr & FPU_CC0_MASK) >> FPU_CC0_POS; +- cond |= (fcr & FPU_CC17_MASK) >> (FPU_CC17_POS-1); ++ fcr = pspFpuGetFCR31(); ++ cond = (fcr & PSP_FPU_CC0_MASK) >> PSP_FPU_CC0_POS; ++ cond |= (fcr & PSP_FPU_CC17_MASK) >> (PSP_FPU_CC17_POS-1); + + return cond; + } + +-void pspfpu_clear_condbits(uint32_t clear) ++void pspFpuClearCondbits(uint32_t clear) + { + uint32_t fcr; + + clear &= 0xFF; + +- fcr = pspfpu_get_fcr31(); +- fcr &= ~((clear & 1) << FPU_CC0_POS); +- fcr &= ~((clear & 0xFE) << (FPU_CC17_POS-1)); ++ fcr = pspFpuGetFCR31(); ++ fcr &= ~((clear & 1) << PSP_FPU_CC0_POS); ++ fcr &= ~((clear & 0xFE) << (PSP_FPU_CC17_POS-1)); ++ ++ pspFpuSetFCR31(fcr); ++} ++ ++float pspFpuAbs(float fs) ++{ ++ register float fd; ++ asm ( ++ "abs.s %0, %1\n" ++ : "=f"(fd) ++ : "f"(fs) ++ ); ++ return (fd); ++} ++ ++int pspFpuCeil(float fs) ++{ ++ return (__builtin_allegrex_ceil_w_s(fs)); ++} ++ ++int pspFpuFloor(float fs) ++{ ++ return (__builtin_allegrex_floor_w_s(fs)); ++} ++ ++float pspFpuMax(float fs1, float fs2) ++{ ++ register float fd; ++ fd = (fs1 > fs2) ? fs1 : fs2; ++ return (fd); ++} ++ ++float pspFpuMin(float fs1, float fs2) ++{ ++ register float fd; ++ fd = (fs1 < fs2) ? fs1 : fs2; ++ return (fd); ++} ++ ++float pspFpuNeg(float fs) ++{ ++ register float fd; ++ asm ( ++ "neg.s %0, %1\n" ++ : "=f"(fd) ++ : "f"(fs) ++ ); ++ return (fd); ++} ++ ++int pspFpuRound(float fs) ++{ ++ return (__builtin_allegrex_round_w_s(fs)); ++} ++ ++float pspFpuRsqrt(float fs) ++{ ++ return (1.0f / __builtin_allegrex_sqrt_s(fs)); ++} ++ ++float pspFpuSqrt(float fs) ++{ ++ return (__builtin_allegrex_sqrt_s(fs)); ++} ++ ++int pspFpuTrunc(float fs) ++{ ++ return (__builtin_allegrex_trunc_w_s(fs)); ++} ++ ++float pspFpuFmod(float fs, float fd) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "div.s %0, %1, %2\n" // v = fs / fd ++ "trunc.w.s %0, %0\n" // v = trunc(v) ++ "cvt.s.w %0, %0\n" // v = (float)v = (float)trunc(v) ++ "mul.s %0, %0, %2\n" // v = v * fd ++ "sub.s %0, %1, %0\n" // v = fs - v*fd = fs - trunc(fs / fd)*fd ++ ".set pop\n" ++ : "=&f"(v) ++ : "f"(fs), "f"(fd) ++ ); ++ return (v); ++} ++ ++float pspFpuFrac(float fs) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "trunc.w.s %0, %1\n" // v = trunc(fs) ++ "cvt.s.w %0, %0\n" // v = (float)v = (float)trunc(fs) ++ "sub.s %0, %1, %0\n" // v = fs - v ++ ".set pop\n" ++ : "=&f"(v) ++ : "f"(fs) ++ ); ++ return (v); ++} ++ ++float pspFpuReinterpretFloat(uint32_t ui) ++{ ++ float v; ++ asm ( ++ "mtc1 %1, %0\n" ++ : "=f"(v) ++ : "r"(ui) ++ ); ++ return (v); ++} ++ ++uint32_t pspFpuReinterpretUint(float fs) ++{ ++ unsigned int v; ++ asm ( ++ "mfc1 %0, %1\n" ++ : "=r"(v) ++ : "f"(fs) ++ ); ++ return (v); ++} ++ ++int pspFpuIsEqual(float fs1, float fs2) ++{ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "c.eq.s %2, %1\n" // compare fs1 to fs2 ++ "move %0, $0\n" // v = 0 ++ "bc1tl 0f\n" // if (fs1==fs2) goto 0f ++ "addiu %0, $0, 1\n" // if (fs1==fs2) v = 1 ++ "0:\n" ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(fs1), "f"(fs2) ++ ); ++ return (v); ++} ++ ++float pspFpuSignFloat(float fs) ++{ ++ float fv; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 $8, %1\n" // t0 = fs ++ "lui $10, 0x3F80\n" // t2 = 0x3F800000(1.0f) ++ "srl $9, $8, 23\n" // t1 = t0>>23 ++ "srl $8, $8, 31\n" // t0 = t0>>31 ++ "andi $9, $9, 0x00FF\n" // t1 = t1 & 0x00FF ++ "sll $8, $8, 31\n" // t0 = t0<<31 = (fs>=0) ? 0 : 0x80000000 ++ "movz $10, $0, $9\n" // t2 = (t1==0) ? 0 : t2 ++ "or $10, $10, $8\n" // t2 = t2 | t0 ++ "mtc1 $10, %0\n" // fv = t2 ++ ".set pop\n" ++ : "=f"(fv) ++ : "f"(fs) ++ : "$8", "$9", "$10" ++ ); ++ return (fv); ++} ++ ++int pspFpuSignInt(float fs) ++{ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 %0, %1\n" // v = fs ++ "lui $8, 0x7F80\n" // t0 = 0x7F800000(binary representaion 1.0 * 2^(255-127)) ++ "and $8, $8, %0\n" // t0 = at & v ++ "sra %0, %0, 30\n" // v = fs>>30 = (fs>=0) ? 0or1 : -1or-2 ++ "or %0, %0, 1\n" // v = v | 1 = (fs>=0) ? 1 : -1 ++ "movz %0, $0, $8\n" // v = (t0==0) ? 0 : v ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(fs) ++ : "$8" ++ ); ++ return (v); ++} ++ ++float pspFpuPositiveZero(void) ++{ ++ float v; ++ asm ( ++ "mtc1 $0, %0\n" // v = 0.0f ++ : "=f"(v) ++ ); ++ return (v); ++} ++ ++float pspFpuNegativeZero(void) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "lui $8, 0x8000\n" // t0 = 0x80000000 ++ "mtc1 $8, %0\n" // v = -0.0f ++ ".set pop\n" ++ : "=f"(v) ++ : ++ : "$8" ++ ); ++ return (v); ++} ++ ++int pspFpuIsZero(float f) ++{ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 $8, %1\n" // t0 = f ++ "sra %0, $8, 30\n" // v = t0>>30 ++ "sll $8, $8, 1\n" // t0 = t0<<1 ++ "ori %0, %0, 0x0001\n" // v = v | 1 = (f>=0) ? +1 : -1 ++ "movn %0, $0, $8\n" // v = (t0!=0) ? 0 : v ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(f) ++ : "$8" ++ ); ++ return (v); ++} ++ ++int pspFpuIsPositiveZero(float f) ++{ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 %0, %1\n" // v = f ++ "sltiu %0, %0, 1\n" // v = (v < 1) ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(f) ++ ); ++ return (v); ++} ++ ++int pspFpuIsNegativeZero(float f) ++{ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 %0, %1\n" // v = f ++ "lui $8, 0x8000\n" // t0 = 0x80000000 ++ "xor %0, %0, $8\n" // v = v ^ t0 ++ "sltiu %0, %0, 1\n" // v = (v < 1) ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(f) ++ : "$8" ++ ); ++ return (v); ++} ++ ++int pspFpuIsDenormal(float f) ++{ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 $8, %1\n" // t0 = f ++ "lui $9, 0x7F80\n" // t1 = 0x7F800000 ++ "or %0, $8, $9\n" // v = t0 | t1 = t0 | 0x7F800000 ++ "and $9, $8, $9\n" // t1 = t0 & t1 = t0 & 0x7F800000 ++ "sra %0, %0, 30\n" // v = v>>30 = (t0>=0) ? +1 : -1 ++ "sll $8, $8, 9\n" // t0 = t0<<9 ++ "movn %0, $0, $9\n" // v = (t1!=0) ? 0 : v if (exp!=0) is not denormal number ++ "movz %0, $0, $8\n" // v = (t0==0) ? 0 : v if (frac==0) is not decnormal number ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(f) ++ : "$8", "$9" ++ ); ++ return (v); ++} ++ ++int pspFpuIsZeroOrDenormal(float f) ++{ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 $8, %1\n" // t0 = f ++ "lui $9, 0x7F80\n" // t1 = 0x7F800000 ++ "or %0, $8, $9\n" // v = t0 | t1 = t0 | 0x7F800000 ++ "and $9, $8, $9\n" // t1 = t0 & t1 = t0 & 0x7F800000 ++ "sra %0, %0, 30\n" // v = v>>30 = (t0>=0) ? +1 : -1 ++ "movn %0, $0, $9\n" // v = (t1!=0) ? 0 : v if (exp!=0) is not denormal number ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(f) ++ : "$8", "$9" ++ ); ++ return (v); ++} ++ ++float pspFpuPositiveInf(void) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "lui $8, 0x7F80\n" // t0 = 0x7F800000 ++ "mtc1 $8, %0\n" // v = t0 = +Infinity ++ ".set pop\n" ++ : "=f"(v) ++ : ++ : "$8" ++ ); ++ return (v); ++} ++ ++float pspFpuNegativeInf(void) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "lui $8, 0xFF80\n" // t0 = 0xFF800000 ++ "mtc1 $8, %0\n" // v = t0 = -Infinity ++ ".set pop\n" ++ : "=f"(v) ++ ); ++ return (v); ++} ++ ++int pspFpuIsInf(float f) ++{ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 $8, %1\n" // t0 = f ++ "sll $9, $8, 1\n" // t1 = t0<<1 ++ "sra %0, $8, 30\n" // v = t0>>30 ++ "srl $9, $9, 24\n" // t1 = t1>>24 ++ "sll $8, $8, 9\n" // t0 = t0<<9 ++ "ori %0, %0, 0x0001\n" // v = v | 0x00000001 = (f>=0) ? +1 : -1 ++ "sltiu $9, $9, 0x00FF\n" // t1 = (t1<0xFF) ++ "movn %0, $0, $8\n" // v = (t0!=0) ? 0 : v if (frac!=0) is not Infinity ++ "movn %0, $0, $9\n" // v = (t1!=0) ? 0 : v if (exp!=0xFF) is not Infinity ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(f) ++ : "$8", "$9" ++ ); ++ return (v); ++} ++ ++float pspFpuPositiveNaN(void) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "lui $8, 0x7F80\n" ++ "ori $8, $8, 0x0001\n" // t0 = 0x7F800001 ++ "mtc1 $8, %0\n" // v = t0 = +SNaN(0x000001) ++ ".set pop\n" ++ : "=f"(v) ++ : ++ : "$8" ++ ); ++ return (v); ++} ++ ++float pspFpuNegativeNaN(void) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "lui $8, 0xFF80\n" ++ "ori $8, $8, 0x0001\n" // t0 = 0xFF800001 ++ "mtc1 $8, %0\n" // v = t0 = -SNaN(0x000001) ++ ".set pop\n" ++ : "=f"(v) ++ : ++ : "$8" ++ ); ++ return (v); ++} ++ ++float pspFpuPositiveQNaN(void) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "lui $8, 0x7FC0\n" // t0 = 0x7FC00000 ++ "mtc1 $8, %0\n" // v = t0 = +QNaN ++ ".set pop\n" ++ : "=f"(v) ++ : ++ : "$8" ++ ); ++ return (v); ++} ++ ++float pspFpuNegativeQNaN(void) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "lui $8, 0xFFC0\n" // t0 = 0xFFC00000 ++ "mtc1 $8, %0\n" // v = t0 = -QNaN ++ ".set pop\n" ++ : "=f"(v) ++ : ++ : "$8" ++ ); ++ return (v); ++} ++ ++float pspFpuPositiveSNaN(unsigned int uiSignal) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "addiu $9, $0, 1\n" // t1 = 0x00000001 ++ "ext $8, %1, 0, 22\n" // t0 = uiSignal & 0x003FFFFF ++ "movn $9, $8, $8\n" // t1 = (t0!=0) ? t0 : t1 ++ "lui $8, 0x7F80\n" // t0 = 0x7F800000 ++ "or $9, $9, $8\n" // t1 = t1 | t0 ++ "mtc1 $9, %0\n" // v = t1 ++ ".set pop\n" ++ : "=f"(v) ++ : "r"(uiSignal) ++ : "$8", "$9" ++ ); ++ return (v); ++} ++ ++float pspFpuNegativeSNaN(unsigned int uiSignal) ++{ ++ float v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "addiu $9, $0, 1\n" // t1 = 0x00000001 ++ "ext $8, %1, 0, 22\n" // t0 = uiSignal & 0x003FFFFF ++ "movn $9, $8, $8\n" // t1 = (t0!=0) ? t0 : t1 ++ "lui $8, 0xFF80\n" // t0 = 0xFF800000 ++ "or $9, $9, $8\n" // t1 = t1 | t0 ++ "mtc1 $9, %0\n" // v = t1 ++ ".set pop\n" ++ : "=f"(v) ++ : "r"(uiSignal) ++ : "$8", "$9" ++ ); ++ return (v); ++} ++ ++int pspFpuIsNaN(float f) ++{ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "lui %0, 0x807F\n" // ++ "mfc1 $8, %1\n" // t0 = f ++ "ori %0, %0, 0xFFFF\n" // v = 0x807FFFFF ++ "sll $9, $8, 1\n" // t1 = t0<<1 ++ "and %0, %0, $8\n" // v = v & t0 ++ "srl $9, $9, 24\n" // t1 = t1>>24 ++ "sll $8, $8, 9\n" // t0 = t0<<9 ++ "sltiu $9, $9, 0x00FF\n" // t1 = (t1<0xFF) ++ "movz %0, $0, $8\n" // v = (t0==0) ? 0 : v if (frac==0) is not NaN ++ "movn %0, $0, $9\n" // v = (t1!=0) ? 0 : v if (exp!=0xFF) is not NAN ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(f) ++ : "$8", "$9" ++ ); ++ return (v); ++} ++ ++int pspFpuIsInfOrNaN(float f) ++{ ++ int v; ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 %0, %1\n" // v = f ++ "sll $8, %0, 1\n" // t0 = v<<1 ++ "sra %0, %0, 30\n" // v = v>>30 ++ "srl $8, $8, 24\n" // t0 = t0>>24 ++ "ori %0, %0, 0x0001\n" // v = v | 0x00000001 = (f>=0) ? +1 : -1 ++ "sltiu $8, $8, 0x00FF\n" // t0 = (t0<0xFF) ++ "movn %0, $0, $8\n" // v = (t0!=0) ? 0 : v if (exp!=0xFF) is neither NAN nor Infinity ++ ".set pop\n" ++ : "=r"(v) ++ : "f"(f) ++ : "$8" ++ ); ++ return (v); ++} ++ ++float pspFpuNormalizePhase(float fs) ++{ ++ const float f2pi = PSP_MATH_TWOPI; ++ float fd; ++ ++ asm ( ++ ".set push\n" ++ ".set noreorder\n" ++ "mfc1 $9, %1\n" // t1 = f0 ++ "div.s $f0, $f0, %2\n" // f0 = f0 / f2pi = fs / 2PI ++ "round.w.s $f0, $f0\n" // f0 = (int)(f0+0.5) ++ "cvt.s.w $f0, $f0\n" // f0 = float(f0) ++ "mul.s $f0, $f0, %2\n" // f0 = f0 * f2pi = fd * 2PI ++ "sub.s %0, %1, $f0\n" // fd = fs - f0 = fs - (fd * 2PI) ++ ".set pop\n" ++ : "=f"(fd) ++ : "f"(fs), "f"(f2pi) ++ : "$f0", "$8", "$9" ++ ); ++ return (fd); ++} ++ ++float pspFpuLog(float x) ++{ ++ union { ++ float f; ++ int i; ++ } fi; ++ int a, b, exponent; ++ float y, z; ++ fi.f = x; ++ if (fi.i <= 0) { ++ if ((fi.i & 0x7fffffff) == 0) { ++ fi.i = 0xff800000; /* -INF */ ++ return fi.f; ++ } ++ fi.i = 0xff80ffff; /* Quiet NaN */ ++ return fi.f; ++ } ++ ++ b = (fi.i & 0x007fffff); ++ a = b - (1<<23); ++ exponent = fi.i; ++ if (b <= 0x3504F3) { ++ a = b; ++ b = b - (1 << 23); ++ exponent -= (1<<23); ++ } ++ b = b - (1 << 23) + (1<<25); ++ ++ x = (float)(a) / (float)(b); ++ z = (((exponent>>23)-126) * 0xB17218) * (float)(1.0/(1<<24)); ++ y = x * x; ++ return z + x * (((logPoly[2] * y + logPoly[1]) * y) + logPoly[0]); ++} ++ ++float pspFpuExp(float x) ++{ ++ /* ++ * exp(x)=e^x=e^(y * log2)=2^Y ++ * =2^z * 2^y ++ * =2^z * (2^(y/2))^2 ++ * =2^z * (e^(f/2))^2 ++ * =2^z * (e^(f/4))^4 ++ * where y=x/log 2 ++ * z=nearest(y) , -0.5 <= f=y-z < 0.5 ++ */ ++ union { ++ float f; ++ int i; ++ } fi; ++ float z, f; ++ ++ fi.f = x; ++ fi.i &= 0x7fffffff; ++ if (fi.i >= 0x42b00f34) {/* arround 88.03 */ ++ /* overflow */ ++ if (x != x) { ++ return x; /* NaN */ ++ } ++ if (fi.i < 0) { ++ return 0.0; /* underflow */ ++ } ++ fi.i = 0x7f800000; ++ return fi.f; /* +INF */ ++ } ++ ++ f = fi.f * (float)PSP_MATH_LOG2E; ++ ++ z = __builtin_allegrex_round_w_s(f); ++ f = f-z; ++ fi.i = z; ++ if (x < 0) ++ fi.i = -fi.i; ++ fi.i = (fi.i+127) << 23; ++ ++ /* use Pade aprox. */ ++ f = (6.0f + (float)(4.0*PSP_MATH_LN2 * 0.25)*f ++ + (float)(0.9996*PSP_MATH_LN2*0.25*PSP_MATH_LN2*0.25)*f*f) ++ / (6.0f - (float)(2.0*PSP_MATH_LN2 * 0.25)*f); ++ f *= f; ++ fi.f *= f*f; ++ return fi.f; ++} ++ ++static float _pspFpuSinMain(float x) ++{ ++ float y = x*x; ++ return x * (((triPoly[4] * y ++ + triPoly[3]) * y ++ + triPoly[2]) * y ++ + triPoly[1]); ++} ++ ++static float _pspFpuCosMain(float x) ++{ ++ float y = x*x; ++ return ((triPoly[7] * y ++ + triPoly[6]) * y ++ + triPoly[5]) * y ++ + triPoly[1]; ++} ++ ++static float _pspFpuAtanMain(float x) ++{ ++ float y = x*x; ++ return x * (((triPoly[10] * y ++ + triPoly[9]) * y ++ + triPoly[8]) * y ++ + triPoly[1]); ++} ++ ++ ++float pspFpuSin(float x) ++{ ++ float pi2; ++ int sign = 1; ++ ++ /* NaN */ ++ if (x != x) { ++ return x; ++ } ++ ++ pi2 = triPoly[0]; ++ if (x < 0.0f) { ++ sign = -1; ++ x = -x; ++ } + +- pspfpu_set_fcr31(fcr); ++ if (x > pi2) { ++ float y = x / pi2; ++ x -= (float)((int)y) * pi2; ++ } ++ ++ pi2 *= 0.5f; ++ if (x > pi2) { ++ x -= pi2; ++ sign = -sign; ++ } ++ ++ if (x > pi2*0.5f) { ++ x = pi2 - x; ++ } ++ if (x > (float)(PSP_MATH_PI * (0.5 - COS_SIN_DIV))) { ++ return _pspFpuCosMain(pi2*0.5f - x) * sign; ++ } ++ ++ return _pspFpuSinMain(x) * sign; ++} ++ ++ ++float pspFpuCos(float x) ++{ ++ float pi2; ++ int sign = 1; ++ ++ /* NaN */ ++ if (x != x) { ++ return x; ++ } ++ ++ pi2 = triPoly[0]; ++ if (x < 0.0f) { ++ x = -x; ++ } ++ ++ if (x > pi2) { ++ float y = x / pi2; ++ x -= (float)((int)y) * pi2; ++ } ++ ++ pi2 *= 0.5f; // pi2 = PI ++ if (x > pi2) { ++ x -= pi2; ++ sign = -1; ++ } ++ ++ if (x > pi2*0.5f) { ++ sign = -sign; ++ x = pi2 - x; ++ } ++ if (x > (float) (PSP_MATH_PI * COS_SIN_DIV)) { ++ return _pspFpuSinMain(pi2*0.5f - x) * sign; ++ } ++ ++ return _pspFpuCosMain(x) * sign; ++} ++ ++static float _atanf(float x) ++{ ++ if (x < 0.19890f) { ++ return _pspFpuAtanMain(x); ++ } ++ if (x < 0.668106f) { ++ return (float)(PSP_MATH_PI / 8) ++ + _pspFpuAtanMain((x - (float)(PSP_MATH_SQRT2 - 1)) / (1.0f + ((float)(PSP_MATH_SQRT2 - 1)*x))); ++ } ++ return ((float)PSP_MATH_PI / 4) + _pspFpuAtanMain((x - 1.0f) / (x + 1.0f)); ++} ++ ++ ++float pspFpuAtan(float x) ++{ ++ int sign = 1; ++ ++ /* NaN */ ++ if (x != x) { ++ return x; ++ } ++ ++ if (x < 0.0f) { ++ x = -x; ++ sign = -1; ++ } ++ if (x >= 1.0f) { ++ /*J atan(x) = pi/2 - atan(1/x) */ ++ x = 1.0f / x; ++ x = ((float)(PSP_MATH_PI / 2)) - _atanf(x); ++ } else { ++ x = _atanf(x); ++ } ++ return x * (float)sign; ++} ++ ++float pspFpuAsin(float x) ++{ ++ x = x*x; ++ return pspFpuAtan(__builtin_allegrex_sqrt_s(x/(1.0f-x))); ++} ++ ++float pspFpuAcos(float x) ++{ ++ x = x*x; ++ return pspFpuAtan(__builtin_allegrex_sqrt_s((1.0f-x)/x)); + } +diff -Nbaur pspsdk/src/fpu/pspfpu.h pspsdk.new/src/fpu/pspfpu.h +--- pspsdk/src/fpu/pspfpu.h 2011-07-29 15:56:23.000000000 +0100 ++++ pspsdk.new/src/fpu/pspfpu.h 2011-07-29 14:56:08.000000000 +0100 +@@ -5,6 +5,7 @@ + * + * pspfpu.h - Prototypes for the FPU library + * ++ * Copyright (c) 2009 JetCube + * Copyright (c) 2006 TyRaNiD (James F.) + * + * $Id: pspfpu.h 1782 2006-02-04 12:57:05Z tyranid $ +@@ -23,131 +24,131 @@ + #endif + + /** Enumeration for FPU rounding modes */ +-enum FpuRoundMode ++enum PspFpuRoundMode + { + /** Round to nearest representable value */ +- FPU_RN = 0, ++ PSP_FPU_RN = 0, + /** Round towards zero */ +- FPU_RZ = 1, ++ PSP_FPU_RZ = 1, + /** Round towards plus infinity */ +- FPU_RP = 2, ++ PSP_FPU_RP = 2, + /** Round towards minus infinity */ +- FPU_RM = 3, ++ PSP_FPU_RM = 3, + }; + + /** Mask value for rounding mode */ +-#define FPU_RM_MASK 0x03 ++#define PSP_FPU_RM_MASK 0x03 + + /** Enumeration for FPU exceptions */ +-enum FpuExceptions ++enum PspFpuExceptions + { + /** Inexact operation exception */ +- FPU_EXCEPTION_INEXACT = 0x01, ++ PSP_FPU_EXCEPTION_INEXACT = 0x01, + /** Underflow exception */ +- FPU_EXCEPTION_UNDERFLOW = 0x02, ++ PSP_FPU_EXCEPTION_UNDERFLOW = 0x02, + /** Overflow exception */ +- FPU_EXCEPTION_OVERFLOW = 0x04, ++ PSP_FPU_EXCEPTION_OVERFLOW = 0x04, + /** Division by zero exception */ +- FPU_EXCEPTION_DIVBYZERO = 0x08, ++ PSP_FPU_EXCEPTION_DIVBYZERO = 0x08, + /** Invalid operation exception */ +- FPU_EXCEPTION_INVALIDOP = 0x10, ++ PSP_FPU_EXCEPTION_INVALIDOP = 0x10, + /** Unimplemented operation exception (only supported in the cause bits) */ +- FPU_EXCEPTION_UNIMPOP = 0x20, ++ PSP_FPU_EXCEPTION_UNIMPOP = 0x20, + /** All exceptions */ +- FPU_EXCEPTION_ALL = 0x3F ++ PSP_FPU_EXCEPTION_ALL = 0x3F + }; + + /** Bit position of the flag bits */ +-#define FPU_FLAGS_POS 2 ++#define PSP_FPU_FLAGS_POS 2 + /** Bit position of the enable bits */ +-#define FPU_ENABLE_POS 7 ++#define PSP_FPU_ENABLE_POS 7 + /** Bit position of the cause bits */ +-#define FPU_CAUSE_POS 12 ++#define PSP_FPU_CAUSE_POS 12 + /** Bit position of the cc0 bit */ +-#define FPU_CC0_POS 23 ++#define PSP_FPU_CC0_POS 23 + /** Bit position of the fs bit */ +-#define FPU_FS_POS 24 ++#define PSP_FPU_FS_POS 24 + /** Bit position of the cc1->7 bits */ +-#define FPU_CC17_POS 25 ++#define PSP_FPU_CC17_POS 25 + +-#define FPU_FLAGS_MASK (0x1F << FPU_FLAGS_POS) +-#define FPU_ENABLE_MASK (0x1F << FPU_ENABLE_POS) +-#define FPU_CAUSE_MASK (0x3F << FPU_CAUSE_POS) +-#define FPU_CC0_MASK (1 << FPU_CC0_POS) +-#define FPU_FS_MASK (1 << FPU_FS_POS) +-#define FPU_CC17_MASK (0x7F << FPU_CC17_POS) ++#define PSP_FPU_FLAGS_MASK (0x1F << PSP_FPU_FLAGS_POS) ++#define PSP_FPU_ENABLE_MASK (0x1F << PSP_FPU_ENABLE_POS) ++#define PSP_FPU_CAUSE_MASK (0x3F << PSP_FPU_CAUSE_POS) ++#define PSP_FPU_CC0_MASK (1 << PSP_FPU_CC0_POS) ++#define PSP_FPU_FS_MASK (1 << PSP_FPU_FS_POS) ++#define PSP_FPU_CC17_MASK (0x7F << PSP_FPU_CC17_POS) + + /** + * Get the current value of the control/status register + * + * @return The value of the control/status register + */ +-uint32_t pspfpu_get_fcr31(void); ++uint32_t pspFpuGetFCR31(void); + + /** + * Set the current value of the control/status register + * + * @param var - The value to set. + */ +-void pspfpu_set_fcr31(uint32_t var); ++void pspFpuSetFCR31(uint32_t var); + + /** + * Set the current round mode + * +- * @param mode - The rounding mode to set, one of ::FpuRoundMode ++ * @param mode - The rounding mode to set, one of ::PspFpuRoundMode + */ +-void pspfpu_set_roundmode(enum FpuRoundMode mode); ++void pspFpuSetRoundmode(enum PspFpuRoundMode mode); + + /** + * Get the current round mode + * +- * @return The round mode, one of ::FpuRoundMode ++ * @return The round mode, one of ::PspFpuRoundMode + */ +-enum FpuRoundMode pspfpu_get_roundmode(void); ++enum PspFpuRoundMode pspFpuGetRoundmode(void); + + /** + * Get the exception flags (set when an exception occurs but + * the actual exception bit is not enabled) + * +- * @return Bitmask of the flags, zero or more of ::FpuExceptions ++ * @return Bitmask of the flags, zero or more of ::PspFpuExceptions + */ +-uint32_t pspfpu_get_flags(void); ++uint32_t pspFpuGetFlags(void); + + /** + * Clear the flags bits + * +- * @param clear - Bitmask of the bits to clear, one or more of ::FpuExceptions ++ * @param clear - Bitmask of the bits to clear, one or more of ::PspFpuExceptions + */ +-void pspfpu_clear_flags(uint32_t clear); ++void pspFpuClearFlags(uint32_t clear); + + /** + * Get the exception enable flags + * +- * @return Bitmask of the flags, zero or more of ::FpuExceptions ++ * @return Bitmask of the flags, zero or more of ::PspFpuExceptions + */ +-uint32_t pspfpu_get_enable(void); ++uint32_t pspFpuGetEnable(void); + + /** + * Set the enable flags bits + * +- * @param enable - Bitmask of exceptions to enable, zero or more of ::FpuExceptions ++ * @param enable - Bitmask of exceptions to enable, zero or more of ::PspFpuExceptions + */ +-void pspfpu_set_enable(uint32_t enable); ++void pspFpuSetEnable(uint32_t enable); + + /** + * Get the cause bits (only useful if you installed your own exception handler) + * +- * @return Bitmask of flags, zero or more of ::FpuExceptions ++ * @return Bitmask of flags, zero or more of ::PspFpuExceptions + */ +-uint32_t pspfpu_get_cause(void); ++uint32_t pspFpuGetCause(void); + + /** + * Clear the cause bits + * +- * @param clear - Bitmask of the bits to clear, one or more of ::FpuExceptions ++ * @param clear - Bitmask of the bits to clear, one or more of ::PspFpuExceptions + * + */ +-void pspfpu_clear_cause(uint32_t clear); ++void pspFpuClearCause(uint32_t clear); + + /** + * Get the current value of the FS bit (if FS is 0 then an exception occurs with +@@ -155,28 +156,253 @@ + * + * @return The current state of the FS bit (0 or 1) + */ +-uint32_t pspfpu_get_fs(void); ++uint32_t pspFpuGetFS(void); + + /** + * Set the FS bit + * + * @param fs - 0 or 1 to unset or set fs + */ +-void pspfpu_set_fs(uint32_t fs); ++void pspFpuSetFS(uint32_t fs); + + /** + * Get the condition flags (8 bits) + * + * @return The current condition flags + */ +-uint32_t pspfpu_get_condbits(void); ++uint32_t pspFpuGetCondbits(void); + + /** + * Clear the condition bits + * + * @param clear - Bitmask of the bits to clear + */ +-void pspfpu_clear_condbits(uint32_t clear); ++void pspFpuClearCondbits(uint32_t clear); ++ ++/** ++ * returns absolute value ++ */ ++float pspFpuAbs(float f); ++ ++/** ++ * Round up ++ */ ++int pspFpuCeil(float f); ++ ++/** ++ * Truncate ++ */ ++int pspFpuFloor(float f); ++ ++/** ++ * select maximum value ++ */ ++float pspFpuMax(float f1, float f2); ++ ++/** ++ * select minimum value ++ */ ++float pspFpuMin(float f1, float f2); ++ ++/** ++ * Sign reversal ++ */ ++float pspFpuNeg(float f); ++ ++/** ++ * Round to nearest ++ */ ++int pspFpuRound(float f); ++ ++/* ++ * Reciprocal of square root ++ */ ++float pspFpuRsqrt(float f); ++ ++/** ++ * Square root ++ */ ++float pspFpuSqrt(float f); ++ ++/** ++ * Round towards zero ++ */ ++int pspFpuTrunc(float f); ++ ++/** ++ * ++ */ ++float pspFpuFmod(float fs, float fd); ++ ++/** ++ * ++ */ ++float pspFpuFrac(float f); ++ ++/** ++ * ++ */ ++float pspFpuReinterpretFloat(uint32_t ui); ++ ++/** ++ * ++ */ ++uint32_t pspFpuReinterpretUint(float f); ++ ++/** ++ * ++ */ ++int pspFpuIsEqual(float f1, float f2); ++ ++/** ++ * ++ */ ++float pspFpuSignFloat(float f); ++ ++/** ++ * ++ */ ++int pspFpuSignInt(float f); ++ ++/** ++ * Positive zero ++ */ ++float pspFpuPositiveZero(void); ++ ++/** ++ * Negative zero ++ */ ++float pspFpuNegativeZero(void); ++ ++/** ++ * Test for zero value ++ */ ++int pspFpuIsZero(float f); ++ ++/** ++ * Test for positive zero ++ */ ++int pspFpuIsPositiveZero(float f); ++ ++/** ++ * Test for negative zero ++ */ ++int pspFpuIsNegativeZero(float f); ++ ++/** ++ * Test for denormalized number ++ */ ++int pspFpuIsDenormal(float f); ++ ++/** ++ * Test for zero or denormalized number ++ */ ++int pspFpuIsZeroOrDenormal(float f); ++ ++/** ++ * Positive infinity ++ */ ++float pspFpuPositiveInf(void); ++ ++/** ++ * Negative infinity ++ */ ++float pspFpuNegativeInf(void); ++ ++/** ++ * Test for infinity ++ */ ++int pspFpuIsInf(float f); ++ ++/** ++ * NaN (positive SNaN) ++ */ ++float pspFpuPositiveNaN(void); ++ ++/** ++ * NaN (negative SNaN) ++ */ ++float pspFpuNegativeNaN(void); ++ ++/** ++ * Quiet NaN (positive QNaN) ++ */ ++float pspFpuPositiveQNaN(void); ++ ++/** ++ * Quiet NaN (positive QNaN) ++ */ ++float pspFpuNegativeQNaN(void); ++ ++/** ++ * Signaling NaN (positive SNaN) ++ */ ++float pspFpuPositiveSNaN(unsigned int uiSignal); ++ ++/** ++ * Signaling NaN (negative SNaN) ++ */ ++float pspFpuNegativeSNaN(unsigned int uiSignal); ++ ++/** ++ * Test for NaN ++ */ ++int pspFpuIsNaN(float f); ++ ++/** ++ * Test for infinity or NaN ++ */ ++int pspFpuIsInfOrNaN(float f); ++ ++/** ++ * ++ */ ++float pspFpuNormalizePhase(float f); ++ ++/** ++ * Sine ++ */ ++float pspFpuSin(float x); ++ ++/** ++ * Cosine ++ */ ++float pspFpuCos(float x); ++ ++/** ++ * Arc tangent ++ */ ++float pspFpuAtan(float x); ++ ++/** ++ * Natural Logarithm ++ */ ++float pspFpuLog(float x); ++ ++/** ++ * Exponential ++ */ ++float pspFpuExp(float x); ++ ++/** ++ * ArcSin ++ */ ++float pspFpuAsin(float x); ++ ++/** ++ * ArcCos ++ */ ++float pspFpuAcos(float x); ++ ++/** ++ * convert float to double ++ */ ++double pspFpuFloatToDouble(float a); ++ ++/** ++ * convert double to float ++ */ ++float pspFpuDoubleToFloat(double a); + + #ifdef __cplusplus + } +diff -Nbaur pspsdk/src/ge/pspge.h pspsdk.new/src/ge/pspge.h +--- pspsdk/src/ge/pspge.h 2011-07-29 15:56:26.000000000 +0100 ++++ pspsdk.new/src/ge/pspge.h 2011-07-29 14:56:08.000000000 +0100 +@@ -46,6 +46,13 @@ + } PspGeListArgs; + + /** ++ * Drawing queue interruption parameter ++ */ ++typedef struct PspGeBreakParam { ++ unsigned int buf[4]; ++} PspGeBreakParam; ++ ++/** + * Get the size of VRAM. + * + * @return The size of VRAM (in bytes). +@@ -206,6 +213,22 @@ + */ + int sceGeUnsetCallback(int cbid); + ++/** ++ * Interrupt drawing queue ++ */ ++int sceGeBreak(int mode, PspGeBreakParam *pParam); ++ ++/** ++ * Restart drawing queue ++ */ ++int sceGeContinue(void); ++ ++/** ++ * Set Graphics Engine eDRAM address translation mode ++ */ ++int sceGeEdramSetAddrTranslation(int width); ++ ++ + #ifdef __cplusplus + } + #endif +diff -Nbaur pspsdk/src/kernel/Makefile.am pspsdk.new/src/kernel/Makefile.am +--- pspsdk/src/kernel/Makefile.am 2011-07-29 15:56:22.000000000 +0100 ++++ pspsdk.new/src/kernel/Makefile.am 2011-07-29 14:56:08.000000000 +0100 +@@ -34,7 +34,7 @@ + + LOADEXEC_OBJS = LoadExecForKernel_0000.o LoadExecForKernel_0001.o LoadExecForKernel_0002.o LoadExecForKernel_0003.o LoadExecForKernel_0004.o LoadExecForKernel_0005.o LoadExecForKernel_0006.o LoadExecForKernel_0007.o LoadExecForKernel_0008.o LoadExecForKernel_0009.o LoadExecForKernel_0010.o LoadExecForKernel_0011.o LoadExecForKernel_0012.o LoadExecForKernel_0013.o LoadExecForKernel_0014.o LoadExecForKernel_0015.o LoadExecForKernel_0016.o LoadExecForKernel_0017.o LoadExecForKernel_0018.o LoadExecForKernel_0019.o LoadExecForKernel_0020.o LoadExecForKernel_0021.o LoadExecForKernel_0022.o LoadExecForKernel_0023.o LoadExecForKernel_0024.o LoadExecForKernel_0025.o LoadExecForKernel_0026.o + +-SYSMEM_OBJS = SysMemForKernel_0000.o SysMemForKernel_0001.o SysMemForKernel_0002.o SysMemForKernel_0003.o SysMemForKernel_0004.o SysMemForKernel_0005.o SysMemForKernel_0006.o SysMemForKernel_0007.o SysMemForKernel_0008.o SysMemForKernel_0009.o SysMemForKernel_0010.o SysMemForKernel_0011.o SysMemForKernel_0012.o SysMemForKernel_0013.o SysMemForKernel_0014.o SysMemForKernel_0015.o SysMemForKernel_0016.o SysMemForKernel_0017.o SysMemForKernel_0018.o SysMemForKernel_0019.o SysMemForKernel_0020.o SysMemForKernel_0021.o SysMemForKernel_0022.o SysMemForKernel_0023.o SysMemForKernel_0024.o SysMemForKernel_0025.o SysMemForKernel_0026.o SysMemForKernel_0027.o SysMemForKernel_0028.o SysMemForKernel_0029.o SysMemForKernel_0030.o SysMemForKernel_0031.o SysMemForKernel_0032.o SysMemForKernel_0033.o SysMemForKernel_0034.o SysMemForKernel_0035.o SysMemForKernel_0036.o SysMemForKernel_0037.o SysMemForKernel_0038.o SysMemForKernel_0039.o SysMemForKernel_0040.o SysMemForKernel_0041.o SysMemForKernel_0042.o SysMemForKernel_0043.o SysMemForKernel_0044.o SysMemForKernel_0045.o SysMemForKernel_0046.o SysMemForKernel_0047.o SysMemForKernel_0048.o SysMemForKernel_0049.o SysMemForKernel_0050.o SysMemForKernel_0051.o SysMemForKernel_0052.o SysMemForKernel_0053.o SysMemForKernel_0054.o SysMemForKernel_0055.o SysMemForKernel_0056.o SysMemForKernel_0057.o SysMemForKernel_0058.o SysMemForKernel_0059.o SysMemForKernel_0060.o SysMemForKernel_0061.o SysMemForKernel_0062.o SysMemForKernel_0063.o SysMemForKernel_0064.o SysMemForKernel_0065.o SysMemForKernel_0066.o SysMemForKernel_0067.o SysMemForKernel_0068.o ++SYSMEM_OBJS = SysMemForKernel_0000.o SysMemForKernel_0001.o SysMemForKernel_0002.o SysMemForKernel_0003.o SysMemForKernel_0004.o SysMemForKernel_0005.o SysMemForKernel_0006.o SysMemForKernel_0007.o SysMemForKernel_0008.o SysMemForKernel_0009.o SysMemForKernel_0010.o SysMemForKernel_0011.o SysMemForKernel_0012.o SysMemForKernel_0013.o SysMemForKernel_0014.o SysMemForKernel_0015.o SysMemForKernel_0016.o SysMemForKernel_0017.o SysMemForKernel_0018.o SysMemForKernel_0019.o SysMemForKernel_0020.o SysMemForKernel_0021.o SysMemForKernel_0022.o SysMemForKernel_0023.o SysMemForKernel_0024.o SysMemForKernel_0025.o SysMemForKernel_0026.o SysMemForKernel_0027.o SysMemForKernel_0028.o SysMemForKernel_0029.o SysMemForKernel_0030.o SysMemForKernel_0031.o SysMemForKernel_0032.o SysMemForKernel_0033.o SysMemForKernel_0034.o SysMemForKernel_0035.o SysMemForKernel_0036.o SysMemForKernel_0037.o SysMemForKernel_0038.o SysMemForKernel_0039.o SysMemForKernel_0040.o SysMemForKernel_0041.o SysMemForKernel_0042.o SysMemForKernel_0043.o SysMemForKernel_0044.o SysMemForKernel_0045.o SysMemForKernel_0046.o SysMemForKernel_0047.o SysMemForKernel_0048.o SysMemForKernel_0049.o SysMemForKernel_0050.o SysMemForKernel_0051.o SysMemForKernel_0052.o SysMemForKernel_0053.o SysMemForKernel_0054.o SysMemForKernel_0055.o SysMemForKernel_0056.o SysMemForKernel_0057.o SysMemForKernel_0058.o SysMemForKernel_0059.o SysMemForKernel_0060.o SysMemForKernel_0061.o SysMemForKernel_0062.o SysMemForKernel_0063.o SysMemForKernel_0064.o SysMemForKernel_0065.o SysMemForKernel_0066.o SysMemForKernel_0067.o SysMemForKernel_0068.o SysMemForKernel_0069.o SysMemForKernel_0070.o + + MODULE_OBJS = ModuleMgrForKernel_0000.o ModuleMgrForKernel_0001.o ModuleMgrForKernel_0002.o ModuleMgrForKernel_0003.o ModuleMgrForKernel_0004.o ModuleMgrForKernel_0005.o ModuleMgrForKernel_0006.o ModuleMgrForKernel_0007.o ModuleMgrForKernel_0008.o ModuleMgrForKernel_0009.o ModuleMgrForKernel_0010.o ModuleMgrForKernel_0011.o ModuleMgrForKernel_0012.o ModuleMgrForKernel_0013.o ModuleMgrForKernel_0014.o ModuleMgrForKernel_0015.o ModuleMgrForKernel_0016.o ModuleMgrForKernel_0017.o ModuleMgrForKernel_0018.o ModuleMgrForKernel_0019.o ModuleMgrForKernel_0020.o ModuleMgrForKernel_0021.o ModuleMgrForKernel_0022.o + +diff -Nbaur pspsdk/src/kernel/SysMemForKernel.S pspsdk.new/src/kernel/SysMemForKernel.S +--- pspsdk/src/kernel/SysMemForKernel.S 2011-07-29 15:56:22.000000000 +0100 ++++ pspsdk.new/src/kernel/SysMemForKernel.S 2011-07-29 14:56:08.000000000 +0100 +@@ -211,3 +211,9 @@ + #ifdef F_SysMemForKernel_0068 + IMPORT_FUNC "SysMemForKernel",0x6373995D,sceKernelGetModel + #endif ++#ifdef F_SysMemForKernel_0069 ++ IMPORT_FUNC "SysMemForKernel",0x7591C7DB,sceKernelSetCompiledSdkVersion ++#endif ++#ifdef F_SysMemForKernel_0070 ++ IMPORT_FUNC "SysMemForKernel",0xFC114573,sceKernelGetCompiledSdkVersion ++#endif +diff -Nbaur pspsdk/src/kernel/psploadcore.h pspsdk.new/src/kernel/psploadcore.h +--- pspsdk/src/kernel/psploadcore.h 2011-07-29 15:56:22.000000000 +0100 ++++ pspsdk.new/src/kernel/psploadcore.h 2011-07-29 14:56:08.000000000 +0100 +@@ -52,7 +52,7 @@ + unsigned int nsegment; + unsigned int segmentaddr[4]; + unsigned int segmentsize[4]; +-} SceModule; ++} __attribute__((packed)) SceModule; + + /** Defines a library and its exported functions and variables. Use the len + member to determine the real size of the table (size = len * 4). */ +diff -Nbaur pspsdk/src/kernel/pspsysmem_kernel.h pspsdk.new/src/kernel/pspsysmem_kernel.h +--- pspsdk/src/kernel/pspsysmem_kernel.h 2011-07-29 15:56:22.000000000 +0100 ++++ pspsdk.new/src/kernel/pspsysmem_kernel.h 2011-07-29 14:56:08.000000000 +0100 +@@ -201,6 +201,21 @@ + */ + int sceKernelGetModel(void); + ++/** ++ * Set the version of the SDK with which the caller was compiled. ++ * Version numbers are as for sceKernelDevkitVersion(). ++ * ++ * @return 0 on success, < 0 on error. ++ */ ++int sceKernelSetCompiledSdkVersion(int version); ++ ++/** ++ * Get the SDK version set with sceKernelSetCompiledSdkVersion(). ++ * ++ * @return Version number, or 0 if unset. ++ */ ++int sceKernelGetCompiledSdkVersion(void); ++ + #ifdef __cplusplus + } + #endif +diff -Nbaur pspsdk/src/libc/stdio.h pspsdk.new/src/libc/stdio.h +--- pspsdk/src/libc/stdio.h 2011-07-29 15:56:25.000000000 +0100 ++++ pspsdk.new/src/libc/stdio.h 2011-07-29 14:56:08.000000000 +0100 +@@ -18,6 +18,10 @@ + + #include + #include ++#include ++#define STDIN_FILENO 0 ++#define STDOUT_FILENO 1 ++#define STDERR_FILENO 2 + + #ifdef __cplusplus + extern "C" { +diff -Nbaur pspsdk/src/libc/terminate.c pspsdk.new/src/libc/terminate.c +--- pspsdk/src/libc/terminate.c 2011-07-29 15:56:25.000000000 +0100 ++++ pspsdk.new/src/libc/terminate.c 2011-07-29 14:56:08.000000000 +0100 +@@ -20,8 +20,6 @@ + __attribute__((weak)) + void abort() + { +- printf("Program aborted.\n"); +- + while (1) + _exit(1); + } +diff -Nbaur pspsdk/src/net/psphttp.h pspsdk.new/src/net/psphttp.h +--- pspsdk/src/net/psphttp.h 2011-07-29 15:56:25.000000000 +0100 ++++ pspsdk.new/src/net/psphttp.h 2011-07-29 14:56:08.000000000 +0100 +@@ -19,12 +19,53 @@ + + typedef enum + { ++ PSP_HTTP_VERSION_1_0, ++ PSP_HTTP_VERSION_1_1 ++} PspHttpHttpVersion; ++ ++typedef enum ++{ + PSP_HTTP_METHOD_GET, + PSP_HTTP_METHOD_POST, + PSP_HTTP_METHOD_HEAD + + } PspHttpMethod; + ++typedef enum ++{ ++ PSP_HTTP_AUTH_BASIC, ++ PSP_HTTP_AUTH_DIGEST ++} PspHttpAuthType; ++ ++ ++typedef enum ++{ ++ PSP_HTTP_PROXY_AUTO, ++ PSP_HTTP_PROXY_MANUAL ++} PspHttpProxyMode; ++ ++typedef enum ++{ ++ PSP_HTTP_HEADER_OVERWRITE, ++ PSP_HTTP_HEADER_ADD ++} PspHttpAddHeaderMode; ++ ++/* Memory function types */ ++typedef void *(*PspHttpMallocFunction)(SceSize size); ++typedef void *(*PspHttpReallocFunction)(void *p, SceSize size); ++typedef void (*PspHttpFreeFunction)(void *p); ++ ++typedef int (*PspHttpPasswordCB)( ++ int request, ++ PspHttpAuthType auth_type, ++ const unsigned char *realm, ++ unsigned char *username, ++ unsigned char *password, ++ SceBool need_entity, ++ unsigned char **entity_body, ++ SceSize *entity_size, ++ SceBool *save); ++ + /** + * Init the http library. + * +@@ -319,6 +360,32 @@ + */ + int sceHttpsLoadDefaultCert(int unknown1, int unknown2); + ++int sceHttpDisableAuth(int id); ++ ++int sceHttpDisableCache(int id); ++ ++int sceHttpEnableAuth(int id); ++ ++int sceHttpEnableCache(int id); ++ ++int sceHttpEndCache(void); ++ ++int sceHttpGetAllHeader(int request, unsigned char **header, unsigned int *header_size); ++ ++int sceHttpGetNetworkErrno(int request, int *err_num); ++ ++int sceHttpGetProxy(int id, int *activate_flag, int *mode, unsigned char *proxy_host, SceSize len, unsigned short *proxy_port); ++ ++int sceHttpInitCache(SceSize max_size); ++ ++int sceHttpSetAuthInfoCB(int id, PspHttpPasswordCB cbfunc); ++ ++int sceHttpSetProxy(int id, int activate_flag, int mode, const unsigned char *new_proxy_host, unsigned short new_proxy_port); ++ ++int sceHttpSetResHeaderMaxSize(int id, unsigned int header_size); ++ ++int sceHttpSetMallocFunction(PspHttpMallocFunction malloc_func, PspHttpFreeFunction free_func, PspHttpReallocFunction realloc_func); ++ + #if defined(__cplusplus) + }; + #endif +diff -Nbaur pspsdk/src/rtc/psprtc.h pspsdk.new/src/rtc/psprtc.h +--- pspsdk/src/rtc/psprtc.h 2011-07-29 15:56:23.000000000 +0100 ++++ pspsdk.new/src/rtc/psprtc.h 2011-07-29 14:56:08.000000000 +0100 +@@ -249,14 +249,31 @@ + int sceRtcGetWin32FileTime(pspTime* date, u64* win32Time); + + int sceRtcParseDateTime(u64 *destTick, const char *dateString); +-/* +-sceRtcFormatRFC2822 +-sceRtcFormatRFC2822LocalTime +-sceRtcFormatRFC3339 +-sceRtcFormatRFC3339LocalTime + +-sceRtcParseRFC3339 +-*/ ++/** ++ * Format Tick-representation UTC time in RFC2822 format ++ */ ++int sceRtcFormatRFC2822(char *pszDateTime, const u64 *pUtc, int iTimeZoneMinutes); ++ ++/** ++ * Format Tick-representation UTC time in RFC2822 format ++ */ ++int sceRtcFormatRFC2822LocalTime(char *pszDateTime, const u64 *pUtc); ++ ++/** ++ * Format Tick-representation UTC time in RFC3339(ISO8601) format ++ */ ++int sceRtcFormatRFC3339(char *pszDateTime, const u64 *pUtc, int iTimeZoneMinutes); ++ ++/** ++ * Format Tick-representation UTC time in RFC3339(ISO8601) format ++ */ ++int sceRtcFormatRFC3339LocalTime(char *pszDateTime, const u64 *pUtc); ++ ++/** ++ * Parse time information represented in RFC3339 format ++ */ ++int sceRtcParseRFC3339(u64 *pUtc, const char *pszDateTime); + + #ifdef __cplusplus + } +diff -Nbaur pspsdk/src/samples/Makefile.am pspsdk.new/src/samples/Makefile.am +--- pspsdk/src/samples/Makefile.am 2011-07-29 15:56:33.000000000 +0100 ++++ pspsdk.new/src/samples/Makefile.am 2011-07-29 14:57:09.000000000 +0100 +@@ -81,7 +81,9 @@ + utility/systemparam \ + utility/osk \ + me/basic \ +- wlan ++ wlan \ ++ obj-c \ ++ exceptions + + all: + +diff -Nbaur pspsdk/src/samples/Makefile.am.rej pspsdk.new/src/samples/Makefile.am.rej +--- pspsdk/src/samples/Makefile.am.rej 1970-01-01 01:00:00.000000000 +0100 ++++ pspsdk.new/src/samples/Makefile.am.rej 2011-07-29 14:56:08.000000000 +0100 +@@ -0,0 +1,20 @@ ++*************** ++*** 81,87 **** ++ utility/systemparam \ ++ utility/osk \ ++ me/basic \ ++- wlan ++ ++ all: ++ ++--- 81,90 ---- ++ utility/systemparam \ ++ utility/osk \ ++ me/basic \ +++ wlan \ +++ obj-c \ +++ exceptions \ +++ d ++ ++ all: ++ +diff -Nbaur pspsdk/src/samples/exceptions/Makefile.sample pspsdk.new/src/samples/exceptions/Makefile.sample +--- pspsdk/src/samples/exceptions/Makefile.sample 1970-01-01 01:00:00.000000000 +0100 ++++ pspsdk.new/src/samples/exceptions/Makefile.sample 2011-07-29 14:56:08.000000000 +0100 +@@ -0,0 +1,18 @@ ++TARGET = CppException ++OBJS = main.o ++LIBS = -lstdc++ ++ ++INCDIR = ++CFLAGS = -G0 -Wall -O2 ++CXXFLAGS = $(CFLAGS) -fno-rtti -fexceptions ++ASFLAGS = $(CFLAGS) ++ ++LIBDIR = ++LDFLAGS = ++ ++EXTRA_TARGETS = EBOOT.PBP ++PSP_EBOOT_TITLE = C++ Exception Sample ++ ++PSPSDK=$(shell psp-config --pspsdk-path) ++include $(PSPSDK)/lib/build.mak ++ +diff -Nbaur pspsdk/src/samples/exceptions/main.cpp pspsdk.new/src/samples/exceptions/main.cpp +--- pspsdk/src/samples/exceptions/main.cpp 1970-01-01 01:00:00.000000000 +0100 ++++ pspsdk.new/src/samples/exceptions/main.cpp 2011-07-29 14:56:08.000000000 +0100 +@@ -0,0 +1,51 @@ ++#include ++#include ++#include ++ ++/* Define printf, just to make typing easier */ ++#define printf pspDebugScreenPrintf ++ ++/* Define the module info section */ ++PSP_MODULE_INFO("cppException", 0, 1, 1); ++ ++/* Define the main thread's attribute value (optional) */ ++PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU); ++ ++#include ++using namespace std; ++ ++class myexception: public exception ++{ ++ virtual const char* what() const throw() ++ { ++ return "My exception happened"; ++ } ++} myex; ++ ++int main (void) ++{ ++ pspDebugScreenInit(); ++ SceCtrlData pad; ++ ++ try ++ { ++ throw myex; ++ } ++ catch (exception& e) ++ { ++ printf("%s\n", e.what()); ++ } ++ ++ printf("\nPress X to quit.\n"); ++ ++ for (;;) ++ { ++ sceCtrlReadBufferPositive(&pad, 1); ++ if (pad.Buttons & PSP_CTRL_CROSS) ++ break; ++ } ++ sceKernelExitGame(); ++ ++ return 0; ++} ++ +diff -Nbaur pspsdk/src/samples/obj-c/Makefile.sample pspsdk.new/src/samples/obj-c/Makefile.sample +--- pspsdk/src/samples/obj-c/Makefile.sample 1970-01-01 01:00:00.000000000 +0100 ++++ pspsdk.new/src/samples/obj-c/Makefile.sample 2011-07-29 14:56:08.000000000 +0100 +@@ -0,0 +1,19 @@ ++TARGET = ObjC ++OBJS = main.o ++ ++USE_OBJC=1 ++ ++INCDIR = ++CFLAGS = -G0 -Wall -O2 ++CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ++ASFLAGS = $(CFLAGS) ++ ++LIBDIR = ++LDFLAGS = ++ ++EXTRA_TARGETS = EBOOT.PBP ++PSP_EBOOT_TITLE = ObjC Sample ++ ++PSPSDK=$(shell psp-config --pspsdk-path) ++include $(PSPSDK)/lib/build.mak ++ +diff -Nbaur pspsdk/src/samples/obj-c/main.m pspsdk.new/src/samples/obj-c/main.m +--- pspsdk/src/samples/obj-c/main.m 1970-01-01 01:00:00.000000000 +0100 ++++ pspsdk.new/src/samples/obj-c/main.m 2011-07-29 14:56:08.000000000 +0100 +@@ -0,0 +1,62 @@ ++#include ++ ++@interface Greeter:Object ++{ ++ /* This is left empty on purpose: ++ ** Normally instance variables would be declared here, ++ ** but these are not used in our example. ++ */ ++} ++ ++- (void)greet; ++ ++@end ++ ++ ++#include ++#include ++#include ++ ++/* Define printf, just to make typing easier */ ++#define printf pspDebugScreenPrintf ++ ++@implementation Greeter ++ ++- (void)greet ++{ ++ printf("Hello, World from Obj-C!\n"); ++} ++ ++@end ++ ++/* Define the module info section */ ++PSP_MODULE_INFO("template", 0, 1, 1); ++ ++/* Define the main thread's attribute value (optional) */ ++PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU); ++ ++int main(void) ++{ ++ /* Non Objective-C code to allow the app to end */ ++ pspDebugScreenInit(); ++ SceCtrlData pad; ++ ++ /* Objective-C code */ ++ id myGreeter; ++ myGreeter=[Greeter new]; ++ ++ [myGreeter greet]; ++ [myGreeter free]; ++ ++ printf("\nPress X to quit.\n"); ++ for (;;) ++ { ++ sceCtrlReadBufferPositive(&pad, 1); ++ if (pad.Buttons & PSP_CTRL_CROSS) ++ break; ++ } ++ sceKernelExitGame(); ++ ++ return 0; ++} ++ +diff -Nbaur pspsdk/src/user/Makefile.am pspsdk.new/src/user/Makefile.am +--- pspsdk/src/user/Makefile.am 2011-07-29 15:56:36.000000000 +0100 ++++ pspsdk.new/src/user/Makefile.am 2011-07-29 14:56:08.000000000 +0100 +@@ -20,11 +20,11 @@ + + SUSPEND_OBJS = sceSuspendForUser_0000.o sceSuspendForUser_0001.o sceSuspendForUser_0002.o sceSuspendForUser_0003.o sceSuspendForUser_0004.o sceSuspendForUser_005.o sceSuspendForUser_0006.o + +-SYSMEM_OBJS = SysMemUserForUser_0000.o SysMemUserForUser_0001.o SysMemUserForUser_0002.o SysMemUserForUser_0003.o SysMemUserForUser_0004.o SysMemUserForUser_0005.o SysMemUserForUser_0006.o SysMemUserForUser_0007.o ++SYSMEM_OBJS = SysMemUserForUser_0000.o SysMemUserForUser_0001.o SysMemUserForUser_0002.o SysMemUserForUser_0003.o SysMemUserForUser_0004.o SysMemUserForUser_0005.o SysMemUserForUser_0006.o SysMemUserForUser_0007.o SysMemUserForUser_0008.o SysMemUserForUser_0009.o + + THREADMAN_OBJS = ThreadManForUser_0000.o ThreadManForUser_0001.o ThreadManForUser_0002.o ThreadManForUser_0003.o ThreadManForUser_0004.o ThreadManForUser_0005.o ThreadManForUser_0006.o ThreadManForUser_0007.o ThreadManForUser_0008.o ThreadManForUser_0009.o ThreadManForUser_0010.o ThreadManForUser_0011.o ThreadManForUser_0012.o ThreadManForUser_0013.o ThreadManForUser_0014.o ThreadManForUser_0015.o ThreadManForUser_0016.o ThreadManForUser_0017.o ThreadManForUser_0018.o ThreadManForUser_0019.o ThreadManForUser_0020.o ThreadManForUser_0021.o ThreadManForUser_0022.o ThreadManForUser_0023.o ThreadManForUser_0024.o ThreadManForUser_0025.o ThreadManForUser_0026.o ThreadManForUser_0027.o ThreadManForUser_0028.o ThreadManForUser_0029.o ThreadManForUser_0030.o ThreadManForUser_0031.o ThreadManForUser_0032.o ThreadManForUser_0033.o ThreadManForUser_0034.o ThreadManForUser_0035.o ThreadManForUser_0036.o ThreadManForUser_0037.o ThreadManForUser_0038.o ThreadManForUser_0039.o ThreadManForUser_0040.o ThreadManForUser_0041.o ThreadManForUser_0042.o ThreadManForUser_0043.o ThreadManForUser_0044.o ThreadManForUser_0045.o ThreadManForUser_0046.o ThreadManForUser_0047.o ThreadManForUser_0048.o ThreadManForUser_0049.o ThreadManForUser_0050.o ThreadManForUser_0051.o ThreadManForUser_0052.o ThreadManForUser_0053.o ThreadManForUser_0054.o ThreadManForUser_0055.o ThreadManForUser_0056.o ThreadManForUser_0057.o ThreadManForUser_0058.o ThreadManForUser_0059.o ThreadManForUser_0060.o ThreadManForUser_0061.o ThreadManForUser_0062.o ThreadManForUser_0063.o ThreadManForUser_0064.o ThreadManForUser_0065.o ThreadManForUser_0066.o ThreadManForUser_0067.o ThreadManForUser_0068.o ThreadManForUser_0069.o ThreadManForUser_0070.o ThreadManForUser_0071.o ThreadManForUser_0072.o ThreadManForUser_0073.o ThreadManForUser_0074.o ThreadManForUser_0075.o ThreadManForUser_0076.o ThreadManForUser_0077.o ThreadManForUser_0078.o ThreadManForUser_0079.o ThreadManForUser_0080.o ThreadManForUser_0081.o ThreadManForUser_0082.o ThreadManForUser_0083.o ThreadManForUser_0084.o ThreadManForUser_0085.o ThreadManForUser_0086.o ThreadManForUser_0087.o ThreadManForUser_0088.o ThreadManForUser_0089.o ThreadManForUser_0090.o ThreadManForUser_0091.o ThreadManForUser_0092.o ThreadManForUser_0093.o ThreadManForUser_0094.o ThreadManForUser_0095.o ThreadManForUser_0096.o ThreadManForUser_0097.o ThreadManForUser_0098.o ThreadManForUser_0099.o ThreadManForUser_0100.o ThreadManForUser_0101.o ThreadManForUser_0102.o ThreadManForUser_0103.o ThreadManForUser_0104.o ThreadManForUser_0105.o ThreadManForUser_0106.o ThreadManForUser_0107.o ThreadManForUser_0108.o ThreadManForUser_0109.o ThreadManForUser_0110.o ThreadManForUser_0111.o ThreadManForUser_0112.o ThreadManForUser_0113.o ThreadManForUser_0114.o ThreadManForUser_0115.o ThreadManForUser_0116.o ThreadManForUser_0117.o ThreadManForUser_0118.o ThreadManForUser_0119.o ThreadManForUser_0120.o ThreadManForUser_0121.o ThreadManForUser_0122.o ThreadManForUser_0123.o ThreadManForUser_0124.o ThreadManForUser_0125.o ThreadManForUser_0126.o + +-UTILS_OBJS = UtilsForUser_0000.o UtilsForUser_0001.o UtilsForUser_0002.o UtilsForUser_0003.o UtilsForUser_0004.o UtilsForUser_0005.o UtilsForUser_0006.o UtilsForUser_0007.o UtilsForUser_0008.o UtilsForUser_0009.o UtilsForUser_0010.o UtilsForUser_0011.o UtilsForUser_0012.o UtilsForUser_0013.o UtilsForUser_0014.o UtilsForUser_0015.o UtilsForUser_0016.o UtilsForUser_0017.o UtilsForUser_0018.o UtilsForUser_0019.o UtilsForUser_0020.o UtilsForUser_0021.o UtilsForUser_0022.o UtilsForUser_0023.o UtilsForUser_0024.o ++UTILS_OBJS = UtilsForUser_0000.o UtilsForUser_0001.o UtilsForUser_0002.o UtilsForUser_0003.o UtilsForUser_0004.o UtilsForUser_0005.o UtilsForUser_0006.o UtilsForUser_0007.o UtilsForUser_0008.o UtilsForUser_0009.o UtilsForUser_0010.o UtilsForUser_0011.o UtilsForUser_0012.o UtilsForUser_0013.o UtilsForUser_0014.o UtilsForUser_0015.o UtilsForUser_0016.o UtilsForUser_0017.o UtilsForUser_0018.o UtilsForUser_0019.o UtilsForUser_0020.o UtilsForUser_0021.o UtilsForUser_0022.o UtilsForUser_0023.o UtilsForUser_0024.o UtilsForUser_0025.o UtilsForUser_0026.o + + INTERRUPT_OBJS = InterruptManager_0000.o InterruptManager_0001.o InterruptManager_0002.o InterruptManager_0003.o InterruptManager_0004.o InterruptManager_0005.o InterruptManager_0006.o InterruptManager_0007.o InterruptManager_0008.o InterruptManager_0009.o + +diff -Nbaur pspsdk/src/user/SysMemUserForUser.S pspsdk.new/src/user/SysMemUserForUser.S +--- pspsdk/src/user/SysMemUserForUser.S 2011-07-29 15:56:36.000000000 +0100 ++++ pspsdk.new/src/user/SysMemUserForUser.S 2011-07-29 14:56:08.000000000 +0100 +@@ -26,3 +26,9 @@ + #ifdef F_SysMemUserForUser_0007 + IMPORT_FUNC "SysMemUserForUser",0x13A5ABEF,sceKernelPrintf + #endif ++#ifdef F_SysMemUserForUser_0008 ++ IMPORT_FUNC "SysMemUserForUser",0x7591C7DB,sceKernelSetCompiledSdkVersion ++#endif ++#ifdef F_SysMemUserForUser_0009 ++ IMPORT_FUNC "SysMemUserForUser",0xFC114573,sceKernelGetCompiledSdkVersion ++#endif +diff -Nbaur pspsdk/src/user/UtilsForUser.S pspsdk.new/src/user/UtilsForUser.S +--- pspsdk/src/user/UtilsForUser.S 2011-07-29 15:56:36.000000000 +0100 ++++ pspsdk.new/src/user/UtilsForUser.S 2011-07-29 14:56:08.000000000 +0100 +@@ -77,3 +77,9 @@ + #ifdef F_UtilsForUser_0024 + IMPORT_FUNC "UtilsForUser",0xFB05FAD0,sceKernelIcacheReadTag + #endif ++#ifdef F_UtilsForUser_0025 ++ IMPORT_FUNC "UtilsForUser",0x920F104A,sceKernelIcacheInvalidateAll ++#endif ++#ifdef F_UtilsForUser_0026 ++ IMPORT_FUNC "UtilsForUser",0xC2DF770E,sceKernelIcacheInvalidateRange ++#endif +diff -Nbaur pspsdk/src/user/pspsysmem.h pspsdk.new/src/user/pspsysmem.h +--- pspsdk/src/user/pspsysmem.h 2011-07-29 15:56:36.000000000 +0100 ++++ pspsdk.new/src/user/pspsysmem.h 2011-07-29 14:56:08.000000000 +0100 +@@ -115,6 +115,21 @@ + + #endif + ++/** ++ * Set the version of the SDK with which the caller was compiled. ++ * Version numbers are as for sceKernelDevkitVersion(). ++ * ++ * @return 0 on success, < 0 on error. ++ */ ++int sceKernelSetCompiledSdkVersion(int version); ++ ++/** ++ * Get the SDK version set with sceKernelSetCompiledSdkVersion(). ++ * ++ * @return Version number, or 0 if unset. ++ */ ++int sceKernelGetCompiledSdkVersion(void); ++ + #ifdef __cplusplus + } + #endif +diff -Nbaur pspsdk/src/user/psputils.h pspsdk.new/src/user/psputils.h +--- pspsdk/src/user/psputils.h 2011-07-29 15:56:36.000000000 +0100 ++++ pspsdk.new/src/user/psputils.h 2011-07-29 14:56:08.000000000 +0100 +@@ -58,12 +58,12 @@ + void sceKernelDcacheWritebackInvalidateAll(void); + + /** +- * Write back a range of addresses from data cache to memory ++ * Write back a range of addresses from the data cache to memory + */ + void sceKernelDcacheWritebackRange(const void *p, unsigned int size); + + /** +- * Write back and invalidate a range of addresses in data cache ++ * Write back and invalidate a range of addresses in the data cache + */ + void sceKernelDcacheWritebackInvalidateRange(const void *p, unsigned int size); + +@@ -72,6 +72,16 @@ + */ + void sceKernelDcacheInvalidateRange(const void *p, unsigned int size); + ++/** ++ * Invalidate the instruction cache ++ */ ++void sceKernelIcacheInvalidateAll(void); ++ ++/** ++ * Invalidate a range of addresses in the instruction cache ++ */ ++void sceKernelIcacheInvalidateRange(const void *p, unsigned int size); ++ + /** Structure for holding a mersenne twister context */ + typedef struct _SceKernelUtilsMt19937Context { + unsigned int count; diff --git a/dkpsp/scripts/build-gcc.sh b/dkpsp/scripts/build-gcc.sh index 7e0f7d6..ee8f667 100644 --- a/dkpsp/scripts/build-gcc.sh +++ b/dkpsp/scripts/build-gcc.sh @@ -63,7 +63,7 @@ then --target=$target \ --with-newlib \ --prefix=$prefix \ - --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPSP release 14" \ + --with-bugurl="http://wiki.devkitpro.org/index.php/Bug_Reports" --with-pkgversion="devkitPSP release 15" \ || { echo "Error configuring gcc"; exit 1; } touch configured-gcc fi @@ -86,11 +86,20 @@ cd $BUILDSCRIPTDIR if [ ! -f checkout-psp-sdk ] then - svn checkout svn://svn.pspdev.org/psp/trunk/pspsdk || { echo "ERROR GETTING PSPSDK"; exit 1; } + svn checkout http://psp.jim.sh/svn/psp/trunk/pspsdk || { echo "ERROR GETTING PSPSDK"; exit 1; } touch checkout-psp-sdk fi cd pspsdk +if [ ! -f patch-psp-sdk ] +then + if [ -f $patchdir/pspsdk.patch ] + then + patch -p1 -i $patchdir/pspsdk.patch || { echo "ERROR PATCHING PSPSDK"; exit 1; } + fi + touch patch-psp-sdk +fi + if [ ! -f bootstrap-sdk ] then ./bootstrap || { echo "ERROR RUNNING PSPSDK BOOTSTRAP"; exit 1; }