Changeset 2328 in Sophya for trunk/ArchTOIPipe


Ignore:
Timestamp:
Feb 24, 2003, 10:18:01 AM (23 years ago)
Author:
aubourg
Message:

pour piolib

Location:
trunk/ArchTOIPipe
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/Makefile.in

    r2282 r2328  
    1313
    1414USE_SOPHYA=@use_sophya@
     15USE_PIOLIB=@use_piolib@
     16
    1517
    1618MACHEROS := $(shell echo `uname`)
     
    2830
    2931
    30 CPPFLAGS    :=  $(CPPFLAGS) @cfitsincdir@ -I. -I$(srcdir)/.. -I.. -DANSI
     32CPPFLAGS    :=  $(CPPFLAGS) @cfitsincdir@ @pioincdir@ -I. -I$(srcdir)/.. -I.. -DANSI
    3133
    3234LDLIBS=@cfitslibdir@ -lcfitsio $(LIBS)
     
    5456endif
    5557
     58ifeq ($(USE_PIOLIB),1)
     59  PIOFILES := piotoirdr.cc
     60else
     61  PIOFILES :=
     62endif
     63
    5664SRCFILES = toi.cc toimanager.cc toiprocessor.cc  \
    5765           fitstoirdr.cc fitstoiwtr.cc asciitoiwtr.cc \
    5866           toisegment.cc toiseqbuff.cc cgt.cc \
    59            fitsringwtr.cc
     67           fitsringwtr.cc $(PIOFILES)
    6068
    6169FILES=$(patsubst %.c,%.o,$(SRCFILES:.cc=.o))
  • trunk/ArchTOIPipe/Makefile.in

    r2240 r2328  
    1414
    1515USE_SOPHYA=@use_sophya@
     16USE_PIOLIB=@use_piolib@
    1617
    1718MACHEROS := $(shell echo `uname`)
     
    4748CPPFLAGS    :=  $(CPPFLAGS) @cfitsincdir@ -I. -DANSI
    4849
    49 LDLIBS=@cfitslibdir@ -lcfitsio $(LIBS)
     50ifeq ($USE_PIOLIB,1)
     51  PIOLIBS := @piolibdir@ -lpiolib
     52else
     53  PIOLIBS :=
     54endif
     55
     56LDLIBS=@cfitslibdir@ -lcfitsio $(PIOLIBS) $(LIBS)
    5057
    5158ifeq ($(MACHEROS),IRIX64)
  • trunk/ArchTOIPipe/TestPipes/Makefile.in

    r2227 r2328  
    1414
    1515USE_SOPHYA=@use_sophya@
     16USE_PIOLIB=@use_piolib@
     17
    1618
    1719MACHEROS := $(shell echo `uname`)
     
    4951
    5052
    51 CPPFLAGS    :=  $(CPPFLAGS) @cfitsincdir@ -I. -I.. -DANSI -I$(srcdir)/../Kernel -I$(srcdir)/../Processors -I$(srcdir)/../ProcWSophya -I$(srcdir)/..
     53CPPFLAGS    :=  $(CPPFLAGS) @cfitsincdir@ @pioincdir@ -I. -I.. -DANSI -I$(srcdir)/../Kernel -I$(srcdir)/../Processors -I$(srcdir)/../ProcWSophya -I$(srcdir)/..
     54
     55ifeq ($USE_PIOLIB,1)
     56  PIOLIBS := @piolibdir@ -lpiolib
     57else
     58  PIOLIBS :=
     59endif
     60
    5261
    5362ifeq ($(USE_SOPHYA),1)
    54 #  LDLIBS=-L.. -latsop -latkern -latproc @cfitslibdir@ -lcfitsio $(LIBS)
     63#  LDLIBS=-L.. -latsop -latkern -latproc @cfitslibdir@ -lcfitsio $(PIOLIBS) $(LIBS)
    5564  LDLIBS=-L.. -latsop -latkern -latproc $(LIBS)
    5665  LIBDEPS=../libatsop.a ../libatkern.a ../libatproc.a
    5766else
    58   LDLIBS=-L.. -latkern -latproc @cfitslibdir@ -lcfitsio $(LIBS)
     67  LDLIBS=-L.. -latkern -latproc @cfitslibdir@ -lcfitsio $(PIOLIBS) $(LIBS)
    5968  LIBDEPS=../libatkern.a ../libatproc.a
    6069endif
     
    6271ifeq ($(MACHEROS),IRIX64)
    6372 ifeq ($(CXX), g++)
    64    LDLIBS=@cfitslibdir@ -lcfitsio -L /usr/lib32/
     73   LDLIBS=@cfitslibdir@  -lcfitsio $(PIOLIBS) -L /usr/lib32/
    6574 endif
    6675 ifeq ($(CXX), CC)
  • trunk/ArchTOIPipe/TestPipes/quickmap.cc

    r1819 r2328  
    11// GPH 424.1   Planck HFI-L2 Simple Map Making
    22// Eric Aubourg     CEA/DAPNIA/SPP
    3 // $Id: quickmap.cc,v 1.3 2001-12-17 23:12:08 aubourg Exp $
     3// This version is able to produce local maps as well
     4// $Id: quickmap.cc,v 1.4 2003-02-24 09:18:01 aubourg Exp $
    45
    56#include <stdlib.h>
     
    78#include "toi.h"
    89#include "toiprocessor.h"
    9 #include "fitstoirdr.h"
    10 #include "fitstoiwtr.h"
     10#include "piotoirdr.h"
    1111#include "toimanager.h"
    1212#include "toisegment.h"
     
    3838    struct {
    3939      string fname;
     40      string flags;
    4041      string coord1;  // TOI name
    4142      string coord2;  // TOI name
     
    4445    struct {
    4546      string fname;
     47      string flags;
    4648      string toiname;
    4749    } signal;
     
    7173    cout << "  | pointing\n";
    7274    cout << "  | | fname       " << input.pointing.fname << "\n";
     75    cout << "  | | flags       " << input.pointing.flagfs << "\n";
    7376    cout << "  | | coord1      " << input.pointing.coord1 << "\n";
    7477    cout << "  | | coord2      " << input.pointing.coord2 << "\n";
     
    8487    cout << "  | signal\n";
    8588    cout << "  | | fname       " << input.signal.fname << "\n";
     89    cout << "  | | flags       " << input.signal.flags << "\n";
    8690    cout << "  | | toiname     " << input.signal.toiname << "\n";
    8791    cout << "  output\n";
     
    150154  return n != 0;
    151155}
     156
    152157
    153158void parsePrefs(string prefFile, Gph424_1_Prefs& prefs) {
     
    182187 
    183188  prefs.input.pointing.fname  = DOMGetString(doc, "/input/pointing/fname");
     189  if (DOMHasOption(doc, "/input/pointing/flags")) {
     190    prefs.input.pointing.flags=
     191      DOMGetString(doc, "/input/pointing/flags");
     192  }
    184193  prefs.input.pointing.coord1 = DOMGetString(doc, "/input/pointing/coord1","phi");
    185194  prefs.input.pointing.coord2 = DOMGetString(doc, "/input/pointing/coord2","theta");
     
    208217  prefs.input.signal.fname    = DOMGetString(doc, "/input/signal/fname");
    209218  prefs.input.signal.toiname  = DOMGetString(doc, "/input/signal/toiname");
    210 
     219  if (DOMHasOption(doc, "/input/signal/flags")) {
     220    prefs.input.signal.flags =
     221      DOMGetString(doc, "/input/signal/flags");
     222  }
    211223  prefs.output.fname          = DOMGetString(doc, "/output/fname");
    212224  prefs.output.wfname         = DOMGetString(doc, "/output/wfname");
     
    264276  TOIManager* mgr = TOIManager::getManager();
    265277
    266   // Two input files
    267 
    268   FITSTOIReader inPoint(prefs.input.pointing.fname);
    269   FITSTOIReader inSig  (prefs.input.signal.fname);
    270 
    271   inPoint.setImplicitSN();
    272   inSig.setImplicitSN();
     278  // INPUT TOIs
     279
     280  PIOTOIReader inPoint1(prefs.input.pointing.fname, prefs.input.pointing.coord1,
     281                        prefs.input.pointing.flags);
     282  PIOTOIReader inPoint2(prefs.input.pointing.fname, prefs.input.pointing.coord2,
     283                        prefs.input.pointing.flags);
     284  PIOTOIReader inSig   (prefs.input.signal.fname, prefs.input.signal.toiname,
     285                        prefs.input.signal.flags);
     286
    273287
    274288  // Prepare maps for output
     
    298312
    299313  TOISegmented * toicoord1in = new TOISegmented(prefs.input.pointing.coord1);
    300   inPoint.addOutput(prefs.input.pointing.coord1,toicoord1in);
     314  inPoint1.addOutput(prefs.input.pointing.coord1,toicoord1in);
    301315  toi2m.addInput("Coord1In",toicoord1in);
    302316
    303317  TOISegmented * toicoord2in = new TOISegmented(prefs.input.pointing.coord2);
    304   inPoint.addOutput(prefs.input.pointing.coord2,toicoord2in);
     318  inPoint2.addOutput(prefs.input.pointing.coord2,toicoord2in);
    305319  toi2m.addInput("Coord2In",toicoord2in);
    306320
     
    312326
    313327  if (prefs.snb >= 0 && prefs.sne >= 0) {
    314     mgr->setRequestedSample(prefs.snb, prefs.sne);
    315   }
    316 
    317   inPoint.start();
    318   inSig.start();
    319   toi2m.start();
    320   mgr->joinAll();
     328    toi2m.setRequestedSample(prefs.snb, prefs.sne);
     329  }
     330
     331  mgr->startAll();
     332  mgr->waitForAll();
    321333
    322334  // Save maps
     335
     336  // Huh ? Should we create a Map(group) ? Should we create a MapObject ?
     337  // Should we open ? Where do we define the size ? How does this work ??
     338
     339  PIOCreateMAP(prefs.output.fname,
     340               prefs.output.typcoord == TypCoordGal ? "GALACTIC" : "ECLIPTIC",
     341               "RING",
     342               prefs.output.healpix_opt.nlat);
     343
     344  PIOGroup* mapGroup = PIOOpenMAP(prefs.output.fname,
     345                                  "w");
     346
     347  PIOCreateMAPObject("MAP", "PIODOUBLE", mapGroup);
     348
     349  PIOWriteMAP(map->GetData(),
     350              "MAP",
     351              "PIODOUBLE",
     352              "",
     353              mapGroup);
     354
     355  PIOCreateMAPObject("WMAP", "PIODOUBLE", mapGroup);
     356
     357  PIOWriteMAP(wmap->GetData(),
     358              "WMAP",
     359              "PIODOUBLE",
     360              "",
     361              mapGroup);
     362
     363  PIOCloseMAP(mapGroup);
    323364
    324365  {
     
    329370      sfits << * (SphereHEALPix<r_8>*)map;
    330371    } else if (map->TypeOfMap() == "LOCAL") {
    331       sfits << * (LocalMap<r_8>*)map;
     372      cout << "error, local maps not yet in PIOLib" << endl;
    332373    } else {
    333374      cout << "error, unknown type " << map->TypeOfMap() << endl;
  • trunk/ArchTOIPipe/TestPipes/quickmap_p.cc

    r1820 r2328  
    22// Parallel version
    33// Eric Aubourg     CEA/DAPNIA/SPP
    4 // $Id: quickmap_p.cc,v 1.4 2001-12-17 23:33:46 aubourg Exp $
     4// $Id: quickmap_p.cc,v 1.5 2003-02-24 09:18:01 aubourg Exp $
    55
    66#include <stdlib.h>
     
    1313#include "toisegment.h"
    1414
     15
    1516#include "sambainit.h"
    1617#include "toi2map.h"
     
    3940    struct {
    4041      string fname;
     42      string flagfname;
     43      vector<FlagToiDef> flags;
    4144      string coord1;  // TOI name
    4245      string coord2;  // TOI name
     
    4548    struct {
    4649      string fname;
     50      string flagfname;
     51      vector<FlagToiDef> flags;
    4752      string toiname;
    4853    } signal;
     
    7277    cout << "  | pointing\n";
    7378    cout << "  | | fname       " << input.pointing.fname << "\n";
     79    cout << "  | | flagfname   " << input.pointing.flagfname << "\n";
     80    for (int i=0; i<input.pointing.flags.size(); i++) {
     81      cout << "  | | | flag      " << i << " : " << input.pointing.flags[i] << "\n";
     82    }
    7483    cout << "  | | coord1      " << input.pointing.coord1 << "\n";
    7584    cout << "  | | coord2      " << input.pointing.coord2 << "\n";
     
    8594    cout << "  | signal\n";
    8695    cout << "  | | fname       " << input.signal.fname << "\n";
     96    cout << "  | | flagfname   " << input.signal.flagfname << "\n";
     97    {for (int i=0; i<input.signal.flags.size(); i++) {
     98      cout << "  | | | flag      " << i << " : " << input.signal.flags[i] << "\n";
     99    }}
    87100    cout << "  | | toiname     " << input.signal.toiname << "\n";
    88101    cout << "  output\n";
     
    150163  DOM_Node n = DOMGetNode(doc, path);
    151164  return n != 0;
     165}
     166
     167void parseFlags(DOM_Node flagnode, vector<FlagToiDef>& flgs) {
     168  DOM_Element elt = (DOM_Element&) flagnode;
     169  DOM_NodeList l = elt.getElementsByTagName("flag");
     170  // prepare array
     171  flgs.clear();
     172  flgs.insert(flgs.begin(), l.getLength(), (FlagToiDef)0);
     173  for (int i = 0; i<l.getLength(); i++) {
     174    DOM_Node node = l.item(i);
     175    DOM_Element elt = (DOM_Element&) node;
     176    DOMString scol = elt.getAttribute("column");
     177    DOMString sval = elt.getAttribute("kind");
     178    int col = atoi(scol.transcode());
     179    int value = atoi(sval.transcode());
     180    flgs[col-1] = (FlagToiDef) value;
     181  }   
    152182}
    153183
     
    183213 
    184214  prefs.input.pointing.fname  = DOMGetString(doc, "/input/pointing/fname");
     215  if (DOMHasOption(doc, "/input/pointing/flags")) {
     216    prefs.input.pointing.flagfname =
     217      DOMGetString(doc, "/input/pointing/flags/fname");
     218    DOM_Node flagnode = DOMGetNode(doc, "/input/pointing/flags");
     219    parseFlags(flagnode, prefs.input.pointing.flags);
     220  }
    185221  prefs.input.pointing.coord1 = DOMGetString(doc, "/input/pointing/coord1","phi");
    186222  prefs.input.pointing.coord2 = DOMGetString(doc, "/input/pointing/coord2","theta");
     
    209245  prefs.input.signal.fname    = DOMGetString(doc, "/input/signal/fname");
    210246  prefs.input.signal.toiname  = DOMGetString(doc, "/input/signal/toiname");
    211 
     247  if (DOMHasOption(doc, "/input/signal/flags")) {
     248    prefs.input.signal.flagfname =
     249      DOMGetString(doc, "/input/signal/flags/fname");
     250    DOM_Node flagnode = DOMGetNode(doc, "/input/signal/flags");
     251    parseFlags(flagnode, prefs.input.signal.flags);
     252  }
    212253  prefs.output.fname          = DOMGetString(doc, "/output/fname");
    213254  prefs.output.wfname         = DOMGetString(doc, "/output/wfname");
     
    276317    inPoint[i]->setImplicitSN();
    277318    inSig[i]->setImplicitSN();
     319    if (prefs.input.pointing.flagfname != "") {
     320      inPoint[i]->setFlagFile(prefs.input.pointing.flagfname, prefs.input.pointing.flags);
     321    }
     322    if (prefs.input.signal.flagfname != "") {
     323      inSig[i]->setFlagFile(prefs.input.signal.flagfname, prefs.input.signal.flags);
     324    }
    278325  }
    279326
  • trunk/ArchTOIPipe/configure

    r1957 r2328  
    11#! /bin/sh
    2 
    32# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.12
    5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
     3# Generated by Autoconf 2.52.
    64#
     5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     6# Free Software Foundation, Inc.
    77# This configure script is free software; the Free Software Foundation
    88# gives unlimited permission to copy, distribute and modify it.
    99
    10 # Defaults:
    11 ac_help=
     10# Avoid depending upon Character Ranges.
     11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     14as_cr_digits='0123456789'
     15as_cr_alnum=$as_cr_Letters$as_cr_digits
     16
     17# Sed expression to map a string onto a valid variable name.
     18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
     19
     20# Sed expression to map a string onto a valid CPP name.
     21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
     22
     23# Be Bourne compatible
     24if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     25  emulate sh
     26  NULLCMD=:
     27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     28  set -o posix
     29fi
     30
     31# Name of the executable.
     32as_me=`echo "$0" |sed 's,.*[\\/],,'`
     33
     34if expr a : '\(a\)' >/dev/null 2>&1; then
     35  as_expr=expr
     36else
     37  as_expr=false
     38fi
     39
     40rm -f conf$$ conf$$.exe conf$$.file
     41echo >conf$$.file
     42if ln -s conf$$.file conf$$ 2>/dev/null; then
     43  # We could just check for DJGPP; but this test a) works b) is more generic
     44  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     45  if test -f conf$$.exe; then
     46    # Don't use ln at all; we don't have any links
     47    as_ln_s='cp -p'
     48  else
     49    as_ln_s='ln -s'
     50  fi
     51elif ln conf$$.file conf$$ 2>/dev/null; then
     52  as_ln_s=ln
     53else
     54  as_ln_s='cp -p'
     55fi
     56rm -f conf$$ conf$$.exe conf$$.file
     57
     58as_executable_p="test -f"
     59
     60# Support unset when possible.
     61if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     62  as_unset=unset
     63else
     64  as_unset=false
     65fi
     66
     67# NLS nuisances.
     68$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     69$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     70$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     71$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     72$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     73$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     74$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     75$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     76
     77# IFS
     78# We need space, tab and new line, in precisely that order.
     79as_nl='
     80'
     81IFS="   $as_nl"
     82
     83# CDPATH.
     84$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     85
     86# Name of the host.
     87# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     88# so uname gets run too.
     89ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     90
     91exec 6>&1
     92
     93#
     94# Initializations.
     95#
    1296ac_default_prefix=/usr/local
    13 # Any additions from configure.in:
    14 ac_help="$ac_help
    15   --with-sophya           Compile and link with SOPHYA"
     97cross_compiling=no
     98subdirs=
     99MFLAGS= MAKEFLAGS=
     100SHELL=${CONFIG_SHELL-/bin/sh}
     101
     102# Maximum number of lines to put in a shell here document.
     103# This variable seems obsolete.  It should probably be removed, and
     104# only ac_max_sed_lines should be used.
     105: ${ac_max_here_lines=38}
     106
     107ac_unique_file="Kernel/toi.cc"
     108# Factoring default headers for most tests.
     109ac_includes_default="\
     110#include <stdio.h>
     111#if HAVE_SYS_TYPES_H
     112# include <sys/types.h>
     113#endif
     114#if HAVE_SYS_STAT_H
     115# include <sys/stat.h>
     116#endif
     117#if STDC_HEADERS
     118# include <stdlib.h>
     119# include <stddef.h>
     120#else
     121# if HAVE_STDLIB_H
     122#  include <stdlib.h>
     123# endif
     124#endif
     125#if HAVE_STRING_H
     126# if !STDC_HEADERS && HAVE_MEMORY_H
     127#  include <memory.h>
     128# endif
     129# include <string.h>
     130#endif
     131#if HAVE_STRINGS_H
     132# include <strings.h>
     133#endif
     134#if HAVE_INTTYPES_H
     135# include <inttypes.h>
     136#else
     137# if HAVE_STDINT_H
     138#  include <stdint.h>
     139# endif
     140#endif
     141#if HAVE_UNISTD_H
     142# include <unistd.h>
     143#endif"
    16144
    17145# Initialize some variables set by options.
     146ac_init_help=
     147ac_init_version=false
    18148# The variables have the same names as the options, with
    19149# dashes changed to underlines.
    20 build=NONE
    21 cache_file=./config.cache
     150cache_file=/dev/null
    22151exec_prefix=NONE
    23 host=NONE
    24152no_create=
    25 nonopt=NONE
    26153no_recursion=
    27154prefix=NONE
     
    32159site=
    33160srcdir=
    34 target=NONE
    35161verbose=
    36162x_includes=NONE
    37163x_libraries=NONE
     164
     165# Installation directory options.
     166# These are left unexpanded so users can "make install exec_prefix=/foo"
     167# and all the variables that are supposed to be based on exec_prefix
     168# by default will actually change.
     169# Use braces instead of parens because sh, perl, etc. also accept them.
    38170bindir='${exec_prefix}/bin'
    39171sbindir='${exec_prefix}/sbin'
     
    49181mandir='${prefix}/man'
    50182
    51 # Initialize some other variables.
    52 subdirs=
    53 MFLAGS= MAKEFLAGS=
    54 # Maximum number of lines to put in a shell here document.
    55 ac_max_here_lines=12
     183# Identity of this package.
     184PACKAGE_NAME=
     185PACKAGE_TARNAME=
     186PACKAGE_VERSION=
     187PACKAGE_STRING=
     188PACKAGE_BUGREPORT=
    56189
    57190ac_prev=
    58191for ac_option
    59192do
    60 
    61193  # If the previous option needs an argument, assign it.
    62194  if test -n "$ac_prev"; then
     
    66198  fi
    67199
    68   case "$ac_option" in
    69   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    70   *) ac_optarg= ;;
    71   esac
     200  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
    72201
    73202  # Accept the important Cygnus configure options, so we can diagnose typos.
    74203
    75   case "$ac_option" in
     204  case $ac_option in
    76205
    77206  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    78207    ac_prev=bindir ;;
    79208  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    80     bindir="$ac_optarg" ;;
     209    bindir=$ac_optarg ;;
    81210
    82211  -build | --build | --buil | --bui | --bu)
    83     ac_prev=build ;;
     212    ac_prev=build_alias ;;
    84213  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    85     build="$ac_optarg" ;;
     214    build_alias=$ac_optarg ;;
    86215
    87216  -cache-file | --cache-file | --cache-fil | --cache-fi \
     
    90219  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    91220  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    92     cache_file="$ac_optarg" ;;
     221    cache_file=$ac_optarg ;;
     222
     223  --config-cache | -C)
     224    cache_file=config.cache ;;
    93225
    94226  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     
    96228  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
    97229  | --da=*)
    98     datadir="$ac_optarg" ;;
     230    datadir=$ac_optarg ;;
    99231
    100232  -disable-* | --disable-*)
    101     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
     233    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    102234    # Reject names that are not valid shell variable names.
    103     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    104       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    105     fi
    106     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    107     eval "enable_${ac_feature}=no" ;;
     235    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     236      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     237   { (exit 1); exit 1; }; }
     238    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     239    eval "enable_$ac_feature=no" ;;
    108240
    109241  -enable-* | --enable-*)
    110     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
     242    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    111243    # Reject names that are not valid shell variable names.
    112     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
    113       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    114     fi
    115     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    116     case "$ac_option" in
    117       *=*) ;;
     244    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     245      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
     246   { (exit 1); exit 1; }; }
     247    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
     248    case $ac_option in
     249      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    118250      *) ac_optarg=yes ;;
    119251    esac
    120     eval "enable_${ac_feature}='$ac_optarg'" ;;
     252    eval "enable_$ac_feature='$ac_optarg'" ;;
    121253
    122254  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
     
    127259  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    128260  | --exec=* | --exe=* | --ex=*)
    129     exec_prefix="$ac_optarg" ;;
     261    exec_prefix=$ac_optarg ;;
    130262
    131263  -gas | --gas | --ga | --g)
     
    133265    with_gas=yes ;;
    134266
    135   -help | --help | --hel | --he)
    136     # Omit some internal or obsolete options to make the list less imposing.
    137     # This message is too long to be a string in the A/UX 3.1 sh.
    138     cat << EOF
    139 Usage: configure [options] [host]
    140 Options: [defaults in brackets after descriptions]
    141 Configuration:
    142   --cache-file=FILE       cache test results in FILE
    143   --help                  print this message
    144   --no-create             do not create output files
    145   --quiet, --silent       do not print \`checking...' messages
    146   --version               print the version of autoconf that created configure
    147 Directory and file names:
    148   --prefix=PREFIX         install architecture-independent files in PREFIX
    149                           [$ac_default_prefix]
    150   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    151                           [same as prefix]
    152   --bindir=DIR            user executables in DIR [EPREFIX/bin]
    153   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
    154   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
    155   --datadir=DIR           read-only architecture-independent data in DIR
    156                           [PREFIX/share]
    157   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
    158   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
    159                           [PREFIX/com]
    160   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
    161   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
    162   --includedir=DIR        C header files in DIR [PREFIX/include]
    163   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
    164   --infodir=DIR           info documentation in DIR [PREFIX/info]
    165   --mandir=DIR            man documentation in DIR [PREFIX/man]
    166   --srcdir=DIR            find the sources in DIR [configure dir or ..]
    167   --program-prefix=PREFIX prepend PREFIX to installed program names
    168   --program-suffix=SUFFIX append SUFFIX to installed program names
    169   --program-transform-name=PROGRAM
    170                           run sed PROGRAM on installed program names
    171 EOF
    172     cat << EOF
    173 Host type:
    174   --build=BUILD           configure for building on BUILD [BUILD=HOST]
    175   --host=HOST             configure for HOST [guessed]
    176   --target=TARGET         configure for TARGET [TARGET=HOST]
    177 Features and packages:
    178   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    179   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    180   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    181   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    182   --x-includes=DIR        X include files are in DIR
    183   --x-libraries=DIR       X library files are in DIR
    184 EOF
    185     if test -n "$ac_help"; then
    186       echo "--enable and --with options recognized:$ac_help"
    187     fi
    188     exit 0 ;;
     267  -help | --help | --hel | --he | -h)
     268    ac_init_help=long ;;
     269  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
     270    ac_init_help=recursive ;;
     271  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
     272    ac_init_help=short ;;
    189273
    190274  -host | --host | --hos | --ho)
    191     ac_prev=host ;;
     275    ac_prev=host_alias ;;
    192276  -host=* | --host=* | --hos=* | --ho=*)
    193     host="$ac_optarg" ;;
     277    host_alias=$ac_optarg ;;
    194278
    195279  -includedir | --includedir | --includedi | --included | --include \
     
    198282  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    199283  | --includ=* | --inclu=* | --incl=* | --inc=*)
    200     includedir="$ac_optarg" ;;
     284    includedir=$ac_optarg ;;
    201285
    202286  -infodir | --infodir | --infodi | --infod | --info | --inf)
    203287    ac_prev=infodir ;;
    204288  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    205     infodir="$ac_optarg" ;;
     289    infodir=$ac_optarg ;;
    206290
    207291  -libdir | --libdir | --libdi | --libd)
    208292    ac_prev=libdir ;;
    209293  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    210     libdir="$ac_optarg" ;;
     294    libdir=$ac_optarg ;;
    211295
    212296  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
     
    215299  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    216300  | --libexe=* | --libex=* | --libe=*)
    217     libexecdir="$ac_optarg" ;;
     301    libexecdir=$ac_optarg ;;
    218302
    219303  -localstatedir | --localstatedir | --localstatedi | --localstated \
     
    224308  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    225309  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    226     localstatedir="$ac_optarg" ;;
     310    localstatedir=$ac_optarg ;;
    227311
    228312  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    229313    ac_prev=mandir ;;
    230314  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    231     mandir="$ac_optarg" ;;
     315    mandir=$ac_optarg ;;
    232316
    233317  -nfp | --nfp | --nf)
     
    250334  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    251335  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    252     oldincludedir="$ac_optarg" ;;
     336    oldincludedir=$ac_optarg ;;
    253337
    254338  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    255339    ac_prev=prefix ;;
    256340  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    257     prefix="$ac_optarg" ;;
     341    prefix=$ac_optarg ;;
    258342
    259343  -program-prefix | --program-prefix | --program-prefi | --program-pref \
     
    262346  -program-prefix=* | --program-prefix=* | --program-prefi=* \
    263347  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    264     program_prefix="$ac_optarg" ;;
     348    program_prefix=$ac_optarg ;;
    265349
    266350  -program-suffix | --program-suffix | --program-suffi | --program-suff \
     
    269353  -program-suffix=* | --program-suffix=* | --program-suffi=* \
    270354  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    271     program_suffix="$ac_optarg" ;;
     355    program_suffix=$ac_optarg ;;
    272356
    273357  -program-transform-name | --program-transform-name \
     
    286370  | --program-trans=* | --program-tran=* \
    287371  | --progr-tra=* | --program-tr=* | --program-t=*)
    288     program_transform_name="$ac_optarg" ;;
     372    program_transform_name=$ac_optarg ;;
    289373
    290374  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
     
    296380  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    297381  | --sbi=* | --sb=*)
    298     sbindir="$ac_optarg" ;;
     382    sbindir=$ac_optarg ;;
    299383
    300384  -sharedstatedir | --sharedstatedir | --sharedstatedi \
     
    307391  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    308392  | --sha=* | --sh=*)
    309     sharedstatedir="$ac_optarg" ;;
     393    sharedstatedir=$ac_optarg ;;
    310394
    311395  -site | --site | --sit)
    312396    ac_prev=site ;;
    313397  -site=* | --site=* | --sit=*)
    314     site="$ac_optarg" ;;
     398    site=$ac_optarg ;;
    315399
    316400  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    317401    ac_prev=srcdir ;;
    318402  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    319     srcdir="$ac_optarg" ;;
     403    srcdir=$ac_optarg ;;
    320404
    321405  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
     
    324408  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    325409  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    326     sysconfdir="$ac_optarg" ;;
     410    sysconfdir=$ac_optarg ;;
    327411
    328412  -target | --target | --targe | --targ | --tar | --ta | --t)
    329     ac_prev=target ;;
     413    ac_prev=target_alias ;;
    330414  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    331     target="$ac_optarg" ;;
     415    target_alias=$ac_optarg ;;
    332416
    333417  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    334418    verbose=yes ;;
    335419
    336   -version | --version | --versio | --versi | --vers)
    337     echo "configure generated by autoconf version 2.12"
    338     exit 0 ;;
     420  -version | --version | --versio | --versi | --vers | -V)
     421    ac_init_version=: ;;
    339422
    340423  -with-* | --with-*)
    341     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
     424    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    342425    # Reject names that are not valid shell variable names.
    343     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    344       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    345     fi
     426    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     427      { echo "$as_me: error: invalid package name: $ac_package" >&2
     428   { (exit 1); exit 1; }; }
    346429    ac_package=`echo $ac_package| sed 's/-/_/g'`
    347     case "$ac_option" in
    348       *=*) ;;
     430    case $ac_option in
     431      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
    349432      *) ac_optarg=yes ;;
    350433    esac
    351     eval "with_${ac_package}='$ac_optarg'" ;;
     434    eval "with_$ac_package='$ac_optarg'" ;;
    352435
    353436  -without-* | --without-*)
    354     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
     437    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    355438    # Reject names that are not valid shell variable names.
    356     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    357       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    358     fi
    359     ac_package=`echo $ac_package| sed 's/-/_/g'`
    360     eval "with_${ac_package}=no" ;;
     439    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
     440      { echo "$as_me: error: invalid package name: $ac_package" >&2
     441   { (exit 1); exit 1; }; }
     442    ac_package=`echo $ac_package | sed 's/-/_/g'`
     443    eval "with_$ac_package=no" ;;
    361444
    362445  --x)
     
    369452  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    370453  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    371     x_includes="$ac_optarg" ;;
     454    x_includes=$ac_optarg ;;
    372455
    373456  -x-libraries | --x-libraries | --x-librarie | --x-librari \
     
    376459  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    377460  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    378     x_libraries="$ac_optarg" ;;
    379 
    380   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
     461    x_libraries=$ac_optarg ;;
     462
     463  -*) { echo "$as_me: error: unrecognized option: $ac_option
     464Try \`$0 --help' for more information." >&2
     465   { (exit 1); exit 1; }; }
    381466    ;;
    382467
     468  *=*)
     469    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
     470    # Reject names that are not valid shell variable names.
     471    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
     472      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
     473   { (exit 1); exit 1; }; }
     474    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
     475    eval "$ac_envvar='$ac_optarg'"
     476    export $ac_envvar ;;
     477
    383478  *)
    384     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
    385       echo "configure: warning: $ac_option: invalid host type" 1>&2
    386     fi
    387     if test "x$nonopt" != xNONE; then
    388       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    389     fi
    390     nonopt="$ac_option"
     479    # FIXME: should be removed in autoconf 3.0.
     480    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
     481    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
     482      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
     483    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
    391484    ;;
    392485
     
    395488
    396489if test -n "$ac_prev"; then
    397   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
    398 fi
    399 
    400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    401 
    402 # File descriptor usage:
    403 # 0 standard input
    404 # 1 file creation
    405 # 2 errors and warnings
    406 # 3 some systems may open it to /dev/tty
    407 # 4 used on the Kubota Titan
    408 # 6 checking for... messages and results
    409 # 5 compiler messages saved in config.log
    410 if test "$silent" = yes; then
    411   exec 6>/dev/null
    412 else
    413   exec 6>&1
    414 fi
    415 exec 5>./config.log
    416 
    417 echo "\
    418 This file contains any messages produced by compilers while
    419 running configure, to aid debugging if configure makes a mistake.
    420 " 1>&5
    421 
    422 # Strip out --no-create and --no-recursion so they do not pile up.
    423 # Also quote any args containing shell metacharacters.
    424 ac_configure_args=
    425 for ac_arg
     490  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
     491  { echo "$as_me: error: missing argument to $ac_option" >&2
     492   { (exit 1); exit 1; }; }
     493fi
     494
     495# Be sure to have absolute paths.
     496for ac_var in exec_prefix prefix
    426497do
    427   case "$ac_arg" in
    428   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    429   | --no-cr | --no-c) ;;
    430   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    431   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    432   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    433   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    434   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
     498  eval ac_val=$`echo $ac_var`
     499  case $ac_val in
     500    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
     501    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
     502   { (exit 1); exit 1; }; };;
    435503  esac
    436504done
    437505
    438 # NLS nuisances.
    439 # Only set these to C if already set.  These must not be set unconditionally
    440 # because not all systems understand e.g. LANG=C (notably SCO).
    441 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
    442 # Non-C LC_CTYPE values break the ctype check.
    443 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    444 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    445 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
    446 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    447 
    448 # confdefs.h avoids OS command line length limits that DEFS can exceed.
    449 rm -rf conftest* confdefs.h
    450 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    451 echo > confdefs.h
    452 
    453 # A filename unique to this package, relative to the directory that
    454 # configure is in, which we can look for to find out if srcdir is correct.
    455 ac_unique_file=Kernel/toi.cc
     506# Be sure to have absolute paths.
     507for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
     508              localstatedir libdir includedir oldincludedir infodir mandir
     509do
     510  eval ac_val=$`echo $ac_var`
     511  case $ac_val in
     512    [\\/$]* | ?:[\\/]* ) ;;
     513    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
     514   { (exit 1); exit 1; }; };;
     515  esac
     516done
     517
     518# There might be people who depend on the old broken behavior: `$host'
     519# used to hold the argument of --host etc.
     520build=$build_alias
     521host=$host_alias
     522target=$target_alias
     523
     524# FIXME: should be removed in autoconf 3.0.
     525if test "x$host_alias" != x; then
     526  if test "x$build_alias" = x; then
     527    cross_compiling=maybe
     528    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     529    If a cross compiler is detected then cross compile mode will be used." >&2
     530  elif test "x$build_alias" != "x$host_alias"; then
     531    cross_compiling=yes
     532  fi
     533fi
     534
     535ac_tool_prefix=
     536test -n "$host_alias" && ac_tool_prefix=$host_alias-
     537
     538test "$silent" = yes && exec 6>/dev/null
    456539
    457540# Find the source files, if location was not specified.
     
    460543  # Try the directory containing this script, then its parent.
    461544  ac_prog=$0
    462   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
     545  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
    463546  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    464547  srcdir=$ac_confdir
     
    471554if test ! -r $srcdir/$ac_unique_file; then
    472555  if test "$ac_srcdir_defaulted" = yes; then
    473     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
     556    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
     557   { (exit 1); exit 1; }; }
    474558  else
    475     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
     559    { echo "$as_me: error: cannot find sources in $srcdir" >&2
     560   { (exit 1); exit 1; }; }
    476561  fi
    477562fi
    478 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    479 
     563srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
     564ac_env_build_alias_set=${build_alias+set}
     565ac_env_build_alias_value=$build_alias
     566ac_cv_env_build_alias_set=${build_alias+set}
     567ac_cv_env_build_alias_value=$build_alias
     568ac_env_host_alias_set=${host_alias+set}
     569ac_env_host_alias_value=$host_alias
     570ac_cv_env_host_alias_set=${host_alias+set}
     571ac_cv_env_host_alias_value=$host_alias
     572ac_env_target_alias_set=${target_alias+set}
     573ac_env_target_alias_value=$target_alias
     574ac_cv_env_target_alias_set=${target_alias+set}
     575ac_cv_env_target_alias_value=$target_alias
     576ac_env_CC_set=${CC+set}
     577ac_env_CC_value=$CC
     578ac_cv_env_CC_set=${CC+set}
     579ac_cv_env_CC_value=$CC
     580ac_env_CFLAGS_set=${CFLAGS+set}
     581ac_env_CFLAGS_value=$CFLAGS
     582ac_cv_env_CFLAGS_set=${CFLAGS+set}
     583ac_cv_env_CFLAGS_value=$CFLAGS
     584ac_env_LDFLAGS_set=${LDFLAGS+set}
     585ac_env_LDFLAGS_value=$LDFLAGS
     586ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     587ac_cv_env_LDFLAGS_value=$LDFLAGS
     588ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     589ac_env_CPPFLAGS_value=$CPPFLAGS
     590ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     591ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     592ac_env_CXX_set=${CXX+set}
     593ac_env_CXX_value=$CXX
     594ac_cv_env_CXX_set=${CXX+set}
     595ac_cv_env_CXX_value=$CXX
     596ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     597ac_env_CXXFLAGS_value=$CXXFLAGS
     598ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     599ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     600ac_env_CPP_set=${CPP+set}
     601ac_env_CPP_value=$CPP
     602ac_cv_env_CPP_set=${CPP+set}
     603ac_cv_env_CPP_value=$CPP
     604
     605#
     606# Report the --help message.
     607#
     608if test "$ac_init_help" = "long"; then
     609  # Omit some internal or obsolete options to make the list less imposing.
     610  # This message is too long to be a string in the A/UX 3.1 sh.
     611  cat <<EOF
     612\`configure' configures this package to adapt to many kinds of systems.
     613
     614Usage: $0 [OPTION]... [VAR=VALUE]...
     615
     616To assign environment variables (e.g., CC, CFLAGS...), specify them as
     617VAR=VALUE.  See below for descriptions of some of the useful variables.
     618
     619Defaults for the options are specified in brackets.
     620
     621Configuration:
     622  -h, --help              display this help and exit
     623      --help=short        display options specific to this package
     624      --help=recursive    display the short help of all the included packages
     625  -V, --version           display version information and exit
     626  -q, --quiet, --silent   do not print \`checking...' messages
     627      --cache-file=FILE   cache test results in FILE [disabled]
     628  -C, --config-cache      alias for \`--cache-file=config.cache'
     629  -n, --no-create         do not create output files
     630      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
     631
     632EOF
     633
     634  cat <<EOF
     635Installation directories:
     636  --prefix=PREFIX         install architecture-independent files in PREFIX
     637                          [$ac_default_prefix]
     638  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
     639                          [PREFIX]
     640
     641By default, \`make install' will install all the files in
     642\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
     643an installation prefix other than \`$ac_default_prefix' using \`--prefix',
     644for instance \`--prefix=\$HOME'.
     645
     646For better control, use the options below.
     647
     648Fine tuning of the installation directories:
     649  --bindir=DIR           user executables [EPREFIX/bin]
     650  --sbindir=DIR          system admin executables [EPREFIX/sbin]
     651  --libexecdir=DIR       program executables [EPREFIX/libexec]
     652  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
     653  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
     654  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
     655  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
     656  --libdir=DIR           object code libraries [EPREFIX/lib]
     657  --includedir=DIR       C header files [PREFIX/include]
     658  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
     659  --infodir=DIR          info documentation [PREFIX/info]
     660  --mandir=DIR           man documentation [PREFIX/man]
     661EOF
     662
     663  cat <<\EOF
     664EOF
     665fi
     666
     667if test -n "$ac_init_help"; then
     668
     669  cat <<\EOF
     670
     671Optional Packages:
     672  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     673  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     674  --with-sophya           Compile and link with SOPHYA
     675 --with-piolib   Compile with PIOLib
     676
     677Some influential environment variables:
     678  CC          C compiler command
     679  CFLAGS      C compiler flags
     680  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     681              nonstandard directory <lib dir>
     682  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     683              headers in a nonstandard directory <include dir>
     684  CXX         C++ compiler command
     685  CXXFLAGS    C++ compiler flags
     686  CPP         C preprocessor
     687
     688Use these variables to override the choices made by `configure' or to help
     689it to find libraries and programs with nonstandard names/locations.
     690
     691EOF
     692fi
     693
     694if test "$ac_init_help" = "recursive"; then
     695  # If there are subdirs, report their specific --help.
     696  ac_popdir=`pwd`
     697  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
     698    cd $ac_subdir
     699    # A "../" for each directory in /$ac_subdir.
     700    ac_dots=`echo $ac_subdir |
     701             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
     702
     703    case $srcdir in
     704    .) # No --srcdir option.  We are building in place.
     705      ac_sub_srcdir=$srcdir ;;
     706    [\\/]* | ?:[\\/]* ) # Absolute path.
     707      ac_sub_srcdir=$srcdir/$ac_subdir ;;
     708    *) # Relative path.
     709      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
     710    esac
     711
     712    # Check for guested configure; otherwise get Cygnus style configure.
     713    if test -f $ac_sub_srcdir/configure.gnu; then
     714      echo
     715      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
     716    elif test -f $ac_sub_srcdir/configure; then
     717      echo
     718      $SHELL $ac_sub_srcdir/configure  --help=recursive
     719    elif test -f $ac_sub_srcdir/configure.ac ||
     720           test -f $ac_sub_srcdir/configure.in; then
     721      echo
     722      $ac_configure --help
     723    else
     724      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
     725    fi
     726    cd $ac_popdir
     727  done
     728fi
     729
     730test -n "$ac_init_help" && exit 0
     731if $ac_init_version; then
     732  cat <<\EOF
     733
     734Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     735Free Software Foundation, Inc.
     736This configure script is free software; the Free Software Foundation
     737gives unlimited permission to copy, distribute and modify it.
     738EOF
     739  exit 0
     740fi
     741exec 5>config.log
     742cat >&5 <<EOF
     743This file contains any messages produced by compilers while
     744running configure, to aid debugging if configure makes a mistake.
     745
     746It was created by $as_me, which was
     747generated by GNU Autoconf 2.52.  Invocation command line was
     748
     749  $ $0 $@
     750
     751EOF
     752{
     753cat <<_ASUNAME
     754## ---------- ##
     755## Platform.  ##
     756## ---------- ##
     757
     758hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
     759uname -m = `(uname -m) 2>/dev/null || echo unknown`
     760uname -r = `(uname -r) 2>/dev/null || echo unknown`
     761uname -s = `(uname -s) 2>/dev/null || echo unknown`
     762uname -v = `(uname -v) 2>/dev/null || echo unknown`
     763
     764/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
     765/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
     766
     767/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
     768/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
     769/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
     770hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
     771/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
     772/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
     773/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
     774
     775PATH = $PATH
     776
     777_ASUNAME
     778} >&5
     779
     780cat >&5 <<EOF
     781## ------------ ##
     782## Core tests.  ##
     783## ------------ ##
     784
     785EOF
     786
     787# Keep a trace of the command line.
     788# Strip out --no-create and --no-recursion so they do not pile up.
     789# Also quote any args containing shell meta-characters.
     790ac_configure_args=
     791ac_sep=
     792for ac_arg
     793do
     794  case $ac_arg in
     795  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
     796  | --no-cr | --no-c) ;;
     797  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
     798  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
     799  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     800    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
     801    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     802    ac_sep=" " ;;
     803  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
     804     ac_sep=" " ;;
     805  esac
     806  # Get rid of the leading space.
     807done
     808
     809# When interrupted or exit'd, cleanup temporary files, and complete
     810# config.log.  We remove comments because anyway the quotes in there
     811# would cause problems or look ugly.
     812trap 'exit_status=$?
     813  # Save into config.log some information that might help in debugging.
     814  echo >&5
     815  echo "## ----------------- ##" >&5
     816  echo "## Cache variables.  ##" >&5
     817  echo "## ----------------- ##" >&5
     818  echo >&5
     819  # The following way of writing the cache mishandles newlines in values,
     820{
     821  (set) 2>&1 |
     822    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
     823    *ac_space=\ *)
     824      sed -n \
     825        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     826          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     827      ;;
     828    *)
     829      sed -n \
     830        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     831      ;;
     832    esac;
     833} >&5
     834  sed "/^$/d" confdefs.h >conftest.log
     835  if test -s conftest.log; then
     836    echo >&5
     837    echo "## ------------ ##" >&5
     838    echo "## confdefs.h.  ##" >&5
     839    echo "## ------------ ##" >&5
     840    echo >&5
     841    cat conftest.log >&5
     842  fi
     843  (echo; echo) >&5
     844  test "$ac_signal" != 0 &&
     845    echo "$as_me: caught signal $ac_signal" >&5
     846  echo "$as_me: exit $exit_status" >&5
     847  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
     848    exit $exit_status
     849     ' 0
     850for ac_signal in 1 2 13 15; do
     851  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
     852done
     853ac_signal=0
     854
     855# confdefs.h avoids OS command line length limits that DEFS can exceed.
     856rm -rf conftest* confdefs.h
     857# AIX cpp loses on an empty file, so make sure it contains at least a newline.
     858echo >confdefs.h
     859
     860# Let the site file select an alternate cache file if it wants to.
    480861# Prefer explicitly selected file to automatically selected ones.
    481862if test -z "$CONFIG_SITE"; then
     
    488869for ac_site_file in $CONFIG_SITE; do
    489870  if test -r "$ac_site_file"; then
    490     echo "loading site script $ac_site_file"
     871    { echo "$as_me:871: loading site script $ac_site_file" >&5
     872echo "$as_me: loading site script $ac_site_file" >&6;}
     873    cat "$ac_site_file" >&5
    491874    . "$ac_site_file"
    492875  fi
     
    494877
    495878if test -r "$cache_file"; then
    496   echo "loading cache $cache_file"
    497   . $cache_file
    498 else
    499   echo "creating cache $cache_file"
    500   > $cache_file
     879  # Some versions of bash will fail to source /dev/null (special
     880  # files actually), so we avoid doing that.
     881  if test -f "$cache_file"; then
     882    { echo "$as_me:882: loading cache $cache_file" >&5
     883echo "$as_me: loading cache $cache_file" >&6;}
     884    case $cache_file in
     885      [\\/]* | ?:[\\/]* ) . $cache_file;;
     886      *)                      . ./$cache_file;;
     887    esac
     888  fi
     889else
     890  { echo "$as_me:890: creating cache $cache_file" >&5
     891echo "$as_me: creating cache $cache_file" >&6;}
     892  >$cache_file
     893fi
     894
     895# Check that the precious variables saved in the cache have kept the same
     896# value.
     897ac_cache_corrupted=false
     898for ac_var in `(set) 2>&1 |
     899               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     900  eval ac_old_set=\$ac_cv_env_${ac_var}_set
     901  eval ac_new_set=\$ac_env_${ac_var}_set
     902  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
     903  eval ac_new_val="\$ac_env_${ac_var}_value"
     904  case $ac_old_set,$ac_new_set in
     905    set,)
     906      { echo "$as_me:906: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
     907echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
     908      ac_cache_corrupted=: ;;
     909    ,set)
     910      { echo "$as_me:910: error: \`$ac_var' was not set in the previous run" >&5
     911echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
     912      ac_cache_corrupted=: ;;
     913    ,);;
     914    *)
     915      if test "x$ac_old_val" != "x$ac_new_val"; then
     916        { echo "$as_me:916: error: \`$ac_var' has changed since the previous run:" >&5
     917echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
     918        { echo "$as_me:918:   former value:  $ac_old_val" >&5
     919echo "$as_me:   former value:  $ac_old_val" >&2;}
     920        { echo "$as_me:920:   current value: $ac_new_val" >&5
     921echo "$as_me:   current value: $ac_new_val" >&2;}
     922        ac_cache_corrupted=:
     923      fi;;
     924  esac
     925  # Pass precious variables to config.status.  It doesn't matter if
     926  # we pass some twice (in addition to the command line arguments).
     927  if test "$ac_new_set" = set; then
     928    case $ac_new_val in
     929    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
     930      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
     931      ac_configure_args="$ac_configure_args '$ac_arg'"
     932      ;;
     933    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
     934       ;;
     935    esac
     936  fi
     937done
     938if $ac_cache_corrupted; then
     939  { echo "$as_me:939: error: changes in the environment can compromise the build" >&5
     940echo "$as_me: error: changes in the environment can compromise the build" >&2;}
     941  { { echo "$as_me:941: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
     942echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
     943   { (exit 1); exit 1; }; }
    501944fi
    502945
    503946ac_ext=c
    504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    505947ac_cpp='$CPP $CPPFLAGS'
    506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    507 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    508 cross_compiling=$ac_cv_prog_cc_cross
    509 
    510 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    511   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
    512   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    513     ac_n= ac_c='
    514 ' ac_t='        '
    515   else
    516     ac_n=-n ac_c= ac_t=
    517   fi
    518 else
    519   ac_n= ac_c='\c' ac_t=
    520 fi
    521 
    522 
    523 
     948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     950ac_compiler_gnu=$ac_cv_c_compiler_gnu
     951
     952case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
     953  *c*,-n*) ECHO_N= ECHO_C='
     954' ECHO_T='      ' ;;
     955  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
     956  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
     957esac
     958echo "#! $SHELL" >conftest.sh
     959echo  "exit 0"   >>conftest.sh
     960chmod +x conftest.sh
     961if { (echo "$as_me:961: PATH=\".;.\"; conftest.sh") >&5
     962  (PATH=".;."; conftest.sh) 2>&5
     963  ac_status=$?
     964  echo "$as_me:964: \$? = $ac_status" >&5
     965  (exit $ac_status); }; then
     966  ac_path_separator=';'
     967else
     968  ac_path_separator=:
     969fi
     970PATH_SEPARATOR="$ac_path_separator"
     971rm -f conftest.sh
     972
     973ac_config_headers="$ac_config_headers conf.h"
    524974
    525975# Check whether --with-sophya or --without-sophya was given.
     
    529979else
    530980  use_sophya=0
    531 fi
    532 
    533 
    534 
     981fi;
     982
     983# Check whether --with-piolib or --without-piolib was given.
     984if test "${with_piolib+set}" = set; then
     985  withval="$with_piolib"
     986  use_piolib=1
     987else
     988  use_piolib=0
     989fi;
    535990
    536991if test `uname` = OSF1 -a -z "$CXX"; then
     
    5541009fi
    5551010
    556 # Extract the first word of "gcc", so it can be a program name with args.
    557 set dummy gcc; ac_word=$2
    558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    559 echo "configure:560: checking for $ac_word" >&5
    560 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    561   echo $ac_n "(cached) $ac_c" 1>&6
     1011ac_ext=c
     1012ac_cpp='$CPP $CPPFLAGS'
     1013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1015ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1016if test -n "$ac_tool_prefix"; then
     1017  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
     1018set dummy ${ac_tool_prefix}gcc; ac_word=$2
     1019echo "$as_me:1019: checking for $ac_word" >&5
     1020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1021if test "${ac_cv_prog_CC+set}" = set; then
     1022  echo $ECHO_N "(cached) $ECHO_C" >&6
    5621023else
    5631024  if test -n "$CC"; then
    5641025  ac_cv_prog_CC="$CC" # Let the user override the test.
    5651026else
    566   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    567   for ac_dir in $PATH; do
    568     test -z "$ac_dir" && ac_dir=.
    569     if test -f $ac_dir/$ac_word; then
    570       ac_cv_prog_CC="gcc"
    571       break
    572     fi
    573   done
    574   IFS="$ac_save_ifs"
    575 fi
    576 fi
    577 CC="$ac_cv_prog_CC"
     1027  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1028ac_dummy="$PATH"
     1029for ac_dir in $ac_dummy; do
     1030  IFS=$ac_save_IFS
     1031  test -z "$ac_dir" && ac_dir=.
     1032  $as_executable_p "$ac_dir/$ac_word" || continue
     1033ac_cv_prog_CC="${ac_tool_prefix}gcc"
     1034echo "$as_me:1034: found $ac_dir/$ac_word" >&5
     1035break
     1036done
     1037
     1038fi
     1039fi
     1040CC=$ac_cv_prog_CC
    5781041if test -n "$CC"; then
    579   echo "$ac_t""$CC" 1>&6
    580 else
    581   echo "$ac_t""no" 1>&6
    582 fi
    583 
     1042  echo "$as_me:1042: result: $CC" >&5
     1043echo "${ECHO_T}$CC" >&6
     1044else
     1045  echo "$as_me:1045: result: no" >&5
     1046echo "${ECHO_T}no" >&6
     1047fi
     1048
     1049fi
     1050if test -z "$ac_cv_prog_CC"; then
     1051  ac_ct_CC=$CC
     1052  # Extract the first word of "gcc", so it can be a program name with args.
     1053set dummy gcc; ac_word=$2
     1054echo "$as_me:1054: checking for $ac_word" >&5
     1055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1056if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1057  echo $ECHO_N "(cached) $ECHO_C" >&6
     1058else
     1059  if test -n "$ac_ct_CC"; then
     1060  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1061else
     1062  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1063ac_dummy="$PATH"
     1064for ac_dir in $ac_dummy; do
     1065  IFS=$ac_save_IFS
     1066  test -z "$ac_dir" && ac_dir=.
     1067  $as_executable_p "$ac_dir/$ac_word" || continue
     1068ac_cv_prog_ac_ct_CC="gcc"
     1069echo "$as_me:1069: found $ac_dir/$ac_word" >&5
     1070break
     1071done
     1072
     1073fi
     1074fi
     1075ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1076if test -n "$ac_ct_CC"; then
     1077  echo "$as_me:1077: result: $ac_ct_CC" >&5
     1078echo "${ECHO_T}$ac_ct_CC" >&6
     1079else
     1080  echo "$as_me:1080: result: no" >&5
     1081echo "${ECHO_T}no" >&6
     1082fi
     1083
     1084  CC=$ac_ct_CC
     1085else
     1086  CC="$ac_cv_prog_CC"
     1087fi
     1088
     1089if test -z "$CC"; then
     1090  if test -n "$ac_tool_prefix"; then
     1091  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
     1092set dummy ${ac_tool_prefix}cc; ac_word=$2
     1093echo "$as_me:1093: checking for $ac_word" >&5
     1094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1095if test "${ac_cv_prog_CC+set}" = set; then
     1096  echo $ECHO_N "(cached) $ECHO_C" >&6
     1097else
     1098  if test -n "$CC"; then
     1099  ac_cv_prog_CC="$CC" # Let the user override the test.
     1100else
     1101  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1102ac_dummy="$PATH"
     1103for ac_dir in $ac_dummy; do
     1104  IFS=$ac_save_IFS
     1105  test -z "$ac_dir" && ac_dir=.
     1106  $as_executable_p "$ac_dir/$ac_word" || continue
     1107ac_cv_prog_CC="${ac_tool_prefix}cc"
     1108echo "$as_me:1108: found $ac_dir/$ac_word" >&5
     1109break
     1110done
     1111
     1112fi
     1113fi
     1114CC=$ac_cv_prog_CC
     1115if test -n "$CC"; then
     1116  echo "$as_me:1116: result: $CC" >&5
     1117echo "${ECHO_T}$CC" >&6
     1118else
     1119  echo "$as_me:1119: result: no" >&5
     1120echo "${ECHO_T}no" >&6
     1121fi
     1122
     1123fi
     1124if test -z "$ac_cv_prog_CC"; then
     1125  ac_ct_CC=$CC
     1126  # Extract the first word of "cc", so it can be a program name with args.
     1127set dummy cc; ac_word=$2
     1128echo "$as_me:1128: checking for $ac_word" >&5
     1129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1130if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1131  echo $ECHO_N "(cached) $ECHO_C" >&6
     1132else
     1133  if test -n "$ac_ct_CC"; then
     1134  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1135else
     1136  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1137ac_dummy="$PATH"
     1138for ac_dir in $ac_dummy; do
     1139  IFS=$ac_save_IFS
     1140  test -z "$ac_dir" && ac_dir=.
     1141  $as_executable_p "$ac_dir/$ac_word" || continue
     1142ac_cv_prog_ac_ct_CC="cc"
     1143echo "$as_me:1143: found $ac_dir/$ac_word" >&5
     1144break
     1145done
     1146
     1147fi
     1148fi
     1149ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1150if test -n "$ac_ct_CC"; then
     1151  echo "$as_me:1151: result: $ac_ct_CC" >&5
     1152echo "${ECHO_T}$ac_ct_CC" >&6
     1153else
     1154  echo "$as_me:1154: result: no" >&5
     1155echo "${ECHO_T}no" >&6
     1156fi
     1157
     1158  CC=$ac_ct_CC
     1159else
     1160  CC="$ac_cv_prog_CC"
     1161fi
     1162
     1163fi
    5841164if test -z "$CC"; then
    5851165  # Extract the first word of "cc", so it can be a program name with args.
    5861166set dummy cc; ac_word=$2
    587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    588 echo "configure:589: checking for $ac_word" >&5
    589 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    590   echo $ac_n "(cached) $ac_c" 1>&6
     1167echo "$as_me:1167: checking for $ac_word" >&5
     1168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1169if test "${ac_cv_prog_CC+set}" = set; then
     1170  echo $ECHO_N "(cached) $ECHO_C" >&6
    5911171else
    5921172  if test -n "$CC"; then
    5931173  ac_cv_prog_CC="$CC" # Let the user override the test.
    5941174else
    595   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    5961175  ac_prog_rejected=no
    597   for ac_dir in $PATH; do
    598     test -z "$ac_dir" && ac_dir=.
    599     if test -f $ac_dir/$ac_word; then
    600       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    601         ac_prog_rejected=yes
    602         continue
    603       fi
    604       ac_cv_prog_CC="cc"
    605       break
    606     fi
    607   done
    608   IFS="$ac_save_ifs"
     1176  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1177ac_dummy="$PATH"
     1178for ac_dir in $ac_dummy; do
     1179  IFS=$ac_save_IFS
     1180  test -z "$ac_dir" && ac_dir=.
     1181  $as_executable_p "$ac_dir/$ac_word" || continue
     1182if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
     1183  ac_prog_rejected=yes
     1184  continue
     1185fi
     1186ac_cv_prog_CC="cc"
     1187echo "$as_me:1187: found $ac_dir/$ac_word" >&5
     1188break
     1189done
     1190
    6091191if test $ac_prog_rejected = yes; then
    6101192  # We found a bogon in the path, so make sure we never use it.
    6111193  set dummy $ac_cv_prog_CC
    6121194  shift
    613   if test $# -gt 0; then
     1195  if test $# != 0; then
    6141196    # We chose a different compiler from the bogus one.
    6151197    # However, it has the same basename, so the bogon will be chosen
    6161198    # first if we set CC to just the basename; use the full file name.
    6171199    shift
    618     set dummy "$ac_dir/$ac_word" "$@"
     1200    set dummy "$ac_dir/$ac_word" ${1+"$@"}
    6191201    shift
    6201202    ac_cv_prog_CC="$@"
     
    6231205fi
    6241206fi
    625 CC="$ac_cv_prog_CC"
     1207CC=$ac_cv_prog_CC
    6261208if test -n "$CC"; then
    627   echo "$ac_t""$CC" 1>&6
    628 else
    629   echo "$ac_t""no" 1>&6
    630 fi
    631 
    632   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    633 fi
    634 
    635 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    636 echo "configure:637: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    637 
    638 ac_ext=c
    639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    640 ac_cpp='$CPP $CPPFLAGS'
    641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    642 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    643 cross_compiling=$ac_cv_prog_cc_cross
    644 
    645 cat > conftest.$ac_ext <<EOF
    646 #line 647 "configure"
    647 #include "confdefs.h"
    648 main(){return(0);}
    649 EOF
    650 if { (eval echo configure:651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    651   ac_cv_prog_cc_works=yes
    652   # If we can't run a trivial program, we are probably using a cross compiler.
    653   if (./conftest; exit) 2>/dev/null; then
    654     ac_cv_prog_cc_cross=no
     1209  echo "$as_me:1209: result: $CC" >&5
     1210echo "${ECHO_T}$CC" >&6
     1211else
     1212  echo "$as_me:1212: result: no" >&5
     1213echo "${ECHO_T}no" >&6
     1214fi
     1215
     1216fi
     1217if test -z "$CC"; then
     1218  if test -n "$ac_tool_prefix"; then
     1219  for ac_prog in cl
     1220  do
     1221    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1222set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1223echo "$as_me:1223: checking for $ac_word" >&5
     1224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1225if test "${ac_cv_prog_CC+set}" = set; then
     1226  echo $ECHO_N "(cached) $ECHO_C" >&6
     1227else
     1228  if test -n "$CC"; then
     1229  ac_cv_prog_CC="$CC" # Let the user override the test.
     1230else
     1231  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1232ac_dummy="$PATH"
     1233for ac_dir in $ac_dummy; do
     1234  IFS=$ac_save_IFS
     1235  test -z "$ac_dir" && ac_dir=.
     1236  $as_executable_p "$ac_dir/$ac_word" || continue
     1237ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1238echo "$as_me:1238: found $ac_dir/$ac_word" >&5
     1239break
     1240done
     1241
     1242fi
     1243fi
     1244CC=$ac_cv_prog_CC
     1245if test -n "$CC"; then
     1246  echo "$as_me:1246: result: $CC" >&5
     1247echo "${ECHO_T}$CC" >&6
     1248else
     1249  echo "$as_me:1249: result: no" >&5
     1250echo "${ECHO_T}no" >&6
     1251fi
     1252
     1253    test -n "$CC" && break
     1254  done
     1255fi
     1256if test -z "$CC"; then
     1257  ac_ct_CC=$CC
     1258  for ac_prog in cl
     1259do
     1260  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1261set dummy $ac_prog; ac_word=$2
     1262echo "$as_me:1262: checking for $ac_word" >&5
     1263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1264if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1265  echo $ECHO_N "(cached) $ECHO_C" >&6
     1266else
     1267  if test -n "$ac_ct_CC"; then
     1268  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1269else
     1270  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1271ac_dummy="$PATH"
     1272for ac_dir in $ac_dummy; do
     1273  IFS=$ac_save_IFS
     1274  test -z "$ac_dir" && ac_dir=.
     1275  $as_executable_p "$ac_dir/$ac_word" || continue
     1276ac_cv_prog_ac_ct_CC="$ac_prog"
     1277echo "$as_me:1277: found $ac_dir/$ac_word" >&5
     1278break
     1279done
     1280
     1281fi
     1282fi
     1283ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1284if test -n "$ac_ct_CC"; then
     1285  echo "$as_me:1285: result: $ac_ct_CC" >&5
     1286echo "${ECHO_T}$ac_ct_CC" >&6
     1287else
     1288  echo "$as_me:1288: result: no" >&5
     1289echo "${ECHO_T}no" >&6
     1290fi
     1291
     1292  test -n "$ac_ct_CC" && break
     1293done
     1294
     1295  CC=$ac_ct_CC
     1296fi
     1297
     1298fi
     1299
     1300test -z "$CC" && { { echo "$as_me:1300: error: no acceptable cc found in \$PATH" >&5
     1301echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
     1302   { (exit 1); exit 1; }; }
     1303
     1304# Provide some information about the compiler.
     1305echo "$as_me:1305:" \
     1306     "checking for C compiler version" >&5
     1307ac_compiler=`set X $ac_compile; echo $2`
     1308{ (eval echo "$as_me:1308: \"$ac_compiler --version </dev/null >&5\"") >&5
     1309  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1310  ac_status=$?
     1311  echo "$as_me:1311: \$? = $ac_status" >&5
     1312  (exit $ac_status); }
     1313{ (eval echo "$as_me:1313: \"$ac_compiler -v </dev/null >&5\"") >&5
     1314  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1315  ac_status=$?
     1316  echo "$as_me:1316: \$? = $ac_status" >&5
     1317  (exit $ac_status); }
     1318{ (eval echo "$as_me:1318: \"$ac_compiler -V </dev/null >&5\"") >&5
     1319  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1320  ac_status=$?
     1321  echo "$as_me:1321: \$? = $ac_status" >&5
     1322  (exit $ac_status); }
     1323
     1324cat >conftest.$ac_ext <<_ACEOF
     1325#line 1325 "configure"
     1326#include "confdefs.h"
     1327
     1328int
     1329main ()
     1330{
     1331
     1332  ;
     1333  return 0;
     1334}
     1335_ACEOF
     1336ac_clean_files_save=$ac_clean_files
     1337ac_clean_files="$ac_clean_files a.out a.exe"
     1338# Try to create an executable without -o first, disregard a.out.
     1339# It will help us diagnose broken compilers, and finding out an intuition
     1340# of exeext.
     1341echo "$as_me:1341: checking for C compiler default output" >&5
     1342echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
     1343ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
     1344if { (eval echo "$as_me:1344: \"$ac_link_default\"") >&5
     1345  (eval $ac_link_default) 2>&5
     1346  ac_status=$?
     1347  echo "$as_me:1347: \$? = $ac_status" >&5
     1348  (exit $ac_status); }; then
     1349  # Find the output, starting from the most likely.  This scheme is
     1350# not robust to junk in `.', hence go to wildcards (a.*) only as a last
     1351# resort.
     1352for ac_file in `ls a.exe conftest.exe 2>/dev/null;
     1353                ls a.out conftest 2>/dev/null;
     1354                ls a.* conftest.* 2>/dev/null`; do
     1355  case $ac_file in
     1356    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1357    a.out ) # We found the default executable, but exeext='' is most
     1358            # certainly right.
     1359            break;;
     1360    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1361          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
     1362          export ac_cv_exeext
     1363          break;;
     1364    * ) break;;
     1365  esac
     1366done
     1367else
     1368  echo "$as_me: failed program was:" >&5
     1369cat conftest.$ac_ext >&5
     1370{ { echo "$as_me:1370: error: C compiler cannot create executables" >&5
     1371echo "$as_me: error: C compiler cannot create executables" >&2;}
     1372   { (exit 77); exit 77; }; }
     1373fi
     1374
     1375ac_exeext=$ac_cv_exeext
     1376echo "$as_me:1376: result: $ac_file" >&5
     1377echo "${ECHO_T}$ac_file" >&6
     1378
     1379# Check the compiler produces executables we can run.  If not, either
     1380# the compiler is broken, or we cross compile.
     1381echo "$as_me:1381: checking whether the C compiler works" >&5
     1382echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     1383# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
     1384# If not cross compiling, check that we can run a simple program.
     1385if test "$cross_compiling" != yes; then
     1386  if { ac_try='./$ac_file'
     1387  { (eval echo "$as_me:1387: \"$ac_try\"") >&5
     1388  (eval $ac_try) 2>&5
     1389  ac_status=$?
     1390  echo "$as_me:1390: \$? = $ac_status" >&5
     1391  (exit $ac_status); }; }; then
     1392    cross_compiling=no
    6551393  else
    656     ac_cv_prog_cc_cross=yes
     1394    if test "$cross_compiling" = maybe; then
     1395        cross_compiling=yes
     1396    else
     1397        { { echo "$as_me:1397: error: cannot run C compiled programs.
     1398If you meant to cross compile, use \`--host'." >&5
     1399echo "$as_me: error: cannot run C compiled programs.
     1400If you meant to cross compile, use \`--host'." >&2;}
     1401   { (exit 1); exit 1; }; }
     1402    fi
    6571403  fi
    658 else
    659   echo "configure: failed program was:" >&5
    660   cat conftest.$ac_ext >&5
    661   ac_cv_prog_cc_works=no
    662 fi
    663 rm -fr conftest*
    664 
    665 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    666 if test $ac_cv_prog_cc_works = no; then
    667   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    668 fi
    669 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    670 echo "configure:671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    671 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    672 cross_compiling=$ac_cv_prog_cc_cross
    673 
    674 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    675 echo "configure:676: checking whether we are using GNU C" >&5
    676 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    677   echo $ac_n "(cached) $ac_c" 1>&6
    678 else
    679   cat > conftest.c <<EOF
    680 #ifdef __GNUC__
    681   yes;
     1404fi
     1405echo "$as_me:1405: result: yes" >&5
     1406echo "${ECHO_T}yes" >&6
     1407
     1408rm -f a.out a.exe conftest$ac_cv_exeext
     1409ac_clean_files=$ac_clean_files_save
     1410# Check the compiler produces executables we can run.  If not, either
     1411# the compiler is broken, or we cross compile.
     1412echo "$as_me:1412: checking whether we are cross compiling" >&5
     1413echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
     1414echo "$as_me:1414: result: $cross_compiling" >&5
     1415echo "${ECHO_T}$cross_compiling" >&6
     1416
     1417echo "$as_me:1417: checking for executable suffix" >&5
     1418echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
     1419if { (eval echo "$as_me:1419: \"$ac_link\"") >&5
     1420  (eval $ac_link) 2>&5
     1421  ac_status=$?
     1422  echo "$as_me:1422: \$? = $ac_status" >&5
     1423  (exit $ac_status); }; then
     1424  # If both `conftest.exe' and `conftest' are `present' (well, observable)
     1425# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
     1426# work properly (i.e., refer to `conftest.exe'), while it won't with
     1427# `rm'.
     1428for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
     1429  case $ac_file in
     1430    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1431    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     1432          export ac_cv_exeext
     1433          break;;
     1434    * ) break;;
     1435  esac
     1436done
     1437else
     1438  { { echo "$as_me:1438: error: cannot compute EXEEXT: cannot compile and link" >&5
     1439echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
     1440   { (exit 1); exit 1; }; }
     1441fi
     1442
     1443rm -f conftest$ac_cv_exeext
     1444echo "$as_me:1444: result: $ac_cv_exeext" >&5
     1445echo "${ECHO_T}$ac_cv_exeext" >&6
     1446
     1447rm -f conftest.$ac_ext
     1448EXEEXT=$ac_cv_exeext
     1449ac_exeext=$EXEEXT
     1450echo "$as_me:1450: checking for object suffix" >&5
     1451echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
     1452if test "${ac_cv_objext+set}" = set; then
     1453  echo $ECHO_N "(cached) $ECHO_C" >&6
     1454else
     1455  cat >conftest.$ac_ext <<_ACEOF
     1456#line 1456 "configure"
     1457#include "confdefs.h"
     1458
     1459int
     1460main ()
     1461{
     1462
     1463  ;
     1464  return 0;
     1465}
     1466_ACEOF
     1467rm -f conftest.o conftest.obj
     1468if { (eval echo "$as_me:1468: \"$ac_compile\"") >&5
     1469  (eval $ac_compile) 2>&5
     1470  ac_status=$?
     1471  echo "$as_me:1471: \$? = $ac_status" >&5
     1472  (exit $ac_status); }; then
     1473  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
     1474  case $ac_file in
     1475    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
     1476    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
     1477       break;;
     1478  esac
     1479done
     1480else
     1481  echo "$as_me: failed program was:" >&5
     1482cat conftest.$ac_ext >&5
     1483{ { echo "$as_me:1483: error: cannot compute OBJEXT: cannot compile" >&5
     1484echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
     1485   { (exit 1); exit 1; }; }
     1486fi
     1487
     1488rm -f conftest.$ac_cv_objext conftest.$ac_ext
     1489fi
     1490echo "$as_me:1490: result: $ac_cv_objext" >&5
     1491echo "${ECHO_T}$ac_cv_objext" >&6
     1492OBJEXT=$ac_cv_objext
     1493ac_objext=$OBJEXT
     1494echo "$as_me:1494: checking whether we are using the GNU C compiler" >&5
     1495echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     1496if test "${ac_cv_c_compiler_gnu+set}" = set; then
     1497  echo $ECHO_N "(cached) $ECHO_C" >&6
     1498else
     1499  cat >conftest.$ac_ext <<_ACEOF
     1500#line 1500 "configure"
     1501#include "confdefs.h"
     1502
     1503int
     1504main ()
     1505{
     1506#ifndef __GNUC__
     1507       choke me
    6821508#endif
    683 EOF
    684 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    685   ac_cv_prog_gcc=yes
    686 else
    687   ac_cv_prog_gcc=no
    688 fi
    689 fi
    690 
    691 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    692 
    693 if test $ac_cv_prog_gcc = yes; then
    694   GCC=yes
    695   ac_test_CFLAGS="${CFLAGS+set}"
    696   ac_save_CFLAGS="$CFLAGS"
    697   CFLAGS=
    698   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    699 echo "configure:700: checking whether ${CC-cc} accepts -g" >&5
    700 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    701   echo $ac_n "(cached) $ac_c" 1>&6
    702 else
    703   echo 'void f(){}' > conftest.c
    704 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
     1509
     1510  ;
     1511  return 0;
     1512}
     1513_ACEOF
     1514rm -f conftest.$ac_objext
     1515if { (eval echo "$as_me:1515: \"$ac_compile\"") >&5
     1516  (eval $ac_compile) 2>&5
     1517  ac_status=$?
     1518  echo "$as_me:1518: \$? = $ac_status" >&5
     1519  (exit $ac_status); } &&
     1520         { ac_try='test -s conftest.$ac_objext'
     1521  { (eval echo "$as_me:1521: \"$ac_try\"") >&5
     1522  (eval $ac_try) 2>&5
     1523  ac_status=$?
     1524  echo "$as_me:1524: \$? = $ac_status" >&5
     1525  (exit $ac_status); }; }; then
     1526  ac_compiler_gnu=yes
     1527else
     1528  echo "$as_me: failed program was:" >&5
     1529cat conftest.$ac_ext >&5
     1530ac_compiler_gnu=no
     1531fi
     1532rm -f conftest.$ac_objext conftest.$ac_ext
     1533ac_cv_c_compiler_gnu=$ac_compiler_gnu
     1534
     1535fi
     1536echo "$as_me:1536: result: $ac_cv_c_compiler_gnu" >&5
     1537echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
     1538GCC=`test $ac_compiler_gnu = yes && echo yes`
     1539ac_test_CFLAGS=${CFLAGS+set}
     1540ac_save_CFLAGS=$CFLAGS
     1541CFLAGS="-g"
     1542echo "$as_me:1542: checking whether $CC accepts -g" >&5
     1543echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
     1544if test "${ac_cv_prog_cc_g+set}" = set; then
     1545  echo $ECHO_N "(cached) $ECHO_C" >&6
     1546else
     1547  cat >conftest.$ac_ext <<_ACEOF
     1548#line 1548 "configure"
     1549#include "confdefs.h"
     1550
     1551int
     1552main ()
     1553{
     1554
     1555  ;
     1556  return 0;
     1557}
     1558_ACEOF
     1559rm -f conftest.$ac_objext
     1560if { (eval echo "$as_me:1560: \"$ac_compile\"") >&5
     1561  (eval $ac_compile) 2>&5
     1562  ac_status=$?
     1563  echo "$as_me:1563: \$? = $ac_status" >&5
     1564  (exit $ac_status); } &&
     1565         { ac_try='test -s conftest.$ac_objext'
     1566  { (eval echo "$as_me:1566: \"$ac_try\"") >&5
     1567  (eval $ac_try) 2>&5
     1568  ac_status=$?
     1569  echo "$as_me:1569: \$? = $ac_status" >&5
     1570  (exit $ac_status); }; }; then
    7051571  ac_cv_prog_cc_g=yes
    7061572else
    707   ac_cv_prog_cc_g=no
    708 fi
    709 rm -f conftest*
    710 
    711 fi
    712 
    713 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    714   if test "$ac_test_CFLAGS" = set; then
    715     CFLAGS="$ac_save_CFLAGS"
    716   elif test $ac_cv_prog_cc_g = yes; then
     1573  echo "$as_me: failed program was:" >&5
     1574cat conftest.$ac_ext >&5
     1575ac_cv_prog_cc_g=no
     1576fi
     1577rm -f conftest.$ac_objext conftest.$ac_ext
     1578fi
     1579echo "$as_me:1579: result: $ac_cv_prog_cc_g" >&5
     1580echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
     1581if test "$ac_test_CFLAGS" = set; then
     1582  CFLAGS=$ac_save_CFLAGS
     1583elif test $ac_cv_prog_cc_g = yes; then
     1584  if test "$GCC" = yes; then
    7171585    CFLAGS="-g -O2"
    7181586  else
     1587    CFLAGS="-g"
     1588  fi
     1589else
     1590  if test "$GCC" = yes; then
    7191591    CFLAGS="-O2"
     1592  else
     1593    CFLAGS=
    7201594  fi
    721 else
    722   GCC=
    723   test "${CFLAGS+set}" = set || CFLAGS="-g"
    724 fi
    725 
    726 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
     1595fi
     1596# Some people use a C++ compiler to compile C.  Since we use `exit',
     1597# in C++ we need to declare it.  In case someone uses the same compiler
     1598# for both compiling C and C++ we need to have the C++ compiler decide
     1599# the declaration of exit, since it's the most demanding environment.
     1600cat >conftest.$ac_ext <<_ACEOF
     1601#ifndef __cplusplus
     1602  choke me
     1603#endif
     1604_ACEOF
     1605rm -f conftest.$ac_objext
     1606if { (eval echo "$as_me:1606: \"$ac_compile\"") >&5
     1607  (eval $ac_compile) 2>&5
     1608  ac_status=$?
     1609  echo "$as_me:1609: \$? = $ac_status" >&5
     1610  (exit $ac_status); } &&
     1611         { ac_try='test -s conftest.$ac_objext'
     1612  { (eval echo "$as_me:1612: \"$ac_try\"") >&5
     1613  (eval $ac_try) 2>&5
     1614  ac_status=$?
     1615  echo "$as_me:1615: \$? = $ac_status" >&5
     1616  (exit $ac_status); }; }; then
     1617  for ac_declaration in \
     1618   ''\
     1619   '#include <stdlib.h>' \
     1620   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1621   'extern "C" void std::exit (int); using std::exit;' \
     1622   'extern "C" void exit (int) throw ();' \
     1623   'extern "C" void exit (int);' \
     1624   'void exit (int);'
    7271625do
    728 # Extract the first word of "$ac_prog", so it can be a program name with args.
    729 set dummy $ac_prog; ac_word=$2
    730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    731 echo "configure:732: checking for $ac_word" >&5
    732 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    733   echo $ac_n "(cached) $ac_c" 1>&6
     1626  cat >conftest.$ac_ext <<_ACEOF
     1627#line 1627 "configure"
     1628#include "confdefs.h"
     1629#include <stdlib.h>
     1630$ac_declaration
     1631int
     1632main ()
     1633{
     1634exit (42);
     1635  ;
     1636  return 0;
     1637}
     1638_ACEOF
     1639rm -f conftest.$ac_objext
     1640if { (eval echo "$as_me:1640: \"$ac_compile\"") >&5
     1641  (eval $ac_compile) 2>&5
     1642  ac_status=$?
     1643  echo "$as_me:1643: \$? = $ac_status" >&5
     1644  (exit $ac_status); } &&
     1645         { ac_try='test -s conftest.$ac_objext'
     1646  { (eval echo "$as_me:1646: \"$ac_try\"") >&5
     1647  (eval $ac_try) 2>&5
     1648  ac_status=$?
     1649  echo "$as_me:1649: \$? = $ac_status" >&5
     1650  (exit $ac_status); }; }; then
     1651  :
     1652else
     1653  echo "$as_me: failed program was:" >&5
     1654cat conftest.$ac_ext >&5
     1655continue
     1656fi
     1657rm -f conftest.$ac_objext conftest.$ac_ext
     1658  cat >conftest.$ac_ext <<_ACEOF
     1659#line 1659 "configure"
     1660#include "confdefs.h"
     1661$ac_declaration
     1662int
     1663main ()
     1664{
     1665exit (42);
     1666  ;
     1667  return 0;
     1668}
     1669_ACEOF
     1670rm -f conftest.$ac_objext
     1671if { (eval echo "$as_me:1671: \"$ac_compile\"") >&5
     1672  (eval $ac_compile) 2>&5
     1673  ac_status=$?
     1674  echo "$as_me:1674: \$? = $ac_status" >&5
     1675  (exit $ac_status); } &&
     1676         { ac_try='test -s conftest.$ac_objext'
     1677  { (eval echo "$as_me:1677: \"$ac_try\"") >&5
     1678  (eval $ac_try) 2>&5
     1679  ac_status=$?
     1680  echo "$as_me:1680: \$? = $ac_status" >&5
     1681  (exit $ac_status); }; }; then
     1682  break
     1683else
     1684  echo "$as_me: failed program was:" >&5
     1685cat conftest.$ac_ext >&5
     1686fi
     1687rm -f conftest.$ac_objext conftest.$ac_ext
     1688done
     1689rm -f conftest*
     1690if test -n "$ac_declaration"; then
     1691  echo '#ifdef __cplusplus' >>confdefs.h
     1692  echo $ac_declaration      >>confdefs.h
     1693  echo '#endif'             >>confdefs.h
     1694fi
     1695
     1696else
     1697  echo "$as_me: failed program was:" >&5
     1698cat conftest.$ac_ext >&5
     1699fi
     1700rm -f conftest.$ac_objext conftest.$ac_ext
     1701ac_ext=c
     1702ac_cpp='$CPP $CPPFLAGS'
     1703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1705ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1706
     1707ac_ext=cc
     1708ac_cpp='$CXXCPP $CPPFLAGS'
     1709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     1712if test -n "$ac_tool_prefix"; then
     1713  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1714  do
     1715    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1717echo "$as_me:1717: checking for $ac_word" >&5
     1718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1719if test "${ac_cv_prog_CXX+set}" = set; then
     1720  echo $ECHO_N "(cached) $ECHO_C" >&6
    7341721else
    7351722  if test -n "$CXX"; then
    7361723  ac_cv_prog_CXX="$CXX" # Let the user override the test.
    7371724else
    738   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    739   for ac_dir in $PATH; do
    740     test -z "$ac_dir" && ac_dir=.
    741     if test -f $ac_dir/$ac_word; then
    742       ac_cv_prog_CXX="$ac_prog"
    743       break
    744     fi
     1725  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1726ac_dummy="$PATH"
     1727for ac_dir in $ac_dummy; do
     1728  IFS=$ac_save_IFS
     1729  test -z "$ac_dir" && ac_dir=.
     1730  $as_executable_p "$ac_dir/$ac_word" || continue
     1731ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1732echo "$as_me:1732: found $ac_dir/$ac_word" >&5
     1733break
     1734done
     1735
     1736fi
     1737fi
     1738CXX=$ac_cv_prog_CXX
     1739if test -n "$CXX"; then
     1740  echo "$as_me:1740: result: $CXX" >&5
     1741echo "${ECHO_T}$CXX" >&6
     1742else
     1743  echo "$as_me:1743: result: no" >&5
     1744echo "${ECHO_T}no" >&6
     1745fi
     1746
     1747    test -n "$CXX" && break
    7451748  done
    746   IFS="$ac_save_ifs"
    747 fi
    748 fi
    749 CXX="$ac_cv_prog_CXX"
    750 if test -n "$CXX"; then
    751   echo "$ac_t""$CXX" 1>&6
    752 else
    753   echo "$ac_t""no" 1>&6
    754 fi
    755 
    756 test -n "$CXX" && break
     1749fi
     1750if test -z "$CXX"; then
     1751  ac_ct_CXX=$CXX
     1752  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1753do
     1754  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1755set dummy $ac_prog; ac_word=$2
     1756echo "$as_me:1756: checking for $ac_word" >&5
     1757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1758if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     1759  echo $ECHO_N "(cached) $ECHO_C" >&6
     1760else
     1761  if test -n "$ac_ct_CXX"; then
     1762  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     1763else
     1764  ac_save_IFS=$IFS; IFS=$ac_path_separator
     1765ac_dummy="$PATH"
     1766for ac_dir in $ac_dummy; do
     1767  IFS=$ac_save_IFS
     1768  test -z "$ac_dir" && ac_dir=.
     1769  $as_executable_p "$ac_dir/$ac_word" || continue
     1770ac_cv_prog_ac_ct_CXX="$ac_prog"
     1771echo "$as_me:1771: found $ac_dir/$ac_word" >&5
     1772break
    7571773done
    758 test -n "$CXX" || CXX="gcc"
    759 
    760 
    761 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    762 echo "configure:763: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
    763 
    764 ac_ext=C
    765 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    766 ac_cpp='$CXXCPP $CPPFLAGS'
    767 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    768 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    769 cross_compiling=$ac_cv_prog_cxx_cross
    770 
    771 cat > conftest.$ac_ext <<EOF
    772 #line 773 "configure"
    773 #include "confdefs.h"
    774 main(){return(0);}
    775 EOF
    776 if { (eval echo configure:777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    777   ac_cv_prog_cxx_works=yes
    778   # If we can't run a trivial program, we are probably using a cross compiler.
    779   if (./conftest; exit) 2>/dev/null; then
    780     ac_cv_prog_cxx_cross=no
    781   else
    782     ac_cv_prog_cxx_cross=yes
    783   fi
    784 else
    785   echo "configure: failed program was:" >&5
    786   cat conftest.$ac_ext >&5
    787   ac_cv_prog_cxx_works=no
    788 fi
    789 rm -fr conftest*
    790 ac_ext=c
    791 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    792 ac_cpp='$CPP $CPPFLAGS'
    793 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    794 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    795 cross_compiling=$ac_cv_prog_cc_cross
    796 
    797 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
    798 if test $ac_cv_prog_cxx_works = no; then
    799   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
    800 fi
    801 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    802 echo "configure:803: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
    803 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
    804 cross_compiling=$ac_cv_prog_cxx_cross
    805 
    806 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
    807 echo "configure:808: checking whether we are using GNU C++" >&5
    808 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    809   echo $ac_n "(cached) $ac_c" 1>&6
    810 else
    811   cat > conftest.C <<EOF
    812 #ifdef __GNUC__
    813   yes;
     1774
     1775fi
     1776fi
     1777ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     1778if test -n "$ac_ct_CXX"; then
     1779  echo "$as_me:1779: result: $ac_ct_CXX" >&5
     1780echo "${ECHO_T}$ac_ct_CXX" >&6
     1781else
     1782  echo "$as_me:1782: result: no" >&5
     1783echo "${ECHO_T}no" >&6
     1784fi
     1785
     1786  test -n "$ac_ct_CXX" && break
     1787done
     1788test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     1789
     1790  CXX=$ac_ct_CXX
     1791fi
     1792
     1793# Provide some information about the compiler.
     1794echo "$as_me:1794:" \
     1795     "checking for C++ compiler version" >&5
     1796ac_compiler=`set X $ac_compile; echo $2`
     1797{ (eval echo "$as_me:1797: \"$ac_compiler --version </dev/null >&5\"") >&5
     1798  (eval $ac_compiler --version </dev/null >&5) 2>&5
     1799  ac_status=$?
     1800  echo "$as_me:1800: \$? = $ac_status" >&5
     1801  (exit $ac_status); }
     1802{ (eval echo "$as_me:1802: \"$ac_compiler -v </dev/null >&5\"") >&5
     1803  (eval $ac_compiler -v </dev/null >&5) 2>&5
     1804  ac_status=$?
     1805  echo "$as_me:1805: \$? = $ac_status" >&5
     1806  (exit $ac_status); }
     1807{ (eval echo "$as_me:1807: \"$ac_compiler -V </dev/null >&5\"") >&5
     1808  (eval $ac_compiler -V </dev/null >&5) 2>&5
     1809  ac_status=$?
     1810  echo "$as_me:1810: \$? = $ac_status" >&5
     1811  (exit $ac_status); }
     1812
     1813echo "$as_me:1813: checking whether we are using the GNU C++ compiler" >&5
     1814echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     1815if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     1816  echo $ECHO_N "(cached) $ECHO_C" >&6
     1817else
     1818  cat >conftest.$ac_ext <<_ACEOF
     1819#line 1819 "configure"
     1820#include "confdefs.h"
     1821
     1822int
     1823main ()
     1824{
     1825#ifndef __GNUC__
     1826       choke me
    8141827#endif
    815 EOF
    816 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    817   ac_cv_prog_gxx=yes
    818 else
    819   ac_cv_prog_gxx=no
    820 fi
    821 fi
    822 
    823 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
    824 
    825 if test $ac_cv_prog_gxx = yes; then
    826   GXX=yes
    827   ac_test_CXXFLAGS="${CXXFLAGS+set}"
    828   ac_save_CXXFLAGS="$CXXFLAGS"
    829   CXXFLAGS=
    830   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    831 echo "configure:832: checking whether ${CXX-g++} accepts -g" >&5
    832 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    833   echo $ac_n "(cached) $ac_c" 1>&6
    834 else
    835   echo 'void f(){}' > conftest.cc
    836 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
     1828
     1829  ;
     1830  return 0;
     1831}
     1832_ACEOF
     1833rm -f conftest.$ac_objext
     1834if { (eval echo "$as_me:1834: \"$ac_compile\"") >&5
     1835  (eval $ac_compile) 2>&5
     1836  ac_status=$?
     1837  echo "$as_me:1837: \$? = $ac_status" >&5
     1838  (exit $ac_status); } &&
     1839         { ac_try='test -s conftest.$ac_objext'
     1840  { (eval echo "$as_me:1840: \"$ac_try\"") >&5
     1841  (eval $ac_try) 2>&5
     1842  ac_status=$?
     1843  echo "$as_me:1843: \$? = $ac_status" >&5
     1844  (exit $ac_status); }; }; then
     1845  ac_compiler_gnu=yes
     1846else
     1847  echo "$as_me: failed program was:" >&5
     1848cat conftest.$ac_ext >&5
     1849ac_compiler_gnu=no
     1850fi
     1851rm -f conftest.$ac_objext conftest.$ac_ext
     1852ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     1853
     1854fi
     1855echo "$as_me:1855: result: $ac_cv_cxx_compiler_gnu" >&5
     1856echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     1857GXX=`test $ac_compiler_gnu = yes && echo yes`
     1858ac_test_CXXFLAGS=${CXXFLAGS+set}
     1859ac_save_CXXFLAGS=$CXXFLAGS
     1860CXXFLAGS="-g"
     1861echo "$as_me:1861: checking whether $CXX accepts -g" >&5
     1862echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     1863if test "${ac_cv_prog_cxx_g+set}" = set; then
     1864  echo $ECHO_N "(cached) $ECHO_C" >&6
     1865else
     1866  cat >conftest.$ac_ext <<_ACEOF
     1867#line 1867 "configure"
     1868#include "confdefs.h"
     1869
     1870int
     1871main ()
     1872{
     1873
     1874  ;
     1875  return 0;
     1876}
     1877_ACEOF
     1878rm -f conftest.$ac_objext
     1879if { (eval echo "$as_me:1879: \"$ac_compile\"") >&5
     1880  (eval $ac_compile) 2>&5
     1881  ac_status=$?
     1882  echo "$as_me:1882: \$? = $ac_status" >&5
     1883  (exit $ac_status); } &&
     1884         { ac_try='test -s conftest.$ac_objext'
     1885  { (eval echo "$as_me:1885: \"$ac_try\"") >&5
     1886  (eval $ac_try) 2>&5
     1887  ac_status=$?
     1888  echo "$as_me:1888: \$? = $ac_status" >&5
     1889  (exit $ac_status); }; }; then
    8371890  ac_cv_prog_cxx_g=yes
    8381891else
    839   ac_cv_prog_cxx_g=no
    840 fi
    841 rm -f conftest*
    842 
    843 fi
    844 
    845 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
    846   if test "$ac_test_CXXFLAGS" = set; then
    847     CXXFLAGS="$ac_save_CXXFLAGS"
    848   elif test $ac_cv_prog_cxx_g = yes; then
     1892  echo "$as_me: failed program was:" >&5
     1893cat conftest.$ac_ext >&5
     1894ac_cv_prog_cxx_g=no
     1895fi
     1896rm -f conftest.$ac_objext conftest.$ac_ext
     1897fi
     1898echo "$as_me:1898: result: $ac_cv_prog_cxx_g" >&5
     1899echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     1900if test "$ac_test_CXXFLAGS" = set; then
     1901  CXXFLAGS=$ac_save_CXXFLAGS
     1902elif test $ac_cv_prog_cxx_g = yes; then
     1903  if test "$GXX" = yes; then
    8491904    CXXFLAGS="-g -O2"
    8501905  else
     1906    CXXFLAGS="-g"
     1907  fi
     1908else
     1909  if test "$GXX" = yes; then
    8511910    CXXFLAGS="-O2"
     1911  else
     1912    CXXFLAGS=
    8521913  fi
    853 else
    854   GXX=
    855   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
    856 fi
     1914fi
     1915for ac_declaration in \
     1916   ''\
     1917   '#include <stdlib.h>' \
     1918   'extern "C" void std::exit (int) throw (); using std::exit;' \
     1919   'extern "C" void std::exit (int); using std::exit;' \
     1920   'extern "C" void exit (int) throw ();' \
     1921   'extern "C" void exit (int);' \
     1922   'void exit (int);'
     1923do
     1924  cat >conftest.$ac_ext <<_ACEOF
     1925#line 1925 "configure"
     1926#include "confdefs.h"
     1927#include <stdlib.h>
     1928$ac_declaration
     1929int
     1930main ()
     1931{
     1932exit (42);
     1933  ;
     1934  return 0;
     1935}
     1936_ACEOF
     1937rm -f conftest.$ac_objext
     1938if { (eval echo "$as_me:1938: \"$ac_compile\"") >&5
     1939  (eval $ac_compile) 2>&5
     1940  ac_status=$?
     1941  echo "$as_me:1941: \$? = $ac_status" >&5
     1942  (exit $ac_status); } &&
     1943         { ac_try='test -s conftest.$ac_objext'
     1944  { (eval echo "$as_me:1944: \"$ac_try\"") >&5
     1945  (eval $ac_try) 2>&5
     1946  ac_status=$?
     1947  echo "$as_me:1947: \$? = $ac_status" >&5
     1948  (exit $ac_status); }; }; then
     1949  :
     1950else
     1951  echo "$as_me: failed program was:" >&5
     1952cat conftest.$ac_ext >&5
     1953continue
     1954fi
     1955rm -f conftest.$ac_objext conftest.$ac_ext
     1956  cat >conftest.$ac_ext <<_ACEOF
     1957#line 1957 "configure"
     1958#include "confdefs.h"
     1959$ac_declaration
     1960int
     1961main ()
     1962{
     1963exit (42);
     1964  ;
     1965  return 0;
     1966}
     1967_ACEOF
     1968rm -f conftest.$ac_objext
     1969if { (eval echo "$as_me:1969: \"$ac_compile\"") >&5
     1970  (eval $ac_compile) 2>&5
     1971  ac_status=$?
     1972  echo "$as_me:1972: \$? = $ac_status" >&5
     1973  (exit $ac_status); } &&
     1974         { ac_try='test -s conftest.$ac_objext'
     1975  { (eval echo "$as_me:1975: \"$ac_try\"") >&5
     1976  (eval $ac_try) 2>&5
     1977  ac_status=$?
     1978  echo "$as_me:1978: \$? = $ac_status" >&5
     1979  (exit $ac_status); }; }; then
     1980  break
     1981else
     1982  echo "$as_me: failed program was:" >&5
     1983cat conftest.$ac_ext >&5
     1984fi
     1985rm -f conftest.$ac_objext conftest.$ac_ext
     1986done
     1987rm -f conftest*
     1988if test -n "$ac_declaration"; then
     1989  echo '#ifdef __cplusplus' >>confdefs.h
     1990  echo $ac_declaration      >>confdefs.h
     1991  echo '#endif'             >>confdefs.h
     1992fi
     1993
     1994ac_ext=c
     1995ac_cpp='$CPP $CPPFLAGS'
     1996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1998ac_compiler_gnu=$ac_cv_c_compiler_gnu
    8571999
    8582000if test `uname` = "Darwin"; then
     
    8602002  ARFLAGS="-static -o"
    8612003  RANLIB=":"
    862  
    863  
    864  
     2004
    8652005else
    8662006  ARFLAGS="-cr"
    867  
     2007
    8682008  if test -x /usr/bin/ar; then
    8692009    # Extract the first word of "ar", so it can be a program name with args.
    8702010set dummy ar; ac_word=$2
    871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    872 echo "configure:873: checking for $ac_word" >&5
    873 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
    874   echo $ac_n "(cached) $ac_c" 1>&6
    875 else
    876   case "$AR" in
    877   /*)
     2011echo "$as_me:2011: checking for $ac_word" >&5
     2012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2013if test "${ac_cv_path_AR+set}" = set; then
     2014  echo $ECHO_N "(cached) $ECHO_C" >&6
     2015else
     2016  case $AR in
     2017  [\\/]* | ?:[\\/]*)
    8782018  ac_cv_path_AR="$AR" # Let the user override the test with a path.
    8792019  ;;
    8802020  *)
    881   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    882   for ac_dir in /usr/bin:$PATH$ac_dummy; do
    883     test -z "$ac_dir" && ac_dir=.
    884     if test -f $ac_dir/$ac_word; then
    885       ac_cv_path_AR="$ac_dir/$ac_word"
    886       break
    887     fi
    888   done
    889   IFS="$ac_save_ifs"
     2021  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2022ac_dummy="/usr/bin:$PATH"
     2023for ac_dir in $ac_dummy; do
     2024  IFS=$ac_save_IFS
     2025  test -z "$ac_dir" && ac_dir=.
     2026  if $as_executable_p "$ac_dir/$ac_word"; then
     2027   ac_cv_path_AR="$ac_dir/$ac_word"
     2028   echo "$as_me:2028: found $ac_dir/$ac_word" >&5
     2029   break
     2030fi
     2031done
     2032
    8902033  test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
    8912034  ;;
    8922035esac
    8932036fi
    894 AR="$ac_cv_path_AR"
     2037AR=$ac_cv_path_AR
     2038
    8952039if test -n "$AR"; then
    896   echo "$ac_t""$AR" 1>&6
    897 else
    898   echo "$ac_t""no" 1>&6
    899 fi
    900  
     2040  echo "$as_me:2040: result: $AR" >&5
     2041echo "${ECHO_T}$AR" >&6
     2042else
     2043  echo "$as_me:2043: result: no" >&5
     2044echo "${ECHO_T}no" >&6
     2045fi
     2046
    9012047  else
    9022048    # Extract the first word of "ar", so it can be a program name with args.
    9032049set dummy ar; ac_word=$2
    904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    905 echo "configure:906: checking for $ac_word" >&5
    906 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    907   echo $ac_n "(cached) $ac_c" 1>&6
     2050echo "$as_me:2050: checking for $ac_word" >&5
     2051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2052if test "${ac_cv_prog_AR+set}" = set; then
     2053  echo $ECHO_N "(cached) $ECHO_C" >&6
    9082054else
    9092055  if test -n "$AR"; then
    9102056  ac_cv_prog_AR="$AR" # Let the user override the test.
    9112057else
    912   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    913   for ac_dir in $PATH; do
    914     test -z "$ac_dir" && ac_dir=.
    915     if test -f $ac_dir/$ac_word; then
    916       ac_cv_prog_AR=""
    917       break
    918     fi
    919   done
    920   IFS="$ac_save_ifs"
    921 fi
    922 fi
    923 AR="$ac_cv_prog_AR"
     2058  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2059ac_dummy="$PATH"
     2060for ac_dir in $ac_dummy; do
     2061  IFS=$ac_save_IFS
     2062  test -z "$ac_dir" && ac_dir=.
     2063  $as_executable_p "$ac_dir/$ac_word" || continue
     2064ac_cv_prog_AR=""
     2065echo "$as_me:2065: found $ac_dir/$ac_word" >&5
     2066break
     2067done
     2068
     2069fi
     2070fi
     2071AR=$ac_cv_prog_AR
    9242072if test -n "$AR"; then
    925   echo "$ac_t""$AR" 1>&6
    926 else
    927   echo "$ac_t""no" 1>&6
     2073  echo "$as_me:2073: result: $AR" >&5
     2074echo "${ECHO_T}$AR" >&6
     2075else
     2076  echo "$as_me:2076: result: no" >&5
     2077echo "${ECHO_T}no" >&6
    9282078fi
    9292079
     
    9322082    # Extract the first word of "ranlib", so it can be a program name with args.
    9332083set dummy ranlib; ac_word=$2
    934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    935 echo "configure:936: checking for $ac_word" >&5
    936 if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then
    937   echo $ac_n "(cached) $ac_c" 1>&6
    938 else
    939   case "$RANLIB" in
    940   /*)
     2084echo "$as_me:2084: checking for $ac_word" >&5
     2085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2086if test "${ac_cv_path_RANLIB+set}" = set; then
     2087  echo $ECHO_N "(cached) $ECHO_C" >&6
     2088else
     2089  case $RANLIB in
     2090  [\\/]* | ?:[\\/]*)
    9412091  ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
    9422092  ;;
    9432093  *)
    944   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    945   for ac_dir in /usr/bin:$PATH$ac_dummy; do
    946     test -z "$ac_dir" && ac_dir=.
    947     if test -f $ac_dir/$ac_word; then
    948       ac_cv_path_RANLIB="$ac_dir/$ac_word"
    949       break
    950     fi
    951   done
    952   IFS="$ac_save_ifs"
     2094  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2095ac_dummy="/usr/bin:$PATH"
     2096for ac_dir in $ac_dummy; do
     2097  IFS=$ac_save_IFS
     2098  test -z "$ac_dir" && ac_dir=.
     2099  if $as_executable_p "$ac_dir/$ac_word"; then
     2100   ac_cv_path_RANLIB="$ac_dir/$ac_word"
     2101   echo "$as_me:2101: found $ac_dir/$ac_word" >&5
     2102   break
     2103fi
     2104done
     2105
    9532106  test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="/usr/bin/ranlib"
    9542107  ;;
    9552108esac
    9562109fi
    957 RANLIB="$ac_cv_path_RANLIB"
     2110RANLIB=$ac_cv_path_RANLIB
     2111
    9582112if test -n "$RANLIB"; then
    959   echo "$ac_t""$RANLIB" 1>&6
    960 else
    961   echo "$ac_t""no" 1>&6
    962 fi
    963  
     2113  echo "$as_me:2113: result: $RANLIB" >&5
     2114echo "${ECHO_T}$RANLIB" >&6
     2115else
     2116  echo "$as_me:2116: result: no" >&5
     2117echo "${ECHO_T}no" >&6
     2118fi
     2119
    9642120  else
    965     # Extract the first word of "ranlib", so it can be a program name with args.
    966 set dummy ranlib; ac_word=$2
    967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    968 echo "configure:969: checking for $ac_word" >&5
    969 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    970   echo $ac_n "(cached) $ac_c" 1>&6
     2121    if test -n "$ac_tool_prefix"; then
     2122  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
     2123set dummy ${ac_tool_prefix}ranlib; ac_word=$2
     2124echo "$as_me:2124: checking for $ac_word" >&5
     2125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2126if test "${ac_cv_prog_RANLIB+set}" = set; then
     2127  echo $ECHO_N "(cached) $ECHO_C" >&6
    9712128else
    9722129  if test -n "$RANLIB"; then
    9732130  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
    9742131else
    975   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    976   for ac_dir in $PATH; do
    977     test -z "$ac_dir" && ac_dir=.
    978     if test -f $ac_dir/$ac_word; then
    979       ac_cv_prog_RANLIB="ranlib"
    980       break
    981     fi
    982   done
    983   IFS="$ac_save_ifs"
    984   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
    985 fi
    986 fi
    987 RANLIB="$ac_cv_prog_RANLIB"
     2132  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2133ac_dummy="$PATH"
     2134for ac_dir in $ac_dummy; do
     2135  IFS=$ac_save_IFS
     2136  test -z "$ac_dir" && ac_dir=.
     2137  $as_executable_p "$ac_dir/$ac_word" || continue
     2138ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
     2139echo "$as_me:2139: found $ac_dir/$ac_word" >&5
     2140break
     2141done
     2142
     2143fi
     2144fi
     2145RANLIB=$ac_cv_prog_RANLIB
    9882146if test -n "$RANLIB"; then
    989   echo "$ac_t""$RANLIB" 1>&6
    990 else
    991   echo "$ac_t""no" 1>&6
     2147  echo "$as_me:2147: result: $RANLIB" >&5
     2148echo "${ECHO_T}$RANLIB" >&6
     2149else
     2150  echo "$as_me:2150: result: no" >&5
     2151echo "${ECHO_T}no" >&6
     2152fi
     2153
     2154fi
     2155if test -z "$ac_cv_prog_RANLIB"; then
     2156  ac_ct_RANLIB=$RANLIB
     2157  # Extract the first word of "ranlib", so it can be a program name with args.
     2158set dummy ranlib; ac_word=$2
     2159echo "$as_me:2159: checking for $ac_word" >&5
     2160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2161if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
     2162  echo $ECHO_N "(cached) $ECHO_C" >&6
     2163else
     2164  if test -n "$ac_ct_RANLIB"; then
     2165  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
     2166else
     2167  ac_save_IFS=$IFS; IFS=$ac_path_separator
     2168ac_dummy="$PATH"
     2169for ac_dir in $ac_dummy; do
     2170  IFS=$ac_save_IFS
     2171  test -z "$ac_dir" && ac_dir=.
     2172  $as_executable_p "$ac_dir/$ac_word" || continue
     2173ac_cv_prog_ac_ct_RANLIB="ranlib"
     2174echo "$as_me:2174: found $ac_dir/$ac_word" >&5
     2175break
     2176done
     2177
     2178  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
     2179fi
     2180fi
     2181ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
     2182if test -n "$ac_ct_RANLIB"; then
     2183  echo "$as_me:2183: result: $ac_ct_RANLIB" >&5
     2184echo "${ECHO_T}$ac_ct_RANLIB" >&6
     2185else
     2186  echo "$as_me:2186: result: no" >&5
     2187echo "${ECHO_T}no" >&6
     2188fi
     2189
     2190  RANLIB=$ac_ct_RANLIB
     2191else
     2192  RANLIB="$ac_cv_prog_RANLIB"
    9922193fi
    9932194
     
    10052206    ac_install_sh="$ac_aux_dir/install.sh -c"
    10062207    break
     2208  elif test -f $ac_dir/shtool; then
     2209    ac_aux_dir=$ac_dir
     2210    ac_install_sh="$ac_aux_dir/shtool install -c"
     2211    break
    10072212  fi
    10082213done
    10092214if test -z "$ac_aux_dir"; then
    1010   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
    1011 fi
    1012 ac_config_guess=$ac_aux_dir/config.guess
    1013 ac_config_sub=$ac_aux_dir/config.sub
    1014 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
     2215  { { echo "$as_me:2215: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     2216echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     2217   { (exit 1); exit 1; }; }
     2218fi
     2219ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     2220ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     2221ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    10152222
    10162223# Find a good install program.  We prefer a C program (faster),
     
    10212228# IRIX /sbin/install
    10222229# AIX /bin/install
     2230# AmigaOS /C/install, which installs bootblocks on floppy discs
     2231# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    10232232# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    10242233# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    10252234# ./install, which can be erroneously created by make from ./install.sh.
    1026 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
    1027 echo "configure:1028: checking for a BSD compatible install" >&5
     2235echo "$as_me:2235: checking for a BSD compatible install" >&5
     2236echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
    10282237if test -z "$INSTALL"; then
    1029 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    1030   echo $ac_n "(cached) $ac_c" 1>&6
    1031 else
    1032     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
     2238if test "${ac_cv_path_install+set}" = set; then
     2239  echo $ECHO_N "(cached) $ECHO_C" >&6
     2240else
     2241    ac_save_IFS=$IFS; IFS=$ac_path_separator
    10332242  for ac_dir in $PATH; do
     2243    IFS=$ac_save_IFS
    10342244    # Account for people who put trailing slashes in PATH elements.
    1035     case "$ac_dir/" in
    1036     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
     2245    case $ac_dir/ in
     2246    / | ./ | .// | /cC/* \
     2247    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
     2248    | /usr/ucb/* ) ;;
    10372249    *)
    10382250      # OSF1 and SCO ODT 3.0 have their own names for install.
    1039       for ac_prog in ginstall installbsd scoinst install; do
    1040         if test -f $ac_dir/$ac_prog; then
     2251      # Don't use installbsd from OSF since it installs stuff as root
     2252      # by default.
     2253      for ac_prog in ginstall scoinst install; do
     2254        if $as_executable_p "$ac_dir/$ac_prog"; then
    10412255          if test $ac_prog = install &&
    1042             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
     2256            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
    10432257            # AIX install.  It has an incompatible calling convention.
    1044             # OSF/1 installbsd also uses dspmsg, but is usable.
     2258            :
     2259          elif test $ac_prog = install &&
     2260            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
     2261            # program-specific install script used by HP pwplus--don't use.
    10452262            :
    10462263          else
     
    10532270    esac
    10542271  done
    1055   IFS="$ac_save_IFS"
    10562272
    10572273fi
    10582274  if test "${ac_cv_path_install+set}" = set; then
    1059     INSTALL="$ac_cv_path_install"
     2275    INSTALL=$ac_cv_path_install
    10602276  else
    10612277    # As a last resort, use the slow shell script.  We don't cache a
     
    10632279    # break other packages using the cache if that directory is
    10642280    # removed, or if the path is relative.
    1065     INSTALL="$ac_install_sh"
     2281    INSTALL=$ac_install_sh
    10662282  fi
    10672283fi
    1068 echo "$ac_t""$INSTALL" 1>&6
     2284echo "$as_me:2284: result: $INSTALL" >&5
     2285echo "${ECHO_T}$INSTALL" >&6
    10692286
    10702287# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     
    10722289test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    10732290
     2291test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     2292
    10742293test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    1075 
    10762294
    10772295if test $GCC = "yes"; then
     
    10812299fi
    10822300
    1083 
    1084 echo $ac_n "checking size of short""... $ac_c" 1>&6
    1085 echo "configure:1086: checking size of short" >&5
    1086 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    1087   echo $ac_n "(cached) $ac_c" 1>&6
    1088 else
     2301ac_ext=c
     2302ac_cpp='$CPP $CPPFLAGS'
     2303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2305ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2306echo "$as_me:2306: checking how to run the C preprocessor" >&5
     2307echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     2308# On Suns, sometimes $CPP names a directory.
     2309if test -n "$CPP" && test -d "$CPP"; then
     2310  CPP=
     2311fi
     2312if test -z "$CPP"; then
     2313  if test "${ac_cv_prog_CPP+set}" = set; then
     2314  echo $ECHO_N "(cached) $ECHO_C" >&6
     2315else
     2316      # Double quotes because CPP needs to be expanded
     2317    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     2318    do
     2319      ac_preproc_ok=false
     2320for ac_c_preproc_warn_flag in '' yes
     2321do
     2322  # Use a header file that comes with gcc, so configuring glibc
     2323  # with a fresh cross-compiler works.
     2324  # On the NeXT, cc -E runs the code through the compiler's parser,
     2325  # not just through cpp. "Syntax error" is here to catch this case.
     2326  cat >conftest.$ac_ext <<_ACEOF
     2327#line 2327 "configure"
     2328#include "confdefs.h"
     2329#include <assert.h>
     2330                     Syntax error
     2331_ACEOF
     2332if { (eval echo "$as_me:2332: \"$ac_cpp conftest.$ac_ext\"") >&5
     2333  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2334  ac_status=$?
     2335  egrep -v '^ *\+' conftest.er1 >conftest.err
     2336  rm -f conftest.er1
     2337  cat conftest.err >&5
     2338  echo "$as_me:2338: \$? = $ac_status" >&5
     2339  (exit $ac_status); } >/dev/null; then
     2340  if test -s conftest.err; then
     2341    ac_cpp_err=$ac_c_preproc_warn_flag
     2342  else
     2343    ac_cpp_err=
     2344  fi
     2345else
     2346  ac_cpp_err=yes
     2347fi
     2348if test -z "$ac_cpp_err"; then
     2349  :
     2350else
     2351  echo "$as_me: failed program was:" >&5
     2352  cat conftest.$ac_ext >&5
     2353  # Broken: fails on valid input.
     2354continue
     2355fi
     2356rm -f conftest.err conftest.$ac_ext
     2357
     2358  # OK, works on sane cases.  Now check whether non-existent headers
     2359  # can be detected and how.
     2360  cat >conftest.$ac_ext <<_ACEOF
     2361#line 2361 "configure"
     2362#include "confdefs.h"
     2363#include <ac_nonexistent.h>
     2364_ACEOF
     2365if { (eval echo "$as_me:2365: \"$ac_cpp conftest.$ac_ext\"") >&5
     2366  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2367  ac_status=$?
     2368  egrep -v '^ *\+' conftest.er1 >conftest.err
     2369  rm -f conftest.er1
     2370  cat conftest.err >&5
     2371  echo "$as_me:2371: \$? = $ac_status" >&5
     2372  (exit $ac_status); } >/dev/null; then
     2373  if test -s conftest.err; then
     2374    ac_cpp_err=$ac_c_preproc_warn_flag
     2375  else
     2376    ac_cpp_err=
     2377  fi
     2378else
     2379  ac_cpp_err=yes
     2380fi
     2381if test -z "$ac_cpp_err"; then
     2382  # Broken: success on invalid input.
     2383continue
     2384else
     2385  echo "$as_me: failed program was:" >&5
     2386  cat conftest.$ac_ext >&5
     2387  # Passes both tests.
     2388ac_preproc_ok=:
     2389break
     2390fi
     2391rm -f conftest.err conftest.$ac_ext
     2392
     2393done
     2394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2395rm -f conftest.err conftest.$ac_ext
     2396if $ac_preproc_ok; then
     2397  break
     2398fi
     2399
     2400    done
     2401    ac_cv_prog_CPP=$CPP
     2402
     2403fi
     2404  CPP=$ac_cv_prog_CPP
     2405else
     2406  ac_cv_prog_CPP=$CPP
     2407fi
     2408echo "$as_me:2408: result: $CPP" >&5
     2409echo "${ECHO_T}$CPP" >&6
     2410ac_preproc_ok=false
     2411for ac_c_preproc_warn_flag in '' yes
     2412do
     2413  # Use a header file that comes with gcc, so configuring glibc
     2414  # with a fresh cross-compiler works.
     2415  # On the NeXT, cc -E runs the code through the compiler's parser,
     2416  # not just through cpp. "Syntax error" is here to catch this case.
     2417  cat >conftest.$ac_ext <<_ACEOF
     2418#line 2418 "configure"
     2419#include "confdefs.h"
     2420#include <assert.h>
     2421                     Syntax error
     2422_ACEOF
     2423if { (eval echo "$as_me:2423: \"$ac_cpp conftest.$ac_ext\"") >&5
     2424  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2425  ac_status=$?
     2426  egrep -v '^ *\+' conftest.er1 >conftest.err
     2427  rm -f conftest.er1
     2428  cat conftest.err >&5
     2429  echo "$as_me:2429: \$? = $ac_status" >&5
     2430  (exit $ac_status); } >/dev/null; then
     2431  if test -s conftest.err; then
     2432    ac_cpp_err=$ac_c_preproc_warn_flag
     2433  else
     2434    ac_cpp_err=
     2435  fi
     2436else
     2437  ac_cpp_err=yes
     2438fi
     2439if test -z "$ac_cpp_err"; then
     2440  :
     2441else
     2442  echo "$as_me: failed program was:" >&5
     2443  cat conftest.$ac_ext >&5
     2444  # Broken: fails on valid input.
     2445continue
     2446fi
     2447rm -f conftest.err conftest.$ac_ext
     2448
     2449  # OK, works on sane cases.  Now check whether non-existent headers
     2450  # can be detected and how.
     2451  cat >conftest.$ac_ext <<_ACEOF
     2452#line 2452 "configure"
     2453#include "confdefs.h"
     2454#include <ac_nonexistent.h>
     2455_ACEOF
     2456if { (eval echo "$as_me:2456: \"$ac_cpp conftest.$ac_ext\"") >&5
     2457  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2458  ac_status=$?
     2459  egrep -v '^ *\+' conftest.er1 >conftest.err
     2460  rm -f conftest.er1
     2461  cat conftest.err >&5
     2462  echo "$as_me:2462: \$? = $ac_status" >&5
     2463  (exit $ac_status); } >/dev/null; then
     2464  if test -s conftest.err; then
     2465    ac_cpp_err=$ac_c_preproc_warn_flag
     2466  else
     2467    ac_cpp_err=
     2468  fi
     2469else
     2470  ac_cpp_err=yes
     2471fi
     2472if test -z "$ac_cpp_err"; then
     2473  # Broken: success on invalid input.
     2474continue
     2475else
     2476  echo "$as_me: failed program was:" >&5
     2477  cat conftest.$ac_ext >&5
     2478  # Passes both tests.
     2479ac_preproc_ok=:
     2480break
     2481fi
     2482rm -f conftest.err conftest.$ac_ext
     2483
     2484done
     2485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2486rm -f conftest.err conftest.$ac_ext
     2487if $ac_preproc_ok; then
     2488  :
     2489else
     2490  { { echo "$as_me:2490: error: C preprocessor \"$CPP\" fails sanity check" >&5
     2491echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
     2492   { (exit 1); exit 1; }; }
     2493fi
     2494
     2495ac_ext=c
     2496ac_cpp='$CPP $CPPFLAGS'
     2497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2499ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2500
     2501echo "$as_me:2501: checking for ANSI C header files" >&5
     2502echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     2503if test "${ac_cv_header_stdc+set}" = set; then
     2504  echo $ECHO_N "(cached) $ECHO_C" >&6
     2505else
     2506  cat >conftest.$ac_ext <<_ACEOF
     2507#line 2507 "configure"
     2508#include "confdefs.h"
     2509#include <stdlib.h>
     2510#include <stdarg.h>
     2511#include <string.h>
     2512#include <float.h>
     2513
     2514_ACEOF
     2515if { (eval echo "$as_me:2515: \"$ac_cpp conftest.$ac_ext\"") >&5
     2516  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2517  ac_status=$?
     2518  egrep -v '^ *\+' conftest.er1 >conftest.err
     2519  rm -f conftest.er1
     2520  cat conftest.err >&5
     2521  echo "$as_me:2521: \$? = $ac_status" >&5
     2522  (exit $ac_status); } >/dev/null; then
     2523  if test -s conftest.err; then
     2524    ac_cpp_err=$ac_c_preproc_warn_flag
     2525  else
     2526    ac_cpp_err=
     2527  fi
     2528else
     2529  ac_cpp_err=yes
     2530fi
     2531if test -z "$ac_cpp_err"; then
     2532  ac_cv_header_stdc=yes
     2533else
     2534  echo "$as_me: failed program was:" >&5
     2535  cat conftest.$ac_ext >&5
     2536  ac_cv_header_stdc=no
     2537fi
     2538rm -f conftest.err conftest.$ac_ext
     2539
     2540if test $ac_cv_header_stdc = yes; then
     2541  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     2542  cat >conftest.$ac_ext <<_ACEOF
     2543#line 2543 "configure"
     2544#include "confdefs.h"
     2545#include <string.h>
     2546
     2547_ACEOF
     2548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2549  egrep "memchr" >/dev/null 2>&1; then
     2550  :
     2551else
     2552  ac_cv_header_stdc=no
     2553fi
     2554rm -f conftest*
     2555
     2556fi
     2557
     2558if test $ac_cv_header_stdc = yes; then
     2559  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     2560  cat >conftest.$ac_ext <<_ACEOF
     2561#line 2561 "configure"
     2562#include "confdefs.h"
     2563#include <stdlib.h>
     2564
     2565_ACEOF
     2566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2567  egrep "free" >/dev/null 2>&1; then
     2568  :
     2569else
     2570  ac_cv_header_stdc=no
     2571fi
     2572rm -f conftest*
     2573
     2574fi
     2575
     2576if test $ac_cv_header_stdc = yes; then
     2577  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    10892578  if test "$cross_compiling" = yes; then
    1090     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
    1091 else
    1092   cat > conftest.$ac_ext <<EOF
    1093 #line 1094 "configure"
    1094 #include "confdefs.h"
    1095 #include <stdio.h>
    1096 main()
    1097 {
    1098   FILE *f=fopen("conftestval", "w");
    1099   if (!f) exit(1);
    1100   fprintf(f, "%d\n", sizeof(short));
    1101   exit(0);
    1102 }
     2579  :
     2580else
     2581  cat >conftest.$ac_ext <<_ACEOF
     2582#line 2582 "configure"
     2583#include "confdefs.h"
     2584#include <ctype.h>
     2585#if ((' ' & 0x0FF) == 0x020)
     2586# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     2587# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2588#else
     2589# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     2590                     || ('j' <= (c) && (c) <= 'r') \
     2591                     || ('s' <= (c) && (c) <= 'z'))
     2592# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     2593#endif
     2594
     2595#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     2596int
     2597main ()
     2598{
     2599  int i;
     2600  for (i = 0; i < 256; i++)
     2601    if (XOR (islower (i), ISLOWER (i))
     2602        || toupper (i) != TOUPPER (i))
     2603      exit(2);
     2604  exit (0);
     2605}
     2606_ACEOF
     2607rm -f conftest$ac_exeext
     2608if { (eval echo "$as_me:2608: \"$ac_link\"") >&5
     2609  (eval $ac_link) 2>&5
     2610  ac_status=$?
     2611  echo "$as_me:2611: \$? = $ac_status" >&5
     2612  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     2613  { (eval echo "$as_me:2613: \"$ac_try\"") >&5
     2614  (eval $ac_try) 2>&5
     2615  ac_status=$?
     2616  echo "$as_me:2616: \$? = $ac_status" >&5
     2617  (exit $ac_status); }; }; then
     2618  :
     2619else
     2620  echo "$as_me: program exited with status $ac_status" >&5
     2621echo "$as_me: failed program was:" >&5
     2622cat conftest.$ac_ext >&5
     2623ac_cv_header_stdc=no
     2624fi
     2625rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     2626fi
     2627fi
     2628fi
     2629echo "$as_me:2629: result: $ac_cv_header_stdc" >&5
     2630echo "${ECHO_T}$ac_cv_header_stdc" >&6
     2631if test $ac_cv_header_stdc = yes; then
     2632
     2633cat >>confdefs.h <<\EOF
     2634#define STDC_HEADERS 1
    11032635EOF
    1104 if { (eval echo configure:1105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1105 then
    1106   ac_cv_sizeof_short=`cat conftestval`
    1107 else
    1108   echo "configure: failed program was:" >&5
    1109   cat conftest.$ac_ext >&5
    1110   rm -fr conftest*
     2636
     2637fi
     2638
     2639# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     2640
     2641for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     2642                  inttypes.h stdint.h unistd.h
     2643do
     2644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     2645echo "$as_me:2645: checking for $ac_header" >&5
     2646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2647if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2648  echo $ECHO_N "(cached) $ECHO_C" >&6
     2649else
     2650  cat >conftest.$ac_ext <<_ACEOF
     2651#line 2651 "configure"
     2652#include "confdefs.h"
     2653$ac_includes_default
     2654#include <$ac_header>
     2655_ACEOF
     2656rm -f conftest.$ac_objext
     2657if { (eval echo "$as_me:2657: \"$ac_compile\"") >&5
     2658  (eval $ac_compile) 2>&5
     2659  ac_status=$?
     2660  echo "$as_me:2660: \$? = $ac_status" >&5
     2661  (exit $ac_status); } &&
     2662         { ac_try='test -s conftest.$ac_objext'
     2663  { (eval echo "$as_me:2663: \"$ac_try\"") >&5
     2664  (eval $ac_try) 2>&5
     2665  ac_status=$?
     2666  echo "$as_me:2666: \$? = $ac_status" >&5
     2667  (exit $ac_status); }; }; then
     2668  eval "$as_ac_Header=yes"
     2669else
     2670  echo "$as_me: failed program was:" >&5
     2671cat conftest.$ac_ext >&5
     2672eval "$as_ac_Header=no"
     2673fi
     2674rm -f conftest.$ac_objext conftest.$ac_ext
     2675fi
     2676echo "$as_me:2676: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2678if test `eval echo '${'$as_ac_Header'}'` = yes; then
     2679  cat >>confdefs.h <<EOF
     2680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     2681EOF
     2682
     2683fi
     2684done
     2685
     2686echo "$as_me:2686: checking for short" >&5
     2687echo $ECHO_N "checking for short... $ECHO_C" >&6
     2688if test "${ac_cv_type_short+set}" = set; then
     2689  echo $ECHO_N "(cached) $ECHO_C" >&6
     2690else
     2691  cat >conftest.$ac_ext <<_ACEOF
     2692#line 2692 "configure"
     2693#include "confdefs.h"
     2694$ac_includes_default
     2695int
     2696main ()
     2697{
     2698if ((short *) 0)
     2699  return 0;
     2700if (sizeof (short))
     2701  return 0;
     2702  ;
     2703  return 0;
     2704}
     2705_ACEOF
     2706rm -f conftest.$ac_objext
     2707if { (eval echo "$as_me:2707: \"$ac_compile\"") >&5
     2708  (eval $ac_compile) 2>&5
     2709  ac_status=$?
     2710  echo "$as_me:2710: \$? = $ac_status" >&5
     2711  (exit $ac_status); } &&
     2712         { ac_try='test -s conftest.$ac_objext'
     2713  { (eval echo "$as_me:2713: \"$ac_try\"") >&5
     2714  (eval $ac_try) 2>&5
     2715  ac_status=$?
     2716  echo "$as_me:2716: \$? = $ac_status" >&5
     2717  (exit $ac_status); }; }; then
     2718  ac_cv_type_short=yes
     2719else
     2720  echo "$as_me: failed program was:" >&5
     2721cat conftest.$ac_ext >&5
     2722ac_cv_type_short=no
     2723fi
     2724rm -f conftest.$ac_objext conftest.$ac_ext
     2725fi
     2726echo "$as_me:2726: result: $ac_cv_type_short" >&5
     2727echo "${ECHO_T}$ac_cv_type_short" >&6
     2728
     2729echo "$as_me:2729: checking size of short" >&5
     2730echo $ECHO_N "checking size of short... $ECHO_C" >&6
     2731if test "${ac_cv_sizeof_short+set}" = set; then
     2732  echo $ECHO_N "(cached) $ECHO_C" >&6
     2733else
     2734  if test "$ac_cv_type_short" = yes; then
     2735  if test "$cross_compiling" = yes; then
     2736  # Depending upon the size, compute the lo and hi bounds.
     2737cat >conftest.$ac_ext <<_ACEOF
     2738#line 2738 "configure"
     2739#include "confdefs.h"
     2740$ac_includes_default
     2741int
     2742main ()
     2743{
     2744int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
     2745  ;
     2746  return 0;
     2747}
     2748_ACEOF
     2749rm -f conftest.$ac_objext
     2750if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5
     2751  (eval $ac_compile) 2>&5
     2752  ac_status=$?
     2753  echo "$as_me:2753: \$? = $ac_status" >&5
     2754  (exit $ac_status); } &&
     2755         { ac_try='test -s conftest.$ac_objext'
     2756  { (eval echo "$as_me:2756: \"$ac_try\"") >&5
     2757  (eval $ac_try) 2>&5
     2758  ac_status=$?
     2759  echo "$as_me:2759: \$? = $ac_status" >&5
     2760  (exit $ac_status); }; }; then
     2761  ac_lo=0 ac_mid=0
     2762  while :; do
     2763    cat >conftest.$ac_ext <<_ACEOF
     2764#line 2764 "configure"
     2765#include "confdefs.h"
     2766$ac_includes_default
     2767int
     2768main ()
     2769{
     2770int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
     2771  ;
     2772  return 0;
     2773}
     2774_ACEOF
     2775rm -f conftest.$ac_objext
     2776if { (eval echo "$as_me:2776: \"$ac_compile\"") >&5
     2777  (eval $ac_compile) 2>&5
     2778  ac_status=$?
     2779  echo "$as_me:2779: \$? = $ac_status" >&5
     2780  (exit $ac_status); } &&
     2781         { ac_try='test -s conftest.$ac_objext'
     2782  { (eval echo "$as_me:2782: \"$ac_try\"") >&5
     2783  (eval $ac_try) 2>&5
     2784  ac_status=$?
     2785  echo "$as_me:2785: \$? = $ac_status" >&5
     2786  (exit $ac_status); }; }; then
     2787  ac_hi=$ac_mid; break
     2788else
     2789  echo "$as_me: failed program was:" >&5
     2790cat conftest.$ac_ext >&5
     2791ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
     2792fi
     2793rm -f conftest.$ac_objext conftest.$ac_ext
     2794  done
     2795else
     2796  echo "$as_me: failed program was:" >&5
     2797cat conftest.$ac_ext >&5
     2798ac_hi=-1 ac_mid=-1
     2799  while :; do
     2800    cat >conftest.$ac_ext <<_ACEOF
     2801#line 2801 "configure"
     2802#include "confdefs.h"
     2803$ac_includes_default
     2804int
     2805main ()
     2806{
     2807int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
     2808  ;
     2809  return 0;
     2810}
     2811_ACEOF
     2812rm -f conftest.$ac_objext
     2813if { (eval echo "$as_me:2813: \"$ac_compile\"") >&5
     2814  (eval $ac_compile) 2>&5
     2815  ac_status=$?
     2816  echo "$as_me:2816: \$? = $ac_status" >&5
     2817  (exit $ac_status); } &&
     2818         { ac_try='test -s conftest.$ac_objext'
     2819  { (eval echo "$as_me:2819: \"$ac_try\"") >&5
     2820  (eval $ac_try) 2>&5
     2821  ac_status=$?
     2822  echo "$as_me:2822: \$? = $ac_status" >&5
     2823  (exit $ac_status); }; }; then
     2824  ac_lo=$ac_mid; break
     2825else
     2826  echo "$as_me: failed program was:" >&5
     2827cat conftest.$ac_ext >&5
     2828ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
     2829fi
     2830rm -f conftest.$ac_objext conftest.$ac_ext
     2831  done
     2832fi
     2833rm -f conftest.$ac_objext conftest.$ac_ext
     2834# Binary search between lo and hi bounds.
     2835while test "x$ac_lo" != "x$ac_hi"; do
     2836  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     2837  cat >conftest.$ac_ext <<_ACEOF
     2838#line 2838 "configure"
     2839#include "confdefs.h"
     2840$ac_includes_default
     2841int
     2842main ()
     2843{
     2844int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
     2845  ;
     2846  return 0;
     2847}
     2848_ACEOF
     2849rm -f conftest.$ac_objext
     2850if { (eval echo "$as_me:2850: \"$ac_compile\"") >&5
     2851  (eval $ac_compile) 2>&5
     2852  ac_status=$?
     2853  echo "$as_me:2853: \$? = $ac_status" >&5
     2854  (exit $ac_status); } &&
     2855         { ac_try='test -s conftest.$ac_objext'
     2856  { (eval echo "$as_me:2856: \"$ac_try\"") >&5
     2857  (eval $ac_try) 2>&5
     2858  ac_status=$?
     2859  echo "$as_me:2859: \$? = $ac_status" >&5
     2860  (exit $ac_status); }; }; then
     2861  ac_hi=$ac_mid
     2862else
     2863  echo "$as_me: failed program was:" >&5
     2864cat conftest.$ac_ext >&5
     2865ac_lo=`expr $ac_mid + 1`
     2866fi
     2867rm -f conftest.$ac_objext conftest.$ac_ext
     2868done
     2869ac_cv_sizeof_short=$ac_lo
     2870else
     2871  if test "$cross_compiling" = yes; then
     2872  { { echo "$as_me:2872: error: cannot run test program while cross compiling" >&5
     2873echo "$as_me: error: cannot run test program while cross compiling" >&2;}
     2874   { (exit 1); exit 1; }; }
     2875else
     2876  cat >conftest.$ac_ext <<_ACEOF
     2877#line 2877 "configure"
     2878#include "confdefs.h"
     2879$ac_includes_default
     2880int
     2881main ()
     2882{
     2883FILE *f = fopen ("conftest.val", "w");
     2884if (!f)
     2885  exit (1);
     2886fprintf (f, "%d", (sizeof (short)));
     2887fclose (f);
     2888  ;
     2889  return 0;
     2890}
     2891_ACEOF
     2892rm -f conftest$ac_exeext
     2893if { (eval echo "$as_me:2893: \"$ac_link\"") >&5
     2894  (eval $ac_link) 2>&5
     2895  ac_status=$?
     2896  echo "$as_me:2896: \$? = $ac_status" >&5
     2897  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     2898  { (eval echo "$as_me:2898: \"$ac_try\"") >&5
     2899  (eval $ac_try) 2>&5
     2900  ac_status=$?
     2901  echo "$as_me:2901: \$? = $ac_status" >&5
     2902  (exit $ac_status); }; }; then
     2903  ac_cv_sizeof_short=`cat conftest.val`
     2904else
     2905  echo "$as_me: program exited with status $ac_status" >&5
     2906echo "$as_me: failed program was:" >&5
     2907cat conftest.$ac_ext >&5
     2908fi
     2909rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     2910fi
     2911fi
     2912rm -f conftest.val
     2913else
    11112914  ac_cv_sizeof_short=0
    11122915fi
    1113 rm -fr conftest*
    1114 fi
    1115 
    1116 fi
    1117 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
    1118 cat >> confdefs.h <<EOF
     2916fi
     2917echo "$as_me:2917: result: $ac_cv_sizeof_short" >&5
     2918echo "${ECHO_T}$ac_cv_sizeof_short" >&6
     2919cat >>confdefs.h <<EOF
    11192920#define SIZEOF_SHORT $ac_cv_sizeof_short
    11202921EOF
    11212922
    1122 
    1123 echo $ac_n "checking size of int""... $ac_c" 1>&6
    1124 echo "configure:1125: checking size of int" >&5
    1125 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    1126   echo $ac_n "(cached) $ac_c" 1>&6
    1127 else
     2923echo "$as_me:2923: checking for int" >&5
     2924echo $ECHO_N "checking for int... $ECHO_C" >&6
     2925if test "${ac_cv_type_int+set}" = set; then
     2926  echo $ECHO_N "(cached) $ECHO_C" >&6
     2927else
     2928  cat >conftest.$ac_ext <<_ACEOF
     2929#line 2929 "configure"
     2930#include "confdefs.h"
     2931$ac_includes_default
     2932int
     2933main ()
     2934{
     2935if ((int *) 0)
     2936  return 0;
     2937if (sizeof (int))
     2938  return 0;
     2939  ;
     2940  return 0;
     2941}
     2942_ACEOF
     2943rm -f conftest.$ac_objext
     2944if { (eval echo "$as_me:2944: \"$ac_compile\"") >&5
     2945  (eval $ac_compile) 2>&5
     2946  ac_status=$?
     2947  echo "$as_me:2947: \$? = $ac_status" >&5
     2948  (exit $ac_status); } &&
     2949         { ac_try='test -s conftest.$ac_objext'
     2950  { (eval echo "$as_me:2950: \"$ac_try\"") >&5
     2951  (eval $ac_try) 2>&5
     2952  ac_status=$?
     2953  echo "$as_me:2953: \$? = $ac_status" >&5
     2954  (exit $ac_status); }; }; then
     2955  ac_cv_type_int=yes
     2956else
     2957  echo "$as_me: failed program was:" >&5
     2958cat conftest.$ac_ext >&5
     2959ac_cv_type_int=no
     2960fi
     2961rm -f conftest.$ac_objext conftest.$ac_ext
     2962fi
     2963echo "$as_me:2963: result: $ac_cv_type_int" >&5
     2964echo "${ECHO_T}$ac_cv_type_int" >&6
     2965
     2966echo "$as_me:2966: checking size of int" >&5
     2967echo $ECHO_N "checking size of int... $ECHO_C" >&6
     2968if test "${ac_cv_sizeof_int+set}" = set; then
     2969  echo $ECHO_N "(cached) $ECHO_C" >&6
     2970else
     2971  if test "$ac_cv_type_int" = yes; then
    11282972  if test "$cross_compiling" = yes; then
    1129     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
    1130 else
    1131   cat > conftest.$ac_ext <<EOF
    1132 #line 1133 "configure"
    1133 #include "confdefs.h"
    1134 #include <stdio.h>
    1135 main()
    1136 {
    1137   FILE *f=fopen("conftestval", "w");
    1138   if (!f) exit(1);
    1139   fprintf(f, "%d\n", sizeof(int));
    1140   exit(0);
    1141 }
    1142 EOF
    1143 if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1144 then
    1145   ac_cv_sizeof_int=`cat conftestval`
    1146 else
    1147   echo "configure: failed program was:" >&5
    1148   cat conftest.$ac_ext >&5
    1149   rm -fr conftest*
     2973  # Depending upon the size, compute the lo and hi bounds.
     2974cat >conftest.$ac_ext <<_ACEOF
     2975#line 2975 "configure"
     2976#include "confdefs.h"
     2977$ac_includes_default
     2978int
     2979main ()
     2980{
     2981int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
     2982  ;
     2983  return 0;
     2984}
     2985_ACEOF
     2986rm -f conftest.$ac_objext
     2987if { (eval echo "$as_me:2987: \"$ac_compile\"") >&5
     2988  (eval $ac_compile) 2>&5
     2989  ac_status=$?
     2990  echo "$as_me:2990: \$? = $ac_status" >&5
     2991  (exit $ac_status); } &&
     2992         { ac_try='test -s conftest.$ac_objext'
     2993  { (eval echo "$as_me:2993: \"$ac_try\"") >&5
     2994  (eval $ac_try) 2>&5
     2995  ac_status=$?
     2996  echo "$as_me:2996: \$? = $ac_status" >&5
     2997  (exit $ac_status); }; }; then
     2998  ac_lo=0 ac_mid=0
     2999  while :; do
     3000    cat >conftest.$ac_ext <<_ACEOF
     3001#line 3001 "configure"
     3002#include "confdefs.h"
     3003$ac_includes_default
     3004int
     3005main ()
     3006{
     3007int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
     3008  ;
     3009  return 0;
     3010}
     3011_ACEOF
     3012rm -f conftest.$ac_objext
     3013if { (eval echo "$as_me:3013: \"$ac_compile\"") >&5
     3014  (eval $ac_compile) 2>&5
     3015  ac_status=$?
     3016  echo "$as_me:3016: \$? = $ac_status" >&5
     3017  (exit $ac_status); } &&
     3018         { ac_try='test -s conftest.$ac_objext'
     3019  { (eval echo "$as_me:3019: \"$ac_try\"") >&5
     3020  (eval $ac_try) 2>&5
     3021  ac_status=$?
     3022  echo "$as_me:3022: \$? = $ac_status" >&5
     3023  (exit $ac_status); }; }; then
     3024  ac_hi=$ac_mid; break
     3025else
     3026  echo "$as_me: failed program was:" >&5
     3027cat conftest.$ac_ext >&5
     3028ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
     3029fi
     3030rm -f conftest.$ac_objext conftest.$ac_ext
     3031  done
     3032else
     3033  echo "$as_me: failed program was:" >&5
     3034cat conftest.$ac_ext >&5
     3035ac_hi=-1 ac_mid=-1
     3036  while :; do
     3037    cat >conftest.$ac_ext <<_ACEOF
     3038#line 3038 "configure"
     3039#include "confdefs.h"
     3040$ac_includes_default
     3041int
     3042main ()
     3043{
     3044int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
     3045  ;
     3046  return 0;
     3047}
     3048_ACEOF
     3049rm -f conftest.$ac_objext
     3050if { (eval echo "$as_me:3050: \"$ac_compile\"") >&5
     3051  (eval $ac_compile) 2>&5
     3052  ac_status=$?
     3053  echo "$as_me:3053: \$? = $ac_status" >&5
     3054  (exit $ac_status); } &&
     3055         { ac_try='test -s conftest.$ac_objext'
     3056  { (eval echo "$as_me:3056: \"$ac_try\"") >&5
     3057  (eval $ac_try) 2>&5
     3058  ac_status=$?
     3059  echo "$as_me:3059: \$? = $ac_status" >&5
     3060  (exit $ac_status); }; }; then
     3061  ac_lo=$ac_mid; break
     3062else
     3063  echo "$as_me: failed program was:" >&5
     3064cat conftest.$ac_ext >&5
     3065ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
     3066fi
     3067rm -f conftest.$ac_objext conftest.$ac_ext
     3068  done
     3069fi
     3070rm -f conftest.$ac_objext conftest.$ac_ext
     3071# Binary search between lo and hi bounds.
     3072while test "x$ac_lo" != "x$ac_hi"; do
     3073  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     3074  cat >conftest.$ac_ext <<_ACEOF
     3075#line 3075 "configure"
     3076#include "confdefs.h"
     3077$ac_includes_default
     3078int
     3079main ()
     3080{
     3081int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
     3082  ;
     3083  return 0;
     3084}
     3085_ACEOF
     3086rm -f conftest.$ac_objext
     3087if { (eval echo "$as_me:3087: \"$ac_compile\"") >&5
     3088  (eval $ac_compile) 2>&5
     3089  ac_status=$?
     3090  echo "$as_me:3090: \$? = $ac_status" >&5
     3091  (exit $ac_status); } &&
     3092         { ac_try='test -s conftest.$ac_objext'
     3093  { (eval echo "$as_me:3093: \"$ac_try\"") >&5
     3094  (eval $ac_try) 2>&5
     3095  ac_status=$?
     3096  echo "$as_me:3096: \$? = $ac_status" >&5
     3097  (exit $ac_status); }; }; then
     3098  ac_hi=$ac_mid
     3099else
     3100  echo "$as_me: failed program was:" >&5
     3101cat conftest.$ac_ext >&5
     3102ac_lo=`expr $ac_mid + 1`
     3103fi
     3104rm -f conftest.$ac_objext conftest.$ac_ext
     3105done
     3106ac_cv_sizeof_int=$ac_lo
     3107else
     3108  if test "$cross_compiling" = yes; then
     3109  { { echo "$as_me:3109: error: cannot run test program while cross compiling" >&5
     3110echo "$as_me: error: cannot run test program while cross compiling" >&2;}
     3111   { (exit 1); exit 1; }; }
     3112else
     3113  cat >conftest.$ac_ext <<_ACEOF
     3114#line 3114 "configure"
     3115#include "confdefs.h"
     3116$ac_includes_default
     3117int
     3118main ()
     3119{
     3120FILE *f = fopen ("conftest.val", "w");
     3121if (!f)
     3122  exit (1);
     3123fprintf (f, "%d", (sizeof (int)));
     3124fclose (f);
     3125  ;
     3126  return 0;
     3127}
     3128_ACEOF
     3129rm -f conftest$ac_exeext
     3130if { (eval echo "$as_me:3130: \"$ac_link\"") >&5
     3131  (eval $ac_link) 2>&5
     3132  ac_status=$?
     3133  echo "$as_me:3133: \$? = $ac_status" >&5
     3134  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3135  { (eval echo "$as_me:3135: \"$ac_try\"") >&5
     3136  (eval $ac_try) 2>&5
     3137  ac_status=$?
     3138  echo "$as_me:3138: \$? = $ac_status" >&5
     3139  (exit $ac_status); }; }; then
     3140  ac_cv_sizeof_int=`cat conftest.val`
     3141else
     3142  echo "$as_me: program exited with status $ac_status" >&5
     3143echo "$as_me: failed program was:" >&5
     3144cat conftest.$ac_ext >&5
     3145fi
     3146rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3147fi
     3148fi
     3149rm -f conftest.val
     3150else
    11503151  ac_cv_sizeof_int=0
    11513152fi
    1152 rm -fr conftest*
    1153 fi
    1154 
    1155 fi
    1156 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
    1157 cat >> confdefs.h <<EOF
     3153fi
     3154echo "$as_me:3154: result: $ac_cv_sizeof_int" >&5
     3155echo "${ECHO_T}$ac_cv_sizeof_int" >&6
     3156cat >>confdefs.h <<EOF
    11583157#define SIZEOF_INT $ac_cv_sizeof_int
    11593158EOF
    11603159
    1161 
    1162 echo $ac_n "checking size of long""... $ac_c" 1>&6
    1163 echo "configure:1164: checking size of long" >&5
    1164 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    1165   echo $ac_n "(cached) $ac_c" 1>&6
    1166 else
     3160echo "$as_me:3160: checking for long" >&5
     3161echo $ECHO_N "checking for long... $ECHO_C" >&6
     3162if test "${ac_cv_type_long+set}" = set; then
     3163  echo $ECHO_N "(cached) $ECHO_C" >&6
     3164else
     3165  cat >conftest.$ac_ext <<_ACEOF
     3166#line 3166 "configure"
     3167#include "confdefs.h"
     3168$ac_includes_default
     3169int
     3170main ()
     3171{
     3172if ((long *) 0)
     3173  return 0;
     3174if (sizeof (long))
     3175  return 0;
     3176  ;
     3177  return 0;
     3178}
     3179_ACEOF
     3180rm -f conftest.$ac_objext
     3181if { (eval echo "$as_me:3181: \"$ac_compile\"") >&5
     3182  (eval $ac_compile) 2>&5
     3183  ac_status=$?
     3184  echo "$as_me:3184: \$? = $ac_status" >&5
     3185  (exit $ac_status); } &&
     3186         { ac_try='test -s conftest.$ac_objext'
     3187  { (eval echo "$as_me:3187: \"$ac_try\"") >&5
     3188  (eval $ac_try) 2>&5
     3189  ac_status=$?
     3190  echo "$as_me:3190: \$? = $ac_status" >&5
     3191  (exit $ac_status); }; }; then
     3192  ac_cv_type_long=yes
     3193else
     3194  echo "$as_me: failed program was:" >&5
     3195cat conftest.$ac_ext >&5
     3196ac_cv_type_long=no
     3197fi
     3198rm -f conftest.$ac_objext conftest.$ac_ext
     3199fi
     3200echo "$as_me:3200: result: $ac_cv_type_long" >&5
     3201echo "${ECHO_T}$ac_cv_type_long" >&6
     3202
     3203echo "$as_me:3203: checking size of long" >&5
     3204echo $ECHO_N "checking size of long... $ECHO_C" >&6
     3205if test "${ac_cv_sizeof_long+set}" = set; then
     3206  echo $ECHO_N "(cached) $ECHO_C" >&6
     3207else
     3208  if test "$ac_cv_type_long" = yes; then
    11673209  if test "$cross_compiling" = yes; then
    1168     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
    1169 else
    1170   cat > conftest.$ac_ext <<EOF
    1171 #line 1172 "configure"
    1172 #include "confdefs.h"
    1173 #include <stdio.h>
    1174 main()
    1175 {
    1176   FILE *f=fopen("conftestval", "w");
    1177   if (!f) exit(1);
    1178   fprintf(f, "%d\n", sizeof(long));
    1179   exit(0);
    1180 }
    1181 EOF
    1182 if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1183 then
    1184   ac_cv_sizeof_long=`cat conftestval`
    1185 else
    1186   echo "configure: failed program was:" >&5
    1187   cat conftest.$ac_ext >&5
    1188   rm -fr conftest*
     3210  # Depending upon the size, compute the lo and hi bounds.
     3211cat >conftest.$ac_ext <<_ACEOF
     3212#line 3212 "configure"
     3213#include "confdefs.h"
     3214$ac_includes_default
     3215int
     3216main ()
     3217{
     3218int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
     3219  ;
     3220  return 0;
     3221}
     3222_ACEOF
     3223rm -f conftest.$ac_objext
     3224if { (eval echo "$as_me:3224: \"$ac_compile\"") >&5
     3225  (eval $ac_compile) 2>&5
     3226  ac_status=$?
     3227  echo "$as_me:3227: \$? = $ac_status" >&5
     3228  (exit $ac_status); } &&
     3229         { ac_try='test -s conftest.$ac_objext'
     3230  { (eval echo "$as_me:3230: \"$ac_try\"") >&5
     3231  (eval $ac_try) 2>&5
     3232  ac_status=$?
     3233  echo "$as_me:3233: \$? = $ac_status" >&5
     3234  (exit $ac_status); }; }; then
     3235  ac_lo=0 ac_mid=0
     3236  while :; do
     3237    cat >conftest.$ac_ext <<_ACEOF
     3238#line 3238 "configure"
     3239#include "confdefs.h"
     3240$ac_includes_default
     3241int
     3242main ()
     3243{
     3244int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
     3245  ;
     3246  return 0;
     3247}
     3248_ACEOF
     3249rm -f conftest.$ac_objext
     3250if { (eval echo "$as_me:3250: \"$ac_compile\"") >&5
     3251  (eval $ac_compile) 2>&5
     3252  ac_status=$?
     3253  echo "$as_me:3253: \$? = $ac_status" >&5
     3254  (exit $ac_status); } &&
     3255         { ac_try='test -s conftest.$ac_objext'
     3256  { (eval echo "$as_me:3256: \"$ac_try\"") >&5
     3257  (eval $ac_try) 2>&5
     3258  ac_status=$?
     3259  echo "$as_me:3259: \$? = $ac_status" >&5
     3260  (exit $ac_status); }; }; then
     3261  ac_hi=$ac_mid; break
     3262else
     3263  echo "$as_me: failed program was:" >&5
     3264cat conftest.$ac_ext >&5
     3265ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
     3266fi
     3267rm -f conftest.$ac_objext conftest.$ac_ext
     3268  done
     3269else
     3270  echo "$as_me: failed program was:" >&5
     3271cat conftest.$ac_ext >&5
     3272ac_hi=-1 ac_mid=-1
     3273  while :; do
     3274    cat >conftest.$ac_ext <<_ACEOF
     3275#line 3275 "configure"
     3276#include "confdefs.h"
     3277$ac_includes_default
     3278int
     3279main ()
     3280{
     3281int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
     3282  ;
     3283  return 0;
     3284}
     3285_ACEOF
     3286rm -f conftest.$ac_objext
     3287if { (eval echo "$as_me:3287: \"$ac_compile\"") >&5
     3288  (eval $ac_compile) 2>&5
     3289  ac_status=$?
     3290  echo "$as_me:3290: \$? = $ac_status" >&5
     3291  (exit $ac_status); } &&
     3292         { ac_try='test -s conftest.$ac_objext'
     3293  { (eval echo "$as_me:3293: \"$ac_try\"") >&5
     3294  (eval $ac_try) 2>&5
     3295  ac_status=$?
     3296  echo "$as_me:3296: \$? = $ac_status" >&5
     3297  (exit $ac_status); }; }; then
     3298  ac_lo=$ac_mid; break
     3299else
     3300  echo "$as_me: failed program was:" >&5
     3301cat conftest.$ac_ext >&5
     3302ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
     3303fi
     3304rm -f conftest.$ac_objext conftest.$ac_ext
     3305  done
     3306fi
     3307rm -f conftest.$ac_objext conftest.$ac_ext
     3308# Binary search between lo and hi bounds.
     3309while test "x$ac_lo" != "x$ac_hi"; do
     3310  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     3311  cat >conftest.$ac_ext <<_ACEOF
     3312#line 3312 "configure"
     3313#include "confdefs.h"
     3314$ac_includes_default
     3315int
     3316main ()
     3317{
     3318int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
     3319  ;
     3320  return 0;
     3321}
     3322_ACEOF
     3323rm -f conftest.$ac_objext
     3324if { (eval echo "$as_me:3324: \"$ac_compile\"") >&5
     3325  (eval $ac_compile) 2>&5
     3326  ac_status=$?
     3327  echo "$as_me:3327: \$? = $ac_status" >&5
     3328  (exit $ac_status); } &&
     3329         { ac_try='test -s conftest.$ac_objext'
     3330  { (eval echo "$as_me:3330: \"$ac_try\"") >&5
     3331  (eval $ac_try) 2>&5
     3332  ac_status=$?
     3333  echo "$as_me:3333: \$? = $ac_status" >&5
     3334  (exit $ac_status); }; }; then
     3335  ac_hi=$ac_mid
     3336else
     3337  echo "$as_me: failed program was:" >&5
     3338cat conftest.$ac_ext >&5
     3339ac_lo=`expr $ac_mid + 1`
     3340fi
     3341rm -f conftest.$ac_objext conftest.$ac_ext
     3342done
     3343ac_cv_sizeof_long=$ac_lo
     3344else
     3345  if test "$cross_compiling" = yes; then
     3346  { { echo "$as_me:3346: error: cannot run test program while cross compiling" >&5
     3347echo "$as_me: error: cannot run test program while cross compiling" >&2;}
     3348   { (exit 1); exit 1; }; }
     3349else
     3350  cat >conftest.$ac_ext <<_ACEOF
     3351#line 3351 "configure"
     3352#include "confdefs.h"
     3353$ac_includes_default
     3354int
     3355main ()
     3356{
     3357FILE *f = fopen ("conftest.val", "w");
     3358if (!f)
     3359  exit (1);
     3360fprintf (f, "%d", (sizeof (long)));
     3361fclose (f);
     3362  ;
     3363  return 0;
     3364}
     3365_ACEOF
     3366rm -f conftest$ac_exeext
     3367if { (eval echo "$as_me:3367: \"$ac_link\"") >&5
     3368  (eval $ac_link) 2>&5
     3369  ac_status=$?
     3370  echo "$as_me:3370: \$? = $ac_status" >&5
     3371  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3372  { (eval echo "$as_me:3372: \"$ac_try\"") >&5
     3373  (eval $ac_try) 2>&5
     3374  ac_status=$?
     3375  echo "$as_me:3375: \$? = $ac_status" >&5
     3376  (exit $ac_status); }; }; then
     3377  ac_cv_sizeof_long=`cat conftest.val`
     3378else
     3379  echo "$as_me: program exited with status $ac_status" >&5
     3380echo "$as_me: failed program was:" >&5
     3381cat conftest.$ac_ext >&5
     3382fi
     3383rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3384fi
     3385fi
     3386rm -f conftest.val
     3387else
    11893388  ac_cv_sizeof_long=0
    11903389fi
    1191 rm -fr conftest*
    1192 fi
    1193 
    1194 fi
    1195 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
    1196 cat >> confdefs.h <<EOF
     3390fi
     3391echo "$as_me:3391: result: $ac_cv_sizeof_long" >&5
     3392echo "${ECHO_T}$ac_cv_sizeof_long" >&6
     3393cat >>confdefs.h <<EOF
    11973394#define SIZEOF_LONG $ac_cv_sizeof_long
    11983395EOF
    11993396
    1200 
    1201 echo $ac_n "checking size of long long""... $ac_c" 1>&6
    1202 echo "configure:1203: checking size of long long" >&5
    1203 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
    1204   echo $ac_n "(cached) $ac_c" 1>&6
    1205 else
     3397echo "$as_me:3397: checking for long long" >&5
     3398echo $ECHO_N "checking for long long... $ECHO_C" >&6
     3399if test "${ac_cv_type_long_long+set}" = set; then
     3400  echo $ECHO_N "(cached) $ECHO_C" >&6
     3401else
     3402  cat >conftest.$ac_ext <<_ACEOF
     3403#line 3403 "configure"
     3404#include "confdefs.h"
     3405$ac_includes_default
     3406int
     3407main ()
     3408{
     3409if ((long long *) 0)
     3410  return 0;
     3411if (sizeof (long long))
     3412  return 0;
     3413  ;
     3414  return 0;
     3415}
     3416_ACEOF
     3417rm -f conftest.$ac_objext
     3418if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
     3419  (eval $ac_compile) 2>&5
     3420  ac_status=$?
     3421  echo "$as_me:3421: \$? = $ac_status" >&5
     3422  (exit $ac_status); } &&
     3423         { ac_try='test -s conftest.$ac_objext'
     3424  { (eval echo "$as_me:3424: \"$ac_try\"") >&5
     3425  (eval $ac_try) 2>&5
     3426  ac_status=$?
     3427  echo "$as_me:3427: \$? = $ac_status" >&5
     3428  (exit $ac_status); }; }; then
     3429  ac_cv_type_long_long=yes
     3430else
     3431  echo "$as_me: failed program was:" >&5
     3432cat conftest.$ac_ext >&5
     3433ac_cv_type_long_long=no
     3434fi
     3435rm -f conftest.$ac_objext conftest.$ac_ext
     3436fi
     3437echo "$as_me:3437: result: $ac_cv_type_long_long" >&5
     3438echo "${ECHO_T}$ac_cv_type_long_long" >&6
     3439
     3440echo "$as_me:3440: checking size of long long" >&5
     3441echo $ECHO_N "checking size of long long... $ECHO_C" >&6
     3442if test "${ac_cv_sizeof_long_long+set}" = set; then
     3443  echo $ECHO_N "(cached) $ECHO_C" >&6
     3444else
     3445  if test "$ac_cv_type_long_long" = yes; then
    12063446  if test "$cross_compiling" = yes; then
    1207     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
    1208 else
    1209   cat > conftest.$ac_ext <<EOF
    1210 #line 1211 "configure"
    1211 #include "confdefs.h"
    1212 #include <stdio.h>
    1213 main()
    1214 {
    1215   FILE *f=fopen("conftestval", "w");
    1216   if (!f) exit(1);
    1217   fprintf(f, "%d\n", sizeof(long long));
    1218   exit(0);
    1219 }
    1220 EOF
    1221 if { (eval echo configure:1222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1222 then
    1223   ac_cv_sizeof_long_long=`cat conftestval`
    1224 else
    1225   echo "configure: failed program was:" >&5
    1226   cat conftest.$ac_ext >&5
    1227   rm -fr conftest*
     3447  # Depending upon the size, compute the lo and hi bounds.
     3448cat >conftest.$ac_ext <<_ACEOF
     3449#line 3449 "configure"
     3450#include "confdefs.h"
     3451$ac_includes_default
     3452int
     3453main ()
     3454{
     3455int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
     3456  ;
     3457  return 0;
     3458}
     3459_ACEOF
     3460rm -f conftest.$ac_objext
     3461if { (eval echo "$as_me:3461: \"$ac_compile\"") >&5
     3462  (eval $ac_compile) 2>&5
     3463  ac_status=$?
     3464  echo "$as_me:3464: \$? = $ac_status" >&5
     3465  (exit $ac_status); } &&
     3466         { ac_try='test -s conftest.$ac_objext'
     3467  { (eval echo "$as_me:3467: \"$ac_try\"") >&5
     3468  (eval $ac_try) 2>&5
     3469  ac_status=$?
     3470  echo "$as_me:3470: \$? = $ac_status" >&5
     3471  (exit $ac_status); }; }; then
     3472  ac_lo=0 ac_mid=0
     3473  while :; do
     3474    cat >conftest.$ac_ext <<_ACEOF
     3475#line 3475 "configure"
     3476#include "confdefs.h"
     3477$ac_includes_default
     3478int
     3479main ()
     3480{
     3481int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
     3482  ;
     3483  return 0;
     3484}
     3485_ACEOF
     3486rm -f conftest.$ac_objext
     3487if { (eval echo "$as_me:3487: \"$ac_compile\"") >&5
     3488  (eval $ac_compile) 2>&5
     3489  ac_status=$?
     3490  echo "$as_me:3490: \$? = $ac_status" >&5
     3491  (exit $ac_status); } &&
     3492         { ac_try='test -s conftest.$ac_objext'
     3493  { (eval echo "$as_me:3493: \"$ac_try\"") >&5
     3494  (eval $ac_try) 2>&5
     3495  ac_status=$?
     3496  echo "$as_me:3496: \$? = $ac_status" >&5
     3497  (exit $ac_status); }; }; then
     3498  ac_hi=$ac_mid; break
     3499else
     3500  echo "$as_me: failed program was:" >&5
     3501cat conftest.$ac_ext >&5
     3502ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
     3503fi
     3504rm -f conftest.$ac_objext conftest.$ac_ext
     3505  done
     3506else
     3507  echo "$as_me: failed program was:" >&5
     3508cat conftest.$ac_ext >&5
     3509ac_hi=-1 ac_mid=-1
     3510  while :; do
     3511    cat >conftest.$ac_ext <<_ACEOF
     3512#line 3512 "configure"
     3513#include "confdefs.h"
     3514$ac_includes_default
     3515int
     3516main ()
     3517{
     3518int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
     3519  ;
     3520  return 0;
     3521}
     3522_ACEOF
     3523rm -f conftest.$ac_objext
     3524if { (eval echo "$as_me:3524: \"$ac_compile\"") >&5
     3525  (eval $ac_compile) 2>&5
     3526  ac_status=$?
     3527  echo "$as_me:3527: \$? = $ac_status" >&5
     3528  (exit $ac_status); } &&
     3529         { ac_try='test -s conftest.$ac_objext'
     3530  { (eval echo "$as_me:3530: \"$ac_try\"") >&5
     3531  (eval $ac_try) 2>&5
     3532  ac_status=$?
     3533  echo "$as_me:3533: \$? = $ac_status" >&5
     3534  (exit $ac_status); }; }; then
     3535  ac_lo=$ac_mid; break
     3536else
     3537  echo "$as_me: failed program was:" >&5
     3538cat conftest.$ac_ext >&5
     3539ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
     3540fi
     3541rm -f conftest.$ac_objext conftest.$ac_ext
     3542  done
     3543fi
     3544rm -f conftest.$ac_objext conftest.$ac_ext
     3545# Binary search between lo and hi bounds.
     3546while test "x$ac_lo" != "x$ac_hi"; do
     3547  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     3548  cat >conftest.$ac_ext <<_ACEOF
     3549#line 3549 "configure"
     3550#include "confdefs.h"
     3551$ac_includes_default
     3552int
     3553main ()
     3554{
     3555int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
     3556  ;
     3557  return 0;
     3558}
     3559_ACEOF
     3560rm -f conftest.$ac_objext
     3561if { (eval echo "$as_me:3561: \"$ac_compile\"") >&5
     3562  (eval $ac_compile) 2>&5
     3563  ac_status=$?
     3564  echo "$as_me:3564: \$? = $ac_status" >&5
     3565  (exit $ac_status); } &&
     3566         { ac_try='test -s conftest.$ac_objext'
     3567  { (eval echo "$as_me:3567: \"$ac_try\"") >&5
     3568  (eval $ac_try) 2>&5
     3569  ac_status=$?
     3570  echo "$as_me:3570: \$? = $ac_status" >&5
     3571  (exit $ac_status); }; }; then
     3572  ac_hi=$ac_mid
     3573else
     3574  echo "$as_me: failed program was:" >&5
     3575cat conftest.$ac_ext >&5
     3576ac_lo=`expr $ac_mid + 1`
     3577fi
     3578rm -f conftest.$ac_objext conftest.$ac_ext
     3579done
     3580ac_cv_sizeof_long_long=$ac_lo
     3581else
     3582  if test "$cross_compiling" = yes; then
     3583  { { echo "$as_me:3583: error: cannot run test program while cross compiling" >&5
     3584echo "$as_me: error: cannot run test program while cross compiling" >&2;}
     3585   { (exit 1); exit 1; }; }
     3586else
     3587  cat >conftest.$ac_ext <<_ACEOF
     3588#line 3588 "configure"
     3589#include "confdefs.h"
     3590$ac_includes_default
     3591int
     3592main ()
     3593{
     3594FILE *f = fopen ("conftest.val", "w");
     3595if (!f)
     3596  exit (1);
     3597fprintf (f, "%d", (sizeof (long long)));
     3598fclose (f);
     3599  ;
     3600  return 0;
     3601}
     3602_ACEOF
     3603rm -f conftest$ac_exeext
     3604if { (eval echo "$as_me:3604: \"$ac_link\"") >&5
     3605  (eval $ac_link) 2>&5
     3606  ac_status=$?
     3607  echo "$as_me:3607: \$? = $ac_status" >&5
     3608  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3609  { (eval echo "$as_me:3609: \"$ac_try\"") >&5
     3610  (eval $ac_try) 2>&5
     3611  ac_status=$?
     3612  echo "$as_me:3612: \$? = $ac_status" >&5
     3613  (exit $ac_status); }; }; then
     3614  ac_cv_sizeof_long_long=`cat conftest.val`
     3615else
     3616  echo "$as_me: program exited with status $ac_status" >&5
     3617echo "$as_me: failed program was:" >&5
     3618cat conftest.$ac_ext >&5
     3619fi
     3620rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3621fi
     3622fi
     3623rm -f conftest.val
     3624else
    12283625  ac_cv_sizeof_long_long=0
    12293626fi
    1230 rm -fr conftest*
    1231 fi
    1232 
    1233 fi
    1234 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
    1235 cat >> confdefs.h <<EOF
     3627fi
     3628echo "$as_me:3628: result: $ac_cv_sizeof_long_long" >&5
     3629echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
     3630cat >>confdefs.h <<EOF
    12363631#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
    12373632EOF
    12383633
    1239 
    1240 echo $ac_n "checking size of float""... $ac_c" 1>&6
    1241 echo "configure:1242: checking size of float" >&5
    1242 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
    1243   echo $ac_n "(cached) $ac_c" 1>&6
    1244 else
     3634echo "$as_me:3634: checking for float" >&5
     3635echo $ECHO_N "checking for float... $ECHO_C" >&6
     3636if test "${ac_cv_type_float+set}" = set; then
     3637  echo $ECHO_N "(cached) $ECHO_C" >&6
     3638else
     3639  cat >conftest.$ac_ext <<_ACEOF
     3640#line 3640 "configure"
     3641#include "confdefs.h"
     3642$ac_includes_default
     3643int
     3644main ()
     3645{
     3646if ((float *) 0)
     3647  return 0;
     3648if (sizeof (float))
     3649  return 0;
     3650  ;
     3651  return 0;
     3652}
     3653_ACEOF
     3654rm -f conftest.$ac_objext
     3655if { (eval echo "$as_me:3655: \"$ac_compile\"") >&5
     3656  (eval $ac_compile) 2>&5
     3657  ac_status=$?
     3658  echo "$as_me:3658: \$? = $ac_status" >&5
     3659  (exit $ac_status); } &&
     3660         { ac_try='test -s conftest.$ac_objext'
     3661  { (eval echo "$as_me:3661: \"$ac_try\"") >&5
     3662  (eval $ac_try) 2>&5
     3663  ac_status=$?
     3664  echo "$as_me:3664: \$? = $ac_status" >&5
     3665  (exit $ac_status); }; }; then
     3666  ac_cv_type_float=yes
     3667else
     3668  echo "$as_me: failed program was:" >&5
     3669cat conftest.$ac_ext >&5
     3670ac_cv_type_float=no
     3671fi
     3672rm -f conftest.$ac_objext conftest.$ac_ext
     3673fi
     3674echo "$as_me:3674: result: $ac_cv_type_float" >&5
     3675echo "${ECHO_T}$ac_cv_type_float" >&6
     3676
     3677echo "$as_me:3677: checking size of float" >&5
     3678echo $ECHO_N "checking size of float... $ECHO_C" >&6
     3679if test "${ac_cv_sizeof_float+set}" = set; then
     3680  echo $ECHO_N "(cached) $ECHO_C" >&6
     3681else
     3682  if test "$ac_cv_type_float" = yes; then
    12453683  if test "$cross_compiling" = yes; then
    1246     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
    1247 else
    1248   cat > conftest.$ac_ext <<EOF
    1249 #line 1250 "configure"
    1250 #include "confdefs.h"
    1251 #include <stdio.h>
    1252 main()
    1253 {
    1254   FILE *f=fopen("conftestval", "w");
    1255   if (!f) exit(1);
    1256   fprintf(f, "%d\n", sizeof(float));
    1257   exit(0);
    1258 }
    1259 EOF
    1260 if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1261 then
    1262   ac_cv_sizeof_float=`cat conftestval`
    1263 else
    1264   echo "configure: failed program was:" >&5
    1265   cat conftest.$ac_ext >&5
    1266   rm -fr conftest*
     3684  # Depending upon the size, compute the lo and hi bounds.
     3685cat >conftest.$ac_ext <<_ACEOF
     3686#line 3686 "configure"
     3687#include "confdefs.h"
     3688$ac_includes_default
     3689int
     3690main ()
     3691{
     3692int _array_ [1 - 2 * !((sizeof (float)) >= 0)]
     3693  ;
     3694  return 0;
     3695}
     3696_ACEOF
     3697rm -f conftest.$ac_objext
     3698if { (eval echo "$as_me:3698: \"$ac_compile\"") >&5
     3699  (eval $ac_compile) 2>&5
     3700  ac_status=$?
     3701  echo "$as_me:3701: \$? = $ac_status" >&5
     3702  (exit $ac_status); } &&
     3703         { ac_try='test -s conftest.$ac_objext'
     3704  { (eval echo "$as_me:3704: \"$ac_try\"") >&5
     3705  (eval $ac_try) 2>&5
     3706  ac_status=$?
     3707  echo "$as_me:3707: \$? = $ac_status" >&5
     3708  (exit $ac_status); }; }; then
     3709  ac_lo=0 ac_mid=0
     3710  while :; do
     3711    cat >conftest.$ac_ext <<_ACEOF
     3712#line 3712 "configure"
     3713#include "confdefs.h"
     3714$ac_includes_default
     3715int
     3716main ()
     3717{
     3718int _array_ [1 - 2 * !((sizeof (float)) <= $ac_mid)]
     3719  ;
     3720  return 0;
     3721}
     3722_ACEOF
     3723rm -f conftest.$ac_objext
     3724if { (eval echo "$as_me:3724: \"$ac_compile\"") >&5
     3725  (eval $ac_compile) 2>&5
     3726  ac_status=$?
     3727  echo "$as_me:3727: \$? = $ac_status" >&5
     3728  (exit $ac_status); } &&
     3729         { ac_try='test -s conftest.$ac_objext'
     3730  { (eval echo "$as_me:3730: \"$ac_try\"") >&5
     3731  (eval $ac_try) 2>&5
     3732  ac_status=$?
     3733  echo "$as_me:3733: \$? = $ac_status" >&5
     3734  (exit $ac_status); }; }; then
     3735  ac_hi=$ac_mid; break
     3736else
     3737  echo "$as_me: failed program was:" >&5
     3738cat conftest.$ac_ext >&5
     3739ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
     3740fi
     3741rm -f conftest.$ac_objext conftest.$ac_ext
     3742  done
     3743else
     3744  echo "$as_me: failed program was:" >&5
     3745cat conftest.$ac_ext >&5
     3746ac_hi=-1 ac_mid=-1
     3747  while :; do
     3748    cat >conftest.$ac_ext <<_ACEOF
     3749#line 3749 "configure"
     3750#include "confdefs.h"
     3751$ac_includes_default
     3752int
     3753main ()
     3754{
     3755int _array_ [1 - 2 * !((sizeof (float)) >= $ac_mid)]
     3756  ;
     3757  return 0;
     3758}
     3759_ACEOF
     3760rm -f conftest.$ac_objext
     3761if { (eval echo "$as_me:3761: \"$ac_compile\"") >&5
     3762  (eval $ac_compile) 2>&5
     3763  ac_status=$?
     3764  echo "$as_me:3764: \$? = $ac_status" >&5
     3765  (exit $ac_status); } &&
     3766         { ac_try='test -s conftest.$ac_objext'
     3767  { (eval echo "$as_me:3767: \"$ac_try\"") >&5
     3768  (eval $ac_try) 2>&5
     3769  ac_status=$?
     3770  echo "$as_me:3770: \$? = $ac_status" >&5
     3771  (exit $ac_status); }; }; then
     3772  ac_lo=$ac_mid; break
     3773else
     3774  echo "$as_me: failed program was:" >&5
     3775cat conftest.$ac_ext >&5
     3776ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
     3777fi
     3778rm -f conftest.$ac_objext conftest.$ac_ext
     3779  done
     3780fi
     3781rm -f conftest.$ac_objext conftest.$ac_ext
     3782# Binary search between lo and hi bounds.
     3783while test "x$ac_lo" != "x$ac_hi"; do
     3784  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     3785  cat >conftest.$ac_ext <<_ACEOF
     3786#line 3786 "configure"
     3787#include "confdefs.h"
     3788$ac_includes_default
     3789int
     3790main ()
     3791{
     3792int _array_ [1 - 2 * !((sizeof (float)) <= $ac_mid)]
     3793  ;
     3794  return 0;
     3795}
     3796_ACEOF
     3797rm -f conftest.$ac_objext
     3798if { (eval echo "$as_me:3798: \"$ac_compile\"") >&5
     3799  (eval $ac_compile) 2>&5
     3800  ac_status=$?
     3801  echo "$as_me:3801: \$? = $ac_status" >&5
     3802  (exit $ac_status); } &&
     3803         { ac_try='test -s conftest.$ac_objext'
     3804  { (eval echo "$as_me:3804: \"$ac_try\"") >&5
     3805  (eval $ac_try) 2>&5
     3806  ac_status=$?
     3807  echo "$as_me:3807: \$? = $ac_status" >&5
     3808  (exit $ac_status); }; }; then
     3809  ac_hi=$ac_mid
     3810else
     3811  echo "$as_me: failed program was:" >&5
     3812cat conftest.$ac_ext >&5
     3813ac_lo=`expr $ac_mid + 1`
     3814fi
     3815rm -f conftest.$ac_objext conftest.$ac_ext
     3816done
     3817ac_cv_sizeof_float=$ac_lo
     3818else
     3819  if test "$cross_compiling" = yes; then
     3820  { { echo "$as_me:3820: error: cannot run test program while cross compiling" >&5
     3821echo "$as_me: error: cannot run test program while cross compiling" >&2;}
     3822   { (exit 1); exit 1; }; }
     3823else
     3824  cat >conftest.$ac_ext <<_ACEOF
     3825#line 3825 "configure"
     3826#include "confdefs.h"
     3827$ac_includes_default
     3828int
     3829main ()
     3830{
     3831FILE *f = fopen ("conftest.val", "w");
     3832if (!f)
     3833  exit (1);
     3834fprintf (f, "%d", (sizeof (float)));
     3835fclose (f);
     3836  ;
     3837  return 0;
     3838}
     3839_ACEOF
     3840rm -f conftest$ac_exeext
     3841if { (eval echo "$as_me:3841: \"$ac_link\"") >&5
     3842  (eval $ac_link) 2>&5
     3843  ac_status=$?
     3844  echo "$as_me:3844: \$? = $ac_status" >&5
     3845  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     3846  { (eval echo "$as_me:3846: \"$ac_try\"") >&5
     3847  (eval $ac_try) 2>&5
     3848  ac_status=$?
     3849  echo "$as_me:3849: \$? = $ac_status" >&5
     3850  (exit $ac_status); }; }; then
     3851  ac_cv_sizeof_float=`cat conftest.val`
     3852else
     3853  echo "$as_me: program exited with status $ac_status" >&5
     3854echo "$as_me: failed program was:" >&5
     3855cat conftest.$ac_ext >&5
     3856fi
     3857rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     3858fi
     3859fi
     3860rm -f conftest.val
     3861else
    12673862  ac_cv_sizeof_float=0
    12683863fi
    1269 rm -fr conftest*
    1270 fi
    1271 
    1272 fi
    1273 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
    1274 cat >> confdefs.h <<EOF
     3864fi
     3865echo "$as_me:3865: result: $ac_cv_sizeof_float" >&5
     3866echo "${ECHO_T}$ac_cv_sizeof_float" >&6
     3867cat >>confdefs.h <<EOF
    12753868#define SIZEOF_FLOAT $ac_cv_sizeof_float
    12763869EOF
    12773870
    1278 
    1279 echo $ac_n "checking size of double""... $ac_c" 1>&6
    1280 echo "configure:1281: checking size of double" >&5
    1281 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    1282   echo $ac_n "(cached) $ac_c" 1>&6
    1283 else
     3871echo "$as_me:3871: checking for double" >&5
     3872echo $ECHO_N "checking for double... $ECHO_C" >&6
     3873if test "${ac_cv_type_double+set}" = set; then
     3874  echo $ECHO_N "(cached) $ECHO_C" >&6
     3875else
     3876  cat >conftest.$ac_ext <<_ACEOF
     3877#line 3877 "configure"
     3878#include "confdefs.h"
     3879$ac_includes_default
     3880int
     3881main ()
     3882{
     3883if ((double *) 0)
     3884  return 0;
     3885if (sizeof (double))
     3886  return 0;
     3887  ;
     3888  return 0;
     3889}
     3890_ACEOF
     3891rm -f conftest.$ac_objext
     3892if { (eval echo "$as_me:3892: \"$ac_compile\"") >&5
     3893  (eval $ac_compile) 2>&5
     3894  ac_status=$?
     3895  echo "$as_me:3895: \$? = $ac_status" >&5
     3896  (exit $ac_status); } &&
     3897         { ac_try='test -s conftest.$ac_objext'
     3898  { (eval echo "$as_me:3898: \"$ac_try\"") >&5
     3899  (eval $ac_try) 2>&5
     3900  ac_status=$?
     3901  echo "$as_me:3901: \$? = $ac_status" >&5
     3902  (exit $ac_status); }; }; then
     3903  ac_cv_type_double=yes
     3904else
     3905  echo "$as_me: failed program was:" >&5
     3906cat conftest.$ac_ext >&5
     3907ac_cv_type_double=no
     3908fi
     3909rm -f conftest.$ac_objext conftest.$ac_ext
     3910fi
     3911echo "$as_me:3911: result: $ac_cv_type_double" >&5
     3912echo "${ECHO_T}$ac_cv_type_double" >&6
     3913
     3914echo "$as_me:3914: checking size of double" >&5
     3915echo $ECHO_N "checking size of double... $ECHO_C" >&6
     3916if test "${ac_cv_sizeof_double+set}" = set; then
     3917  echo $ECHO_N "(cached) $ECHO_C" >&6
     3918else
     3919  if test "$ac_cv_type_double" = yes; then
    12843920  if test "$cross_compiling" = yes; then
    1285     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
    1286 else
    1287   cat > conftest.$ac_ext <<EOF
    1288 #line 1289 "configure"
    1289 #include "confdefs.h"
    1290 #include <stdio.h>
    1291 main()
    1292 {
    1293   FILE *f=fopen("conftestval", "w");
    1294   if (!f) exit(1);
    1295   fprintf(f, "%d\n", sizeof(double));
    1296   exit(0);
    1297 }
    1298 EOF
    1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1300 then
    1301   ac_cv_sizeof_double=`cat conftestval`
    1302 else
    1303   echo "configure: failed program was:" >&5
    1304   cat conftest.$ac_ext >&5
    1305   rm -fr conftest*
     3921  # Depending upon the size, compute the lo and hi bounds.
     3922cat >conftest.$ac_ext <<_ACEOF
     3923#line 3923 "configure"
     3924#include "confdefs.h"
     3925$ac_includes_default
     3926int
     3927main ()
     3928{
     3929int _array_ [1 - 2 * !((sizeof (double)) >= 0)]
     3930  ;
     3931  return 0;
     3932}
     3933_ACEOF
     3934rm -f conftest.$ac_objext
     3935if { (eval echo "$as_me:3935: \"$ac_compile\"") >&5
     3936  (eval $ac_compile) 2>&5
     3937  ac_status=$?
     3938  echo "$as_me:3938: \$? = $ac_status" >&5
     3939  (exit $ac_status); } &&
     3940         { ac_try='test -s conftest.$ac_objext'
     3941  { (eval echo "$as_me:3941: \"$ac_try\"") >&5
     3942  (eval $ac_try) 2>&5
     3943  ac_status=$?
     3944  echo "$as_me:3944: \$? = $ac_status" >&5
     3945  (exit $ac_status); }; }; then
     3946  ac_lo=0 ac_mid=0
     3947  while :; do
     3948    cat >conftest.$ac_ext <<_ACEOF
     3949#line 3949 "configure"
     3950#include "confdefs.h"
     3951$ac_includes_default
     3952int
     3953main ()
     3954{
     3955int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
     3956  ;
     3957  return 0;
     3958}
     3959_ACEOF
     3960rm -f conftest.$ac_objext
     3961if { (eval echo "$as_me:3961: \"$ac_compile\"") >&5
     3962  (eval $ac_compile) 2>&5
     3963  ac_status=$?
     3964  echo "$as_me:3964: \$? = $ac_status" >&5
     3965  (exit $ac_status); } &&
     3966         { ac_try='test -s conftest.$ac_objext'
     3967  { (eval echo "$as_me:3967: \"$ac_try\"") >&5
     3968  (eval $ac_try) 2>&5
     3969  ac_status=$?
     3970  echo "$as_me:3970: \$? = $ac_status" >&5
     3971  (exit $ac_status); }; }; then
     3972  ac_hi=$ac_mid; break
     3973else
     3974  echo "$as_me: failed program was:" >&5
     3975cat conftest.$ac_ext >&5
     3976ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
     3977fi
     3978rm -f conftest.$ac_objext conftest.$ac_ext
     3979  done
     3980else
     3981  echo "$as_me: failed program was:" >&5
     3982cat conftest.$ac_ext >&5
     3983ac_hi=-1 ac_mid=-1
     3984  while :; do
     3985    cat >conftest.$ac_ext <<_ACEOF
     3986#line 3986 "configure"
     3987#include "confdefs.h"
     3988$ac_includes_default
     3989int
     3990main ()
     3991{
     3992int _array_ [1 - 2 * !((sizeof (double)) >= $ac_mid)]
     3993  ;
     3994  return 0;
     3995}
     3996_ACEOF
     3997rm -f conftest.$ac_objext
     3998if { (eval echo "$as_me:3998: \"$ac_compile\"") >&5
     3999  (eval $ac_compile) 2>&5
     4000  ac_status=$?
     4001  echo "$as_me:4001: \$? = $ac_status" >&5
     4002  (exit $ac_status); } &&
     4003         { ac_try='test -s conftest.$ac_objext'
     4004  { (eval echo "$as_me:4004: \"$ac_try\"") >&5
     4005  (eval $ac_try) 2>&5
     4006  ac_status=$?
     4007  echo "$as_me:4007: \$? = $ac_status" >&5
     4008  (exit $ac_status); }; }; then
     4009  ac_lo=$ac_mid; break
     4010else
     4011  echo "$as_me: failed program was:" >&5
     4012cat conftest.$ac_ext >&5
     4013ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
     4014fi
     4015rm -f conftest.$ac_objext conftest.$ac_ext
     4016  done
     4017fi
     4018rm -f conftest.$ac_objext conftest.$ac_ext
     4019# Binary search between lo and hi bounds.
     4020while test "x$ac_lo" != "x$ac_hi"; do
     4021  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     4022  cat >conftest.$ac_ext <<_ACEOF
     4023#line 4023 "configure"
     4024#include "confdefs.h"
     4025$ac_includes_default
     4026int
     4027main ()
     4028{
     4029int _array_ [1 - 2 * !((sizeof (double)) <= $ac_mid)]
     4030  ;
     4031  return 0;
     4032}
     4033_ACEOF
     4034rm -f conftest.$ac_objext
     4035if { (eval echo "$as_me:4035: \"$ac_compile\"") >&5
     4036  (eval $ac_compile) 2>&5
     4037  ac_status=$?
     4038  echo "$as_me:4038: \$? = $ac_status" >&5
     4039  (exit $ac_status); } &&
     4040         { ac_try='test -s conftest.$ac_objext'
     4041  { (eval echo "$as_me:4041: \"$ac_try\"") >&5
     4042  (eval $ac_try) 2>&5
     4043  ac_status=$?
     4044  echo "$as_me:4044: \$? = $ac_status" >&5
     4045  (exit $ac_status); }; }; then
     4046  ac_hi=$ac_mid
     4047else
     4048  echo "$as_me: failed program was:" >&5
     4049cat conftest.$ac_ext >&5
     4050ac_lo=`expr $ac_mid + 1`
     4051fi
     4052rm -f conftest.$ac_objext conftest.$ac_ext
     4053done
     4054ac_cv_sizeof_double=$ac_lo
     4055else
     4056  if test "$cross_compiling" = yes; then
     4057  { { echo "$as_me:4057: error: cannot run test program while cross compiling" >&5
     4058echo "$as_me: error: cannot run test program while cross compiling" >&2;}
     4059   { (exit 1); exit 1; }; }
     4060else
     4061  cat >conftest.$ac_ext <<_ACEOF
     4062#line 4062 "configure"
     4063#include "confdefs.h"
     4064$ac_includes_default
     4065int
     4066main ()
     4067{
     4068FILE *f = fopen ("conftest.val", "w");
     4069if (!f)
     4070  exit (1);
     4071fprintf (f, "%d", (sizeof (double)));
     4072fclose (f);
     4073  ;
     4074  return 0;
     4075}
     4076_ACEOF
     4077rm -f conftest$ac_exeext
     4078if { (eval echo "$as_me:4078: \"$ac_link\"") >&5
     4079  (eval $ac_link) 2>&5
     4080  ac_status=$?
     4081  echo "$as_me:4081: \$? = $ac_status" >&5
     4082  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4083  { (eval echo "$as_me:4083: \"$ac_try\"") >&5
     4084  (eval $ac_try) 2>&5
     4085  ac_status=$?
     4086  echo "$as_me:4086: \$? = $ac_status" >&5
     4087  (exit $ac_status); }; }; then
     4088  ac_cv_sizeof_double=`cat conftest.val`
     4089else
     4090  echo "$as_me: program exited with status $ac_status" >&5
     4091echo "$as_me: failed program was:" >&5
     4092cat conftest.$ac_ext >&5
     4093fi
     4094rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4095fi
     4096fi
     4097rm -f conftest.val
     4098else
    13064099  ac_cv_sizeof_double=0
    13074100fi
    1308 rm -fr conftest*
    1309 fi
    1310 
    1311 fi
    1312 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
    1313 cat >> confdefs.h <<EOF
     4101fi
     4102echo "$as_me:4102: result: $ac_cv_sizeof_double" >&5
     4103echo "${ECHO_T}$ac_cv_sizeof_double" >&6
     4104cat >>confdefs.h <<EOF
    13144105#define SIZEOF_DOUBLE $ac_cv_sizeof_double
    13154106EOF
    13164107
    1317 
    1318 echo $ac_n "checking size of long double""... $ac_c" 1>&6
    1319 echo "configure:1320: checking size of long double" >&5
    1320 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
    1321   echo $ac_n "(cached) $ac_c" 1>&6
    1322 else
     4108echo "$as_me:4108: checking for long double" >&5
     4109echo $ECHO_N "checking for long double... $ECHO_C" >&6
     4110if test "${ac_cv_type_long_double+set}" = set; then
     4111  echo $ECHO_N "(cached) $ECHO_C" >&6
     4112else
     4113  cat >conftest.$ac_ext <<_ACEOF
     4114#line 4114 "configure"
     4115#include "confdefs.h"
     4116$ac_includes_default
     4117int
     4118main ()
     4119{
     4120if ((long double *) 0)
     4121  return 0;
     4122if (sizeof (long double))
     4123  return 0;
     4124  ;
     4125  return 0;
     4126}
     4127_ACEOF
     4128rm -f conftest.$ac_objext
     4129if { (eval echo "$as_me:4129: \"$ac_compile\"") >&5
     4130  (eval $ac_compile) 2>&5
     4131  ac_status=$?
     4132  echo "$as_me:4132: \$? = $ac_status" >&5
     4133  (exit $ac_status); } &&
     4134         { ac_try='test -s conftest.$ac_objext'
     4135  { (eval echo "$as_me:4135: \"$ac_try\"") >&5
     4136  (eval $ac_try) 2>&5
     4137  ac_status=$?
     4138  echo "$as_me:4138: \$? = $ac_status" >&5
     4139  (exit $ac_status); }; }; then
     4140  ac_cv_type_long_double=yes
     4141else
     4142  echo "$as_me: failed program was:" >&5
     4143cat conftest.$ac_ext >&5
     4144ac_cv_type_long_double=no
     4145fi
     4146rm -f conftest.$ac_objext conftest.$ac_ext
     4147fi
     4148echo "$as_me:4148: result: $ac_cv_type_long_double" >&5
     4149echo "${ECHO_T}$ac_cv_type_long_double" >&6
     4150
     4151echo "$as_me:4151: checking size of long double" >&5
     4152echo $ECHO_N "checking size of long double... $ECHO_C" >&6
     4153if test "${ac_cv_sizeof_long_double+set}" = set; then
     4154  echo $ECHO_N "(cached) $ECHO_C" >&6
     4155else
     4156  if test "$ac_cv_type_long_double" = yes; then
    13234157  if test "$cross_compiling" = yes; then
    1324     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
    1325 else
    1326   cat > conftest.$ac_ext <<EOF
    1327 #line 1328 "configure"
    1328 #include "confdefs.h"
    1329 #include <stdio.h>
    1330 main()
    1331 {
    1332   FILE *f=fopen("conftestval", "w");
    1333   if (!f) exit(1);
    1334   fprintf(f, "%d\n", sizeof(long double));
    1335   exit(0);
    1336 }
    1337 EOF
    1338 if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1339 then
    1340   ac_cv_sizeof_long_double=`cat conftestval`
    1341 else
    1342   echo "configure: failed program was:" >&5
    1343   cat conftest.$ac_ext >&5
    1344   rm -fr conftest*
     4158  # Depending upon the size, compute the lo and hi bounds.
     4159cat >conftest.$ac_ext <<_ACEOF
     4160#line 4160 "configure"
     4161#include "confdefs.h"
     4162$ac_includes_default
     4163int
     4164main ()
     4165{
     4166int _array_ [1 - 2 * !((sizeof (long double)) >= 0)]
     4167  ;
     4168  return 0;
     4169}
     4170_ACEOF
     4171rm -f conftest.$ac_objext
     4172if { (eval echo "$as_me:4172: \"$ac_compile\"") >&5
     4173  (eval $ac_compile) 2>&5
     4174  ac_status=$?
     4175  echo "$as_me:4175: \$? = $ac_status" >&5
     4176  (exit $ac_status); } &&
     4177         { ac_try='test -s conftest.$ac_objext'
     4178  { (eval echo "$as_me:4178: \"$ac_try\"") >&5
     4179  (eval $ac_try) 2>&5
     4180  ac_status=$?
     4181  echo "$as_me:4181: \$? = $ac_status" >&5
     4182  (exit $ac_status); }; }; then
     4183  ac_lo=0 ac_mid=0
     4184  while :; do
     4185    cat >conftest.$ac_ext <<_ACEOF
     4186#line 4186 "configure"
     4187#include "confdefs.h"
     4188$ac_includes_default
     4189int
     4190main ()
     4191{
     4192int _array_ [1 - 2 * !((sizeof (long double)) <= $ac_mid)]
     4193  ;
     4194  return 0;
     4195}
     4196_ACEOF
     4197rm -f conftest.$ac_objext
     4198if { (eval echo "$as_me:4198: \"$ac_compile\"") >&5
     4199  (eval $ac_compile) 2>&5
     4200  ac_status=$?
     4201  echo "$as_me:4201: \$? = $ac_status" >&5
     4202  (exit $ac_status); } &&
     4203         { ac_try='test -s conftest.$ac_objext'
     4204  { (eval echo "$as_me:4204: \"$ac_try\"") >&5
     4205  (eval $ac_try) 2>&5
     4206  ac_status=$?
     4207  echo "$as_me:4207: \$? = $ac_status" >&5
     4208  (exit $ac_status); }; }; then
     4209  ac_hi=$ac_mid; break
     4210else
     4211  echo "$as_me: failed program was:" >&5
     4212cat conftest.$ac_ext >&5
     4213ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
     4214fi
     4215rm -f conftest.$ac_objext conftest.$ac_ext
     4216  done
     4217else
     4218  echo "$as_me: failed program was:" >&5
     4219cat conftest.$ac_ext >&5
     4220ac_hi=-1 ac_mid=-1
     4221  while :; do
     4222    cat >conftest.$ac_ext <<_ACEOF
     4223#line 4223 "configure"
     4224#include "confdefs.h"
     4225$ac_includes_default
     4226int
     4227main ()
     4228{
     4229int _array_ [1 - 2 * !((sizeof (long double)) >= $ac_mid)]
     4230  ;
     4231  return 0;
     4232}
     4233_ACEOF
     4234rm -f conftest.$ac_objext
     4235if { (eval echo "$as_me:4235: \"$ac_compile\"") >&5
     4236  (eval $ac_compile) 2>&5
     4237  ac_status=$?
     4238  echo "$as_me:4238: \$? = $ac_status" >&5
     4239  (exit $ac_status); } &&
     4240         { ac_try='test -s conftest.$ac_objext'
     4241  { (eval echo "$as_me:4241: \"$ac_try\"") >&5
     4242  (eval $ac_try) 2>&5
     4243  ac_status=$?
     4244  echo "$as_me:4244: \$? = $ac_status" >&5
     4245  (exit $ac_status); }; }; then
     4246  ac_lo=$ac_mid; break
     4247else
     4248  echo "$as_me: failed program was:" >&5
     4249cat conftest.$ac_ext >&5
     4250ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
     4251fi
     4252rm -f conftest.$ac_objext conftest.$ac_ext
     4253  done
     4254fi
     4255rm -f conftest.$ac_objext conftest.$ac_ext
     4256# Binary search between lo and hi bounds.
     4257while test "x$ac_lo" != "x$ac_hi"; do
     4258  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
     4259  cat >conftest.$ac_ext <<_ACEOF
     4260#line 4260 "configure"
     4261#include "confdefs.h"
     4262$ac_includes_default
     4263int
     4264main ()
     4265{
     4266int _array_ [1 - 2 * !((sizeof (long double)) <= $ac_mid)]
     4267  ;
     4268  return 0;
     4269}
     4270_ACEOF
     4271rm -f conftest.$ac_objext
     4272if { (eval echo "$as_me:4272: \"$ac_compile\"") >&5
     4273  (eval $ac_compile) 2>&5
     4274  ac_status=$?
     4275  echo "$as_me:4275: \$? = $ac_status" >&5
     4276  (exit $ac_status); } &&
     4277         { ac_try='test -s conftest.$ac_objext'
     4278  { (eval echo "$as_me:4278: \"$ac_try\"") >&5
     4279  (eval $ac_try) 2>&5
     4280  ac_status=$?
     4281  echo "$as_me:4281: \$? = $ac_status" >&5
     4282  (exit $ac_status); }; }; then
     4283  ac_hi=$ac_mid
     4284else
     4285  echo "$as_me: failed program was:" >&5
     4286cat conftest.$ac_ext >&5
     4287ac_lo=`expr $ac_mid + 1`
     4288fi
     4289rm -f conftest.$ac_objext conftest.$ac_ext
     4290done
     4291ac_cv_sizeof_long_double=$ac_lo
     4292else
     4293  if test "$cross_compiling" = yes; then
     4294  { { echo "$as_me:4294: error: cannot run test program while cross compiling" >&5
     4295echo "$as_me: error: cannot run test program while cross compiling" >&2;}
     4296   { (exit 1); exit 1; }; }
     4297else
     4298  cat >conftest.$ac_ext <<_ACEOF
     4299#line 4299 "configure"
     4300#include "confdefs.h"
     4301$ac_includes_default
     4302int
     4303main ()
     4304{
     4305FILE *f = fopen ("conftest.val", "w");
     4306if (!f)
     4307  exit (1);
     4308fprintf (f, "%d", (sizeof (long double)));
     4309fclose (f);
     4310  ;
     4311  return 0;
     4312}
     4313_ACEOF
     4314rm -f conftest$ac_exeext
     4315if { (eval echo "$as_me:4315: \"$ac_link\"") >&5
     4316  (eval $ac_link) 2>&5
     4317  ac_status=$?
     4318  echo "$as_me:4318: \$? = $ac_status" >&5
     4319  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4320  { (eval echo "$as_me:4320: \"$ac_try\"") >&5
     4321  (eval $ac_try) 2>&5
     4322  ac_status=$?
     4323  echo "$as_me:4323: \$? = $ac_status" >&5
     4324  (exit $ac_status); }; }; then
     4325  ac_cv_sizeof_long_double=`cat conftest.val`
     4326else
     4327  echo "$as_me: program exited with status $ac_status" >&5
     4328echo "$as_me: failed program was:" >&5
     4329cat conftest.$ac_ext >&5
     4330fi
     4331rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4332fi
     4333fi
     4334rm -f conftest.val
     4335else
    13454336  ac_cv_sizeof_long_double=0
    13464337fi
    1347 rm -fr conftest*
    1348 fi
    1349 
    1350 fi
    1351 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
    1352 cat >> confdefs.h <<EOF
     4338fi
     4339echo "$as_me:4339: result: $ac_cv_sizeof_long_double" >&5
     4340echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
     4341cat >>confdefs.h <<EOF
    13534342#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
    13544343EOF
    13554344
    1356 
    1357 
    1358 
    1359 echo $ac_n "checking "for cfitsio lib"""... $ac_c" 1>&6
    1360 echo "configure:1361: checking "for cfitsio lib"" >&5
     4345echo "$as_me:4345: checking \"for cfitsio lib\"" >&5
     4346echo $ECHO_N "checking \"for cfitsio lib\"... $ECHO_C" >&6
    13614347MACHDIR=`uname`-$CXX
    13624348if test -f $ARCHBASEREP/$MACHDIR/Libs/libcfitsio.a; then
     
    13784364elif test -f /usr/local/lib/libcfitsio.a; then
    13794365  cfitslibdir=""
    1380 else
    1381   { echo "configure: error: "Cannot find cfitsio library"" 1>&2; exit 1; }
    1382 fi
    1383 echo "$ac_t""$cfitslibdir" 1>&6
    1384 
    1385 
    1386 echo $ac_n "checking "for cfitsio includes"""... $ac_c" 1>&6
    1387 echo "configure:1388: checking "for cfitsio includes"" >&5
     4366else
     4367  { { echo "$as_me:4367: error: \"Cannot find cfitsio library\"" >&5
     4368echo "$as_me: error: \"Cannot find cfitsio library\"" >&2;}
     4369   { (exit 1); exit 1; }; }
     4370fi
     4371echo "$as_me:4371: result: $cfitslibdir" >&5
     4372echo "${ECHO_T}$cfitslibdir" >&6
     4373
     4374echo "$as_me:4374: checking \"for cfitsio includes\"" >&5
     4375echo $ECHO_N "checking \"for cfitsio includes\"... $ECHO_C" >&6
    13884376if test -f $CFITSIODIR/fitsio.h; then
    13894377  cfitsincdir='-I$(CFITSIODIR)'
     
    13934381  cfitsincdir=""
    13944382else
    1395   { echo "configure: error: "Cannot find cfitsio include fitsio.h"" 1>&2; exit 1; }
    1396 fi
    1397 echo "$ac_t""$cfitsincdir" 1>&6
    1398 
    1399 
    1400 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
    1401 echo "configure:1402: checking for sin in -lm" >&5
    1402 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
    1403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1404   echo $ac_n "(cached) $ac_c" 1>&6
    1405 else
    1406   ac_save_LIBS="$LIBS"
     4383  { { echo "$as_me:4383: error: \"Cannot find cfitsio include fitsio.h\"" >&5
     4384echo "$as_me: error: \"Cannot find cfitsio include fitsio.h\"" >&2;}
     4385   { (exit 1); exit 1; }; }
     4386fi
     4387echo "$as_me:4387: result: $cfitsincdir" >&5
     4388echo "${ECHO_T}$cfitsincdir" >&6
     4389
     4390echo "$as_me:4390: checking for sin in -lm" >&5
     4391echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
     4392if test "${ac_cv_lib_m_sin+set}" = set; then
     4393  echo $ECHO_N "(cached) $ECHO_C" >&6
     4394else
     4395  ac_check_lib_save_LIBS=$LIBS
    14074396LIBS="-lm  $LIBS"
    1408 cat > conftest.$ac_ext <<EOF
    1409 #line 1410 "configure"
    1410 #include "confdefs.h"
     4397cat >conftest.$ac_ext <<_ACEOF
     4398#line 4398 "configure"
     4399#include "confdefs.h"
     4400
    14114401/* Override any gcc2 internal prototype to avoid an error.  */
     4402#ifdef __cplusplus
     4403extern "C"
     4404#endif
    14124405/* We use char because int might match the return type of a gcc2
    1413     builtin and then its argument prototype would still apply.  */
    1414 char sin();
    1415 
    1416 int main() {
    1417 sin()
    1418 ; return 0; }
     4406   builtin and then its argument prototype would still apply.  */
     4407char sin ();
     4408int
     4409main ()
     4410{
     4411sin ();
     4412  ;
     4413  return 0;
     4414}
     4415_ACEOF
     4416rm -f conftest.$ac_objext conftest$ac_exeext
     4417if { (eval echo "$as_me:4417: \"$ac_link\"") >&5
     4418  (eval $ac_link) 2>&5
     4419  ac_status=$?
     4420  echo "$as_me:4420: \$? = $ac_status" >&5
     4421  (exit $ac_status); } &&
     4422         { ac_try='test -s conftest$ac_exeext'
     4423  { (eval echo "$as_me:4423: \"$ac_try\"") >&5
     4424  (eval $ac_try) 2>&5
     4425  ac_status=$?
     4426  echo "$as_me:4426: \$? = $ac_status" >&5
     4427  (exit $ac_status); }; }; then
     4428  ac_cv_lib_m_sin=yes
     4429else
     4430  echo "$as_me: failed program was:" >&5
     4431cat conftest.$ac_ext >&5
     4432ac_cv_lib_m_sin=no
     4433fi
     4434rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4435LIBS=$ac_check_lib_save_LIBS
     4436fi
     4437echo "$as_me:4437: result: $ac_cv_lib_m_sin" >&5
     4438echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
     4439if test $ac_cv_lib_m_sin = yes; then
     4440  cat >>confdefs.h <<EOF
     4441#define HAVE_LIBM 1
    14194442EOF
    1420 if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1421   rm -rf conftest*
    1422   eval "ac_cv_lib_$ac_lib_var=yes"
    1423 else
    1424   echo "configure: failed program was:" >&5
    1425   cat conftest.$ac_ext >&5
    1426   rm -rf conftest*
    1427   eval "ac_cv_lib_$ac_lib_var=no"
    1428 fi
    1429 rm -f conftest*
    1430 LIBS="$ac_save_LIBS"
    1431 
    1432 fi
    1433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1434   echo "$ac_t""yes" 1>&6
    1435     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1436     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1437   cat >> confdefs.h <<EOF
    1438 #define $ac_tr_lib 1
     4443
     4444  LIBS="-lm $LIBS"
     4445
     4446fi
     4447
     4448echo "$as_me:4448: checking for pthread_create in -lpthread" >&5
     4449echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
     4450if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
     4451  echo $ECHO_N "(cached) $ECHO_C" >&6
     4452else
     4453  ac_check_lib_save_LIBS=$LIBS
     4454LIBS="-lpthread  $LIBS"
     4455cat >conftest.$ac_ext <<_ACEOF
     4456#line 4456 "configure"
     4457#include "confdefs.h"
     4458
     4459/* Override any gcc2 internal prototype to avoid an error.  */
     4460#ifdef __cplusplus
     4461extern "C"
     4462#endif
     4463/* We use char because int might match the return type of a gcc2
     4464   builtin and then its argument prototype would still apply.  */
     4465char pthread_create ();
     4466int
     4467main ()
     4468{
     4469pthread_create ();
     4470  ;
     4471  return 0;
     4472}
     4473_ACEOF
     4474rm -f conftest.$ac_objext conftest$ac_exeext
     4475if { (eval echo "$as_me:4475: \"$ac_link\"") >&5
     4476  (eval $ac_link) 2>&5
     4477  ac_status=$?
     4478  echo "$as_me:4478: \$? = $ac_status" >&5
     4479  (exit $ac_status); } &&
     4480         { ac_try='test -s conftest$ac_exeext'
     4481  { (eval echo "$as_me:4481: \"$ac_try\"") >&5
     4482  (eval $ac_try) 2>&5
     4483  ac_status=$?
     4484  echo "$as_me:4484: \$? = $ac_status" >&5
     4485  (exit $ac_status); }; }; then
     4486  ac_cv_lib_pthread_pthread_create=yes
     4487else
     4488  echo "$as_me: failed program was:" >&5
     4489cat conftest.$ac_ext >&5
     4490ac_cv_lib_pthread_pthread_create=no
     4491fi
     4492rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4493LIBS=$ac_check_lib_save_LIBS
     4494fi
     4495echo "$as_me:4495: result: $ac_cv_lib_pthread_pthread_create" >&5
     4496echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
     4497if test $ac_cv_lib_pthread_pthread_create = yes; then
     4498  cat >>confdefs.h <<EOF
     4499#define HAVE_LIBPTHREAD 1
    14394500EOF
    14404501
    1441   LIBS="-lm $LIBS"
    1442 
    1443 else
    1444   echo "$ac_t""no" 1>&6
    1445 fi
    1446 
    1447 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
    1448 echo "configure:1449: checking for pthread_create in -lpthread" >&5
    1449 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
    1450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1451   echo $ac_n "(cached) $ac_c" 1>&6
    1452 else
    1453   ac_save_LIBS="$LIBS"
    1454 LIBS="-lpthread  $LIBS"
    1455 cat > conftest.$ac_ext <<EOF
    1456 #line 1457 "configure"
    1457 #include "confdefs.h"
     4502  LIBS="-lpthread $LIBS"
     4503
     4504fi
     4505
     4506echo "$as_me:4506: checking for scopy_ in -lblas" >&5
     4507echo $ECHO_N "checking for scopy_ in -lblas... $ECHO_C" >&6
     4508if test "${ac_cv_lib_blas_scopy_+set}" = set; then
     4509  echo $ECHO_N "(cached) $ECHO_C" >&6
     4510else
     4511  ac_check_lib_save_LIBS=$LIBS
     4512LIBS="-lblas  $LIBS"
     4513cat >conftest.$ac_ext <<_ACEOF
     4514#line 4514 "configure"
     4515#include "confdefs.h"
     4516
    14584517/* Override any gcc2 internal prototype to avoid an error.  */
     4518#ifdef __cplusplus
     4519extern "C"
     4520#endif
    14594521/* We use char because int might match the return type of a gcc2
    1460     builtin and then its argument prototype would still apply.  */
    1461 char pthread_create();
    1462 
    1463 int main() {
    1464 pthread_create()
    1465 ; return 0; }
     4522   builtin and then its argument prototype would still apply.  */
     4523char scopy_ ();
     4524int
     4525main ()
     4526{
     4527scopy_ ();
     4528  ;
     4529  return 0;
     4530}
     4531_ACEOF
     4532rm -f conftest.$ac_objext conftest$ac_exeext
     4533if { (eval echo "$as_me:4533: \"$ac_link\"") >&5
     4534  (eval $ac_link) 2>&5
     4535  ac_status=$?
     4536  echo "$as_me:4536: \$? = $ac_status" >&5
     4537  (exit $ac_status); } &&
     4538         { ac_try='test -s conftest$ac_exeext'
     4539  { (eval echo "$as_me:4539: \"$ac_try\"") >&5
     4540  (eval $ac_try) 2>&5
     4541  ac_status=$?
     4542  echo "$as_me:4542: \$? = $ac_status" >&5
     4543  (exit $ac_status); }; }; then
     4544  ac_cv_lib_blas_scopy_=yes
     4545else
     4546  echo "$as_me: failed program was:" >&5
     4547cat conftest.$ac_ext >&5
     4548ac_cv_lib_blas_scopy_=no
     4549fi
     4550rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4551LIBS=$ac_check_lib_save_LIBS
     4552fi
     4553echo "$as_me:4553: result: $ac_cv_lib_blas_scopy_" >&5
     4554echo "${ECHO_T}$ac_cv_lib_blas_scopy_" >&6
     4555if test $ac_cv_lib_blas_scopy_ = yes; then
     4556  cat >>confdefs.h <<EOF
     4557#define HAVE_LIBBLAS 1
    14664558EOF
    1467 if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1468   rm -rf conftest*
    1469   eval "ac_cv_lib_$ac_lib_var=yes"
    1470 else
    1471   echo "configure: failed program was:" >&5
    1472   cat conftest.$ac_ext >&5
    1473   rm -rf conftest*
    1474   eval "ac_cv_lib_$ac_lib_var=no"
    1475 fi
    1476 rm -f conftest*
    1477 LIBS="$ac_save_LIBS"
    1478 
    1479 fi
    1480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1481   echo "$ac_t""yes" 1>&6
    1482     ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1483     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1484   cat >> confdefs.h <<EOF
    1485 #define $ac_tr_lib 1
     4559
     4560  LIBS="-lblas $LIBS"
     4561
     4562fi
     4563
     4564echo "$as_me:4564: checking for s_copy in -lg2c" >&5
     4565echo $ECHO_N "checking for s_copy in -lg2c... $ECHO_C" >&6
     4566if test "${ac_cv_lib_g2c_s_copy+set}" = set; then
     4567  echo $ECHO_N "(cached) $ECHO_C" >&6
     4568else
     4569  ac_check_lib_save_LIBS=$LIBS
     4570LIBS="-lg2c  $LIBS"
     4571cat >conftest.$ac_ext <<_ACEOF
     4572#line 4572 "configure"
     4573#include "confdefs.h"
     4574
     4575/* Override any gcc2 internal prototype to avoid an error.  */
     4576#ifdef __cplusplus
     4577extern "C"
     4578#endif
     4579/* We use char because int might match the return type of a gcc2
     4580   builtin and then its argument prototype would still apply.  */
     4581char s_copy ();
     4582int
     4583main ()
     4584{
     4585s_copy ();
     4586  ;
     4587  return 0;
     4588}
     4589_ACEOF
     4590rm -f conftest.$ac_objext conftest$ac_exeext
     4591if { (eval echo "$as_me:4591: \"$ac_link\"") >&5
     4592  (eval $ac_link) 2>&5
     4593  ac_status=$?
     4594  echo "$as_me:4594: \$? = $ac_status" >&5
     4595  (exit $ac_status); } &&
     4596         { ac_try='test -s conftest$ac_exeext'
     4597  { (eval echo "$as_me:4597: \"$ac_try\"") >&5
     4598  (eval $ac_try) 2>&5
     4599  ac_status=$?
     4600  echo "$as_me:4600: \$? = $ac_status" >&5
     4601  (exit $ac_status); }; }; then
     4602  ac_cv_lib_g2c_s_copy=yes
     4603else
     4604  echo "$as_me: failed program was:" >&5
     4605cat conftest.$ac_ext >&5
     4606ac_cv_lib_g2c_s_copy=no
     4607fi
     4608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4609LIBS=$ac_check_lib_save_LIBS
     4610fi
     4611echo "$as_me:4611: result: $ac_cv_lib_g2c_s_copy" >&5
     4612echo "${ECHO_T}$ac_cv_lib_g2c_s_copy" >&6
     4613if test $ac_cv_lib_g2c_s_copy = yes; then
     4614  cat >>confdefs.h <<EOF
     4615#define HAVE_LIBG2C 1
    14864616EOF
    14874617
    1488   LIBS="-lpthread $LIBS"
    1489 
    1490 else
    1491   echo "$ac_t""no" 1>&6
    1492 fi
    1493 
    1494 echo $ac_n "checking for scopy_ in -lblas""... $ac_c" 1>&6
    1495 echo "configure:1496: checking for scopy_ in -lblas" >&5
    1496 ac_lib_var=`echo blas'_'scopy_ | sed 'y%./+-%__p_%'`
    1497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1498   echo $ac_n "(cached) $ac_c" 1>&6
    1499 else
    1500   ac_save_LIBS="$LIBS"
    1501 LIBS="-lblas  $LIBS"
    1502 cat > conftest.$ac_ext <<EOF
    1503 #line 1504 "configure"
    1504 #include "confdefs.h"
    1505 /* Override any gcc2 internal prototype to avoid an error.  */
    1506 /* We use char because int might match the return type of a gcc2
    1507     builtin and then its argument prototype would still apply.  */
    1508 char scopy_();
    1509 
    1510 int main() {
    1511 scopy_()
    1512 ; return 0; }
    1513 EOF
    1514 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1515   rm -rf conftest*
    1516   eval "ac_cv_lib_$ac_lib_var=yes"
    1517 else
    1518   echo "configure: failed program was:" >&5
    1519   cat conftest.$ac_ext >&5
    1520   rm -rf conftest*
    1521   eval "ac_cv_lib_$ac_lib_var=no"
    1522 fi
    1523 rm -f conftest*
    1524 LIBS="$ac_save_LIBS"
    1525 
    1526 fi
    1527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1528   echo "$ac_t""yes" 1>&6
    1529     ac_tr_lib=HAVE_LIB`echo blas | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1530     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1531   cat >> confdefs.h <<EOF
    1532 #define $ac_tr_lib 1
    1533 EOF
    1534 
    1535   LIBS="-lblas $LIBS"
    1536 
    1537 else
    1538   echo "$ac_t""no" 1>&6
    1539 fi
    1540 
    1541 echo $ac_n "checking for s_copy in -lg2c""... $ac_c" 1>&6
    1542 echo "configure:1543: checking for s_copy in -lg2c" >&5
    1543 ac_lib_var=`echo g2c'_'s_copy | sed 'y%./+-%__p_%'`
    1544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    1545   echo $ac_n "(cached) $ac_c" 1>&6
    1546 else
    1547   ac_save_LIBS="$LIBS"
    1548 LIBS="-lg2c  $LIBS"
    1549 cat > conftest.$ac_ext <<EOF
    1550 #line 1551 "configure"
    1551 #include "confdefs.h"
    1552 /* Override any gcc2 internal prototype to avoid an error.  */
    1553 /* We use char because int might match the return type of a gcc2
    1554     builtin and then its argument prototype would still apply.  */
    1555 char s_copy();
    1556 
    1557 int main() {
    1558 s_copy()
    1559 ; return 0; }
    1560 EOF
    1561 if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    1562   rm -rf conftest*
    1563   eval "ac_cv_lib_$ac_lib_var=yes"
    1564 else
    1565   echo "configure: failed program was:" >&5
    1566   cat conftest.$ac_ext >&5
    1567   rm -rf conftest*
    1568   eval "ac_cv_lib_$ac_lib_var=no"
    1569 fi
    1570 rm -f conftest*
    1571 LIBS="$ac_save_LIBS"
    1572 
    1573 fi
    1574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    1575   echo "$ac_t""yes" 1>&6
    1576     ac_tr_lib=HAVE_LIB`echo g2c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    1577     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    1578   cat >> confdefs.h <<EOF
    1579 #define $ac_tr_lib 1
    1580 EOF
    1581 
    15824618  LIBS="-lg2c $LIBS"
    15834619
    1584 else
    1585   echo "$ac_t""no" 1>&6
    1586 fi
    1587 
    1588 
    1589 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    1590 echo "configure:1591: checking how to run the C preprocessor" >&5
    1591 # On Suns, sometimes $CPP names a directory.
    1592 if test -n "$CPP" && test -d "$CPP"; then
    1593   CPP=
    1594 fi
    1595 if test -z "$CPP"; then
    1596 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    1597   echo $ac_n "(cached) $ac_c" 1>&6
    1598 else
    1599     # This must be in double quotes, not single quotes, because CPP may get
    1600   # substituted into the Makefile and "${CC-cc}" will confuse make.
    1601   CPP="${CC-cc} -E"
    1602   # On the NeXT, cc -E runs the code through the compiler's parser,
    1603   # not just through cpp.
    1604   cat > conftest.$ac_ext <<EOF
    1605 #line 1606 "configure"
    1606 #include "confdefs.h"
    1607 #include <assert.h>
    1608 Syntax Error
    1609 EOF
    1610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1611 { (eval echo configure:1612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1612 ac_err=`grep -v '^ *+' conftest.out`
    1613 if test -z "$ac_err"; then
    1614   :
    1615 else
    1616   echo "$ac_err" >&5
    1617   echo "configure: failed program was:" >&5
    1618   cat conftest.$ac_ext >&5
    1619   rm -rf conftest*
    1620   CPP="${CC-cc} -E -traditional-cpp"
    1621   cat > conftest.$ac_ext <<EOF
    1622 #line 1623 "configure"
    1623 #include "confdefs.h"
    1624 #include <assert.h>
    1625 Syntax Error
    1626 EOF
    1627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1628 { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1629 ac_err=`grep -v '^ *+' conftest.out`
    1630 if test -z "$ac_err"; then
    1631   :
    1632 else
    1633   echo "$ac_err" >&5
    1634   echo "configure: failed program was:" >&5
    1635   cat conftest.$ac_ext >&5
    1636   rm -rf conftest*
    1637   CPP=/lib/cpp
    1638 fi
    1639 rm -f conftest*
    1640 fi
    1641 rm -f conftest*
    1642   ac_cv_prog_CPP="$CPP"
    1643 fi
    1644   CPP="$ac_cv_prog_CPP"
    1645 else
    1646   ac_cv_prog_CPP="$CPP"
    1647 fi
    1648 echo "$ac_t""$CPP" 1>&6
    1649 
    1650 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1651 echo "configure:1652: checking for ANSI C header files" >&5
    1652 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    1653   echo $ac_n "(cached) $ac_c" 1>&6
    1654 else
    1655   cat > conftest.$ac_ext <<EOF
    1656 #line 1657 "configure"
     4620fi
     4621
     4622if test $use_piolib = 1; then
     4623  echo "$as_me:4623: checking \"for PIOLib\"" >&5
     4624echo $ECHO_N "checking \"for PIOLib\"... $ECHO_C" >&6
     4625  if test -f /usr/local/lib/libpiolib.a; then
     4626    piolibdir=""
     4627    pioincdir=""
     4628  elif test -f $PIOLIBDIR/libpiolib.a; then
     4629    piolibdir=$PIOLIBDIR
     4630    pioincdir='-I$(PIOINCDIR)'
     4631  else
     4632    { { echo "$as_me:4632: error: \"Cannot find PIO library\"" >&5
     4633echo "$as_me: error: \"Cannot find PIO library\"" >&2;}
     4634   { (exit 1); exit 1; }; }
     4635  fi
     4636  echo "$as_me:4636: result: \"ok\"" >&5
     4637echo "${ECHO_T}\"ok\"" >&6
     4638
     4639fi
     4640
     4641echo "$as_me:4641: checking for ANSI C header files" >&5
     4642echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     4643if test "${ac_cv_header_stdc+set}" = set; then
     4644  echo $ECHO_N "(cached) $ECHO_C" >&6
     4645else
     4646  cat >conftest.$ac_ext <<_ACEOF
     4647#line 4647 "configure"
    16574648#include "confdefs.h"
    16584649#include <stdlib.h>
     
    16604651#include <string.h>
    16614652#include <float.h>
    1662 EOF
    1663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1664 { (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1665 ac_err=`grep -v '^ *+' conftest.out`
    1666 if test -z "$ac_err"; then
    1667   rm -rf conftest*
     4653
     4654_ACEOF
     4655if { (eval echo "$as_me:4655: \"$ac_cpp conftest.$ac_ext\"") >&5
     4656  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4657  ac_status=$?
     4658  egrep -v '^ *\+' conftest.er1 >conftest.err
     4659  rm -f conftest.er1
     4660  cat conftest.err >&5
     4661  echo "$as_me:4661: \$? = $ac_status" >&5
     4662  (exit $ac_status); } >/dev/null; then
     4663  if test -s conftest.err; then
     4664    ac_cpp_err=$ac_c_preproc_warn_flag
     4665  else
     4666    ac_cpp_err=
     4667  fi
     4668else
     4669  ac_cpp_err=yes
     4670fi
     4671if test -z "$ac_cpp_err"; then
    16684672  ac_cv_header_stdc=yes
    16694673else
    1670   echo "$ac_err" >&5
    1671   echo "configure: failed program was:" >&5
     4674  echo "$as_me: failed program was:" >&5
    16724675  cat conftest.$ac_ext >&5
    1673   rm -rf conftest*
    16744676  ac_cv_header_stdc=no
    16754677fi
    1676 rm -f conftest*
     4678rm -f conftest.err conftest.$ac_ext
    16774679
    16784680if test $ac_cv_header_stdc = yes; then
    16794681  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    1680 cat > conftest.$ac_ext <<EOF
    1681 #line 1682 "configure"
     4682  cat >conftest.$ac_ext <<_ACEOF
     4683#line 4683 "configure"
    16824684#include "confdefs.h"
    16834685#include <string.h>
    1684 EOF
     4686
     4687_ACEOF
    16854688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    16864689  egrep "memchr" >/dev/null 2>&1; then
    16874690  :
    16884691else
    1689   rm -rf conftest*
    16904692  ac_cv_header_stdc=no
    16914693fi
     
    16964698if test $ac_cv_header_stdc = yes; then
    16974699  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    1698 cat > conftest.$ac_ext <<EOF
    1699 #line 1700 "configure"
     4700  cat >conftest.$ac_ext <<_ACEOF
     4701#line 4701 "configure"
    17004702#include "confdefs.h"
    17014703#include <stdlib.h>
    1702 EOF
     4704
     4705_ACEOF
    17034706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    17044707  egrep "free" >/dev/null 2>&1; then
    17054708  :
    17064709else
    1707   rm -rf conftest*
    17084710  ac_cv_header_stdc=no
    17094711fi
     
    17144716if test $ac_cv_header_stdc = yes; then
    17154717  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    1716 if test "$cross_compiling" = yes; then
     4718  if test "$cross_compiling" = yes; then
    17174719  :
    17184720else
    1719   cat > conftest.$ac_ext <<EOF
    1720 #line 1721 "configure"
     4721  cat >conftest.$ac_ext <<_ACEOF
     4722#line 4722 "configure"
    17214723#include "confdefs.h"
    17224724#include <ctype.h>
    1723 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    1724 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4725#if ((' ' & 0x0FF) == 0x020)
     4726# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     4727# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4728#else
     4729# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
     4730                     || ('j' <= (c) && (c) <= 'r') \
     4731                     || ('s' <= (c) && (c) <= 'z'))
     4732# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     4733#endif
     4734
    17254735#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    1726 int main () { int i; for (i = 0; i < 256; i++)
    1727 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
    1728 exit (0); }
    1729 
    1730 EOF
    1731 if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    1732 then
     4736int
     4737main ()
     4738{
     4739  int i;
     4740  for (i = 0; i < 256; i++)
     4741    if (XOR (islower (i), ISLOWER (i))
     4742        || toupper (i) != TOUPPER (i))
     4743      exit(2);
     4744  exit (0);
     4745}
     4746_ACEOF
     4747rm -f conftest$ac_exeext
     4748if { (eval echo "$as_me:4748: \"$ac_link\"") >&5
     4749  (eval $ac_link) 2>&5
     4750  ac_status=$?
     4751  echo "$as_me:4751: \$? = $ac_status" >&5
     4752  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4753  { (eval echo "$as_me:4753: \"$ac_try\"") >&5
     4754  (eval $ac_try) 2>&5
     4755  ac_status=$?
     4756  echo "$as_me:4756: \$? = $ac_status" >&5
     4757  (exit $ac_status); }; }; then
    17334758  :
    17344759else
    1735   echo "configure: failed program was:" >&5
    1736   cat conftest.$ac_ext >&5
    1737   rm -fr conftest*
    1738   ac_cv_header_stdc=no
    1739 fi
    1740 rm -fr conftest*
    1741 fi
    1742 
    1743 fi
    1744 fi
    1745 
    1746 echo "$ac_t""$ac_cv_header_stdc" 1>&6
     4760  echo "$as_me: program exited with status $ac_status" >&5
     4761echo "$as_me: failed program was:" >&5
     4762cat conftest.$ac_ext >&5
     4763ac_cv_header_stdc=no
     4764fi
     4765rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4766fi
     4767fi
     4768fi
     4769echo "$as_me:4769: result: $ac_cv_header_stdc" >&5
     4770echo "${ECHO_T}$ac_cv_header_stdc" >&6
    17474771if test $ac_cv_header_stdc = yes; then
    1748   cat >> confdefs.h <<\EOF
     4772
     4773cat >>confdefs.h <<\EOF
    17494774#define STDC_HEADERS 1
    17504775EOF
     
    17524777fi
    17534778
    1754 for ac_hdr in values.h stdint.h
     4779for ac_header in values.h stdint.h
    17554780do
    1756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    1757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1758 echo "configure:1759: checking for $ac_hdr" >&5
    1759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    1760   echo $ac_n "(cached) $ac_c" 1>&6
    1761 else
    1762   cat > conftest.$ac_ext <<EOF
    1763 #line 1764 "configure"
    1764 #include "confdefs.h"
    1765 #include <$ac_hdr>
     4781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4782echo "$as_me:4782: checking for $ac_header" >&5
     4783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4784if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4785  echo $ECHO_N "(cached) $ECHO_C" >&6
     4786else
     4787  cat >conftest.$ac_ext <<_ACEOF
     4788#line 4788 "configure"
     4789#include "confdefs.h"
     4790#include <$ac_header>
     4791_ACEOF
     4792if { (eval echo "$as_me:4792: \"$ac_cpp conftest.$ac_ext\"") >&5
     4793  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4794  ac_status=$?
     4795  egrep -v '^ *\+' conftest.er1 >conftest.err
     4796  rm -f conftest.er1
     4797  cat conftest.err >&5
     4798  echo "$as_me:4798: \$? = $ac_status" >&5
     4799  (exit $ac_status); } >/dev/null; then
     4800  if test -s conftest.err; then
     4801    ac_cpp_err=$ac_c_preproc_warn_flag
     4802  else
     4803    ac_cpp_err=
     4804  fi
     4805else
     4806  ac_cpp_err=yes
     4807fi
     4808if test -z "$ac_cpp_err"; then
     4809  eval "$as_ac_Header=yes"
     4810else
     4811  echo "$as_me: failed program was:" >&5
     4812  cat conftest.$ac_ext >&5
     4813  eval "$as_ac_Header=no"
     4814fi
     4815rm -f conftest.err conftest.$ac_ext
     4816fi
     4817echo "$as_me:4817: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4819if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4820  cat >>confdefs.h <<EOF
     4821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    17664822EOF
    1767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1768 { (eval echo configure:1769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    1769 ac_err=`grep -v '^ *+' conftest.out`
    1770 if test -z "$ac_err"; then
    1771   rm -rf conftest*
    1772   eval "ac_cv_header_$ac_safe=yes"
    1773 else
    1774   echo "$ac_err" >&5
    1775   echo "configure: failed program was:" >&5
    1776   cat conftest.$ac_ext >&5
    1777   rm -rf conftest*
    1778   eval "ac_cv_header_$ac_safe=no"
    1779 fi
    1780 rm -f conftest*
    1781 fi
    1782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    1783   echo "$ac_t""yes" 1>&6
    1784     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    1785   cat >> confdefs.h <<EOF
    1786 #define $ac_tr_hdr 1
    1787 EOF
    1788  
    1789 else
    1790   echo "$ac_t""no" 1>&6
     4823
    17914824fi
    17924825done
    17934826
    1794 
    1795 outfiles="Makefile Kernel/Makefile Processors/Makefile TestPipes/Makefile Makefile.h"
     4827outfiles="Makefile Kernel/Makefile Processors/Makefile TestPipes/Makefile"
    17964828if [ $use_sophya = 1 ]; then
    17974829  outfiles="$outfiles ProcWSophya/Makefile"
    17984830fi
    17994831
    1800 trap '' 1 2 15
    1801 cat > confcache <<\EOF
     4832ac_config_files="$ac_config_files $outfiles"
     4833cat >confcache <<\_ACEOF
    18024834# This file is a shell script that caches the results of configure
    18034835# tests run on this system so they can be shared between configure
    1804 # scripts and configure runs.  It is not useful on other systems.
    1805 # If it contains results you don't want to keep, you may remove or edit it.
     4836# scripts and configure runs, see configure's option --config-cache.
     4837# It is not useful on other systems.  If it contains results you don't
     4838# want to keep, you may remove or edit it.
    18064839#
    1807 # By default, configure uses ./config.cache as the cache file,
    1808 # creating it if it does not exist already.  You can give configure
    1809 # the --cache-file=FILE option to use a different cache file; that is
    1810 # what configure does when it calls configure scripts in
    1811 # subdirectories, so they share the cache.
    1812 # Giving --cache-file=/dev/null disables caching, for debugging configure.
    1813 # config.status only pays attention to the cache file if you give it the
    1814 # --recheck option to rerun configure.
     4840# config.status only pays attention to the cache file if you give it
     4841# the --recheck option to rerun configure.
    18154842#
    1816 EOF
     4843# `ac_cv_env_foo' variables (set or unset) will be overriden when
     4844# loading this file, other *unset* `ac_cv_foo' will be assigned the
     4845# following values.
     4846
     4847_ACEOF
     4848
    18174849# The following way of writing the cache mishandles newlines in values,
    18184850# but we know of no workaround that is simple, portable, and efficient.
     
    18204852# Ultrix sh set writes to stderr and can't be redirected directly,
    18214853# and sets the high bit in the cache file unless we assign to the vars.
    1822 (set) 2>&1 |
    1823   case `(ac_space=' '; set) 2>&1` in
    1824   *ac_space=\ *)
    1825     # `set' does not quote correctly, so add quotes (double-quote substitution
    1826     # turns \\\\ into \\, and sed turns \\ into \).
    1827     sed -n \
    1828       -e "s/'/'\\\\''/g" \
    1829       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    1830     ;;
    1831   *)
    1832     # `set' quotes correctly as required by POSIX, so do not add quotes.
    1833     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    1834     ;;
    1835   esac >> confcache
    1836 if cmp -s $cache_file confcache; then
    1837   :
    1838 else
     4854{
     4855  (set) 2>&1 |
     4856    case `(ac_space=' '; set | grep ac_space) 2>&1` in
     4857    *ac_space=\ *)
     4858      # `set' does not quote correctly, so add quotes (double-quote
     4859      # substitution turns \\\\ into \\, and sed turns \\ into \).
     4860      sed -n \
     4861        "s/'/'\\\\''/g;
     4862          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     4863      ;;
     4864    *)
     4865      # `set' quotes correctly as required by POSIX, so do not add quotes.
     4866      sed -n \
     4867        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     4868      ;;
     4869    esac;
     4870} |
     4871  sed '
     4872     t clear
     4873     : clear
     4874     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     4875     t end
     4876     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     4877     : end' >>confcache
     4878if cmp -s $cache_file confcache; then :; else
    18394879  if test -w $cache_file; then
    1840     echo "updating cache $cache_file"
    1841     cat confcache > $cache_file
     4880    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
     4881    cat confcache >$cache_file
    18424882  else
    18434883    echo "not updating unwritable cache $cache_file"
     
    18464886rm -f confcache
    18474887
    1848 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    1849 
    18504888test "x$prefix" = xNONE && prefix=$ac_default_prefix
    18514889# Let make expand exec_prefix.
    18524890test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
    18534891
    1854 # Any assignment to VPATH causes Sun make to only execute
    1855 # the first set of double-colon rules, so remove it if not needed.
    1856 # If there is a colon in the path, we need to keep it.
     4892# VPATH may cause trouble with some makes, so we remove $(srcdir),
     4893# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
     4894# trailing colons and then remove the whole line if VPATH becomes empty
     4895# (actually we leave an empty line to preserve line numbers).
    18574896if test "x$srcdir" = x.; then
    1858   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
    1859 fi
    1860 
    1861 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
     4897  ac_vpsub='/^[         ]*VPATH[        ]*=/{
     4898s/:*\$(srcdir):*/:/;
     4899s/:*\${srcdir}:*/:/;
     4900s/:*@srcdir@:*/:/;
     4901s/^\([^=]*=[    ]*\):*/\1/;
     4902s/:*$//;
     4903s/^[^=]*=[      ]*$//;
     4904}'
     4905fi
    18624906
    18634907DEFS=-DHAVE_CONFIG_H
    18644908
    1865 # Without the "./", some shells look in PATH for config.status.
    18664909: ${CONFIG_STATUS=./config.status}
    1867 
    1868 echo creating $CONFIG_STATUS
    1869 rm -f $CONFIG_STATUS
    1870 cat > $CONFIG_STATUS <<EOF
    1871 #! /bin/sh
     4910ac_clean_files_save=$ac_clean_files
     4911ac_clean_files="$ac_clean_files $CONFIG_STATUS"
     4912{ echo "$as_me:4912: creating $CONFIG_STATUS" >&5
     4913echo "$as_me: creating $CONFIG_STATUS" >&6;}
     4914cat >$CONFIG_STATUS <<_ACEOF
     4915#! $SHELL
    18724916# Generated automatically by configure.
    18734917# Run this file to recreate the current configuration.
    1874 # This directory was configured as follows,
    1875 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    1876 #
    1877 # $0 $ac_configure_args
    1878 #
    18794918# Compiler output produced by configure, useful for debugging
    1880 # configure, is in ./config.log if it exists.
    1881 
    1882 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
    1883 for ac_option
     4919# configure, is in config.log if it exists.
     4920
     4921debug=false
     4922SHELL=\${CONFIG_SHELL-$SHELL}
     4923ac_cs_invocation="\$0 \$@"
     4924
     4925_ACEOF
     4926
     4927cat >>$CONFIG_STATUS <<\_ACEOF
     4928# Be Bourne compatible
     4929if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     4930  emulate sh
     4931  NULLCMD=:
     4932elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
     4933  set -o posix
     4934fi
     4935
     4936# Name of the executable.
     4937as_me=`echo "$0" |sed 's,.*[\\/],,'`
     4938
     4939if expr a : '\(a\)' >/dev/null 2>&1; then
     4940  as_expr=expr
     4941else
     4942  as_expr=false
     4943fi
     4944
     4945rm -f conf$$ conf$$.exe conf$$.file
     4946echo >conf$$.file
     4947if ln -s conf$$.file conf$$ 2>/dev/null; then
     4948  # We could just check for DJGPP; but this test a) works b) is more generic
     4949  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
     4950  if test -f conf$$.exe; then
     4951    # Don't use ln at all; we don't have any links
     4952    as_ln_s='cp -p'
     4953  else
     4954    as_ln_s='ln -s'
     4955  fi
     4956elif ln conf$$.file conf$$ 2>/dev/null; then
     4957  as_ln_s=ln
     4958else
     4959  as_ln_s='cp -p'
     4960fi
     4961rm -f conf$$ conf$$.exe conf$$.file
     4962
     4963as_executable_p="test -f"
     4964
     4965# Support unset when possible.
     4966if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
     4967  as_unset=unset
     4968else
     4969  as_unset=false
     4970fi
     4971
     4972# NLS nuisances.
     4973$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
     4974$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
     4975$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
     4976$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
     4977$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
     4978$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
     4979$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
     4980$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
     4981
     4982# IFS
     4983# We need space, tab and new line, in precisely that order.
     4984as_nl='
     4985'
     4986IFS="   $as_nl"
     4987
     4988# CDPATH.
     4989$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
     4990
     4991exec 6>&1
     4992
     4993_ACEOF
     4994
     4995# Files that config.status was made for.
     4996if test -n "$ac_config_files"; then
     4997  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
     4998fi
     4999
     5000if test -n "$ac_config_headers"; then
     5001  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
     5002fi
     5003
     5004if test -n "$ac_config_links"; then
     5005  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
     5006fi
     5007
     5008if test -n "$ac_config_commands"; then
     5009  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
     5010fi
     5011
     5012cat >>$CONFIG_STATUS <<\EOF
     5013
     5014ac_cs_usage="\
     5015\`$as_me' instantiates files from templates according to the
     5016current configuration.
     5017
     5018Usage: $0 [OPTIONS] [FILE]...
     5019
     5020  -h, --help       print this help, then exit
     5021  -V, --version    print version number, then exit
     5022  -d, --debug      don't remove temporary files
     5023      --recheck    update $as_me by reconfiguring in the same conditions
     5024  --file=FILE[:TEMPLATE]
     5025                   instantiate the configuration file FILE
     5026  --header=FILE[:TEMPLATE]
     5027                   instantiate the configuration header FILE
     5028
     5029Configuration files:
     5030$config_files
     5031
     5032Configuration headers:
     5033$config_headers
     5034
     5035Report bugs to <bug-autoconf@gnu.org>."
     5036EOF
     5037
     5038cat >>$CONFIG_STATUS <<EOF
     5039ac_cs_version="\\
     5040config.status
     5041configured by $0, generated by GNU Autoconf 2.52,
     5042  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
     5043
     5044Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     5045Free Software Foundation, Inc.
     5046This config.status script is free software; the Free Software Foundation
     5047gives unlimited permission to copy, distribute and modify it."
     5048srcdir=$srcdir
     5049INSTALL="$INSTALL"
     5050EOF
     5051
     5052cat >>$CONFIG_STATUS <<\EOF
     5053# If no file are specified by the user, then we need to provide default
     5054# value.  By we need to know if files were specified by the user.
     5055ac_need_defaults=:
     5056while test $# != 0
    18845057do
    1885   case "\$ac_option" in
     5058  case $1 in
     5059  --*=*)
     5060    ac_option=`expr "x$1" : 'x\([^=]*\)='`
     5061    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
     5062    shift
     5063    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
     5064    shift
     5065    ;;
     5066  -*);;
     5067  *) # This is not an option, so the user has probably given explicit
     5068     # arguments.
     5069     ac_need_defaults=false;;
     5070  esac
     5071
     5072  case $1 in
     5073  # Handling of the options.
     5074EOF
     5075cat >>$CONFIG_STATUS <<EOF
    18865076  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    1887     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    1888     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    1889   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    1890     echo "$CONFIG_STATUS generated by autoconf version 2.12"
    1891     exit 0 ;;
    1892   -help | --help | --hel | --he | --h)
    1893     echo "\$ac_cs_usage"; exit 0 ;;
    1894   *) echo "\$ac_cs_usage"; exit 1 ;;
     5077    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
     5078    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
     5079EOF
     5080cat >>$CONFIG_STATUS <<\EOF
     5081  --version | --vers* | -V )
     5082    echo "$ac_cs_version"; exit 0 ;;
     5083  --he | --h)
     5084    # Conflict between --help and --header
     5085    { { echo "$as_me:5085: error: ambiguous option: $1
     5086Try \`$0 --help' for more information." >&5
     5087echo "$as_me: error: ambiguous option: $1
     5088Try \`$0 --help' for more information." >&2;}
     5089   { (exit 1); exit 1; }; };;
     5090  --help | --hel | -h )
     5091    echo "$ac_cs_usage"; exit 0 ;;
     5092  --debug | --d* | -d )
     5093    debug=: ;;
     5094  --file | --fil | --fi | --f )
     5095    shift
     5096    CONFIG_FILES="$CONFIG_FILES $1"
     5097    ac_need_defaults=false;;
     5098  --header | --heade | --head | --hea )
     5099    shift
     5100    CONFIG_HEADERS="$CONFIG_HEADERS $1"
     5101    ac_need_defaults=false;;
     5102
     5103  # This is an error.
     5104  -*) { { echo "$as_me:5104: error: unrecognized option: $1
     5105Try \`$0 --help' for more information." >&5
     5106echo "$as_me: error: unrecognized option: $1
     5107Try \`$0 --help' for more information." >&2;}
     5108   { (exit 1); exit 1; }; } ;;
     5109
     5110  *) ac_config_targets="$ac_config_targets $1" ;;
     5111
     5112  esac
     5113  shift
     5114done
     5115
     5116exec 5>>config.log
     5117cat >&5 << _ACEOF
     5118
     5119## ----------------------- ##
     5120## Running config.status.  ##
     5121## ----------------------- ##
     5122
     5123This file was extended by $as_me 2.52, executed with
     5124  CONFIG_FILES    = $CONFIG_FILES
     5125  CONFIG_HEADERS  = $CONFIG_HEADERS
     5126  CONFIG_LINKS    = $CONFIG_LINKS
     5127  CONFIG_COMMANDS = $CONFIG_COMMANDS
     5128  > $ac_cs_invocation
     5129on `(hostname || uname -n) 2>/dev/null | sed 1q`
     5130
     5131_ACEOF
     5132EOF
     5133
     5134cat >>$CONFIG_STATUS <<\EOF
     5135for ac_config_target in $ac_config_targets
     5136do
     5137  case "$ac_config_target" in
     5138  # Handling of arguments.
     5139  "$outfiles" ) CONFIG_FILES="$CONFIG_FILES $outfiles" ;;
     5140  "conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS conf.h" ;;
     5141  *) { { echo "$as_me:5141: error: invalid argument: $ac_config_target" >&5
     5142echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     5143   { (exit 1); exit 1; }; };;
    18955144  esac
    18965145done
    18975146
    1898 ac_given_srcdir=$srcdir
    1899 ac_given_INSTALL="$INSTALL"
    1900 
    1901 trap 'rm -fr `echo "$outfiles conf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
     5147# If the user did not use the arguments to specify the items to instantiate,
     5148# then the envvar interface is used.  Set only those that are not.
     5149# We use the long form for the default assignment because of an extremely
     5150# bizarre bug on SunOS 4.1.3.
     5151if $ac_need_defaults; then
     5152  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     5153  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
     5154fi
     5155
     5156# Create a temporary directory, and hook for its removal unless debugging.
     5157$debug ||
     5158{
     5159  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     5160  trap '{ (exit 1); exit 1; }' 1 2 13 15
     5161}
     5162
     5163# Create a (secure) tmp directory for tmp files.
     5164: ${TMPDIR=/tmp}
     5165{
     5166  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
     5167  test -n "$tmp" && test -d "$tmp"
     5168}  ||
     5169{
     5170  tmp=$TMPDIR/cs$$-$RANDOM
     5171  (umask 077 && mkdir $tmp)
     5172} ||
     5173{
     5174   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     5175   { (exit 1); exit 1; }
     5176}
     5177
    19025178EOF
    1903 cat >> $CONFIG_STATUS <<EOF
    1904 
    1905 # Protect against being on the right side of a sed subst in config.status.
    1906 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
    1907  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
    1908 $ac_vpsub
    1909 $extrasub
    1910 s%@CFLAGS@%$CFLAGS%g
    1911 s%@CPPFLAGS@%$CPPFLAGS%g
    1912 s%@CXXFLAGS@%$CXXFLAGS%g
    1913 s%@DEFS@%$DEFS%g
    1914 s%@LDFLAGS@%$LDFLAGS%g
    1915 s%@LIBS@%$LIBS%g
    1916 s%@exec_prefix@%$exec_prefix%g
    1917 s%@prefix@%$prefix%g
    1918 s%@program_transform_name@%$program_transform_name%g
    1919 s%@bindir@%$bindir%g
    1920 s%@sbindir@%$sbindir%g
    1921 s%@libexecdir@%$libexecdir%g
    1922 s%@datadir@%$datadir%g
    1923 s%@sysconfdir@%$sysconfdir%g
    1924 s%@sharedstatedir@%$sharedstatedir%g
    1925 s%@localstatedir@%$localstatedir%g
    1926 s%@libdir@%$libdir%g
    1927 s%@includedir@%$includedir%g
    1928 s%@oldincludedir@%$oldincludedir%g
    1929 s%@infodir@%$infodir%g
    1930 s%@mandir@%$mandir%g
    1931 s%@use_sophya@%$use_sophya%g
    1932 s%@CC@%$CC%g
    1933 s%@CXX@%$CXX%g
    1934 s%@AR@%$AR%g
    1935 s%@ARFLAGS@%$ARFLAGS%g
    1936 s%@RANLIB@%$RANLIB%g
    1937 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
    1938 s%@INSTALL_DATA@%$INSTALL_DATA%g
    1939 s%@gcc@%$gcc%g
    1940 s%@cfitslibdir@%$cfitslibdir%g
    1941 s%@cfitsincdir@%$cfitsincdir%g
    1942 s%@CPP@%$CPP%g
    1943 
     5179
     5180cat >>$CONFIG_STATUS <<EOF
     5181
     5182#
     5183# CONFIG_FILES section.
     5184#
     5185
     5186# No need to generate the scripts if there are no CONFIG_FILES.
     5187# This happens for instance when ./config.status config.h
     5188if test -n "\$CONFIG_FILES"; then
     5189  # Protect against being on the right side of a sed subst in config.status.
     5190  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
     5191   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
     5192s,@SHELL@,$SHELL,;t t
     5193s,@exec_prefix@,$exec_prefix,;t t
     5194s,@prefix@,$prefix,;t t
     5195s,@program_transform_name@,$program_transform_name,;t t
     5196s,@bindir@,$bindir,;t t
     5197s,@sbindir@,$sbindir,;t t
     5198s,@libexecdir@,$libexecdir,;t t
     5199s,@datadir@,$datadir,;t t
     5200s,@sysconfdir@,$sysconfdir,;t t
     5201s,@sharedstatedir@,$sharedstatedir,;t t
     5202s,@localstatedir@,$localstatedir,;t t
     5203s,@libdir@,$libdir,;t t
     5204s,@includedir@,$includedir,;t t
     5205s,@oldincludedir@,$oldincludedir,;t t
     5206s,@infodir@,$infodir,;t t
     5207s,@mandir@,$mandir,;t t
     5208s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
     5209s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
     5210s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
     5211s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
     5212s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
     5213s,@build_alias@,$build_alias,;t t
     5214s,@host_alias@,$host_alias,;t t
     5215s,@target_alias@,$target_alias,;t t
     5216s,@ECHO_C@,$ECHO_C,;t t
     5217s,@ECHO_N@,$ECHO_N,;t t
     5218s,@ECHO_T@,$ECHO_T,;t t
     5219s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
     5220s,@DEFS@,$DEFS,;t t
     5221s,@LIBS@,$LIBS,;t t
     5222s,@use_sophya@,$use_sophya,;t t
     5223s,@use_piolib@,$use_piolib,;t t
     5224s,@CC@,$CC,;t t
     5225s,@CFLAGS@,$CFLAGS,;t t
     5226s,@LDFLAGS@,$LDFLAGS,;t t
     5227s,@CPPFLAGS@,$CPPFLAGS,;t t
     5228s,@ac_ct_CC@,$ac_ct_CC,;t t
     5229s,@EXEEXT@,$EXEEXT,;t t
     5230s,@OBJEXT@,$OBJEXT,;t t
     5231s,@CXX@,$CXX,;t t
     5232s,@CXXFLAGS@,$CXXFLAGS,;t t
     5233s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     5234s,@AR@,$AR,;t t
     5235s,@ARFLAGS@,$ARFLAGS,;t t
     5236s,@RANLIB@,$RANLIB,;t t
     5237s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
     5238s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     5239s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     5240s,@INSTALL_DATA@,$INSTALL_DATA,;t t
     5241s,@gcc@,$gcc,;t t
     5242s,@CPP@,$CPP,;t t
     5243s,@cfitslibdir@,$cfitslibdir,;t t
     5244s,@cfitsincdir@,$cfitsincdir,;t t
     5245s,@piolibdir@,$piolibdir,;t t
     5246s,@pioincdir@,$pioincdir,;t t
    19445247CEOF
     5248
    19455249EOF
    19465250
    1947 cat >> $CONFIG_STATUS <<\EOF
    1948 
    1949 # Split the substitutions into bite-sized pieces for seds with
    1950 # small command number limits, like on Digital OSF/1 and HP-UX.
    1951 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
    1952 ac_file=1 # Number of current file.
    1953 ac_beg=1 # First line for current file.
    1954 ac_end=$ac_max_sed_cmds # Line after last line for current file.
    1955 ac_more_lines=:
    1956 ac_sed_cmds=""
    1957 while $ac_more_lines; do
    1958   if test $ac_beg -gt 1; then
    1959     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
    1960   else
    1961     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
     5251  cat >>$CONFIG_STATUS <<\EOF
     5252  # Split the substitutions into bite-sized pieces for seds with
     5253  # small command number limits, like on Digital OSF/1 and HP-UX.
     5254  ac_max_sed_lines=48
     5255  ac_sed_frag=1 # Number of current file.
     5256  ac_beg=1 # First line for current file.
     5257  ac_end=$ac_max_sed_lines # Line after last line for current file.
     5258  ac_more_lines=:
     5259  ac_sed_cmds=
     5260  while $ac_more_lines; do
     5261    if test $ac_beg -gt 1; then
     5262      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     5263    else
     5264      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
     5265    fi
     5266    if test ! -s $tmp/subs.frag; then
     5267      ac_more_lines=false
     5268    else
     5269      # The purpose of the label and of the branching condition is to
     5270      # speed up the sed processing (if there are no `@' at all, there
     5271      # is no need to browse any of the substitutions).
     5272      # These are the two extra sed commands mentioned above.
     5273      (echo ':t
     5274  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
     5275      if test -z "$ac_sed_cmds"; then
     5276        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     5277      else
     5278        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     5279      fi
     5280      ac_sed_frag=`expr $ac_sed_frag + 1`
     5281      ac_beg=$ac_end
     5282      ac_end=`expr $ac_end + $ac_max_sed_lines`
     5283    fi
     5284  done
     5285  if test -z "$ac_sed_cmds"; then
     5286    ac_sed_cmds=cat
    19625287  fi
    1963   if test ! -s conftest.s$ac_file; then
    1964     ac_more_lines=false
    1965     rm -f conftest.s$ac_file
    1966   else
    1967     if test -z "$ac_sed_cmds"; then
    1968       ac_sed_cmds="sed -f conftest.s$ac_file"
    1969     else
    1970       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    1971     fi
    1972     ac_file=`expr $ac_file + 1`
    1973     ac_beg=$ac_end
    1974     ac_end=`expr $ac_end + $ac_max_sed_cmds`
    1975   fi
    1976 done
    1977 if test -z "$ac_sed_cmds"; then
    1978   ac_sed_cmds=cat
    1979 fi
     5288fi # test -n "$CONFIG_FILES"
     5289
    19805290EOF
    1981 
    1982 cat >> $CONFIG_STATUS <<EOF
    1983 
    1984 CONFIG_FILES=\${CONFIG_FILES-"$outfiles"}
    1985 EOF
    1986 cat >> $CONFIG_STATUS <<\EOF
    1987 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
     5291cat >>$CONFIG_STATUS <<\EOF
     5292for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
    19885293  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    1989   case "$ac_file" in
    1990   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    1991        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    1992   *) ac_file_in="${ac_file}.in" ;;
     5294  case $ac_file in
     5295  - | *:- | *:-:* ) # input from stdin
     5296        cat >$tmp/stdin
     5297        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5298        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5299  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5300        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5301  * )   ac_file_in=$ac_file.in ;;
    19935302  esac
    19945303
    1995   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    1996 
    1997   # Remove last slash and all that follows it.  Not all systems have dirname.
    1998   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     5304  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
     5305  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     5306         X"$ac_file" : 'X\(//\)[^/]' \| \
     5307         X"$ac_file" : 'X\(//\)$' \| \
     5308         X"$ac_file" : 'X\(/\)' \| \
     5309         .     : '\(.\)' 2>/dev/null ||
     5310echo X"$ac_file" |
     5311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     5312          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     5313          /^X\(\/\/\)$/{ s//\1/; q; }
     5314          /^X\(\/\).*/{ s//\1/; q; }
     5315          s/.*/./; q'`
    19995316  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    2000     # The file is in a subdirectory.
    2001     test ! -d "$ac_dir" && mkdir "$ac_dir"
    2002     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
     5317    { case "$ac_dir" in
     5318  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     5319  *)                      as_incr_dir=.;;
     5320esac
     5321as_dummy="$ac_dir"
     5322for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     5323  case $as_mkdir_dir in
     5324    # Skip DOS drivespec
     5325    ?:) as_incr_dir=$as_mkdir_dir ;;
     5326    *)
     5327      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     5328      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     5329    ;;
     5330  esac
     5331done; }
     5332
     5333    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
    20035334    # A "../" for each directory in $ac_dir_suffix.
    2004     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
     5335    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
    20055336  else
    20065337    ac_dir_suffix= ac_dots=
    20075338  fi
    20085339
    2009   case "$ac_given_srcdir" in
    2010   .)  srcdir=.
    2011       if test -z "$ac_dots"; then top_srcdir=.
    2012       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
    2013   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
     5340  case $srcdir in
     5341  .)  ac_srcdir=.
     5342      if test -z "$ac_dots"; then
     5343         ac_top_srcdir=.
     5344      else
     5345         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
     5346      fi ;;
     5347  [\\/]* | ?:[\\/]* )
     5348      ac_srcdir=$srcdir$ac_dir_suffix;
     5349      ac_top_srcdir=$srcdir ;;
    20145350  *) # Relative path.
    2015     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    2016     top_srcdir="$ac_dots$ac_given_srcdir" ;;
     5351    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
     5352    ac_top_srcdir=$ac_dots$srcdir ;;
    20175353  esac
    20185354
    2019   case "$ac_given_INSTALL" in
    2020   [/$]*) INSTALL="$ac_given_INSTALL" ;;
    2021   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
     5355  case $INSTALL in
     5356  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
     5357  *) ac_INSTALL=$ac_dots$INSTALL ;;
    20225358  esac
    20235359
    2024   echo creating "$ac_file"
    2025   rm -f "$ac_file"
    2026   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
    2027   case "$ac_file" in
    2028   *Makefile*) ac_comsub="1i\\
    2029 # $configure_input" ;;
    2030   *) ac_comsub= ;;
    2031   esac
    2032 
    2033   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    2034   sed -e "$ac_comsub
    2035 s%@configure_input@%$configure_input%g
    2036 s%@srcdir@%$srcdir%g
    2037 s%@top_srcdir@%$top_srcdir%g
    2038 s%@INSTALL@%$INSTALL%g
    2039 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    2040 fi; done
    2041 rm -f conftest.s*
     5360  if test x"$ac_file" != x-; then
     5361    { echo "$as_me:5361: creating $ac_file" >&5
     5362echo "$as_me: creating $ac_file" >&6;}
     5363    rm -f "$ac_file"
     5364  fi
     5365  # Let's still pretend it is `configure' which instantiates (i.e., don't
     5366  # use $as_me), people would be surprised to read:
     5367  #    /* config.h.  Generated automatically by config.status.  */
     5368  configure_input="Generated automatically from `echo $ac_file_in |
     5369                                                 sed 's,.*/,,'` by configure."
     5370
     5371  # First look for the input files in the build tree, otherwise in the
     5372  # src tree.
     5373  ac_file_inputs=`IFS=:
     5374    for f in $ac_file_in; do
     5375      case $f in
     5376      -) echo $tmp/stdin ;;
     5377      [\\/$]*)
     5378         # Absolute (can't be DOS-style, as IFS=:)
     5379         test -f "$f" || { { echo "$as_me:5379: error: cannot find input file: $f" >&5
     5380echo "$as_me: error: cannot find input file: $f" >&2;}
     5381   { (exit 1); exit 1; }; }
     5382         echo $f;;
     5383      *) # Relative
     5384         if test -f "$f"; then
     5385           # Build tree
     5386           echo $f
     5387         elif test -f "$srcdir/$f"; then
     5388           # Source tree
     5389           echo $srcdir/$f
     5390         else
     5391           # /dev/null tree
     5392           { { echo "$as_me:5392: error: cannot find input file: $f" >&5
     5393echo "$as_me: error: cannot find input file: $f" >&2;}
     5394   { (exit 1); exit 1; }; }
     5395         fi;;
     5396      esac
     5397    done` || { (exit 1); exit 1; }
     5398EOF
     5399cat >>$CONFIG_STATUS <<EOF
     5400  sed "$ac_vpsub
     5401$extrasub
     5402EOF
     5403cat >>$CONFIG_STATUS <<\EOF
     5404:t
     5405/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
     5406s,@configure_input@,$configure_input,;t t
     5407s,@srcdir@,$ac_srcdir,;t t
     5408s,@top_srcdir@,$ac_top_srcdir,;t t
     5409s,@INSTALL@,$ac_INSTALL,;t t
     5410" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
     5411  rm -f $tmp/stdin
     5412  if test x"$ac_file" != x-; then
     5413    mv $tmp/out $ac_file
     5414  else
     5415    cat $tmp/out
     5416    rm -f $tmp/out
     5417  fi
     5418
     5419done
     5420EOF
     5421cat >>$CONFIG_STATUS <<\EOF
     5422
     5423#
     5424# CONFIG_HEADER section.
     5425#
    20425426
    20435427# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    20455429#
    20465430# ac_d sets the value in "#define NAME VALUE" lines.
    2047 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
    2048 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
    2049 ac_dC='\3'
    2050 ac_dD='%g'
    2051 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
    2052 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    2053 ac_uB='\([      ]\)%\1#\2define\3'
     5431ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
     5432ac_dB='[        ].*$,\1#\2'
     5433ac_dC=' '
     5434ac_dD=',;t'
     5435# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     5436ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     5437ac_uB='$,\1#\2define\3'
    20545438ac_uC=' '
    2055 ac_uD='\4%g'
    2056 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    2057 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    2058 ac_eB='$%\1#\2define\3'
    2059 ac_eC=' '
    2060 ac_eD='%g'
    2061 
    2062 if test "${CONFIG_HEADERS+set}" != set; then
     5439ac_uD=',;t'
     5440
     5441for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
     5442  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     5443  case $ac_file in
     5444  - | *:- | *:-:* ) # input from stdin
     5445        cat >$tmp/stdin
     5446        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5447        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5448  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     5449        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     5450  * )   ac_file_in=$ac_file.in ;;
     5451  esac
     5452
     5453  test x"$ac_file" != x- && { echo "$as_me:5453: creating $ac_file" >&5
     5454echo "$as_me: creating $ac_file" >&6;}
     5455
     5456  # First look for the input files in the build tree, otherwise in the
     5457  # src tree.
     5458  ac_file_inputs=`IFS=:
     5459    for f in $ac_file_in; do
     5460      case $f in
     5461      -) echo $tmp/stdin ;;
     5462      [\\/$]*)
     5463         # Absolute (can't be DOS-style, as IFS=:)
     5464         test -f "$f" || { { echo "$as_me:5464: error: cannot find input file: $f" >&5
     5465echo "$as_me: error: cannot find input file: $f" >&2;}
     5466   { (exit 1); exit 1; }; }
     5467         echo $f;;
     5468      *) # Relative
     5469         if test -f "$f"; then
     5470           # Build tree
     5471           echo $f
     5472         elif test -f "$srcdir/$f"; then
     5473           # Source tree
     5474           echo $srcdir/$f
     5475         else
     5476           # /dev/null tree
     5477           { { echo "$as_me:5477: error: cannot find input file: $f" >&5
     5478echo "$as_me: error: cannot find input file: $f" >&2;}
     5479   { (exit 1); exit 1; }; }
     5480         fi;;
     5481      esac
     5482    done` || { (exit 1); exit 1; }
     5483  # Remove the trailing spaces.
     5484  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
     5485
    20635486EOF
    2064 cat >> $CONFIG_STATUS <<EOF
    2065   CONFIG_HEADERS="conf.h"
     5487
     5488# Transform confdefs.h into two sed scripts, `conftest.defines' and
     5489# `conftest.undefs', that substitutes the proper values into
     5490# config.h.in to produce config.h.  The first handles `#define'
     5491# templates, and the second `#undef' templates.
     5492# And first: Protect against being on the right side of a sed subst in
     5493# config.status.  Protect against being in an unquoted here document
     5494# in config.status.
     5495rm -f conftest.defines conftest.undefs
     5496# Using a here document instead of a string reduces the quoting nightmare.
     5497# Putting comments in sed scripts is not portable.
     5498#
     5499# `end' is used to avoid that the second main sed command (meant for
     5500# 0-ary CPP macros) applies to n-ary macro definitions.
     5501# See the Autoconf documentation for `clear'.
     5502cat >confdef2sed.sed <<\EOF
     5503s/[\\&,]/\\&/g
     5504s,[\\$`],\\&,g
     5505t clear
     5506: clear
     5507s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
     5508t end
     5509s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     5510: end
    20665511EOF
    2067 cat >> $CONFIG_STATUS <<\EOF
    2068 fi
    2069 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
    2070   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    2071   case "$ac_file" in
    2072   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    2073        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    2074   *) ac_file_in="${ac_file}.in" ;;
    2075   esac
    2076 
    2077   echo creating $ac_file
    2078 
    2079   rm -f conftest.frag conftest.in conftest.out
    2080   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    2081   cat $ac_file_inputs > conftest.in
    2082 
    2083 EOF
    2084 
    2085 # Transform confdefs.h into a sed script conftest.vals that substitutes
    2086 # the proper values into config.h.in to produce config.h.  And first:
    2087 # Protect against being on the right side of a sed subst in config.status.
    2088 # Protect against being in an unquoted here document in config.status.
    2089 rm -f conftest.vals
    2090 cat > conftest.hdr <<\EOF
    2091 s/[\\&%]/\\&/g
    2092 s%[\\$`]%\\&%g
    2093 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
    2094 s%ac_d%ac_u%gp
    2095 s%ac_u%ac_e%gp
    2096 EOF
    2097 sed -n -f conftest.hdr confdefs.h > conftest.vals
    2098 rm -f conftest.hdr
     5512# If some macros were called several times there might be several times
     5513# the same #defines, which is useless.  Nevertheless, we may not want to
     5514# sort them, since we want the *last* AC-DEFINE to be honored.
     5515uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     5516sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     5517rm -f confdef2sed.sed
    20995518
    21005519# This sed command replaces #undef with comments.  This is necessary, for
    21015520# example, in the case of _POSIX_SOURCE, which is predefined and required
    21025521# on some systems where configure will not decide to define it.
    2103 cat >> conftest.vals <<\EOF
    2104 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
     5522cat >>conftest.undefs <<\EOF
     5523s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    21055524EOF
    21065525
    2107 # Break up conftest.vals because some shells have a limit on
    2108 # the size of here documents, and old seds have small limits too.
    2109 
     5526# Break up conftest.defines because some shells have a limit on the size
     5527# of here documents, and old seds have small limits too (100 cmds).
     5528echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     5529echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     5530echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     5531echo '  :' >>$CONFIG_STATUS
    21105532rm -f conftest.tail
    2111 while :
     5533while grep . conftest.defines >/dev/null
    21125534do
    2113   ac_lines=`grep -c . conftest.vals`
    2114   # grep -c gives empty output for an empty file on some AIX systems.
    2115   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
    2116   # Write a limited-size here document to conftest.frag.
    2117   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
    2118   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
     5535  # Write a limited-size here document to $tmp/defines.sed.
     5536  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     5537  # Speed up: don't consider the non `#define' lines.
     5538  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
     5539  # Work around the forget-to-reset-the-flag bug.
     5540  echo 't clr' >>$CONFIG_STATUS
     5541  echo ': clr' >>$CONFIG_STATUS
     5542  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
    21195543  echo 'CEOF
    2120   sed -f conftest.frag conftest.in > conftest.out
    2121   rm -f conftest.in
    2122   mv conftest.out conftest.in
    2123 ' >> $CONFIG_STATUS
    2124   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
    2125   rm -f conftest.vals
    2126   mv conftest.tail conftest.vals
     5544  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     5545  rm -f $tmp/in
     5546  mv $tmp/out $tmp/in
     5547' >>$CONFIG_STATUS
     5548  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     5549  rm -f conftest.defines
     5550  mv conftest.tail conftest.defines
    21275551done
    2128 rm -f conftest.vals
    2129 
    2130 cat >> $CONFIG_STATUS <<\EOF
    2131   rm -f conftest.frag conftest.h
    2132   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
    2133   cat conftest.in >> conftest.h
    2134   rm -f conftest.in
    2135   if cmp -s $ac_file conftest.h 2>/dev/null; then
    2136     echo "$ac_file is unchanged"
    2137     rm -f conftest.h
     5552rm -f conftest.defines
     5553echo '  fi # egrep' >>$CONFIG_STATUS
     5554echo >>$CONFIG_STATUS
     5555
     5556# Break up conftest.undefs because some shells have a limit on the size
     5557# of here documents, and old seds have small limits too (100 cmds).
     5558echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     5559rm -f conftest.tail
     5560while grep . conftest.undefs >/dev/null
     5561do
     5562  # Write a limited-size here document to $tmp/undefs.sed.
     5563  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     5564  # Speed up: don't consider the non `#undef'
     5565  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     5566  # Work around the forget-to-reset-the-flag bug.
     5567  echo 't clr' >>$CONFIG_STATUS
     5568  echo ': clr' >>$CONFIG_STATUS
     5569  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     5570  echo 'CEOF
     5571  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     5572  rm -f $tmp/in
     5573  mv $tmp/out $tmp/in
     5574' >>$CONFIG_STATUS
     5575  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     5576  rm -f conftest.undefs
     5577  mv conftest.tail conftest.undefs
     5578done
     5579rm -f conftest.undefs
     5580
     5581cat >>$CONFIG_STATUS <<\EOF
     5582  # Let's still pretend it is `configure' which instantiates (i.e., don't
     5583  # use $as_me), people would be surprised to read:
     5584  #    /* config.h.  Generated automatically by config.status.  */
     5585  if test x"$ac_file" = x-; then
     5586    echo "/* Generated automatically by configure.  */" >$tmp/config.h
    21385587  else
    2139     # Remove last slash and all that follows it.  Not all systems have dirname.
    2140       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     5588    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
     5589  fi
     5590  cat $tmp/in >>$tmp/config.h
     5591  rm -f $tmp/in
     5592  if test x"$ac_file" != x-; then
     5593    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
     5594      { echo "$as_me:5594: $ac_file is unchanged" >&5
     5595echo "$as_me: $ac_file is unchanged" >&6;}
     5596    else
     5597      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     5598         X"$ac_file" : 'X\(//\)[^/]' \| \
     5599         X"$ac_file" : 'X\(//\)$' \| \
     5600         X"$ac_file" : 'X\(/\)' \| \
     5601         .     : '\(.\)' 2>/dev/null ||
     5602echo X"$ac_file" |
     5603    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     5604          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     5605          /^X\(\/\/\)$/{ s//\1/; q; }
     5606          /^X\(\/\).*/{ s//\1/; q; }
     5607          s/.*/./; q'`
    21415608      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    2142       # The file is in a subdirectory.
    2143       test ! -d "$ac_dir" && mkdir "$ac_dir"
     5609        { case "$ac_dir" in
     5610  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
     5611  *)                      as_incr_dir=.;;
     5612esac
     5613as_dummy="$ac_dir"
     5614for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
     5615  case $as_mkdir_dir in
     5616    # Skip DOS drivespec
     5617    ?:) as_incr_dir=$as_mkdir_dir ;;
     5618    *)
     5619      as_incr_dir=$as_incr_dir/$as_mkdir_dir
     5620      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
     5621    ;;
     5622  esac
     5623done; }
     5624
     5625      fi
     5626      rm -f $ac_file
     5627      mv $tmp/config.h $ac_file
    21445628    fi
    2145     rm -f $ac_file
    2146     mv conftest.h $ac_file
     5629  else
     5630    cat $tmp/config.h
     5631    rm -f $tmp/config.h
    21475632  fi
    2148 fi; done
    2149 
     5633done
    21505634EOF
    2151 cat >> $CONFIG_STATUS <<EOF
    2152 
    2153 EOF
    2154 cat >> $CONFIG_STATUS <<\EOF
    2155 
    2156 exit 0
     5635
     5636cat >>$CONFIG_STATUS <<\EOF
     5637
     5638{ (exit 0); exit 0; }
    21575639EOF
    21585640chmod +x $CONFIG_STATUS
    2159 rm -fr confdefs* $ac_clean_files
    2160 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
    2161 
    2162 
     5641ac_clean_files=$ac_clean_files_save
     5642
     5643# configure is writing to config.log, and then calls config.status.
     5644# config.status does its own redirection, appending to config.log.
     5645# Unfortunately, on DOS this fails, as config.log is still kept open
     5646# by configure, so config.status won't be able to write to it; its
     5647# output is simply discarded.  So we exec the FD to /dev/null,
     5648# effectively closing config.log, so it can be properly (re)opened and
     5649# appended to by config.status.  When coming back to configure, we
     5650# need to make the FD available again.
     5651if test "$no_create" != yes; then
     5652  ac_cs_success=:
     5653  exec 5>/dev/null
     5654  $SHELL $CONFIG_STATUS || ac_cs_success=false
     5655  exec 5>>config.log
     5656  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
     5657  # would make configure fail if this is the last instruction.
     5658  $ac_cs_success || { (exit 1); exit 1; }
     5659fi
     5660
  • trunk/ArchTOIPipe/configure.in

    r1957 r2328  
    77
    88AC_SUBST(use_sophya)
     9
     10AC_ARG_WITH(piolib, [ --with-piolib   Compile with PIOLib],
     11        use_piolib=1, use_piolib=0)
     12AC_SUBST(use_piolib)
    913
    1014if test `uname` = OSF1 -a -z "$CXX"; then
     
    119123AC_CHECK_LIB(g2c, s_copy)
    120124
     125dnl Check if piolib is available
     126if test $use_piolib = 1; then
     127  AC_MSG_CHECKING("for PIOLib")
     128  if test -f /usr/local/lib/libpiolib.a; then
     129    piolibdir=""
     130    pioincdir=""
     131  elif test -f $PIOLIBDIR/libpiolib.a; then
     132    piolibdir=$PIOLIBDIR
     133    pioincdir='-I$(PIOINCDIR)'
     134  else
     135    AC_MSG_ERROR("Cannot find PIO library")
     136  fi
     137  AC_MSG_RESULT("ok")
     138  AC_SUBST(piolibdir)
     139  AC_SUBST(pioincdir)
     140fi
     141
    121142dnl Checks for header files.
    122143AC_HEADER_STDC
    123144AC_CHECK_HEADERS(values.h stdint.h)
    124145
    125 outfiles="Makefile Kernel/Makefile Processors/Makefile TestPipes/Makefile Makefile.h"
     146outfiles="Makefile Kernel/Makefile Processors/Makefile TestPipes/Makefile"
    126147if [[ $use_sophya = 1 ]]; then
    127148  outfiles="$outfiles ProcWSophya/Makefile"
Note: See TracChangeset for help on using the changeset viewer.