source: trunk/configure @ 718

Last change on this file since 718 was 718, checked in by dkearney, 13 years ago

after the core rappture library (librappture.so) is created the include
files necessary to compile all other bindings are copied to the top level
include directory. python, perl, matlab, octave and tcl bindings now refer
to this top level include directory to find header files.

fortran and c examples are only compiled if we find a compiler, this check
helps prevent builds from failing before the libraries are installed.

added more checks to the configure script

removed rappture search paths from perl's unix build because perl could find
an older version of rappture and compile against it. I would rather the build
fail and have the person enter a valid prefix.

addrd the -fPIC flag to CFLAGS in src2's makefile

  • Property svn:executable set to *
File size: 176.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for rappture 1.1.
4#
5# Report bugs to <rappture@nanohub.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='rappture'
271PACKAGE_TARNAME='rappture'
272PACKAGE_VERSION='1.1'
273PACKAGE_STRING='rappture 1.1'
274PACKAGE_BUGREPORT='rappture@nanohub.org'
275
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subdirs_all="$ac_subdirs_all gui"
314ac_subdirs_all="$ac_subdirs_all src/tcl"
315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION LIB_SEARCH_DIRS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 MEX MEX_ARCH MEXEXT MKOCTFILE PERL PERL_INCLUDES PERL_SITE_PACKAGES PYTHON pythondir PYTHON_VERSION PYTHON_INCLUDES PYTHON_SITE_PACKAGES RP_BASE subdirs LIBOBJS LTLIBOBJS'
316ac_subst_files=''
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359  # If the previous option needs an argument, assign it.
360  if test -n "$ac_prev"; then
361    eval "$ac_prev=\$ac_option"
362    ac_prev=
363    continue
364  fi
365
366  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368  # Accept the important Cygnus configure options, so we can diagnose typos.
369
370  case $ac_option in
371
372  -bindir | --bindir | --bindi | --bind | --bin | --bi)
373    ac_prev=bindir ;;
374  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375    bindir=$ac_optarg ;;
376
377  -build | --build | --buil | --bui | --bu)
378    ac_prev=build_alias ;;
379  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380    build_alias=$ac_optarg ;;
381
382  -cache-file | --cache-file | --cache-fil | --cache-fi \
383  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384    ac_prev=cache_file ;;
385  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387    cache_file=$ac_optarg ;;
388
389  --config-cache | -C)
390    cache_file=config.cache ;;
391
392  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393    ac_prev=datadir ;;
394  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395  | --da=*)
396    datadir=$ac_optarg ;;
397
398  -disable-* | --disable-*)
399    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400    # Reject names that are not valid shell variable names.
401    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403   { (exit 1); exit 1; }; }
404    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405    eval "enable_$ac_feature=no" ;;
406
407  -enable-* | --enable-*)
408    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409    # Reject names that are not valid shell variable names.
410    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412   { (exit 1); exit 1; }; }
413    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414    case $ac_option in
415      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416      *) ac_optarg=yes ;;
417    esac
418    eval "enable_$ac_feature='$ac_optarg'" ;;
419
420  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422  | --exec | --exe | --ex)
423    ac_prev=exec_prefix ;;
424  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426  | --exec=* | --exe=* | --ex=*)
427    exec_prefix=$ac_optarg ;;
428
429  -gas | --gas | --ga | --g)
430    # Obsolete; use --with-gas.
431    with_gas=yes ;;
432
433  -help | --help | --hel | --he | -h)
434    ac_init_help=long ;;
435  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436    ac_init_help=recursive ;;
437  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438    ac_init_help=short ;;
439
440  -host | --host | --hos | --ho)
441    ac_prev=host_alias ;;
442  -host=* | --host=* | --hos=* | --ho=*)
443    host_alias=$ac_optarg ;;
444
445  -includedir | --includedir | --includedi | --included | --include \
446  | --includ | --inclu | --incl | --inc)
447    ac_prev=includedir ;;
448  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449  | --includ=* | --inclu=* | --incl=* | --inc=*)
450    includedir=$ac_optarg ;;
451
452  -infodir | --infodir | --infodi | --infod | --info | --inf)
453    ac_prev=infodir ;;
454  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455    infodir=$ac_optarg ;;
456
457  -libdir | --libdir | --libdi | --libd)
458    ac_prev=libdir ;;
459  -libdir=* | --libdir=* | --libdi=* | --libd=*)
460    libdir=$ac_optarg ;;
461
462  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463  | --libexe | --libex | --libe)
464    ac_prev=libexecdir ;;
465  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466  | --libexe=* | --libex=* | --libe=*)
467    libexecdir=$ac_optarg ;;
468
469  -localstatedir | --localstatedir | --localstatedi | --localstated \
470  | --localstate | --localstat | --localsta | --localst \
471  | --locals | --local | --loca | --loc | --lo)
472    ac_prev=localstatedir ;;
473  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476    localstatedir=$ac_optarg ;;
477
478  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479    ac_prev=mandir ;;
480  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481    mandir=$ac_optarg ;;
482
483  -nfp | --nfp | --nf)
484    # Obsolete; use --without-fp.
485    with_fp=no ;;
486
487  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488  | --no-cr | --no-c | -n)
489    no_create=yes ;;
490
491  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493    no_recursion=yes ;;
494
495  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497  | --oldin | --oldi | --old | --ol | --o)
498    ac_prev=oldincludedir ;;
499  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502    oldincludedir=$ac_optarg ;;
503
504  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505    ac_prev=prefix ;;
506  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507    prefix=$ac_optarg ;;
508
509  -program-prefix | --program-prefix | --program-prefi | --program-pref \
510  | --program-pre | --program-pr | --program-p)
511    ac_prev=program_prefix ;;
512  -program-prefix=* | --program-prefix=* | --program-prefi=* \
513  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514    program_prefix=$ac_optarg ;;
515
516  -program-suffix | --program-suffix | --program-suffi | --program-suff \
517  | --program-suf | --program-su | --program-s)
518    ac_prev=program_suffix ;;
519  -program-suffix=* | --program-suffix=* | --program-suffi=* \
520  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521    program_suffix=$ac_optarg ;;
522
523  -program-transform-name | --program-transform-name \
524  | --program-transform-nam | --program-transform-na \
525  | --program-transform-n | --program-transform- \
526  | --program-transform | --program-transfor \
527  | --program-transfo | --program-transf \
528  | --program-trans | --program-tran \
529  | --progr-tra | --program-tr | --program-t)
530    ac_prev=program_transform_name ;;
531  -program-transform-name=* | --program-transform-name=* \
532  | --program-transform-nam=* | --program-transform-na=* \
533  | --program-transform-n=* | --program-transform-=* \
534  | --program-transform=* | --program-transfor=* \
535  | --program-transfo=* | --program-transf=* \
536  | --program-trans=* | --program-tran=* \
537  | --progr-tra=* | --program-tr=* | --program-t=*)
538    program_transform_name=$ac_optarg ;;
539
540  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541  | -silent | --silent | --silen | --sile | --sil)
542    silent=yes ;;
543
544  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545    ac_prev=sbindir ;;
546  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547  | --sbi=* | --sb=*)
548    sbindir=$ac_optarg ;;
549
550  -sharedstatedir | --sharedstatedir | --sharedstatedi \
551  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552  | --sharedst | --shareds | --shared | --share | --shar \
553  | --sha | --sh)
554    ac_prev=sharedstatedir ;;
555  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558  | --sha=* | --sh=*)
559    sharedstatedir=$ac_optarg ;;
560
561  -site | --site | --sit)
562    ac_prev=site ;;
563  -site=* | --site=* | --sit=*)
564    site=$ac_optarg ;;
565
566  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567    ac_prev=srcdir ;;
568  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569    srcdir=$ac_optarg ;;
570
571  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572  | --syscon | --sysco | --sysc | --sys | --sy)
573    ac_prev=sysconfdir ;;
574  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576    sysconfdir=$ac_optarg ;;
577
578  -target | --target | --targe | --targ | --tar | --ta | --t)
579    ac_prev=target_alias ;;
580  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581    target_alias=$ac_optarg ;;
582
583  -v | -verbose | --verbose | --verbos | --verbo | --verb)
584    verbose=yes ;;
585
586  -version | --version | --versio | --versi | --vers | -V)
587    ac_init_version=: ;;
588
589  -with-* | --with-*)
590    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591    # Reject names that are not valid shell variable names.
592    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593      { echo "$as_me: error: invalid package name: $ac_package" >&2
594   { (exit 1); exit 1; }; }
595    ac_package=`echo $ac_package| sed 's/-/_/g'`
596    case $ac_option in
597      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598      *) ac_optarg=yes ;;
599    esac
600    eval "with_$ac_package='$ac_optarg'" ;;
601
602  -without-* | --without-*)
603    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604    # Reject names that are not valid shell variable names.
605    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606      { echo "$as_me: error: invalid package name: $ac_package" >&2
607   { (exit 1); exit 1; }; }
608    ac_package=`echo $ac_package | sed 's/-/_/g'`
609    eval "with_$ac_package=no" ;;
610
611  --x)
612    # Obsolete; use --with-x.
613    with_x=yes ;;
614
615  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616  | --x-incl | --x-inc | --x-in | --x-i)
617    ac_prev=x_includes ;;
618  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620    x_includes=$ac_optarg ;;
621
622  -x-libraries | --x-libraries | --x-librarie | --x-librari \
623  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624    ac_prev=x_libraries ;;
625  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627    x_libraries=$ac_optarg ;;
628
629  -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631   { (exit 1); exit 1; }; }
632    ;;
633
634  *=*)
635    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636    # Reject names that are not valid shell variable names.
637    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639   { (exit 1); exit 1; }; }
640    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641    eval "$ac_envvar='$ac_optarg'"
642    export $ac_envvar ;;
643
644  *)
645    # FIXME: should be removed in autoconf 3.0.
646    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650    ;;
651
652  esac
653done
654
655if test -n "$ac_prev"; then
656  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657  { echo "$as_me: error: missing argument to $ac_option" >&2
658   { (exit 1); exit 1; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664  eval ac_val=$`echo $ac_var`
665  case $ac_val in
666    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668   { (exit 1); exit 1; }; };;
669  esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674              localstatedir libdir includedir oldincludedir infodir mandir
675do
676  eval ac_val=$`echo $ac_var`
677  case $ac_val in
678    [\\/$]* | ?:[\\/]* ) ;;
679    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680   { (exit 1); exit 1; }; };;
681  esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693  if test "x$build_alias" = x; then
694    cross_compiling=maybe
695    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696    If a cross compiler is detected then cross compile mode will be used." >&2
697  elif test "x$build_alias" != "x$host_alias"; then
698    cross_compiling=yes
699  fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710  ac_srcdir_defaulted=yes
711  # Try the directory containing this script, then its parent.
712  ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714         X"$0" : 'X\(//\)[^/]' \| \
715         X"$0" : 'X\(//\)$' \| \
716         X"$0" : 'X\(/\)' \| \
717         .     : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721          /^X\(\/\/\)$/{ s//\1/; q; }
722          /^X\(\/\).*/{ s//\1/; q; }
723          s/.*/./; q'`
724  srcdir=$ac_confdir
725  if test ! -r $srcdir/$ac_unique_file; then
726    srcdir=..
727  fi
728else
729  ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732  if test "$ac_srcdir_defaulted" = yes; then
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734   { (exit 1); exit 1; }; }
735  else
736    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737   { (exit 1); exit 1; }; }
738  fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742   { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
788ac_env_F77_set=${F77+set}
789ac_env_F77_value=$F77
790ac_cv_env_F77_set=${F77+set}
791ac_cv_env_F77_value=$F77
792ac_env_FFLAGS_set=${FFLAGS+set}
793ac_env_FFLAGS_value=$FFLAGS
794ac_cv_env_FFLAGS_set=${FFLAGS+set}
795ac_cv_env_FFLAGS_value=$FFLAGS
796
797#
798# Report the --help message.
799#
800if test "$ac_init_help" = "long"; then
801  # Omit some internal or obsolete options to make the list less imposing.
802  # This message is too long to be a string in the A/UX 3.1 sh.
803  cat <<_ACEOF
804\`configure' configures rappture 1.1 to adapt to many kinds of systems.
805
806Usage: $0 [OPTION]... [VAR=VALUE]...
807
808To assign environment variables (e.g., CC, CFLAGS...), specify them as
809VAR=VALUE.  See below for descriptions of some of the useful variables.
810
811Defaults for the options are specified in brackets.
812
813Configuration:
814  -h, --help              display this help and exit
815      --help=short        display options specific to this package
816      --help=recursive    display the short help of all the included packages
817  -V, --version           display version information and exit
818  -q, --quiet, --silent   do not print \`checking...' messages
819      --cache-file=FILE   cache test results in FILE [disabled]
820  -C, --config-cache      alias for \`--cache-file=config.cache'
821  -n, --no-create         do not create output files
822      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
823
824_ACEOF
825
826  cat <<_ACEOF
827Installation directories:
828  --prefix=PREFIX         install architecture-independent files in PREFIX
829                          [$ac_default_prefix]
830  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
831                          [PREFIX]
832
833By default, \`make install' will install all the files in
834\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
835an installation prefix other than \`$ac_default_prefix' using \`--prefix',
836for instance \`--prefix=\$HOME'.
837
838For better control, use the options below.
839
840Fine tuning of the installation directories:
841  --bindir=DIR           user executables [EPREFIX/bin]
842  --sbindir=DIR          system admin executables [EPREFIX/sbin]
843  --libexecdir=DIR       program executables [EPREFIX/libexec]
844  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
845  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
846  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
847  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
848  --libdir=DIR           object code libraries [EPREFIX/lib]
849  --includedir=DIR       C header files [PREFIX/include]
850  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
851  --infodir=DIR          info documentation [PREFIX/info]
852  --mandir=DIR           man documentation [PREFIX/man]
853_ACEOF
854
855  cat <<\_ACEOF
856_ACEOF
857fi
858
859if test -n "$ac_init_help"; then
860  case $ac_init_help in
861     short | recursive ) echo "Configuration of rappture 1.1:";;
862   esac
863  cat <<\_ACEOF
864
865Optional Packages:
866  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
867  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
868  --with-matlab=DIR     location of matlab and mex compiler
869                          [default=check]
870  --with-matlab-arch=ARCH build Matlab bindings for ARCH architecture
871                          [default=check]
872  --with-mexext=ARCH    fallback extension for building mex files
873                          [default=check]
874  --with-octave=DIR     location of octave compiler MKOCTFILE
875                          [default=check]
876  --with-perl=DIR       location of perl [default=check]
877  --with-python=DIR     location of python [default=check]
878
879Some influential environment variables:
880  CC          C compiler command
881  CFLAGS      C compiler flags
882  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
883              nonstandard directory <lib dir>
884  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
885              headers in a nonstandard directory <include dir>
886  CPP         C preprocessor
887  CXX         C++ compiler command
888  CXXFLAGS    C++ compiler flags
889  CXXCPP      C++ preprocessor
890  F77         Fortran 77 compiler command
891  FFLAGS      Fortran 77 compiler flags
892
893Use these variables to override the choices made by `configure' or to help
894it to find libraries and programs with nonstandard names/locations.
895
896Report bugs to <rappture@nanohub.org>.
897_ACEOF
898fi
899
900if test "$ac_init_help" = "recursive"; then
901  # If there are subdirs, report their specific --help.
902  ac_popdir=`pwd`
903  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
904    test -d $ac_dir || continue
905    ac_builddir=.
906
907if test "$ac_dir" != .; then
908  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
909  # A "../" for each directory in $ac_dir_suffix.
910  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911else
912  ac_dir_suffix= ac_top_builddir=
913fi
914
915case $srcdir in
916  .)  # No --srcdir option.  We are building in place.
917    ac_srcdir=.
918    if test -z "$ac_top_builddir"; then
919       ac_top_srcdir=.
920    else
921       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922    fi ;;
923  [\\/]* | ?:[\\/]* )  # Absolute path.
924    ac_srcdir=$srcdir$ac_dir_suffix;
925    ac_top_srcdir=$srcdir ;;
926  *) # Relative path.
927    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
928    ac_top_srcdir=$ac_top_builddir$srcdir ;;
929esac
930
931# Do not use `cd foo && pwd` to compute absolute paths, because
932# the directories may not exist.
933case `pwd` in
934.) ac_abs_builddir="$ac_dir";;
935*)
936  case "$ac_dir" in
937  .) ac_abs_builddir=`pwd`;;
938  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
939  *) ac_abs_builddir=`pwd`/"$ac_dir";;
940  esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_top_builddir=${ac_top_builddir}.;;
944*)
945  case ${ac_top_builddir}. in
946  .) ac_abs_top_builddir=$ac_abs_builddir;;
947  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
948  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949  esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_srcdir=$ac_srcdir;;
953*)
954  case $ac_srcdir in
955  .) ac_abs_srcdir=$ac_abs_builddir;;
956  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
957  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958  esac;;
959esac
960case $ac_abs_builddir in
961.) ac_abs_top_srcdir=$ac_top_srcdir;;
962*)
963  case $ac_top_srcdir in
964  .) ac_abs_top_srcdir=$ac_abs_builddir;;
965  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
966  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
967  esac;;
968esac
969
970    cd $ac_dir
971    # Check for guested configure; otherwise get Cygnus style configure.
972    if test -f $ac_srcdir/configure.gnu; then
973      echo
974      $SHELL $ac_srcdir/configure.gnu  --help=recursive
975    elif test -f $ac_srcdir/configure; then
976      echo
977      $SHELL $ac_srcdir/configure  --help=recursive
978    elif test -f $ac_srcdir/configure.ac ||
979           test -f $ac_srcdir/configure.in; then
980      echo
981      $ac_configure --help
982    else
983      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984    fi
985    cd $ac_popdir
986  done
987fi
988
989test -n "$ac_init_help" && exit 0
990if $ac_init_version; then
991  cat <<\_ACEOF
992rappture configure 1.1
993generated by GNU Autoconf 2.59
994
995Copyright (C) 2003 Free Software Foundation, Inc.
996This configure script is free software; the Free Software Foundation
997gives unlimited permission to copy, distribute and modify it.
998_ACEOF
999  exit 0
1000fi
1001exec 5>config.log
1002cat >&5 <<_ACEOF
1003This file contains any messages produced by compilers while
1004running configure, to aid debugging if configure makes a mistake.
1005
1006It was created by rappture $as_me 1.1, which was
1007generated by GNU Autoconf 2.59.  Invocation command line was
1008
1009  $ $0 $@
1010
1011_ACEOF
1012{
1013cat <<_ASUNAME
1014## --------- ##
1015## Platform. ##
1016## --------- ##
1017
1018hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1019uname -m = `(uname -m) 2>/dev/null || echo unknown`
1020uname -r = `(uname -r) 2>/dev/null || echo unknown`
1021uname -s = `(uname -s) 2>/dev/null || echo unknown`
1022uname -v = `(uname -v) 2>/dev/null || echo unknown`
1023
1024/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1025/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1026
1027/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1028/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1029/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1030hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1031/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1032/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1033/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1034
1035_ASUNAME
1036
1037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038for as_dir in $PATH
1039do
1040  IFS=$as_save_IFS
1041  test -z "$as_dir" && as_dir=.
1042  echo "PATH: $as_dir"
1043done
1044
1045} >&5
1046
1047cat >&5 <<_ACEOF
1048
1049
1050## ----------- ##
1051## Core tests. ##
1052## ----------- ##
1053
1054_ACEOF
1055
1056
1057# Keep a trace of the command line.
1058# Strip out --no-create and --no-recursion so they do not pile up.
1059# Strip out --silent because we don't want to record it for future runs.
1060# Also quote any args containing shell meta-characters.
1061# Make two passes to allow for proper duplicate-argument suppression.
1062ac_configure_args=
1063ac_configure_args0=
1064ac_configure_args1=
1065ac_sep=
1066ac_must_keep_next=false
1067for ac_pass in 1 2
1068do
1069  for ac_arg
1070  do
1071    case $ac_arg in
1072    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074    | -silent | --silent | --silen | --sile | --sil)
1075      continue ;;
1076    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1078    esac
1079    case $ac_pass in
1080    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1081    2)
1082      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083      if test $ac_must_keep_next = true; then
1084        ac_must_keep_next=false # Got value, back to normal.
1085      else
1086        case $ac_arg in
1087          *=* | --config-cache | -C | -disable-* | --disable-* \
1088          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090          | -with-* | --with-* | -without-* | --without-* | --x)
1091            case "$ac_configure_args0 " in
1092              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093            esac
1094            ;;
1095          -* ) ac_must_keep_next=true ;;
1096        esac
1097      fi
1098      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099      # Get rid of the leading space.
1100      ac_sep=" "
1101      ;;
1102    esac
1103  done
1104done
1105$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1107
1108# When interrupted or exit'd, cleanup temporary files, and complete
1109# config.log.  We remove comments because anyway the quotes in there
1110# would cause problems or look ugly.
1111# WARNING: Be sure not to use single quotes in there, as some shells,
1112# such as our DU 5.0 friend, will then `close' the trap.
1113trap 'exit_status=$?
1114  # Save into config.log some information that might help in debugging.
1115  {
1116    echo
1117
1118    cat <<\_ASBOX
1119## ---------------- ##
1120## Cache variables. ##
1121## ---------------- ##
1122_ASBOX
1123    echo
1124    # The following way of writing the cache mishandles newlines in values,
1125{
1126  (set) 2>&1 |
1127    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128    *ac_space=\ *)
1129      sed -n \
1130        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132      ;;
1133    *)
1134      sed -n \
1135        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1136      ;;
1137    esac;
1138}
1139    echo
1140
1141    cat <<\_ASBOX
1142## ----------------- ##
1143## Output variables. ##
1144## ----------------- ##
1145_ASBOX
1146    echo
1147    for ac_var in $ac_subst_vars
1148    do
1149      eval ac_val=$`echo $ac_var`
1150      echo "$ac_var='"'"'$ac_val'"'"'"
1151    done | sort
1152    echo
1153
1154    if test -n "$ac_subst_files"; then
1155      cat <<\_ASBOX
1156## ------------- ##
1157## Output files. ##
1158## ------------- ##
1159_ASBOX
1160      echo
1161      for ac_var in $ac_subst_files
1162      do
1163        eval ac_val=$`echo $ac_var`
1164        echo "$ac_var='"'"'$ac_val'"'"'"
1165      done | sort
1166      echo
1167    fi
1168
1169    if test -s confdefs.h; then
1170      cat <<\_ASBOX
1171## ----------- ##
1172## confdefs.h. ##
1173## ----------- ##
1174_ASBOX
1175      echo
1176      sed "/^$/d" confdefs.h | sort
1177      echo
1178    fi
1179    test "$ac_signal" != 0 &&
1180      echo "$as_me: caught signal $ac_signal"
1181    echo "$as_me: exit $exit_status"
1182  } >&5
1183  rm -f core *.core &&
1184  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1185    exit $exit_status
1186     ' 0
1187for ac_signal in 1 2 13 15; do
1188  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189done
1190ac_signal=0
1191
1192# confdefs.h avoids OS command line length limits that DEFS can exceed.
1193rm -rf conftest* confdefs.h
1194# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195echo >confdefs.h
1196
1197# Predefined preprocessor variables.
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_NAME "$PACKAGE_NAME"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_VERSION "$PACKAGE_VERSION"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_STRING "$PACKAGE_STRING"
1216_ACEOF
1217
1218
1219cat >>confdefs.h <<_ACEOF
1220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221_ACEOF
1222
1223
1224# Let the site file select an alternate cache file if it wants to.
1225# Prefer explicitly selected file to automatically selected ones.
1226if test -z "$CONFIG_SITE"; then
1227  if test "x$prefix" != xNONE; then
1228    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1229  else
1230    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231  fi
1232fi
1233for ac_site_file in $CONFIG_SITE; do
1234  if test -r "$ac_site_file"; then
1235    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236echo "$as_me: loading site script $ac_site_file" >&6;}
1237    sed 's/^/| /' "$ac_site_file" >&5
1238    . "$ac_site_file"
1239  fi
1240done
1241
1242if test -r "$cache_file"; then
1243  # Some versions of bash will fail to source /dev/null (special
1244  # files actually), so we avoid doing that.
1245  if test -f "$cache_file"; then
1246    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247echo "$as_me: loading cache $cache_file" >&6;}
1248    case $cache_file in
1249      [\\/]* | ?:[\\/]* ) . $cache_file;;
1250      *)                      . ./$cache_file;;
1251    esac
1252  fi
1253else
1254  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255echo "$as_me: creating cache $cache_file" >&6;}
1256  >$cache_file
1257fi
1258
1259# Check that the precious variables saved in the cache have kept the same
1260# value.
1261ac_cache_corrupted=false
1262for ac_var in `(set) 2>&1 |
1263               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1264  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265  eval ac_new_set=\$ac_env_${ac_var}_set
1266  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267  eval ac_new_val="\$ac_env_${ac_var}_value"
1268  case $ac_old_set,$ac_new_set in
1269    set,)
1270      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1272      ac_cache_corrupted=: ;;
1273    ,set)
1274      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1275echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276      ac_cache_corrupted=: ;;
1277    ,);;
1278    *)
1279      if test "x$ac_old_val" != "x$ac_new_val"; then
1280        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1281echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1282        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1283echo "$as_me:   former value:  $ac_old_val" >&2;}
1284        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1285echo "$as_me:   current value: $ac_new_val" >&2;}
1286        ac_cache_corrupted=:
1287      fi;;
1288  esac
1289  # Pass precious variables to config.status.
1290  if test "$ac_new_set" = set; then
1291    case $ac_new_val in
1292    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1294    *) ac_arg=$ac_var=$ac_new_val ;;
1295    esac
1296    case " $ac_configure_args " in
1297      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1298      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299    esac
1300  fi
1301done
1302if $ac_cache_corrupted; then
1303  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1306echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307   { (exit 1); exit 1; }; }
1308fi
1309
1310ac_ext=c
1311ac_cpp='$CPP $CPPFLAGS'
1312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343VERSION=0.0.1
1344
1345
1346#------------------------------------------------------------------------
1347# Handle the --prefix=... option
1348#------------------------------------------------------------------------
1349
1350if test "${prefix}" = "NONE"; then
1351    prefix=/usr/local
1352fi
1353if test "${exec_prefix}" = "NONE"; then
1354    exec_prefix=$prefix
1355fi
1356
1357if test "${libdir}" != "${prefix}/lib"; then
1358    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
1359else
1360    LIB_SEARCH_DIRS="-L ${libdir}"
1361fi
1362
1363
1364
1365ac_aux_dir=
1366for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367  if test -f $ac_dir/install-sh; then
1368    ac_aux_dir=$ac_dir
1369    ac_install_sh="$ac_aux_dir/install-sh -c"
1370    break
1371  elif test -f $ac_dir/install.sh; then
1372    ac_aux_dir=$ac_dir
1373    ac_install_sh="$ac_aux_dir/install.sh -c"
1374    break
1375  elif test -f $ac_dir/shtool; then
1376    ac_aux_dir=$ac_dir
1377    ac_install_sh="$ac_aux_dir/shtool install -c"
1378    break
1379  fi
1380done
1381if test -z "$ac_aux_dir"; then
1382  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384   { (exit 1); exit 1; }; }
1385fi
1386ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1389
1390# Find a good install program.  We prefer a C program (faster),
1391# so one script is as good as another.  But avoid the broken or
1392# incompatible versions:
1393# SysV /etc/install, /usr/sbin/install
1394# SunOS /usr/etc/install
1395# IRIX /sbin/install
1396# AIX /bin/install
1397# AmigaOS /C/install, which installs bootblocks on floppy discs
1398# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1399# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1400# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1401# OS/2's system install, which has a completely different semantic
1402# ./install, which can be erroneously created by make from ./install.sh.
1403echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1404echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1405if test -z "$INSTALL"; then
1406if test "${ac_cv_path_install+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410for as_dir in $PATH
1411do
1412  IFS=$as_save_IFS
1413  test -z "$as_dir" && as_dir=.
1414  # Account for people who put trailing slashes in PATH elements.
1415case $as_dir/ in
1416  ./ | .// | /cC/* | \
1417  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1418  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1419  /usr/ucb/* ) ;;
1420  *)
1421    # OSF1 and SCO ODT 3.0 have their own names for install.
1422    # Don't use installbsd from OSF since it installs stuff as root
1423    # by default.
1424    for ac_prog in ginstall scoinst install; do
1425      for ac_exec_ext in '' $ac_executable_extensions; do
1426        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1427          if test $ac_prog = install &&
1428            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1429            # AIX install.  It has an incompatible calling convention.
1430            :
1431          elif test $ac_prog = install &&
1432            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1433            # program-specific install script used by HP pwplus--don't use.
1434            :
1435          else
1436            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1437            break 3
1438          fi
1439        fi
1440      done
1441    done
1442    ;;
1443esac
1444done
1445
1446
1447fi
1448  if test "${ac_cv_path_install+set}" = set; then
1449    INSTALL=$ac_cv_path_install
1450  else
1451    # As a last resort, use the slow shell script.  We don't cache a
1452    # path for INSTALL within a source directory, because that will
1453    # break other packages using the cache if that directory is
1454    # removed, or if the path is relative.
1455    INSTALL=$ac_install_sh
1456  fi
1457fi
1458echo "$as_me:$LINENO: result: $INSTALL" >&5
1459echo "${ECHO_T}$INSTALL" >&6
1460
1461# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1462# It thinks the first close brace ends the variable substitution.
1463test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1464
1465test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1466
1467test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1468
1469echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1470echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1471set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1472if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1473  echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475  cat >conftest.make <<\_ACEOF
1476all:
1477        @echo 'ac_maketemp="$(MAKE)"'
1478_ACEOF
1479# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1480eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1481if test -n "$ac_maketemp"; then
1482  eval ac_cv_prog_make_${ac_make}_set=yes
1483else
1484  eval ac_cv_prog_make_${ac_make}_set=no
1485fi
1486rm -f conftest.make
1487fi
1488if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1489  echo "$as_me:$LINENO: result: yes" >&5
1490echo "${ECHO_T}yes" >&6
1491  SET_MAKE=
1492else
1493  echo "$as_me:$LINENO: result: no" >&5
1494echo "${ECHO_T}no" >&6
1495  SET_MAKE="MAKE=${MAKE-make}"
1496fi
1497
1498
1499ac_ext=c
1500ac_cpp='$CPP $CPPFLAGS'
1501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504if test -n "$ac_tool_prefix"; then
1505  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1506set dummy ${ac_tool_prefix}gcc; ac_word=$2
1507echo "$as_me:$LINENO: checking for $ac_word" >&5
1508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1509if test "${ac_cv_prog_CC+set}" = set; then
1510  echo $ECHO_N "(cached) $ECHO_C" >&6
1511else
1512  if test -n "$CC"; then
1513  ac_cv_prog_CC="$CC" # Let the user override the test.
1514else
1515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516for as_dir in $PATH
1517do
1518  IFS=$as_save_IFS
1519  test -z "$as_dir" && as_dir=.
1520  for ac_exec_ext in '' $ac_executable_extensions; do
1521  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1522    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1524    break 2
1525  fi
1526done
1527done
1528
1529fi
1530fi
1531CC=$ac_cv_prog_CC
1532if test -n "$CC"; then
1533  echo "$as_me:$LINENO: result: $CC" >&5
1534echo "${ECHO_T}$CC" >&6
1535else
1536  echo "$as_me:$LINENO: result: no" >&5
1537echo "${ECHO_T}no" >&6
1538fi
1539
1540fi
1541if test -z "$ac_cv_prog_CC"; then
1542  ac_ct_CC=$CC
1543  # Extract the first word of "gcc", so it can be a program name with args.
1544set dummy gcc; ac_word=$2
1545echo "$as_me:$LINENO: checking for $ac_word" >&5
1546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1548  echo $ECHO_N "(cached) $ECHO_C" >&6
1549else
1550  if test -n "$ac_ct_CC"; then
1551  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1552else
1553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554for as_dir in $PATH
1555do
1556  IFS=$as_save_IFS
1557  test -z "$as_dir" && as_dir=.
1558  for ac_exec_ext in '' $ac_executable_extensions; do
1559  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560    ac_cv_prog_ac_ct_CC="gcc"
1561    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562    break 2
1563  fi
1564done
1565done
1566
1567fi
1568fi
1569ac_ct_CC=$ac_cv_prog_ac_ct_CC
1570if test -n "$ac_ct_CC"; then
1571  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1572echo "${ECHO_T}$ac_ct_CC" >&6
1573else
1574  echo "$as_me:$LINENO: result: no" >&5
1575echo "${ECHO_T}no" >&6
1576fi
1577
1578  CC=$ac_ct_CC
1579else
1580  CC="$ac_cv_prog_CC"
1581fi
1582
1583if test -z "$CC"; then
1584  if test -n "$ac_tool_prefix"; then
1585  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1586set dummy ${ac_tool_prefix}cc; ac_word=$2
1587echo "$as_me:$LINENO: checking for $ac_word" >&5
1588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589if test "${ac_cv_prog_CC+set}" = set; then
1590  echo $ECHO_N "(cached) $ECHO_C" >&6
1591else
1592  if test -n "$CC"; then
1593  ac_cv_prog_CC="$CC" # Let the user override the test.
1594else
1595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596for as_dir in $PATH
1597do
1598  IFS=$as_save_IFS
1599  test -z "$as_dir" && as_dir=.
1600  for ac_exec_ext in '' $ac_executable_extensions; do
1601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602    ac_cv_prog_CC="${ac_tool_prefix}cc"
1603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604    break 2
1605  fi
1606done
1607done
1608
1609fi
1610fi
1611CC=$ac_cv_prog_CC
1612if test -n "$CC"; then
1613  echo "$as_me:$LINENO: result: $CC" >&5
1614echo "${ECHO_T}$CC" >&6
1615else
1616  echo "$as_me:$LINENO: result: no" >&5
1617echo "${ECHO_T}no" >&6
1618fi
1619
1620fi
1621if test -z "$ac_cv_prog_CC"; then
1622  ac_ct_CC=$CC
1623  # Extract the first word of "cc", so it can be a program name with args.
1624set dummy cc; ac_word=$2
1625echo "$as_me:$LINENO: checking for $ac_word" >&5
1626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1628  echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630  if test -n "$ac_ct_CC"; then
1631  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1632else
1633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634for as_dir in $PATH
1635do
1636  IFS=$as_save_IFS
1637  test -z "$as_dir" && as_dir=.
1638  for ac_exec_ext in '' $ac_executable_extensions; do
1639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640    ac_cv_prog_ac_ct_CC="cc"
1641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642    break 2
1643  fi
1644done
1645done
1646
1647fi
1648fi
1649ac_ct_CC=$ac_cv_prog_ac_ct_CC
1650if test -n "$ac_ct_CC"; then
1651  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1652echo "${ECHO_T}$ac_ct_CC" >&6
1653else
1654  echo "$as_me:$LINENO: result: no" >&5
1655echo "${ECHO_T}no" >&6
1656fi
1657
1658  CC=$ac_ct_CC
1659else
1660  CC="$ac_cv_prog_CC"
1661fi
1662
1663fi
1664if test -z "$CC"; then
1665  # Extract the first word of "cc", so it can be a program name with args.
1666set dummy cc; ac_word=$2
1667echo "$as_me:$LINENO: checking for $ac_word" >&5
1668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669if test "${ac_cv_prog_CC+set}" = set; then
1670  echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672  if test -n "$CC"; then
1673  ac_cv_prog_CC="$CC" # Let the user override the test.
1674else
1675  ac_prog_rejected=no
1676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677for as_dir in $PATH
1678do
1679  IFS=$as_save_IFS
1680  test -z "$as_dir" && as_dir=.
1681  for ac_exec_ext in '' $ac_executable_extensions; do
1682  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1684       ac_prog_rejected=yes
1685       continue
1686     fi
1687    ac_cv_prog_CC="cc"
1688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689    break 2
1690  fi
1691done
1692done
1693
1694if test $ac_prog_rejected = yes; then
1695  # We found a bogon in the path, so make sure we never use it.
1696  set dummy $ac_cv_prog_CC
1697  shift
1698  if test $# != 0; then
1699    # We chose a different compiler from the bogus one.
1700    # However, it has the same basename, so the bogon will be chosen
1701    # first if we set CC to just the basename; use the full file name.
1702    shift
1703    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1704  fi
1705fi
1706fi
1707fi
1708CC=$ac_cv_prog_CC
1709if test -n "$CC"; then
1710  echo "$as_me:$LINENO: result: $CC" >&5
1711echo "${ECHO_T}$CC" >&6
1712else
1713  echo "$as_me:$LINENO: result: no" >&5
1714echo "${ECHO_T}no" >&6
1715fi
1716
1717fi
1718if test -z "$CC"; then
1719  if test -n "$ac_tool_prefix"; then
1720  for ac_prog in cl
1721  do
1722    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1723set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1724echo "$as_me:$LINENO: checking for $ac_word" >&5
1725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726if test "${ac_cv_prog_CC+set}" = set; then
1727  echo $ECHO_N "(cached) $ECHO_C" >&6
1728else
1729  if test -n "$CC"; then
1730  ac_cv_prog_CC="$CC" # Let the user override the test.
1731else
1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735  IFS=$as_save_IFS
1736  test -z "$as_dir" && as_dir=.
1737  for ac_exec_ext in '' $ac_executable_extensions; do
1738  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741    break 2
1742  fi
1743done
1744done
1745
1746fi
1747fi
1748CC=$ac_cv_prog_CC
1749if test -n "$CC"; then
1750  echo "$as_me:$LINENO: result: $CC" >&5
1751echo "${ECHO_T}$CC" >&6
1752else
1753  echo "$as_me:$LINENO: result: no" >&5
1754echo "${ECHO_T}no" >&6
1755fi
1756
1757    test -n "$CC" && break
1758  done
1759fi
1760if test -z "$CC"; then
1761  ac_ct_CC=$CC
1762  for ac_prog in cl
1763do
1764  # Extract the first word of "$ac_prog", so it can be a program name with args.
1765set dummy $ac_prog; ac_word=$2
1766echo "$as_me:$LINENO: checking for $ac_word" >&5
1767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1769  echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771  if test -n "$ac_ct_CC"; then
1772  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1773else
1774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775for as_dir in $PATH
1776do
1777  IFS=$as_save_IFS
1778  test -z "$as_dir" && as_dir=.
1779  for ac_exec_ext in '' $ac_executable_extensions; do
1780  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781    ac_cv_prog_ac_ct_CC="$ac_prog"
1782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783    break 2
1784  fi
1785done
1786done
1787
1788fi
1789fi
1790ac_ct_CC=$ac_cv_prog_ac_ct_CC
1791if test -n "$ac_ct_CC"; then
1792  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1793echo "${ECHO_T}$ac_ct_CC" >&6
1794else
1795  echo "$as_me:$LINENO: result: no" >&5
1796echo "${ECHO_T}no" >&6
1797fi
1798
1799  test -n "$ac_ct_CC" && break
1800done
1801
1802  CC=$ac_ct_CC
1803fi
1804
1805fi
1806
1807
1808test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1809See \`config.log' for more details." >&5
1810echo "$as_me: error: no acceptable C compiler found in \$PATH
1811See \`config.log' for more details." >&2;}
1812   { (exit 1); exit 1; }; }
1813
1814# Provide some information about the compiler.
1815echo "$as_me:$LINENO:" \
1816     "checking for C compiler version" >&5
1817ac_compiler=`set X $ac_compile; echo $2`
1818{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1819  (eval $ac_compiler --version </dev/null >&5) 2>&5
1820  ac_status=$?
1821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822  (exit $ac_status); }
1823{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1824  (eval $ac_compiler -v </dev/null >&5) 2>&5
1825  ac_status=$?
1826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827  (exit $ac_status); }
1828{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1829  (eval $ac_compiler -V </dev/null >&5) 2>&5
1830  ac_status=$?
1831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832  (exit $ac_status); }
1833
1834cat >conftest.$ac_ext <<_ACEOF
1835/* confdefs.h.  */
1836_ACEOF
1837cat confdefs.h >>conftest.$ac_ext
1838cat >>conftest.$ac_ext <<_ACEOF
1839/* end confdefs.h.  */
1840
1841int
1842main ()
1843{
1844
1845  ;
1846  return 0;
1847}
1848_ACEOF
1849ac_clean_files_save=$ac_clean_files
1850ac_clean_files="$ac_clean_files a.out a.exe b.out"
1851# Try to create an executable without -o first, disregard a.out.
1852# It will help us diagnose broken compilers, and finding out an intuition
1853# of exeext.
1854echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1855echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1856ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1857if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1858  (eval $ac_link_default) 2>&5
1859  ac_status=$?
1860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1861  (exit $ac_status); }; then
1862  # Find the output, starting from the most likely.  This scheme is
1863# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1864# resort.
1865
1866# Be careful to initialize this variable, since it used to be cached.
1867# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1868ac_cv_exeext=
1869# b.out is created by i960 compilers.
1870for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1871do
1872  test -f "$ac_file" || continue
1873  case $ac_file in
1874    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1875        ;;
1876    conftest.$ac_ext )
1877        # This is the source file.
1878        ;;
1879    [ab].out )
1880        # We found the default executable, but exeext='' is most
1881        # certainly right.
1882        break;;
1883    *.* )
1884        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1885        # FIXME: I believe we export ac_cv_exeext for Libtool,
1886        # but it would be cool to find out if it's true.  Does anybody
1887        # maintain Libtool? --akim.
1888        export ac_cv_exeext
1889        break;;
1890    * )
1891        break;;
1892  esac
1893done
1894else
1895  echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1899See \`config.log' for more details." >&5
1900echo "$as_me: error: C compiler cannot create executables
1901See \`config.log' for more details." >&2;}
1902   { (exit 77); exit 77; }; }
1903fi
1904
1905ac_exeext=$ac_cv_exeext
1906echo "$as_me:$LINENO: result: $ac_file" >&5
1907echo "${ECHO_T}$ac_file" >&6
1908
1909# Check the compiler produces executables we can run.  If not, either
1910# the compiler is broken, or we cross compile.
1911echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1912echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1913# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1914# If not cross compiling, check that we can run a simple program.
1915if test "$cross_compiling" != yes; then
1916  if { ac_try='./$ac_file'
1917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1918  (eval $ac_try) 2>&5
1919  ac_status=$?
1920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921  (exit $ac_status); }; }; then
1922    cross_compiling=no
1923  else
1924    if test "$cross_compiling" = maybe; then
1925        cross_compiling=yes
1926    else
1927        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1928If you meant to cross compile, use \`--host'.
1929See \`config.log' for more details." >&5
1930echo "$as_me: error: cannot run C compiled programs.
1931If you meant to cross compile, use \`--host'.
1932See \`config.log' for more details." >&2;}
1933   { (exit 1); exit 1; }; }
1934    fi
1935  fi
1936fi
1937echo "$as_me:$LINENO: result: yes" >&5
1938echo "${ECHO_T}yes" >&6
1939
1940rm -f a.out a.exe conftest$ac_cv_exeext b.out
1941ac_clean_files=$ac_clean_files_save
1942# Check the compiler produces executables we can run.  If not, either
1943# the compiler is broken, or we cross compile.
1944echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1945echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1946echo "$as_me:$LINENO: result: $cross_compiling" >&5
1947echo "${ECHO_T}$cross_compiling" >&6
1948
1949echo "$as_me:$LINENO: checking for suffix of executables" >&5
1950echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1952  (eval $ac_link) 2>&5
1953  ac_status=$?
1954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955  (exit $ac_status); }; then
1956  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1957# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1958# work properly (i.e., refer to `conftest.exe'), while it won't with
1959# `rm'.
1960for ac_file in conftest.exe conftest conftest.*; do
1961  test -f "$ac_file" || continue
1962  case $ac_file in
1963    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1964    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1965          export ac_cv_exeext
1966          break;;
1967    * ) break;;
1968  esac
1969done
1970else
1971  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1972See \`config.log' for more details." >&5
1973echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1974See \`config.log' for more details." >&2;}
1975   { (exit 1); exit 1; }; }
1976fi
1977
1978rm -f conftest$ac_cv_exeext
1979echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1980echo "${ECHO_T}$ac_cv_exeext" >&6
1981
1982rm -f conftest.$ac_ext
1983EXEEXT=$ac_cv_exeext
1984ac_exeext=$EXEEXT
1985echo "$as_me:$LINENO: checking for suffix of object files" >&5
1986echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1987if test "${ac_cv_objext+set}" = set; then
1988  echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990  cat >conftest.$ac_ext <<_ACEOF
1991/* confdefs.h.  */
1992_ACEOF
1993cat confdefs.h >>conftest.$ac_ext
1994cat >>conftest.$ac_ext <<_ACEOF
1995/* end confdefs.h.  */
1996
1997int
1998main ()
1999{
2000
2001  ;
2002  return 0;
2003}
2004_ACEOF
2005rm -f conftest.o conftest.obj
2006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2007  (eval $ac_compile) 2>&5
2008  ac_status=$?
2009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010  (exit $ac_status); }; then
2011  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2012  case $ac_file in
2013    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2014    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2015       break;;
2016  esac
2017done
2018else
2019  echo "$as_me: failed program was:" >&5
2020sed 's/^/| /' conftest.$ac_ext >&5
2021
2022{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2023See \`config.log' for more details." >&5
2024echo "$as_me: error: cannot compute suffix of object files: cannot compile
2025See \`config.log' for more details." >&2;}
2026   { (exit 1); exit 1; }; }
2027fi
2028
2029rm -f conftest.$ac_cv_objext conftest.$ac_ext
2030fi
2031echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2032echo "${ECHO_T}$ac_cv_objext" >&6
2033OBJEXT=$ac_cv_objext
2034ac_objext=$OBJEXT
2035echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2036echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2037if test "${ac_cv_c_compiler_gnu+set}" = set; then
2038  echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040  cat >conftest.$ac_ext <<_ACEOF
2041/* confdefs.h.  */
2042_ACEOF
2043cat confdefs.h >>conftest.$ac_ext
2044cat >>conftest.$ac_ext <<_ACEOF
2045/* end confdefs.h.  */
2046
2047int
2048main ()
2049{
2050#ifndef __GNUC__
2051       choke me
2052#endif
2053
2054  ;
2055  return 0;
2056}
2057_ACEOF
2058rm -f conftest.$ac_objext
2059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2060  (eval $ac_compile) 2>conftest.er1
2061  ac_status=$?
2062  grep -v '^ *+' conftest.er1 >conftest.err
2063  rm -f conftest.er1
2064  cat conftest.err >&5
2065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066  (exit $ac_status); } &&
2067         { ac_try='test -z "$ac_c_werror_flag"
2068                         || test ! -s conftest.err'
2069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070  (eval $ac_try) 2>&5
2071  ac_status=$?
2072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073  (exit $ac_status); }; } &&
2074         { ac_try='test -s conftest.$ac_objext'
2075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2076  (eval $ac_try) 2>&5
2077  ac_status=$?
2078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079  (exit $ac_status); }; }; then
2080  ac_compiler_gnu=yes
2081else
2082  echo "$as_me: failed program was:" >&5
2083sed 's/^/| /' conftest.$ac_ext >&5
2084
2085ac_compiler_gnu=no
2086fi
2087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2088ac_cv_c_compiler_gnu=$ac_compiler_gnu
2089
2090fi
2091echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2092echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2093GCC=`test $ac_compiler_gnu = yes && echo yes`
2094ac_test_CFLAGS=${CFLAGS+set}
2095ac_save_CFLAGS=$CFLAGS
2096CFLAGS="-g"
2097echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2098echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2099if test "${ac_cv_prog_cc_g+set}" = set; then
2100  echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102  cat >conftest.$ac_ext <<_ACEOF
2103/* confdefs.h.  */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
2107/* end confdefs.h.  */
2108
2109int
2110main ()
2111{
2112
2113  ;
2114  return 0;
2115}
2116_ACEOF
2117rm -f conftest.$ac_objext
2118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119  (eval $ac_compile) 2>conftest.er1
2120  ac_status=$?
2121  grep -v '^ *+' conftest.er1 >conftest.err
2122  rm -f conftest.er1
2123  cat conftest.err >&5
2124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125  (exit $ac_status); } &&
2126         { ac_try='test -z "$ac_c_werror_flag"
2127                         || test ! -s conftest.err'
2128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129  (eval $ac_try) 2>&5
2130  ac_status=$?
2131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132  (exit $ac_status); }; } &&
2133         { ac_try='test -s conftest.$ac_objext'
2134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135  (eval $ac_try) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); }; }; then
2139  ac_cv_prog_cc_g=yes
2140else
2141  echo "$as_me: failed program was:" >&5
2142sed 's/^/| /' conftest.$ac_ext >&5
2143
2144ac_cv_prog_cc_g=no
2145fi
2146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2147fi
2148echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2149echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2150if test "$ac_test_CFLAGS" = set; then
2151  CFLAGS=$ac_save_CFLAGS
2152elif test $ac_cv_prog_cc_g = yes; then
2153  if test "$GCC" = yes; then
2154    CFLAGS="-g -O2"
2155  else
2156    CFLAGS="-g"
2157  fi
2158else
2159  if test "$GCC" = yes; then
2160    CFLAGS="-O2"
2161  else
2162    CFLAGS=
2163  fi
2164fi
2165echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2166echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2167if test "${ac_cv_prog_cc_stdc+set}" = set; then
2168  echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170  ac_cv_prog_cc_stdc=no
2171ac_save_CC=$CC
2172cat >conftest.$ac_ext <<_ACEOF
2173/* confdefs.h.  */
2174_ACEOF
2175cat confdefs.h >>conftest.$ac_ext
2176cat >>conftest.$ac_ext <<_ACEOF
2177/* end confdefs.h.  */
2178#include <stdarg.h>
2179#include <stdio.h>
2180#include <sys/types.h>
2181#include <sys/stat.h>
2182/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2183struct buf { int x; };
2184FILE * (*rcsopen) (struct buf *, struct stat *, int);
2185static char *e (p, i)
2186     char **p;
2187     int i;
2188{
2189  return p[i];
2190}
2191static char *f (char * (*g) (char **, int), char **p, ...)
2192{
2193  char *s;
2194  va_list v;
2195  va_start (v,p);
2196  s = g (p, va_arg (v,int));
2197  va_end (v);
2198  return s;
2199}
2200
2201/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2202   function prototypes and stuff, but not '\xHH' hex character constants.
2203   These don't provoke an error unfortunately, instead are silently treated
2204   as 'x'.  The following induces an error, until -std1 is added to get
2205   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2206   array size at least.  It's necessary to write '\x00'==0 to get something
2207   that's true only with -std1.  */
2208int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2209
2210int test (int i, double x);
2211struct s1 {int (*f) (int a);};
2212struct s2 {int (*f) (double a);};
2213int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2214int argc;
2215char **argv;
2216int
2217main ()
2218{
2219return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2220  ;
2221  return 0;
2222}
2223_ACEOF
2224# Don't try gcc -ansi; that turns off useful extensions and
2225# breaks some systems' header files.
2226# AIX                   -qlanglvl=ansi
2227# Ultrix and OSF/1      -std1
2228# HP-UX 10.20 and later -Ae
2229# HP-UX older versions  -Aa -D_HPUX_SOURCE
2230# SVR4                  -Xc -D__EXTENSIONS__
2231for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2232do
2233  CC="$ac_save_CC $ac_arg"
2234  rm -f conftest.$ac_objext
2235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236  (eval $ac_compile) 2>conftest.er1
2237  ac_status=$?
2238  grep -v '^ *+' conftest.er1 >conftest.err
2239  rm -f conftest.er1
2240  cat conftest.err >&5
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); } &&
2243         { ac_try='test -z "$ac_c_werror_flag"
2244                         || test ! -s conftest.err'
2245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246  (eval $ac_try) 2>&5
2247  ac_status=$?
2248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249  (exit $ac_status); }; } &&
2250         { ac_try='test -s conftest.$ac_objext'
2251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252  (eval $ac_try) 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; }; then
2256  ac_cv_prog_cc_stdc=$ac_arg
2257break
2258else
2259  echo "$as_me: failed program was:" >&5
2260sed 's/^/| /' conftest.$ac_ext >&5
2261
2262fi
2263rm -f conftest.err conftest.$ac_objext
2264done
2265rm -f conftest.$ac_ext conftest.$ac_objext
2266CC=$ac_save_CC
2267
2268fi
2269
2270case "x$ac_cv_prog_cc_stdc" in
2271  x|xno)
2272    echo "$as_me:$LINENO: result: none needed" >&5
2273echo "${ECHO_T}none needed" >&6 ;;
2274  *)
2275    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2276echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2277    CC="$CC $ac_cv_prog_cc_stdc" ;;
2278esac
2279
2280# Some people use a C++ compiler to compile C.  Since we use `exit',
2281# in C++ we need to declare it.  In case someone uses the same compiler
2282# for both compiling C and C++ we need to have the C++ compiler decide
2283# the declaration of exit, since it's the most demanding environment.
2284cat >conftest.$ac_ext <<_ACEOF
2285#ifndef __cplusplus
2286  choke me
2287#endif
2288_ACEOF
2289rm -f conftest.$ac_objext
2290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291  (eval $ac_compile) 2>conftest.er1
2292  ac_status=$?
2293  grep -v '^ *+' conftest.er1 >conftest.err
2294  rm -f conftest.er1
2295  cat conftest.err >&5
2296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297  (exit $ac_status); } &&
2298         { ac_try='test -z "$ac_c_werror_flag"
2299                         || test ! -s conftest.err'
2300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301  (eval $ac_try) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }; } &&
2305         { ac_try='test -s conftest.$ac_objext'
2306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307  (eval $ac_try) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }; }; then
2311  for ac_declaration in \
2312   '' \
2313   'extern "C" void std::exit (int) throw (); using std::exit;' \
2314   'extern "C" void std::exit (int); using std::exit;' \
2315   'extern "C" void exit (int) throw ();' \
2316   'extern "C" void exit (int);' \
2317   'void exit (int);'
2318do
2319  cat >conftest.$ac_ext <<_ACEOF
2320/* confdefs.h.  */
2321_ACEOF
2322cat confdefs.h >>conftest.$ac_ext
2323cat >>conftest.$ac_ext <<_ACEOF
2324/* end confdefs.h.  */
2325$ac_declaration
2326#include <stdlib.h>
2327int
2328main ()
2329{
2330exit (42);
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335rm -f conftest.$ac_objext
2336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337  (eval $ac_compile) 2>conftest.er1
2338  ac_status=$?
2339  grep -v '^ *+' conftest.er1 >conftest.err
2340  rm -f conftest.er1
2341  cat conftest.err >&5
2342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343  (exit $ac_status); } &&
2344         { ac_try='test -z "$ac_c_werror_flag"
2345                         || test ! -s conftest.err'
2346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347  (eval $ac_try) 2>&5
2348  ac_status=$?
2349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350  (exit $ac_status); }; } &&
2351         { ac_try='test -s conftest.$ac_objext'
2352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353  (eval $ac_try) 2>&5
2354  ac_status=$?
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); }; }; then
2357  :
2358else
2359  echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362continue
2363fi
2364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365  cat >conftest.$ac_ext <<_ACEOF
2366/* confdefs.h.  */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h.  */
2371$ac_declaration
2372int
2373main ()
2374{
2375exit (42);
2376  ;
2377  return 0;
2378}
2379_ACEOF
2380rm -f conftest.$ac_objext
2381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382  (eval $ac_compile) 2>conftest.er1
2383  ac_status=$?
2384  grep -v '^ *+' conftest.er1 >conftest.err
2385  rm -f conftest.er1
2386  cat conftest.err >&5
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); } &&
2389         { ac_try='test -z "$ac_c_werror_flag"
2390                         || test ! -s conftest.err'
2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392  (eval $ac_try) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; } &&
2396         { ac_try='test -s conftest.$ac_objext'
2397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398  (eval $ac_try) 2>&5
2399  ac_status=$?
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); }; }; then
2402  break
2403else
2404  echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407fi
2408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409done
2410rm -f conftest*
2411if test -n "$ac_declaration"; then
2412  echo '#ifdef __cplusplus' >>confdefs.h
2413  echo $ac_declaration      >>confdefs.h
2414  echo '#endif'             >>confdefs.h
2415fi
2416
2417else
2418  echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421fi
2422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423ac_ext=c
2424ac_cpp='$CPP $CPPFLAGS'
2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428
2429ac_ext=c
2430ac_cpp='$CPP $CPPFLAGS'
2431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434
2435
2436
2437ac_ext=c
2438ac_cpp='$CPP $CPPFLAGS'
2439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441ac_compiler_gnu=$ac_cv_c_compiler_gnu
2442echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2443echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2444# On Suns, sometimes $CPP names a directory.
2445if test -n "$CPP" && test -d "$CPP"; then
2446  CPP=
2447fi
2448if test -z "$CPP"; then
2449  if test "${ac_cv_prog_CPP+set}" = set; then
2450  echo $ECHO_N "(cached) $ECHO_C" >&6
2451else
2452      # Double quotes because CPP needs to be expanded
2453    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2454    do
2455      ac_preproc_ok=false
2456for ac_c_preproc_warn_flag in '' yes
2457do
2458  # Use a header file that comes with gcc, so configuring glibc
2459  # with a fresh cross-compiler works.
2460  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2461  # <limits.h> exists even on freestanding compilers.
2462  # On the NeXT, cc -E runs the code through the compiler's parser,
2463  # not just through cpp. "Syntax error" is here to catch this case.
2464  cat >conftest.$ac_ext <<_ACEOF
2465/* confdefs.h.  */
2466_ACEOF
2467cat confdefs.h >>conftest.$ac_ext
2468cat >>conftest.$ac_ext <<_ACEOF
2469/* end confdefs.h.  */
2470#ifdef __STDC__
2471# include <limits.h>
2472#else
2473# include <assert.h>
2474#endif
2475                     Syntax error
2476_ACEOF
2477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2478  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2479  ac_status=$?
2480  grep -v '^ *+' conftest.er1 >conftest.err
2481  rm -f conftest.er1
2482  cat conftest.err >&5
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); } >/dev/null; then
2485  if test -s conftest.err; then
2486    ac_cpp_err=$ac_c_preproc_warn_flag
2487    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2488  else
2489    ac_cpp_err=
2490  fi
2491else
2492  ac_cpp_err=yes
2493fi
2494if test -z "$ac_cpp_err"; then
2495  :
2496else
2497  echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500  # Broken: fails on valid input.
2501continue
2502fi
2503rm -f conftest.err conftest.$ac_ext
2504
2505  # OK, works on sane cases.  Now check whether non-existent headers
2506  # can be detected and how.
2507  cat >conftest.$ac_ext <<_ACEOF
2508/* confdefs.h.  */
2509_ACEOF
2510cat confdefs.h >>conftest.$ac_ext
2511cat >>conftest.$ac_ext <<_ACEOF
2512/* end confdefs.h.  */
2513#include <ac_nonexistent.h>
2514_ACEOF
2515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2516  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2517  ac_status=$?
2518  grep -v '^ *+' conftest.er1 >conftest.err
2519  rm -f conftest.er1
2520  cat conftest.err >&5
2521  echo "$as_me:$LINENO: \$? = $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    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2526  else
2527    ac_cpp_err=
2528  fi
2529else
2530  ac_cpp_err=yes
2531fi
2532if test -z "$ac_cpp_err"; then
2533  # Broken: success on invalid input.
2534continue
2535else
2536  echo "$as_me: failed program was:" >&5
2537sed 's/^/| /' conftest.$ac_ext >&5
2538
2539  # Passes both tests.
2540ac_preproc_ok=:
2541break
2542fi
2543rm -f conftest.err conftest.$ac_ext
2544
2545done
2546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2547rm -f conftest.err conftest.$ac_ext
2548if $ac_preproc_ok; then
2549  break
2550fi
2551
2552    done
2553    ac_cv_prog_CPP=$CPP
2554
2555fi
2556  CPP=$ac_cv_prog_CPP
2557else
2558  ac_cv_prog_CPP=$CPP
2559fi
2560echo "$as_me:$LINENO: result: $CPP" >&5
2561echo "${ECHO_T}$CPP" >&6
2562ac_preproc_ok=false
2563for ac_c_preproc_warn_flag in '' yes
2564do
2565  # Use a header file that comes with gcc, so configuring glibc
2566  # with a fresh cross-compiler works.
2567  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2568  # <limits.h> exists even on freestanding compilers.
2569  # On the NeXT, cc -E runs the code through the compiler's parser,
2570  # not just through cpp. "Syntax error" is here to catch this case.
2571  cat >conftest.$ac_ext <<_ACEOF
2572/* confdefs.h.  */
2573_ACEOF
2574cat confdefs.h >>conftest.$ac_ext
2575cat >>conftest.$ac_ext <<_ACEOF
2576/* end confdefs.h.  */
2577#ifdef __STDC__
2578# include <limits.h>
2579#else
2580# include <assert.h>
2581#endif
2582                     Syntax error
2583_ACEOF
2584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2585  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2586  ac_status=$?
2587  grep -v '^ *+' conftest.er1 >conftest.err
2588  rm -f conftest.er1
2589  cat conftest.err >&5
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); } >/dev/null; then
2592  if test -s conftest.err; then
2593    ac_cpp_err=$ac_c_preproc_warn_flag
2594    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2595  else
2596    ac_cpp_err=
2597  fi
2598else
2599  ac_cpp_err=yes
2600fi
2601if test -z "$ac_cpp_err"; then
2602  :
2603else
2604  echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607  # Broken: fails on valid input.
2608continue
2609fi
2610rm -f conftest.err conftest.$ac_ext
2611
2612  # OK, works on sane cases.  Now check whether non-existent headers
2613  # can be detected and how.
2614  cat >conftest.$ac_ext <<_ACEOF
2615/* confdefs.h.  */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h.  */
2620#include <ac_nonexistent.h>
2621_ACEOF
2622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2623  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2624  ac_status=$?
2625  grep -v '^ *+' conftest.er1 >conftest.err
2626  rm -f conftest.er1
2627  cat conftest.err >&5
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); } >/dev/null; then
2630  if test -s conftest.err; then
2631    ac_cpp_err=$ac_c_preproc_warn_flag
2632    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2633  else
2634    ac_cpp_err=
2635  fi
2636else
2637  ac_cpp_err=yes
2638fi
2639if test -z "$ac_cpp_err"; then
2640  # Broken: success on invalid input.
2641continue
2642else
2643  echo "$as_me: failed program was:" >&5
2644sed 's/^/| /' conftest.$ac_ext >&5
2645
2646  # Passes both tests.
2647ac_preproc_ok=:
2648break
2649fi
2650rm -f conftest.err conftest.$ac_ext
2651
2652done
2653# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2654rm -f conftest.err conftest.$ac_ext
2655if $ac_preproc_ok; then
2656  :
2657else
2658  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2659See \`config.log' for more details." >&5
2660echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2661See \`config.log' for more details." >&2;}
2662   { (exit 1); exit 1; }; }
2663fi
2664
2665ac_ext=c
2666ac_cpp='$CPP $CPPFLAGS'
2667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670
2671
2672echo "$as_me:$LINENO: checking for egrep" >&5
2673echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2674if test "${ac_cv_prog_egrep+set}" = set; then
2675  echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2678    then ac_cv_prog_egrep='grep -E'
2679    else ac_cv_prog_egrep='egrep'
2680    fi
2681fi
2682echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2683echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2684 EGREP=$ac_cv_prog_egrep
2685
2686
2687echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2688echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2689if test "${ac_cv_header_stdc+set}" = set; then
2690  echo $ECHO_N "(cached) $ECHO_C" >&6
2691else
2692  cat >conftest.$ac_ext <<_ACEOF
2693/* confdefs.h.  */
2694_ACEOF
2695cat confdefs.h >>conftest.$ac_ext
2696cat >>conftest.$ac_ext <<_ACEOF
2697/* end confdefs.h.  */
2698#include <stdlib.h>
2699#include <stdarg.h>
2700#include <string.h>
2701#include <float.h>
2702
2703int
2704main ()
2705{
2706
2707  ;
2708  return 0;
2709}
2710_ACEOF
2711rm -f conftest.$ac_objext
2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713  (eval $ac_compile) 2>conftest.er1
2714  ac_status=$?
2715  grep -v '^ *+' conftest.er1 >conftest.err
2716  rm -f conftest.er1
2717  cat conftest.err >&5
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } &&
2720         { ac_try='test -z "$ac_c_werror_flag"
2721                         || test ! -s conftest.err'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; } &&
2727         { ac_try='test -s conftest.$ac_objext'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; }; then
2733  ac_cv_header_stdc=yes
2734else
2735  echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738ac_cv_header_stdc=no
2739fi
2740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741
2742if test $ac_cv_header_stdc = yes; then
2743  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2744  cat >conftest.$ac_ext <<_ACEOF
2745/* confdefs.h.  */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h.  */
2750#include <string.h>
2751
2752_ACEOF
2753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2754  $EGREP "memchr" >/dev/null 2>&1; then
2755  :
2756else
2757  ac_cv_header_stdc=no
2758fi
2759rm -f conftest*
2760
2761fi
2762
2763if test $ac_cv_header_stdc = yes; then
2764  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2765  cat >conftest.$ac_ext <<_ACEOF
2766/* confdefs.h.  */
2767_ACEOF
2768cat confdefs.h >>conftest.$ac_ext
2769cat >>conftest.$ac_ext <<_ACEOF
2770/* end confdefs.h.  */
2771#include <stdlib.h>
2772
2773_ACEOF
2774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2775  $EGREP "free" >/dev/null 2>&1; then
2776  :
2777else
2778  ac_cv_header_stdc=no
2779fi
2780rm -f conftest*
2781
2782fi
2783
2784if test $ac_cv_header_stdc = yes; then
2785  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2786  if test "$cross_compiling" = yes; then
2787  :
2788else
2789  cat >conftest.$ac_ext <<_ACEOF
2790/* confdefs.h.  */
2791_ACEOF
2792cat confdefs.h >>conftest.$ac_ext
2793cat >>conftest.$ac_ext <<_ACEOF
2794/* end confdefs.h.  */
2795#include <ctype.h>
2796#if ((' ' & 0x0FF) == 0x020)
2797# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2798# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2799#else
2800# define ISLOWER(c) \
2801                   (('a' <= (c) && (c) <= 'i') \
2802                     || ('j' <= (c) && (c) <= 'r') \
2803                     || ('s' <= (c) && (c) <= 'z'))
2804# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2805#endif
2806
2807#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2808int
2809main ()
2810{
2811  int i;
2812  for (i = 0; i < 256; i++)
2813    if (XOR (islower (i), ISLOWER (i))
2814        || toupper (i) != TOUPPER (i))
2815      exit(2);
2816  exit (0);
2817}
2818_ACEOF
2819rm -f conftest$ac_exeext
2820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2821  (eval $ac_link) 2>&5
2822  ac_status=$?
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; }; then
2830  :
2831else
2832  echo "$as_me: program exited with status $ac_status" >&5
2833echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836( exit $ac_status )
2837ac_cv_header_stdc=no
2838fi
2839rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2840fi
2841fi
2842fi
2843echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2844echo "${ECHO_T}$ac_cv_header_stdc" >&6
2845if test $ac_cv_header_stdc = yes; then
2846
2847cat >>confdefs.h <<\_ACEOF
2848#define STDC_HEADERS 1
2849_ACEOF
2850
2851fi
2852
2853echo "$as_me:$LINENO: checking for atol" >&5
2854echo $ECHO_N "checking for atol... $ECHO_C" >&6
2855if test "${ac_cv_func_atol+set}" = set; then
2856  echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858  cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h.  */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h.  */
2864/* Define atol to an innocuous variant, in case <limits.h> declares atol.
2865   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2866#define atol innocuous_atol
2867
2868/* System header to define __stub macros and hopefully few prototypes,
2869    which can conflict with char atol (); below.
2870    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871    <limits.h> exists even on freestanding compilers.  */
2872
2873#ifdef __STDC__
2874# include <limits.h>
2875#else
2876# include <assert.h>
2877#endif
2878
2879#undef atol
2880
2881/* Override any gcc2 internal prototype to avoid an error.  */
2882#ifdef __cplusplus
2883extern "C"
2884{
2885#endif
2886/* We use char because int might match the return type of a gcc2
2887   builtin and then its argument prototype would still apply.  */
2888char atol ();
2889/* The GNU C library defines this for functions which it implements
2890    to always fail with ENOSYS.  Some functions are actually named
2891    something starting with __ and the normal name is an alias.  */
2892#if defined (__stub_atol) || defined (__stub___atol)
2893choke me
2894#else
2895char (*f) () = atol;
2896#endif
2897#ifdef __cplusplus
2898}
2899#endif
2900
2901int
2902main ()
2903{
2904return f != atol;
2905  ;
2906  return 0;
2907}
2908_ACEOF
2909rm -f conftest.$ac_objext conftest$ac_exeext
2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911  (eval $ac_link) 2>conftest.er1
2912  ac_status=$?
2913  grep -v '^ *+' conftest.er1 >conftest.err
2914  rm -f conftest.er1
2915  cat conftest.err >&5
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); } &&
2918         { ac_try='test -z "$ac_c_werror_flag"
2919                         || test ! -s conftest.err'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; } &&
2925         { ac_try='test -s conftest$ac_exeext'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; }; then
2931  ac_cv_func_atol=yes
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936ac_cv_func_atol=no
2937fi
2938rm -f conftest.err conftest.$ac_objext \
2939      conftest$ac_exeext conftest.$ac_ext
2940fi
2941echo "$as_me:$LINENO: result: $ac_cv_func_atol" >&5
2942echo "${ECHO_T}$ac_cv_func_atol" >&6
2943if test $ac_cv_func_atol = yes; then
2944  :
2945else
2946  { { echo "$as_me:$LINENO: error: oops! no atol ?!?" >&5
2947echo "$as_me: error: oops! no atol ?!?" >&2;}
2948   { (exit 1); exit 1; }; }
2949fi
2950
2951
2952ac_ext=cc
2953ac_cpp='$CXXCPP $CPPFLAGS'
2954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2957if test -n "$ac_tool_prefix"; then
2958  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2959  do
2960    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2961set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2962echo "$as_me:$LINENO: checking for $ac_word" >&5
2963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2964if test "${ac_cv_prog_CXX+set}" = set; then
2965  echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967  if test -n "$CXX"; then
2968  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973  IFS=$as_save_IFS
2974  test -z "$as_dir" && as_dir=.
2975  for ac_exec_ext in '' $ac_executable_extensions; do
2976  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979    break 2
2980  fi
2981done
2982done
2983
2984fi
2985fi
2986CXX=$ac_cv_prog_CXX
2987if test -n "$CXX"; then
2988  echo "$as_me:$LINENO: result: $CXX" >&5
2989echo "${ECHO_T}$CXX" >&6
2990else
2991  echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6
2993fi
2994
2995    test -n "$CXX" && break
2996  done
2997fi
2998if test -z "$CXX"; then
2999  ac_ct_CXX=$CXX
3000  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3001do
3002  # Extract the first word of "$ac_prog", so it can be a program name with args.
3003set dummy $ac_prog; ac_word=$2
3004echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3006if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3007  echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009  if test -n "$ac_ct_CXX"; then
3010  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017  for ac_exec_ext in '' $ac_executable_extensions; do
3018  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019    ac_cv_prog_ac_ct_CXX="$ac_prog"
3020    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024done
3025
3026fi
3027fi
3028ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3029if test -n "$ac_ct_CXX"; then
3030  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3031echo "${ECHO_T}$ac_ct_CXX" >&6
3032else
3033  echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035fi
3036
3037  test -n "$ac_ct_CXX" && break
3038done
3039test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3040
3041  CXX=$ac_ct_CXX
3042fi
3043
3044
3045# Provide some information about the compiler.
3046echo "$as_me:$LINENO:" \
3047     "checking for C++ compiler version" >&5
3048ac_compiler=`set X $ac_compile; echo $2`
3049{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3050  (eval $ac_compiler --version </dev/null >&5) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }
3054{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3055  (eval $ac_compiler -v </dev/null >&5) 2>&5
3056  ac_status=$?
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); }
3059{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3060  (eval $ac_compiler -V </dev/null >&5) 2>&5
3061  ac_status=$?
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); }
3064
3065echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3066echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3067if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3068  echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
3070  cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080#ifndef __GNUC__
3081       choke me
3082#endif
3083
3084  ;
3085  return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext
3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090  (eval $ac_compile) 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } &&
3097         { ac_try='test -z "$ac_cxx_werror_flag"
3098                         || test ! -s conftest.err'
3099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100  (eval $ac_try) 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }; } &&
3104         { ac_try='test -s conftest.$ac_objext'
3105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106  (eval $ac_try) 2>&5
3107  ac_status=$?
3108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109  (exit $ac_status); }; }; then
3110  ac_compiler_gnu=yes
3111else
3112  echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115ac_compiler_gnu=no
3116fi
3117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3119
3120fi
3121echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3122echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3123GXX=`test $ac_compiler_gnu = yes && echo yes`
3124ac_test_CXXFLAGS=${CXXFLAGS+set}
3125ac_save_CXXFLAGS=$CXXFLAGS
3126CXXFLAGS="-g"
3127echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3128echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3129if test "${ac_cv_prog_cxx_g+set}" = set; then
3130  echo $ECHO_N "(cached) $ECHO_C" >&6
3131else
3132  cat >conftest.$ac_ext <<_ACEOF
3133/* confdefs.h.  */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h.  */
3138
3139int
3140main ()
3141{
3142
3143  ;
3144  return 0;
3145}
3146_ACEOF
3147rm -f conftest.$ac_objext
3148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149  (eval $ac_compile) 2>conftest.er1
3150  ac_status=$?
3151  grep -v '^ *+' conftest.er1 >conftest.err
3152  rm -f conftest.er1
3153  cat conftest.err >&5
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); } &&
3156         { ac_try='test -z "$ac_cxx_werror_flag"
3157                         || test ! -s conftest.err'
3158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159  (eval $ac_try) 2>&5
3160  ac_status=$?
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); }; } &&
3163         { ac_try='test -s conftest.$ac_objext'
3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165  (eval $ac_try) 2>&5
3166  ac_status=$?
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }; }; then
3169  ac_cv_prog_cxx_g=yes
3170else
3171  echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174ac_cv_prog_cxx_g=no
3175fi
3176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3177fi
3178echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3179echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3180if test "$ac_test_CXXFLAGS" = set; then
3181  CXXFLAGS=$ac_save_CXXFLAGS
3182elif test $ac_cv_prog_cxx_g = yes; then
3183  if test "$GXX" = yes; then
3184    CXXFLAGS="-g -O2"
3185  else
3186    CXXFLAGS="-g"
3187  fi
3188else
3189  if test "$GXX" = yes; then
3190    CXXFLAGS="-O2"
3191  else
3192    CXXFLAGS=
3193  fi
3194fi
3195for ac_declaration in \
3196   '' \
3197   'extern "C" void std::exit (int) throw (); using std::exit;' \
3198   'extern "C" void std::exit (int); using std::exit;' \
3199   'extern "C" void exit (int) throw ();' \
3200   'extern "C" void exit (int);' \
3201   'void exit (int);'
3202do
3203  cat >conftest.$ac_ext <<_ACEOF
3204/* confdefs.h.  */
3205_ACEOF
3206cat confdefs.h >>conftest.$ac_ext
3207cat >>conftest.$ac_ext <<_ACEOF
3208/* end confdefs.h.  */
3209$ac_declaration
3210#include <stdlib.h>
3211int
3212main ()
3213{
3214exit (42);
3215  ;
3216  return 0;
3217}
3218_ACEOF
3219rm -f conftest.$ac_objext
3220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221  (eval $ac_compile) 2>conftest.er1
3222  ac_status=$?
3223  grep -v '^ *+' conftest.er1 >conftest.err
3224  rm -f conftest.er1
3225  cat conftest.err >&5
3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227  (exit $ac_status); } &&
3228         { ac_try='test -z "$ac_cxx_werror_flag"
3229                         || test ! -s conftest.err'
3230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231  (eval $ac_try) 2>&5
3232  ac_status=$?
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); }; } &&
3235         { ac_try='test -s conftest.$ac_objext'
3236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237  (eval $ac_try) 2>&5
3238  ac_status=$?
3239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240  (exit $ac_status); }; }; then
3241  :
3242else
3243  echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246continue
3247fi
3248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3249  cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h.  */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h.  */
3255$ac_declaration
3256int
3257main ()
3258{
3259exit (42);
3260  ;
3261  return 0;
3262}
3263_ACEOF
3264rm -f conftest.$ac_objext
3265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266  (eval $ac_compile) 2>conftest.er1
3267  ac_status=$?
3268  grep -v '^ *+' conftest.er1 >conftest.err
3269  rm -f conftest.er1
3270  cat conftest.err >&5
3271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272  (exit $ac_status); } &&
3273         { ac_try='test -z "$ac_cxx_werror_flag"
3274                         || test ! -s conftest.err'
3275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276  (eval $ac_try) 2>&5
3277  ac_status=$?
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); }; } &&
3280         { ac_try='test -s conftest.$ac_objext'
3281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282  (eval $ac_try) 2>&5
3283  ac_status=$?
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); }; }; then
3286  break
3287else
3288  echo "$as_me: failed program was:" >&5
3289sed 's/^/| /' conftest.$ac_ext >&5
3290
3291fi
3292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3293done
3294rm -f conftest*
3295if test -n "$ac_declaration"; then
3296  echo '#ifdef __cplusplus' >>confdefs.h
3297  echo $ac_declaration      >>confdefs.h
3298  echo '#endif'             >>confdefs.h
3299fi
3300
3301ac_ext=c
3302ac_cpp='$CPP $CPPFLAGS'
3303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306
3307ac_ext=cc
3308ac_cpp='$CXXCPP $CPPFLAGS'
3309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3312
3313
3314
3315
3316echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
3317echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
3318if test "${ac_cv_lib_stdcpp_main+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  ac_check_lib_save_LIBS=$LIBS
3322LIBS="-lstdc++  $LIBS"
3323cat >conftest.$ac_ext <<_ACEOF
3324/* confdefs.h.  */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h.  */
3329
3330
3331int
3332main ()
3333{
3334main ();
3335  ;
3336  return 0;
3337}
3338_ACEOF
3339rm -f conftest.$ac_objext conftest$ac_exeext
3340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3341  (eval $ac_link) 2>conftest.er1
3342  ac_status=$?
3343  grep -v '^ *+' conftest.er1 >conftest.err
3344  rm -f conftest.er1
3345  cat conftest.err >&5
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); } &&
3348         { ac_try='test -z "$ac_cxx_werror_flag"
3349                         || test ! -s conftest.err'
3350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351  (eval $ac_try) 2>&5
3352  ac_status=$?
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); }; } &&
3355         { ac_try='test -s conftest$ac_exeext'
3356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357  (eval $ac_try) 2>&5
3358  ac_status=$?
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); }; }; then
3361  ac_cv_lib_stdcpp_main=yes
3362else
3363  echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366ac_cv_lib_stdcpp_main=no
3367fi
3368rm -f conftest.err conftest.$ac_objext \
3369      conftest$ac_exeext conftest.$ac_ext
3370LIBS=$ac_check_lib_save_LIBS
3371fi
3372echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
3373echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
3374if test $ac_cv_lib_stdcpp_main = yes; then
3375  cat >>confdefs.h <<_ACEOF
3376#define HAVE_LIBSTDC__ 1
3377_ACEOF
3378
3379  LIBS="-lstdc++ $LIBS"
3380
3381else
3382  { { echo "$as_me:$LINENO: error: librappture requires libstdc++" >&5
3383echo "$as_me: error: librappture requires libstdc++" >&2;}
3384   { (exit 1); exit 1; }; }
3385fi
3386
3387# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3398                  inttypes.h stdint.h unistd.h
3399do
3400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3401echo "$as_me:$LINENO: checking for $ac_header" >&5
3402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3403if eval "test \"\${$as_ac_Header+set}\" = set"; then
3404  echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406  cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h.  */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h.  */
3412$ac_includes_default
3413
3414#include <$ac_header>
3415_ACEOF
3416rm -f conftest.$ac_objext
3417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418  (eval $ac_compile) 2>conftest.er1
3419  ac_status=$?
3420  grep -v '^ *+' conftest.er1 >conftest.err
3421  rm -f conftest.er1
3422  cat conftest.err >&5
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); } &&
3425         { ac_try='test -z "$ac_cxx_werror_flag"
3426                         || test ! -s conftest.err'
3427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428  (eval $ac_try) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }; } &&
3432         { ac_try='test -s conftest.$ac_objext'
3433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434  (eval $ac_try) 2>&5
3435  ac_status=$?
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); }; }; then
3438  eval "$as_ac_Header=yes"
3439else
3440  echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443eval "$as_ac_Header=no"
3444fi
3445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3446fi
3447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3449if test `eval echo '${'$as_ac_Header'}'` = yes; then
3450  cat >>confdefs.h <<_ACEOF
3451#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3452_ACEOF
3453
3454fi
3455
3456done
3457
3458
3459ac_ext=cc
3460ac_cpp='$CXXCPP $CPPFLAGS'
3461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3464echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3465echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3466if test -z "$CXXCPP"; then
3467  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3468  echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470      # Double quotes because CXXCPP needs to be expanded
3471    for CXXCPP in "$CXX -E" "/lib/cpp"
3472    do
3473      ac_preproc_ok=false
3474for ac_cxx_preproc_warn_flag in '' yes
3475do
3476  # Use a header file that comes with gcc, so configuring glibc
3477  # with a fresh cross-compiler works.
3478  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3479  # <limits.h> exists even on freestanding compilers.
3480  # On the NeXT, cc -E runs the code through the compiler's parser,
3481  # not just through cpp. "Syntax error" is here to catch this case.
3482  cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h.  */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h.  */
3488#ifdef __STDC__
3489# include <limits.h>
3490#else
3491# include <assert.h>
3492#endif
3493                     Syntax error
3494_ACEOF
3495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3496  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3497  ac_status=$?
3498  grep -v '^ *+' conftest.er1 >conftest.err
3499  rm -f conftest.er1
3500  cat conftest.err >&5
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); } >/dev/null; then
3503  if test -s conftest.err; then
3504    ac_cpp_err=$ac_cxx_preproc_warn_flag
3505    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3506  else
3507    ac_cpp_err=
3508  fi
3509else
3510  ac_cpp_err=yes
3511fi
3512if test -z "$ac_cpp_err"; then
3513  :
3514else
3515  echo "$as_me: failed program was:" >&5
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
3518  # Broken: fails on valid input.
3519continue
3520fi
3521rm -f conftest.err conftest.$ac_ext
3522
3523  # OK, works on sane cases.  Now check whether non-existent headers
3524  # can be detected and how.
3525  cat >conftest.$ac_ext <<_ACEOF
3526/* confdefs.h.  */
3527_ACEOF
3528cat confdefs.h >>conftest.$ac_ext
3529cat >>conftest.$ac_ext <<_ACEOF
3530/* end confdefs.h.  */
3531#include <ac_nonexistent.h>
3532_ACEOF
3533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3534  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3535  ac_status=$?
3536  grep -v '^ *+' conftest.er1 >conftest.err
3537  rm -f conftest.er1
3538  cat conftest.err >&5
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); } >/dev/null; then
3541  if test -s conftest.err; then
3542    ac_cpp_err=$ac_cxx_preproc_warn_flag
3543    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3544  else
3545    ac_cpp_err=
3546  fi
3547else
3548  ac_cpp_err=yes
3549fi
3550if test -z "$ac_cpp_err"; then
3551  # Broken: success on invalid input.
3552continue
3553else
3554  echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557  # Passes both tests.
3558ac_preproc_ok=:
3559break
3560fi
3561rm -f conftest.err conftest.$ac_ext
3562
3563done
3564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3565rm -f conftest.err conftest.$ac_ext
3566if $ac_preproc_ok; then
3567  break
3568fi
3569
3570    done
3571    ac_cv_prog_CXXCPP=$CXXCPP
3572
3573fi
3574  CXXCPP=$ac_cv_prog_CXXCPP
3575else
3576  ac_cv_prog_CXXCPP=$CXXCPP
3577fi
3578echo "$as_me:$LINENO: result: $CXXCPP" >&5
3579echo "${ECHO_T}$CXXCPP" >&6
3580ac_preproc_ok=false
3581for ac_cxx_preproc_warn_flag in '' yes
3582do
3583  # Use a header file that comes with gcc, so configuring glibc
3584  # with a fresh cross-compiler works.
3585  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3586  # <limits.h> exists even on freestanding compilers.
3587  # On the NeXT, cc -E runs the code through the compiler's parser,
3588  # not just through cpp. "Syntax error" is here to catch this case.
3589  cat >conftest.$ac_ext <<_ACEOF
3590/* confdefs.h.  */
3591_ACEOF
3592cat confdefs.h >>conftest.$ac_ext
3593cat >>conftest.$ac_ext <<_ACEOF
3594/* end confdefs.h.  */
3595#ifdef __STDC__
3596# include <limits.h>
3597#else
3598# include <assert.h>
3599#endif
3600                     Syntax error
3601_ACEOF
3602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3603  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3604  ac_status=$?
3605  grep -v '^ *+' conftest.er1 >conftest.err
3606  rm -f conftest.er1
3607  cat conftest.err >&5
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); } >/dev/null; then
3610  if test -s conftest.err; then
3611    ac_cpp_err=$ac_cxx_preproc_warn_flag
3612    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3613  else
3614    ac_cpp_err=
3615  fi
3616else
3617  ac_cpp_err=yes
3618fi
3619if test -z "$ac_cpp_err"; then
3620  :
3621else
3622  echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625  # Broken: fails on valid input.
3626continue
3627fi
3628rm -f conftest.err conftest.$ac_ext
3629
3630  # OK, works on sane cases.  Now check whether non-existent headers
3631  # can be detected and how.
3632  cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h.  */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h.  */
3638#include <ac_nonexistent.h>
3639_ACEOF
3640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3641  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3642  ac_status=$?
3643  grep -v '^ *+' conftest.er1 >conftest.err
3644  rm -f conftest.er1
3645  cat conftest.err >&5
3646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647  (exit $ac_status); } >/dev/null; then
3648  if test -s conftest.err; then
3649    ac_cpp_err=$ac_cxx_preproc_warn_flag
3650    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3651  else
3652    ac_cpp_err=
3653  fi
3654else
3655  ac_cpp_err=yes
3656fi
3657if test -z "$ac_cpp_err"; then
3658  # Broken: success on invalid input.
3659continue
3660else
3661  echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664  # Passes both tests.
3665ac_preproc_ok=:
3666break
3667fi
3668rm -f conftest.err conftest.$ac_ext
3669
3670done
3671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672rm -f conftest.err conftest.$ac_ext
3673if $ac_preproc_ok; then
3674  :
3675else
3676  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3677See \`config.log' for more details." >&5
3678echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3679See \`config.log' for more details." >&2;}
3680   { (exit 1); exit 1; }; }
3681fi
3682
3683ac_ext=cc
3684ac_cpp='$CXXCPP $CPPFLAGS'
3685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3688
3689
3690
3691for ac_header in stack
3692do
3693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3694if eval "test \"\${$as_ac_Header+set}\" = set"; then
3695  echo "$as_me:$LINENO: checking for $ac_header" >&5
3696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3697if eval "test \"\${$as_ac_Header+set}\" = set"; then
3698  echo $ECHO_N "(cached) $ECHO_C" >&6
3699fi
3700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3702else
3703  # Is the header compilable?
3704echo "$as_me:$LINENO: checking $ac_header usability" >&5
3705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3706cat >conftest.$ac_ext <<_ACEOF
3707/* confdefs.h.  */
3708_ACEOF
3709cat confdefs.h >>conftest.$ac_ext
3710cat >>conftest.$ac_ext <<_ACEOF
3711/* end confdefs.h.  */
3712$ac_includes_default
3713#include <$ac_header>
3714_ACEOF
3715rm -f conftest.$ac_objext
3716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717  (eval $ac_compile) 2>conftest.er1
3718  ac_status=$?
3719  grep -v '^ *+' conftest.er1 >conftest.err
3720  rm -f conftest.er1
3721  cat conftest.err >&5
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); } &&
3724         { ac_try='test -z "$ac_cxx_werror_flag"
3725                         || test ! -s conftest.err'
3726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727  (eval $ac_try) 2>&5
3728  ac_status=$?
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); }; } &&
3731         { ac_try='test -s conftest.$ac_objext'
3732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733  (eval $ac_try) 2>&5
3734  ac_status=$?
3735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736  (exit $ac_status); }; }; then
3737  ac_header_compiler=yes
3738else
3739  echo "$as_me: failed program was:" >&5
3740sed 's/^/| /' conftest.$ac_ext >&5
3741
3742ac_header_compiler=no
3743fi
3744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3746echo "${ECHO_T}$ac_header_compiler" >&6
3747
3748# Is the header present?
3749echo "$as_me:$LINENO: checking $ac_header presence" >&5
3750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3751cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h.  */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h.  */
3757#include <$ac_header>
3758_ACEOF
3759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3761  ac_status=$?
3762  grep -v '^ *+' conftest.er1 >conftest.err
3763  rm -f conftest.er1
3764  cat conftest.err >&5
3765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766  (exit $ac_status); } >/dev/null; then
3767  if test -s conftest.err; then
3768    ac_cpp_err=$ac_cxx_preproc_warn_flag
3769    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3770  else
3771    ac_cpp_err=
3772  fi
3773else
3774  ac_cpp_err=yes
3775fi
3776if test -z "$ac_cpp_err"; then
3777  ac_header_preproc=yes
3778else
3779  echo "$as_me: failed program was:" >&5
3780sed 's/^/| /' conftest.$ac_ext >&5
3781
3782  ac_header_preproc=no
3783fi
3784rm -f conftest.err conftest.$ac_ext
3785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3786echo "${ECHO_T}$ac_header_preproc" >&6
3787
3788# So?  What about this header?
3789case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3790  yes:no: )
3791    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3793    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3794echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3795    ac_header_preproc=yes
3796    ;;
3797  no:yes:* )
3798    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3800    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3801echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3802    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3803echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3804    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3805echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3806    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3808    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3809echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3810    (
3811      cat <<\_ASBOX
3812## ----------------------------------- ##
3813## Report this to rappture@nanohub.org ##
3814## ----------------------------------- ##
3815_ASBOX
3816    ) |
3817      sed "s/^/$as_me: WARNING:     /" >&2
3818    ;;
3819esac
3820echo "$as_me:$LINENO: checking for $ac_header" >&5
3821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3822if eval "test \"\${$as_ac_Header+set}\" = set"; then
3823  echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825  eval "$as_ac_Header=\$ac_header_preproc"
3826fi
3827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3829
3830fi
3831if test `eval echo '${'$as_ac_Header'}'` = yes; then
3832  cat >>confdefs.h <<_ACEOF
3833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3834_ACEOF
3835
3836else
3837  { echo "$as_me:$LINENO: WARNING: STL classes missing ?" >&5
3838echo "$as_me: WARNING: STL classes missing ?" >&2;}
3839fi
3840
3841done
3842
3843
3844for ac_header in string
3845do
3846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3847if eval "test \"\${$as_ac_Header+set}\" = set"; then
3848  echo "$as_me:$LINENO: checking for $ac_header" >&5
3849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3850if eval "test \"\${$as_ac_Header+set}\" = set"; then
3851  echo $ECHO_N "(cached) $ECHO_C" >&6
3852fi
3853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3855else
3856  # Is the header compilable?
3857echo "$as_me:$LINENO: checking $ac_header usability" >&5
3858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3859cat >conftest.$ac_ext <<_ACEOF
3860/* confdefs.h.  */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
3864/* end confdefs.h.  */
3865$ac_includes_default
3866#include <$ac_header>
3867_ACEOF
3868rm -f conftest.$ac_objext
3869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3870  (eval $ac_compile) 2>conftest.er1
3871  ac_status=$?
3872  grep -v '^ *+' conftest.er1 >conftest.err
3873  rm -f conftest.er1
3874  cat conftest.err >&5
3875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876  (exit $ac_status); } &&
3877         { ac_try='test -z "$ac_cxx_werror_flag"
3878                         || test ! -s conftest.err'
3879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880  (eval $ac_try) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }; } &&
3884         { ac_try='test -s conftest.$ac_objext'
3885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886  (eval $ac_try) 2>&5
3887  ac_status=$?
3888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889  (exit $ac_status); }; }; then
3890  ac_header_compiler=yes
3891else
3892  echo "$as_me: failed program was:" >&5
3893sed 's/^/| /' conftest.$ac_ext >&5
3894
3895ac_header_compiler=no
3896fi
3897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3898echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3899echo "${ECHO_T}$ac_header_compiler" >&6
3900
3901# Is the header present?
3902echo "$as_me:$LINENO: checking $ac_header presence" >&5
3903echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3904cat >conftest.$ac_ext <<_ACEOF
3905/* confdefs.h.  */
3906_ACEOF
3907cat confdefs.h >>conftest.$ac_ext
3908cat >>conftest.$ac_ext <<_ACEOF
3909/* end confdefs.h.  */
3910#include <$ac_header>
3911_ACEOF
3912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3913  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3914  ac_status=$?
3915  grep -v '^ *+' conftest.er1 >conftest.err
3916  rm -f conftest.er1
3917  cat conftest.err >&5
3918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919  (exit $ac_status); } >/dev/null; then
3920  if test -s conftest.err; then
3921    ac_cpp_err=$ac_cxx_preproc_warn_flag
3922    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3923  else
3924    ac_cpp_err=
3925  fi
3926else
3927  ac_cpp_err=yes
3928fi
3929if test -z "$ac_cpp_err"; then
3930  ac_header_preproc=yes
3931else
3932  echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935  ac_header_preproc=no
3936fi
3937rm -f conftest.err conftest.$ac_ext
3938echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3939echo "${ECHO_T}$ac_header_preproc" >&6
3940
3941# So?  What about this header?
3942case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3943  yes:no: )
3944    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3946    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3948    ac_header_preproc=yes
3949    ;;
3950  no:yes:* )
3951    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3953    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3954echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3955    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3957    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3958echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3959    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3961    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3963    (
3964      cat <<\_ASBOX
3965## ----------------------------------- ##
3966## Report this to rappture@nanohub.org ##
3967## ----------------------------------- ##
3968_ASBOX
3969    ) |
3970      sed "s/^/$as_me: WARNING:     /" >&2
3971    ;;
3972esac
3973echo "$as_me:$LINENO: checking for $ac_header" >&5
3974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3975if eval "test \"\${$as_ac_Header+set}\" = set"; then
3976  echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978  eval "$as_ac_Header=\$ac_header_preproc"
3979fi
3980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3982
3983fi
3984if test `eval echo '${'$as_ac_Header'}'` = yes; then
3985  cat >>confdefs.h <<_ACEOF
3986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3987_ACEOF
3988
3989else
3990  { echo "$as_me:$LINENO: WARNING: STL classes missing ?" >&5
3991echo "$as_me: WARNING: STL classes missing ?" >&2;}
3992fi
3993
3994done
3995
3996
3997for ac_header in list
3998do
3999as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4000if eval "test \"\${$as_ac_Header+set}\" = set"; then
4001  echo "$as_me:$LINENO: checking for $ac_header" >&5
4002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4003if eval "test \"\${$as_ac_Header+set}\" = set"; then
4004  echo $ECHO_N "(cached) $ECHO_C" >&6
4005fi
4006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4008else
4009  # Is the header compilable?
4010echo "$as_me:$LINENO: checking $ac_header usability" >&5
4011echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4012cat >conftest.$ac_ext <<_ACEOF
4013/* confdefs.h.  */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h.  */
4018$ac_includes_default
4019#include <$ac_header>
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023  (eval $ac_compile) 2>conftest.er1
4024  ac_status=$?
4025  grep -v '^ *+' conftest.er1 >conftest.err
4026  rm -f conftest.er1
4027  cat conftest.err >&5
4028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029  (exit $ac_status); } &&
4030         { ac_try='test -z "$ac_cxx_werror_flag"
4031                         || test ! -s conftest.err'
4032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033  (eval $ac_try) 2>&5
4034  ac_status=$?
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); }; } &&
4037         { ac_try='test -s conftest.$ac_objext'
4038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039  (eval $ac_try) 2>&5
4040  ac_status=$?
4041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042  (exit $ac_status); }; }; then
4043  ac_header_compiler=yes
4044else
4045  echo "$as_me: failed program was:" >&5
4046sed 's/^/| /' conftest.$ac_ext >&5
4047
4048ac_header_compiler=no
4049fi
4050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4052echo "${ECHO_T}$ac_header_compiler" >&6
4053
4054# Is the header present?
4055echo "$as_me:$LINENO: checking $ac_header presence" >&5
4056echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4057cat >conftest.$ac_ext <<_ACEOF
4058/* confdefs.h.  */
4059_ACEOF
4060cat confdefs.h >>conftest.$ac_ext
4061cat >>conftest.$ac_ext <<_ACEOF
4062/* end confdefs.h.  */
4063#include <$ac_header>
4064_ACEOF
4065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4066  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4067  ac_status=$?
4068  grep -v '^ *+' conftest.er1 >conftest.err
4069  rm -f conftest.er1
4070  cat conftest.err >&5
4071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072  (exit $ac_status); } >/dev/null; then
4073  if test -s conftest.err; then
4074    ac_cpp_err=$ac_cxx_preproc_warn_flag
4075    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4076  else
4077    ac_cpp_err=
4078  fi
4079else
4080  ac_cpp_err=yes
4081fi
4082if test -z "$ac_cpp_err"; then
4083  ac_header_preproc=yes
4084else
4085  echo "$as_me: failed program was:" >&5
4086sed 's/^/| /' conftest.$ac_ext >&5
4087
4088  ac_header_preproc=no
4089fi
4090rm -f conftest.err conftest.$ac_ext
4091echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4092echo "${ECHO_T}$ac_header_preproc" >&6
4093
4094# So?  What about this header?
4095case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4096  yes:no: )
4097    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4098echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4099    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4100echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4101    ac_header_preproc=yes
4102    ;;
4103  no:yes:* )
4104    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4105echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4106    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4107echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4108    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4109echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4110    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4111echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4112    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4113echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4114    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4115echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4116    (
4117      cat <<\_ASBOX
4118## ----------------------------------- ##
4119## Report this to rappture@nanohub.org ##
4120## ----------------------------------- ##
4121_ASBOX
4122    ) |
4123      sed "s/^/$as_me: WARNING:     /" >&2
4124    ;;
4125esac
4126echo "$as_me:$LINENO: checking for $ac_header" >&5
4127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4128if eval "test \"\${$as_ac_Header+set}\" = set"; then
4129  echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131  eval "$as_ac_Header=\$ac_header_preproc"
4132fi
4133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4135
4136fi
4137if test `eval echo '${'$as_ac_Header'}'` = yes; then
4138  cat >>confdefs.h <<_ACEOF
4139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4140_ACEOF
4141
4142else
4143  { echo "$as_me:$LINENO: WARNING: STL classes missing ?" >&5
4144echo "$as_me: WARNING: STL classes missing ?" >&2;}
4145fi
4146
4147done
4148
4149
4150for ac_header in vector
4151do
4152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4153if eval "test \"\${$as_ac_Header+set}\" = set"; then
4154  echo "$as_me:$LINENO: checking for $ac_header" >&5
4155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4156if eval "test \"\${$as_ac_Header+set}\" = set"; then
4157  echo $ECHO_N "(cached) $ECHO_C" >&6
4158fi
4159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4161else
4162  # Is the header compilable?
4163echo "$as_me:$LINENO: checking $ac_header usability" >&5
4164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4165cat >conftest.$ac_ext <<_ACEOF
4166/* confdefs.h.  */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h.  */
4171$ac_includes_default
4172#include <$ac_header>
4173_ACEOF
4174rm -f conftest.$ac_objext
4175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176  (eval $ac_compile) 2>conftest.er1
4177  ac_status=$?
4178  grep -v '^ *+' conftest.er1 >conftest.err
4179  rm -f conftest.er1
4180  cat conftest.err >&5
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); } &&
4183         { ac_try='test -z "$ac_cxx_werror_flag"
4184                         || test ! -s conftest.err'
4185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186  (eval $ac_try) 2>&5
4187  ac_status=$?
4188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); }; } &&
4190         { ac_try='test -s conftest.$ac_objext'
4191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192  (eval $ac_try) 2>&5
4193  ac_status=$?
4194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195  (exit $ac_status); }; }; then
4196  ac_header_compiler=yes
4197else
4198  echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201ac_header_compiler=no
4202fi
4203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4205echo "${ECHO_T}$ac_header_compiler" >&6
4206
4207# Is the header present?
4208echo "$as_me:$LINENO: checking $ac_header presence" >&5
4209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4210cat >conftest.$ac_ext <<_ACEOF
4211/* confdefs.h.  */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h.  */
4216#include <$ac_header>
4217_ACEOF
4218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4219  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4220  ac_status=$?
4221  grep -v '^ *+' conftest.er1 >conftest.err
4222  rm -f conftest.er1
4223  cat conftest.err >&5
4224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225  (exit $ac_status); } >/dev/null; then
4226  if test -s conftest.err; then
4227    ac_cpp_err=$ac_cxx_preproc_warn_flag
4228    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4229  else
4230    ac_cpp_err=
4231  fi
4232else
4233  ac_cpp_err=yes
4234fi
4235if test -z "$ac_cpp_err"; then
4236  ac_header_preproc=yes
4237else
4238  echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241  ac_header_preproc=no
4242fi
4243rm -f conftest.err conftest.$ac_ext
4244echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4245echo "${ECHO_T}$ac_header_preproc" >&6
4246
4247# So?  What about this header?
4248case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4249  yes:no: )
4250    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4252    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4254    ac_header_preproc=yes
4255    ;;
4256  no:yes:* )
4257    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4259    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4260echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4261    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4263    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4264echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4265    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4267    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4269    (
4270      cat <<\_ASBOX
4271## ----------------------------------- ##
4272## Report this to rappture@nanohub.org ##
4273## ----------------------------------- ##
4274_ASBOX
4275    ) |
4276      sed "s/^/$as_me: WARNING:     /" >&2
4277    ;;
4278esac
4279echo "$as_me:$LINENO: checking for $ac_header" >&5
4280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4281if eval "test \"\${$as_ac_Header+set}\" = set"; then
4282  echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284  eval "$as_ac_Header=\$ac_header_preproc"
4285fi
4286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4288
4289fi
4290if test `eval echo '${'$as_ac_Header'}'` = yes; then
4291  cat >>confdefs.h <<_ACEOF
4292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4293_ACEOF
4294
4295else
4296  { echo "$as_me:$LINENO: WARNING: STL classes missing ?" >&5
4297echo "$as_me: WARNING: STL classes missing ?" >&2;}
4298fi
4299
4300done
4301
4302
4303ac_ext=f
4304ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4305ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4307if test -n "$ac_tool_prefix"; then
4308  for ac_prog in g77 f77 fort77 f90 xlf xlf90 fl32
4309  do
4310    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4311set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4312echo "$as_me:$LINENO: checking for $ac_word" >&5
4313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4314if test "${ac_cv_prog_F77+set}" = set; then
4315  echo $ECHO_N "(cached) $ECHO_C" >&6
4316else
4317  if test -n "$F77"; then
4318  ac_cv_prog_F77="$F77" # Let the user override the test.
4319else
4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323  IFS=$as_save_IFS
4324  test -z "$as_dir" && as_dir=.
4325  for ac_exec_ext in '' $ac_executable_extensions; do
4326  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329    break 2
4330  fi
4331done
4332done
4333
4334fi
4335fi
4336F77=$ac_cv_prog_F77
4337if test -n "$F77"; then
4338  echo "$as_me:$LINENO: result: $F77" >&5
4339echo "${ECHO_T}$F77" >&6
4340else
4341  echo "$as_me:$LINENO: result: no" >&5
4342echo "${ECHO_T}no" >&6
4343fi
4344
4345    test -n "$F77" && break
4346  done
4347fi
4348if test -z "$F77"; then
4349  ac_ct_F77=$F77
4350  for ac_prog in g77 f77 fort77 f90 xlf xlf90 fl32
4351do
4352  # Extract the first word of "$ac_prog", so it can be a program name with args.
4353set dummy $ac_prog; ac_word=$2
4354echo "$as_me:$LINENO: checking for $ac_word" >&5
4355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4357  echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359  if test -n "$ac_ct_F77"; then
4360  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4361else
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365  IFS=$as_save_IFS
4366  test -z "$as_dir" && as_dir=.
4367  for ac_exec_ext in '' $ac_executable_extensions; do
4368  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369    ac_cv_prog_ac_ct_F77="$ac_prog"
4370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371    break 2
4372  fi
4373done
4374done
4375
4376fi
4377fi
4378ac_ct_F77=$ac_cv_prog_ac_ct_F77
4379if test -n "$ac_ct_F77"; then
4380  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4381echo "${ECHO_T}$ac_ct_F77" >&6
4382else
4383  echo "$as_me:$LINENO: result: no" >&5
4384echo "${ECHO_T}no" >&6
4385fi
4386
4387  test -n "$ac_ct_F77" && break
4388done
4389
4390  F77=$ac_ct_F77
4391fi
4392
4393
4394# Provide some information about the compiler.
4395echo "$as_me:4395:" \
4396     "checking for Fortran 77 compiler version" >&5
4397ac_compiler=`set X $ac_compile; echo $2`
4398{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4399  (eval $ac_compiler --version </dev/null >&5) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); }
4403{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4404  (eval $ac_compiler -v </dev/null >&5) 2>&5
4405  ac_status=$?
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }
4408{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4409  (eval $ac_compiler -V </dev/null >&5) 2>&5
4410  ac_status=$?
4411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412  (exit $ac_status); }
4413rm -f a.out
4414
4415# If we don't use `.F' as extension, the preprocessor is not run on the
4416# input file.  (Note that this only needs to work for GNU compilers.)
4417ac_save_ext=$ac_ext
4418ac_ext=F
4419echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4420echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4421if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424  cat >conftest.$ac_ext <<_ACEOF
4425      program main
4426#ifndef __GNUC__
4427       choke me
4428#endif
4429
4430      end
4431_ACEOF
4432rm -f conftest.$ac_objext
4433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4434  (eval $ac_compile) 2>conftest.er1
4435  ac_status=$?
4436  grep -v '^ *+' conftest.er1 >conftest.err
4437  rm -f conftest.er1
4438  cat conftest.err >&5
4439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440  (exit $ac_status); } &&
4441         { ac_try='test -z "$ac_f77_werror_flag"
4442                         || test ! -s conftest.err'
4443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444  (eval $ac_try) 2>&5
4445  ac_status=$?
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); }; } &&
4448         { ac_try='test -s conftest.$ac_objext'
4449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450  (eval $ac_try) 2>&5
4451  ac_status=$?
4452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453  (exit $ac_status); }; }; then
4454  ac_compiler_gnu=yes
4455else
4456  echo "$as_me: failed program was:" >&5
4457sed 's/^/| /' conftest.$ac_ext >&5
4458
4459ac_compiler_gnu=no
4460fi
4461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4462ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4463
4464fi
4465echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4466echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4467ac_ext=$ac_save_ext
4468ac_test_FFLAGS=${FFLAGS+set}
4469ac_save_FFLAGS=$FFLAGS
4470FFLAGS=
4471echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4472echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4473if test "${ac_cv_prog_f77_g+set}" = set; then
4474  echo $ECHO_N "(cached) $ECHO_C" >&6
4475else
4476  FFLAGS=-g
4477cat >conftest.$ac_ext <<_ACEOF
4478      program main
4479
4480      end
4481_ACEOF
4482rm -f conftest.$ac_objext
4483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484  (eval $ac_compile) 2>conftest.er1
4485  ac_status=$?
4486  grep -v '^ *+' conftest.er1 >conftest.err
4487  rm -f conftest.er1
4488  cat conftest.err >&5
4489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); } &&
4491         { ac_try='test -z "$ac_f77_werror_flag"
4492                         || test ! -s conftest.err'
4493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494  (eval $ac_try) 2>&5
4495  ac_status=$?
4496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497  (exit $ac_status); }; } &&
4498         { ac_try='test -s conftest.$ac_objext'
4499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500  (eval $ac_try) 2>&5
4501  ac_status=$?
4502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503  (exit $ac_status); }; }; then
4504  ac_cv_prog_f77_g=yes
4505else
4506  echo "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
4509ac_cv_prog_f77_g=no
4510fi
4511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4512
4513fi
4514echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4515echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4516if test "$ac_test_FFLAGS" = set; then
4517  FFLAGS=$ac_save_FFLAGS
4518elif test $ac_cv_prog_f77_g = yes; then
4519  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4520    FFLAGS="-g -O2"
4521  else
4522    FFLAGS="-g"
4523  fi
4524else
4525  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4526    FFLAGS="-O2"
4527  else
4528    FFLAGS=
4529  fi
4530fi
4531
4532G77=`test $ac_compiler_gnu = yes && echo yes`
4533ac_ext=cc
4534ac_cpp='$CXXCPP $CPPFLAGS'
4535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547# Check whether --with-matlab or --without-matlab was given.
4548if test "${with_matlab+set}" = set; then
4549  withval="$with_matlab"
4550
4551else
4552  with_matlab=check
4553fi;
4554
4555
4556# Check whether --with-matlab_arch or --without-matlab_arch was given.
4557if test "${with_matlab_arch+set}" = set; then
4558  withval="$with_matlab_arch"
4559
4560else
4561  with_matlab_arch=check
4562fi;
4563
4564
4565# Check whether --with-mexext or --without-mexext was given.
4566if test "${with_mexext+set}" = set; then
4567  withval="$with_mexext"
4568
4569else
4570  with_mexext=check
4571fi;
4572
4573MEX=
4574MEX_ARCH=
4575MEXEXT=
4576    echo "$as_me:$LINENO: checking for mex" >&5
4577echo $ECHO_N "checking for mex... $ECHO_C" >&6
4578    if test "$with_matlab" != "no" ; then
4579                if test -x "$with_matlab/bin/mex"
4580        then
4581            echo Found mex in $with_matlab/bin/mex
4582            MEX="$with_matlab/bin/mex"
4583        else
4584            if test -x "$with_matlab"
4585            then
4586                echo Found mex in $with_matlab
4587                MEX="$with_matlab"
4588            else
4589                # Extract the first word of "mex", so it can be a program name with args.
4590set dummy mex; ac_word=$2
4591echo "$as_me:$LINENO: checking for $ac_word" >&5
4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593if test "${ac_cv_path_MEX+set}" = set; then
4594  echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596  case $MEX in
4597  [\\/]* | ?:[\\/]*)
4598  ac_cv_path_MEX="$MEX" # Let the user override the test with a path.
4599  ;;
4600  *)
4601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH
4603do
4604  IFS=$as_save_IFS
4605  test -z "$as_dir" && as_dir=.
4606  for ac_exec_ext in '' $ac_executable_extensions; do
4607  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608    ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext"
4609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610    break 2
4611  fi
4612done
4613done
4614
4615  ;;
4616esac
4617fi
4618MEX=$ac_cv_path_MEX
4619
4620if test -n "$MEX"; then
4621  echo "$as_me:$LINENO: result: $MEX" >&5
4622echo "${ECHO_T}$MEX" >&6
4623else
4624  echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6
4626fi
4627
4628            fi
4629        fi
4630        echo "$as_me:$LINENO: result: ${MEX}" >&5
4631echo "${ECHO_T}${MEX}" >&6
4632        if test "x$with_matlab_arch" != "x" ; then
4633            echo "using matlab architecture \"$with_matlab_arch\""
4634            MEX_ARCH="-arch=$with_matlab_arch"
4635                            fi
4636        if test "x$MEX" != "x" ; then
4637            mexext_fxn=`dirname $MEX`/mexext
4638            if test "x$mexext_fxn" != "x"; then
4639                MEXEXT=`$mexext_fxn`
4640                if test "x${MEXEXT}" = "x" ; then
4641                                                            if test "$with_mexext" != "check" ; then
4642                        MEXEXT="mexglx"
4643                    fi
4644                fi
4645                echo "Using mex file extension \"$MEXEXT\""
4646                echo "$as_me:$LINENO: result: ${MEXEXT}" >&5
4647echo "${ECHO_T}${MEXEXT}" >&6
4648            fi
4649        else
4650            echo "can't find the matlab compiler \"mex\""
4651            echo "use --with-matlab=DIR to specify the location of a matlab installation"
4652            exit 1
4653        fi
4654    fi
4655
4656
4657
4658
4659
4660
4661
4662
4663# Check whether --with-octave or --without-octave was given.
4664if test "${with_octave+set}" = set; then
4665  withval="$with_octave"
4666
4667else
4668  with_octave=check
4669fi;
4670
4671MKOCTFILE=
4672    echo "$as_me:$LINENO: checking for mkoctfile" >&5
4673echo $ECHO_N "checking for mkoctfile... $ECHO_C" >&6
4674    if test "$with_octave" != "no" ; then
4675        if test -x "$with_octave/bin/mkoctfile"
4676        then
4677            echo Found octave in $with_octave/bin/mkoctfile
4678            MKOCTFILE="$with_octave/bin/mkoctfile"
4679        else
4680            if test -x "$with_octave"
4681            then
4682                echo Found mkoctfile in $with_octave
4683                MKOCTFILE="$with_octave"
4684            else
4685                # Extract the first word of "mkoctfile", so it can be a program name with args.
4686set dummy mkoctfile; ac_word=$2
4687echo "$as_me:$LINENO: checking for $ac_word" >&5
4688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4689if test "${ac_cv_path_MKOCTFILE+set}" = set; then
4690  echo $ECHO_N "(cached) $ECHO_C" >&6
4691else
4692  case $MKOCTFILE in
4693  [\\/]* | ?:[\\/]*)
4694  ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.
4695  ;;
4696  *)
4697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700  IFS=$as_save_IFS
4701  test -z "$as_dir" && as_dir=.
4702  for ac_exec_ext in '' $ac_executable_extensions; do
4703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704    ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext"
4705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706    break 2
4707  fi
4708done
4709done
4710
4711  ;;
4712esac
4713fi
4714MKOCTFILE=$ac_cv_path_MKOCTFILE
4715
4716if test -n "$MKOCTFILE"; then
4717  echo "$as_me:$LINENO: result: $MKOCTFILE" >&5
4718echo "${ECHO_T}$MKOCTFILE" >&6
4719else
4720  echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6
4722fi
4723
4724            fi
4725        fi
4726    fi
4727    echo "$as_me:$LINENO: result: ${MKOCTFILE}" >&5
4728echo "${ECHO_T}${MKOCTFILE}" >&6
4729
4730
4731
4732
4733
4734
4735
4736# Check whether --with-perl or --without-perl was given.
4737if test "${with_perl+set}" = set; then
4738  withval="$with_perl"
4739
4740else
4741  with_perl=check
4742fi;
4743
4744PERL=
4745PERL_INCLUDES=
4746PERL_SITE_PACKAGES=
4747echo "$as_me:$LINENO: checking for mkoctfile" >&5
4748echo $ECHO_N "checking for mkoctfile... $ECHO_C" >&6
4749if test "$with_perl" != "no" ; then
4750    if test -x "$with_perl/bin/perl"
4751    then
4752        echo Found perl in $with_perl/bin/perl
4753        PERL="$with_perl/bin/perl"
4754    else
4755        if test -x "$with_perl"
4756        then
4757            echo Found perl in $with_perl
4758            PERL="$with_perl"
4759        else
4760            # Extract the first word of "perl", so it can be a program name with args.
4761set dummy perl; ac_word=$2
4762echo "$as_me:$LINENO: checking for $ac_word" >&5
4763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764if test "${ac_cv_path_PERL+set}" = set; then
4765  echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767  case $PERL in
4768  [\\/]* | ?:[\\/]*)
4769  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4770  ;;
4771  *)
4772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775  IFS=$as_save_IFS
4776  test -z "$as_dir" && as_dir=.
4777  for ac_exec_ext in '' $ac_executable_extensions; do
4778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781    break 2
4782  fi
4783done
4784done
4785
4786  ;;
4787esac
4788fi
4789PERL=$ac_cv_path_PERL
4790
4791if test -n "$PERL"; then
4792  echo "$as_me:$LINENO: result: $PERL" >&5
4793echo "${ECHO_T}$PERL" >&6
4794else
4795  echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
4797fi
4798
4799        fi
4800    fi
4801    PERL_SITE_PACKAGES='$(libdir)/perl5'
4802fi
4803echo "$as_me:$LINENO: result: ${PERL}" >&5
4804echo "${ECHO_T}${PERL}" >&6
4805
4806
4807
4808
4809
4810
4811PYTHON=
4812PYTHON_VERSION=
4813PYTHON_INCLUDES=
4814PYTHON_SITE_PACKAGES=
4815pythondir=
4816
4817# Check whether --with-python or --without-python was given.
4818if test "${with_python+set}" = set; then
4819  withval="$with_python"
4820
4821else
4822  with_python=check
4823fi;
4824
4825if test "$with_python" != "no" ; then
4826    if test -x "$with_python/bin/python"
4827    then
4828        echo Found python in $with_python/bin/python
4829        PYTHON="$with_python/bin/python"
4830    else
4831        if test -x "$with_python"
4832        then
4833            echo Found python in $with_python
4834            PYTHON="$with_python"
4835        else
4836            # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
4837set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
4838echo "$as_me:$LINENO: checking for $ac_word" >&5
4839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840if test "${ac_cv_path_PYTHON+set}" = set; then
4841  echo $ECHO_N "(cached) $ECHO_C" >&6
4842else
4843  case $PYTHON in
4844  [\\/]* | ?:[\\/]*)
4845  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4846  ;;
4847  *)
4848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849for as_dir in $PATH
4850do
4851  IFS=$as_save_IFS
4852  test -z "$as_dir" && as_dir=.
4853  for ac_exec_ext in '' $ac_executable_extensions; do
4854  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4855    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857    break 2
4858  fi
4859done
4860done
4861
4862  ;;
4863esac
4864fi
4865PYTHON=$ac_cv_path_PYTHON
4866
4867if test -n "$PYTHON"; then
4868  echo "$as_me:$LINENO: result: $PYTHON" >&5
4869echo "${ECHO_T}$PYTHON" >&6
4870else
4871  echo "$as_me:$LINENO: result: no" >&5
4872echo "${ECHO_T}no" >&6
4873fi
4874
4875        fi
4876    fi
4877    if test "$PYTHON" != ""
4878    then
4879        PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
4880        echo Using python version $PYTHON_VERSION
4881    fi
4882    if test "$PYTHON_VERSION" != ""
4883    then
4884    if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
4885       -d $with_python/lib/python$PYTHON_VERSION/site-packages
4886    then
4887        PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
4888        PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
4889    else
4890        if test -r $prefix/include/python$PYTHON_VERSION/Python.h
4891        then
4892            PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)'
4893            PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
4894        else
4895            if test -r /usr/include/python$PYTHON_VERSION/Python.h
4896            then
4897                PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
4898                PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
4899            else
4900                echo could not find python$PYTHON_VERSION/Python.h
4901            fi
4902        fi
4903        if test ! -d "$PYTHON_SITE_PACKAGES"
4904        then
4905            PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
4906        fi
4907    fi
4908    fi
4909    if test "$with_python" != ""
4910    then
4911        pythondir='$(PYTHON_SITE_PACKAGES)'
4912    else
4913        pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages'
4914    fi
4915fi
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925RP_BASE=`pwd`
4926
4927
4928
4929
4930subdirs="$subdirs gui "
4931
4932
4933
4934subdirs="$subdirs src/tcl "
4935
4936
4937                                                                                                                                                                ac_config_files="$ac_config_files Makefile examples/demo.bash examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/wrapper/cee/Makefile examples/c-example/Makefile perl/Makefile.PL python/setup.py src/Makefile src/matlab/Makefile src/octave/Makefile src2/core/Makefile test/Makefile gui/apps/simsim gui/apps/rappture gui/apps/rappture.env"
4938cat >confcache <<\_ACEOF
4939# This file is a shell script that caches the results of configure
4940# tests run on this system so they can be shared between configure
4941# scripts and configure runs, see configure's option --config-cache.
4942# It is not useful on other systems.  If it contains results you don't
4943# want to keep, you may remove or edit it.
4944#
4945# config.status only pays attention to the cache file if you give it
4946# the --recheck option to rerun configure.
4947#
4948# `ac_cv_env_foo' variables (set or unset) will be overridden when
4949# loading this file, other *unset* `ac_cv_foo' will be assigned the
4950# following values.
4951
4952_ACEOF
4953
4954# The following way of writing the cache mishandles newlines in values,
4955# but we know of no workaround that is simple, portable, and efficient.
4956# So, don't put newlines in cache variables' values.
4957# Ultrix sh set writes to stderr and can't be redirected directly,
4958# and sets the high bit in the cache file unless we assign to the vars.
4959{
4960  (set) 2>&1 |
4961    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4962    *ac_space=\ *)
4963      # `set' does not quote correctly, so add quotes (double-quote
4964      # substitution turns \\\\ into \\, and sed turns \\ into \).
4965      sed -n \
4966        "s/'/'\\\\''/g;
4967          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4968      ;;
4969    *)
4970      # `set' quotes correctly as required by POSIX, so do not add quotes.
4971      sed -n \
4972        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4973      ;;
4974    esac;
4975} |
4976  sed '
4977     t clear
4978     : clear
4979     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4980     t end
4981     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4982     : end' >>confcache
4983if diff $cache_file confcache >/dev/null 2>&1; then :; else
4984  if test -w $cache_file; then
4985    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4986    cat confcache >$cache_file
4987  else
4988    echo "not updating unwritable cache $cache_file"
4989  fi
4990fi
4991rm -f confcache
4992
4993test "x$prefix" = xNONE && prefix=$ac_default_prefix
4994# Let make expand exec_prefix.
4995test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4996
4997# VPATH may cause trouble with some makes, so we remove $(srcdir),
4998# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4999# trailing colons and then remove the whole line if VPATH becomes empty
5000# (actually we leave an empty line to preserve line numbers).
5001if test "x$srcdir" = x.; then
5002  ac_vpsub='/^[  ]*VPATH[        ]*=/{
5003s/:*\$(srcdir):*/:/;
5004s/:*\${srcdir}:*/:/;
5005s/:*@srcdir@:*/:/;
5006s/^\([^=]*=[     ]*\):*/\1/;
5007s/:*$//;
5008s/^[^=]*=[       ]*$//;
5009}'
5010fi
5011
5012# Transform confdefs.h into DEFS.
5013# Protect against shell expansion while executing Makefile rules.
5014# Protect against Makefile macro expansion.
5015#
5016# If the first sed substitution is executed (which looks for macros that
5017# take arguments), then we branch to the quote section.  Otherwise,
5018# look for a macro that doesn't take arguments.
5019cat >confdef2opt.sed <<\_ACEOF
5020t clear
5021: clear
5022s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
5023t quote
5024s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
5025t quote
5026d
5027: quote
5028s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
5029s,\[,\\&,g
5030s,\],\\&,g
5031s,\$,$$,g
5032p
5033_ACEOF
5034# We use echo to avoid assuming a particular line-breaking character.
5035# The extra dot is to prevent the shell from consuming trailing
5036# line-breaks from the sub-command output.  A line-break within
5037# single-quotes doesn't work because, if this script is created in a
5038# platform that uses two characters for line-breaks (e.g., DOS), tr
5039# would break.
5040ac_LF_and_DOT=`echo; echo .`
5041DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5042rm -f confdef2opt.sed
5043
5044
5045ac_libobjs=
5046ac_ltlibobjs=
5047for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5048  # 1. Remove the extension, and $U if already installed.
5049  ac_i=`echo "$ac_i" |
5050         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5051  # 2. Add them.
5052  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5053  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5054done
5055LIBOBJS=$ac_libobjs
5056
5057LTLIBOBJS=$ac_ltlibobjs
5058
5059
5060
5061: ${CONFIG_STATUS=./config.status}
5062ac_clean_files_save=$ac_clean_files
5063ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5064{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5065echo "$as_me: creating $CONFIG_STATUS" >&6;}
5066cat >$CONFIG_STATUS <<_ACEOF
5067#! $SHELL
5068# Generated by $as_me.
5069# Run this file to recreate the current configuration.
5070# Compiler output produced by configure, useful for debugging
5071# configure, is in config.log if it exists.
5072
5073debug=false
5074ac_cs_recheck=false
5075ac_cs_silent=false
5076SHELL=\${CONFIG_SHELL-$SHELL}
5077_ACEOF
5078
5079cat >>$CONFIG_STATUS <<\_ACEOF
5080## --------------------- ##
5081## M4sh Initialization.  ##
5082## --------------------- ##
5083
5084# Be Bourne compatible
5085if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5086  emulate sh
5087  NULLCMD=:
5088  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5089  # is contrary to our usage.  Disable this feature.
5090  alias -g '${1+"$@"}'='"$@"'
5091elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5092  set -o posix
5093fi
5094DUALCASE=1; export DUALCASE # for MKS sh
5095
5096# Support unset when possible.
5097if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5098  as_unset=unset
5099else
5100  as_unset=false
5101fi
5102
5103
5104# Work around bugs in pre-3.0 UWIN ksh.
5105$as_unset ENV MAIL MAILPATH
5106PS1='$ '
5107PS2='> '
5108PS4='+ '
5109
5110# NLS nuisances.
5111for as_var in \
5112  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5113  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5114  LC_TELEPHONE LC_TIME
5115do
5116  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5117    eval $as_var=C; export $as_var
5118  else
5119    $as_unset $as_var
5120  fi
5121done
5122
5123# Required to use basename.
5124if expr a : '\(a\)' >/dev/null 2>&1; then
5125  as_expr=expr
5126else
5127  as_expr=false
5128fi
5129
5130if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5131  as_basename=basename
5132else
5133  as_basename=false
5134fi
5135
5136
5137# Name of the executable.
5138as_me=`$as_basename "$0" ||
5139$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5140         X"$0" : 'X\(//\)$' \| \
5141         X"$0" : 'X\(/\)$' \| \
5142         .     : '\(.\)' 2>/dev/null ||
5143echo X/"$0" |
5144    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5145          /^X\/\(\/\/\)$/{ s//\1/; q; }
5146          /^X\/\(\/\).*/{ s//\1/; q; }
5147          s/.*/./; q'`
5148
5149
5150# PATH needs CR, and LINENO needs CR and PATH.
5151# Avoid depending upon Character Ranges.
5152as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5153as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5154as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5155as_cr_digits='0123456789'
5156as_cr_alnum=$as_cr_Letters$as_cr_digits
5157
5158# The user is always right.
5159if test "${PATH_SEPARATOR+set}" != set; then
5160  echo "#! /bin/sh" >conf$$.sh
5161  echo  "exit 0"   >>conf$$.sh
5162  chmod +x conf$$.sh
5163  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5164    PATH_SEPARATOR=';'
5165  else
5166    PATH_SEPARATOR=:
5167  fi
5168  rm -f conf$$.sh
5169fi
5170
5171
5172  as_lineno_1=$LINENO
5173  as_lineno_2=$LINENO
5174  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5175  test "x$as_lineno_1" != "x$as_lineno_2" &&
5176  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5177  # Find who we are.  Look in the path if we contain no path at all
5178  # relative or not.
5179  case $0 in
5180    *[\\/]* ) as_myself=$0 ;;
5181    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5187done
5188
5189       ;;
5190  esac
5191  # We did not find ourselves, most probably we were run as `sh COMMAND'
5192  # in which case we are not to be found in the path.
5193  if test "x$as_myself" = x; then
5194    as_myself=$0
5195  fi
5196  if test ! -f "$as_myself"; then
5197    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5198echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5199   { (exit 1); exit 1; }; }
5200  fi
5201  case $CONFIG_SHELL in
5202  '')
5203    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5205do
5206  IFS=$as_save_IFS
5207  test -z "$as_dir" && as_dir=.
5208  for as_base in sh bash ksh sh5; do
5209         case $as_dir in
5210         /*)
5211           if ("$as_dir/$as_base" -c '
5212  as_lineno_1=$LINENO
5213  as_lineno_2=$LINENO
5214  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5215  test "x$as_lineno_1" != "x$as_lineno_2" &&
5216  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5217             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5218             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5219             CONFIG_SHELL=$as_dir/$as_base
5220             export CONFIG_SHELL
5221             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5222           fi;;
5223         esac
5224       done
5225done
5226;;
5227  esac
5228
5229  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5230  # uniformly replaced by the line number.  The first 'sed' inserts a
5231  # line-number line before each line; the second 'sed' does the real
5232  # work.  The second script uses 'N' to pair each line-number line
5233  # with the numbered line, and appends trailing '-' during
5234  # substitution so that $LINENO is not a special case at line end.
5235  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5236  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5237  sed '=' <$as_myself |
5238    sed '
5239      N
5240      s,$,-,
5241      : loop
5242      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5243      t loop
5244      s,-$,,
5245      s,^['$as_cr_digits']*\n,,
5246    ' >$as_me.lineno &&
5247  chmod +x $as_me.lineno ||
5248    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5249echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5250   { (exit 1); exit 1; }; }
5251
5252  # Don't try to exec as it changes $[0], causing all sort of problems
5253  # (the dirname of $[0] is not the place where we might find the
5254  # original and so on.  Autoconf is especially sensible to this).
5255  . ./$as_me.lineno
5256  # Exit status is that of the last command.
5257  exit
5258}
5259
5260
5261case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5262  *c*,-n*) ECHO_N= ECHO_C='
5263' ECHO_T='      ' ;;
5264  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5265  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5266esac
5267
5268if expr a : '\(a\)' >/dev/null 2>&1; then
5269  as_expr=expr
5270else
5271  as_expr=false
5272fi
5273
5274rm -f conf$$ conf$$.exe conf$$.file
5275echo >conf$$.file
5276if ln -s conf$$.file conf$$ 2>/dev/null; then
5277  # We could just check for DJGPP; but this test a) works b) is more generic
5278  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5279  if test -f conf$$.exe; then
5280    # Don't use ln at all; we don't have any links
5281    as_ln_s='cp -p'
5282  else
5283    as_ln_s='ln -s'
5284  fi
5285elif ln conf$$.file conf$$ 2>/dev/null; then
5286  as_ln_s=ln
5287else
5288  as_ln_s='cp -p'
5289fi
5290rm -f conf$$ conf$$.exe conf$$.file
5291
5292if mkdir -p . 2>/dev/null; then
5293  as_mkdir_p=:
5294else
5295  test -d ./-p && rmdir ./-p
5296  as_mkdir_p=false
5297fi
5298
5299as_executable_p="test -f"
5300
5301# Sed expression to map a string onto a valid CPP name.
5302as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5303
5304# Sed expression to map a string onto a valid variable name.
5305as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5306
5307
5308# IFS
5309# We need space, tab and new line, in precisely that order.
5310as_nl='
5311'
5312IFS="   $as_nl"
5313
5314# CDPATH.
5315$as_unset CDPATH
5316
5317exec 6>&1
5318
5319# Open the log real soon, to keep \$[0] and so on meaningful, and to
5320# report actual input values of CONFIG_FILES etc. instead of their
5321# values after options handling.  Logging --version etc. is OK.
5322exec 5>>config.log
5323{
5324  echo
5325  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5326## Running $as_me. ##
5327_ASBOX
5328} >&5
5329cat >&5 <<_CSEOF
5330
5331This file was extended by rappture $as_me 1.1, which was
5332generated by GNU Autoconf 2.59.  Invocation command line was
5333
5334  CONFIG_FILES    = $CONFIG_FILES
5335  CONFIG_HEADERS  = $CONFIG_HEADERS
5336  CONFIG_LINKS    = $CONFIG_LINKS
5337  CONFIG_COMMANDS = $CONFIG_COMMANDS
5338  $ $0 $@
5339
5340_CSEOF
5341echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5342echo >&5
5343_ACEOF
5344
5345# Files that config.status was made for.
5346if test -n "$ac_config_files"; then
5347  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5348fi
5349
5350if test -n "$ac_config_headers"; then
5351  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5352fi
5353
5354if test -n "$ac_config_links"; then
5355  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5356fi
5357
5358if test -n "$ac_config_commands"; then
5359  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5360fi
5361
5362cat >>$CONFIG_STATUS <<\_ACEOF
5363
5364ac_cs_usage="\
5365\`$as_me' instantiates files from templates according to the
5366current configuration.
5367
5368Usage: $0 [OPTIONS] [FILE]...
5369
5370  -h, --help       print this help, then exit
5371  -V, --version    print version number, then exit
5372  -q, --quiet      do not print progress messages
5373  -d, --debug      don't remove temporary files
5374      --recheck    update $as_me by reconfiguring in the same conditions
5375  --file=FILE[:TEMPLATE]
5376                   instantiate the configuration file FILE
5377
5378Configuration files:
5379$config_files
5380
5381Report bugs to <bug-autoconf@gnu.org>."
5382_ACEOF
5383
5384cat >>$CONFIG_STATUS <<_ACEOF
5385ac_cs_version="\\
5386rappture config.status 1.1
5387configured by $0, generated by GNU Autoconf 2.59,
5388  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5389
5390Copyright (C) 2003 Free Software Foundation, Inc.
5391This config.status script is free software; the Free Software Foundation
5392gives unlimited permission to copy, distribute and modify it."
5393srcdir=$srcdir
5394INSTALL="$INSTALL"
5395_ACEOF
5396
5397cat >>$CONFIG_STATUS <<\_ACEOF
5398# If no file are specified by the user, then we need to provide default
5399# value.  By we need to know if files were specified by the user.
5400ac_need_defaults=:
5401while test $# != 0
5402do
5403  case $1 in
5404  --*=*)
5405    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5406    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5407    ac_shift=:
5408    ;;
5409  -*)
5410    ac_option=$1
5411    ac_optarg=$2
5412    ac_shift=shift
5413    ;;
5414  *) # This is not an option, so the user has probably given explicit
5415     # arguments.
5416     ac_option=$1
5417     ac_need_defaults=false;;
5418  esac
5419
5420  case $ac_option in
5421  # Handling of the options.
5422_ACEOF
5423cat >>$CONFIG_STATUS <<\_ACEOF
5424  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5425    ac_cs_recheck=: ;;
5426  --version | --vers* | -V )
5427    echo "$ac_cs_version"; exit 0 ;;
5428  --he | --h)
5429    # Conflict between --help and --header
5430    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5431Try \`$0 --help' for more information." >&5
5432echo "$as_me: error: ambiguous option: $1
5433Try \`$0 --help' for more information." >&2;}
5434   { (exit 1); exit 1; }; };;
5435  --help | --hel | -h )
5436    echo "$ac_cs_usage"; exit 0 ;;
5437  --debug | --d* | -d )
5438    debug=: ;;
5439  --file | --fil | --fi | --f )
5440    $ac_shift
5441    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5442    ac_need_defaults=false;;
5443  --header | --heade | --head | --hea )
5444    $ac_shift
5445    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5446    ac_need_defaults=false;;
5447  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5448  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5449    ac_cs_silent=: ;;
5450
5451  # This is an error.
5452  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5453Try \`$0 --help' for more information." >&5
5454echo "$as_me: error: unrecognized option: $1
5455Try \`$0 --help' for more information." >&2;}
5456   { (exit 1); exit 1; }; } ;;
5457
5458  *) ac_config_targets="$ac_config_targets $1" ;;
5459
5460  esac
5461  shift
5462done
5463
5464ac_configure_extra_args=
5465
5466if $ac_cs_silent; then
5467  exec 6>/dev/null
5468  ac_configure_extra_args="$ac_configure_extra_args --silent"
5469fi
5470
5471_ACEOF
5472cat >>$CONFIG_STATUS <<_ACEOF
5473if \$ac_cs_recheck; then
5474  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5475  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5476fi
5477
5478_ACEOF
5479
5480
5481
5482
5483
5484cat >>$CONFIG_STATUS <<\_ACEOF
5485for ac_config_target in $ac_config_targets
5486do
5487  case "$ac_config_target" in
5488  # Handling of arguments.
5489  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5490  "examples/demo.bash" ) CONFIG_FILES="$CONFIG_FILES examples/demo.bash" ;;
5491  "examples/app-fermi/cee/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/app-fermi/cee/Makefile" ;;
5492  "examples/app-fermi/fortran/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/app-fermi/fortran/Makefile" ;;
5493  "examples/app-fermi/wrapper/cee/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/cee/Makefile" ;;
5494  "examples/c-example/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c-example/Makefile" ;;
5495  "perl/Makefile.PL" ) CONFIG_FILES="$CONFIG_FILES perl/Makefile.PL" ;;
5496  "python/setup.py" ) CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
5497  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5498  "src/matlab/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/matlab/Makefile" ;;
5499  "src/octave/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/octave/Makefile" ;;
5500  "src2/core/Makefile" ) CONFIG_FILES="$CONFIG_FILES src2/core/Makefile" ;;
5501  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
5502  "gui/apps/simsim" ) CONFIG_FILES="$CONFIG_FILES gui/apps/simsim" ;;
5503  "gui/apps/rappture" ) CONFIG_FILES="$CONFIG_FILES gui/apps/rappture" ;;
5504  "gui/apps/rappture.env" ) CONFIG_FILES="$CONFIG_FILES gui/apps/rappture.env" ;;
5505  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5506echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5507   { (exit 1); exit 1; }; };;
5508  esac
5509done
5510
5511# If the user did not use the arguments to specify the items to instantiate,
5512# then the envvar interface is used.  Set only those that are not.
5513# We use the long form for the default assignment because of an extremely
5514# bizarre bug on SunOS 4.1.3.
5515if $ac_need_defaults; then
5516  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5517fi
5518
5519# Have a temporary directory for convenience.  Make it in the build tree
5520# simply because there is no reason to put it here, and in addition,
5521# creating and moving files from /tmp can sometimes cause problems.
5522# Create a temporary directory, and hook for its removal unless debugging.
5523$debug ||
5524{
5525  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5526  trap '{ (exit 1); exit 1; }' 1 2 13 15
5527}
5528
5529# Create a (secure) tmp directory for tmp files.
5530
5531{
5532  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5533  test -n "$tmp" && test -d "$tmp"
5534}  ||
5535{
5536  tmp=./confstat$$-$RANDOM
5537  (umask 077 && mkdir $tmp)
5538} ||
5539{
5540   echo "$me: cannot create a temporary directory in ." >&2
5541   { (exit 1); exit 1; }
5542}
5543
5544_ACEOF
5545
5546cat >>$CONFIG_STATUS <<_ACEOF
5547
5548#
5549# CONFIG_FILES section.
5550#
5551
5552# No need to generate the scripts if there are no CONFIG_FILES.
5553# This happens for instance when ./config.status config.h
5554if test -n "\$CONFIG_FILES"; then
5555  # Protect against being on the right side of a sed subst in config.status.
5556  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5557   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5558s,@SHELL@,$SHELL,;t t
5559s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5560s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5561s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5562s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5563s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5564s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5565s,@exec_prefix@,$exec_prefix,;t t
5566s,@prefix@,$prefix,;t t
5567s,@program_transform_name@,$program_transform_name,;t t
5568s,@bindir@,$bindir,;t t
5569s,@sbindir@,$sbindir,;t t
5570s,@libexecdir@,$libexecdir,;t t
5571s,@datadir@,$datadir,;t t
5572s,@sysconfdir@,$sysconfdir,;t t
5573s,@sharedstatedir@,$sharedstatedir,;t t
5574s,@localstatedir@,$localstatedir,;t t
5575s,@libdir@,$libdir,;t t
5576s,@includedir@,$includedir,;t t
5577s,@oldincludedir@,$oldincludedir,;t t
5578s,@infodir@,$infodir,;t t
5579s,@mandir@,$mandir,;t t
5580s,@build_alias@,$build_alias,;t t
5581s,@host_alias@,$host_alias,;t t
5582s,@target_alias@,$target_alias,;t t
5583s,@DEFS@,$DEFS,;t t
5584s,@ECHO_C@,$ECHO_C,;t t
5585s,@ECHO_N@,$ECHO_N,;t t
5586s,@ECHO_T@,$ECHO_T,;t t
5587s,@LIBS@,$LIBS,;t t
5588s,@VERSION@,$VERSION,;t t
5589s,@LIB_SEARCH_DIRS@,$LIB_SEARCH_DIRS,;t t
5590s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5591s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5592s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5593s,@SET_MAKE@,$SET_MAKE,;t t
5594s,@CC@,$CC,;t t
5595s,@CFLAGS@,$CFLAGS,;t t
5596s,@LDFLAGS@,$LDFLAGS,;t t
5597s,@CPPFLAGS@,$CPPFLAGS,;t t
5598s,@ac_ct_CC@,$ac_ct_CC,;t t
5599s,@EXEEXT@,$EXEEXT,;t t
5600s,@OBJEXT@,$OBJEXT,;t t
5601s,@CPP@,$CPP,;t t
5602s,@EGREP@,$EGREP,;t t
5603s,@CXX@,$CXX,;t t
5604s,@CXXFLAGS@,$CXXFLAGS,;t t
5605s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5606s,@CXXCPP@,$CXXCPP,;t t
5607s,@F77@,$F77,;t t
5608s,@FFLAGS@,$FFLAGS,;t t
5609s,@ac_ct_F77@,$ac_ct_F77,;t t
5610s,@MEX@,$MEX,;t t
5611s,@MEX_ARCH@,$MEX_ARCH,;t t
5612s,@MEXEXT@,$MEXEXT,;t t
5613s,@MKOCTFILE@,$MKOCTFILE,;t t
5614s,@PERL@,$PERL,;t t
5615s,@PERL_INCLUDES@,$PERL_INCLUDES,;t t
5616s,@PERL_SITE_PACKAGES@,$PERL_SITE_PACKAGES,;t t
5617s,@PYTHON@,$PYTHON,;t t
5618s,@pythondir@,$pythondir,;t t
5619s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
5620s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
5621s,@PYTHON_SITE_PACKAGES@,$PYTHON_SITE_PACKAGES,;t t
5622s,@RP_BASE@,$RP_BASE,;t t
5623s,@subdirs@,$subdirs,;t t
5624s,@LIBOBJS@,$LIBOBJS,;t t
5625s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5626CEOF
5627
5628_ACEOF
5629
5630  cat >>$CONFIG_STATUS <<\_ACEOF
5631  # Split the substitutions into bite-sized pieces for seds with
5632  # small command number limits, like on Digital OSF/1 and HP-UX.
5633  ac_max_sed_lines=48
5634  ac_sed_frag=1 # Number of current file.
5635  ac_beg=1 # First line for current file.
5636  ac_end=$ac_max_sed_lines # Line after last line for current file.
5637  ac_more_lines=:
5638  ac_sed_cmds=
5639  while $ac_more_lines; do
5640    if test $ac_beg -gt 1; then
5641      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5642    else
5643      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5644    fi
5645    if test ! -s $tmp/subs.frag; then
5646      ac_more_lines=false
5647    else
5648      # The purpose of the label and of the branching condition is to
5649      # speed up the sed processing (if there are no `@' at all, there
5650      # is no need to browse any of the substitutions).
5651      # These are the two extra sed commands mentioned above.
5652      (echo ':t
5653  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5654      if test -z "$ac_sed_cmds"; then
5655        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5656      else
5657        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5658      fi
5659      ac_sed_frag=`expr $ac_sed_frag + 1`
5660      ac_beg=$ac_end
5661      ac_end=`expr $ac_end + $ac_max_sed_lines`
5662    fi
5663  done
5664  if test -z "$ac_sed_cmds"; then
5665    ac_sed_cmds=cat
5666  fi
5667fi # test -n "$CONFIG_FILES"
5668
5669_ACEOF
5670cat >>$CONFIG_STATUS <<\_ACEOF
5671for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5672  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5673  case $ac_file in
5674  - | *:- | *:-:* ) # input from stdin
5675        cat >$tmp/stdin
5676        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5677        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5678  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5679        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5680  * )   ac_file_in=$ac_file.in ;;
5681  esac
5682
5683  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5684  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5685$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5686         X"$ac_file" : 'X\(//\)[^/]' \| \
5687         X"$ac_file" : 'X\(//\)$' \| \
5688         X"$ac_file" : 'X\(/\)' \| \
5689         .     : '\(.\)' 2>/dev/null ||
5690echo X"$ac_file" |
5691    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5692          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5693          /^X\(\/\/\)$/{ s//\1/; q; }
5694          /^X\(\/\).*/{ s//\1/; q; }
5695          s/.*/./; q'`
5696  { if $as_mkdir_p; then
5697    mkdir -p "$ac_dir"
5698  else
5699    as_dir="$ac_dir"
5700    as_dirs=
5701    while test ! -d "$as_dir"; do
5702      as_dirs="$as_dir $as_dirs"
5703      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5704$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5705         X"$as_dir" : 'X\(//\)[^/]' \| \
5706         X"$as_dir" : 'X\(//\)$' \| \
5707         X"$as_dir" : 'X\(/\)' \| \
5708         .     : '\(.\)' 2>/dev/null ||
5709echo X"$as_dir" |
5710    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5711          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5712          /^X\(\/\/\)$/{ s//\1/; q; }
5713          /^X\(\/\).*/{ s//\1/; q; }
5714          s/.*/./; q'`
5715    done
5716    test ! -n "$as_dirs" || mkdir $as_dirs
5717  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5718echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5719   { (exit 1); exit 1; }; }; }
5720
5721  ac_builddir=.
5722
5723if test "$ac_dir" != .; then
5724  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5725  # A "../" for each directory in $ac_dir_suffix.
5726  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5727else
5728  ac_dir_suffix= ac_top_builddir=
5729fi
5730
5731case $srcdir in
5732  .)  # No --srcdir option.  We are building in place.
5733    ac_srcdir=.
5734    if test -z "$ac_top_builddir"; then
5735       ac_top_srcdir=.
5736    else
5737       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5738    fi ;;
5739  [\\/]* | ?:[\\/]* )  # Absolute path.
5740    ac_srcdir=$srcdir$ac_dir_suffix;
5741    ac_top_srcdir=$srcdir ;;
5742  *) # Relative path.
5743    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5744    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5745esac
5746
5747# Do not use `cd foo && pwd` to compute absolute paths, because
5748# the directories may not exist.
5749case `pwd` in
5750.) ac_abs_builddir="$ac_dir";;
5751*)
5752  case "$ac_dir" in
5753  .) ac_abs_builddir=`pwd`;;
5754  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5755  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5756  esac;;
5757esac
5758case $ac_abs_builddir in
5759.) ac_abs_top_builddir=${ac_top_builddir}.;;
5760*)
5761  case ${ac_top_builddir}. in
5762  .) ac_abs_top_builddir=$ac_abs_builddir;;
5763  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5764  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5765  esac;;
5766esac
5767case $ac_abs_builddir in
5768.) ac_abs_srcdir=$ac_srcdir;;
5769*)
5770  case $ac_srcdir in
5771  .) ac_abs_srcdir=$ac_abs_builddir;;
5772  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5773  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5774  esac;;
5775esac
5776case $ac_abs_builddir in
5777.) ac_abs_top_srcdir=$ac_top_srcdir;;
5778*)
5779  case $ac_top_srcdir in
5780  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5781  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5782  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5783  esac;;
5784esac
5785
5786
5787  case $INSTALL in
5788  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5789  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5790  esac
5791
5792  if test x"$ac_file" != x-; then
5793    { echo "$as_me:$LINENO: creating $ac_file" >&5
5794echo "$as_me: creating $ac_file" >&6;}
5795    rm -f "$ac_file"
5796  fi
5797  # Let's still pretend it is `configure' which instantiates (i.e., don't
5798  # use $as_me), people would be surprised to read:
5799  #    /* config.h.  Generated by config.status.  */
5800  if test x"$ac_file" = x-; then
5801    configure_input=
5802  else
5803    configure_input="$ac_file.  "
5804  fi
5805  configure_input=$configure_input"Generated from `echo $ac_file_in |
5806                                     sed 's,.*/,,'` by configure."
5807
5808  # First look for the input files in the build tree, otherwise in the
5809  # src tree.
5810  ac_file_inputs=`IFS=:
5811    for f in $ac_file_in; do
5812      case $f in
5813      -) echo $tmp/stdin ;;
5814      [\\/$]*)
5815         # Absolute (can't be DOS-style, as IFS=:)
5816         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5817echo "$as_me: error: cannot find input file: $f" >&2;}
5818   { (exit 1); exit 1; }; }
5819         echo "$f";;
5820      *) # Relative
5821         if test -f "$f"; then
5822           # Build tree
5823           echo "$f"
5824         elif test -f "$srcdir/$f"; then
5825           # Source tree
5826           echo "$srcdir/$f"
5827         else
5828           # /dev/null tree
5829           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5830echo "$as_me: error: cannot find input file: $f" >&2;}
5831   { (exit 1); exit 1; }; }
5832         fi;;
5833      esac
5834    done` || { (exit 1); exit 1; }
5835_ACEOF
5836cat >>$CONFIG_STATUS <<_ACEOF
5837  sed "$ac_vpsub
5838$extrasub
5839_ACEOF
5840cat >>$CONFIG_STATUS <<\_ACEOF
5841:t
5842/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5843s,@configure_input@,$configure_input,;t t
5844s,@srcdir@,$ac_srcdir,;t t
5845s,@abs_srcdir@,$ac_abs_srcdir,;t t
5846s,@top_srcdir@,$ac_top_srcdir,;t t
5847s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5848s,@builddir@,$ac_builddir,;t t
5849s,@abs_builddir@,$ac_abs_builddir,;t t
5850s,@top_builddir@,$ac_top_builddir,;t t
5851s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5852s,@INSTALL@,$ac_INSTALL,;t t
5853" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5854  rm -f $tmp/stdin
5855  if test x"$ac_file" != x-; then
5856    mv $tmp/out $ac_file
5857  else
5858    cat $tmp/out
5859    rm -f $tmp/out
5860  fi
5861
5862done
5863_ACEOF
5864
5865cat >>$CONFIG_STATUS <<\_ACEOF
5866
5867{ (exit 0); exit 0; }
5868_ACEOF
5869chmod +x $CONFIG_STATUS
5870ac_clean_files=$ac_clean_files_save
5871
5872
5873# configure is writing to config.log, and then calls config.status.
5874# config.status does its own redirection, appending to config.log.
5875# Unfortunately, on DOS this fails, as config.log is still kept open
5876# by configure, so config.status won't be able to write to it; its
5877# output is simply discarded.  So we exec the FD to /dev/null,
5878# effectively closing config.log, so it can be properly (re)opened and
5879# appended to by config.status.  When coming back to configure, we
5880# need to make the FD available again.
5881if test "$no_create" != yes; then
5882  ac_cs_success=:
5883  ac_config_status_args=
5884  test "$silent" = yes &&
5885    ac_config_status_args="$ac_config_status_args --quiet"
5886  exec 5>/dev/null
5887  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5888  exec 5>>config.log
5889  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5890  # would make configure fail if this is the last instruction.
5891  $ac_cs_success || { (exit 1); exit 1; }
5892fi
5893
5894#
5895# CONFIG_SUBDIRS section.
5896#
5897if test "$no_recursion" != yes; then
5898
5899  # Remove --cache-file and --srcdir arguments so they do not pile up.
5900  ac_sub_configure_args=
5901  ac_prev=
5902  for ac_arg in $ac_configure_args; do
5903    if test -n "$ac_prev"; then
5904      ac_prev=
5905      continue
5906    fi
5907    case $ac_arg in
5908    -cache-file | --cache-file | --cache-fil | --cache-fi \
5909    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5910      ac_prev=cache_file ;;
5911    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5912    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5913    | --c=*)
5914      ;;
5915    --config-cache | -C)
5916      ;;
5917    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5918      ac_prev=srcdir ;;
5919    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5920      ;;
5921    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5922      ac_prev=prefix ;;
5923    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5924      ;;
5925    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5926    esac
5927  done
5928
5929  # Always prepend --prefix to ensure using the same prefix
5930  # in subdir configurations.
5931  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
5932
5933  ac_popdir=`pwd`
5934  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
5935
5936    # Do not complain, so a configure script can configure whichever
5937    # parts of a large source tree are present.
5938    test -d $srcdir/$ac_dir || continue
5939
5940    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
5941echo "$as_me: configuring in $ac_dir" >&6;}
5942    { if $as_mkdir_p; then
5943    mkdir -p "$ac_dir"
5944  else
5945    as_dir="$ac_dir"
5946    as_dirs=
5947    while test ! -d "$as_dir"; do
5948      as_dirs="$as_dir $as_dirs"
5949      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5950$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5951         X"$as_dir" : 'X\(//\)[^/]' \| \
5952         X"$as_dir" : 'X\(//\)$' \| \
5953         X"$as_dir" : 'X\(/\)' \| \
5954         .     : '\(.\)' 2>/dev/null ||
5955echo X"$as_dir" |
5956    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5957          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5958          /^X\(\/\/\)$/{ s//\1/; q; }
5959          /^X\(\/\).*/{ s//\1/; q; }
5960          s/.*/./; q'`
5961    done
5962    test ! -n "$as_dirs" || mkdir $as_dirs
5963  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5964echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5965   { (exit 1); exit 1; }; }; }
5966
5967    ac_builddir=.
5968
5969if test "$ac_dir" != .; then
5970  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5971  # A "../" for each directory in $ac_dir_suffix.
5972  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5973else
5974  ac_dir_suffix= ac_top_builddir=
5975fi
5976
5977case $srcdir in
5978  .)  # No --srcdir option.  We are building in place.
5979    ac_srcdir=.
5980    if test -z "$ac_top_builddir"; then
5981       ac_top_srcdir=.
5982    else
5983       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5984    fi ;;
5985  [\\/]* | ?:[\\/]* )  # Absolute path.
5986    ac_srcdir=$srcdir$ac_dir_suffix;
5987    ac_top_srcdir=$srcdir ;;
5988  *) # Relative path.
5989    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5990    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5991esac
5992
5993# Do not use `cd foo && pwd` to compute absolute paths, because
5994# the directories may not exist.
5995case `pwd` in
5996.) ac_abs_builddir="$ac_dir";;
5997*)
5998  case "$ac_dir" in
5999  .) ac_abs_builddir=`pwd`;;
6000  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6001  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6002  esac;;
6003esac
6004case $ac_abs_builddir in
6005.) ac_abs_top_builddir=${ac_top_builddir}.;;
6006*)
6007  case ${ac_top_builddir}. in
6008  .) ac_abs_top_builddir=$ac_abs_builddir;;
6009  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6010  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6011  esac;;
6012esac
6013case $ac_abs_builddir in
6014.) ac_abs_srcdir=$ac_srcdir;;
6015*)
6016  case $ac_srcdir in
6017  .) ac_abs_srcdir=$ac_abs_builddir;;
6018  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6019  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6020  esac;;
6021esac
6022case $ac_abs_builddir in
6023.) ac_abs_top_srcdir=$ac_top_srcdir;;
6024*)
6025  case $ac_top_srcdir in
6026  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6027  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6028  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6029  esac;;
6030esac
6031
6032
6033    cd $ac_dir
6034
6035    # Check for guested configure; otherwise get Cygnus style configure.
6036    if test -f $ac_srcdir/configure.gnu; then
6037      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
6038    elif test -f $ac_srcdir/configure; then
6039      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
6040    elif test -f $ac_srcdir/configure.in; then
6041      ac_sub_configure=$ac_configure
6042    else
6043      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
6044echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6045      ac_sub_configure=
6046    fi
6047
6048    # The recursion is here.
6049    if test -n "$ac_sub_configure"; then
6050      # Make the cache file name correct relative to the subdirectory.
6051      case $cache_file in
6052      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6053      *) # Relative path.
6054        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
6055      esac
6056
6057      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6058echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6059      # The eval makes quoting arguments work.
6060      eval $ac_sub_configure $ac_sub_configure_args \
6061           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
6062        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
6063echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
6064   { (exit 1); exit 1; }; }
6065    fi
6066
6067    cd $ac_popdir
6068  done
6069fi
6070
Note: See TracBrowser for help on using the repository browser.