source: rtems/contrib/crossrpms/patches/newlib-1.14.0-bfinrtems-20060810a.diff @ 6d7e836

4.104.114.84.95
Last change on this file since 6d7e836 was 6d7e836, checked in by Joel Sherrill <joel.sherrill@…>, on 08/11/06 at 21:37:40

2006-08-11 Joel Sherrill <joel@…>

  • configure.ac, gcc/build.add, gcc/target-gcc.add: Add bfin target prior to merge. Add ability to disable libssp and libstdcxx-pch which apparently are required to build the Blackfin port.
  • patches/binutils-2.17-rtems-bfin-20060810.diff, patches/gcc-4.1.1-bfinrtems-20060810a.diff, patches/gdb-6.5-bfinrtems-20060810a.diff, patches/newlib-1.14.0-bfinrtems-20060810a.diff, rtems4.7/bfin/.cvsignore, rtems4.7/bfin/Makefile.am, rtems4.7/bfin/binutils-sources.add, rtems4.7/bfin/gcc-sources.add, rtems4.7/bfin/gdb-sources.add: New files.
  • Property mode set to 100644
File size: 188.4 KB
  • newlib/configure.host

    diff -urN newlib-1.14.0-orig/newlib/configure.host newlib-1.14.0/newlib/configure.host
    old new  
    9696  avr*)
    9797        newlib_cflags="${newlib_cflags} -DPREFER_SIZE_OVER_SPEED -mcall-prologues"
    9898        ;;
     99  bfin)
     100        machine_dir=bfin
     101        ;;
    99102  cris | crisv32)
    100103        machine_dir=cris
    101104        ;;
     
    326329          have_crt0="no"
    327330        fi
    328331        ;;
     332  bfin-*-*)
     333        sys_dir=bfin
     334        ;;
    329335  crx*)
    330336        sys_dir=
    331337        ;;
     
    526532  avr*)
    527533        newlib_cflags="${newlib_cflags} -DNO_EXEC -DSMALL_MEMORY -DMISSING_SYSCALL_NAMES"
    528534        ;;
     535  bfin*)
     536        syscall_dir=syscalls
     537        ;;
    529538  cris-*-* | crisv32-*-*)
    530539        default_newlib_io_long_long="yes"
    531540        newlib_cflags="${newlib_cflags} -DHAVE_RENAME -DHAVE_GETTIMEOFDAY -D_USE_WRITE -DCOMPACT_CTYPE"
  • newlib/libc/include/machine/ieeefp.h

    diff -urN newlib-1.14.0-orig/newlib/libc/include/machine/ieeefp.h newlib-1.14.0/newlib/libc/include/machine/ieeefp.h
    old new  
    278278#define __IEEE_LITTLE_ENDIAN
    279279#endif
    280280
     281#ifdef BFIN
     282#define __IEEE_LITTLE_ENDIAN
     283#endif
     284
    281285#ifndef __IEEE_BIG_ENDIAN
    282286#ifndef __IEEE_LITTLE_ENDIAN
    283287#error Endianess not declared!!
  • newlib/libc/machine/bfin/access.c

    diff -urN newlib-1.14.0-orig/newlib/libc/machine/bfin/access.c newlib-1.14.0/newlib/libc/machine/bfin/access.c
    old new  
     1/* This is file ACCESS.C */
     2/*
     3 * Copyright (C) 1993 DJ Delorie
     4 * All rights reserved.
     5 *
     6 * Redistribution and use in source and binary forms is permitted
     7 * provided that the above copyright notice and following paragraph are
     8 * duplicated in all such forms.
     9 *
     10 * This file is distributed WITHOUT ANY WARRANTY; without even the implied
     11 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     12 */
     13
     14#include <fcntl.h>
     15#include <sys/stat.h>
     16#include <unistd.h>
     17
     18int access(const char *fn, int flags)
     19{
     20  struct stat s;
     21  if (stat(fn, &s))
     22    return -1;
     23  if (s.st_mode & S_IFDIR)
     24    return 0;
     25  if (flags & W_OK)
     26  {
     27    if (s.st_mode & S_IWRITE)
     28      return 0;
     29    return -1;
     30  }
     31  return 0;
     32}
     33       
  • newlib/libc/machine/bfin/aclocal.m4

    diff -urN newlib-1.14.0-orig/newlib/libc/machine/bfin/aclocal.m4 newlib-1.14.0/newlib/libc/machine/bfin/aclocal.m4
    old new  
     1dnl aclocal.m4 generated automatically by aclocal 1.4-p6
     2
     3dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
     4dnl This file is free software; the Free Software Foundation
     5dnl gives unlimited permission to copy and/or distribute it,
     6dnl with or without modifications, as long as this notice is preserved.
     7
     8dnl This program is distributed in the hope that it will be useful,
     9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11dnl PARTICULAR PURPOSE.
     12
     13dnl This provides configure definitions used by all the newlib
     14dnl configure.in files.
     15
     16dnl Basic newlib configury.  This calls basic introductory stuff,
     17dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST.  It also runs
     18dnl configure.host.  The only argument is the relative path to the top
     19dnl newlib directory.
     20
     21AC_DEFUN(NEWLIB_CONFIGURE,
     22[
     23dnl Default to --enable-multilib
     24AC_ARG_ENABLE(multilib,
     25[  --enable-multilib         build many library versions (default)],
     26[case "${enableval}" in
     27  yes) multilib=yes ;;
     28  no)  multilib=no ;;
     29  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
     30 esac], [multilib=yes])dnl
     31
     32dnl Support --enable-target-optspace
     33AC_ARG_ENABLE(target-optspace,
     34[  --enable-target-optspace  optimize for space],
     35[case "${enableval}" in
     36  yes) target_optspace=yes ;;
     37  no)  target_optspace=no ;;
     38  *)   AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;;
     39 esac], [target_optspace=])dnl
     40
     41dnl Support --enable-malloc-debugging - currently only supported for Cygwin
     42AC_ARG_ENABLE(malloc-debugging,
     43[  --enable-malloc-debugging indicate malloc debugging requested],
     44[case "${enableval}" in
     45  yes) malloc_debugging=yes ;;
     46  no)  malloc_debugging=no ;;
     47  *)   AC_MSG_ERROR(bad value ${enableval} for malloc-debugging option) ;;
     48 esac], [malloc_debugging=])dnl
     49
     50dnl Support --enable-newlib-multithread
     51AC_ARG_ENABLE(newlib-multithread,
     52[  --enable-newlib-multithread        enable support for multiple threads],
     53[case "${enableval}" in
     54  yes) newlib_multithread=yes ;;
     55  no)  newlib_multithread=no ;;
     56  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-multithread option) ;;
     57 esac], [newlib_multithread=yes])dnl
     58
     59dnl Support --enable-newlib-iconv
     60AC_ARG_ENABLE(newlib-iconv,
     61[  --enable-newlib-iconv     enable iconv library support],
     62[if test "${newlib_iconv+set}" != set; then
     63   case "${enableval}" in
     64     yes) newlib_iconv=yes ;;
     65     no)  newlib_iconv=no ;;
     66     *)   AC_MSG_ERROR(bad value ${enableval} for newlib-iconv option) ;;
     67   esac
     68 fi], [newlib_iconv=${newlib_iconv}])dnl
     69
     70dnl Support --enable-newlib-elix-level
     71AC_ARG_ENABLE(newlib-elix-level,
     72[  --enable-newlib-elix-level         supply desired elix library level (1-4)],
     73[case "${enableval}" in
     74  0)   newlib_elix_level=0 ;;
     75  1)   newlib_elix_level=1 ;;
     76  2)   newlib_elix_level=2 ;;
     77  3)   newlib_elix_level=3 ;;
     78  4)   newlib_elix_level=4 ;;
     79  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-elix-level option) ;;
     80 esac], [newlib_elix_level=0])dnl
     81
     82dnl Support --disable-newlib-io-float
     83AC_ARG_ENABLE(newlib-io-float,
     84[  --disable-newlib-io-float disable printf/scanf family float support],
     85[case "${enableval}" in
     86  yes) newlib_io_float=yes ;;
     87  no)  newlib_io_float=no ;;
     88  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-io-float option) ;;
     89 esac], [newlib_io_float=yes])dnl
     90
     91dnl Support --disable-newlib-supplied-syscalls
     92AC_ARG_ENABLE(newlib-supplied-syscalls,
     93[  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls],
     94[case "${enableval}" in
     95  yes) newlib_may_supply_syscalls=yes ;;
     96  no)  newlib_may_supply_syscalls=no ;;
     97  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;;
     98 esac], [newlib_may_supply_syscalls=yes])dnl
     99
     100AM_CONDITIONAL(MAY_SUPPLY_SYSCALLS, test x[$]{newlib_may_supply_syscalls} = xyes)
     101
     102dnl We may get other options which we don't document:
     103dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
     104
     105test -z "[$]{with_target_subdir}" && with_target_subdir=.
     106
     107if test "[$]{srcdir}" = "."; then
     108  if test "[$]{with_target_subdir}" != "."; then
     109    newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1"
     110  else
     111    newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1"
     112  fi
     113else
     114  newlib_basedir="[$]{srcdir}/$1"
     115fi
     116AC_SUBST(newlib_basedir)
     117
     118AC_CANONICAL_SYSTEM
     119
     120AM_INIT_AUTOMAKE(newlib, 1.12.0)
     121
     122# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
     123# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
     124# are probably using a cross compiler, which will not be able to fully
     125# link an executable.  This should really be fixed in autoconf
     126# itself.
     127
     128AC_DEFUN(LIB_AC_PROG_CC,
     129[AC_BEFORE([$0], [AC_PROG_CPP])dnl
     130AC_CHECK_PROG(CC, gcc, gcc)
     131if test -z "$CC"; then
     132  AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
     133  test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
     134fi
     135
     136AC_PROG_CC_GNU
     137
     138if test $ac_cv_prog_gcc = yes; then
     139  GCC=yes
     140dnl Check whether -g works, even if CFLAGS is set, in case the package
     141dnl plays around with CFLAGS (such as to build both debugging and
     142dnl normal versions of a library), tasteless as that idea is.
     143  ac_test_CFLAGS="${CFLAGS+set}"
     144  ac_save_CFLAGS="$CFLAGS"
     145  CFLAGS=
     146  AC_PROG_CC_G
     147  if test "$ac_test_CFLAGS" = set; then
     148    CFLAGS="$ac_save_CFLAGS"
     149  elif test $ac_cv_prog_cc_g = yes; then
     150    CFLAGS="-g -O2"
     151  else
     152    CFLAGS="-O2"
     153  fi
     154else
     155  GCC=
     156  test "${CFLAGS+set}" = set || CFLAGS="-g"
     157fi
     158])
     159
     160LIB_AC_PROG_CC
     161
     162AC_CHECK_TOOL(AS, as)
     163AC_CHECK_TOOL(AR, ar)
     164AC_CHECK_TOOL(RANLIB, ranlib, :)
     165
     166AC_PROG_INSTALL
     167
     168AM_MAINTAINER_MODE
     169
     170# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
     171# at least currently, we never actually build a program, so we never
     172# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
     173# fails, because we are probably configuring with a cross compiler
     174# which can't create executables.  So we include AC_EXEEXT to keep
     175# automake happy, but we don't execute it, since we don't care about
     176# the result.
     177if false; then
     178  AC_EXEEXT
     179fi
     180
     181. [$]{newlib_basedir}/configure.host
     182
     183newlib_cflags="[$]{newlib_cflags} -fno-builtin"
     184
     185NEWLIB_CFLAGS=${newlib_cflags}
     186AC_SUBST(NEWLIB_CFLAGS)
     187
     188LDFLAGS=${ldflags}
     189AC_SUBST(LDFLAGS)
     190
     191AM_CONDITIONAL(ELIX_LEVEL_0, test x[$]{newlib_elix_level} = x0)
     192AM_CONDITIONAL(ELIX_LEVEL_1, test x[$]{newlib_elix_level} = x1)
     193AM_CONDITIONAL(ELIX_LEVEL_2, test x[$]{newlib_elix_level} = x2)
     194AM_CONDITIONAL(ELIX_LEVEL_3, test x[$]{newlib_elix_level} = x3)
     195AM_CONDITIONAL(ELIX_LEVEL_4, test x[$]{newlib_elix_level} = x4)
     196
     197AM_CONDITIONAL(USE_LIBTOOL, test x[$]{use_libtool} = xyes)
     198
     199# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
     200# use oext, which is set in configure.host based on the target platform.
     201OBJEXT=${oext}
     202
     203AC_SUBST(OBJEXT)
     204AC_SUBST(oext)
     205AC_SUBST(aext)
     206
     207AC_SUBST(libm_machine_dir)
     208AC_SUBST(machine_dir)
     209AC_SUBST(sys_dir)
     210])
     211
     212# Do all the work for Automake.  This macro actually does too much --
     213# some checks are only needed if your package does certain things.
     214# But this isn't really a big deal.
     215
     216# serial 1
     217
     218dnl Usage:
     219dnl AM_INIT_AUTOMAKE(package,version, [no-define])
     220
     221AC_DEFUN([AM_INIT_AUTOMAKE],
     222[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
     223AC_REQUIRE([AC_PROG_INSTALL])
     224PACKAGE=[$1]
     225AC_SUBST(PACKAGE)
     226VERSION=[$2]
     227AC_SUBST(VERSION)
     228dnl test to see if srcdir already configured
     229if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
     230  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
     231fi
     232ifelse([$3],,
     233AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
     234AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
     235AC_REQUIRE([AM_SANITY_CHECK])
     236AC_REQUIRE([AC_ARG_PROGRAM])
     237dnl FIXME This is truly gross.
     238missing_dir=`cd $ac_aux_dir && pwd`
     239AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
     240AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
     241AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
     242AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
     243AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
     244AC_REQUIRE([AC_PROG_MAKE_SET])])
     245
     246# Copyright 2002  Free Software Foundation, Inc.
     247
     248# This program is free software; you can redistribute it and/or modify
     249# it under the terms of the GNU General Public License as published by
     250# the Free Software Foundation; either version 2, or (at your option)
     251# any later version.
     252
     253# This program is distributed in the hope that it will be useful,
     254# but WITHOUT ANY WARRANTY; without even the implied warranty of
     255# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     256# GNU General Public License for more details.
     257
     258# You should have received a copy of the GNU General Public License
     259# along with this program; if not, write to the Free Software
     260# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     261
     262# AM_AUTOMAKE_VERSION(VERSION)
     263# ----------------------------
     264# Automake X.Y traces this macro to ensure aclocal.m4 has been
     265# generated from the m4 files accompanying Automake X.Y.
     266AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
     267
     268# AM_SET_CURRENT_AUTOMAKE_VERSION
     269# -------------------------------
     270# Call AM_AUTOMAKE_VERSION so it can be traced.
     271# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
     272AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
     273         [AM_AUTOMAKE_VERSION([1.4-p6])])
     274
     275#
     276# Check to make sure that the build environment is sane.
     277#
     278
     279AC_DEFUN([AM_SANITY_CHECK],
     280[AC_MSG_CHECKING([whether build environment is sane])
     281# Just in case
     282sleep 1
     283echo timestamp > conftestfile
     284# Do `set' in a subshell so we don't clobber the current shell's
     285# arguments.  Must try -L first in case configure is actually a
     286# symlink; some systems play weird games with the mod time of symlinks
     287# (eg FreeBSD returns the mod time of the symlink's containing
     288# directory).
     289if (
     290   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
     291   if test "[$]*" = "X"; then
     292      # -L didn't work.
     293      set X `ls -t $srcdir/configure conftestfile`
     294   fi
     295   if test "[$]*" != "X $srcdir/configure conftestfile" \
     296      && test "[$]*" != "X conftestfile $srcdir/configure"; then
     297
     298      # If neither matched, then we have a broken ls.  This can happen
     299      # if, for instance, CONFIG_SHELL is bash and it inherits a
     300      # broken ls alias from the environment.  This has actually
     301      # happened.  Such a system could not be considered "sane".
     302      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
     303alias in your environment])
     304   fi
     305
     306   test "[$]2" = conftestfile
     307   )
     308then
     309   # Ok.
     310   :
     311else
     312   AC_MSG_ERROR([newly created file is older than distributed files!
     313Check your system clock])
     314fi
     315rm -f conftest*
     316AC_MSG_RESULT(yes)])
     317
     318dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
     319dnl The program must properly implement --version.
     320AC_DEFUN([AM_MISSING_PROG],
     321[AC_MSG_CHECKING(for working $2)
     322# Run test in a subshell; some versions of sh will print an error if
     323# an executable is not found, even if stderr is redirected.
     324# Redirect stdin to placate older versions of autoconf.  Sigh.
     325if ($2 --version) < /dev/null > /dev/null 2>&1; then
     326   $1=$2
     327   AC_MSG_RESULT(found)
     328else
     329   $1="$3/missing $2"
     330   AC_MSG_RESULT(missing)
     331fi
     332AC_SUBST($1)])
     333
     334# Define a conditional.
     335
     336AC_DEFUN([AM_CONDITIONAL],
     337[AC_SUBST($1_TRUE)
     338AC_SUBST($1_FALSE)
     339if $2; then
     340  $1_TRUE=
     341  $1_FALSE='#'
     342else
     343  $1_TRUE='#'
     344  $1_FALSE=
     345fi])
     346
     347# Add --enable-maintainer-mode option to configure.
     348# From Jim Meyering
     349
     350# serial 1
     351
     352AC_DEFUN([AM_MAINTAINER_MODE],
     353[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
     354  dnl maintainer-mode is disabled by default
     355  AC_ARG_ENABLE(maintainer-mode,
     356[  --enable-maintainer-mode enable make rules and dependencies not useful
     357                          (and sometimes confusing) to the casual installer],
     358      USE_MAINTAINER_MODE=$enableval,
     359      USE_MAINTAINER_MODE=no)
     360  AC_MSG_RESULT($USE_MAINTAINER_MODE)
     361  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
     362  MAINT=$MAINTAINER_MODE_TRUE
     363  AC_SUBST(MAINT)dnl
     364]
     365)
     366
  • newlib/libc/machine/bfin/configure

    diff -urN newlib-1.14.0-orig/newlib/libc/machine/bfin/configure newlib-1.14.0/newlib/libc/machine/bfin/configure
    old new  
     1#! /bin/sh
     2
     3# Guess values for system-dependent variables and create Makefiles.
     4# Generated automatically using autoconf version 2.13
     5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
     6#
     7# This configure script is free software; the Free Software Foundation
     8# gives unlimited permission to copy, distribute and modify it.
     9
     10# Defaults:
     11ac_help=
     12ac_default_prefix=/usr/local
     13# Any additions from configure.in:
     14ac_help="$ac_help
     15  --enable-multilib         build many library versions (default)"
     16ac_help="$ac_help
     17  --enable-target-optspace  optimize for space"
     18ac_help="$ac_help
     19  --enable-malloc-debugging indicate malloc debugging requested"
     20ac_help="$ac_help
     21  --enable-newlib-multithread        enable support for multiple threads"
     22ac_help="$ac_help
     23  --enable-newlib-iconv     enable iconv library support"
     24ac_help="$ac_help
     25  --enable-newlib-elix-level         supply desired elix library level (1-4)"
     26ac_help="$ac_help
     27  --disable-newlib-io-float disable printf/scanf family float support"
     28ac_help="$ac_help
     29  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
     30ac_help="$ac_help
     31  --enable-maintainer-mode enable make rules and dependencies not useful
     32                          (and sometimes confusing) to the casual installer"
     33
     34# Initialize some variables set by options.
     35# The variables have the same names as the options, with
     36# dashes changed to underlines.
     37build=NONE
     38cache_file=./config.cache
     39exec_prefix=NONE
     40host=NONE
     41no_create=
     42nonopt=NONE
     43no_recursion=
     44prefix=NONE
     45program_prefix=NONE
     46program_suffix=NONE
     47program_transform_name=s,x,x,
     48silent=
     49site=
     50srcdir=
     51target=NONE
     52verbose=
     53x_includes=NONE
     54x_libraries=NONE
     55bindir='${exec_prefix}/bin'
     56sbindir='${exec_prefix}/sbin'
     57libexecdir='${exec_prefix}/libexec'
     58datadir='${prefix}/share'
     59sysconfdir='${prefix}/etc'
     60sharedstatedir='${prefix}/com'
     61localstatedir='${prefix}/var'
     62libdir='${exec_prefix}/lib'
     63includedir='${prefix}/include'
     64oldincludedir='/usr/include'
     65infodir='${prefix}/info'
     66mandir='${prefix}/man'
     67
     68# Initialize some other variables.
     69subdirs=
     70MFLAGS= MAKEFLAGS=
     71SHELL=${CONFIG_SHELL-/bin/sh}
     72# Maximum number of lines to put in a shell here document.
     73ac_max_here_lines=12
     74
     75ac_prev=
     76for ac_option
     77do
     78
     79  # If the previous option needs an argument, assign it.
     80  if test -n "$ac_prev"; then
     81    eval "$ac_prev=\$ac_option"
     82    ac_prev=
     83    continue
     84  fi
     85
     86  case "$ac_option" in
     87  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
     88  *) ac_optarg= ;;
     89  esac
     90
     91  # Accept the important Cygnus configure options, so we can diagnose typos.
     92
     93  case "$ac_option" in
     94
     95  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     96    ac_prev=bindir ;;
     97  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
     98    bindir="$ac_optarg" ;;
     99
     100  -build | --build | --buil | --bui | --bu)
     101    ac_prev=build ;;
     102  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
     103    build="$ac_optarg" ;;
     104
     105  -cache-file | --cache-file | --cache-fil | --cache-fi \
     106  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
     107    ac_prev=cache_file ;;
     108  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
     109  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
     110    cache_file="$ac_optarg" ;;
     111
     112  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     113    ac_prev=datadir ;;
     114  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
     115  | --da=*)
     116    datadir="$ac_optarg" ;;
     117
     118  -disable-* | --disable-*)
     119    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     120    # Reject names that are not valid shell variable names.
     121    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
     122      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
     123    fi
     124    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
     125    eval "enable_${ac_feature}=no" ;;
     126
     127  -enable-* | --enable-*)
     128    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     129    # Reject names that are not valid shell variable names.
     130    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
     131      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
     132    fi
     133    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
     134    case "$ac_option" in
     135      *=*) ;;
     136      *) ac_optarg=yes ;;
     137    esac
     138    eval "enable_${ac_feature}='$ac_optarg'" ;;
     139
     140  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     141  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
     142  | --exec | --exe | --ex)
     143    ac_prev=exec_prefix ;;
     144  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
     145  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
     146  | --exec=* | --exe=* | --ex=*)
     147    exec_prefix="$ac_optarg" ;;
     148
     149  -gas | --gas | --ga | --g)
     150    # Obsolete; use --with-gas.
     151    with_gas=yes ;;
     152
     153  -help | --help | --hel | --he)
     154    # Omit some internal or obsolete options to make the list less imposing.
     155    # This message is too long to be a string in the A/UX 3.1 sh.
     156    cat << EOF
     157Usage: configure [options] [host]
     158Options: [defaults in brackets after descriptions]
     159Configuration:
     160  --cache-file=FILE       cache test results in FILE
     161  --help                  print this message
     162  --no-create             do not create output files
     163  --quiet, --silent       do not print \`checking...' messages
     164  --version               print the version of autoconf that created configure
     165Directory and file names:
     166  --prefix=PREFIX         install architecture-independent files in PREFIX
     167                          [$ac_default_prefix]
     168  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     169                          [same as prefix]
     170  --bindir=DIR            user executables in DIR [EPREFIX/bin]
     171  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
     172  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
     173  --datadir=DIR           read-only architecture-independent data in DIR
     174                          [PREFIX/share]
     175  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
     176  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
     177                          [PREFIX/com]
     178  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
     179  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
     180  --includedir=DIR        C header files in DIR [PREFIX/include]
     181  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
     182  --infodir=DIR           info documentation in DIR [PREFIX/info]
     183  --mandir=DIR            man documentation in DIR [PREFIX/man]
     184  --srcdir=DIR            find the sources in DIR [configure dir or ..]
     185  --program-prefix=PREFIX prepend PREFIX to installed program names
     186  --program-suffix=SUFFIX append SUFFIX to installed program names
     187  --program-transform-name=PROGRAM
     188                          run sed PROGRAM on installed program names
     189EOF
     190    cat << EOF
     191Host type:
     192  --build=BUILD           configure for building on BUILD [BUILD=HOST]
     193  --host=HOST             configure for HOST [guessed]
     194  --target=TARGET         configure for TARGET [TARGET=HOST]
     195Features and packages:
     196  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     197  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     198  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     199  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     200  --x-includes=DIR        X include files are in DIR
     201  --x-libraries=DIR       X library files are in DIR
     202EOF
     203    if test -n "$ac_help"; then
     204      echo "--enable and --with options recognized:$ac_help"
     205    fi
     206    exit 0 ;;
     207
     208  -host | --host | --hos | --ho)
     209    ac_prev=host ;;
     210  -host=* | --host=* | --hos=* | --ho=*)
     211    host="$ac_optarg" ;;
     212
     213  -includedir | --includedir | --includedi | --included | --include \
     214  | --includ | --inclu | --incl | --inc)
     215    ac_prev=includedir ;;
     216  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
     217  | --includ=* | --inclu=* | --incl=* | --inc=*)
     218    includedir="$ac_optarg" ;;
     219
     220  -infodir | --infodir | --infodi | --infod | --info | --inf)
     221    ac_prev=infodir ;;
     222  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
     223    infodir="$ac_optarg" ;;
     224
     225  -libdir | --libdir | --libdi | --libd)
     226    ac_prev=libdir ;;
     227  -libdir=* | --libdir=* | --libdi=* | --libd=*)
     228    libdir="$ac_optarg" ;;
     229
     230  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     231  | --libexe | --libex | --libe)
     232    ac_prev=libexecdir ;;
     233  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
     234  | --libexe=* | --libex=* | --libe=*)
     235    libexecdir="$ac_optarg" ;;
     236
     237  -localstatedir | --localstatedir | --localstatedi | --localstated \
     238  | --localstate | --localstat | --localsta | --localst \
     239  | --locals | --local | --loca | --loc | --lo)
     240    ac_prev=localstatedir ;;
     241  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
     242  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
     243  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     244    localstatedir="$ac_optarg" ;;
     245
     246  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
     247    ac_prev=mandir ;;
     248  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
     249    mandir="$ac_optarg" ;;
     250
     251  -nfp | --nfp | --nf)
     252    # Obsolete; use --without-fp.
     253    with_fp=no ;;
     254
     255  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     256  | --no-cr | --no-c)
     257    no_create=yes ;;
     258
     259  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     260  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
     261    no_recursion=yes ;;
     262
     263  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
     264  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
     265  | --oldin | --oldi | --old | --ol | --o)
     266    ac_prev=oldincludedir ;;
     267  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
     268  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
     269  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
     270    oldincludedir="$ac_optarg" ;;
     271
     272  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
     273    ac_prev=prefix ;;
     274  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
     275    prefix="$ac_optarg" ;;
     276
     277  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     278  | --program-pre | --program-pr | --program-p)
     279    ac_prev=program_prefix ;;
     280  -program-prefix=* | --program-prefix=* | --program-prefi=* \
     281  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
     282    program_prefix="$ac_optarg" ;;
     283
     284  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     285  | --program-suf | --program-su | --program-s)
     286    ac_prev=program_suffix ;;
     287  -program-suffix=* | --program-suffix=* | --program-suffi=* \
     288  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
     289    program_suffix="$ac_optarg" ;;
     290
     291  -program-transform-name | --program-transform-name \
     292  | --program-transform-nam | --program-transform-na \
     293  | --program-transform-n | --program-transform- \
     294  | --program-transform | --program-transfor \
     295  | --program-transfo | --program-transf \
     296  | --program-trans | --program-tran \
     297  | --progr-tra | --program-tr | --program-t)
     298    ac_prev=program_transform_name ;;
     299  -program-transform-name=* | --program-transform-name=* \
     300  | --program-transform-nam=* | --program-transform-na=* \
     301  | --program-transform-n=* | --program-transform-=* \
     302  | --program-transform=* | --program-transfor=* \
     303  | --program-transfo=* | --program-transf=* \
     304  | --program-trans=* | --program-tran=* \
     305  | --progr-tra=* | --program-tr=* | --program-t=*)
     306    program_transform_name="$ac_optarg" ;;
     307
     308  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     309  | -silent | --silent | --silen | --sile | --sil)
     310    silent=yes ;;
     311
     312  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     313    ac_prev=sbindir ;;
     314  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
     315  | --sbi=* | --sb=*)
     316    sbindir="$ac_optarg" ;;
     317
     318  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     319  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
     320  | --sharedst | --shareds | --shared | --share | --shar \
     321  | --sha | --sh)
     322    ac_prev=sharedstatedir ;;
     323  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
     324  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
     325  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
     326  | --sha=* | --sh=*)
     327    sharedstatedir="$ac_optarg" ;;
     328
     329  -site | --site | --sit)
     330    ac_prev=site ;;
     331  -site=* | --site=* | --sit=*)
     332    site="$ac_optarg" ;;
     333
     334  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     335    ac_prev=srcdir ;;
     336  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
     337    srcdir="$ac_optarg" ;;
     338
     339  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     340  | --syscon | --sysco | --sysc | --sys | --sy)
     341    ac_prev=sysconfdir ;;
     342  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
     343  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
     344    sysconfdir="$ac_optarg" ;;
     345
     346  -target | --target | --targe | --targ | --tar | --ta | --t)
     347    ac_prev=target ;;
     348  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
     349    target="$ac_optarg" ;;
     350
     351  -v | -verbose | --verbose | --verbos | --verbo | --verb)
     352    verbose=yes ;;
     353
     354  -version | --version | --versio | --versi | --vers)
     355    echo "configure generated by autoconf version 2.13"
     356    exit 0 ;;
     357
     358  -with-* | --with-*)
     359    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     360    # Reject names that are not valid shell variable names.
     361    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
     362      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
     363    fi
     364    ac_package=`echo $ac_package| sed 's/-/_/g'`
     365    case "$ac_option" in
     366      *=*) ;;
     367      *) ac_optarg=yes ;;
     368    esac
     369    eval "with_${ac_package}='$ac_optarg'" ;;
     370
     371  -without-* | --without-*)
     372    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     373    # Reject names that are not valid shell variable names.
     374    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
     375      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
     376    fi
     377    ac_package=`echo $ac_package| sed 's/-/_/g'`
     378    eval "with_${ac_package}=no" ;;
     379
     380  --x)
     381    # Obsolete; use --with-x.
     382    with_x=yes ;;
     383
     384  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
     385  | --x-incl | --x-inc | --x-in | --x-i)
     386    ac_prev=x_includes ;;
     387  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
     388  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
     389    x_includes="$ac_optarg" ;;
     390
     391  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     392  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
     393    ac_prev=x_libraries ;;
     394  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
     395  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
     396    x_libraries="$ac_optarg" ;;
     397
     398  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
     399    ;;
     400
     401  *)
     402    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
     403      echo "configure: warning: $ac_option: invalid host type" 1>&2
     404    fi
     405    if test "x$nonopt" != xNONE; then
     406      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
     407    fi
     408    nonopt="$ac_option"
     409    ;;
     410
     411  esac
     412done
     413
     414if test -n "$ac_prev"; then
     415  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
     416fi
     417
     418trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
     419
     420# File descriptor usage:
     421# 0 standard input
     422# 1 file creation
     423# 2 errors and warnings
     424# 3 some systems may open it to /dev/tty
     425# 4 used on the Kubota Titan
     426# 6 checking for... messages and results
     427# 5 compiler messages saved in config.log
     428if test "$silent" = yes; then
     429  exec 6>/dev/null
     430else
     431  exec 6>&1
     432fi
     433exec 5>./config.log
     434
     435echo "\
     436This file contains any messages produced by compilers while
     437running configure, to aid debugging if configure makes a mistake.
     438" 1>&5
     439
     440# Strip out --no-create and --no-recursion so they do not pile up.
     441# Also quote any args containing shell metacharacters.
     442ac_configure_args=
     443for ac_arg
     444do
     445  case "$ac_arg" in
     446  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     447  | --no-cr | --no-c) ;;
     448  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     449  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
     450  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
     451  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     452  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
     453  esac
     454done
     455
     456# NLS nuisances.
     457# Only set these to C if already set.  These must not be set unconditionally
     458# because not all systems understand e.g. LANG=C (notably SCO).
     459# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
     460# Non-C LC_CTYPE values break the ctype check.
     461if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
     462if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
     463if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
     464if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
     465
     466# confdefs.h avoids OS command line length limits that DEFS can exceed.
     467rm -rf conftest* confdefs.h
     468# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     469echo > confdefs.h
     470
     471# A filename unique to this package, relative to the directory that
     472# configure is in, which we can look for to find out if srcdir is correct.
     473ac_unique_file=Makefile.am
     474
     475# Find the source files, if location was not specified.
     476if test -z "$srcdir"; then
     477  ac_srcdir_defaulted=yes
     478  # Try the directory containing this script, then its parent.
     479  ac_prog=$0
     480  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
     481  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
     482  srcdir=$ac_confdir
     483  if test ! -r $srcdir/$ac_unique_file; then
     484    srcdir=..
     485  fi
     486else
     487  ac_srcdir_defaulted=no
     488fi
     489if test ! -r $srcdir/$ac_unique_file; then
     490  if test "$ac_srcdir_defaulted" = yes; then
     491    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     492  else
     493    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     494  fi
     495fi
     496srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
     497
     498# Prefer explicitly selected file to automatically selected ones.
     499if test -z "$CONFIG_SITE"; then
     500  if test "x$prefix" != xNONE; then
     501    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
     502  else
     503    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
     504  fi
     505fi
     506for ac_site_file in $CONFIG_SITE; do
     507  if test -r "$ac_site_file"; then
     508    echo "loading site script $ac_site_file"
     509    . "$ac_site_file"
     510  fi
     511done
     512
     513if test -r "$cache_file"; then
     514  echo "loading cache $cache_file"
     515  . $cache_file
     516else
     517  echo "creating cache $cache_file"
     518  > $cache_file
     519fi
     520
     521ac_ext=c
     522# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     523ac_cpp='$CPP $CPPFLAGS'
     524ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     525ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     526cross_compiling=$ac_cv_prog_cc_cross
     527
     528ac_exeext=
     529ac_objext=o
     530if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
     531  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     532  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
     533    ac_n= ac_c='
     534' ac_t='        '
     535  else
     536    ac_n=-n ac_c= ac_t=
     537  fi
     538else
     539  ac_n= ac_c='\c' ac_t=
     540fi
     541
     542
     543
     544ac_aux_dir=
     545for ac_dir in ../../../.. $srcdir/../../../..; do
     546  if test -f $ac_dir/install-sh; then
     547    ac_aux_dir=$ac_dir
     548    ac_install_sh="$ac_aux_dir/install-sh -c"
     549    break
     550  elif test -f $ac_dir/install.sh; then
     551    ac_aux_dir=$ac_dir
     552    ac_install_sh="$ac_aux_dir/install.sh -c"
     553    break
     554  fi
     555done
     556if test -z "$ac_aux_dir"; then
     557  { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
     558fi
     559ac_config_guess=$ac_aux_dir/config.guess
     560ac_config_sub=$ac_aux_dir/config.sub
     561ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     562
     563
     564am__api_version="1.4"
     565# Find a good install program.  We prefer a C program (faster),
     566# so one script is as good as another.  But avoid the broken or
     567# incompatible versions:
     568# SysV /etc/install, /usr/sbin/install
     569# SunOS /usr/etc/install
     570# IRIX /sbin/install
     571# AIX /bin/install
     572# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     573# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     574# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     575# ./install, which can be erroneously created by make from ./install.sh.
     576echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
     577echo "configure:578: checking for a BSD compatible install" >&5
     578if test -z "$INSTALL"; then
     579if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     580  echo $ac_n "(cached) $ac_c" 1>&6
     581else
     582    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
     583  for ac_dir in $PATH; do
     584    # Account for people who put trailing slashes in PATH elements.
     585    case "$ac_dir/" in
     586    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     587    *)
     588      # OSF1 and SCO ODT 3.0 have their own names for install.
     589      # Don't use installbsd from OSF since it installs stuff as root
     590      # by default.
     591      for ac_prog in ginstall scoinst install; do
     592        if test -f $ac_dir/$ac_prog; then
     593          if test $ac_prog = install &&
     594            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     595            # AIX install.  It has an incompatible calling convention.
     596            :
     597          else
     598            ac_cv_path_install="$ac_dir/$ac_prog -c"
     599            break 2
     600          fi
     601        fi
     602      done
     603      ;;
     604    esac
     605  done
     606  IFS="$ac_save_IFS"
     607
     608fi
     609  if test "${ac_cv_path_install+set}" = set; then
     610    INSTALL="$ac_cv_path_install"
     611  else
     612    # As a last resort, use the slow shell script.  We don't cache a
     613    # path for INSTALL within a source directory, because that will
     614    # break other packages using the cache if that directory is
     615    # removed, or if the path is relative.
     616    INSTALL="$ac_install_sh"
     617  fi
     618fi
     619echo "$ac_t""$INSTALL" 1>&6
     620
     621# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     622# It thinks the first close brace ends the variable substitution.
     623test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     624
     625test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     626
     627test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     628
     629echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
     630echo "configure:631: checking whether build environment is sane" >&5
     631# Just in case
     632sleep 1
     633echo timestamp > conftestfile
     634# Do `set' in a subshell so we don't clobber the current shell's
     635# arguments.  Must try -L first in case configure is actually a
     636# symlink; some systems play weird games with the mod time of symlinks
     637# (eg FreeBSD returns the mod time of the symlink's containing
     638# directory).
     639if (
     640   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
     641   if test "$*" = "X"; then
     642      # -L didn't work.
     643      set X `ls -t $srcdir/configure conftestfile`
     644   fi
     645   if test "$*" != "X $srcdir/configure conftestfile" \
     646      && test "$*" != "X conftestfile $srcdir/configure"; then
     647
     648      # If neither matched, then we have a broken ls.  This can happen
     649      # if, for instance, CONFIG_SHELL is bash and it inherits a
     650      # broken ls alias from the environment.  This has actually
     651      # happened.  Such a system could not be considered "sane".
     652      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
     653alias in your environment" 1>&2; exit 1; }
     654   fi
     655
     656   test "$2" = conftestfile
     657   )
     658then
     659   # Ok.
     660   :
     661else
     662   { echo "configure: error: newly created file is older than distributed files!
     663Check your system clock" 1>&2; exit 1; }
     664fi
     665rm -f conftest*
     666echo "$ac_t""yes" 1>&6
     667if test "$program_transform_name" = s,x,x,; then
     668  program_transform_name=
     669else
     670  # Double any \ or $.  echo might interpret backslashes.
     671  cat <<\EOF_SED > conftestsed
     672s,\\,\\\\,g; s,\$,$$,g
     673EOF_SED
     674  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
     675  rm -f conftestsed
     676fi
     677test "$program_prefix" != NONE &&
     678  program_transform_name="s,^,${program_prefix},; $program_transform_name"
     679# Use a double $ so make ignores it.
     680test "$program_suffix" != NONE &&
     681  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
     682
     683# sed with no file args requires a program.
     684test "$program_transform_name" = "" && program_transform_name="s,x,x,"
     685
     686echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
     687echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5
     688set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
     689if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     690  echo $ac_n "(cached) $ac_c" 1>&6
     691else
     692  cat > conftestmake <<\EOF
     693all:
     694        @echo 'ac_maketemp="${MAKE}"'
     695EOF
     696# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     697eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     698if test -n "$ac_maketemp"; then
     699  eval ac_cv_prog_make_${ac_make}_set=yes
     700else
     701  eval ac_cv_prog_make_${ac_make}_set=no
     702fi
     703rm -f conftestmake
     704fi
     705if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     706  echo "$ac_t""yes" 1>&6
     707  SET_MAKE=
     708else
     709  echo "$ac_t""no" 1>&6
     710  SET_MAKE="MAKE=${MAKE-make}"
     711fi
     712
     713if test $host != $build; then
     714  ac_tool_prefix=${host_alias}-
     715else
     716  ac_tool_prefix=
     717fi
     718
     719echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
     720echo "configure:721: checking for Cygwin environment" >&5
     721if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
     722  echo $ac_n "(cached) $ac_c" 1>&6
     723else
     724  cat > conftest.$ac_ext <<EOF
     725#line 726 "configure"
     726#include "confdefs.h"
     727
     728int main() {
     729
     730#ifndef __CYGWIN__
     731#define __CYGWIN__ __CYGWIN32__
     732#endif
     733return __CYGWIN__;
     734; return 0; }
     735EOF
     736if { (eval echo configure:737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     737  rm -rf conftest*
     738  ac_cv_cygwin=yes
     739else
     740  echo "configure: failed program was:" >&5
     741  cat conftest.$ac_ext >&5
     742  rm -rf conftest*
     743  ac_cv_cygwin=no
     744fi
     745rm -f conftest*
     746rm -f conftest*
     747fi
     748
     749echo "$ac_t""$ac_cv_cygwin" 1>&6
     750CYGWIN=
     751test "$ac_cv_cygwin" = yes && CYGWIN=yes
     752echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
     753echo "configure:754: checking for mingw32 environment" >&5
     754if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
     755  echo $ac_n "(cached) $ac_c" 1>&6
     756else
     757  cat > conftest.$ac_ext <<EOF
     758#line 759 "configure"
     759#include "confdefs.h"
     760
     761int main() {
     762return __MINGW32__;
     763; return 0; }
     764EOF
     765if { (eval echo configure:766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     766  rm -rf conftest*
     767  ac_cv_mingw32=yes
     768else
     769  echo "configure: failed program was:" >&5
     770  cat conftest.$ac_ext >&5
     771  rm -rf conftest*
     772  ac_cv_mingw32=no
     773fi
     774rm -f conftest*
     775rm -f conftest*
     776fi
     777
     778echo "$ac_t""$ac_cv_mingw32" 1>&6
     779MINGW32=
     780test "$ac_cv_mingw32" = yes && MINGW32=yes
     781
     782# Check whether --enable-multilib or --disable-multilib was given.
     783if test "${enable_multilib+set}" = set; then
     784  enableval="$enable_multilib"
     785  case "${enableval}" in
     786  yes) multilib=yes ;;
     787  no)  multilib=no ;;
     788  *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
     789 esac
     790else
     791  multilib=yes
     792fi
     793
     794# Check whether --enable-target-optspace or --disable-target-optspace was given.
     795if test "${enable_target_optspace+set}" = set; then
     796  enableval="$enable_target_optspace"
     797  case "${enableval}" in
     798  yes) target_optspace=yes ;;
     799  no)  target_optspace=no ;;
     800  *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
     801 esac
     802else
     803  target_optspace=
     804fi
     805
     806# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
     807if test "${enable_malloc_debugging+set}" = set; then
     808  enableval="$enable_malloc_debugging"
     809  case "${enableval}" in
     810  yes) malloc_debugging=yes ;;
     811  no)  malloc_debugging=no ;;
     812  *)   { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
     813 esac
     814else
     815  malloc_debugging=
     816fi
     817
     818# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
     819if test "${enable_newlib_multithread+set}" = set; then
     820  enableval="$enable_newlib_multithread"
     821  case "${enableval}" in
     822  yes) newlib_multithread=yes ;;
     823  no)  newlib_multithread=no ;;
     824  *)   { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
     825 esac
     826else
     827  newlib_multithread=yes
     828fi
     829
     830# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
     831if test "${enable_newlib_iconv+set}" = set; then
     832  enableval="$enable_newlib_iconv"
     833  if test "${newlib_iconv+set}" != set; then
     834   case "${enableval}" in
     835     yes) newlib_iconv=yes ;;
     836     no)  newlib_iconv=no ;;
     837     *)   { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
     838   esac
     839 fi
     840else
     841  newlib_iconv=${newlib_iconv}
     842fi
     843
     844# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
     845if test "${enable_newlib_elix_level+set}" = set; then
     846  enableval="$enable_newlib_elix_level"
     847  case "${enableval}" in
     848  0)   newlib_elix_level=0 ;;
     849  1)   newlib_elix_level=1 ;;
     850  2)   newlib_elix_level=2 ;;
     851  3)   newlib_elix_level=3 ;;
     852  4)   newlib_elix_level=4 ;;
     853  *)   { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
     854 esac
     855else
     856  newlib_elix_level=0
     857fi
     858
     859# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
     860if test "${enable_newlib_io_float+set}" = set; then
     861  enableval="$enable_newlib_io_float"
     862  case "${enableval}" in
     863  yes) newlib_io_float=yes ;;
     864  no)  newlib_io_float=no ;;
     865  *)   { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
     866 esac
     867else
     868  newlib_io_float=yes
     869fi
     870
     871# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
     872if test "${enable_newlib_supplied_syscalls+set}" = set; then
     873  enableval="$enable_newlib_supplied_syscalls"
     874  case "${enableval}" in
     875  yes) newlib_may_supply_syscalls=yes ;;
     876  no)  newlib_may_supply_syscalls=no ;;
     877  *)   { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
     878 esac
     879else
     880  newlib_may_supply_syscalls=yes
     881fi
     882
     883
     884
     885if test x${newlib_may_supply_syscalls} = xyes; then
     886  MAY_SUPPLY_SYSCALLS_TRUE=
     887  MAY_SUPPLY_SYSCALLS_FALSE='#'
     888else
     889  MAY_SUPPLY_SYSCALLS_TRUE='#'
     890  MAY_SUPPLY_SYSCALLS_FALSE=
     891fi
     892
     893
     894test -z "${with_target_subdir}" && with_target_subdir=.
     895
     896if test "${srcdir}" = "."; then
     897  if test "${with_target_subdir}" != "."; then
     898    newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
     899  else
     900    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
     901  fi
     902else
     903  newlib_basedir="${srcdir}/../../.."
     904fi
     905
     906
     907
     908# Do some error checking and defaulting for the host and target type.
     909# The inputs are:
     910#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
     911#
     912# The rules are:
     913# 1. You are not allowed to specify --host, --target, and nonopt at the
     914#    same time.
     915# 2. Host defaults to nonopt.
     916# 3. If nonopt is not specified, then host defaults to the current host,
     917#    as determined by config.guess.
     918# 4. Target and build default to nonopt.
     919# 5. If nonopt is not specified, then target and build default to host.
     920
     921# The aliases save the names the user supplied, while $host etc.
     922# will get canonicalized.
     923case $host---$target---$nonopt in
     924NONE---*---* | *---NONE---* | *---*---NONE) ;;
     925*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
     926esac
     927
     928
     929# Make sure we can run config.sub.
     930if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
     931else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
     932fi
     933
     934echo $ac_n "checking host system type""... $ac_c" 1>&6
     935echo "configure:936: checking host system type" >&5
     936
     937host_alias=$host
     938case "$host_alias" in
     939NONE)
     940  case $nonopt in
     941  NONE)
     942    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
     943    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
     944    fi ;;
     945  *) host_alias=$nonopt ;;
     946  esac ;;
     947esac
     948
     949host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
     950host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     951host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     952host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     953echo "$ac_t""$host" 1>&6
     954
     955echo $ac_n "checking target system type""... $ac_c" 1>&6
     956echo "configure:957: checking target system type" >&5
     957
     958target_alias=$target
     959case "$target_alias" in
     960NONE)
     961  case $nonopt in
     962  NONE) target_alias=$host_alias ;;
     963  *) target_alias=$nonopt ;;
     964  esac ;;
     965esac
     966
     967target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
     968target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     969target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     970target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     971echo "$ac_t""$target" 1>&6
     972
     973echo $ac_n "checking build system type""... $ac_c" 1>&6
     974echo "configure:975: checking build system type" >&5
     975
     976build_alias=$build
     977case "$build_alias" in
     978NONE)
     979  case $nonopt in
     980  NONE) build_alias=$host_alias ;;
     981  *) build_alias=$nonopt ;;
     982  esac ;;
     983esac
     984
     985build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
     986build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     987build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     988build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     989echo "$ac_t""$build" 1>&6
     990
     991test "$host_alias" != "$target_alias" &&
     992  test "$program_prefix$program_suffix$program_transform_name" = \
     993    NONENONEs,x,x, &&
     994  program_prefix=${target_alias}-
     995
     996
     997
     998PACKAGE=newlib
     999
     1000VERSION=1.12.0
     1001
     1002if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
     1003  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
     1004fi
     1005cat >> confdefs.h <<EOF
     1006#define PACKAGE "$PACKAGE"
     1007EOF
     1008
     1009cat >> confdefs.h <<EOF
     1010#define VERSION "$VERSION"
     1011EOF
     1012
     1013
     1014
     1015missing_dir=`cd $ac_aux_dir && pwd`
     1016echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
     1017echo "configure:1018: checking for working aclocal-${am__api_version}" >&5
     1018# Run test in a subshell; some versions of sh will print an error if
     1019# an executable is not found, even if stderr is redirected.
     1020# Redirect stdin to placate older versions of autoconf.  Sigh.
     1021if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
     1022   ACLOCAL=aclocal-${am__api_version}
     1023   echo "$ac_t""found" 1>&6
     1024else
     1025   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
     1026   echo "$ac_t""missing" 1>&6
     1027fi
     1028
     1029echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
     1030echo "configure:1031: checking for working autoconf" >&5
     1031# Run test in a subshell; some versions of sh will print an error if
     1032# an executable is not found, even if stderr is redirected.
     1033# Redirect stdin to placate older versions of autoconf.  Sigh.
     1034if (autoconf --version) < /dev/null > /dev/null 2>&1; then
     1035   AUTOCONF=autoconf
     1036   echo "$ac_t""found" 1>&6
     1037else
     1038   AUTOCONF="$missing_dir/missing autoconf"
     1039   echo "$ac_t""missing" 1>&6
     1040fi
     1041
     1042echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
     1043echo "configure:1044: checking for working automake-${am__api_version}" >&5
     1044# Run test in a subshell; some versions of sh will print an error if
     1045# an executable is not found, even if stderr is redirected.
     1046# Redirect stdin to placate older versions of autoconf.  Sigh.
     1047if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
     1048   AUTOMAKE=automake-${am__api_version}
     1049   echo "$ac_t""found" 1>&6
     1050else
     1051   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
     1052   echo "$ac_t""missing" 1>&6
     1053fi
     1054
     1055echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
     1056echo "configure:1057: checking for working autoheader" >&5
     1057# Run test in a subshell; some versions of sh will print an error if
     1058# an executable is not found, even if stderr is redirected.
     1059# Redirect stdin to placate older versions of autoconf.  Sigh.
     1060if (autoheader --version) < /dev/null > /dev/null 2>&1; then
     1061   AUTOHEADER=autoheader
     1062   echo "$ac_t""found" 1>&6
     1063else
     1064   AUTOHEADER="$missing_dir/missing autoheader"
     1065   echo "$ac_t""missing" 1>&6
     1066fi
     1067
     1068echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
     1069echo "configure:1070: checking for working makeinfo" >&5
     1070# Run test in a subshell; some versions of sh will print an error if
     1071# an executable is not found, even if stderr is redirected.
     1072# Redirect stdin to placate older versions of autoconf.  Sigh.
     1073if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
     1074   MAKEINFO=makeinfo
     1075   echo "$ac_t""found" 1>&6
     1076else
     1077   MAKEINFO="$missing_dir/missing makeinfo"
     1078   echo "$ac_t""missing" 1>&6
     1079fi
     1080
     1081
     1082
     1083# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
     1084# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
     1085# are probably using a cross compiler, which will not be able to fully
     1086# link an executable.  This should really be fixed in autoconf
     1087# itself.
     1088
     1089
     1090
     1091# Extract the first word of "gcc", so it can be a program name with args.
     1092set dummy gcc; ac_word=$2
     1093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1094echo "configure:1095: checking for $ac_word" >&5
     1095if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     1096  echo $ac_n "(cached) $ac_c" 1>&6
     1097else
     1098  if test -n "$CC"; then
     1099  ac_cv_prog_CC="$CC" # Let the user override the test.
     1100else
     1101  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1102  ac_dummy="$PATH"
     1103  for ac_dir in $ac_dummy; do
     1104    test -z "$ac_dir" && ac_dir=.
     1105    if test -f $ac_dir/$ac_word; then
     1106      ac_cv_prog_CC="gcc"
     1107      break
     1108    fi
     1109  done
     1110  IFS="$ac_save_ifs"
     1111fi
     1112fi
     1113CC="$ac_cv_prog_CC"
     1114if test -n "$CC"; then
     1115  echo "$ac_t""$CC" 1>&6
     1116else
     1117  echo "$ac_t""no" 1>&6
     1118fi
     1119
     1120if test -z "$CC"; then
     1121  # Extract the first word of "cc", so it can be a program name with args.
     1122set dummy cc; ac_word=$2
     1123echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1124echo "configure:1125: checking for $ac_word" >&5
     1125if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     1126  echo $ac_n "(cached) $ac_c" 1>&6
     1127else
     1128  if test -n "$CC"; then
     1129  ac_cv_prog_CC="$CC" # Let the user override the test.
     1130else
     1131  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1132  ac_prog_rejected=no
     1133  ac_dummy="$PATH"
     1134  for ac_dir in $ac_dummy; do
     1135    test -z "$ac_dir" && ac_dir=.
     1136    if test -f $ac_dir/$ac_word; then
     1137      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     1138        ac_prog_rejected=yes
     1139        continue
     1140      fi
     1141      ac_cv_prog_CC="cc"
     1142      break
     1143    fi
     1144  done
     1145  IFS="$ac_save_ifs"
     1146if test $ac_prog_rejected = yes; then
     1147  # We found a bogon in the path, so make sure we never use it.
     1148  set dummy $ac_cv_prog_CC
     1149  shift
     1150  if test $# -gt 0; then
     1151    # We chose a different compiler from the bogus one.
     1152    # However, it has the same basename, so the bogon will be chosen
     1153    # first if we set CC to just the basename; use the full file name.
     1154    shift
     1155    set dummy "$ac_dir/$ac_word" "$@"
     1156    shift
     1157    ac_cv_prog_CC="$@"
     1158  fi
     1159fi
     1160fi
     1161fi
     1162CC="$ac_cv_prog_CC"
     1163if test -n "$CC"; then
     1164  echo "$ac_t""$CC" 1>&6
     1165else
     1166  echo "$ac_t""no" 1>&6
     1167fi
     1168
     1169  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
     1170fi
     1171
     1172echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
     1173echo "configure:1174: checking whether we are using GNU C" >&5
     1174if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
     1175  echo $ac_n "(cached) $ac_c" 1>&6
     1176else
     1177  cat > conftest.c <<EOF
     1178#ifdef __GNUC__
     1179  yes;
     1180#endif
     1181EOF
     1182if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1183  ac_cv_prog_gcc=yes
     1184else
     1185  ac_cv_prog_gcc=no
     1186fi
     1187fi
     1188
     1189echo "$ac_t""$ac_cv_prog_gcc" 1>&6
     1190
     1191if test $ac_cv_prog_gcc = yes; then
     1192  GCC=yes
     1193  ac_test_CFLAGS="${CFLAGS+set}"
     1194  ac_save_CFLAGS="$CFLAGS"
     1195  CFLAGS=
     1196  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     1197echo "configure:1198: checking whether ${CC-cc} accepts -g" >&5
     1198if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
     1199  echo $ac_n "(cached) $ac_c" 1>&6
     1200else
     1201  echo 'void f(){}' > conftest.c
     1202if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1203  ac_cv_prog_cc_g=yes
     1204else
     1205  ac_cv_prog_cc_g=no
     1206fi
     1207rm -f conftest*
     1208
     1209fi
     1210
     1211echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     1212  if test "$ac_test_CFLAGS" = set; then
     1213    CFLAGS="$ac_save_CFLAGS"
     1214  elif test $ac_cv_prog_cc_g = yes; then
     1215    CFLAGS="-g -O2"
     1216  else
     1217    CFLAGS="-O2"
     1218  fi
     1219else
     1220  GCC=
     1221  test "${CFLAGS+set}" = set || CFLAGS="-g"
     1222fi
     1223
     1224
     1225# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
     1226set dummy ${ac_tool_prefix}as; ac_word=$2
     1227echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1228echo "configure:1229: checking for $ac_word" >&5
     1229if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
     1230  echo $ac_n "(cached) $ac_c" 1>&6
     1231else
     1232  if test -n "$AS"; then
     1233  ac_cv_prog_AS="$AS" # Let the user override the test.
     1234else
     1235  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1236  ac_dummy="$PATH"
     1237  for ac_dir in $ac_dummy; do
     1238    test -z "$ac_dir" && ac_dir=.
     1239    if test -f $ac_dir/$ac_word; then
     1240      ac_cv_prog_AS="${ac_tool_prefix}as"
     1241      break
     1242    fi
     1243  done
     1244  IFS="$ac_save_ifs"
     1245  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
     1246fi
     1247fi
     1248AS="$ac_cv_prog_AS"
     1249if test -n "$AS"; then
     1250  echo "$ac_t""$AS" 1>&6
     1251else
     1252  echo "$ac_t""no" 1>&6
     1253fi
     1254
     1255
     1256
     1257# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
     1258set dummy ${ac_tool_prefix}ar; ac_word=$2
     1259echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1260echo "configure:1261: checking for $ac_word" >&5
     1261if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
     1262  echo $ac_n "(cached) $ac_c" 1>&6
     1263else
     1264  if test -n "$AR"; then
     1265  ac_cv_prog_AR="$AR" # Let the user override the test.
     1266else
     1267  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1268  ac_dummy="$PATH"
     1269  for ac_dir in $ac_dummy; do
     1270    test -z "$ac_dir" && ac_dir=.
     1271    if test -f $ac_dir/$ac_word; then
     1272      ac_cv_prog_AR="${ac_tool_prefix}ar"
     1273      break
     1274    fi
     1275  done
     1276  IFS="$ac_save_ifs"
     1277  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
     1278fi
     1279fi
     1280AR="$ac_cv_prog_AR"
     1281if test -n "$AR"; then
     1282  echo "$ac_t""$AR" 1>&6
     1283else
     1284  echo "$ac_t""no" 1>&6
     1285fi
     1286
     1287
     1288
     1289# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     1290set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     1291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1292echo "configure:1293: checking for $ac_word" >&5
     1293if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
     1294  echo $ac_n "(cached) $ac_c" 1>&6
     1295else
     1296  if test -n "$RANLIB"; then
     1297  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     1298else
     1299  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1300  ac_dummy="$PATH"
     1301  for ac_dir in $ac_dummy; do
     1302    test -z "$ac_dir" && ac_dir=.
     1303    if test -f $ac_dir/$ac_word; then
     1304      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     1305      break
     1306    fi
     1307  done
     1308  IFS="$ac_save_ifs"
     1309fi
     1310fi
     1311RANLIB="$ac_cv_prog_RANLIB"
     1312if test -n "$RANLIB"; then
     1313  echo "$ac_t""$RANLIB" 1>&6
     1314else
     1315  echo "$ac_t""no" 1>&6
     1316fi
     1317
     1318
     1319if test -z "$ac_cv_prog_RANLIB"; then
     1320if test -n "$ac_tool_prefix"; then
     1321  # Extract the first word of "ranlib", so it can be a program name with args.
     1322set dummy ranlib; ac_word=$2
     1323echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1324echo "configure:1325: checking for $ac_word" >&5
     1325if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
     1326  echo $ac_n "(cached) $ac_c" 1>&6
     1327else
     1328  if test -n "$RANLIB"; then
     1329  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     1330else
     1331  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1332  ac_dummy="$PATH"
     1333  for ac_dir in $ac_dummy; do
     1334    test -z "$ac_dir" && ac_dir=.
     1335    if test -f $ac_dir/$ac_word; then
     1336      ac_cv_prog_RANLIB="ranlib"
     1337      break
     1338    fi
     1339  done
     1340  IFS="$ac_save_ifs"
     1341  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
     1342fi
     1343fi
     1344RANLIB="$ac_cv_prog_RANLIB"
     1345if test -n "$RANLIB"; then
     1346  echo "$ac_t""$RANLIB" 1>&6
     1347else
     1348  echo "$ac_t""no" 1>&6
     1349fi
     1350
     1351else
     1352  RANLIB=":"
     1353fi
     1354fi
     1355
     1356
     1357# Find a good install program.  We prefer a C program (faster),
     1358# so one script is as good as another.  But avoid the broken or
     1359# incompatible versions:
     1360# SysV /etc/install, /usr/sbin/install
     1361# SunOS /usr/etc/install
     1362# IRIX /sbin/install
     1363# AIX /bin/install
     1364# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     1365# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     1366# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     1367# ./install, which can be erroneously created by make from ./install.sh.
     1368echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
     1369echo "configure:1370: checking for a BSD compatible install" >&5
     1370if test -z "$INSTALL"; then
     1371if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     1372  echo $ac_n "(cached) $ac_c" 1>&6
     1373else
     1374    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
     1375  for ac_dir in $PATH; do
     1376    # Account for people who put trailing slashes in PATH elements.
     1377    case "$ac_dir/" in
     1378    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     1379    *)
     1380      # OSF1 and SCO ODT 3.0 have their own names for install.
     1381      # Don't use installbsd from OSF since it installs stuff as root
     1382      # by default.
     1383      for ac_prog in ginstall scoinst install; do
     1384        if test -f $ac_dir/$ac_prog; then
     1385          if test $ac_prog = install &&
     1386            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     1387            # AIX install.  It has an incompatible calling convention.
     1388            :
     1389          else
     1390            ac_cv_path_install="$ac_dir/$ac_prog -c"
     1391            break 2
     1392          fi
     1393        fi
     1394      done
     1395      ;;
     1396    esac
     1397  done
     1398  IFS="$ac_save_IFS"
     1399
     1400fi
     1401  if test "${ac_cv_path_install+set}" = set; then
     1402    INSTALL="$ac_cv_path_install"
     1403  else
     1404    # As a last resort, use the slow shell script.  We don't cache a
     1405    # path for INSTALL within a source directory, because that will
     1406    # break other packages using the cache if that directory is
     1407    # removed, or if the path is relative.
     1408    INSTALL="$ac_install_sh"
     1409  fi
     1410fi
     1411echo "$ac_t""$INSTALL" 1>&6
     1412
     1413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     1414# It thinks the first close brace ends the variable substitution.
     1415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     1416
     1417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     1418
     1419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     1420
     1421
     1422echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
     1423echo "configure:1424: checking whether to enable maintainer-specific portions of Makefiles" >&5
     1424    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
     1425if test "${enable_maintainer_mode+set}" = set; then
     1426  enableval="$enable_maintainer_mode"
     1427  USE_MAINTAINER_MODE=$enableval
     1428else
     1429  USE_MAINTAINER_MODE=no
     1430fi
     1431
     1432  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
     1433 
     1434
     1435if test $USE_MAINTAINER_MODE = yes; then
     1436  MAINTAINER_MODE_TRUE=
     1437  MAINTAINER_MODE_FALSE='#'
     1438else
     1439  MAINTAINER_MODE_TRUE='#'
     1440  MAINTAINER_MODE_FALSE=
     1441fi
     1442  MAINT=$MAINTAINER_MODE_TRUE
     1443 
     1444
     1445
     1446# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
     1447# at least currently, we never actually build a program, so we never
     1448# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
     1449# fails, because we are probably configuring with a cross compiler
     1450# which can't create executables.  So we include AC_EXEEXT to keep
     1451# automake happy, but we don't execute it, since we don't care about
     1452# the result.
     1453if false; then
     1454 
     1455
     1456echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
     1457echo "configure:1458: checking for executable suffix" >&5
     1458if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
     1459  echo $ac_n "(cached) $ac_c" 1>&6
     1460else
     1461  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
     1462  ac_cv_exeext=.exe
     1463else
     1464  rm -f conftest*
     1465  echo 'int main () { return 0; }' > conftest.$ac_ext
     1466  ac_cv_exeext=
     1467  if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1468    for file in conftest.*; do
     1469      case $file in
     1470      *.c | *.o | *.obj) ;;
     1471      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
     1472      esac
     1473    done
     1474  else
     1475    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
     1476  fi
     1477  rm -f conftest*
     1478  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
     1479fi
     1480fi
     1481
     1482EXEEXT=""
     1483test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
     1484echo "$ac_t""${ac_cv_exeext}" 1>&6
     1485ac_exeext=$EXEEXT
     1486
     1487fi
     1488
     1489. ${newlib_basedir}/configure.host
     1490
     1491newlib_cflags="${newlib_cflags} -fno-builtin"
     1492
     1493NEWLIB_CFLAGS=${newlib_cflags}
     1494
     1495
     1496LDFLAGS=${ldflags}
     1497
     1498
     1499
     1500
     1501if test x${newlib_elix_level} = x0; then
     1502  ELIX_LEVEL_0_TRUE=
     1503  ELIX_LEVEL_0_FALSE='#'
     1504else
     1505  ELIX_LEVEL_0_TRUE='#'
     1506  ELIX_LEVEL_0_FALSE=
     1507fi
     1508
     1509
     1510if test x${newlib_elix_level} = x1; then
     1511  ELIX_LEVEL_1_TRUE=
     1512  ELIX_LEVEL_1_FALSE='#'
     1513else
     1514  ELIX_LEVEL_1_TRUE='#'
     1515  ELIX_LEVEL_1_FALSE=
     1516fi
     1517
     1518
     1519if test x${newlib_elix_level} = x2; then
     1520  ELIX_LEVEL_2_TRUE=
     1521  ELIX_LEVEL_2_FALSE='#'
     1522else
     1523  ELIX_LEVEL_2_TRUE='#'
     1524  ELIX_LEVEL_2_FALSE=
     1525fi
     1526
     1527
     1528if test x${newlib_elix_level} = x3; then
     1529  ELIX_LEVEL_3_TRUE=
     1530  ELIX_LEVEL_3_FALSE='#'
     1531else
     1532  ELIX_LEVEL_3_TRUE='#'
     1533  ELIX_LEVEL_3_FALSE=
     1534fi
     1535
     1536
     1537if test x${newlib_elix_level} = x4; then
     1538  ELIX_LEVEL_4_TRUE=
     1539  ELIX_LEVEL_4_FALSE='#'
     1540else
     1541  ELIX_LEVEL_4_TRUE='#'
     1542  ELIX_LEVEL_4_FALSE=
     1543fi
     1544
     1545
     1546
     1547if test x${use_libtool} = xyes; then
     1548  USE_LIBTOOL_TRUE=
     1549  USE_LIBTOOL_FALSE='#'
     1550else
     1551  USE_LIBTOOL_TRUE='#'
     1552  USE_LIBTOOL_FALSE=
     1553fi
     1554
     1555# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
     1556# use oext, which is set in configure.host based on the target platform.
     1557OBJEXT=${oext}
     1558
     1559
     1560
     1561
     1562
     1563
     1564
     1565
     1566
     1567
     1568trap '' 1 2 15
     1569cat > confcache <<\EOF
     1570# This file is a shell script that caches the results of configure
     1571# tests run on this system so they can be shared between configure
     1572# scripts and configure runs.  It is not useful on other systems.
     1573# If it contains results you don't want to keep, you may remove or edit it.
     1574#
     1575# By default, configure uses ./config.cache as the cache file,
     1576# creating it if it does not exist already.  You can give configure
     1577# the --cache-file=FILE option to use a different cache file; that is
     1578# what configure does when it calls configure scripts in
     1579# subdirectories, so they share the cache.
     1580# Giving --cache-file=/dev/null disables caching, for debugging configure.
     1581# config.status only pays attention to the cache file if you give it the
     1582# --recheck option to rerun configure.
     1583#
     1584EOF
     1585# The following way of writing the cache mishandles newlines in values,
     1586# but we know of no workaround that is simple, portable, and efficient.
     1587# So, don't put newlines in cache variables' values.
     1588# Ultrix sh set writes to stderr and can't be redirected directly,
     1589# and sets the high bit in the cache file unless we assign to the vars.
     1590(set) 2>&1 |
     1591  case `(ac_space=' '; set | grep ac_space) 2>&1` in
     1592  *ac_space=\ *)
     1593    # `set' does not quote correctly, so add quotes (double-quote substitution
     1594    # turns \\\\ into \\, and sed turns \\ into \).
     1595    sed -n \
     1596      -e "s/'/'\\\\''/g" \
     1597      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
     1598    ;;
     1599  *)
     1600    # `set' quotes correctly as required by POSIX, so do not add quotes.
     1601    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
     1602    ;;
     1603  esac >> confcache
     1604if cmp -s $cache_file confcache; then
     1605  :
     1606else
     1607  if test -w $cache_file; then
     1608    echo "updating cache $cache_file"
     1609    cat confcache > $cache_file
     1610  else
     1611    echo "not updating unwritable cache $cache_file"
     1612  fi
     1613fi
     1614rm -f confcache
     1615
     1616trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
     1617
     1618test "x$prefix" = xNONE && prefix=$ac_default_prefix
     1619# Let make expand exec_prefix.
     1620test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
     1621
     1622# Any assignment to VPATH causes Sun make to only execute
     1623# the first set of double-colon rules, so remove it if not needed.
     1624# If there is a colon in the path, we need to keep it.
     1625if test "x$srcdir" = x.; then
     1626  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
     1627fi
     1628
     1629trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     1630
     1631# Transform confdefs.h into DEFS.
     1632# Protect against shell expansion while executing Makefile rules.
     1633# Protect against Makefile macro expansion.
     1634cat > conftest.defs <<\EOF
     1635s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
     1636s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
     1637s%\[%\\&%g
     1638s%\]%\\&%g
     1639s%\$%$$%g
     1640EOF
     1641DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
     1642rm -f conftest.defs
     1643
     1644
     1645# Without the "./", some shells look in PATH for config.status.
     1646: ${CONFIG_STATUS=./config.status}
     1647
     1648echo creating $CONFIG_STATUS
     1649rm -f $CONFIG_STATUS
     1650cat > $CONFIG_STATUS <<EOF
     1651#! /bin/sh
     1652# Generated automatically by configure.
     1653# Run this file to recreate the current configuration.
     1654# This directory was configured as follows,
     1655# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     1656#
     1657# $0 $ac_configure_args
     1658#
     1659# Compiler output produced by configure, useful for debugging
     1660# configure, is in ./config.log if it exists.
     1661
     1662ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
     1663for ac_option
     1664do
     1665  case "\$ac_option" in
     1666  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     1667    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
     1668    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
     1669  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
     1670    echo "$CONFIG_STATUS generated by autoconf version 2.13"
     1671    exit 0 ;;
     1672  -help | --help | --hel | --he | --h)
     1673    echo "\$ac_cs_usage"; exit 0 ;;
     1674  *) echo "\$ac_cs_usage"; exit 1 ;;
     1675  esac
     1676done
     1677
     1678ac_given_srcdir=$srcdir
     1679ac_given_INSTALL="$INSTALL"
     1680
     1681trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     1682EOF
     1683cat >> $CONFIG_STATUS <<EOF
     1684
     1685# Protect against being on the right side of a sed subst in config.status.
     1686sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
     1687 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
     1688$ac_vpsub
     1689$extrasub
     1690s%@SHELL@%$SHELL%g
     1691s%@CFLAGS@%$CFLAGS%g
     1692s%@CPPFLAGS@%$CPPFLAGS%g
     1693s%@CXXFLAGS@%$CXXFLAGS%g
     1694s%@FFLAGS@%$FFLAGS%g
     1695s%@DEFS@%$DEFS%g
     1696s%@LDFLAGS@%$LDFLAGS%g
     1697s%@LIBS@%$LIBS%g
     1698s%@exec_prefix@%$exec_prefix%g
     1699s%@prefix@%$prefix%g
     1700s%@program_transform_name@%$program_transform_name%g
     1701s%@bindir@%$bindir%g
     1702s%@sbindir@%$sbindir%g
     1703s%@libexecdir@%$libexecdir%g
     1704s%@datadir@%$datadir%g
     1705s%@sysconfdir@%$sysconfdir%g
     1706s%@sharedstatedir@%$sharedstatedir%g
     1707s%@localstatedir@%$localstatedir%g
     1708s%@libdir@%$libdir%g
     1709s%@includedir@%$includedir%g
     1710s%@oldincludedir@%$oldincludedir%g
     1711s%@infodir@%$infodir%g
     1712s%@mandir@%$mandir%g
     1713s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
     1714s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
     1715s%@newlib_basedir@%$newlib_basedir%g
     1716s%@host@%$host%g
     1717s%@host_alias@%$host_alias%g
     1718s%@host_cpu@%$host_cpu%g
     1719s%@host_vendor@%$host_vendor%g
     1720s%@host_os@%$host_os%g
     1721s%@target@%$target%g
     1722s%@target_alias@%$target_alias%g
     1723s%@target_cpu@%$target_cpu%g
     1724s%@target_vendor@%$target_vendor%g
     1725s%@target_os@%$target_os%g
     1726s%@build@%$build%g
     1727s%@build_alias@%$build_alias%g
     1728s%@build_cpu@%$build_cpu%g
     1729s%@build_vendor@%$build_vendor%g
     1730s%@build_os@%$build_os%g
     1731s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     1732s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     1733s%@INSTALL_DATA@%$INSTALL_DATA%g
     1734s%@PACKAGE@%$PACKAGE%g
     1735s%@VERSION@%$VERSION%g
     1736s%@ACLOCAL@%$ACLOCAL%g
     1737s%@AUTOCONF@%$AUTOCONF%g
     1738s%@AUTOMAKE@%$AUTOMAKE%g
     1739s%@AUTOHEADER@%$AUTOHEADER%g
     1740s%@MAKEINFO@%$MAKEINFO%g
     1741s%@SET_MAKE@%$SET_MAKE%g
     1742s%@CC@%$CC%g
     1743s%@AS@%$AS%g
     1744s%@AR@%$AR%g
     1745s%@RANLIB@%$RANLIB%g
     1746s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
     1747s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
     1748s%@MAINT@%$MAINT%g
     1749s%@EXEEXT@%$EXEEXT%g
     1750s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
     1751s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
     1752s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
     1753s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
     1754s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
     1755s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
     1756s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
     1757s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
     1758s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
     1759s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
     1760s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
     1761s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
     1762s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
     1763s%@OBJEXT@%$OBJEXT%g
     1764s%@oext@%$oext%g
     1765s%@aext@%$aext%g
     1766s%@libm_machine_dir@%$libm_machine_dir%g
     1767s%@machine_dir@%$machine_dir%g
     1768s%@sys_dir@%$sys_dir%g
     1769
     1770CEOF
     1771EOF
     1772
     1773cat >> $CONFIG_STATUS <<\EOF
     1774
     1775# Split the substitutions into bite-sized pieces for seds with
     1776# small command number limits, like on Digital OSF/1 and HP-UX.
     1777ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
     1778ac_file=1 # Number of current file.
     1779ac_beg=1 # First line for current file.
     1780ac_end=$ac_max_sed_cmds # Line after last line for current file.
     1781ac_more_lines=:
     1782ac_sed_cmds=""
     1783while $ac_more_lines; do
     1784  if test $ac_beg -gt 1; then
     1785    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
     1786  else
     1787    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
     1788  fi
     1789  if test ! -s conftest.s$ac_file; then
     1790    ac_more_lines=false
     1791    rm -f conftest.s$ac_file
     1792  else
     1793    if test -z "$ac_sed_cmds"; then
     1794      ac_sed_cmds="sed -f conftest.s$ac_file"
     1795    else
     1796      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
     1797    fi
     1798    ac_file=`expr $ac_file + 1`
     1799    ac_beg=$ac_end
     1800    ac_end=`expr $ac_end + $ac_max_sed_cmds`
     1801  fi
     1802done
     1803if test -z "$ac_sed_cmds"; then
     1804  ac_sed_cmds=cat
     1805fi
     1806EOF
     1807
     1808cat >> $CONFIG_STATUS <<EOF
     1809
     1810CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
     1811EOF
     1812cat >> $CONFIG_STATUS <<\EOF
     1813for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
     1814  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     1815  case "$ac_file" in
     1816  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
     1817       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     1818  *) ac_file_in="${ac_file}.in" ;;
     1819  esac
     1820
     1821  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
     1822
     1823  # Remove last slash and all that follows it.  Not all systems have dirname.
     1824  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     1825  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     1826    # The file is in a subdirectory.
     1827    test ! -d "$ac_dir" && mkdir "$ac_dir"
     1828    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
     1829    # A "../" for each directory in $ac_dir_suffix.
     1830    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
     1831  else
     1832    ac_dir_suffix= ac_dots=
     1833  fi
     1834
     1835  case "$ac_given_srcdir" in
     1836  .)  srcdir=.
     1837      if test -z "$ac_dots"; then top_srcdir=.
     1838      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
     1839  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     1840  *) # Relative path.
     1841    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
     1842    top_srcdir="$ac_dots$ac_given_srcdir" ;;
     1843  esac
     1844
     1845  case "$ac_given_INSTALL" in
     1846  [/$]*) INSTALL="$ac_given_INSTALL" ;;
     1847  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     1848  esac
     1849
     1850  echo creating "$ac_file"
     1851  rm -f "$ac_file"
     1852  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
     1853  case "$ac_file" in
     1854  *Makefile*) ac_comsub="1i\\
     1855# $configure_input" ;;
     1856  *) ac_comsub= ;;
     1857  esac
     1858
     1859  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     1860  sed -e "$ac_comsub
     1861s%@configure_input@%$configure_input%g
     1862s%@srcdir@%$srcdir%g
     1863s%@top_srcdir@%$top_srcdir%g
     1864s%@INSTALL@%$INSTALL%g
     1865" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
     1866fi; done
     1867rm -f conftest.s*
     1868
     1869EOF
     1870cat >> $CONFIG_STATUS <<EOF
     1871
     1872EOF
     1873cat >> $CONFIG_STATUS <<\EOF
     1874
     1875exit 0
     1876EOF
     1877chmod +x $CONFIG_STATUS
     1878rm -fr confdefs* $ac_clean_files
     1879test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
     1880
  • newlib/libc/machine/bfin/configure.in

    diff -urN newlib-1.14.0-orig/newlib/libc/machine/bfin/configure.in newlib-1.14.0/newlib/libc/machine/bfin/configure.in
    old new  
     1dnl This is the newlib/libc/machine/arm configure.in file.
     2dnl Process this file with autoconf to produce a configure script.
     3
     4AC_PREREQ(2.5)
     5AC_INIT(Makefile.am)
     6
     7dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
     8AC_CONFIG_AUX_DIR(../../../..)
     9
     10NEWLIB_CONFIGURE(../../..)
     11
     12AC_OUTPUT(Makefile)
  • newlib/libc/machine/bfin/machine/endian.h

    diff -urN newlib-1.14.0-orig/newlib/libc/machine/bfin/machine/endian.h newlib-1.14.0/newlib/libc/machine/bfin/machine/endian.h
    old new  
     1#ifndef _MACHINE_ENDIAN_H
     2# define _MACHINE_ENDIAN_H
     3
     4#define BYTE_ORDER LITTLE_ENDIAN
     5
     6#endif
  • newlib/libc/machine/bfin/machine/param.h

    diff -urN newlib-1.14.0-orig/newlib/libc/machine/bfin/machine/param.h newlib-1.14.0/newlib/libc/machine/bfin/machine/param.h
    old new  
     1#ifndef _MACHINE_PARAM_H
     2# define _MACHINE_PARAM_H
     3
     4# define HZ (100)
     5
     6#define BYTE_ORDER LITTLE_ENDIAN
     7
     8#endif
  • newlib/libc/machine/bfin/Makefile.am

    diff -urN newlib-1.14.0-orig/newlib/libc/machine/bfin/Makefile.am newlib-1.14.0/newlib/libc/machine/bfin/Makefile.am
    old new  
     1## Process this file with automake to generate Makefile.in
     2
     3AUTOMAKE_OPTIONS = cygnus
     4
     5INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
     6
     7noinst_LIBRARIES = lib.a
     8
     9lib_a_SOURCES = access.c
     10
     11ACLOCAL_AMFLAGS = -I ../../..
     12CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
  • newlib/libc/machine/bfin/Makefile.in

    diff -urN newlib-1.14.0-orig/newlib/libc/machine/bfin/Makefile.in newlib-1.14.0/newlib/libc/machine/bfin/Makefile.in
    old new  
     1# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
     4# This Makefile.in is free software; the Free Software Foundation
     5# gives unlimited permission to copy and/or distribute it,
     6# with or without modifications, as long as this notice is preserved.
     7
     8# This program is distributed in the hope that it will be useful,
     9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11# PARTICULAR PURPOSE.
     12
     13
     14SHELL = @SHELL@
     15
     16srcdir = @srcdir@
     17top_srcdir = @top_srcdir@
     18VPATH = @srcdir@
     19prefix = @prefix@
     20exec_prefix = @exec_prefix@
     21
     22bindir = @bindir@
     23sbindir = @sbindir@
     24libexecdir = @libexecdir@
     25datadir = @datadir@
     26sysconfdir = @sysconfdir@
     27sharedstatedir = @sharedstatedir@
     28localstatedir = @localstatedir@
     29libdir = @libdir@
     30infodir = @infodir@
     31mandir = @mandir@
     32includedir = @includedir@
     33oldincludedir = /usr/include
     34
     35DESTDIR =
     36
     37pkgdatadir = $(datadir)/@PACKAGE@
     38pkglibdir = $(libdir)/@PACKAGE@
     39pkgincludedir = $(includedir)/@PACKAGE@
     40
     41top_builddir = .
     42
     43ACLOCAL = @ACLOCAL@
     44AUTOCONF = @AUTOCONF@
     45AUTOMAKE = @AUTOMAKE@
     46AUTOHEADER = @AUTOHEADER@
     47
     48INSTALL = @INSTALL@
     49INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     50INSTALL_DATA = @INSTALL_DATA@
     51INSTALL_SCRIPT = @INSTALL_SCRIPT@
     52transform = @program_transform_name@
     53
     54NORMAL_INSTALL = :
     55PRE_INSTALL = :
     56POST_INSTALL = :
     57NORMAL_UNINSTALL = :
     58PRE_UNINSTALL = :
     59POST_UNINSTALL = :
     60build_alias = @build_alias@
     61build_triplet = @build@
     62host_alias = @host_alias@
     63host_triplet = @host@
     64target_alias = @target_alias@
     65target_triplet = @target@
     66AR = @AR@
     67AS = @AS@
     68CC = @CC@
     69CPP = @CPP@
     70EXEEXT = @EXEEXT@
     71LDFLAGS = @LDFLAGS@
     72MAINT = @MAINT@
     73MAKEINFO = @MAKEINFO@
     74NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
     75OBJEXT = @OBJEXT@
     76PACKAGE = @PACKAGE@
     77RANLIB = @RANLIB@
     78VERSION = @VERSION@
     79aext = @aext@
     80libm_machine_dir = @libm_machine_dir@
     81machine_dir = @machine_dir@
     82newlib_basedir = @newlib_basedir@
     83oext = @oext@
     84sys_dir = @sys_dir@
     85
     86AUTOMAKE_OPTIONS = cygnus
     87
     88INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
     89
     90noinst_LIBRARIES = lib.a
     91
     92lib_a_SOURCES = setjmp.S access.c
     93
     94ACLOCAL_AMFLAGS = -I ../../..
     95CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
     96ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     97mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
     98CONFIG_CLEAN_FILES =
     99LIBRARIES =  $(noinst_LIBRARIES)
     100
     101
     102DEFS = @DEFS@ -I. -I$(srcdir)
     103CPPFLAGS = @CPPFLAGS@
     104LIBS = @LIBS@
     105lib_a_LIBADD =
     106lib_a_OBJECTS =  setjmp.o access.o
     107CFLAGS = @CFLAGS@
     108COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     109CCLD = $(CC)
     110LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
     111DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
     112
     113
     114DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     115
     116TAR = gtar
     117GZIP_ENV = --best
     118SOURCES = $(lib_a_SOURCES)
     119OBJECTS = $(lib_a_OBJECTS)
     120
     121all: all-redirect
     122.SUFFIXES:
     123.SUFFIXES: .S .c .o .s
     124$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     125        cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
     126
     127Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
     128        cd $(top_builddir) \
     129          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     130
     131$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in  \
     132                ../../../acinclude.m4 ../../../aclocal.m4 \
     133                ../../../libtool.m4
     134        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     135
     136config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
     137        $(SHELL) ./config.status --recheck
     138$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     139        cd $(srcdir) && $(AUTOCONF)
     140
     141mostlyclean-noinstLIBRARIES:
     142
     143clean-noinstLIBRARIES:
     144        -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
     145
     146distclean-noinstLIBRARIES:
     147
     148maintainer-clean-noinstLIBRARIES:
     149
     150.c.o:
     151        $(COMPILE) -c $<
     152
     153.s.o:
     154        $(COMPILE) -c $<
     155
     156.S.o:
     157        $(COMPILE) -c $<
     158
     159mostlyclean-compile:
     160        -rm -f *.o core *.core
     161
     162clean-compile:
     163
     164distclean-compile:
     165        -rm -f *.tab.c
     166
     167maintainer-clean-compile:
     168
     169lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES)
     170        -rm -f lib.a
     171        $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
     172        $(RANLIB) lib.a
     173
     174tags: TAGS
     175
     176ID: $(HEADERS) $(SOURCES) $(LISP)
     177        list='$(SOURCES) $(HEADERS)'; \
     178        unique=`for i in $$list; do echo $$i; done | \
     179          awk '    { files[$$0] = 1; } \
     180               END { for (i in files) print i; }'`; \
     181        here=`pwd` && cd $(srcdir) \
     182          && mkid -f$$here/ID $$unique $(LISP)
     183
     184TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
     185        tags=; \
     186        here=`pwd`; \
     187        list='$(SOURCES) $(HEADERS)'; \
     188        unique=`for i in $$list; do echo $$i; done | \
     189          awk '    { files[$$0] = 1; } \
     190               END { for (i in files) print i; }'`; \
     191        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
     192          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
     193
     194mostlyclean-tags:
     195
     196clean-tags:
     197
     198distclean-tags:
     199        -rm -f TAGS ID
     200
     201maintainer-clean-tags:
     202
     203distdir = $(PACKAGE)-$(VERSION)
     204top_distdir = $(distdir)
     205
     206# This target untars the dist file and tries a VPATH configuration.  Then
     207# it guarantees that the distribution is self-contained by making another
     208# tarfile.
     209distcheck: dist
     210        -rm -rf $(distdir)
     211        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
     212        mkdir $(distdir)/=build
     213        mkdir $(distdir)/=inst
     214        dc_install_base=`cd $(distdir)/=inst && pwd`; \
     215        cd $(distdir)/=build \
     216          && ../configure --srcdir=.. --prefix=$$dc_install_base \
     217          && $(MAKE) $(AM_MAKEFLAGS) \
     218          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     219          && $(MAKE) $(AM_MAKEFLAGS) check \
     220          && $(MAKE) $(AM_MAKEFLAGS) install \
     221          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
     222          && $(MAKE) $(AM_MAKEFLAGS) dist
     223        -rm -rf $(distdir)
     224        @banner="$(distdir).tar.gz is ready for distribution"; \
     225        dashes=`echo "$$banner" | sed s/./=/g`; \
     226        echo "$$dashes"; \
     227        echo "$$banner"; \
     228        echo "$$dashes"
     229dist: distdir
     230        -chmod -R a+r $(distdir)
     231        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     232        -rm -rf $(distdir)
     233dist-all: distdir
     234        -chmod -R a+r $(distdir)
     235        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     236        -rm -rf $(distdir)
     237distdir: $(DISTFILES)
     238        -rm -rf $(distdir)
     239        mkdir $(distdir)
     240        -chmod 777 $(distdir)
     241        @for file in $(DISTFILES); do \
     242          if test -f $$file; then d=.; else d=$(srcdir); fi; \
     243          if test -d $$d/$$file; then \
     244            cp -pr $$d/$$file $(distdir)/$$file; \
     245          else \
     246            test -f $(distdir)/$$file \
     247            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     248            || cp -p $$d/$$file $(distdir)/$$file || :; \
     249          fi; \
     250        done
     251info-am:
     252info: info-am
     253dvi-am:
     254dvi: dvi-am
     255check-am:
     256check: check-am
     257installcheck-am:
     258installcheck: installcheck-am
     259install-info-am:
     260install-info: install-info-am
     261install-exec-am:
     262install-exec: install-exec-am
     263
     264install-data-am:
     265install-data: install-data-am
     266
     267install-am: all-am
     268        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     269install: install-am
     270uninstall-am:
     271uninstall: uninstall-am
     272all-am: Makefile $(LIBRARIES)
     273all-redirect: all-am
     274install-strip:
     275        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     276installdirs:
     277
     278
     279mostlyclean-generic:
     280
     281clean-generic:
     282
     283distclean-generic:
     284        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     285        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     286
     287maintainer-clean-generic:
     288mostlyclean-am:  mostlyclean-noinstLIBRARIES mostlyclean-compile \
     289                mostlyclean-tags mostlyclean-generic
     290
     291mostlyclean: mostlyclean-am
     292
     293clean-am:  clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
     294                mostlyclean-am
     295
     296clean: clean-am
     297
     298distclean-am:  distclean-noinstLIBRARIES distclean-compile \
     299                distclean-tags distclean-generic clean-am
     300
     301distclean: distclean-am
     302        -rm -f config.status
     303
     304maintainer-clean-am:  maintainer-clean-noinstLIBRARIES \
     305                maintainer-clean-compile maintainer-clean-tags \
     306                maintainer-clean-generic distclean-am
     307        @echo "This command is intended for maintainers to use;"
     308        @echo "it deletes files that may require special tools to rebuild."
     309
     310maintainer-clean: maintainer-clean-am
     311        -rm -f config.status
     312
     313.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
     314clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
     315mostlyclean-compile distclean-compile clean-compile \
     316maintainer-clean-compile tags mostlyclean-tags distclean-tags \
     317clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
     318check-am installcheck-am installcheck install-info-am install-info \
     319install-exec-am install-exec install-data-am install-data install-am \
     320install uninstall-am uninstall all-redirect all-am all installdirs \
     321mostlyclean-generic distclean-generic clean-generic \
     322maintainer-clean-generic clean mostlyclean distclean maintainer-clean
     323
     324
     325# Tell versions [3.59,3.63) of GNU make to not export all variables.
     326# Otherwise a system limit (for SysV at least) may be exceeded.
     327.NOEXPORT:
  • newlib/libc/machine/bfin/setjmp.S

    diff -urN newlib-1.14.0-orig/newlib/libc/machine/bfin/setjmp.S newlib-1.14.0/newlib/libc/machine/bfin/setjmp.S
    old new  
     1
     2/* Cetjmp for the Blackfin project
     3 *
     4 * Copyright (C) 2003,  Metrowerks
     5 * Based on code from Analog Devices.
     6 *
     7 * This file is subject to the terms and conditions of the GNU Lesser
     8 * General Public License.  See the file COPYING.LIB in the main
     9 * directory of this archive for more details.
     10 *
     11 */
     12#define _ASM
     13#define _SETJMP_H
     14
     15.globl ___sigsetjmp;
     16.align 4;
     17
     18___sigsetjmp:
     19        [--SP] = P0;    /* Save P0 */
     20        P0 = R0;
     21        R0 = [SP++];   
     22        [P0 + 0x00] = R0;       /* Save saved P0 */
     23        [P0 + 0x04] = P1;
     24        [P0 + 0x08] = P2;
     25        [P0 + 0x0C] = P3;
     26        [P0 + 0x10] = P4;
     27        [P0 + 0x14] = P5;
     28
     29        [P0 + 0x18] = FP;       /* Frame Pointer */
     30        [P0 + 0x1C] = SP;       /* Stack Pointer */
     31
     32        [P0 + 0x20] = P0;       /* Data Registers */
     33        [P0 + 0x24] = R1;
     34        [P0 + 0x28] = R2;
     35        [P0 + 0x2C] = R3;
     36        [P0 + 0x30] = R4;
     37        [P0 + 0x34] = R5;
     38        [P0 + 0x38] = R6;
     39        [P0 + 0x3C] = R7;
     40
     41        R0 = ASTAT;
     42        [P0 + 0x40] = R0;
     43
     44        R0 = LC0;               /* Loop Counters */
     45        [P0 + 0x44] = R0;
     46        R0 = LC1;
     47        [P0 + 0x48] = R0;
     48
     49        R0 = A0.W;              /* Accumulators */
     50        [P0 + 0x4C] = R0;
     51        R0 = A0.X;
     52        [P0 + 0x50] = R0;
     53        R0 = A1.W;
     54        [P0 + 0x54] = R0;
     55        R0 = A1.X;
     56        [P0 + 0x58] = R0;
     57
     58        R0 = I0;                /* Index Registers */
     59        [P0 + 0x5C] = R0;
     60        R0 = I1;
     61        [P0 + 0x60] = R0;
     62        R0 = I2;
     63        [P0 + 0x64] = R0;
     64        R0 = I3;
     65        [P0 + 0x68] = R0;
     66
     67        R0 = M0;                /* Modifier Registers */
     68        [P0 + 0x6C] = R0;
     69        R0 = M1;
     70        [P0 + 0x70] = R0;
     71        R0 = M2;
     72        [P0 + 0x74] = R0;
     73        R0 = M3;
     74        [P0 + 0x78] = R0;
     75
     76        R0 = L0;                /* Length Registers */
     77        [P0 + 0x7c] = R0;
     78        R0 = L1;
     79        [P0 + 0x80] = R0;
     80        R0 = L2;
     81        [P0 + 0x84] = R0;
     82        R0 = L3;
     83        [P0 + 0x88] = R0;
     84
     85        R0 = B0;                /* Base Registers */
     86        [P0 + 0x8C] = R0;
     87        R0 = B1;
     88        [P0 + 0x90] = R0;
     89        R0 = B2;
     90        [P0 + 0x94] = R0;
     91        R0 = B3;
     92        [P0 + 0x98] = R0;
     93
     94        R0 = RETS;
     95        [P0 + 0x9C] = R0;
     96
     97        R0 = [P0 + 0x20];
     98        CC = R1 == 1;
     99        IF CC JUMP finished;
     100        CALL ___sigjmp_save;
     101finished:
     102        R0 = 0;
     103        RTS;
     104___sigsetjmp.end:
  • newlib/libc/sys/bfin/aclocal.m4

    diff -urN newlib-1.14.0-orig/newlib/libc/sys/bfin/aclocal.m4 newlib-1.14.0/newlib/libc/sys/bfin/aclocal.m4
    old new  
     1dnl aclocal.m4 generated automatically by aclocal 1.4-p6
     2
     3dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
     4dnl This file is free software; the Free Software Foundation
     5dnl gives unlimited permission to copy and/or distribute it,
     6dnl with or without modifications, as long as this notice is preserved.
     7
     8dnl This program is distributed in the hope that it will be useful,
     9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11dnl PARTICULAR PURPOSE.
     12
     13dnl This provides configure definitions used by all the newlib
     14dnl configure.in files.
     15
     16dnl Basic newlib configury.  This calls basic introductory stuff,
     17dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST.  It also runs
     18dnl configure.host.  The only argument is the relative path to the top
     19dnl newlib directory.
     20
     21AC_DEFUN(NEWLIB_CONFIGURE,
     22[
     23dnl Default to --enable-multilib
     24AC_ARG_ENABLE(multilib,
     25[  --enable-multilib         build many library versions (default)],
     26[case "${enableval}" in
     27  yes) multilib=yes ;;
     28  no)  multilib=no ;;
     29  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
     30 esac], [multilib=yes])dnl
     31
     32dnl Support --enable-target-optspace
     33AC_ARG_ENABLE(target-optspace,
     34[  --enable-target-optspace  optimize for space],
     35[case "${enableval}" in
     36  yes) target_optspace=yes ;;
     37  no)  target_optspace=no ;;
     38  *)   AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;;
     39 esac], [target_optspace=])dnl
     40
     41dnl Support --enable-malloc-debugging - currently only supported for Cygwin
     42AC_ARG_ENABLE(malloc-debugging,
     43[  --enable-malloc-debugging indicate malloc debugging requested],
     44[case "${enableval}" in
     45  yes) malloc_debugging=yes ;;
     46  no)  malloc_debugging=no ;;
     47  *)   AC_MSG_ERROR(bad value ${enableval} for malloc-debugging option) ;;
     48 esac], [malloc_debugging=])dnl
     49
     50dnl Support --enable-newlib-multithread
     51AC_ARG_ENABLE(newlib-multithread,
     52[  --enable-newlib-multithread        enable support for multiple threads],
     53[case "${enableval}" in
     54  yes) newlib_multithread=yes ;;
     55  no)  newlib_multithread=no ;;
     56  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-multithread option) ;;
     57 esac], [newlib_multithread=yes])dnl
     58
     59dnl Support --enable-newlib-iconv
     60AC_ARG_ENABLE(newlib-iconv,
     61[  --enable-newlib-iconv     enable iconv library support],
     62[if test "${newlib_iconv+set}" != set; then
     63   case "${enableval}" in
     64     yes) newlib_iconv=yes ;;
     65     no)  newlib_iconv=no ;;
     66     *)   AC_MSG_ERROR(bad value ${enableval} for newlib-iconv option) ;;
     67   esac
     68 fi], [newlib_iconv=${newlib_iconv}])dnl
     69
     70dnl Support --enable-newlib-elix-level
     71AC_ARG_ENABLE(newlib-elix-level,
     72[  --enable-newlib-elix-level         supply desired elix library level (1-4)],
     73[case "${enableval}" in
     74  0)   newlib_elix_level=0 ;;
     75  1)   newlib_elix_level=1 ;;
     76  2)   newlib_elix_level=2 ;;
     77  3)   newlib_elix_level=3 ;;
     78  4)   newlib_elix_level=4 ;;
     79  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-elix-level option) ;;
     80 esac], [newlib_elix_level=0])dnl
     81
     82dnl Support --disable-newlib-io-float
     83AC_ARG_ENABLE(newlib-io-float,
     84[  --disable-newlib-io-float disable printf/scanf family float support],
     85[case "${enableval}" in
     86  yes) newlib_io_float=yes ;;
     87  no)  newlib_io_float=no ;;
     88  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-io-float option) ;;
     89 esac], [newlib_io_float=yes])dnl
     90
     91dnl Support --disable-newlib-supplied-syscalls
     92AC_ARG_ENABLE(newlib-supplied-syscalls,
     93[  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls],
     94[case "${enableval}" in
     95  yes) newlib_may_supply_syscalls=yes ;;
     96  no)  newlib_may_supply_syscalls=no ;;
     97  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;;
     98 esac], [newlib_may_supply_syscalls=yes])dnl
     99
     100AM_CONDITIONAL(MAY_SUPPLY_SYSCALLS, test x[$]{newlib_may_supply_syscalls} = xyes)
     101
     102dnl We may get other options which we don't document:
     103dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
     104
     105test -z "[$]{with_target_subdir}" && with_target_subdir=.
     106
     107if test "[$]{srcdir}" = "."; then
     108  if test "[$]{with_target_subdir}" != "."; then
     109    newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1"
     110  else
     111    newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1"
     112  fi
     113else
     114  newlib_basedir="[$]{srcdir}/$1"
     115fi
     116AC_SUBST(newlib_basedir)
     117
     118AC_CANONICAL_SYSTEM
     119
     120AM_INIT_AUTOMAKE(newlib, 1.12.0)
     121
     122# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
     123# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
     124# are probably using a cross compiler, which will not be able to fully
     125# link an executable.  This should really be fixed in autoconf
     126# itself.
     127
     128AC_DEFUN(LIB_AC_PROG_CC,
     129[AC_BEFORE([$0], [AC_PROG_CPP])dnl
     130AC_CHECK_PROG(CC, gcc, gcc)
     131if test -z "$CC"; then
     132  AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
     133  test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
     134fi
     135
     136AC_PROG_CC_GNU
     137
     138if test $ac_cv_prog_gcc = yes; then
     139  GCC=yes
     140dnl Check whether -g works, even if CFLAGS is set, in case the package
     141dnl plays around with CFLAGS (such as to build both debugging and
     142dnl normal versions of a library), tasteless as that idea is.
     143  ac_test_CFLAGS="${CFLAGS+set}"
     144  ac_save_CFLAGS="$CFLAGS"
     145  CFLAGS=
     146  AC_PROG_CC_G
     147  if test "$ac_test_CFLAGS" = set; then
     148    CFLAGS="$ac_save_CFLAGS"
     149  elif test $ac_cv_prog_cc_g = yes; then
     150    CFLAGS="-g -O2"
     151  else
     152    CFLAGS="-O2"
     153  fi
     154else
     155  GCC=
     156  test "${CFLAGS+set}" = set || CFLAGS="-g"
     157fi
     158])
     159
     160LIB_AC_PROG_CC
     161
     162AC_CHECK_TOOL(AS, as)
     163AC_CHECK_TOOL(AR, ar)
     164AC_CHECK_TOOL(RANLIB, ranlib, :)
     165
     166AC_PROG_INSTALL
     167
     168AM_MAINTAINER_MODE
     169
     170# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
     171# at least currently, we never actually build a program, so we never
     172# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
     173# fails, because we are probably configuring with a cross compiler
     174# which can't create executables.  So we include AC_EXEEXT to keep
     175# automake happy, but we don't execute it, since we don't care about
     176# the result.
     177if false; then
     178  AC_EXEEXT
     179fi
     180
     181. [$]{newlib_basedir}/configure.host
     182
     183newlib_cflags="[$]{newlib_cflags} -fno-builtin"
     184
     185NEWLIB_CFLAGS=${newlib_cflags}
     186AC_SUBST(NEWLIB_CFLAGS)
     187
     188LDFLAGS=${ldflags}
     189AC_SUBST(LDFLAGS)
     190
     191AM_CONDITIONAL(ELIX_LEVEL_0, test x[$]{newlib_elix_level} = x0)
     192AM_CONDITIONAL(ELIX_LEVEL_1, test x[$]{newlib_elix_level} = x1)
     193AM_CONDITIONAL(ELIX_LEVEL_2, test x[$]{newlib_elix_level} = x2)
     194AM_CONDITIONAL(ELIX_LEVEL_3, test x[$]{newlib_elix_level} = x3)
     195AM_CONDITIONAL(ELIX_LEVEL_4, test x[$]{newlib_elix_level} = x4)
     196
     197AM_CONDITIONAL(USE_LIBTOOL, test x[$]{use_libtool} = xyes)
     198
     199# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
     200# use oext, which is set in configure.host based on the target platform.
     201OBJEXT=${oext}
     202
     203AC_SUBST(OBJEXT)
     204AC_SUBST(oext)
     205AC_SUBST(aext)
     206
     207AC_SUBST(libm_machine_dir)
     208AC_SUBST(machine_dir)
     209AC_SUBST(sys_dir)
     210])
     211
     212# Do all the work for Automake.  This macro actually does too much --
     213# some checks are only needed if your package does certain things.
     214# But this isn't really a big deal.
     215
     216# serial 1
     217
     218dnl Usage:
     219dnl AM_INIT_AUTOMAKE(package,version, [no-define])
     220
     221AC_DEFUN([AM_INIT_AUTOMAKE],
     222[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
     223AC_REQUIRE([AC_PROG_INSTALL])
     224PACKAGE=[$1]
     225AC_SUBST(PACKAGE)
     226VERSION=[$2]
     227AC_SUBST(VERSION)
     228dnl test to see if srcdir already configured
     229if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
     230  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
     231fi
     232ifelse([$3],,
     233AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
     234AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
     235AC_REQUIRE([AM_SANITY_CHECK])
     236AC_REQUIRE([AC_ARG_PROGRAM])
     237dnl FIXME This is truly gross.
     238missing_dir=`cd $ac_aux_dir && pwd`
     239AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
     240AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
     241AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
     242AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
     243AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
     244AC_REQUIRE([AC_PROG_MAKE_SET])])
     245
     246# Copyright 2002  Free Software Foundation, Inc.
     247
     248# This program is free software; you can redistribute it and/or modify
     249# it under the terms of the GNU General Public License as published by
     250# the Free Software Foundation; either version 2, or (at your option)
     251# any later version.
     252
     253# This program is distributed in the hope that it will be useful,
     254# but WITHOUT ANY WARRANTY; without even the implied warranty of
     255# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     256# GNU General Public License for more details.
     257
     258# You should have received a copy of the GNU General Public License
     259# along with this program; if not, write to the Free Software
     260# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     261
     262# AM_AUTOMAKE_VERSION(VERSION)
     263# ----------------------------
     264# Automake X.Y traces this macro to ensure aclocal.m4 has been
     265# generated from the m4 files accompanying Automake X.Y.
     266AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
     267
     268# AM_SET_CURRENT_AUTOMAKE_VERSION
     269# -------------------------------
     270# Call AM_AUTOMAKE_VERSION so it can be traced.
     271# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
     272AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
     273         [AM_AUTOMAKE_VERSION([1.4-p6])])
     274
     275#
     276# Check to make sure that the build environment is sane.
     277#
     278
     279AC_DEFUN([AM_SANITY_CHECK],
     280[AC_MSG_CHECKING([whether build environment is sane])
     281# Just in case
     282sleep 1
     283echo timestamp > conftestfile
     284# Do `set' in a subshell so we don't clobber the current shell's
     285# arguments.  Must try -L first in case configure is actually a
     286# symlink; some systems play weird games with the mod time of symlinks
     287# (eg FreeBSD returns the mod time of the symlink's containing
     288# directory).
     289if (
     290   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
     291   if test "[$]*" = "X"; then
     292      # -L didn't work.
     293      set X `ls -t $srcdir/configure conftestfile`
     294   fi
     295   if test "[$]*" != "X $srcdir/configure conftestfile" \
     296      && test "[$]*" != "X conftestfile $srcdir/configure"; then
     297
     298      # If neither matched, then we have a broken ls.  This can happen
     299      # if, for instance, CONFIG_SHELL is bash and it inherits a
     300      # broken ls alias from the environment.  This has actually
     301      # happened.  Such a system could not be considered "sane".
     302      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
     303alias in your environment])
     304   fi
     305
     306   test "[$]2" = conftestfile
     307   )
     308then
     309   # Ok.
     310   :
     311else
     312   AC_MSG_ERROR([newly created file is older than distributed files!
     313Check your system clock])
     314fi
     315rm -f conftest*
     316AC_MSG_RESULT(yes)])
     317
     318dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
     319dnl The program must properly implement --version.
     320AC_DEFUN([AM_MISSING_PROG],
     321[AC_MSG_CHECKING(for working $2)
     322# Run test in a subshell; some versions of sh will print an error if
     323# an executable is not found, even if stderr is redirected.
     324# Redirect stdin to placate older versions of autoconf.  Sigh.
     325if ($2 --version) < /dev/null > /dev/null 2>&1; then
     326   $1=$2
     327   AC_MSG_RESULT(found)
     328else
     329   $1="$3/missing $2"
     330   AC_MSG_RESULT(missing)
     331fi
     332AC_SUBST($1)])
     333
     334# Define a conditional.
     335
     336AC_DEFUN([AM_CONDITIONAL],
     337[AC_SUBST($1_TRUE)
     338AC_SUBST($1_FALSE)
     339if $2; then
     340  $1_TRUE=
     341  $1_FALSE='#'
     342else
     343  $1_TRUE='#'
     344  $1_FALSE=
     345fi])
     346
     347# Add --enable-maintainer-mode option to configure.
     348# From Jim Meyering
     349
     350# serial 1
     351
     352AC_DEFUN([AM_MAINTAINER_MODE],
     353[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
     354  dnl maintainer-mode is disabled by default
     355  AC_ARG_ENABLE(maintainer-mode,
     356[  --enable-maintainer-mode enable make rules and dependencies not useful
     357                          (and sometimes confusing) to the casual installer],
     358      USE_MAINTAINER_MODE=$enableval,
     359      USE_MAINTAINER_MODE=no)
     360  AC_MSG_RESULT($USE_MAINTAINER_MODE)
     361  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
     362  MAINT=$MAINTAINER_MODE_TRUE
     363  AC_SUBST(MAINT)dnl
     364]
     365)
     366
  • newlib/libc/sys/bfin/configure

    diff -urN newlib-1.14.0-orig/newlib/libc/sys/bfin/configure newlib-1.14.0/newlib/libc/sys/bfin/configure
    old new  
     1#! /bin/sh
     2
     3# Guess values for system-dependent variables and create Makefiles.
     4# Generated automatically using autoconf version 2.13
     5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
     6#
     7# This configure script is free software; the Free Software Foundation
     8# gives unlimited permission to copy, distribute and modify it.
     9
     10# Defaults:
     11ac_help=
     12ac_default_prefix=/usr/local
     13# Any additions from configure.in:
     14ac_help="$ac_help
     15  --enable-multilib         build many library versions (default)"
     16ac_help="$ac_help
     17  --enable-target-optspace  optimize for space"
     18ac_help="$ac_help
     19  --enable-malloc-debugging indicate malloc debugging requested"
     20ac_help="$ac_help
     21  --enable-newlib-multithread        enable support for multiple threads"
     22ac_help="$ac_help
     23  --enable-newlib-iconv     enable iconv library support"
     24ac_help="$ac_help
     25  --enable-newlib-elix-level         supply desired elix library level (1-4)"
     26ac_help="$ac_help
     27  --disable-newlib-io-float disable printf/scanf family float support"
     28ac_help="$ac_help
     29  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls"
     30ac_help="$ac_help
     31  --enable-maintainer-mode enable make rules and dependencies not useful
     32                          (and sometimes confusing) to the casual installer"
     33
     34# Initialize some variables set by options.
     35# The variables have the same names as the options, with
     36# dashes changed to underlines.
     37build=NONE
     38cache_file=./config.cache
     39exec_prefix=NONE
     40host=NONE
     41no_create=
     42nonopt=NONE
     43no_recursion=
     44prefix=NONE
     45program_prefix=NONE
     46program_suffix=NONE
     47program_transform_name=s,x,x,
     48silent=
     49site=
     50srcdir=
     51target=NONE
     52verbose=
     53x_includes=NONE
     54x_libraries=NONE
     55bindir='${exec_prefix}/bin'
     56sbindir='${exec_prefix}/sbin'
     57libexecdir='${exec_prefix}/libexec'
     58datadir='${prefix}/share'
     59sysconfdir='${prefix}/etc'
     60sharedstatedir='${prefix}/com'
     61localstatedir='${prefix}/var'
     62libdir='${exec_prefix}/lib'
     63includedir='${prefix}/include'
     64oldincludedir='/usr/include'
     65infodir='${prefix}/info'
     66mandir='${prefix}/man'
     67
     68# Initialize some other variables.
     69subdirs=
     70MFLAGS= MAKEFLAGS=
     71SHELL=${CONFIG_SHELL-/bin/sh}
     72# Maximum number of lines to put in a shell here document.
     73ac_max_here_lines=12
     74
     75ac_prev=
     76for ac_option
     77do
     78
     79  # If the previous option needs an argument, assign it.
     80  if test -n "$ac_prev"; then
     81    eval "$ac_prev=\$ac_option"
     82    ac_prev=
     83    continue
     84  fi
     85
     86  case "$ac_option" in
     87  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
     88  *) ac_optarg= ;;
     89  esac
     90
     91  # Accept the important Cygnus configure options, so we can diagnose typos.
     92
     93  case "$ac_option" in
     94
     95  -bindir | --bindir | --bindi | --bind | --bin | --bi)
     96    ac_prev=bindir ;;
     97  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
     98    bindir="$ac_optarg" ;;
     99
     100  -build | --build | --buil | --bui | --bu)
     101    ac_prev=build ;;
     102  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
     103    build="$ac_optarg" ;;
     104
     105  -cache-file | --cache-file | --cache-fil | --cache-fi \
     106  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
     107    ac_prev=cache_file ;;
     108  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
     109  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
     110    cache_file="$ac_optarg" ;;
     111
     112  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     113    ac_prev=datadir ;;
     114  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
     115  | --da=*)
     116    datadir="$ac_optarg" ;;
     117
     118  -disable-* | --disable-*)
     119    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     120    # Reject names that are not valid shell variable names.
     121    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
     122      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
     123    fi
     124    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
     125    eval "enable_${ac_feature}=no" ;;
     126
     127  -enable-* | --enable-*)
     128    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     129    # Reject names that are not valid shell variable names.
     130    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
     131      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
     132    fi
     133    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
     134    case "$ac_option" in
     135      *=*) ;;
     136      *) ac_optarg=yes ;;
     137    esac
     138    eval "enable_${ac_feature}='$ac_optarg'" ;;
     139
     140  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     141  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
     142  | --exec | --exe | --ex)
     143    ac_prev=exec_prefix ;;
     144  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
     145  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
     146  | --exec=* | --exe=* | --ex=*)
     147    exec_prefix="$ac_optarg" ;;
     148
     149  -gas | --gas | --ga | --g)
     150    # Obsolete; use --with-gas.
     151    with_gas=yes ;;
     152
     153  -help | --help | --hel | --he)
     154    # Omit some internal or obsolete options to make the list less imposing.
     155    # This message is too long to be a string in the A/UX 3.1 sh.
     156    cat << EOF
     157Usage: configure [options] [host]
     158Options: [defaults in brackets after descriptions]
     159Configuration:
     160  --cache-file=FILE       cache test results in FILE
     161  --help                  print this message
     162  --no-create             do not create output files
     163  --quiet, --silent       do not print \`checking...' messages
     164  --version               print the version of autoconf that created configure
     165Directory and file names:
     166  --prefix=PREFIX         install architecture-independent files in PREFIX
     167                          [$ac_default_prefix]
     168  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     169                          [same as prefix]
     170  --bindir=DIR            user executables in DIR [EPREFIX/bin]
     171  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
     172  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
     173  --datadir=DIR           read-only architecture-independent data in DIR
     174                          [PREFIX/share]
     175  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
     176  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
     177                          [PREFIX/com]
     178  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
     179  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
     180  --includedir=DIR        C header files in DIR [PREFIX/include]
     181  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
     182  --infodir=DIR           info documentation in DIR [PREFIX/info]
     183  --mandir=DIR            man documentation in DIR [PREFIX/man]
     184  --srcdir=DIR            find the sources in DIR [configure dir or ..]
     185  --program-prefix=PREFIX prepend PREFIX to installed program names
     186  --program-suffix=SUFFIX append SUFFIX to installed program names
     187  --program-transform-name=PROGRAM
     188                          run sed PROGRAM on installed program names
     189EOF
     190    cat << EOF
     191Host type:
     192  --build=BUILD           configure for building on BUILD [BUILD=HOST]
     193  --host=HOST             configure for HOST [guessed]
     194  --target=TARGET         configure for TARGET [TARGET=HOST]
     195Features and packages:
     196  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
     197  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
     198  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     199  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     200  --x-includes=DIR        X include files are in DIR
     201  --x-libraries=DIR       X library files are in DIR
     202EOF
     203    if test -n "$ac_help"; then
     204      echo "--enable and --with options recognized:$ac_help"
     205    fi
     206    exit 0 ;;
     207
     208  -host | --host | --hos | --ho)
     209    ac_prev=host ;;
     210  -host=* | --host=* | --hos=* | --ho=*)
     211    host="$ac_optarg" ;;
     212
     213  -includedir | --includedir | --includedi | --included | --include \
     214  | --includ | --inclu | --incl | --inc)
     215    ac_prev=includedir ;;
     216  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
     217  | --includ=* | --inclu=* | --incl=* | --inc=*)
     218    includedir="$ac_optarg" ;;
     219
     220  -infodir | --infodir | --infodi | --infod | --info | --inf)
     221    ac_prev=infodir ;;
     222  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
     223    infodir="$ac_optarg" ;;
     224
     225  -libdir | --libdir | --libdi | --libd)
     226    ac_prev=libdir ;;
     227  -libdir=* | --libdir=* | --libdi=* | --libd=*)
     228    libdir="$ac_optarg" ;;
     229
     230  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     231  | --libexe | --libex | --libe)
     232    ac_prev=libexecdir ;;
     233  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
     234  | --libexe=* | --libex=* | --libe=*)
     235    libexecdir="$ac_optarg" ;;
     236
     237  -localstatedir | --localstatedir | --localstatedi | --localstated \
     238  | --localstate | --localstat | --localsta | --localst \
     239  | --locals | --local | --loca | --loc | --lo)
     240    ac_prev=localstatedir ;;
     241  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
     242  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
     243  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
     244    localstatedir="$ac_optarg" ;;
     245
     246  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
     247    ac_prev=mandir ;;
     248  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
     249    mandir="$ac_optarg" ;;
     250
     251  -nfp | --nfp | --nf)
     252    # Obsolete; use --without-fp.
     253    with_fp=no ;;
     254
     255  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     256  | --no-cr | --no-c)
     257    no_create=yes ;;
     258
     259  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     260  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
     261    no_recursion=yes ;;
     262
     263  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
     264  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
     265  | --oldin | --oldi | --old | --ol | --o)
     266    ac_prev=oldincludedir ;;
     267  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
     268  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
     269  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
     270    oldincludedir="$ac_optarg" ;;
     271
     272  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
     273    ac_prev=prefix ;;
     274  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
     275    prefix="$ac_optarg" ;;
     276
     277  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     278  | --program-pre | --program-pr | --program-p)
     279    ac_prev=program_prefix ;;
     280  -program-prefix=* | --program-prefix=* | --program-prefi=* \
     281  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
     282    program_prefix="$ac_optarg" ;;
     283
     284  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     285  | --program-suf | --program-su | --program-s)
     286    ac_prev=program_suffix ;;
     287  -program-suffix=* | --program-suffix=* | --program-suffi=* \
     288  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
     289    program_suffix="$ac_optarg" ;;
     290
     291  -program-transform-name | --program-transform-name \
     292  | --program-transform-nam | --program-transform-na \
     293  | --program-transform-n | --program-transform- \
     294  | --program-transform | --program-transfor \
     295  | --program-transfo | --program-transf \
     296  | --program-trans | --program-tran \
     297  | --progr-tra | --program-tr | --program-t)
     298    ac_prev=program_transform_name ;;
     299  -program-transform-name=* | --program-transform-name=* \
     300  | --program-transform-nam=* | --program-transform-na=* \
     301  | --program-transform-n=* | --program-transform-=* \
     302  | --program-transform=* | --program-transfor=* \
     303  | --program-transfo=* | --program-transf=* \
     304  | --program-trans=* | --program-tran=* \
     305  | --progr-tra=* | --program-tr=* | --program-t=*)
     306    program_transform_name="$ac_optarg" ;;
     307
     308  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     309  | -silent | --silent | --silen | --sile | --sil)
     310    silent=yes ;;
     311
     312  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     313    ac_prev=sbindir ;;
     314  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
     315  | --sbi=* | --sb=*)
     316    sbindir="$ac_optarg" ;;
     317
     318  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     319  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
     320  | --sharedst | --shareds | --shared | --share | --shar \
     321  | --sha | --sh)
     322    ac_prev=sharedstatedir ;;
     323  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
     324  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
     325  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
     326  | --sha=* | --sh=*)
     327    sharedstatedir="$ac_optarg" ;;
     328
     329  -site | --site | --sit)
     330    ac_prev=site ;;
     331  -site=* | --site=* | --sit=*)
     332    site="$ac_optarg" ;;
     333
     334  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     335    ac_prev=srcdir ;;
     336  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
     337    srcdir="$ac_optarg" ;;
     338
     339  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     340  | --syscon | --sysco | --sysc | --sys | --sy)
     341    ac_prev=sysconfdir ;;
     342  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
     343  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
     344    sysconfdir="$ac_optarg" ;;
     345
     346  -target | --target | --targe | --targ | --tar | --ta | --t)
     347    ac_prev=target ;;
     348  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
     349    target="$ac_optarg" ;;
     350
     351  -v | -verbose | --verbose | --verbos | --verbo | --verb)
     352    verbose=yes ;;
     353
     354  -version | --version | --versio | --versi | --vers)
     355    echo "configure generated by autoconf version 2.13"
     356    exit 0 ;;
     357
     358  -with-* | --with-*)
     359    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     360    # Reject names that are not valid shell variable names.
     361    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
     362      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
     363    fi
     364    ac_package=`echo $ac_package| sed 's/-/_/g'`
     365    case "$ac_option" in
     366      *=*) ;;
     367      *) ac_optarg=yes ;;
     368    esac
     369    eval "with_${ac_package}='$ac_optarg'" ;;
     370
     371  -without-* | --without-*)
     372    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     373    # Reject names that are not valid shell variable names.
     374    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
     375      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
     376    fi
     377    ac_package=`echo $ac_package| sed 's/-/_/g'`
     378    eval "with_${ac_package}=no" ;;
     379
     380  --x)
     381    # Obsolete; use --with-x.
     382    with_x=yes ;;
     383
     384  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
     385  | --x-incl | --x-inc | --x-in | --x-i)
     386    ac_prev=x_includes ;;
     387  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
     388  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
     389    x_includes="$ac_optarg" ;;
     390
     391  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     392  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
     393    ac_prev=x_libraries ;;
     394  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
     395  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
     396    x_libraries="$ac_optarg" ;;
     397
     398  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
     399    ;;
     400
     401  *)
     402    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
     403      echo "configure: warning: $ac_option: invalid host type" 1>&2
     404    fi
     405    if test "x$nonopt" != xNONE; then
     406      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
     407    fi
     408    nonopt="$ac_option"
     409    ;;
     410
     411  esac
     412done
     413
     414if test -n "$ac_prev"; then
     415  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
     416fi
     417
     418trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
     419
     420# File descriptor usage:
     421# 0 standard input
     422# 1 file creation
     423# 2 errors and warnings
     424# 3 some systems may open it to /dev/tty
     425# 4 used on the Kubota Titan
     426# 6 checking for... messages and results
     427# 5 compiler messages saved in config.log
     428if test "$silent" = yes; then
     429  exec 6>/dev/null
     430else
     431  exec 6>&1
     432fi
     433exec 5>./config.log
     434
     435echo "\
     436This file contains any messages produced by compilers while
     437running configure, to aid debugging if configure makes a mistake.
     438" 1>&5
     439
     440# Strip out --no-create and --no-recursion so they do not pile up.
     441# Also quote any args containing shell metacharacters.
     442ac_configure_args=
     443for ac_arg
     444do
     445  case "$ac_arg" in
     446  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     447  | --no-cr | --no-c) ;;
     448  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     449  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
     450  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
     451  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
     452  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
     453  esac
     454done
     455
     456# NLS nuisances.
     457# Only set these to C if already set.  These must not be set unconditionally
     458# because not all systems understand e.g. LANG=C (notably SCO).
     459# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
     460# Non-C LC_CTYPE values break the ctype check.
     461if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
     462if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
     463if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
     464if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
     465
     466# confdefs.h avoids OS command line length limits that DEFS can exceed.
     467rm -rf conftest* confdefs.h
     468# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     469echo > confdefs.h
     470
     471# A filename unique to this package, relative to the directory that
     472# configure is in, which we can look for to find out if srcdir is correct.
     473ac_unique_file=syscalls.c
     474
     475# Find the source files, if location was not specified.
     476if test -z "$srcdir"; then
     477  ac_srcdir_defaulted=yes
     478  # Try the directory containing this script, then its parent.
     479  ac_prog=$0
     480  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
     481  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
     482  srcdir=$ac_confdir
     483  if test ! -r $srcdir/$ac_unique_file; then
     484    srcdir=..
     485  fi
     486else
     487  ac_srcdir_defaulted=no
     488fi
     489if test ! -r $srcdir/$ac_unique_file; then
     490  if test "$ac_srcdir_defaulted" = yes; then
     491    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     492  else
     493    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     494  fi
     495fi
     496srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
     497
     498# Prefer explicitly selected file to automatically selected ones.
     499if test -z "$CONFIG_SITE"; then
     500  if test "x$prefix" != xNONE; then
     501    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
     502  else
     503    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
     504  fi
     505fi
     506for ac_site_file in $CONFIG_SITE; do
     507  if test -r "$ac_site_file"; then
     508    echo "loading site script $ac_site_file"
     509    . "$ac_site_file"
     510  fi
     511done
     512
     513if test -r "$cache_file"; then
     514  echo "loading cache $cache_file"
     515  . $cache_file
     516else
     517  echo "creating cache $cache_file"
     518  > $cache_file
     519fi
     520
     521ac_ext=c
     522# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     523ac_cpp='$CPP $CPPFLAGS'
     524ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     525ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     526cross_compiling=$ac_cv_prog_cc_cross
     527
     528ac_exeext=
     529ac_objext=o
     530if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
     531  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
     532  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
     533    ac_n= ac_c='
     534' ac_t='        '
     535  else
     536    ac_n=-n ac_c= ac_t=
     537  fi
     538else
     539  ac_n= ac_c='\c' ac_t=
     540fi
     541
     542
     543
     544ac_aux_dir=
     545for ac_dir in ../../../.. $srcdir/../../../..; do
     546  if test -f $ac_dir/install-sh; then
     547    ac_aux_dir=$ac_dir
     548    ac_install_sh="$ac_aux_dir/install-sh -c"
     549    break
     550  elif test -f $ac_dir/install.sh; then
     551    ac_aux_dir=$ac_dir
     552    ac_install_sh="$ac_aux_dir/install.sh -c"
     553    break
     554  fi
     555done
     556if test -z "$ac_aux_dir"; then
     557  { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
     558fi
     559ac_config_guess=$ac_aux_dir/config.guess
     560ac_config_sub=$ac_aux_dir/config.sub
     561ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     562
     563
     564am__api_version="1.4"
     565# Find a good install program.  We prefer a C program (faster),
     566# so one script is as good as another.  But avoid the broken or
     567# incompatible versions:
     568# SysV /etc/install, /usr/sbin/install
     569# SunOS /usr/etc/install
     570# IRIX /sbin/install
     571# AIX /bin/install
     572# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     573# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     574# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     575# ./install, which can be erroneously created by make from ./install.sh.
     576echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
     577echo "configure:578: checking for a BSD compatible install" >&5
     578if test -z "$INSTALL"; then
     579if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     580  echo $ac_n "(cached) $ac_c" 1>&6
     581else
     582    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
     583  for ac_dir in $PATH; do
     584    # Account for people who put trailing slashes in PATH elements.
     585    case "$ac_dir/" in
     586    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     587    *)
     588      # OSF1 and SCO ODT 3.0 have their own names for install.
     589      # Don't use installbsd from OSF since it installs stuff as root
     590      # by default.
     591      for ac_prog in ginstall scoinst install; do
     592        if test -f $ac_dir/$ac_prog; then
     593          if test $ac_prog = install &&
     594            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     595            # AIX install.  It has an incompatible calling convention.
     596            :
     597          else
     598            ac_cv_path_install="$ac_dir/$ac_prog -c"
     599            break 2
     600          fi
     601        fi
     602      done
     603      ;;
     604    esac
     605  done
     606  IFS="$ac_save_IFS"
     607
     608fi
     609  if test "${ac_cv_path_install+set}" = set; then
     610    INSTALL="$ac_cv_path_install"
     611  else
     612    # As a last resort, use the slow shell script.  We don't cache a
     613    # path for INSTALL within a source directory, because that will
     614    # break other packages using the cache if that directory is
     615    # removed, or if the path is relative.
     616    INSTALL="$ac_install_sh"
     617  fi
     618fi
     619echo "$ac_t""$INSTALL" 1>&6
     620
     621# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     622# It thinks the first close brace ends the variable substitution.
     623test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     624
     625test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     626
     627test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     628
     629echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
     630echo "configure:631: checking whether build environment is sane" >&5
     631# Just in case
     632sleep 1
     633echo timestamp > conftestfile
     634# Do `set' in a subshell so we don't clobber the current shell's
     635# arguments.  Must try -L first in case configure is actually a
     636# symlink; some systems play weird games with the mod time of symlinks
     637# (eg FreeBSD returns the mod time of the symlink's containing
     638# directory).
     639if (
     640   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
     641   if test "$*" = "X"; then
     642      # -L didn't work.
     643      set X `ls -t $srcdir/configure conftestfile`
     644   fi
     645   if test "$*" != "X $srcdir/configure conftestfile" \
     646      && test "$*" != "X conftestfile $srcdir/configure"; then
     647
     648      # If neither matched, then we have a broken ls.  This can happen
     649      # if, for instance, CONFIG_SHELL is bash and it inherits a
     650      # broken ls alias from the environment.  This has actually
     651      # happened.  Such a system could not be considered "sane".
     652      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
     653alias in your environment" 1>&2; exit 1; }
     654   fi
     655
     656   test "$2" = conftestfile
     657   )
     658then
     659   # Ok.
     660   :
     661else
     662   { echo "configure: error: newly created file is older than distributed files!
     663Check your system clock" 1>&2; exit 1; }
     664fi
     665rm -f conftest*
     666echo "$ac_t""yes" 1>&6
     667if test "$program_transform_name" = s,x,x,; then
     668  program_transform_name=
     669else
     670  # Double any \ or $.  echo might interpret backslashes.
     671  cat <<\EOF_SED > conftestsed
     672s,\\,\\\\,g; s,\$,$$,g
     673EOF_SED
     674  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
     675  rm -f conftestsed
     676fi
     677test "$program_prefix" != NONE &&
     678  program_transform_name="s,^,${program_prefix},; $program_transform_name"
     679# Use a double $ so make ignores it.
     680test "$program_suffix" != NONE &&
     681  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
     682
     683# sed with no file args requires a program.
     684test "$program_transform_name" = "" && program_transform_name="s,x,x,"
     685
     686echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
     687echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5
     688set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
     689if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
     690  echo $ac_n "(cached) $ac_c" 1>&6
     691else
     692  cat > conftestmake <<\EOF
     693all:
     694        @echo 'ac_maketemp="${MAKE}"'
     695EOF
     696# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     697eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
     698if test -n "$ac_maketemp"; then
     699  eval ac_cv_prog_make_${ac_make}_set=yes
     700else
     701  eval ac_cv_prog_make_${ac_make}_set=no
     702fi
     703rm -f conftestmake
     704fi
     705if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     706  echo "$ac_t""yes" 1>&6
     707  SET_MAKE=
     708else
     709  echo "$ac_t""no" 1>&6
     710  SET_MAKE="MAKE=${MAKE-make}"
     711fi
     712
     713if test $host != $build; then
     714  ac_tool_prefix=${host_alias}-
     715else
     716  ac_tool_prefix=
     717fi
     718
     719echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
     720echo "configure:721: checking for Cygwin environment" >&5
     721if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
     722  echo $ac_n "(cached) $ac_c" 1>&6
     723else
     724  cat > conftest.$ac_ext <<EOF
     725#line 726 "configure"
     726#include "confdefs.h"
     727
     728int main() {
     729
     730#ifndef __CYGWIN__
     731#define __CYGWIN__ __CYGWIN32__
     732#endif
     733return __CYGWIN__;
     734; return 0; }
     735EOF
     736if { (eval echo configure:737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     737  rm -rf conftest*
     738  ac_cv_cygwin=yes
     739else
     740  echo "configure: failed program was:" >&5
     741  cat conftest.$ac_ext >&5
     742  rm -rf conftest*
     743  ac_cv_cygwin=no
     744fi
     745rm -f conftest*
     746rm -f conftest*
     747fi
     748
     749echo "$ac_t""$ac_cv_cygwin" 1>&6
     750CYGWIN=
     751test "$ac_cv_cygwin" = yes && CYGWIN=yes
     752echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
     753echo "configure:754: checking for mingw32 environment" >&5
     754if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
     755  echo $ac_n "(cached) $ac_c" 1>&6
     756else
     757  cat > conftest.$ac_ext <<EOF
     758#line 759 "configure"
     759#include "confdefs.h"
     760
     761int main() {
     762return __MINGW32__;
     763; return 0; }
     764EOF
     765if { (eval echo configure:766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     766  rm -rf conftest*
     767  ac_cv_mingw32=yes
     768else
     769  echo "configure: failed program was:" >&5
     770  cat conftest.$ac_ext >&5
     771  rm -rf conftest*
     772  ac_cv_mingw32=no
     773fi
     774rm -f conftest*
     775rm -f conftest*
     776fi
     777
     778echo "$ac_t""$ac_cv_mingw32" 1>&6
     779MINGW32=
     780test "$ac_cv_mingw32" = yes && MINGW32=yes
     781
     782# Check whether --enable-multilib or --disable-multilib was given.
     783if test "${enable_multilib+set}" = set; then
     784  enableval="$enable_multilib"
     785  case "${enableval}" in
     786  yes) multilib=yes ;;
     787  no)  multilib=no ;;
     788  *)   { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
     789 esac
     790else
     791  multilib=yes
     792fi
     793
     794# Check whether --enable-target-optspace or --disable-target-optspace was given.
     795if test "${enable_target_optspace+set}" = set; then
     796  enableval="$enable_target_optspace"
     797  case "${enableval}" in
     798  yes) target_optspace=yes ;;
     799  no)  target_optspace=no ;;
     800  *)   { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
     801 esac
     802else
     803  target_optspace=
     804fi
     805
     806# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
     807if test "${enable_malloc_debugging+set}" = set; then
     808  enableval="$enable_malloc_debugging"
     809  case "${enableval}" in
     810  yes) malloc_debugging=yes ;;
     811  no)  malloc_debugging=no ;;
     812  *)   { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;;
     813 esac
     814else
     815  malloc_debugging=
     816fi
     817
     818# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
     819if test "${enable_newlib_multithread+set}" = set; then
     820  enableval="$enable_newlib_multithread"
     821  case "${enableval}" in
     822  yes) newlib_multithread=yes ;;
     823  no)  newlib_multithread=no ;;
     824  *)   { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;;
     825 esac
     826else
     827  newlib_multithread=yes
     828fi
     829
     830# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
     831if test "${enable_newlib_iconv+set}" = set; then
     832  enableval="$enable_newlib_iconv"
     833  if test "${newlib_iconv+set}" != set; then
     834   case "${enableval}" in
     835     yes) newlib_iconv=yes ;;
     836     no)  newlib_iconv=no ;;
     837     *)   { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;;
     838   esac
     839 fi
     840else
     841  newlib_iconv=${newlib_iconv}
     842fi
     843
     844# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
     845if test "${enable_newlib_elix_level+set}" = set; then
     846  enableval="$enable_newlib_elix_level"
     847  case "${enableval}" in
     848  0)   newlib_elix_level=0 ;;
     849  1)   newlib_elix_level=1 ;;
     850  2)   newlib_elix_level=2 ;;
     851  3)   newlib_elix_level=3 ;;
     852  4)   newlib_elix_level=4 ;;
     853  *)   { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;;
     854 esac
     855else
     856  newlib_elix_level=0
     857fi
     858
     859# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
     860if test "${enable_newlib_io_float+set}" = set; then
     861  enableval="$enable_newlib_io_float"
     862  case "${enableval}" in
     863  yes) newlib_io_float=yes ;;
     864  no)  newlib_io_float=no ;;
     865  *)   { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;;
     866 esac
     867else
     868  newlib_io_float=yes
     869fi
     870
     871# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
     872if test "${enable_newlib_supplied_syscalls+set}" = set; then
     873  enableval="$enable_newlib_supplied_syscalls"
     874  case "${enableval}" in
     875  yes) newlib_may_supply_syscalls=yes ;;
     876  no)  newlib_may_supply_syscalls=no ;;
     877  *)   { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;;
     878 esac
     879else
     880  newlib_may_supply_syscalls=yes
     881fi
     882
     883
     884
     885if test x${newlib_may_supply_syscalls} = xyes; then
     886  MAY_SUPPLY_SYSCALLS_TRUE=
     887  MAY_SUPPLY_SYSCALLS_FALSE='#'
     888else
     889  MAY_SUPPLY_SYSCALLS_TRUE='#'
     890  MAY_SUPPLY_SYSCALLS_FALSE=
     891fi
     892
     893
     894test -z "${with_target_subdir}" && with_target_subdir=.
     895
     896if test "${srcdir}" = "."; then
     897  if test "${with_target_subdir}" != "."; then
     898    newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
     899  else
     900    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
     901  fi
     902else
     903  newlib_basedir="${srcdir}/../../.."
     904fi
     905
     906
     907
     908# Do some error checking and defaulting for the host and target type.
     909# The inputs are:
     910#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
     911#
     912# The rules are:
     913# 1. You are not allowed to specify --host, --target, and nonopt at the
     914#    same time.
     915# 2. Host defaults to nonopt.
     916# 3. If nonopt is not specified, then host defaults to the current host,
     917#    as determined by config.guess.
     918# 4. Target and build default to nonopt.
     919# 5. If nonopt is not specified, then target and build default to host.
     920
     921# The aliases save the names the user supplied, while $host etc.
     922# will get canonicalized.
     923case $host---$target---$nonopt in
     924NONE---*---* | *---NONE---* | *---*---NONE) ;;
     925*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
     926esac
     927
     928
     929# Make sure we can run config.sub.
     930if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
     931else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
     932fi
     933
     934echo $ac_n "checking host system type""... $ac_c" 1>&6
     935echo "configure:936: checking host system type" >&5
     936
     937host_alias=$host
     938case "$host_alias" in
     939NONE)
     940  case $nonopt in
     941  NONE)
     942    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
     943    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
     944    fi ;;
     945  *) host_alias=$nonopt ;;
     946  esac ;;
     947esac
     948
     949host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
     950host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     951host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     952host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     953echo "$ac_t""$host" 1>&6
     954
     955echo $ac_n "checking target system type""... $ac_c" 1>&6
     956echo "configure:957: checking target system type" >&5
     957
     958target_alias=$target
     959case "$target_alias" in
     960NONE)
     961  case $nonopt in
     962  NONE) target_alias=$host_alias ;;
     963  *) target_alias=$nonopt ;;
     964  esac ;;
     965esac
     966
     967target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
     968target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     969target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     970target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     971echo "$ac_t""$target" 1>&6
     972
     973echo $ac_n "checking build system type""... $ac_c" 1>&6
     974echo "configure:975: checking build system type" >&5
     975
     976build_alias=$build
     977case "$build_alias" in
     978NONE)
     979  case $nonopt in
     980  NONE) build_alias=$host_alias ;;
     981  *) build_alias=$nonopt ;;
     982  esac ;;
     983esac
     984
     985build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
     986build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     987build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     988build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     989echo "$ac_t""$build" 1>&6
     990
     991test "$host_alias" != "$target_alias" &&
     992  test "$program_prefix$program_suffix$program_transform_name" = \
     993    NONENONEs,x,x, &&
     994  program_prefix=${target_alias}-
     995
     996
     997
     998PACKAGE=newlib
     999
     1000VERSION=1.12.0
     1001
     1002if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
     1003  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
     1004fi
     1005cat >> confdefs.h <<EOF
     1006#define PACKAGE "$PACKAGE"
     1007EOF
     1008
     1009cat >> confdefs.h <<EOF
     1010#define VERSION "$VERSION"
     1011EOF
     1012
     1013
     1014
     1015missing_dir=`cd $ac_aux_dir && pwd`
     1016echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
     1017echo "configure:1018: checking for working aclocal-${am__api_version}" >&5
     1018# Run test in a subshell; some versions of sh will print an error if
     1019# an executable is not found, even if stderr is redirected.
     1020# Redirect stdin to placate older versions of autoconf.  Sigh.
     1021if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
     1022   ACLOCAL=aclocal-${am__api_version}
     1023   echo "$ac_t""found" 1>&6
     1024else
     1025   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
     1026   echo "$ac_t""missing" 1>&6
     1027fi
     1028
     1029echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
     1030echo "configure:1031: checking for working autoconf" >&5
     1031# Run test in a subshell; some versions of sh will print an error if
     1032# an executable is not found, even if stderr is redirected.
     1033# Redirect stdin to placate older versions of autoconf.  Sigh.
     1034if (autoconf --version) < /dev/null > /dev/null 2>&1; then
     1035   AUTOCONF=autoconf
     1036   echo "$ac_t""found" 1>&6
     1037else
     1038   AUTOCONF="$missing_dir/missing autoconf"
     1039   echo "$ac_t""missing" 1>&6
     1040fi
     1041
     1042echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
     1043echo "configure:1044: checking for working automake-${am__api_version}" >&5
     1044# Run test in a subshell; some versions of sh will print an error if
     1045# an executable is not found, even if stderr is redirected.
     1046# Redirect stdin to placate older versions of autoconf.  Sigh.
     1047if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
     1048   AUTOMAKE=automake-${am__api_version}
     1049   echo "$ac_t""found" 1>&6
     1050else
     1051   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
     1052   echo "$ac_t""missing" 1>&6
     1053fi
     1054
     1055echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
     1056echo "configure:1057: checking for working autoheader" >&5
     1057# Run test in a subshell; some versions of sh will print an error if
     1058# an executable is not found, even if stderr is redirected.
     1059# Redirect stdin to placate older versions of autoconf.  Sigh.
     1060if (autoheader --version) < /dev/null > /dev/null 2>&1; then
     1061   AUTOHEADER=autoheader
     1062   echo "$ac_t""found" 1>&6
     1063else
     1064   AUTOHEADER="$missing_dir/missing autoheader"
     1065   echo "$ac_t""missing" 1>&6
     1066fi
     1067
     1068echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
     1069echo "configure:1070: checking for working makeinfo" >&5
     1070# Run test in a subshell; some versions of sh will print an error if
     1071# an executable is not found, even if stderr is redirected.
     1072# Redirect stdin to placate older versions of autoconf.  Sigh.
     1073if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
     1074   MAKEINFO=makeinfo
     1075   echo "$ac_t""found" 1>&6
     1076else
     1077   MAKEINFO="$missing_dir/missing makeinfo"
     1078   echo "$ac_t""missing" 1>&6
     1079fi
     1080
     1081
     1082
     1083# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
     1084# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
     1085# are probably using a cross compiler, which will not be able to fully
     1086# link an executable.  This should really be fixed in autoconf
     1087# itself.
     1088
     1089
     1090
     1091# Extract the first word of "gcc", so it can be a program name with args.
     1092set dummy gcc; ac_word=$2
     1093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1094echo "configure:1095: checking for $ac_word" >&5
     1095if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     1096  echo $ac_n "(cached) $ac_c" 1>&6
     1097else
     1098  if test -n "$CC"; then
     1099  ac_cv_prog_CC="$CC" # Let the user override the test.
     1100else
     1101  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1102  ac_dummy="$PATH"
     1103  for ac_dir in $ac_dummy; do
     1104    test -z "$ac_dir" && ac_dir=.
     1105    if test -f $ac_dir/$ac_word; then
     1106      ac_cv_prog_CC="gcc"
     1107      break
     1108    fi
     1109  done
     1110  IFS="$ac_save_ifs"
     1111fi
     1112fi
     1113CC="$ac_cv_prog_CC"
     1114if test -n "$CC"; then
     1115  echo "$ac_t""$CC" 1>&6
     1116else
     1117  echo "$ac_t""no" 1>&6
     1118fi
     1119
     1120if test -z "$CC"; then
     1121  # Extract the first word of "cc", so it can be a program name with args.
     1122set dummy cc; ac_word=$2
     1123echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1124echo "configure:1125: checking for $ac_word" >&5
     1125if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
     1126  echo $ac_n "(cached) $ac_c" 1>&6
     1127else
     1128  if test -n "$CC"; then
     1129  ac_cv_prog_CC="$CC" # Let the user override the test.
     1130else
     1131  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1132  ac_prog_rejected=no
     1133  ac_dummy="$PATH"
     1134  for ac_dir in $ac_dummy; do
     1135    test -z "$ac_dir" && ac_dir=.
     1136    if test -f $ac_dir/$ac_word; then
     1137      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     1138        ac_prog_rejected=yes
     1139        continue
     1140      fi
     1141      ac_cv_prog_CC="cc"
     1142      break
     1143    fi
     1144  done
     1145  IFS="$ac_save_ifs"
     1146if test $ac_prog_rejected = yes; then
     1147  # We found a bogon in the path, so make sure we never use it.
     1148  set dummy $ac_cv_prog_CC
     1149  shift
     1150  if test $# -gt 0; then
     1151    # We chose a different compiler from the bogus one.
     1152    # However, it has the same basename, so the bogon will be chosen
     1153    # first if we set CC to just the basename; use the full file name.
     1154    shift
     1155    set dummy "$ac_dir/$ac_word" "$@"
     1156    shift
     1157    ac_cv_prog_CC="$@"
     1158  fi
     1159fi
     1160fi
     1161fi
     1162CC="$ac_cv_prog_CC"
     1163if test -n "$CC"; then
     1164  echo "$ac_t""$CC" 1>&6
     1165else
     1166  echo "$ac_t""no" 1>&6
     1167fi
     1168
     1169  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
     1170fi
     1171
     1172echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
     1173echo "configure:1174: checking whether we are using GNU C" >&5
     1174if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
     1175  echo $ac_n "(cached) $ac_c" 1>&6
     1176else
     1177  cat > conftest.c <<EOF
     1178#ifdef __GNUC__
     1179  yes;
     1180#endif
     1181EOF
     1182if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     1183  ac_cv_prog_gcc=yes
     1184else
     1185  ac_cv_prog_gcc=no
     1186fi
     1187fi
     1188
     1189echo "$ac_t""$ac_cv_prog_gcc" 1>&6
     1190
     1191if test $ac_cv_prog_gcc = yes; then
     1192  GCC=yes
     1193  ac_test_CFLAGS="${CFLAGS+set}"
     1194  ac_save_CFLAGS="$CFLAGS"
     1195  CFLAGS=
     1196  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     1197echo "configure:1198: checking whether ${CC-cc} accepts -g" >&5
     1198if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
     1199  echo $ac_n "(cached) $ac_c" 1>&6
     1200else
     1201  echo 'void f(){}' > conftest.c
     1202if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1203  ac_cv_prog_cc_g=yes
     1204else
     1205  ac_cv_prog_cc_g=no
     1206fi
     1207rm -f conftest*
     1208
     1209fi
     1210
     1211echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     1212  if test "$ac_test_CFLAGS" = set; then
     1213    CFLAGS="$ac_save_CFLAGS"
     1214  elif test $ac_cv_prog_cc_g = yes; then
     1215    CFLAGS="-g -O2"
     1216  else
     1217    CFLAGS="-O2"
     1218  fi
     1219else
     1220  GCC=
     1221  test "${CFLAGS+set}" = set || CFLAGS="-g"
     1222fi
     1223
     1224
     1225# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
     1226set dummy ${ac_tool_prefix}as; ac_word=$2
     1227echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1228echo "configure:1229: checking for $ac_word" >&5
     1229if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
     1230  echo $ac_n "(cached) $ac_c" 1>&6
     1231else
     1232  if test -n "$AS"; then
     1233  ac_cv_prog_AS="$AS" # Let the user override the test.
     1234else
     1235  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1236  ac_dummy="$PATH"
     1237  for ac_dir in $ac_dummy; do
     1238    test -z "$ac_dir" && ac_dir=.
     1239    if test -f $ac_dir/$ac_word; then
     1240      ac_cv_prog_AS="${ac_tool_prefix}as"
     1241      break
     1242    fi
     1243  done
     1244  IFS="$ac_save_ifs"
     1245  test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
     1246fi
     1247fi
     1248AS="$ac_cv_prog_AS"
     1249if test -n "$AS"; then
     1250  echo "$ac_t""$AS" 1>&6
     1251else
     1252  echo "$ac_t""no" 1>&6
     1253fi
     1254
     1255
     1256
     1257# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
     1258set dummy ${ac_tool_prefix}ar; ac_word=$2
     1259echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1260echo "configure:1261: checking for $ac_word" >&5
     1261if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
     1262  echo $ac_n "(cached) $ac_c" 1>&6
     1263else
     1264  if test -n "$AR"; then
     1265  ac_cv_prog_AR="$AR" # Let the user override the test.
     1266else
     1267  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1268  ac_dummy="$PATH"
     1269  for ac_dir in $ac_dummy; do
     1270    test -z "$ac_dir" && ac_dir=.
     1271    if test -f $ac_dir/$ac_word; then
     1272      ac_cv_prog_AR="${ac_tool_prefix}ar"
     1273      break
     1274    fi
     1275  done
     1276  IFS="$ac_save_ifs"
     1277  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
     1278fi
     1279fi
     1280AR="$ac_cv_prog_AR"
     1281if test -n "$AR"; then
     1282  echo "$ac_t""$AR" 1>&6
     1283else
     1284  echo "$ac_t""no" 1>&6
     1285fi
     1286
     1287
     1288
     1289# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     1290set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     1291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1292echo "configure:1293: checking for $ac_word" >&5
     1293if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
     1294  echo $ac_n "(cached) $ac_c" 1>&6
     1295else
     1296  if test -n "$RANLIB"; then
     1297  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     1298else
     1299  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1300  ac_dummy="$PATH"
     1301  for ac_dir in $ac_dummy; do
     1302    test -z "$ac_dir" && ac_dir=.
     1303    if test -f $ac_dir/$ac_word; then
     1304      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     1305      break
     1306    fi
     1307  done
     1308  IFS="$ac_save_ifs"
     1309fi
     1310fi
     1311RANLIB="$ac_cv_prog_RANLIB"
     1312if test -n "$RANLIB"; then
     1313  echo "$ac_t""$RANLIB" 1>&6
     1314else
     1315  echo "$ac_t""no" 1>&6
     1316fi
     1317
     1318
     1319if test -z "$ac_cv_prog_RANLIB"; then
     1320if test -n "$ac_tool_prefix"; then
     1321  # Extract the first word of "ranlib", so it can be a program name with args.
     1322set dummy ranlib; ac_word=$2
     1323echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1324echo "configure:1325: checking for $ac_word" >&5
     1325if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
     1326  echo $ac_n "(cached) $ac_c" 1>&6
     1327else
     1328  if test -n "$RANLIB"; then
     1329  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
     1330else
     1331  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     1332  ac_dummy="$PATH"
     1333  for ac_dir in $ac_dummy; do
     1334    test -z "$ac_dir" && ac_dir=.
     1335    if test -f $ac_dir/$ac_word; then
     1336      ac_cv_prog_RANLIB="ranlib"
     1337      break
     1338    fi
     1339  done
     1340  IFS="$ac_save_ifs"
     1341  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
     1342fi
     1343fi
     1344RANLIB="$ac_cv_prog_RANLIB"
     1345if test -n "$RANLIB"; then
     1346  echo "$ac_t""$RANLIB" 1>&6
     1347else
     1348  echo "$ac_t""no" 1>&6
     1349fi
     1350
     1351else
     1352  RANLIB=":"
     1353fi
     1354fi
     1355
     1356
     1357# Find a good install program.  We prefer a C program (faster),
     1358# so one script is as good as another.  But avoid the broken or
     1359# incompatible versions:
     1360# SysV /etc/install, /usr/sbin/install
     1361# SunOS /usr/etc/install
     1362# IRIX /sbin/install
     1363# AIX /bin/install
     1364# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     1365# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     1366# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     1367# ./install, which can be erroneously created by make from ./install.sh.
     1368echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
     1369echo "configure:1370: checking for a BSD compatible install" >&5
     1370if test -z "$INSTALL"; then
     1371if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
     1372  echo $ac_n "(cached) $ac_c" 1>&6
     1373else
     1374    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
     1375  for ac_dir in $PATH; do
     1376    # Account for people who put trailing slashes in PATH elements.
     1377    case "$ac_dir/" in
     1378    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     1379    *)
     1380      # OSF1 and SCO ODT 3.0 have their own names for install.
     1381      # Don't use installbsd from OSF since it installs stuff as root
     1382      # by default.
     1383      for ac_prog in ginstall scoinst install; do
     1384        if test -f $ac_dir/$ac_prog; then
     1385          if test $ac_prog = install &&
     1386            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     1387            # AIX install.  It has an incompatible calling convention.
     1388            :
     1389          else
     1390            ac_cv_path_install="$ac_dir/$ac_prog -c"
     1391            break 2
     1392          fi
     1393        fi
     1394      done
     1395      ;;
     1396    esac
     1397  done
     1398  IFS="$ac_save_IFS"
     1399
     1400fi
     1401  if test "${ac_cv_path_install+set}" = set; then
     1402    INSTALL="$ac_cv_path_install"
     1403  else
     1404    # As a last resort, use the slow shell script.  We don't cache a
     1405    # path for INSTALL within a source directory, because that will
     1406    # break other packages using the cache if that directory is
     1407    # removed, or if the path is relative.
     1408    INSTALL="$ac_install_sh"
     1409  fi
     1410fi
     1411echo "$ac_t""$INSTALL" 1>&6
     1412
     1413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     1414# It thinks the first close brace ends the variable substitution.
     1415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     1416
     1417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
     1418
     1419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     1420
     1421
     1422echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
     1423echo "configure:1424: checking whether to enable maintainer-specific portions of Makefiles" >&5
     1424    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
     1425if test "${enable_maintainer_mode+set}" = set; then
     1426  enableval="$enable_maintainer_mode"
     1427  USE_MAINTAINER_MODE=$enableval
     1428else
     1429  USE_MAINTAINER_MODE=no
     1430fi
     1431
     1432  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
     1433 
     1434
     1435if test $USE_MAINTAINER_MODE = yes; then
     1436  MAINTAINER_MODE_TRUE=
     1437  MAINTAINER_MODE_FALSE='#'
     1438else
     1439  MAINTAINER_MODE_TRUE='#'
     1440  MAINTAINER_MODE_FALSE=
     1441fi
     1442  MAINT=$MAINTAINER_MODE_TRUE
     1443 
     1444
     1445
     1446# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
     1447# at least currently, we never actually build a program, so we never
     1448# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
     1449# fails, because we are probably configuring with a cross compiler
     1450# which can't create executables.  So we include AC_EXEEXT to keep
     1451# automake happy, but we don't execute it, since we don't care about
     1452# the result.
     1453if false; then
     1454 
     1455
     1456echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
     1457echo "configure:1458: checking for executable suffix" >&5
     1458if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
     1459  echo $ac_n "(cached) $ac_c" 1>&6
     1460else
     1461  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
     1462  ac_cv_exeext=.exe
     1463else
     1464  rm -f conftest*
     1465  echo 'int main () { return 0; }' > conftest.$ac_ext
     1466  ac_cv_exeext=
     1467  if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1468    for file in conftest.*; do
     1469      case $file in
     1470      *.c | *.o | *.obj) ;;
     1471      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
     1472      esac
     1473    done
     1474  else
     1475    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
     1476  fi
     1477  rm -f conftest*
     1478  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
     1479fi
     1480fi
     1481
     1482EXEEXT=""
     1483test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
     1484echo "$ac_t""${ac_cv_exeext}" 1>&6
     1485ac_exeext=$EXEEXT
     1486
     1487fi
     1488
     1489. ${newlib_basedir}/configure.host
     1490
     1491newlib_cflags="${newlib_cflags} -fno-builtin"
     1492
     1493NEWLIB_CFLAGS=${newlib_cflags}
     1494
     1495
     1496LDFLAGS=${ldflags}
     1497
     1498
     1499
     1500
     1501if test x${newlib_elix_level} = x0; then
     1502  ELIX_LEVEL_0_TRUE=
     1503  ELIX_LEVEL_0_FALSE='#'
     1504else
     1505  ELIX_LEVEL_0_TRUE='#'
     1506  ELIX_LEVEL_0_FALSE=
     1507fi
     1508
     1509
     1510if test x${newlib_elix_level} = x1; then
     1511  ELIX_LEVEL_1_TRUE=
     1512  ELIX_LEVEL_1_FALSE='#'
     1513else
     1514  ELIX_LEVEL_1_TRUE='#'
     1515  ELIX_LEVEL_1_FALSE=
     1516fi
     1517
     1518
     1519if test x${newlib_elix_level} = x2; then
     1520  ELIX_LEVEL_2_TRUE=
     1521  ELIX_LEVEL_2_FALSE='#'
     1522else
     1523  ELIX_LEVEL_2_TRUE='#'
     1524  ELIX_LEVEL_2_FALSE=
     1525fi
     1526
     1527
     1528if test x${newlib_elix_level} = x3; then
     1529  ELIX_LEVEL_3_TRUE=
     1530  ELIX_LEVEL_3_FALSE='#'
     1531else
     1532  ELIX_LEVEL_3_TRUE='#'
     1533  ELIX_LEVEL_3_FALSE=
     1534fi
     1535
     1536
     1537if test x${newlib_elix_level} = x4; then
     1538  ELIX_LEVEL_4_TRUE=
     1539  ELIX_LEVEL_4_FALSE='#'
     1540else
     1541  ELIX_LEVEL_4_TRUE='#'
     1542  ELIX_LEVEL_4_FALSE=
     1543fi
     1544
     1545
     1546
     1547if test x${use_libtool} = xyes; then
     1548  USE_LIBTOOL_TRUE=
     1549  USE_LIBTOOL_FALSE='#'
     1550else
     1551  USE_LIBTOOL_TRUE='#'
     1552  USE_LIBTOOL_FALSE=
     1553fi
     1554
     1555# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
     1556# use oext, which is set in configure.host based on the target platform.
     1557OBJEXT=${oext}
     1558
     1559
     1560
     1561
     1562
     1563
     1564
     1565
     1566
     1567
     1568trap '' 1 2 15
     1569cat > confcache <<\EOF
     1570# This file is a shell script that caches the results of configure
     1571# tests run on this system so they can be shared between configure
     1572# scripts and configure runs.  It is not useful on other systems.
     1573# If it contains results you don't want to keep, you may remove or edit it.
     1574#
     1575# By default, configure uses ./config.cache as the cache file,
     1576# creating it if it does not exist already.  You can give configure
     1577# the --cache-file=FILE option to use a different cache file; that is
     1578# what configure does when it calls configure scripts in
     1579# subdirectories, so they share the cache.
     1580# Giving --cache-file=/dev/null disables caching, for debugging configure.
     1581# config.status only pays attention to the cache file if you give it the
     1582# --recheck option to rerun configure.
     1583#
     1584EOF
     1585# The following way of writing the cache mishandles newlines in values,
     1586# but we know of no workaround that is simple, portable, and efficient.
     1587# So, don't put newlines in cache variables' values.
     1588# Ultrix sh set writes to stderr and can't be redirected directly,
     1589# and sets the high bit in the cache file unless we assign to the vars.
     1590(set) 2>&1 |
     1591  case `(ac_space=' '; set | grep ac_space) 2>&1` in
     1592  *ac_space=\ *)
     1593    # `set' does not quote correctly, so add quotes (double-quote substitution
     1594    # turns \\\\ into \\, and sed turns \\ into \).
     1595    sed -n \
     1596      -e "s/'/'\\\\''/g" \
     1597      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
     1598    ;;
     1599  *)
     1600    # `set' quotes correctly as required by POSIX, so do not add quotes.
     1601    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
     1602    ;;
     1603  esac >> confcache
     1604if cmp -s $cache_file confcache; then
     1605  :
     1606else
     1607  if test -w $cache_file; then
     1608    echo "updating cache $cache_file"
     1609    cat confcache > $cache_file
     1610  else
     1611    echo "not updating unwritable cache $cache_file"
     1612  fi
     1613fi
     1614rm -f confcache
     1615
     1616trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
     1617
     1618test "x$prefix" = xNONE && prefix=$ac_default_prefix
     1619# Let make expand exec_prefix.
     1620test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
     1621
     1622# Any assignment to VPATH causes Sun make to only execute
     1623# the first set of double-colon rules, so remove it if not needed.
     1624# If there is a colon in the path, we need to keep it.
     1625if test "x$srcdir" = x.; then
     1626  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
     1627fi
     1628
     1629trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     1630
     1631# Transform confdefs.h into DEFS.
     1632# Protect against shell expansion while executing Makefile rules.
     1633# Protect against Makefile macro expansion.
     1634cat > conftest.defs <<\EOF
     1635s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
     1636s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
     1637s%\[%\\&%g
     1638s%\]%\\&%g
     1639s%\$%$$%g
     1640EOF
     1641DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
     1642rm -f conftest.defs
     1643
     1644
     1645# Without the "./", some shells look in PATH for config.status.
     1646: ${CONFIG_STATUS=./config.status}
     1647
     1648echo creating $CONFIG_STATUS
     1649rm -f $CONFIG_STATUS
     1650cat > $CONFIG_STATUS <<EOF
     1651#! /bin/sh
     1652# Generated automatically by configure.
     1653# Run this file to recreate the current configuration.
     1654# This directory was configured as follows,
     1655# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     1656#
     1657# $0 $ac_configure_args
     1658#
     1659# Compiler output produced by configure, useful for debugging
     1660# configure, is in ./config.log if it exists.
     1661
     1662ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
     1663for ac_option
     1664do
     1665  case "\$ac_option" in
     1666  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
     1667    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
     1668    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
     1669  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
     1670    echo "$CONFIG_STATUS generated by autoconf version 2.13"
     1671    exit 0 ;;
     1672  -help | --help | --hel | --he | --h)
     1673    echo "\$ac_cs_usage"; exit 0 ;;
     1674  *) echo "\$ac_cs_usage"; exit 1 ;;
     1675  esac
     1676done
     1677
     1678ac_given_srcdir=$srcdir
     1679ac_given_INSTALL="$INSTALL"
     1680
     1681trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     1682EOF
     1683cat >> $CONFIG_STATUS <<EOF
     1684
     1685# Protect against being on the right side of a sed subst in config.status.
     1686sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
     1687 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
     1688$ac_vpsub
     1689$extrasub
     1690s%@SHELL@%$SHELL%g
     1691s%@CFLAGS@%$CFLAGS%g
     1692s%@CPPFLAGS@%$CPPFLAGS%g
     1693s%@CXXFLAGS@%$CXXFLAGS%g
     1694s%@FFLAGS@%$FFLAGS%g
     1695s%@DEFS@%$DEFS%g
     1696s%@LDFLAGS@%$LDFLAGS%g
     1697s%@LIBS@%$LIBS%g
     1698s%@exec_prefix@%$exec_prefix%g
     1699s%@prefix@%$prefix%g
     1700s%@program_transform_name@%$program_transform_name%g
     1701s%@bindir@%$bindir%g
     1702s%@sbindir@%$sbindir%g
     1703s%@libexecdir@%$libexecdir%g
     1704s%@datadir@%$datadir%g
     1705s%@sysconfdir@%$sysconfdir%g
     1706s%@sharedstatedir@%$sharedstatedir%g
     1707s%@localstatedir@%$localstatedir%g
     1708s%@libdir@%$libdir%g
     1709s%@includedir@%$includedir%g
     1710s%@oldincludedir@%$oldincludedir%g
     1711s%@infodir@%$infodir%g
     1712s%@mandir@%$mandir%g
     1713s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g
     1714s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g
     1715s%@newlib_basedir@%$newlib_basedir%g
     1716s%@host@%$host%g
     1717s%@host_alias@%$host_alias%g
     1718s%@host_cpu@%$host_cpu%g
     1719s%@host_vendor@%$host_vendor%g
     1720s%@host_os@%$host_os%g
     1721s%@target@%$target%g
     1722s%@target_alias@%$target_alias%g
     1723s%@target_cpu@%$target_cpu%g
     1724s%@target_vendor@%$target_vendor%g
     1725s%@target_os@%$target_os%g
     1726s%@build@%$build%g
     1727s%@build_alias@%$build_alias%g
     1728s%@build_cpu@%$build_cpu%g
     1729s%@build_vendor@%$build_vendor%g
     1730s%@build_os@%$build_os%g
     1731s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
     1732s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
     1733s%@INSTALL_DATA@%$INSTALL_DATA%g
     1734s%@PACKAGE@%$PACKAGE%g
     1735s%@VERSION@%$VERSION%g
     1736s%@ACLOCAL@%$ACLOCAL%g
     1737s%@AUTOCONF@%$AUTOCONF%g
     1738s%@AUTOMAKE@%$AUTOMAKE%g
     1739s%@AUTOHEADER@%$AUTOHEADER%g
     1740s%@MAKEINFO@%$MAKEINFO%g
     1741s%@SET_MAKE@%$SET_MAKE%g
     1742s%@CC@%$CC%g
     1743s%@AS@%$AS%g
     1744s%@AR@%$AR%g
     1745s%@RANLIB@%$RANLIB%g
     1746s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
     1747s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
     1748s%@MAINT@%$MAINT%g
     1749s%@EXEEXT@%$EXEEXT%g
     1750s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
     1751s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g
     1752s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g
     1753s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g
     1754s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g
     1755s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g
     1756s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g
     1757s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g
     1758s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g
     1759s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g
     1760s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g
     1761s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g
     1762s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g
     1763s%@OBJEXT@%$OBJEXT%g
     1764s%@oext@%$oext%g
     1765s%@aext@%$aext%g
     1766s%@libm_machine_dir@%$libm_machine_dir%g
     1767s%@machine_dir@%$machine_dir%g
     1768s%@sys_dir@%$sys_dir%g
     1769
     1770CEOF
     1771EOF
     1772
     1773cat >> $CONFIG_STATUS <<\EOF
     1774
     1775# Split the substitutions into bite-sized pieces for seds with
     1776# small command number limits, like on Digital OSF/1 and HP-UX.
     1777ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
     1778ac_file=1 # Number of current file.
     1779ac_beg=1 # First line for current file.
     1780ac_end=$ac_max_sed_cmds # Line after last line for current file.
     1781ac_more_lines=:
     1782ac_sed_cmds=""
     1783while $ac_more_lines; do
     1784  if test $ac_beg -gt 1; then
     1785    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
     1786  else
     1787    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
     1788  fi
     1789  if test ! -s conftest.s$ac_file; then
     1790    ac_more_lines=false
     1791    rm -f conftest.s$ac_file
     1792  else
     1793    if test -z "$ac_sed_cmds"; then
     1794      ac_sed_cmds="sed -f conftest.s$ac_file"
     1795    else
     1796      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
     1797    fi
     1798    ac_file=`expr $ac_file + 1`
     1799    ac_beg=$ac_end
     1800    ac_end=`expr $ac_end + $ac_max_sed_cmds`
     1801  fi
     1802done
     1803if test -z "$ac_sed_cmds"; then
     1804  ac_sed_cmds=cat
     1805fi
     1806EOF
     1807
     1808cat >> $CONFIG_STATUS <<EOF
     1809
     1810CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
     1811EOF
     1812cat >> $CONFIG_STATUS <<\EOF
     1813for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
     1814  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     1815  case "$ac_file" in
     1816  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
     1817       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
     1818  *) ac_file_in="${ac_file}.in" ;;
     1819  esac
     1820
     1821  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
     1822
     1823  # Remove last slash and all that follows it.  Not all systems have dirname.
     1824  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     1825  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     1826    # The file is in a subdirectory.
     1827    test ! -d "$ac_dir" && mkdir "$ac_dir"
     1828    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
     1829    # A "../" for each directory in $ac_dir_suffix.
     1830    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
     1831  else
     1832    ac_dir_suffix= ac_dots=
     1833  fi
     1834
     1835  case "$ac_given_srcdir" in
     1836  .)  srcdir=.
     1837      if test -z "$ac_dots"; then top_srcdir=.
     1838      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
     1839  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     1840  *) # Relative path.
     1841    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
     1842    top_srcdir="$ac_dots$ac_given_srcdir" ;;
     1843  esac
     1844
     1845  case "$ac_given_INSTALL" in
     1846  [/$]*) INSTALL="$ac_given_INSTALL" ;;
     1847  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     1848  esac
     1849
     1850  echo creating "$ac_file"
     1851  rm -f "$ac_file"
     1852  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
     1853  case "$ac_file" in
     1854  *Makefile*) ac_comsub="1i\\
     1855# $configure_input" ;;
     1856  *) ac_comsub= ;;
     1857  esac
     1858
     1859  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     1860  sed -e "$ac_comsub
     1861s%@configure_input@%$configure_input%g
     1862s%@srcdir@%$srcdir%g
     1863s%@top_srcdir@%$top_srcdir%g
     1864s%@INSTALL@%$INSTALL%g
     1865" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
     1866fi; done
     1867rm -f conftest.s*
     1868
     1869EOF
     1870cat >> $CONFIG_STATUS <<EOF
     1871
     1872EOF
     1873cat >> $CONFIG_STATUS <<\EOF
     1874
     1875exit 0
     1876EOF
     1877chmod +x $CONFIG_STATUS
     1878rm -fr confdefs* $ac_clean_files
     1879test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
     1880
  • newlib/libc/sys/bfin/configure.in

    diff -urN newlib-1.14.0-orig/newlib/libc/sys/bfin/configure.in newlib-1.14.0/newlib/libc/sys/bfin/configure.in
    old new  
     1dnl This is the newlib/libc/sys/bfin configure.in file.
     2dnl Process this file with autoconf to produce a configure script.
     3
     4AC_PREREQ(2.5)
     5AC_INIT(syscalls.c)
     6
     7dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
     8AC_CONFIG_AUX_DIR(../../../..)
     9
     10NEWLIB_CONFIGURE(../../..)
     11
     12AC_OUTPUT(Makefile)
  • newlib/libc/sys/bfin/crt0.S

    diff -urN newlib-1.14.0-orig/newlib/libc/sys/bfin/crt0.S newlib-1.14.0/newlib/libc/sys/bfin/crt0.S
    old new  
     1        .text
     2        .align  2
     3
     4        .global __start
     5__start:
     6
     7        /* Start by setting up a stack */
     8        /* Zero the memory in the .bss section.  */
     9
     10        p0.l = __edata;
     11        p0.h = __edata;
     12        p1.l = __end;
     13        p1.h = __end;
     14        p1 -= p0;
     15        r0 = 0;
     16        lsetup (L$L$clear_bss, L$L$clear_bss) lc0 = p1;
     17L$L$clear_bss:
     18        B [p0++] = r0;
     19
     20#ifdef __BFIN_FDPIC__
     21        /* Set up GOT pointer.  */
     22        P0.L = __ROFIXUP_END__;
     23        P0.H = __ROFIXUP_END__;
     24        P4 = [P0 - 4];
     25#endif
     26
     27        /* Need to set up standard file handles */
     28        /*  Parse string at r1 */
     29
     30        p0.l = __init;
     31        p0.h = __init;
     32        P3 = P4;
     33        call    (p0)
     34
     35        p0.l = _atexit;
     36        p0.h = _atexit;
     37#ifdef __BFIN_FDPIC__
     38        r0 = [P4 + __fini@FUNCDESC_GOT17M4]  ;
     39        P3 = P4;
     40#else
     41        r0.l = __fini;
     42        r0.h = __fini;
     43#endif
     44        call    (p0)
     45
     46        p0.l = _initialise_monitor_handles;
     47        p0.h = _initialise_monitor_handles;
     48        P3 = P4;
     49        call    (p0)
     50
     51        p0.l = ___setup_argv_and_call_main;
     52        p0.h = ___setup_argv_and_call_main;
     53        P3 = P4;
     54        call    (p0)
     55
     56        p0.l = _exit;
     57        p0.h = _exit;
     58        P3 = P4;
     59        jump    (p0)            /* Should not return.  */
     60
     61        .data
     62/*  Data returned by monitor SWI.  */
     63.global __stack_base__
     64HeapBase:       .dd     0
     65HeapLimit:      .dd     0
     66__stack_base__: .dd     0
     67StackLimit:     .dd     0
     68CommandLine:    .space  256,0   /*  Maximum length of 255 chars handled.  */
  • newlib/libc/sys/bfin/libcfunc.c

    diff -urN newlib-1.14.0-orig/newlib/libc/sys/bfin/libcfunc.c newlib-1.14.0/newlib/libc/sys/bfin/libcfunc.c
    old new  
     1/* Support files for GNU libc.  Files in the C namespace go here.
     2   Files in the system namespace (ie those that start with an underscore)
     3   go in syscalls.c.
     4   
     5   Note: These functions are in a seperate file so that OS providers can
     6   overrride the system call stubs (defined in syscalls.c) without having
     7   to provide libc funcitons as well.  */
     8
     9void
     10abort (void)
     11{
     12 asm ("" :: "i" (0));
     13}
     14
     15void
     16alarm (void)
     17{
     18}
  • newlib/libc/sys/bfin/Makefile.am

    diff -urN newlib-1.14.0-orig/newlib/libc/sys/bfin/Makefile.am newlib-1.14.0/newlib/libc/sys/bfin/Makefile.am
    old new  
     1## Process this file with automake to generate Makefile.in
     2
     3AUTOMAKE_OPTIONS = cygnus
     4
     5INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
     6
     7noinst_LIBRARIES = lib.a
     8
     9lib_a_SOURCES = libcfunc.c syscalls.c
     10
     11all: crt0.o
     12
     13ACLOCAL_AMFLAGS = -I ../../..
     14CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
  • newlib/libc/sys/bfin/Makefile.in

    diff -urN newlib-1.14.0-orig/newlib/libc/sys/bfin/Makefile.in newlib-1.14.0/newlib/libc/sys/bfin/Makefile.in
    old new  
     1# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
     2
     3# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
     4# This Makefile.in is free software; the Free Software Foundation
     5# gives unlimited permission to copy and/or distribute it,
     6# with or without modifications, as long as this notice is preserved.
     7
     8# This program is distributed in the hope that it will be useful,
     9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
     10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     11# PARTICULAR PURPOSE.
     12
     13
     14SHELL = @SHELL@
     15
     16srcdir = @srcdir@
     17top_srcdir = @top_srcdir@
     18VPATH = @srcdir@
     19prefix = @prefix@
     20exec_prefix = @exec_prefix@
     21
     22bindir = @bindir@
     23sbindir = @sbindir@
     24libexecdir = @libexecdir@
     25datadir = @datadir@
     26sysconfdir = @sysconfdir@
     27sharedstatedir = @sharedstatedir@
     28localstatedir = @localstatedir@
     29libdir = @libdir@
     30infodir = @infodir@
     31mandir = @mandir@
     32includedir = @includedir@
     33oldincludedir = /usr/include
     34
     35DESTDIR =
     36
     37pkgdatadir = $(datadir)/@PACKAGE@
     38pkglibdir = $(libdir)/@PACKAGE@
     39pkgincludedir = $(includedir)/@PACKAGE@
     40
     41top_builddir = .
     42
     43ACLOCAL = @ACLOCAL@
     44AUTOCONF = @AUTOCONF@
     45AUTOMAKE = @AUTOMAKE@
     46AUTOHEADER = @AUTOHEADER@
     47
     48INSTALL = @INSTALL@
     49INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     50INSTALL_DATA = @INSTALL_DATA@
     51INSTALL_SCRIPT = @INSTALL_SCRIPT@
     52transform = @program_transform_name@
     53
     54NORMAL_INSTALL = :
     55PRE_INSTALL = :
     56POST_INSTALL = :
     57NORMAL_UNINSTALL = :
     58PRE_UNINSTALL = :
     59POST_UNINSTALL = :
     60build_alias = @build_alias@
     61build_triplet = @build@
     62host_alias = @host_alias@
     63host_triplet = @host@
     64target_alias = @target_alias@
     65target_triplet = @target@
     66AR = @AR@
     67AS = @AS@
     68CC = @CC@
     69CPP = @CPP@
     70EXEEXT = @EXEEXT@
     71LDFLAGS = @LDFLAGS@
     72MAINT = @MAINT@
     73MAKEINFO = @MAKEINFO@
     74NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
     75OBJEXT = @OBJEXT@
     76PACKAGE = @PACKAGE@
     77RANLIB = @RANLIB@
     78VERSION = @VERSION@
     79aext = @aext@
     80libm_machine_dir = @libm_machine_dir@
     81machine_dir = @machine_dir@
     82newlib_basedir = @newlib_basedir@
     83oext = @oext@
     84sys_dir = @sys_dir@
     85
     86AUTOMAKE_OPTIONS = cygnus
     87
     88INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
     89
     90noinst_LIBRARIES = lib.a
     91
     92lib_a_SOURCES = libcfunc.c syscalls.c
     93
     94ACLOCAL_AMFLAGS = -I ../../..
     95CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
     96ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     97mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
     98CONFIG_CLEAN_FILES =
     99LIBRARIES =  $(noinst_LIBRARIES)
     100
     101
     102DEFS = @DEFS@ -I. -I$(srcdir)
     103CPPFLAGS = @CPPFLAGS@
     104LIBS = @LIBS@
     105lib_a_LIBADD =
     106lib_a_OBJECTS =  libcfunc.o syscalls.o
     107CFLAGS = @CFLAGS@
     108COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
     109CCLD = $(CC)
     110LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
     111DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
     112
     113
     114DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     115
     116TAR = tar
     117GZIP_ENV = --best
     118SOURCES = $(lib_a_SOURCES)
     119OBJECTS = $(lib_a_OBJECTS)
     120
     121all: all-redirect
     122.SUFFIXES:
     123.SUFFIXES: .S .c .o .s
     124$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
     125        cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
     126
     127Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
     128        cd $(top_builddir) \
     129          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     130
     131$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in  \
     132                ../../../acinclude.m4 ../../../aclocal.m4 \
     133                ../../../libtool.m4
     134        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     135
     136config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
     137        $(SHELL) ./config.status --recheck
     138$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     139        cd $(srcdir) && $(AUTOCONF)
     140
     141mostlyclean-noinstLIBRARIES:
     142
     143clean-noinstLIBRARIES:
     144        -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
     145
     146distclean-noinstLIBRARIES:
     147
     148maintainer-clean-noinstLIBRARIES:
     149
     150.c.o:
     151        $(COMPILE) -c $<
     152
     153.s.o:
     154        $(COMPILE) -c $<
     155
     156.S.o:
     157        $(COMPILE) -c $<
     158
     159mostlyclean-compile:
     160        -rm -f *.o core *.core
     161
     162clean-compile:
     163
     164distclean-compile:
     165        -rm -f *.tab.c
     166
     167maintainer-clean-compile:
     168
     169lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES)
     170        -rm -f lib.a
     171        $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
     172        $(RANLIB) lib.a
     173
     174tags: TAGS
     175
     176ID: $(HEADERS) $(SOURCES) $(LISP)
     177        list='$(SOURCES) $(HEADERS)'; \
     178        unique=`for i in $$list; do echo $$i; done | \
     179          awk '    { files[$$0] = 1; } \
     180               END { for (i in files) print i; }'`; \
     181        here=`pwd` && cd $(srcdir) \
     182          && mkid -f$$here/ID $$unique $(LISP)
     183
     184TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
     185        tags=; \
     186        here=`pwd`; \
     187        list='$(SOURCES) $(HEADERS)'; \
     188        unique=`for i in $$list; do echo $$i; done | \
     189          awk '    { files[$$0] = 1; } \
     190               END { for (i in files) print i; }'`; \
     191        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
     192          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
     193
     194mostlyclean-tags:
     195
     196clean-tags:
     197
     198distclean-tags:
     199        -rm -f TAGS ID
     200
     201maintainer-clean-tags:
     202
     203distdir = $(PACKAGE)-$(VERSION)
     204top_distdir = $(distdir)
     205
     206# This target untars the dist file and tries a VPATH configuration.  Then
     207# it guarantees that the distribution is self-contained by making another
     208# tarfile.
     209distcheck: dist
     210        -rm -rf $(distdir)
     211        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
     212        mkdir $(distdir)/=build
     213        mkdir $(distdir)/=inst
     214        dc_install_base=`cd $(distdir)/=inst && pwd`; \
     215        cd $(distdir)/=build \
     216          && ../configure --srcdir=.. --prefix=$$dc_install_base \
     217          && $(MAKE) $(AM_MAKEFLAGS) \
     218          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     219          && $(MAKE) $(AM_MAKEFLAGS) check \
     220          && $(MAKE) $(AM_MAKEFLAGS) install \
     221          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
     222          && $(MAKE) $(AM_MAKEFLAGS) dist
     223        -rm -rf $(distdir)
     224        @banner="$(distdir).tar.gz is ready for distribution"; \
     225        dashes=`echo "$$banner" | sed s/./=/g`; \
     226        echo "$$dashes"; \
     227        echo "$$banner"; \
     228        echo "$$dashes"
     229dist: distdir
     230        -chmod -R a+r $(distdir)
     231        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     232        -rm -rf $(distdir)
     233dist-all: distdir
     234        -chmod -R a+r $(distdir)
     235        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     236        -rm -rf $(distdir)
     237distdir: $(DISTFILES)
     238        -rm -rf $(distdir)
     239        mkdir $(distdir)
     240        -chmod 777 $(distdir)
     241        @for file in $(DISTFILES); do \
     242          if test -f $$file; then d=.; else d=$(srcdir); fi; \
     243          if test -d $$d/$$file; then \
     244            cp -pr $$d/$$file $(distdir)/$$file; \
     245          else \
     246            test -f $(distdir)/$$file \
     247            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     248            || cp -p $$d/$$file $(distdir)/$$file || :; \
     249          fi; \
     250        done
     251info-am:
     252info: info-am
     253dvi-am:
     254dvi: dvi-am
     255check-am:
     256check: check-am
     257installcheck-am:
     258installcheck: installcheck-am
     259install-info-am:
     260install-info: install-info-am
     261install-exec-am:
     262install-exec: install-exec-am
     263
     264install-data-am:
     265install-data: install-data-am
     266
     267install-am: all-am
     268        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     269install: install-am
     270uninstall-am:
     271uninstall: uninstall-am
     272all-am: Makefile $(LIBRARIES)
     273all-redirect: all-am
     274install-strip:
     275        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     276installdirs:
     277
     278
     279mostlyclean-generic:
     280
     281clean-generic:
     282
     283distclean-generic:
     284        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     285        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     286
     287maintainer-clean-generic:
     288mostlyclean-am:  mostlyclean-noinstLIBRARIES mostlyclean-compile \
     289                mostlyclean-tags mostlyclean-generic
     290
     291mostlyclean: mostlyclean-am
     292
     293clean-am:  clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
     294                mostlyclean-am
     295
     296clean: clean-am
     297
     298distclean-am:  distclean-noinstLIBRARIES distclean-compile \
     299                distclean-tags distclean-generic clean-am
     300
     301distclean: distclean-am
     302        -rm -f config.status
     303
     304maintainer-clean-am:  maintainer-clean-noinstLIBRARIES \
     305                maintainer-clean-compile maintainer-clean-tags \
     306                maintainer-clean-generic distclean-am
     307        @echo "This command is intended for maintainers to use;"
     308        @echo "it deletes files that may require special tools to rebuild."
     309
     310maintainer-clean: maintainer-clean-am
     311        -rm -f config.status
     312
     313.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
     314clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
     315mostlyclean-compile distclean-compile clean-compile \
     316maintainer-clean-compile tags mostlyclean-tags distclean-tags \
     317clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
     318check-am installcheck-am installcheck install-info-am install-info \
     319install-exec-am install-exec install-data-am install-data install-am \
     320install uninstall-am uninstall all-redirect all-am all installdirs \
     321mostlyclean-generic distclean-generic clean-generic \
     322maintainer-clean-generic clean mostlyclean distclean maintainer-clean
     323
     324
     325all: crt0.o
     326
     327# Tell versions [3.59,3.63) of GNU make to not export all variables.
     328# Otherwise a system limit (for SysV at least) may be exceeded.
     329.NOEXPORT:
  • newlib/libc/sys/bfin/swi.h

    diff -urN newlib-1.14.0-orig/newlib/libc/sys/bfin/swi.h newlib-1.14.0/newlib/libc/sys/bfin/swi.h
    old new  
     1/* SWI numbers for RDP (Demon) monitor.  */
     2#define SWI_WriteC                 0x0
     3#define SWI_Write0                 0x2
     4#define SWI_ReadC                  0x4
     5#define SWI_CLI                    0x5
     6#define SWI_GetEnv                 0x10
     7#define SWI_Exit                   0x11
     8#define SWI_EnterOS                0x16
     9
     10#define SWI_GetErrno               0x60
     11#define SWI_Clock                  0x61
     12#define SWI_Time                   0x63
     13#define SWI_Remove                 0x64
     14#define SWI_Rename                 0x65
     15#define SWI_Open                   0x66
     16
     17#define SWI_Close                  0x68
     18#define SWI_Write                  0x69
     19#define SWI_Read                   0x6a
     20#define SWI_Seek                   0x6b
     21#define SWI_Flen                   0x6c
     22
     23#define SWI_IsTTY                  0x6e
     24#define SWI_TmpNam                 0x6f
     25#define SWI_InstallHandler         0x70
     26#define SWI_GenerateError          0x71
     27
     28
     29/* Now the SWI numbers and reason codes for RDI (Angel) monitors.  */
     30#define AngelSWI_ARM                    0x123456
     31#ifdef __thumb__
     32#define AngelSWI                        0xAB
     33#else
     34#define AngelSWI                        AngelSWI_ARM
     35#endif
     36
     37/* The reason codes:  */
     38#define AngelSWI_Reason_Open            0x01
     39#define AngelSWI_Reason_Close           0x02
     40#define AngelSWI_Reason_WriteC          0x03
     41#define AngelSWI_Reason_Write0          0x04
     42#define AngelSWI_Reason_Write           0x05
     43#define AngelSWI_Reason_Read            0x06
     44#define AngelSWI_Reason_ReadC           0x07
     45#define AngelSWI_Reason_IsTTY           0x09
     46#define AngelSWI_Reason_Seek            0x0A
     47#define AngelSWI_Reason_FLen            0x0C
     48#define AngelSWI_Reason_TmpNam          0x0D
     49#define AngelSWI_Reason_Remove          0x0E
     50#define AngelSWI_Reason_Rename          0x0F
     51#define AngelSWI_Reason_Clock           0x10
     52#define AngelSWI_Reason_Time            0x11
     53#define AngelSWI_Reason_System          0x12
     54#define AngelSWI_Reason_Errno           0x13
     55#define AngelSWI_Reason_GetCmdLine      0x15
     56#define AngelSWI_Reason_HeapInfo        0x16
     57#define AngelSWI_Reason_EnterSVC        0x17
     58#define AngelSWI_Reason_ReportException 0x18
     59#define ADP_Stopped_ApplicationExit     ((2 << 16) + 38)
     60#define ADP_Stopped_RunTimeError        ((2 << 16) + 35)
  • newlib/libc/sys/bfin/sys/syscall.h

    diff -urN newlib-1.14.0-orig/newlib/libc/sys/bfin/sys/syscall.h newlib-1.14.0/newlib/libc/sys/bfin/sys/syscall.h
    old new  
     1#define SYS_exit        1
     2#define SYS_fork        2
     3#define SYS_read        3
     4#define SYS_write       4
     5#define SYS_open        5
     6#define SYS_close       6
     7#define SYS_wait4       7
     8#define SYS_creat       8
     9#define SYS_link        9
     10#define SYS_unlink      10
     11#define SYS_execv       11
     12#define SYS_chdir       12
     13
     14#define SYS_mknod       14
     15#define SYS_chmod       15
     16#define SYS_chown       16
     17
     18#define SYS_lseek       19
     19#define SYS_getpid      20
     20#define SYS_isatty      21
     21#define SYS_fstat       22
     22#define SYS_time        23
     23#define SYS_kill        24
     24
     25#define SYS_stat        38
     26
     27#define SYS_pipe        42
     28
     29#define SYS_execve      59
     30
     31#define SYS_truncate    129
     32#define SYS_ftruncate   130
     33
     34#define SYS_argc        172
     35#define SYS_argnlen     173
     36#define SYS_argn        174
     37
     38#define SYS_utime       201
     39#define SYS_wait        202
  • newlib/libc/sys/bfin/syscalls.c

    diff -urN newlib-1.14.0-orig/newlib/libc/sys/bfin/syscalls.c newlib-1.14.0/newlib/libc/sys/bfin/syscalls.c
    old new  
     1/* Support files for GNU libc.  Files in the system namespace go here.
     2   Files in the C namespace (ie those that do not start with an
     3   underscore) go in .c.  */
     4
     5#include <_ansi.h>
     6#include <sys/types.h>
     7#include <sys/stat.h>
     8#include <sys/fcntl.h>
     9#include <stdio.h>
     10#include <time.h>
     11#include <sys/time.h>
     12#include <sys/times.h>
     13#include "sys/syscall.h"
     14#include <errno.h>
     15#include <reent.h>
     16#include <unistd.h>
     17#include "swi.h"
     18
     19/* Forward prototypes.  */
     20int     _system     _PARAMS ((const char *));
     21int     _rename     _PARAMS ((const char *, const char *));
     22int     isatty          _PARAMS ((int));
     23clock_t _times          _PARAMS ((struct tms *));
     24int     _gettimeofday   _PARAMS ((struct timeval *, struct timezone *));
     25void    _raise          _PARAMS ((void));
     26int     _unlink         _PARAMS ((void));
     27int     _link           _PARAMS ((void));
     28int     _stat           _PARAMS ((const char *, struct stat *));
     29int     _fstat          _PARAMS ((int, struct stat *));
     30caddr_t _sbrk           _PARAMS ((int));
     31int     _getpid         _PARAMS ((int));
     32int     _kill           _PARAMS ((int, int));
     33void    _exit           _PARAMS ((int));
     34int     _close          _PARAMS ((int));
     35int     _swiclose       _PARAMS ((int));
     36int     _open           _PARAMS ((const char *, int, ...));
     37int     _swiopen        _PARAMS ((const char *, int));
     38int     _write          _PARAMS ((int, char *, int));
     39int     _swiwrite       _PARAMS ((int, char *, int));
     40int     _lseek          _PARAMS ((int, int, int));
     41int     _swilseek       _PARAMS ((int, int, int));
     42int     _read           _PARAMS ((int, char *, int));
     43int     _swiread        _PARAMS ((int, char *, int));
     44void    initialise_monitor_handles _PARAMS ((void));
     45
     46static int      wrap            _PARAMS ((int));
     47static int      error           _PARAMS ((int));
     48static int      get_errno       _PARAMS ((void));
     49static int      remap_handle    _PARAMS ((int));
     50static int      do_AngelSWI     _PARAMS ((int, void *));
     51static int      findslot        _PARAMS ((int));
     52
     53/* Register name faking - works in collusion with the linker.  */
     54register char * stack_ptr asm ("SP");
     55
     56
     57/* following is copied from libc/stdio/local.h to check std streams */
     58extern void   _EXFUN(__sinit,(struct _reent *));
     59#define CHECK_INIT(fp) \
     60  do                                    \
     61    {                                   \
     62      if ((fp)->_data == 0)             \
     63        (fp)->_data = _REENT;           \
     64      if (!(fp)->_data->__sdidinit)     \
     65        __sinit ((fp)->_data);          \
     66    }                                   \
     67  while (0)
     68
     69/* Adjust our internal handles to stay away from std* handles.  */
     70#define FILE_HANDLE_OFFSET (0x20)
     71
     72static int std_files_checked;
     73static int monitor_stdin;
     74static int monitor_stdout;
     75static int monitor_stderr;
     76
     77/* Struct used to keep track of the file position, just so we
     78   can implement fseek(fh,x,SEEK_CUR).  */
     79typedef struct
     80{
     81  int handle;
     82  int pos;
     83}
     84poslog;
     85
     86#define MAX_OPEN_FILES 20
     87static poslog openfiles [MAX_OPEN_FILES];
     88
     89static int
     90findslot (int fh)
     91{
     92  int i;
     93  for (i = 0; i < MAX_OPEN_FILES; i ++)
     94    if (openfiles[i].handle == fh)
     95      break;
     96  return i;
     97}
     98
     99static inline int
     100do_syscall (int reason, void * arg)
     101{
     102  int value = 1;
     103  asm volatile ("[--sp] = %1;[--sp] = %2;r1 = [sp++]; r0 = [sp++]; raise 0; %0 = r0"
     104                : "=r" (value) /* Outputs */
     105                : "r" (reason), "r" (arg) /* Inputs */
     106                : "R0", "R1", "memory", "cc");
     107  return value;
     108}
     109
     110/* Function to convert std(in|out|err) handles to internal versions.  */
     111static int
     112remap_handle (int fh)
     113{
     114  if (!std_files_checked)
     115    {
     116       CHECK_INIT(stdin);
     117       CHECK_INIT(stdout);
     118       CHECK_INIT(stderr);
     119       std_files_checked = 1;
     120    }
     121  if (fh == STDIN_FILENO)
     122    return monitor_stdin;
     123  if (fh == STDOUT_FILENO)
     124    return monitor_stdout;
     125  if (fh == STDERR_FILENO)
     126    return monitor_stderr;
     127
     128  return fh - FILE_HANDLE_OFFSET;
     129}
     130
     131void
     132initialise_monitor_handles (void)
     133{
     134  int i;
     135 
     136  int volatile block[3];
     137 
     138  block[0] = (int) ":tt";
     139  block[2] = 3;     /* length of filename */
     140  block[1] = 0;     /* mode "r" */
     141  monitor_stdin = do_syscall (SYS_open, (void *) block);
     142
     143  block[0] = (int) ":tt";
     144  block[2] = 3;     /* length of filename */
     145  block[1] = 4;     /* mode "w" */
     146  monitor_stdout = monitor_stderr = do_syscall (SYS_open, (void *) block);
     147
     148  for (i = 0; i < MAX_OPEN_FILES; i ++)
     149    openfiles[i].handle = -1;
     150
     151  openfiles[0].handle = monitor_stdin;
     152  openfiles[0].pos = 0;
     153  openfiles[1].handle = monitor_stdout;
     154  openfiles[1].pos = 0;
     155}
     156
     157static int
     158get_errno (void)
     159{
     160  return 0 /*do_syscall (SYS_errno, NULL) */;
     161}
     162
     163static int
     164error (int result)
     165{
     166  errno = get_errno ();
     167  return result;
     168}
     169
     170static int
     171wrap (int result)
     172{
     173  if (result == -1)
     174    return error (-1);
     175  return result;
     176}
     177
     178/* Returns # chars not! written.  */
     179int
     180_swiread (int file,
     181          char * ptr,
     182          int len)
     183{
     184  int fh = remap_handle (file);
     185  int block[3];
     186 
     187  block[0] = fh;
     188  block[1] = (int) ptr;
     189  block[2] = len;
     190 
     191  return do_syscall (SYS_read, block);
     192}
     193
     194int
     195_read (int file,
     196       char * ptr,
     197       int len)
     198{
     199  int slot = findslot (remap_handle (file));
     200  int x = _swiread (file, ptr, len);
     201
     202  if (x < 0)
     203    return error (-1);
     204
     205  if (slot != MAX_OPEN_FILES)
     206    openfiles [slot].pos += x;
     207
     208  /* x == len is not an error, at least if we want feof() to work.  */
     209  return x;
     210}
     211
     212int
     213_swilseek (int file,
     214           int ptr,
     215           int dir)
     216{
     217  int res;
     218  int fh = remap_handle (file);
     219  int slot = findslot (fh);
     220  int block[2];
     221
     222  if (dir == SEEK_CUR)
     223    {
     224      if (slot == MAX_OPEN_FILES)
     225        return -1;
     226      ptr = openfiles[slot].pos + ptr;
     227      dir = SEEK_SET;
     228    }
     229 
     230  if (dir == SEEK_END)
     231    {
     232      block[0] = fh;
     233      ptr += do_syscall (AngelSWI_Reason_FLen, block);
     234    }
     235 
     236  /* This code only does absolute seeks.  */
     237  block[0] = remap_handle (file);
     238  block[1] = ptr;
     239  res = do_syscall (AngelSWI_Reason_Seek, block);
     240
     241  if (slot != MAX_OPEN_FILES && res == 0)
     242    openfiles[slot].pos = ptr;
     243
     244  /* This is expected to return the position in the file.  */
     245  return res == 0 ? ptr : -1;
     246}
     247
     248int
     249_lseek (int file,
     250        int ptr,
     251        int dir)
     252{
     253  return wrap (_swilseek (file, ptr, dir));
     254}
     255
     256/* Returns #chars not! written.  */
     257int
     258_swiwrite (
     259           int    file,
     260           char * ptr,
     261           int    len)
     262{
     263  int fh = remap_handle (file);
     264  int block[3];
     265 
     266  block[0] = fh;
     267  block[1] = (int) ptr;
     268  block[2] = len;
     269 
     270  return do_syscall (SYS_write, block);
     271}
     272
     273int
     274_write (int    file,
     275        char * ptr,
     276        int    len)
     277{
     278  int slot = findslot (remap_handle (file));
     279  int x = _swiwrite (file, ptr,len);
     280
     281  if (x < 0)
     282    return error (-1);
     283 
     284  if (slot != MAX_OPEN_FILES)
     285    openfiles[slot].pos += x;
     286 
     287  return x;
     288}
     289
     290extern int strlen (const char *);
     291
     292int
     293_swiopen (const char * path,
     294          int          flags)
     295{
     296  int aflags = 0, fh;
     297  int block[3];
     298 
     299  int i = findslot (-1);
     300 
     301  if (i == MAX_OPEN_FILES)
     302    return -1;
     303
     304  block[0] = (int) path;
     305  block[1] = flags;
     306
     307  fh = do_syscall (SYS_open, block);
     308
     309  if (fh >= 0)
     310    {
     311      openfiles[i].handle = fh;
     312      openfiles[i].pos = 0;
     313    }
     314
     315  return fh >= 0 ? fh + FILE_HANDLE_OFFSET : error (fh);
     316}
     317
     318int
     319_open (const char * path,
     320       int          flags,
     321       ...)
     322{
     323  return wrap (_swiopen (path, flags));
     324}
     325
     326int
     327_swiclose (int file)
     328{
     329  int myhan = remap_handle (file);
     330  int slot = findslot (myhan);
     331 
     332  if (slot != MAX_OPEN_FILES)
     333    openfiles[slot].handle = -1;
     334
     335  return do_syscall (SYS_close, & myhan);
     336}
     337
     338int
     339_close (int file)
     340{
     341  return wrap (_swiclose (file));
     342}
     343
     344void
     345_exit (int n)
     346{
     347  /* FIXME: return code is thrown away.  */
     348 
     349  do_syscall (SYS_exit, (void *) &n);
     350}
     351
     352int
     353_kill (int n, int m)
     354{
     355  int block[2];
     356  block[0] = n;
     357  block[1] = m;
     358  return do_syscall (SYS_kill, block);
     359}
     360
     361int
     362_getpid (int n)
     363{
     364  return 1;
     365  n = n;
     366}
     367
     368caddr_t
     369_sbrk (int incr)
     370{
     371  extern char   end;            /* Defined by the linker.  */
     372  static char * heap_end;
     373  char *        prev_heap_end;
     374
     375  if (heap_end == NULL)
     376    heap_end = & end;
     377 
     378  prev_heap_end = heap_end;
     379 
     380  if (heap_end + incr > stack_ptr)
     381    {
     382      /* Some of the libstdc++-v3 tests rely upon detecting
     383         out of memory errors, so do not abort here.  */
     384#if 0
     385      extern void abort (void);
     386
     387      _write (1, "_sbrk: Heap and stack collision\n", 32);
     388     
     389      abort ();
     390#else
     391      errno = ENOMEM;
     392      return (caddr_t) -1;
     393#endif
     394    }
     395 
     396  heap_end += incr;
     397
     398  return (caddr_t) prev_heap_end;
     399}
     400
     401extern void memset (struct stat *, int, unsigned int);
     402
     403int
     404_fstat (int file, struct stat * st)
     405{
     406  memset (st, 0, sizeof (* st));
     407  st->st_mode = S_IFCHR;
     408  st->st_blksize = 1024;
     409  return 0;
     410  file = file;
     411}
     412
     413int _stat (const char *fname, struct stat *st)
     414{
     415  int file;
     416
     417  /* The best we can do is try to open the file readonly.  If it exists,
     418     then we can guess a few things about it.  */
     419  if ((file = _open (fname, O_RDONLY)) < 0)
     420    return -1;
     421
     422  memset (st, 0, sizeof (* st));
     423  st->st_mode = S_IFREG | S_IREAD;
     424  st->st_blksize = 1024;
     425  _swiclose (file); /* Not interested in the error.  */
     426  return 0;
     427}
     428
     429int
     430_link (void)
     431{
     432  return -1;
     433}
     434
     435int
     436_unlink (void)
     437{
     438  return -1;
     439}
     440
     441void
     442_raise (void)
     443{
     444  return;
     445}
     446
     447int
     448_gettimeofday (struct timeval * tp, struct timezone * tzp)
     449{
     450
     451  if (tp)
     452    {
     453    /* Ask the host for the seconds since the Unix epoch.  */
     454      tp->tv_sec = do_syscall (AngelSWI_Reason_Time,NULL);
     455      tp->tv_usec = 0;
     456    }
     457
     458  /* Return fixed data for the timezone.  */
     459  if (tzp)
     460    {
     461      tzp->tz_minuteswest = 0;
     462      tzp->tz_dsttime = 0;
     463    }
     464
     465  return 0;
     466}
     467
     468/* Return a clock that ticks at 100Hz.  */
     469clock_t
     470_times (struct tms * tp)
     471{
     472  clock_t timeval;
     473
     474  timeval = do_syscall (AngelSWI_Reason_Clock,NULL);
     475
     476  if (tp)
     477    {
     478      tp->tms_utime  = timeval; /* user time */
     479      tp->tms_stime  = 0;       /* system time */
     480      tp->tms_cutime = 0;       /* user time, children */
     481      tp->tms_cstime = 0;       /* system time, children */
     482    }
     483 
     484  return timeval;
     485};
     486
     487
     488int
     489isatty (int fd)
     490{
     491  return 1;
     492  fd = fd;
     493}
     494
     495int
     496_system (const char *s)
     497{
     498  if (s == NULL)
     499    return 0;
     500  errno = ENOSYS;
     501  return -1;
     502}
     503
     504int
     505_rename (const char * oldpath, const char * newpath)
     506{
     507  errno = ENOSYS;
     508  return -1;
     509}
     510
     511static inline int
     512__setup_argv_for_main (int argc)
     513{
     514  int block[2];
     515  char **argv;
     516  int i = argc;
     517
     518  argv = __builtin_alloca ((1 + argc) * sizeof (*argv));
     519
     520  argv[i] = NULL;
     521  while (i--) {
     522    block[0] = i;
     523    argv[i] = __builtin_alloca (1 + do_syscall (SYS_argnlen, (void *)block));
     524    block[1] = argv[i];
     525    do_syscall (SYS_argn, (void *)block);
     526  }
     527
     528  return main (argc, argv);
     529}
     530
     531int
     532__setup_argv_and_call_main ()
     533{
     534  int argc = do_syscall (SYS_argc, 0);
     535
     536  if (argc <= 0)
     537    return main (argc, NULL);
     538  else
     539    return __setup_argv_for_main (argc);
     540}
Note: See TracBrowser for help on using the repository browser.