source: trunk/configure @ 817

Last change on this file since 817 was 719, checked in by dkearney, 17 years ago

adding include directory and adjusting build system's matlab arch variable

  • Property svn:executable set to *
File size: 176.4 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"                   || test ! -s conftest.err'
2068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069  (eval $ac_try) 2>&5
2070  ac_status=$?
2071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072  (exit $ac_status); }; } &&
2073         { ac_try='test -s conftest.$ac_objext'
2074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075  (eval $ac_try) 2>&5
2076  ac_status=$?
2077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078  (exit $ac_status); }; }; then
2079  ac_compiler_gnu=yes
2080else
2081  echo "$as_me: failed program was:" >&5
2082sed 's/^/| /' conftest.$ac_ext >&5
2083
2084ac_compiler_gnu=no
2085fi
2086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2087ac_cv_c_compiler_gnu=$ac_compiler_gnu
2088
2089fi
2090echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2091echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2092GCC=`test $ac_compiler_gnu = yes && echo yes`
2093ac_test_CFLAGS=${CFLAGS+set}
2094ac_save_CFLAGS=$CFLAGS
2095CFLAGS="-g"
2096echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2097echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2098if test "${ac_cv_prog_cc_g+set}" = set; then
2099  echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101  cat >conftest.$ac_ext <<_ACEOF
2102/* confdefs.h.  */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
2106/* end confdefs.h.  */
2107
2108int
2109main ()
2110{
2111
2112  ;
2113  return 0;
2114}
2115_ACEOF
2116rm -f conftest.$ac_objext
2117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118  (eval $ac_compile) 2>conftest.er1
2119  ac_status=$?
2120  grep -v '^ *+' conftest.er1 >conftest.err
2121  rm -f conftest.er1
2122  cat conftest.err >&5
2123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124  (exit $ac_status); } &&
2125         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127  (eval $ac_try) 2>&5
2128  ac_status=$?
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); }; } &&
2131         { ac_try='test -s conftest.$ac_objext'
2132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133  (eval $ac_try) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }; }; then
2137  ac_cv_prog_cc_g=yes
2138else
2139  echo "$as_me: failed program was:" >&5
2140sed 's/^/| /' conftest.$ac_ext >&5
2141
2142ac_cv_prog_cc_g=no
2143fi
2144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2145fi
2146echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2147echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2148if test "$ac_test_CFLAGS" = set; then
2149  CFLAGS=$ac_save_CFLAGS
2150elif test $ac_cv_prog_cc_g = yes; then
2151  if test "$GCC" = yes; then
2152    CFLAGS="-g -O2"
2153  else
2154    CFLAGS="-g"
2155  fi
2156else
2157  if test "$GCC" = yes; then
2158    CFLAGS="-O2"
2159  else
2160    CFLAGS=
2161  fi
2162fi
2163echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2164echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2165if test "${ac_cv_prog_cc_stdc+set}" = set; then
2166  echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
2168  ac_cv_prog_cc_stdc=no
2169ac_save_CC=$CC
2170cat >conftest.$ac_ext <<_ACEOF
2171/* confdefs.h.  */
2172_ACEOF
2173cat confdefs.h >>conftest.$ac_ext
2174cat >>conftest.$ac_ext <<_ACEOF
2175/* end confdefs.h.  */
2176#include <stdarg.h>
2177#include <stdio.h>
2178#include <sys/types.h>
2179#include <sys/stat.h>
2180/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2181struct buf { int x; };
2182FILE * (*rcsopen) (struct buf *, struct stat *, int);
2183static char *e (p, i)
2184     char **p;
2185     int i;
2186{
2187  return p[i];
2188}
2189static char *f (char * (*g) (char **, int), char **p, ...)
2190{
2191  char *s;
2192  va_list v;
2193  va_start (v,p);
2194  s = g (p, va_arg (v,int));
2195  va_end (v);
2196  return s;
2197}
2198
2199/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2200   function prototypes and stuff, but not '\xHH' hex character constants.
2201   These don't provoke an error unfortunately, instead are silently treated
2202   as 'x'.  The following induces an error, until -std1 is added to get
2203   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2204   array size at least.  It's necessary to write '\x00'==0 to get something
2205   that's true only with -std1.  */
2206int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2207
2208int test (int i, double x);
2209struct s1 {int (*f) (int a);};
2210struct s2 {int (*f) (double a);};
2211int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2212int argc;
2213char **argv;
2214int
2215main ()
2216{
2217return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2218  ;
2219  return 0;
2220}
2221_ACEOF
2222# Don't try gcc -ansi; that turns off useful extensions and
2223# breaks some systems' header files.
2224# AIX                   -qlanglvl=ansi
2225# Ultrix and OSF/1      -std1
2226# HP-UX 10.20 and later -Ae
2227# HP-UX older versions  -Aa -D_HPUX_SOURCE
2228# SVR4                  -Xc -D__EXTENSIONS__
2229for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2230do
2231  CC="$ac_save_CC $ac_arg"
2232  rm -f conftest.$ac_objext
2233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234  (eval $ac_compile) 2>conftest.er1
2235  ac_status=$?
2236  grep -v '^ *+' conftest.er1 >conftest.err
2237  rm -f conftest.er1
2238  cat conftest.err >&5
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); } &&
2241         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243  (eval $ac_try) 2>&5
2244  ac_status=$?
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); }; } &&
2247         { ac_try='test -s conftest.$ac_objext'
2248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249  (eval $ac_try) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; }; then
2253  ac_cv_prog_cc_stdc=$ac_arg
2254break
2255else
2256  echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259fi
2260rm -f conftest.err conftest.$ac_objext
2261done
2262rm -f conftest.$ac_ext conftest.$ac_objext
2263CC=$ac_save_CC
2264
2265fi
2266
2267case "x$ac_cv_prog_cc_stdc" in
2268  x|xno)
2269    echo "$as_me:$LINENO: result: none needed" >&5
2270echo "${ECHO_T}none needed" >&6 ;;
2271  *)
2272    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2273echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2274    CC="$CC $ac_cv_prog_cc_stdc" ;;
2275esac
2276
2277# Some people use a C++ compiler to compile C.  Since we use `exit',
2278# in C++ we need to declare it.  In case someone uses the same compiler
2279# for both compiling C and C++ we need to have the C++ compiler decide
2280# the declaration of exit, since it's the most demanding environment.
2281cat >conftest.$ac_ext <<_ACEOF
2282#ifndef __cplusplus
2283  choke me
2284#endif
2285_ACEOF
2286rm -f conftest.$ac_objext
2287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288  (eval $ac_compile) 2>conftest.er1
2289  ac_status=$?
2290  grep -v '^ *+' conftest.er1 >conftest.err
2291  rm -f conftest.er1
2292  cat conftest.err >&5
2293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294  (exit $ac_status); } &&
2295         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297  (eval $ac_try) 2>&5
2298  ac_status=$?
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); }; } &&
2301         { ac_try='test -s conftest.$ac_objext'
2302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303  (eval $ac_try) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }; }; then
2307  for ac_declaration in \
2308   '' \
2309   'extern "C" void std::exit (int) throw (); using std::exit;' \
2310   'extern "C" void std::exit (int); using std::exit;' \
2311   'extern "C" void exit (int) throw ();' \
2312   'extern "C" void exit (int);' \
2313   'void exit (int);'
2314do
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321$ac_declaration
2322#include <stdlib.h>
2323int
2324main ()
2325{
2326exit (42);
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>conftest.er1
2334  ac_status=$?
2335  grep -v '^ *+' conftest.er1 >conftest.err
2336  rm -f conftest.er1
2337  cat conftest.err >&5
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342  (eval $ac_try) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; } &&
2346         { ac_try='test -s conftest.$ac_objext'
2347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348  (eval $ac_try) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; }; then
2352  :
2353else
2354  echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357continue
2358fi
2359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360  cat >conftest.$ac_ext <<_ACEOF
2361/* confdefs.h.  */
2362_ACEOF
2363cat confdefs.h >>conftest.$ac_ext
2364cat >>conftest.$ac_ext <<_ACEOF
2365/* end confdefs.h.  */
2366$ac_declaration
2367int
2368main ()
2369{
2370exit (42);
2371  ;
2372  return 0;
2373}
2374_ACEOF
2375rm -f conftest.$ac_objext
2376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377  (eval $ac_compile) 2>conftest.er1
2378  ac_status=$?
2379  grep -v '^ *+' conftest.er1 >conftest.err
2380  rm -f conftest.er1
2381  cat conftest.err >&5
2382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383  (exit $ac_status); } &&
2384         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386  (eval $ac_try) 2>&5
2387  ac_status=$?
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); }; } &&
2390         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2396  break
2397else
2398  echo "$as_me: failed program was:" >&5
2399sed 's/^/| /' conftest.$ac_ext >&5
2400
2401fi
2402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403done
2404rm -f conftest*
2405if test -n "$ac_declaration"; then
2406  echo '#ifdef __cplusplus' >>confdefs.h
2407  echo $ac_declaration      >>confdefs.h
2408  echo '#endif'             >>confdefs.h
2409fi
2410
2411else
2412  echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415fi
2416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422
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
2429
2430
2431ac_ext=c
2432ac_cpp='$CPP $CPPFLAGS'
2433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2437echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2438# On Suns, sometimes $CPP names a directory.
2439if test -n "$CPP" && test -d "$CPP"; then
2440  CPP=
2441fi
2442if test -z "$CPP"; then
2443  if test "${ac_cv_prog_CPP+set}" = set; then
2444  echo $ECHO_N "(cached) $ECHO_C" >&6
2445else
2446      # Double quotes because CPP needs to be expanded
2447    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2448    do
2449      ac_preproc_ok=false
2450for ac_c_preproc_warn_flag in '' yes
2451do
2452  # Use a header file that comes with gcc, so configuring glibc
2453  # with a fresh cross-compiler works.
2454  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2455  # <limits.h> exists even on freestanding compilers.
2456  # On the NeXT, cc -E runs the code through the compiler's parser,
2457  # not just through cpp. "Syntax error" is here to catch this case.
2458  cat >conftest.$ac_ext <<_ACEOF
2459/* confdefs.h.  */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h.  */
2464#ifdef __STDC__
2465# include <limits.h>
2466#else
2467# include <assert.h>
2468#endif
2469                     Syntax error
2470_ACEOF
2471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2472  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2473  ac_status=$?
2474  grep -v '^ *+' conftest.er1 >conftest.err
2475  rm -f conftest.er1
2476  cat conftest.err >&5
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); } >/dev/null; then
2479  if test -s conftest.err; then
2480    ac_cpp_err=$ac_c_preproc_warn_flag
2481    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2482  else
2483    ac_cpp_err=
2484  fi
2485else
2486  ac_cpp_err=yes
2487fi
2488if test -z "$ac_cpp_err"; then
2489  :
2490else
2491  echo "$as_me: failed program was:" >&5
2492sed 's/^/| /' conftest.$ac_ext >&5
2493
2494  # Broken: fails on valid input.
2495continue
2496fi
2497rm -f conftest.err conftest.$ac_ext
2498
2499  # OK, works on sane cases.  Now check whether non-existent headers
2500  # can be detected and how.
2501  cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h.  */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h.  */
2507#include <ac_nonexistent.h>
2508_ACEOF
2509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2510  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2511  ac_status=$?
2512  grep -v '^ *+' conftest.er1 >conftest.err
2513  rm -f conftest.er1
2514  cat conftest.err >&5
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); } >/dev/null; then
2517  if test -s conftest.err; then
2518    ac_cpp_err=$ac_c_preproc_warn_flag
2519    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2520  else
2521    ac_cpp_err=
2522  fi
2523else
2524  ac_cpp_err=yes
2525fi
2526if test -z "$ac_cpp_err"; then
2527  # Broken: success on invalid input.
2528continue
2529else
2530  echo "$as_me: failed program was:" >&5
2531sed 's/^/| /' conftest.$ac_ext >&5
2532
2533  # Passes both tests.
2534ac_preproc_ok=:
2535break
2536fi
2537rm -f conftest.err conftest.$ac_ext
2538
2539done
2540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2541rm -f conftest.err conftest.$ac_ext
2542if $ac_preproc_ok; then
2543  break
2544fi
2545
2546    done
2547    ac_cv_prog_CPP=$CPP
2548
2549fi
2550  CPP=$ac_cv_prog_CPP
2551else
2552  ac_cv_prog_CPP=$CPP
2553fi
2554echo "$as_me:$LINENO: result: $CPP" >&5
2555echo "${ECHO_T}$CPP" >&6
2556ac_preproc_ok=false
2557for ac_c_preproc_warn_flag in '' yes
2558do
2559  # Use a header file that comes with gcc, so configuring glibc
2560  # with a fresh cross-compiler works.
2561  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562  # <limits.h> exists even on freestanding compilers.
2563  # On the NeXT, cc -E runs the code through the compiler's parser,
2564  # not just through cpp. "Syntax error" is here to catch this case.
2565  cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h.  */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h.  */
2571#ifdef __STDC__
2572# include <limits.h>
2573#else
2574# include <assert.h>
2575#endif
2576                     Syntax error
2577_ACEOF
2578if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2579  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2580  ac_status=$?
2581  grep -v '^ *+' conftest.er1 >conftest.err
2582  rm -f conftest.er1
2583  cat conftest.err >&5
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); } >/dev/null; then
2586  if test -s conftest.err; then
2587    ac_cpp_err=$ac_c_preproc_warn_flag
2588    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2589  else
2590    ac_cpp_err=
2591  fi
2592else
2593  ac_cpp_err=yes
2594fi
2595if test -z "$ac_cpp_err"; then
2596  :
2597else
2598  echo "$as_me: failed program was:" >&5
2599sed 's/^/| /' conftest.$ac_ext >&5
2600
2601  # Broken: fails on valid input.
2602continue
2603fi
2604rm -f conftest.err conftest.$ac_ext
2605
2606  # OK, works on sane cases.  Now check whether non-existent headers
2607  # can be detected and how.
2608  cat >conftest.$ac_ext <<_ACEOF
2609/* confdefs.h.  */
2610_ACEOF
2611cat confdefs.h >>conftest.$ac_ext
2612cat >>conftest.$ac_ext <<_ACEOF
2613/* end confdefs.h.  */
2614#include <ac_nonexistent.h>
2615_ACEOF
2616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2617  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2618  ac_status=$?
2619  grep -v '^ *+' conftest.er1 >conftest.err
2620  rm -f conftest.er1
2621  cat conftest.err >&5
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); } >/dev/null; then
2624  if test -s conftest.err; then
2625    ac_cpp_err=$ac_c_preproc_warn_flag
2626    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2627  else
2628    ac_cpp_err=
2629  fi
2630else
2631  ac_cpp_err=yes
2632fi
2633if test -z "$ac_cpp_err"; then
2634  # Broken: success on invalid input.
2635continue
2636else
2637  echo "$as_me: failed program was:" >&5
2638sed 's/^/| /' conftest.$ac_ext >&5
2639
2640  # Passes both tests.
2641ac_preproc_ok=:
2642break
2643fi
2644rm -f conftest.err conftest.$ac_ext
2645
2646done
2647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2648rm -f conftest.err conftest.$ac_ext
2649if $ac_preproc_ok; then
2650  :
2651else
2652  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2653See \`config.log' for more details." >&5
2654echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2655See \`config.log' for more details." >&2;}
2656   { (exit 1); exit 1; }; }
2657fi
2658
2659ac_ext=c
2660ac_cpp='$CPP $CPPFLAGS'
2661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664
2665
2666echo "$as_me:$LINENO: checking for egrep" >&5
2667echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2668if test "${ac_cv_prog_egrep+set}" = set; then
2669  echo $ECHO_N "(cached) $ECHO_C" >&6
2670else
2671  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2672    then ac_cv_prog_egrep='grep -E'
2673    else ac_cv_prog_egrep='egrep'
2674    fi
2675fi
2676echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2677echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2678 EGREP=$ac_cv_prog_egrep
2679
2680
2681echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2682echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2683if test "${ac_cv_header_stdc+set}" = set; then
2684  echo $ECHO_N "(cached) $ECHO_C" >&6
2685else
2686  cat >conftest.$ac_ext <<_ACEOF
2687/* confdefs.h.  */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h.  */
2692#include <stdlib.h>
2693#include <stdarg.h>
2694#include <string.h>
2695#include <float.h>
2696
2697int
2698main ()
2699{
2700
2701  ;
2702  return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext
2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707  (eval $ac_compile) 2>conftest.er1
2708  ac_status=$?
2709  grep -v '^ *+' conftest.er1 >conftest.err
2710  rm -f conftest.er1
2711  cat conftest.err >&5
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); } &&
2714         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716  (eval $ac_try) 2>&5
2717  ac_status=$?
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); }; } &&
2720         { ac_try='test -s conftest.$ac_objext'
2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722  (eval $ac_try) 2>&5
2723  ac_status=$?
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); }; }; then
2726  ac_cv_header_stdc=yes
2727else
2728  echo "$as_me: failed program was:" >&5
2729sed 's/^/| /' conftest.$ac_ext >&5
2730
2731ac_cv_header_stdc=no
2732fi
2733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734
2735if test $ac_cv_header_stdc = yes; then
2736  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2737  cat >conftest.$ac_ext <<_ACEOF
2738/* confdefs.h.  */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h.  */
2743#include <string.h>
2744
2745_ACEOF
2746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2747  $EGREP "memchr" >/dev/null 2>&1; then
2748  :
2749else
2750  ac_cv_header_stdc=no
2751fi
2752rm -f conftest*
2753
2754fi
2755
2756if test $ac_cv_header_stdc = yes; then
2757  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2758  cat >conftest.$ac_ext <<_ACEOF
2759/* confdefs.h.  */
2760_ACEOF
2761cat confdefs.h >>conftest.$ac_ext
2762cat >>conftest.$ac_ext <<_ACEOF
2763/* end confdefs.h.  */
2764#include <stdlib.h>
2765
2766_ACEOF
2767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2768  $EGREP "free" >/dev/null 2>&1; then
2769  :
2770else
2771  ac_cv_header_stdc=no
2772fi
2773rm -f conftest*
2774
2775fi
2776
2777if test $ac_cv_header_stdc = yes; then
2778  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2779  if test "$cross_compiling" = yes; then
2780  :
2781else
2782  cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h.  */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h.  */
2788#include <ctype.h>
2789#if ((' ' & 0x0FF) == 0x020)
2790# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2791# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2792#else
2793# define ISLOWER(c) \
2794                   (('a' <= (c) && (c) <= 'i') \
2795                     || ('j' <= (c) && (c) <= 'r') \
2796                     || ('s' <= (c) && (c) <= 'z'))
2797# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2798#endif
2799
2800#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2801int
2802main ()
2803{
2804  int i;
2805  for (i = 0; i < 256; i++)
2806    if (XOR (islower (i), ISLOWER (i))
2807        || toupper (i) != TOUPPER (i))
2808      exit(2);
2809  exit (0);
2810}
2811_ACEOF
2812rm -f conftest$ac_exeext
2813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2814  (eval $ac_link) 2>&5
2815  ac_status=$?
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819  (eval $ac_try) 2>&5
2820  ac_status=$?
2821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822  (exit $ac_status); }; }; then
2823  :
2824else
2825  echo "$as_me: program exited with status $ac_status" >&5
2826echo "$as_me: failed program was:" >&5
2827sed 's/^/| /' conftest.$ac_ext >&5
2828
2829( exit $ac_status )
2830ac_cv_header_stdc=no
2831fi
2832rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2833fi
2834fi
2835fi
2836echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2837echo "${ECHO_T}$ac_cv_header_stdc" >&6
2838if test $ac_cv_header_stdc = yes; then
2839
2840cat >>confdefs.h <<\_ACEOF
2841#define STDC_HEADERS 1
2842_ACEOF
2843
2844fi
2845
2846echo "$as_me:$LINENO: checking for atol" >&5
2847echo $ECHO_N "checking for atol... $ECHO_C" >&6
2848if test "${ac_cv_func_atol+set}" = set; then
2849  echo $ECHO_N "(cached) $ECHO_C" >&6
2850else
2851  cat >conftest.$ac_ext <<_ACEOF
2852/* confdefs.h.  */
2853_ACEOF
2854cat confdefs.h >>conftest.$ac_ext
2855cat >>conftest.$ac_ext <<_ACEOF
2856/* end confdefs.h.  */
2857/* Define atol to an innocuous variant, in case <limits.h> declares atol.
2858   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2859#define atol innocuous_atol
2860
2861/* System header to define __stub macros and hopefully few prototypes,
2862    which can conflict with char atol (); below.
2863    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2864    <limits.h> exists even on freestanding compilers.  */
2865
2866#ifdef __STDC__
2867# include <limits.h>
2868#else
2869# include <assert.h>
2870#endif
2871
2872#undef atol
2873
2874/* Override any gcc2 internal prototype to avoid an error.  */
2875#ifdef __cplusplus
2876extern "C"
2877{
2878#endif
2879/* We use char because int might match the return type of a gcc2
2880   builtin and then its argument prototype would still apply.  */
2881char atol ();
2882/* The GNU C library defines this for functions which it implements
2883    to always fail with ENOSYS.  Some functions are actually named
2884    something starting with __ and the normal name is an alias.  */
2885#if defined (__stub_atol) || defined (__stub___atol)
2886choke me
2887#else
2888char (*f) () = atol;
2889#endif
2890#ifdef __cplusplus
2891}
2892#endif
2893
2894int
2895main ()
2896{
2897return f != atol;
2898  ;
2899  return 0;
2900}
2901_ACEOF
2902rm -f conftest.$ac_objext conftest$ac_exeext
2903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2904  (eval $ac_link) 2>conftest.er1
2905  ac_status=$?
2906  grep -v '^ *+' conftest.er1 >conftest.err
2907  rm -f conftest.er1
2908  cat conftest.err >&5
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); } &&
2911         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913  (eval $ac_try) 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }; } &&
2917         { ac_try='test -s conftest$ac_exeext'
2918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919  (eval $ac_try) 2>&5
2920  ac_status=$?
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); }; }; then
2923  ac_cv_func_atol=yes
2924else
2925  echo "$as_me: failed program was:" >&5
2926sed 's/^/| /' conftest.$ac_ext >&5
2927
2928ac_cv_func_atol=no
2929fi
2930rm -f conftest.err conftest.$ac_objext \
2931      conftest$ac_exeext conftest.$ac_ext
2932fi
2933echo "$as_me:$LINENO: result: $ac_cv_func_atol" >&5
2934echo "${ECHO_T}$ac_cv_func_atol" >&6
2935if test $ac_cv_func_atol = yes; then
2936  :
2937else
2938  { { echo "$as_me:$LINENO: error: oops! no atol ?!?" >&5
2939echo "$as_me: error: oops! no atol ?!?" >&2;}
2940   { (exit 1); exit 1; }; }
2941fi
2942
2943
2944ac_ext=cc
2945ac_cpp='$CXXCPP $CPPFLAGS'
2946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2949if test -n "$ac_tool_prefix"; then
2950  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2951  do
2952    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2953set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2954echo "$as_me:$LINENO: checking for $ac_word" >&5
2955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2956if test "${ac_cv_prog_CXX+set}" = set; then
2957  echo $ECHO_N "(cached) $ECHO_C" >&6
2958else
2959  if test -n "$CXX"; then
2960  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2961else
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965  IFS=$as_save_IFS
2966  test -z "$as_dir" && as_dir=.
2967  for ac_exec_ext in '' $ac_executable_extensions; do
2968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2971    break 2
2972  fi
2973done
2974done
2975
2976fi
2977fi
2978CXX=$ac_cv_prog_CXX
2979if test -n "$CXX"; then
2980  echo "$as_me:$LINENO: result: $CXX" >&5
2981echo "${ECHO_T}$CXX" >&6
2982else
2983  echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6
2985fi
2986
2987    test -n "$CXX" && break
2988  done
2989fi
2990if test -z "$CXX"; then
2991  ac_ct_CXX=$CXX
2992  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2993do
2994  # Extract the first word of "$ac_prog", so it can be a program name with args.
2995set dummy $ac_prog; ac_word=$2
2996echo "$as_me:$LINENO: checking for $ac_word" >&5
2997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2999  echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001  if test -n "$ac_ct_CXX"; then
3002  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007  IFS=$as_save_IFS
3008  test -z "$as_dir" && as_dir=.
3009  for ac_exec_ext in '' $ac_executable_extensions; do
3010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011    ac_cv_prog_ac_ct_CXX="$ac_prog"
3012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013    break 2
3014  fi
3015done
3016done
3017
3018fi
3019fi
3020ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3021if test -n "$ac_ct_CXX"; then
3022  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3023echo "${ECHO_T}$ac_ct_CXX" >&6
3024else
3025  echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
3027fi
3028
3029  test -n "$ac_ct_CXX" && break
3030done
3031test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3032
3033  CXX=$ac_ct_CXX
3034fi
3035
3036
3037# Provide some information about the compiler.
3038echo "$as_me:$LINENO:" \
3039     "checking for C++ compiler version" >&5
3040ac_compiler=`set X $ac_compile; echo $2`
3041{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3042  (eval $ac_compiler --version </dev/null >&5) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }
3046{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3047  (eval $ac_compiler -v </dev/null >&5) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }
3051{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3052  (eval $ac_compiler -V </dev/null >&5) 2>&5
3053  ac_status=$?
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); }
3056
3057echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3058echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3059if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3060  echo $ECHO_N "(cached) $ECHO_C" >&6
3061else
3062  cat >conftest.$ac_ext <<_ACEOF
3063/* confdefs.h.  */
3064_ACEOF
3065cat confdefs.h >>conftest.$ac_ext
3066cat >>conftest.$ac_ext <<_ACEOF
3067/* end confdefs.h.  */
3068
3069int
3070main ()
3071{
3072#ifndef __GNUC__
3073       choke me
3074#endif
3075
3076  ;
3077  return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext
3081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3082  (eval $ac_compile) 2>conftest.er1
3083  ac_status=$?
3084  grep -v '^ *+' conftest.er1 >conftest.err
3085  rm -f conftest.er1
3086  cat conftest.err >&5
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); } &&
3089         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091  (eval $ac_try) 2>&5
3092  ac_status=$?
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); }; } &&
3095         { ac_try='test -s conftest.$ac_objext'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; }; then
3101  ac_compiler_gnu=yes
3102else
3103  echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106ac_compiler_gnu=no
3107fi
3108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3109ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3110
3111fi
3112echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3113echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3114GXX=`test $ac_compiler_gnu = yes && echo yes`
3115ac_test_CXXFLAGS=${CXXFLAGS+set}
3116ac_save_CXXFLAGS=$CXXFLAGS
3117CXXFLAGS="-g"
3118echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3119echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3120if test "${ac_cv_prog_cxx_g+set}" = set; then
3121  echo $ECHO_N "(cached) $ECHO_C" >&6
3122else
3123  cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h.  */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h.  */
3129
3130int
3131main ()
3132{
3133
3134  ;
3135  return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext
3139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140  (eval $ac_compile) 2>conftest.er1
3141  ac_status=$?
3142  grep -v '^ *+' conftest.er1 >conftest.err
3143  rm -f conftest.er1
3144  cat conftest.err >&5
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); } &&
3147         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149  (eval $ac_try) 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); }; } &&
3153         { ac_try='test -s conftest.$ac_objext'
3154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155  (eval $ac_try) 2>&5
3156  ac_status=$?
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); }; }; then
3159  ac_cv_prog_cxx_g=yes
3160else
3161  echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164ac_cv_prog_cxx_g=no
3165fi
3166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3167fi
3168echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3169echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3170if test "$ac_test_CXXFLAGS" = set; then
3171  CXXFLAGS=$ac_save_CXXFLAGS
3172elif test $ac_cv_prog_cxx_g = yes; then
3173  if test "$GXX" = yes; then
3174    CXXFLAGS="-g -O2"
3175  else
3176    CXXFLAGS="-g"
3177  fi
3178else
3179  if test "$GXX" = yes; then
3180    CXXFLAGS="-O2"
3181  else
3182    CXXFLAGS=
3183  fi
3184fi
3185for ac_declaration in \
3186   '' \
3187   'extern "C" void std::exit (int) throw (); using std::exit;' \
3188   'extern "C" void std::exit (int); using std::exit;' \
3189   'extern "C" void exit (int) throw ();' \
3190   'extern "C" void exit (int);' \
3191   'void exit (int);'
3192do
3193  cat >conftest.$ac_ext <<_ACEOF
3194/* confdefs.h.  */
3195_ACEOF
3196cat confdefs.h >>conftest.$ac_ext
3197cat >>conftest.$ac_ext <<_ACEOF
3198/* end confdefs.h.  */
3199$ac_declaration
3200#include <stdlib.h>
3201int
3202main ()
3203{
3204exit (42);
3205  ;
3206  return 0;
3207}
3208_ACEOF
3209rm -f conftest.$ac_objext
3210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211  (eval $ac_compile) 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } &&
3218         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220  (eval $ac_try) 2>&5
3221  ac_status=$?
3222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223  (exit $ac_status); }; } &&
3224         { ac_try='test -s conftest.$ac_objext'
3225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226  (eval $ac_try) 2>&5
3227  ac_status=$?
3228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229  (exit $ac_status); }; }; then
3230  :
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235continue
3236fi
3237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3238  cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h.  */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h.  */
3244$ac_declaration
3245int
3246main ()
3247{
3248exit (42);
3249  ;
3250  return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255  (eval $ac_compile) 2>conftest.er1
3256  ac_status=$?
3257  grep -v '^ *+' conftest.er1 >conftest.err
3258  rm -f conftest.er1
3259  cat conftest.err >&5
3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); } &&
3262         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264  (eval $ac_try) 2>&5
3265  ac_status=$?
3266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267  (exit $ac_status); }; } &&
3268         { ac_try='test -s conftest.$ac_objext'
3269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270  (eval $ac_try) 2>&5
3271  ac_status=$?
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); }; }; then
3274  break
3275else
3276  echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
3279fi
3280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3281done
3282rm -f conftest*
3283if test -n "$ac_declaration"; then
3284  echo '#ifdef __cplusplus' >>confdefs.h
3285  echo $ac_declaration      >>confdefs.h
3286  echo '#endif'             >>confdefs.h
3287fi
3288
3289ac_ext=c
3290ac_cpp='$CPP $CPPFLAGS'
3291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295ac_ext=cc
3296ac_cpp='$CXXCPP $CPPFLAGS'
3297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3300
3301
3302
3303
3304echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
3305echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
3306if test "${ac_cv_lib_stdcpp_main+set}" = set; then
3307  echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
3309  ac_check_lib_save_LIBS=$LIBS
3310LIBS="-lstdc++  $LIBS"
3311cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h.  */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h.  */
3317
3318
3319int
3320main ()
3321{
3322main ();
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327rm -f conftest.$ac_objext conftest$ac_exeext
3328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3329  (eval $ac_link) 2>conftest.er1
3330  ac_status=$?
3331  grep -v '^ *+' conftest.er1 >conftest.err
3332  rm -f conftest.er1
3333  cat conftest.err >&5
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); } &&
3336         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338  (eval $ac_try) 2>&5
3339  ac_status=$?
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }; } &&
3342         { ac_try='test -s conftest$ac_exeext'
3343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344  (eval $ac_try) 2>&5
3345  ac_status=$?
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); }; }; then
3348  ac_cv_lib_stdcpp_main=yes
3349else
3350  echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353ac_cv_lib_stdcpp_main=no
3354fi
3355rm -f conftest.err conftest.$ac_objext \
3356      conftest$ac_exeext conftest.$ac_ext
3357LIBS=$ac_check_lib_save_LIBS
3358fi
3359echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
3360echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
3361if test $ac_cv_lib_stdcpp_main = yes; then
3362  cat >>confdefs.h <<_ACEOF
3363#define HAVE_LIBSTDC__ 1
3364_ACEOF
3365
3366  LIBS="-lstdc++ $LIBS"
3367
3368else
3369  { { echo "$as_me:$LINENO: error: librappture requires libstdc++" >&5
3370echo "$as_me: error: librappture requires libstdc++" >&2;}
3371   { (exit 1); exit 1; }; }
3372fi
3373
3374# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3385                  inttypes.h stdint.h unistd.h
3386do
3387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3388echo "$as_me:$LINENO: checking for $ac_header" >&5
3389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3390if eval "test \"\${$as_ac_Header+set}\" = set"; then
3391  echo $ECHO_N "(cached) $ECHO_C" >&6
3392else
3393  cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h.  */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h.  */
3399$ac_includes_default
3400
3401#include <$ac_header>
3402_ACEOF
3403rm -f conftest.$ac_objext
3404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405  (eval $ac_compile) 2>conftest.er1
3406  ac_status=$?
3407  grep -v '^ *+' conftest.er1 >conftest.err
3408  rm -f conftest.er1
3409  cat conftest.err >&5
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); } &&
3412         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414  (eval $ac_try) 2>&5
3415  ac_status=$?
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); }; } &&
3418         { ac_try='test -s conftest.$ac_objext'
3419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420  (eval $ac_try) 2>&5
3421  ac_status=$?
3422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423  (exit $ac_status); }; }; then
3424  eval "$as_ac_Header=yes"
3425else
3426  echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
3429eval "$as_ac_Header=no"
3430fi
3431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3432fi
3433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3435if test `eval echo '${'$as_ac_Header'}'` = yes; then
3436  cat >>confdefs.h <<_ACEOF
3437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3438_ACEOF
3439
3440fi
3441
3442done
3443
3444
3445ac_ext=cc
3446ac_cpp='$CXXCPP $CPPFLAGS'
3447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3450echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3451echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3452if test -z "$CXXCPP"; then
3453  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456      # Double quotes because CXXCPP needs to be expanded
3457    for CXXCPP in "$CXX -E" "/lib/cpp"
3458    do
3459      ac_preproc_ok=false
3460for ac_cxx_preproc_warn_flag in '' yes
3461do
3462  # Use a header file that comes with gcc, so configuring glibc
3463  # with a fresh cross-compiler works.
3464  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3465  # <limits.h> exists even on freestanding compilers.
3466  # On the NeXT, cc -E runs the code through the compiler's parser,
3467  # not just through cpp. "Syntax error" is here to catch this case.
3468  cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h.  */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
3473/* end confdefs.h.  */
3474#ifdef __STDC__
3475# include <limits.h>
3476#else
3477# include <assert.h>
3478#endif
3479                     Syntax error
3480_ACEOF
3481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3482  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3483  ac_status=$?
3484  grep -v '^ *+' conftest.er1 >conftest.err
3485  rm -f conftest.er1
3486  cat conftest.err >&5
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); } >/dev/null; then
3489  if test -s conftest.err; then
3490    ac_cpp_err=$ac_cxx_preproc_warn_flag
3491    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3492  else
3493    ac_cpp_err=
3494  fi
3495else
3496  ac_cpp_err=yes
3497fi
3498if test -z "$ac_cpp_err"; then
3499  :
3500else
3501  echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504  # Broken: fails on valid input.
3505continue
3506fi
3507rm -f conftest.err conftest.$ac_ext
3508
3509  # OK, works on sane cases.  Now check whether non-existent headers
3510  # can be detected and how.
3511  cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h.  */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h.  */
3517#include <ac_nonexistent.h>
3518_ACEOF
3519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3520  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3521  ac_status=$?
3522  grep -v '^ *+' conftest.er1 >conftest.err
3523  rm -f conftest.er1
3524  cat conftest.err >&5
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); } >/dev/null; then
3527  if test -s conftest.err; then
3528    ac_cpp_err=$ac_cxx_preproc_warn_flag
3529    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3530  else
3531    ac_cpp_err=
3532  fi
3533else
3534  ac_cpp_err=yes
3535fi
3536if test -z "$ac_cpp_err"; then
3537  # Broken: success on invalid input.
3538continue
3539else
3540  echo "$as_me: failed program was:" >&5
3541sed 's/^/| /' conftest.$ac_ext >&5
3542
3543  # Passes both tests.
3544ac_preproc_ok=:
3545break
3546fi
3547rm -f conftest.err conftest.$ac_ext
3548
3549done
3550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551rm -f conftest.err conftest.$ac_ext
3552if $ac_preproc_ok; then
3553  break
3554fi
3555
3556    done
3557    ac_cv_prog_CXXCPP=$CXXCPP
3558
3559fi
3560  CXXCPP=$ac_cv_prog_CXXCPP
3561else
3562  ac_cv_prog_CXXCPP=$CXXCPP
3563fi
3564echo "$as_me:$LINENO: result: $CXXCPP" >&5
3565echo "${ECHO_T}$CXXCPP" >&6
3566ac_preproc_ok=false
3567for ac_cxx_preproc_warn_flag in '' yes
3568do
3569  # Use a header file that comes with gcc, so configuring glibc
3570  # with a fresh cross-compiler works.
3571  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3572  # <limits.h> exists even on freestanding compilers.
3573  # On the NeXT, cc -E runs the code through the compiler's parser,
3574  # not just through cpp. "Syntax error" is here to catch this case.
3575  cat >conftest.$ac_ext <<_ACEOF
3576/* confdefs.h.  */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h.  */
3581#ifdef __STDC__
3582# include <limits.h>
3583#else
3584# include <assert.h>
3585#endif
3586                     Syntax error
3587_ACEOF
3588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3589  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3590  ac_status=$?
3591  grep -v '^ *+' conftest.er1 >conftest.err
3592  rm -f conftest.er1
3593  cat conftest.err >&5
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); } >/dev/null; then
3596  if test -s conftest.err; then
3597    ac_cpp_err=$ac_cxx_preproc_warn_flag
3598    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3599  else
3600    ac_cpp_err=
3601  fi
3602else
3603  ac_cpp_err=yes
3604fi
3605if test -z "$ac_cpp_err"; then
3606  :
3607else
3608  echo "$as_me: failed program was:" >&5
3609sed 's/^/| /' conftest.$ac_ext >&5
3610
3611  # Broken: fails on valid input.
3612continue
3613fi
3614rm -f conftest.err conftest.$ac_ext
3615
3616  # OK, works on sane cases.  Now check whether non-existent headers
3617  # can be detected and how.
3618  cat >conftest.$ac_ext <<_ACEOF
3619/* confdefs.h.  */
3620_ACEOF
3621cat confdefs.h >>conftest.$ac_ext
3622cat >>conftest.$ac_ext <<_ACEOF
3623/* end confdefs.h.  */
3624#include <ac_nonexistent.h>
3625_ACEOF
3626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3627  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3628  ac_status=$?
3629  grep -v '^ *+' conftest.er1 >conftest.err
3630  rm -f conftest.er1
3631  cat conftest.err >&5
3632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633  (exit $ac_status); } >/dev/null; then
3634  if test -s conftest.err; then
3635    ac_cpp_err=$ac_cxx_preproc_warn_flag
3636    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3637  else
3638    ac_cpp_err=
3639  fi
3640else
3641  ac_cpp_err=yes
3642fi
3643if test -z "$ac_cpp_err"; then
3644  # Broken: success on invalid input.
3645continue
3646else
3647  echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650  # Passes both tests.
3651ac_preproc_ok=:
3652break
3653fi
3654rm -f conftest.err conftest.$ac_ext
3655
3656done
3657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658rm -f conftest.err conftest.$ac_ext
3659if $ac_preproc_ok; then
3660  :
3661else
3662  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3663See \`config.log' for more details." >&5
3664echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3665See \`config.log' for more details." >&2;}
3666   { (exit 1); exit 1; }; }
3667fi
3668
3669ac_ext=cc
3670ac_cpp='$CXXCPP $CPPFLAGS'
3671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3674
3675
3676
3677for ac_header in stack
3678do
3679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3680if eval "test \"\${$as_ac_Header+set}\" = set"; then
3681  echo "$as_me:$LINENO: checking for $ac_header" >&5
3682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3683if eval "test \"\${$as_ac_Header+set}\" = set"; then
3684  echo $ECHO_N "(cached) $ECHO_C" >&6
3685fi
3686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3688else
3689  # Is the header compilable?
3690echo "$as_me:$LINENO: checking $ac_header usability" >&5
3691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3692cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h.  */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h.  */
3698$ac_includes_default
3699#include <$ac_header>
3700_ACEOF
3701rm -f conftest.$ac_objext
3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703  (eval $ac_compile) 2>conftest.er1
3704  ac_status=$?
3705  grep -v '^ *+' conftest.er1 >conftest.err
3706  rm -f conftest.er1
3707  cat conftest.err >&5
3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); } &&
3710         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712  (eval $ac_try) 2>&5
3713  ac_status=$?
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); }; } &&
3716         { ac_try='test -s conftest.$ac_objext'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; }; then
3722  ac_header_compiler=yes
3723else
3724  echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727ac_header_compiler=no
3728fi
3729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3731echo "${ECHO_T}$ac_header_compiler" >&6
3732
3733# Is the header present?
3734echo "$as_me:$LINENO: checking $ac_header presence" >&5
3735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3736cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h.  */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h.  */
3742#include <$ac_header>
3743_ACEOF
3744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3745  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3746  ac_status=$?
3747  grep -v '^ *+' conftest.er1 >conftest.err
3748  rm -f conftest.er1
3749  cat conftest.err >&5
3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751  (exit $ac_status); } >/dev/null; then
3752  if test -s conftest.err; then
3753    ac_cpp_err=$ac_cxx_preproc_warn_flag
3754    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3755  else
3756    ac_cpp_err=
3757  fi
3758else
3759  ac_cpp_err=yes
3760fi
3761if test -z "$ac_cpp_err"; then
3762  ac_header_preproc=yes
3763else
3764  echo "$as_me: failed program was:" >&5
3765sed 's/^/| /' conftest.$ac_ext >&5
3766
3767  ac_header_preproc=no
3768fi
3769rm -f conftest.err conftest.$ac_ext
3770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3771echo "${ECHO_T}$ac_header_preproc" >&6
3772
3773# So?  What about this header?
3774case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3775  yes:no: )
3776    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3778    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3780    ac_header_preproc=yes
3781    ;;
3782  no:yes:* )
3783    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3785    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3786echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3787    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3789    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3790echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3791    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3793    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3795    (
3796      cat <<\_ASBOX
3797## ----------------------------------- ##
3798## Report this to rappture@nanohub.org ##
3799## ----------------------------------- ##
3800_ASBOX
3801    ) |
3802      sed "s/^/$as_me: WARNING:     /" >&2
3803    ;;
3804esac
3805echo "$as_me:$LINENO: checking for $ac_header" >&5
3806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3807if eval "test \"\${$as_ac_Header+set}\" = set"; then
3808  echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810  eval "$as_ac_Header=\$ac_header_preproc"
3811fi
3812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3814
3815fi
3816if test `eval echo '${'$as_ac_Header'}'` = yes; then
3817  cat >>confdefs.h <<_ACEOF
3818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3819_ACEOF
3820
3821else
3822  { echo "$as_me:$LINENO: WARNING: STL classes missing ?" >&5
3823echo "$as_me: WARNING: STL classes missing ?" >&2;}
3824fi
3825
3826done
3827
3828
3829for ac_header in string
3830do
3831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3832if eval "test \"\${$as_ac_Header+set}\" = set"; then
3833  echo "$as_me:$LINENO: checking for $ac_header" >&5
3834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3835if eval "test \"\${$as_ac_Header+set}\" = set"; then
3836  echo $ECHO_N "(cached) $ECHO_C" >&6
3837fi
3838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3840else
3841  # Is the header compilable?
3842echo "$as_me:$LINENO: checking $ac_header usability" >&5
3843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3844cat >conftest.$ac_ext <<_ACEOF
3845/* confdefs.h.  */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
3849/* end confdefs.h.  */
3850$ac_includes_default
3851#include <$ac_header>
3852_ACEOF
3853rm -f conftest.$ac_objext
3854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855  (eval $ac_compile) 2>conftest.er1
3856  ac_status=$?
3857  grep -v '^ *+' conftest.er1 >conftest.err
3858  rm -f conftest.er1
3859  cat conftest.err >&5
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); } &&
3862         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864  (eval $ac_try) 2>&5
3865  ac_status=$?
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); }; } &&
3868         { ac_try='test -s conftest.$ac_objext'
3869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870  (eval $ac_try) 2>&5
3871  ac_status=$?
3872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873  (exit $ac_status); }; }; then
3874  ac_header_compiler=yes
3875else
3876  echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879ac_header_compiler=no
3880fi
3881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3882echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3883echo "${ECHO_T}$ac_header_compiler" >&6
3884
3885# Is the header present?
3886echo "$as_me:$LINENO: checking $ac_header presence" >&5
3887echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3888cat >conftest.$ac_ext <<_ACEOF
3889/* confdefs.h.  */
3890_ACEOF
3891cat confdefs.h >>conftest.$ac_ext
3892cat >>conftest.$ac_ext <<_ACEOF
3893/* end confdefs.h.  */
3894#include <$ac_header>
3895_ACEOF
3896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3897  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3898  ac_status=$?
3899  grep -v '^ *+' conftest.er1 >conftest.err
3900  rm -f conftest.er1
3901  cat conftest.err >&5
3902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903  (exit $ac_status); } >/dev/null; then
3904  if test -s conftest.err; then
3905    ac_cpp_err=$ac_cxx_preproc_warn_flag
3906    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3907  else
3908    ac_cpp_err=
3909  fi
3910else
3911  ac_cpp_err=yes
3912fi
3913if test -z "$ac_cpp_err"; then
3914  ac_header_preproc=yes
3915else
3916  echo "$as_me: failed program was:" >&5
3917sed 's/^/| /' conftest.$ac_ext >&5
3918
3919  ac_header_preproc=no
3920fi
3921rm -f conftest.err conftest.$ac_ext
3922echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3923echo "${ECHO_T}$ac_header_preproc" >&6
3924
3925# So?  What about this header?
3926case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
3927  yes:no: )
3928    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3929echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3930    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3931echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3932    ac_header_preproc=yes
3933    ;;
3934  no:yes:* )
3935    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3936echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3937    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3938echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3939    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3940echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3941    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3942echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3943    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3944echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3945    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3946echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3947    (
3948      cat <<\_ASBOX
3949## ----------------------------------- ##
3950## Report this to rappture@nanohub.org ##
3951## ----------------------------------- ##
3952_ASBOX
3953    ) |
3954      sed "s/^/$as_me: WARNING:     /" >&2
3955    ;;
3956esac
3957echo "$as_me:$LINENO: checking for $ac_header" >&5
3958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3959if eval "test \"\${$as_ac_Header+set}\" = set"; then
3960  echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962  eval "$as_ac_Header=\$ac_header_preproc"
3963fi
3964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3966
3967fi
3968if test `eval echo '${'$as_ac_Header'}'` = yes; then
3969  cat >>confdefs.h <<_ACEOF
3970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3971_ACEOF
3972
3973else
3974  { echo "$as_me:$LINENO: WARNING: STL classes missing ?" >&5
3975echo "$as_me: WARNING: STL classes missing ?" >&2;}
3976fi
3977
3978done
3979
3980
3981for ac_header in list
3982do
3983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3984if eval "test \"\${$as_ac_Header+set}\" = set"; then
3985  echo "$as_me:$LINENO: checking for $ac_header" >&5
3986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3987if eval "test \"\${$as_ac_Header+set}\" = set"; then
3988  echo $ECHO_N "(cached) $ECHO_C" >&6
3989fi
3990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3992else
3993  # Is the header compilable?
3994echo "$as_me:$LINENO: checking $ac_header usability" >&5
3995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3996cat >conftest.$ac_ext <<_ACEOF
3997/* confdefs.h.  */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h.  */
4002$ac_includes_default
4003#include <$ac_header>
4004_ACEOF
4005rm -f conftest.$ac_objext
4006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4007  (eval $ac_compile) 2>conftest.er1
4008  ac_status=$?
4009  grep -v '^ *+' conftest.er1 >conftest.err
4010  rm -f conftest.er1
4011  cat conftest.err >&5
4012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013  (exit $ac_status); } &&
4014         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016  (eval $ac_try) 2>&5
4017  ac_status=$?
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); }; } &&
4020         { ac_try='test -s conftest.$ac_objext'
4021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022  (eval $ac_try) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; }; then
4026  ac_header_compiler=yes
4027else
4028  echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031ac_header_compiler=no
4032fi
4033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4035echo "${ECHO_T}$ac_header_compiler" >&6
4036
4037# Is the header present?
4038echo "$as_me:$LINENO: checking $ac_header presence" >&5
4039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4040cat >conftest.$ac_ext <<_ACEOF
4041/* confdefs.h.  */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h.  */
4046#include <$ac_header>
4047_ACEOF
4048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4049  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050  ac_status=$?
4051  grep -v '^ *+' conftest.er1 >conftest.err
4052  rm -f conftest.er1
4053  cat conftest.err >&5
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); } >/dev/null; then
4056  if test -s conftest.err; then
4057    ac_cpp_err=$ac_cxx_preproc_warn_flag
4058    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4059  else
4060    ac_cpp_err=
4061  fi
4062else
4063  ac_cpp_err=yes
4064fi
4065if test -z "$ac_cpp_err"; then
4066  ac_header_preproc=yes
4067else
4068  echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071  ac_header_preproc=no
4072fi
4073rm -f conftest.err conftest.$ac_ext
4074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4075echo "${ECHO_T}$ac_header_preproc" >&6
4076
4077# So?  What about this header?
4078case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4079  yes:no: )
4080    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4082    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4084    ac_header_preproc=yes
4085    ;;
4086  no:yes:* )
4087    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4089    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4090echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4091    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4093    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4094echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4095    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4097    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4099    (
4100      cat <<\_ASBOX
4101## ----------------------------------- ##
4102## Report this to rappture@nanohub.org ##
4103## ----------------------------------- ##
4104_ASBOX
4105    ) |
4106      sed "s/^/$as_me: WARNING:     /" >&2
4107    ;;
4108esac
4109echo "$as_me:$LINENO: checking for $ac_header" >&5
4110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4111if eval "test \"\${$as_ac_Header+set}\" = set"; then
4112  echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114  eval "$as_ac_Header=\$ac_header_preproc"
4115fi
4116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4118
4119fi
4120if test `eval echo '${'$as_ac_Header'}'` = yes; then
4121  cat >>confdefs.h <<_ACEOF
4122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4123_ACEOF
4124
4125else
4126  { echo "$as_me:$LINENO: WARNING: STL classes missing ?" >&5
4127echo "$as_me: WARNING: STL classes missing ?" >&2;}
4128fi
4129
4130done
4131
4132
4133for ac_header in vector
4134do
4135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4136if eval "test \"\${$as_ac_Header+set}\" = set"; then
4137  echo "$as_me:$LINENO: checking for $ac_header" >&5
4138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4139if eval "test \"\${$as_ac_Header+set}\" = set"; then
4140  echo $ECHO_N "(cached) $ECHO_C" >&6
4141fi
4142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4144else
4145  # Is the header compilable?
4146echo "$as_me:$LINENO: checking $ac_header usability" >&5
4147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4148cat >conftest.$ac_ext <<_ACEOF
4149/* confdefs.h.  */
4150_ACEOF
4151cat confdefs.h >>conftest.$ac_ext
4152cat >>conftest.$ac_ext <<_ACEOF
4153/* end confdefs.h.  */
4154$ac_includes_default
4155#include <$ac_header>
4156_ACEOF
4157rm -f conftest.$ac_objext
4158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159  (eval $ac_compile) 2>conftest.er1
4160  ac_status=$?
4161  grep -v '^ *+' conftest.er1 >conftest.err
4162  rm -f conftest.er1
4163  cat conftest.err >&5
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); } &&
4166         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168  (eval $ac_try) 2>&5
4169  ac_status=$?
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); }; } &&
4172         { ac_try='test -s conftest.$ac_objext'
4173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174  (eval $ac_try) 2>&5
4175  ac_status=$?
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); }; }; then
4178  ac_header_compiler=yes
4179else
4180  echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183ac_header_compiler=no
4184fi
4185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4187echo "${ECHO_T}$ac_header_compiler" >&6
4188
4189# Is the header present?
4190echo "$as_me:$LINENO: checking $ac_header presence" >&5
4191echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4192cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h.  */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
4197/* end confdefs.h.  */
4198#include <$ac_header>
4199_ACEOF
4200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4201  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4202  ac_status=$?
4203  grep -v '^ *+' conftest.er1 >conftest.err
4204  rm -f conftest.er1
4205  cat conftest.err >&5
4206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207  (exit $ac_status); } >/dev/null; then
4208  if test -s conftest.err; then
4209    ac_cpp_err=$ac_cxx_preproc_warn_flag
4210    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4211  else
4212    ac_cpp_err=
4213  fi
4214else
4215  ac_cpp_err=yes
4216fi
4217if test -z "$ac_cpp_err"; then
4218  ac_header_preproc=yes
4219else
4220  echo "$as_me: failed program was:" >&5
4221sed 's/^/| /' conftest.$ac_ext >&5
4222
4223  ac_header_preproc=no
4224fi
4225rm -f conftest.err conftest.$ac_ext
4226echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4227echo "${ECHO_T}$ac_header_preproc" >&6
4228
4229# So?  What about this header?
4230case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4231  yes:no: )
4232    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4233echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4234    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4235echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4236    ac_header_preproc=yes
4237    ;;
4238  no:yes:* )
4239    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4240echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4241    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4242echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4243    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4244echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4245    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4246echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4247    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4248echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4249    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4250echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4251    (
4252      cat <<\_ASBOX
4253## ----------------------------------- ##
4254## Report this to rappture@nanohub.org ##
4255## ----------------------------------- ##
4256_ASBOX
4257    ) |
4258      sed "s/^/$as_me: WARNING:     /" >&2
4259    ;;
4260esac
4261echo "$as_me:$LINENO: checking for $ac_header" >&5
4262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4263if eval "test \"\${$as_ac_Header+set}\" = set"; then
4264  echo $ECHO_N "(cached) $ECHO_C" >&6
4265else
4266  eval "$as_ac_Header=\$ac_header_preproc"
4267fi
4268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4270
4271fi
4272if test `eval echo '${'$as_ac_Header'}'` = yes; then
4273  cat >>confdefs.h <<_ACEOF
4274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4275_ACEOF
4276
4277else
4278  { echo "$as_me:$LINENO: WARNING: STL classes missing ?" >&5
4279echo "$as_me: WARNING: STL classes missing ?" >&2;}
4280fi
4281
4282done
4283
4284
4285ac_ext=f
4286ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4287ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4289if test -n "$ac_tool_prefix"; then
4290  for ac_prog in g77 f77 fort77 f90 xlf xlf90 fl32
4291  do
4292    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4294echo "$as_me:$LINENO: checking for $ac_word" >&5
4295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4296if test "${ac_cv_prog_F77+set}" = set; then
4297  echo $ECHO_N "(cached) $ECHO_C" >&6
4298else
4299  if test -n "$F77"; then
4300  ac_cv_prog_F77="$F77" # Let the user override the test.
4301else
4302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303for as_dir in $PATH
4304do
4305  IFS=$as_save_IFS
4306  test -z "$as_dir" && as_dir=.
4307  for ac_exec_ext in '' $ac_executable_extensions; do
4308  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311    break 2
4312  fi
4313done
4314done
4315
4316fi
4317fi
4318F77=$ac_cv_prog_F77
4319if test -n "$F77"; then
4320  echo "$as_me:$LINENO: result: $F77" >&5
4321echo "${ECHO_T}$F77" >&6
4322else
4323  echo "$as_me:$LINENO: result: no" >&5
4324echo "${ECHO_T}no" >&6
4325fi
4326
4327    test -n "$F77" && break
4328  done
4329fi
4330if test -z "$F77"; then
4331  ac_ct_F77=$F77
4332  for ac_prog in g77 f77 fort77 f90 xlf xlf90 fl32
4333do
4334  # Extract the first word of "$ac_prog", so it can be a program name with args.
4335set dummy $ac_prog; ac_word=$2
4336echo "$as_me:$LINENO: checking for $ac_word" >&5
4337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4338if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4339  echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341  if test -n "$ac_ct_F77"; then
4342  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4343else
4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH
4346do
4347  IFS=$as_save_IFS
4348  test -z "$as_dir" && as_dir=.
4349  for ac_exec_ext in '' $ac_executable_extensions; do
4350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4351    ac_cv_prog_ac_ct_F77="$ac_prog"
4352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4353    break 2
4354  fi
4355done
4356done
4357
4358fi
4359fi
4360ac_ct_F77=$ac_cv_prog_ac_ct_F77
4361if test -n "$ac_ct_F77"; then
4362  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4363echo "${ECHO_T}$ac_ct_F77" >&6
4364else
4365  echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
4367fi
4368
4369  test -n "$ac_ct_F77" && break
4370done
4371
4372  F77=$ac_ct_F77
4373fi
4374
4375
4376# Provide some information about the compiler.
4377echo "$as_me:4377:" \
4378     "checking for Fortran 77 compiler version" >&5
4379ac_compiler=`set X $ac_compile; echo $2`
4380{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4381  (eval $ac_compiler --version </dev/null >&5) 2>&5
4382  ac_status=$?
4383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384  (exit $ac_status); }
4385{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4386  (eval $ac_compiler -v </dev/null >&5) 2>&5
4387  ac_status=$?
4388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389  (exit $ac_status); }
4390{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4391  (eval $ac_compiler -V </dev/null >&5) 2>&5
4392  ac_status=$?
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); }
4395rm -f a.out
4396
4397# If we don't use `.F' as extension, the preprocessor is not run on the
4398# input file.  (Note that this only needs to work for GNU compilers.)
4399ac_save_ext=$ac_ext
4400ac_ext=F
4401echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4402echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4403if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4404  echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406  cat >conftest.$ac_ext <<_ACEOF
4407      program main
4408#ifndef __GNUC__
4409       choke me
4410#endif
4411
4412      end
4413_ACEOF
4414rm -f conftest.$ac_objext
4415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416  (eval $ac_compile) 2>conftest.er1
4417  ac_status=$?
4418  grep -v '^ *+' conftest.er1 >conftest.err
4419  rm -f conftest.er1
4420  cat conftest.err >&5
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); } &&
4423         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
4424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425  (eval $ac_try) 2>&5
4426  ac_status=$?
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); }; } &&
4429         { ac_try='test -s conftest.$ac_objext'
4430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431  (eval $ac_try) 2>&5
4432  ac_status=$?
4433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434  (exit $ac_status); }; }; then
4435  ac_compiler_gnu=yes
4436else
4437  echo "$as_me: failed program was:" >&5
4438sed 's/^/| /' conftest.$ac_ext >&5
4439
4440ac_compiler_gnu=no
4441fi
4442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4443ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4444
4445fi
4446echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4447echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4448ac_ext=$ac_save_ext
4449ac_test_FFLAGS=${FFLAGS+set}
4450ac_save_FFLAGS=$FFLAGS
4451FFLAGS=
4452echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4453echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4454if test "${ac_cv_prog_f77_g+set}" = set; then
4455  echo $ECHO_N "(cached) $ECHO_C" >&6
4456else
4457  FFLAGS=-g
4458cat >conftest.$ac_ext <<_ACEOF
4459      program main
4460
4461      end
4462_ACEOF
4463rm -f conftest.$ac_objext
4464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465  (eval $ac_compile) 2>conftest.er1
4466  ac_status=$?
4467  grep -v '^ *+' conftest.er1 >conftest.err
4468  rm -f conftest.er1
4469  cat conftest.err >&5
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); } &&
4472         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
4473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474  (eval $ac_try) 2>&5
4475  ac_status=$?
4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477  (exit $ac_status); }; } &&
4478         { ac_try='test -s conftest.$ac_objext'
4479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480  (eval $ac_try) 2>&5
4481  ac_status=$?
4482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); }; }; then
4484  ac_cv_prog_f77_g=yes
4485else
4486  echo "$as_me: failed program was:" >&5
4487sed 's/^/| /' conftest.$ac_ext >&5
4488
4489ac_cv_prog_f77_g=no
4490fi
4491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4492
4493fi
4494echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4495echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4496if test "$ac_test_FFLAGS" = set; then
4497  FFLAGS=$ac_save_FFLAGS
4498elif test $ac_cv_prog_f77_g = yes; then
4499  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4500    FFLAGS="-g -O2"
4501  else
4502    FFLAGS="-g"
4503  fi
4504else
4505  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4506    FFLAGS="-O2"
4507  else
4508    FFLAGS=
4509  fi
4510fi
4511
4512G77=`test $ac_compiler_gnu = yes && echo yes`
4513ac_ext=cc
4514ac_cpp='$CXXCPP $CPPFLAGS'
4515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527# Check whether --with-matlab or --without-matlab was given.
4528if test "${with_matlab+set}" = set; then
4529  withval="$with_matlab"
4530
4531else
4532  with_matlab=check
4533fi;
4534
4535
4536# Check whether --with-matlab_arch or --without-matlab_arch was given.
4537if test "${with_matlab_arch+set}" = set; then
4538  withval="$with_matlab_arch"
4539
4540else
4541  with_matlab_arch=check
4542fi;
4543
4544
4545# Check whether --with-mexext or --without-mexext was given.
4546if test "${with_mexext+set}" = set; then
4547  withval="$with_mexext"
4548
4549else
4550  with_mexext=check
4551fi;
4552
4553MEX=
4554MEX_ARCH=
4555MEXEXT=
4556    echo "$as_me:$LINENO: checking for mex" >&5
4557echo $ECHO_N "checking for mex... $ECHO_C" >&6
4558    if test "$with_matlab" != "no" ; then
4559                if test -x "$with_matlab/bin/mex"
4560        then
4561            echo Found mex in $with_matlab/bin/mex
4562            MEX="$with_matlab/bin/mex"
4563        else
4564            if test -x "$with_matlab"
4565            then
4566                echo Found mex in $with_matlab
4567                MEX="$with_matlab"
4568            else
4569                # Extract the first word of "mex", so it can be a program name with args.
4570set dummy mex; ac_word=$2
4571echo "$as_me:$LINENO: checking for $ac_word" >&5
4572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573if test "${ac_cv_path_MEX+set}" = set; then
4574  echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576  case $MEX in
4577  [\\/]* | ?:[\\/]*)
4578  ac_cv_path_MEX="$MEX" # Let the user override the test with a path.
4579  ;;
4580  *)
4581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584  IFS=$as_save_IFS
4585  test -z "$as_dir" && as_dir=.
4586  for ac_exec_ext in '' $ac_executable_extensions; do
4587  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588    ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext"
4589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590    break 2
4591  fi
4592done
4593done
4594
4595  ;;
4596esac
4597fi
4598MEX=$ac_cv_path_MEX
4599
4600if test -n "$MEX"; then
4601  echo "$as_me:$LINENO: result: $MEX" >&5
4602echo "${ECHO_T}$MEX" >&6
4603else
4604  echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6
4606fi
4607
4608            fi
4609        fi
4610        echo "$as_me:$LINENO: result: ${MEX}" >&5
4611echo "${ECHO_T}${MEX}" >&6
4612        if test "$with_matlab_arch" = "check" ; then
4613                        with_matlab_arch=""
4614        fi
4615        if test "x$with_matlab_arch" != "x" ; then
4616            echo "using matlab architecture \"$with_matlab_arch\""
4617            MEX_ARCH="-arch=$with_matlab_arch"
4618                            fi
4619        if test "x$MEX" != "x" ; then
4620            mexext_fxn=`dirname $MEX`/mexext
4621            if test -x "$mexext_fxn" ; then
4622                MEXEXT=`$mexext_fxn`
4623                if test "x${MEXEXT}" = "x" ; then
4624                                                                                if test "$with_mexext" != "check" ; then
4625                        MEXEXT="mexglx"
4626                    fi
4627                fi
4628            else
4629                if test "$with_mexext" != "check" ; then
4630                    MEXEXT="mexglx"
4631                fi
4632            fi
4633            echo "Using mex file extension \"$MEXEXT\""
4634            echo "$as_me:$LINENO: result: ${MEXEXT}" >&5
4635echo "${ECHO_T}${MEXEXT}" >&6
4636        else
4637            echo "can't find the matlab compiler \"mex\""
4638            echo "use --with-matlab=DIR to specify the location of a matlab installation"
4639            exit 1
4640        fi
4641    fi
4642
4643
4644
4645
4646
4647
4648
4649
4650# Check whether --with-octave or --without-octave was given.
4651if test "${with_octave+set}" = set; then
4652  withval="$with_octave"
4653
4654else
4655  with_octave=check
4656fi;
4657
4658MKOCTFILE=
4659    echo "$as_me:$LINENO: checking for mkoctfile" >&5
4660echo $ECHO_N "checking for mkoctfile... $ECHO_C" >&6
4661    if test "$with_octave" != "no" ; then
4662        if test -x "$with_octave/bin/mkoctfile"
4663        then
4664            echo Found octave in $with_octave/bin/mkoctfile
4665            MKOCTFILE="$with_octave/bin/mkoctfile"
4666        else
4667            if test -x "$with_octave"
4668            then
4669                echo Found mkoctfile in $with_octave
4670                MKOCTFILE="$with_octave"
4671            else
4672                # Extract the first word of "mkoctfile", so it can be a program name with args.
4673set dummy mkoctfile; ac_word=$2
4674echo "$as_me:$LINENO: checking for $ac_word" >&5
4675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4676if test "${ac_cv_path_MKOCTFILE+set}" = set; then
4677  echo $ECHO_N "(cached) $ECHO_C" >&6
4678else
4679  case $MKOCTFILE in
4680  [\\/]* | ?:[\\/]*)
4681  ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.
4682  ;;
4683  *)
4684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687  IFS=$as_save_IFS
4688  test -z "$as_dir" && as_dir=.
4689  for ac_exec_ext in '' $ac_executable_extensions; do
4690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691    ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext"
4692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693    break 2
4694  fi
4695done
4696done
4697
4698  ;;
4699esac
4700fi
4701MKOCTFILE=$ac_cv_path_MKOCTFILE
4702
4703if test -n "$MKOCTFILE"; then
4704  echo "$as_me:$LINENO: result: $MKOCTFILE" >&5
4705echo "${ECHO_T}$MKOCTFILE" >&6
4706else
4707  echo "$as_me:$LINENO: result: no" >&5
4708echo "${ECHO_T}no" >&6
4709fi
4710
4711            fi
4712        fi
4713    fi
4714    echo "$as_me:$LINENO: result: ${MKOCTFILE}" >&5
4715echo "${ECHO_T}${MKOCTFILE}" >&6
4716
4717
4718
4719
4720
4721
4722
4723# Check whether --with-perl or --without-perl was given.
4724if test "${with_perl+set}" = set; then
4725  withval="$with_perl"
4726
4727else
4728  with_perl=check
4729fi;
4730
4731PERL=
4732PERL_INCLUDES=
4733PERL_SITE_PACKAGES=
4734echo "$as_me:$LINENO: checking for mkoctfile" >&5
4735echo $ECHO_N "checking for mkoctfile... $ECHO_C" >&6
4736if test "$with_perl" != "no" ; then
4737    if test -x "$with_perl/bin/perl"
4738    then
4739        echo Found perl in $with_perl/bin/perl
4740        PERL="$with_perl/bin/perl"
4741    else
4742        if test -x "$with_perl"
4743        then
4744            echo Found perl in $with_perl
4745            PERL="$with_perl"
4746        else
4747            # Extract the first word of "perl", so it can be a program name with args.
4748set dummy perl; ac_word=$2
4749echo "$as_me:$LINENO: checking for $ac_word" >&5
4750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4751if test "${ac_cv_path_PERL+set}" = set; then
4752  echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754  case $PERL in
4755  [\\/]* | ?:[\\/]*)
4756  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4757  ;;
4758  *)
4759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH
4761do
4762  IFS=$as_save_IFS
4763  test -z "$as_dir" && as_dir=.
4764  for ac_exec_ext in '' $ac_executable_extensions; do
4765  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768    break 2
4769  fi
4770done
4771done
4772
4773  ;;
4774esac
4775fi
4776PERL=$ac_cv_path_PERL
4777
4778if test -n "$PERL"; then
4779  echo "$as_me:$LINENO: result: $PERL" >&5
4780echo "${ECHO_T}$PERL" >&6
4781else
4782  echo "$as_me:$LINENO: result: no" >&5
4783echo "${ECHO_T}no" >&6
4784fi
4785
4786        fi
4787    fi
4788    PERL_SITE_PACKAGES='$(libdir)/perl5'
4789fi
4790echo "$as_me:$LINENO: result: ${PERL}" >&5
4791echo "${ECHO_T}${PERL}" >&6
4792
4793
4794
4795
4796
4797
4798PYTHON=
4799PYTHON_VERSION=
4800PYTHON_INCLUDES=
4801PYTHON_SITE_PACKAGES=
4802pythondir=
4803
4804# Check whether --with-python or --without-python was given.
4805if test "${with_python+set}" = set; then
4806  withval="$with_python"
4807
4808else
4809  with_python=check
4810fi;
4811
4812if test "$with_python" != "no" ; then
4813    if test -x "$with_python/bin/python"
4814    then
4815        echo Found python in $with_python/bin/python
4816        PYTHON="$with_python/bin/python"
4817    else
4818        if test -x "$with_python"
4819        then
4820            echo Found python in $with_python
4821            PYTHON="$with_python"
4822        else
4823            # 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.
4824set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
4825echo "$as_me:$LINENO: checking for $ac_word" >&5
4826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4827if test "${ac_cv_path_PYTHON+set}" = set; then
4828  echo $ECHO_N "(cached) $ECHO_C" >&6
4829else
4830  case $PYTHON in
4831  [\\/]* | ?:[\\/]*)
4832  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4833  ;;
4834  *)
4835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840  for ac_exec_ext in '' $ac_executable_extensions; do
4841  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844    break 2
4845  fi
4846done
4847done
4848
4849  ;;
4850esac
4851fi
4852PYTHON=$ac_cv_path_PYTHON
4853
4854if test -n "$PYTHON"; then
4855  echo "$as_me:$LINENO: result: $PYTHON" >&5
4856echo "${ECHO_T}$PYTHON" >&6
4857else
4858  echo "$as_me:$LINENO: result: no" >&5
4859echo "${ECHO_T}no" >&6
4860fi
4861
4862        fi
4863    fi
4864    if test "$PYTHON" != ""
4865    then
4866        PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
4867        echo Using python version $PYTHON_VERSION
4868    fi
4869    if test "$PYTHON_VERSION" != ""
4870    then
4871    if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
4872       -d $with_python/lib/python$PYTHON_VERSION/site-packages
4873    then
4874        PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
4875        PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
4876    else
4877        if test -r $prefix/include/python$PYTHON_VERSION/Python.h
4878        then
4879            PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)'
4880            PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
4881        else
4882            if test -r /usr/include/python$PYTHON_VERSION/Python.h
4883            then
4884                PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
4885                PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
4886            else
4887                echo could not find python$PYTHON_VERSION/Python.h
4888            fi
4889        fi
4890        if test ! -d "$PYTHON_SITE_PACKAGES"
4891        then
4892            PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
4893        fi
4894    fi
4895    fi
4896    if test "$with_python" != ""
4897    then
4898        pythondir='$(PYTHON_SITE_PACKAGES)'
4899    else
4900        pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages'
4901    fi
4902fi
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912RP_BASE=`pwd`
4913
4914
4915
4916
4917subdirs="$subdirs gui "
4918
4919
4920
4921subdirs="$subdirs src/tcl "
4922
4923
4924                                                                                                                                                                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"
4925cat >confcache <<\_ACEOF
4926# This file is a shell script that caches the results of configure
4927# tests run on this system so they can be shared between configure
4928# scripts and configure runs, see configure's option --config-cache.
4929# It is not useful on other systems.  If it contains results you don't
4930# want to keep, you may remove or edit it.
4931#
4932# config.status only pays attention to the cache file if you give it
4933# the --recheck option to rerun configure.
4934#
4935# `ac_cv_env_foo' variables (set or unset) will be overridden when
4936# loading this file, other *unset* `ac_cv_foo' will be assigned the
4937# following values.
4938
4939_ACEOF
4940
4941# The following way of writing the cache mishandles newlines in values,
4942# but we know of no workaround that is simple, portable, and efficient.
4943# So, don't put newlines in cache variables' values.
4944# Ultrix sh set writes to stderr and can't be redirected directly,
4945# and sets the high bit in the cache file unless we assign to the vars.
4946{
4947  (set) 2>&1 |
4948    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4949    *ac_space=\ *)
4950      # `set' does not quote correctly, so add quotes (double-quote
4951      # substitution turns \\\\ into \\, and sed turns \\ into \).
4952      sed -n \
4953        "s/'/'\\\\''/g;
4954          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4955      ;;
4956    *)
4957      # `set' quotes correctly as required by POSIX, so do not add quotes.
4958      sed -n \
4959        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4960      ;;
4961    esac;
4962} |
4963  sed '
4964     t clear
4965     : clear
4966     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4967     t end
4968     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4969     : end' >>confcache
4970if diff $cache_file confcache >/dev/null 2>&1; then :; else
4971  if test -w $cache_file; then
4972    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4973    cat confcache >$cache_file
4974  else
4975    echo "not updating unwritable cache $cache_file"
4976  fi
4977fi
4978rm -f confcache
4979
4980test "x$prefix" = xNONE && prefix=$ac_default_prefix
4981# Let make expand exec_prefix.
4982test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4983
4984# VPATH may cause trouble with some makes, so we remove $(srcdir),
4985# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4986# trailing colons and then remove the whole line if VPATH becomes empty
4987# (actually we leave an empty line to preserve line numbers).
4988if test "x$srcdir" = x.; then
4989  ac_vpsub='/^[  ]*VPATH[        ]*=/{
4990s/:*\$(srcdir):*/:/;
4991s/:*\${srcdir}:*/:/;
4992s/:*@srcdir@:*/:/;
4993s/^\([^=]*=[     ]*\):*/\1/;
4994s/:*$//;
4995s/^[^=]*=[       ]*$//;
4996}'
4997fi
4998
4999# Transform confdefs.h into DEFS.
5000# Protect against shell expansion while executing Makefile rules.
5001# Protect against Makefile macro expansion.
5002#
5003# If the first sed substitution is executed (which looks for macros that
5004# take arguments), then we branch to the quote section.  Otherwise,
5005# look for a macro that doesn't take arguments.
5006cat >confdef2opt.sed <<\_ACEOF
5007t clear
5008: clear
5009s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
5010t quote
5011s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
5012t quote
5013d
5014: quote
5015s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
5016s,\[,\\&,g
5017s,\],\\&,g
5018s,\$,$$,g
5019p
5020_ACEOF
5021# We use echo to avoid assuming a particular line-breaking character.
5022# The extra dot is to prevent the shell from consuming trailing
5023# line-breaks from the sub-command output.  A line-break within
5024# single-quotes doesn't work because, if this script is created in a
5025# platform that uses two characters for line-breaks (e.g., DOS), tr
5026# would break.
5027ac_LF_and_DOT=`echo; echo .`
5028DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5029rm -f confdef2opt.sed
5030
5031
5032ac_libobjs=
5033ac_ltlibobjs=
5034for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5035  # 1. Remove the extension, and $U if already installed.
5036  ac_i=`echo "$ac_i" |
5037         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5038  # 2. Add them.
5039  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5040  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5041done
5042LIBOBJS=$ac_libobjs
5043
5044LTLIBOBJS=$ac_ltlibobjs
5045
5046
5047
5048: ${CONFIG_STATUS=./config.status}
5049ac_clean_files_save=$ac_clean_files
5050ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5051{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5052echo "$as_me: creating $CONFIG_STATUS" >&6;}
5053cat >$CONFIG_STATUS <<_ACEOF
5054#! $SHELL
5055# Generated by $as_me.
5056# Run this file to recreate the current configuration.
5057# Compiler output produced by configure, useful for debugging
5058# configure, is in config.log if it exists.
5059
5060debug=false
5061ac_cs_recheck=false
5062ac_cs_silent=false
5063SHELL=\${CONFIG_SHELL-$SHELL}
5064_ACEOF
5065
5066cat >>$CONFIG_STATUS <<\_ACEOF
5067## --------------------- ##
5068## M4sh Initialization.  ##
5069## --------------------- ##
5070
5071# Be Bourne compatible
5072if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5073  emulate sh
5074  NULLCMD=:
5075  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5076  # is contrary to our usage.  Disable this feature.
5077  alias -g '${1+"$@"}'='"$@"'
5078elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5079  set -o posix
5080fi
5081DUALCASE=1; export DUALCASE # for MKS sh
5082
5083# Support unset when possible.
5084if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5085  as_unset=unset
5086else
5087  as_unset=false
5088fi
5089
5090
5091# Work around bugs in pre-3.0 UWIN ksh.
5092$as_unset ENV MAIL MAILPATH
5093PS1='$ '
5094PS2='> '
5095PS4='+ '
5096
5097# NLS nuisances.
5098for as_var in \
5099  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5100  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5101  LC_TELEPHONE LC_TIME
5102do
5103  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5104    eval $as_var=C; export $as_var
5105  else
5106    $as_unset $as_var
5107  fi
5108done
5109
5110# Required to use basename.
5111if expr a : '\(a\)' >/dev/null 2>&1; then
5112  as_expr=expr
5113else
5114  as_expr=false
5115fi
5116
5117if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5118  as_basename=basename
5119else
5120  as_basename=false
5121fi
5122
5123
5124# Name of the executable.
5125as_me=`$as_basename "$0" ||
5126$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5127         X"$0" : 'X\(//\)$' \| \
5128         X"$0" : 'X\(/\)$' \| \
5129         .     : '\(.\)' 2>/dev/null ||
5130echo X/"$0" |
5131    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5132          /^X\/\(\/\/\)$/{ s//\1/; q; }
5133          /^X\/\(\/\).*/{ s//\1/; q; }
5134          s/.*/./; q'`
5135
5136
5137# PATH needs CR, and LINENO needs CR and PATH.
5138# Avoid depending upon Character Ranges.
5139as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5140as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5141as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5142as_cr_digits='0123456789'
5143as_cr_alnum=$as_cr_Letters$as_cr_digits
5144
5145# The user is always right.
5146if test "${PATH_SEPARATOR+set}" != set; then
5147  echo "#! /bin/sh" >conf$$.sh
5148  echo  "exit 0"   >>conf$$.sh
5149  chmod +x conf$$.sh
5150  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5151    PATH_SEPARATOR=';'
5152  else
5153    PATH_SEPARATOR=:
5154  fi
5155  rm -f conf$$.sh
5156fi
5157
5158
5159  as_lineno_1=$LINENO
5160  as_lineno_2=$LINENO
5161  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5162  test "x$as_lineno_1" != "x$as_lineno_2" &&
5163  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5164  # Find who we are.  Look in the path if we contain no path at all
5165  # relative or not.
5166  case $0 in
5167    *[\\/]* ) as_myself=$0 ;;
5168    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171  IFS=$as_save_IFS
5172  test -z "$as_dir" && as_dir=.
5173  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5174done
5175
5176       ;;
5177  esac
5178  # We did not find ourselves, most probably we were run as `sh COMMAND'
5179  # in which case we are not to be found in the path.
5180  if test "x$as_myself" = x; then
5181    as_myself=$0
5182  fi
5183  if test ! -f "$as_myself"; then
5184    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5185echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5186   { (exit 1); exit 1; }; }
5187  fi
5188  case $CONFIG_SHELL in
5189  '')
5190    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5192do
5193  IFS=$as_save_IFS
5194  test -z "$as_dir" && as_dir=.
5195  for as_base in sh bash ksh sh5; do
5196         case $as_dir in
5197         /*)
5198           if ("$as_dir/$as_base" -c '
5199  as_lineno_1=$LINENO
5200  as_lineno_2=$LINENO
5201  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5202  test "x$as_lineno_1" != "x$as_lineno_2" &&
5203  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5204             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5205             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5206             CONFIG_SHELL=$as_dir/$as_base
5207             export CONFIG_SHELL
5208             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5209           fi;;
5210         esac
5211       done
5212done
5213;;
5214  esac
5215
5216  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5217  # uniformly replaced by the line number.  The first 'sed' inserts a
5218  # line-number line before each line; the second 'sed' does the real
5219  # work.  The second script uses 'N' to pair each line-number line
5220  # with the numbered line, and appends trailing '-' during
5221  # substitution so that $LINENO is not a special case at line end.
5222  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5223  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5224  sed '=' <$as_myself |
5225    sed '
5226      N
5227      s,$,-,
5228      : loop
5229      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5230      t loop
5231      s,-$,,
5232      s,^['$as_cr_digits']*\n,,
5233    ' >$as_me.lineno &&
5234  chmod +x $as_me.lineno ||
5235    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5236echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5237   { (exit 1); exit 1; }; }
5238
5239  # Don't try to exec as it changes $[0], causing all sort of problems
5240  # (the dirname of $[0] is not the place where we might find the
5241  # original and so on.  Autoconf is especially sensible to this).
5242  . ./$as_me.lineno
5243  # Exit status is that of the last command.
5244  exit
5245}
5246
5247
5248case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5249  *c*,-n*) ECHO_N= ECHO_C='
5250' ECHO_T='      ' ;;
5251  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5252  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5253esac
5254
5255if expr a : '\(a\)' >/dev/null 2>&1; then
5256  as_expr=expr
5257else
5258  as_expr=false
5259fi
5260
5261rm -f conf$$ conf$$.exe conf$$.file
5262echo >conf$$.file
5263if ln -s conf$$.file conf$$ 2>/dev/null; then
5264  # We could just check for DJGPP; but this test a) works b) is more generic
5265  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5266  if test -f conf$$.exe; then
5267    # Don't use ln at all; we don't have any links
5268    as_ln_s='cp -p'
5269  else
5270    as_ln_s='ln -s'
5271  fi
5272elif ln conf$$.file conf$$ 2>/dev/null; then
5273  as_ln_s=ln
5274else
5275  as_ln_s='cp -p'
5276fi
5277rm -f conf$$ conf$$.exe conf$$.file
5278
5279if mkdir -p . 2>/dev/null; then
5280  as_mkdir_p=:
5281else
5282  test -d ./-p && rmdir ./-p
5283  as_mkdir_p=false
5284fi
5285
5286as_executable_p="test -f"
5287
5288# Sed expression to map a string onto a valid CPP name.
5289as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5290
5291# Sed expression to map a string onto a valid variable name.
5292as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5293
5294
5295# IFS
5296# We need space, tab and new line, in precisely that order.
5297as_nl='
5298'
5299IFS="   $as_nl"
5300
5301# CDPATH.
5302$as_unset CDPATH
5303
5304exec 6>&1
5305
5306# Open the log real soon, to keep \$[0] and so on meaningful, and to
5307# report actual input values of CONFIG_FILES etc. instead of their
5308# values after options handling.  Logging --version etc. is OK.
5309exec 5>>config.log
5310{
5311  echo
5312  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5313## Running $as_me. ##
5314_ASBOX
5315} >&5
5316cat >&5 <<_CSEOF
5317
5318This file was extended by rappture $as_me 1.1, which was
5319generated by GNU Autoconf 2.59.  Invocation command line was
5320
5321  CONFIG_FILES    = $CONFIG_FILES
5322  CONFIG_HEADERS  = $CONFIG_HEADERS
5323  CONFIG_LINKS    = $CONFIG_LINKS
5324  CONFIG_COMMANDS = $CONFIG_COMMANDS
5325  $ $0 $@
5326
5327_CSEOF
5328echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5329echo >&5
5330_ACEOF
5331
5332# Files that config.status was made for.
5333if test -n "$ac_config_files"; then
5334  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5335fi
5336
5337if test -n "$ac_config_headers"; then
5338  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5339fi
5340
5341if test -n "$ac_config_links"; then
5342  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5343fi
5344
5345if test -n "$ac_config_commands"; then
5346  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5347fi
5348
5349cat >>$CONFIG_STATUS <<\_ACEOF
5350
5351ac_cs_usage="\
5352\`$as_me' instantiates files from templates according to the
5353current configuration.
5354
5355Usage: $0 [OPTIONS] [FILE]...
5356
5357  -h, --help       print this help, then exit
5358  -V, --version    print version number, then exit
5359  -q, --quiet      do not print progress messages
5360  -d, --debug      don't remove temporary files
5361      --recheck    update $as_me by reconfiguring in the same conditions
5362  --file=FILE[:TEMPLATE]
5363                   instantiate the configuration file FILE
5364
5365Configuration files:
5366$config_files
5367
5368Report bugs to <bug-autoconf@gnu.org>."
5369_ACEOF
5370
5371cat >>$CONFIG_STATUS <<_ACEOF
5372ac_cs_version="\\
5373rappture config.status 1.1
5374configured by $0, generated by GNU Autoconf 2.59,
5375  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5376
5377Copyright (C) 2003 Free Software Foundation, Inc.
5378This config.status script is free software; the Free Software Foundation
5379gives unlimited permission to copy, distribute and modify it."
5380srcdir=$srcdir
5381INSTALL="$INSTALL"
5382_ACEOF
5383
5384cat >>$CONFIG_STATUS <<\_ACEOF
5385# If no file are specified by the user, then we need to provide default
5386# value.  By we need to know if files were specified by the user.
5387ac_need_defaults=:
5388while test $# != 0
5389do
5390  case $1 in
5391  --*=*)
5392    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5393    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5394    ac_shift=:
5395    ;;
5396  -*)
5397    ac_option=$1
5398    ac_optarg=$2
5399    ac_shift=shift
5400    ;;
5401  *) # This is not an option, so the user has probably given explicit
5402     # arguments.
5403     ac_option=$1
5404     ac_need_defaults=false;;
5405  esac
5406
5407  case $ac_option in
5408  # Handling of the options.
5409_ACEOF
5410cat >>$CONFIG_STATUS <<\_ACEOF
5411  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5412    ac_cs_recheck=: ;;
5413  --version | --vers* | -V )
5414    echo "$ac_cs_version"; exit 0 ;;
5415  --he | --h)
5416    # Conflict between --help and --header
5417    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5418Try \`$0 --help' for more information." >&5
5419echo "$as_me: error: ambiguous option: $1
5420Try \`$0 --help' for more information." >&2;}
5421   { (exit 1); exit 1; }; };;
5422  --help | --hel | -h )
5423    echo "$ac_cs_usage"; exit 0 ;;
5424  --debug | --d* | -d )
5425    debug=: ;;
5426  --file | --fil | --fi | --f )
5427    $ac_shift
5428    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5429    ac_need_defaults=false;;
5430  --header | --heade | --head | --hea )
5431    $ac_shift
5432    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5433    ac_need_defaults=false;;
5434  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5435  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5436    ac_cs_silent=: ;;
5437
5438  # This is an error.
5439  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5440Try \`$0 --help' for more information." >&5
5441echo "$as_me: error: unrecognized option: $1
5442Try \`$0 --help' for more information." >&2;}
5443   { (exit 1); exit 1; }; } ;;
5444
5445  *) ac_config_targets="$ac_config_targets $1" ;;
5446
5447  esac
5448  shift
5449done
5450
5451ac_configure_extra_args=
5452
5453if $ac_cs_silent; then
5454  exec 6>/dev/null
5455  ac_configure_extra_args="$ac_configure_extra_args --silent"
5456fi
5457
5458_ACEOF
5459cat >>$CONFIG_STATUS <<_ACEOF
5460if \$ac_cs_recheck; then
5461  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5462  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5463fi
5464
5465_ACEOF
5466
5467
5468
5469
5470
5471cat >>$CONFIG_STATUS <<\_ACEOF
5472for ac_config_target in $ac_config_targets
5473do
5474  case "$ac_config_target" in
5475  # Handling of arguments.
5476  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5477  "examples/demo.bash" ) CONFIG_FILES="$CONFIG_FILES examples/demo.bash" ;;
5478  "examples/app-fermi/cee/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/app-fermi/cee/Makefile" ;;
5479  "examples/app-fermi/fortran/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/app-fermi/fortran/Makefile" ;;
5480  "examples/app-fermi/wrapper/cee/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/cee/Makefile" ;;
5481  "examples/c-example/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/c-example/Makefile" ;;
5482  "perl/Makefile.PL" ) CONFIG_FILES="$CONFIG_FILES perl/Makefile.PL" ;;
5483  "python/setup.py" ) CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
5484  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5485  "src/matlab/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/matlab/Makefile" ;;
5486  "src/octave/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/octave/Makefile" ;;
5487  "src2/core/Makefile" ) CONFIG_FILES="$CONFIG_FILES src2/core/Makefile" ;;
5488  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
5489  "gui/apps/simsim" ) CONFIG_FILES="$CONFIG_FILES gui/apps/simsim" ;;
5490  "gui/apps/rappture" ) CONFIG_FILES="$CONFIG_FILES gui/apps/rappture" ;;
5491  "gui/apps/rappture.env" ) CONFIG_FILES="$CONFIG_FILES gui/apps/rappture.env" ;;
5492  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5493echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5494   { (exit 1); exit 1; }; };;
5495  esac
5496done
5497
5498# If the user did not use the arguments to specify the items to instantiate,
5499# then the envvar interface is used.  Set only those that are not.
5500# We use the long form for the default assignment because of an extremely
5501# bizarre bug on SunOS 4.1.3.
5502if $ac_need_defaults; then
5503  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5504fi
5505
5506# Have a temporary directory for convenience.  Make it in the build tree
5507# simply because there is no reason to put it here, and in addition,
5508# creating and moving files from /tmp can sometimes cause problems.
5509# Create a temporary directory, and hook for its removal unless debugging.
5510$debug ||
5511{
5512  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5513  trap '{ (exit 1); exit 1; }' 1 2 13 15
5514}
5515
5516# Create a (secure) tmp directory for tmp files.
5517
5518{
5519  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5520  test -n "$tmp" && test -d "$tmp"
5521}  ||
5522{
5523  tmp=./confstat$$-$RANDOM
5524  (umask 077 && mkdir $tmp)
5525} ||
5526{
5527   echo "$me: cannot create a temporary directory in ." >&2
5528   { (exit 1); exit 1; }
5529}
5530
5531_ACEOF
5532
5533cat >>$CONFIG_STATUS <<_ACEOF
5534
5535#
5536# CONFIG_FILES section.
5537#
5538
5539# No need to generate the scripts if there are no CONFIG_FILES.
5540# This happens for instance when ./config.status config.h
5541if test -n "\$CONFIG_FILES"; then
5542  # Protect against being on the right side of a sed subst in config.status.
5543  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5544   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5545s,@SHELL@,$SHELL,;t t
5546s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5547s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5548s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5549s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5550s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5551s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5552s,@exec_prefix@,$exec_prefix,;t t
5553s,@prefix@,$prefix,;t t
5554s,@program_transform_name@,$program_transform_name,;t t
5555s,@bindir@,$bindir,;t t
5556s,@sbindir@,$sbindir,;t t
5557s,@libexecdir@,$libexecdir,;t t
5558s,@datadir@,$datadir,;t t
5559s,@sysconfdir@,$sysconfdir,;t t
5560s,@sharedstatedir@,$sharedstatedir,;t t
5561s,@localstatedir@,$localstatedir,;t t
5562s,@libdir@,$libdir,;t t
5563s,@includedir@,$includedir,;t t
5564s,@oldincludedir@,$oldincludedir,;t t
5565s,@infodir@,$infodir,;t t
5566s,@mandir@,$mandir,;t t
5567s,@build_alias@,$build_alias,;t t
5568s,@host_alias@,$host_alias,;t t
5569s,@target_alias@,$target_alias,;t t
5570s,@DEFS@,$DEFS,;t t
5571s,@ECHO_C@,$ECHO_C,;t t
5572s,@ECHO_N@,$ECHO_N,;t t
5573s,@ECHO_T@,$ECHO_T,;t t
5574s,@LIBS@,$LIBS,;t t
5575s,@VERSION@,$VERSION,;t t
5576s,@LIB_SEARCH_DIRS@,$LIB_SEARCH_DIRS,;t t
5577s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5578s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5579s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5580s,@SET_MAKE@,$SET_MAKE,;t t
5581s,@CC@,$CC,;t t
5582s,@CFLAGS@,$CFLAGS,;t t
5583s,@LDFLAGS@,$LDFLAGS,;t t
5584s,@CPPFLAGS@,$CPPFLAGS,;t t
5585s,@ac_ct_CC@,$ac_ct_CC,;t t
5586s,@EXEEXT@,$EXEEXT,;t t
5587s,@OBJEXT@,$OBJEXT,;t t
5588s,@CPP@,$CPP,;t t
5589s,@EGREP@,$EGREP,;t t
5590s,@CXX@,$CXX,;t t
5591s,@CXXFLAGS@,$CXXFLAGS,;t t
5592s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5593s,@CXXCPP@,$CXXCPP,;t t
5594s,@F77@,$F77,;t t
5595s,@FFLAGS@,$FFLAGS,;t t
5596s,@ac_ct_F77@,$ac_ct_F77,;t t
5597s,@MEX@,$MEX,;t t
5598s,@MEX_ARCH@,$MEX_ARCH,;t t
5599s,@MEXEXT@,$MEXEXT,;t t
5600s,@MKOCTFILE@,$MKOCTFILE,;t t
5601s,@PERL@,$PERL,;t t
5602s,@PERL_INCLUDES@,$PERL_INCLUDES,;t t
5603s,@PERL_SITE_PACKAGES@,$PERL_SITE_PACKAGES,;t t
5604s,@PYTHON@,$PYTHON,;t t
5605s,@pythondir@,$pythondir,;t t
5606s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
5607s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
5608s,@PYTHON_SITE_PACKAGES@,$PYTHON_SITE_PACKAGES,;t t
5609s,@RP_BASE@,$RP_BASE,;t t
5610s,@subdirs@,$subdirs,;t t
5611s,@LIBOBJS@,$LIBOBJS,;t t
5612s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5613CEOF
5614
5615_ACEOF
5616
5617  cat >>$CONFIG_STATUS <<\_ACEOF
5618  # Split the substitutions into bite-sized pieces for seds with
5619  # small command number limits, like on Digital OSF/1 and HP-UX.
5620  ac_max_sed_lines=48
5621  ac_sed_frag=1 # Number of current file.
5622  ac_beg=1 # First line for current file.
5623  ac_end=$ac_max_sed_lines # Line after last line for current file.
5624  ac_more_lines=:
5625  ac_sed_cmds=
5626  while $ac_more_lines; do
5627    if test $ac_beg -gt 1; then
5628      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5629    else
5630      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5631    fi
5632    if test ! -s $tmp/subs.frag; then
5633      ac_more_lines=false
5634    else
5635      # The purpose of the label and of the branching condition is to
5636      # speed up the sed processing (if there are no `@' at all, there
5637      # is no need to browse any of the substitutions).
5638      # These are the two extra sed commands mentioned above.
5639      (echo ':t
5640  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5641      if test -z "$ac_sed_cmds"; then
5642        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5643      else
5644        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5645      fi
5646      ac_sed_frag=`expr $ac_sed_frag + 1`
5647      ac_beg=$ac_end
5648      ac_end=`expr $ac_end + $ac_max_sed_lines`
5649    fi
5650  done
5651  if test -z "$ac_sed_cmds"; then
5652    ac_sed_cmds=cat
5653  fi
5654fi # test -n "$CONFIG_FILES"
5655
5656_ACEOF
5657cat >>$CONFIG_STATUS <<\_ACEOF
5658for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5659  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5660  case $ac_file in
5661  - | *:- | *:-:* ) # input from stdin
5662        cat >$tmp/stdin
5663        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5664        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5665  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5666        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5667  * )   ac_file_in=$ac_file.in ;;
5668  esac
5669
5670  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5671  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5672$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5673         X"$ac_file" : 'X\(//\)[^/]' \| \
5674         X"$ac_file" : 'X\(//\)$' \| \
5675         X"$ac_file" : 'X\(/\)' \| \
5676         .     : '\(.\)' 2>/dev/null ||
5677echo X"$ac_file" |
5678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5679          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5680          /^X\(\/\/\)$/{ s//\1/; q; }
5681          /^X\(\/\).*/{ s//\1/; q; }
5682          s/.*/./; q'`
5683  { if $as_mkdir_p; then
5684    mkdir -p "$ac_dir"
5685  else
5686    as_dir="$ac_dir"
5687    as_dirs=
5688    while test ! -d "$as_dir"; do
5689      as_dirs="$as_dir $as_dirs"
5690      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5691$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5692         X"$as_dir" : 'X\(//\)[^/]' \| \
5693         X"$as_dir" : 'X\(//\)$' \| \
5694         X"$as_dir" : 'X\(/\)' \| \
5695         .     : '\(.\)' 2>/dev/null ||
5696echo X"$as_dir" |
5697    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5698          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5699          /^X\(\/\/\)$/{ s//\1/; q; }
5700          /^X\(\/\).*/{ s//\1/; q; }
5701          s/.*/./; q'`
5702    done
5703    test ! -n "$as_dirs" || mkdir $as_dirs
5704  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5705echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5706   { (exit 1); exit 1; }; }; }
5707
5708  ac_builddir=.
5709
5710if test "$ac_dir" != .; then
5711  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5712  # A "../" for each directory in $ac_dir_suffix.
5713  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5714else
5715  ac_dir_suffix= ac_top_builddir=
5716fi
5717
5718case $srcdir in
5719  .)  # No --srcdir option.  We are building in place.
5720    ac_srcdir=.
5721    if test -z "$ac_top_builddir"; then
5722       ac_top_srcdir=.
5723    else
5724       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5725    fi ;;
5726  [\\/]* | ?:[\\/]* )  # Absolute path.
5727    ac_srcdir=$srcdir$ac_dir_suffix;
5728    ac_top_srcdir=$srcdir ;;
5729  *) # Relative path.
5730    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5731    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5732esac
5733
5734# Do not use `cd foo && pwd` to compute absolute paths, because
5735# the directories may not exist.
5736case `pwd` in
5737.) ac_abs_builddir="$ac_dir";;
5738*)
5739  case "$ac_dir" in
5740  .) ac_abs_builddir=`pwd`;;
5741  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5742  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5743  esac;;
5744esac
5745case $ac_abs_builddir in
5746.) ac_abs_top_builddir=${ac_top_builddir}.;;
5747*)
5748  case ${ac_top_builddir}. in
5749  .) ac_abs_top_builddir=$ac_abs_builddir;;
5750  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5751  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5752  esac;;
5753esac
5754case $ac_abs_builddir in
5755.) ac_abs_srcdir=$ac_srcdir;;
5756*)
5757  case $ac_srcdir in
5758  .) ac_abs_srcdir=$ac_abs_builddir;;
5759  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5760  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5761  esac;;
5762esac
5763case $ac_abs_builddir in
5764.) ac_abs_top_srcdir=$ac_top_srcdir;;
5765*)
5766  case $ac_top_srcdir in
5767  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5768  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5769  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5770  esac;;
5771esac
5772
5773
5774  case $INSTALL in
5775  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5776  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5777  esac
5778
5779  # Let's still pretend it is `configure' which instantiates (i.e., don't
5780  # use $as_me), people would be surprised to read:
5781  #    /* config.h.  Generated by config.status.  */
5782  if test x"$ac_file" = x-; then
5783    configure_input=
5784  else
5785    configure_input="$ac_file.  "
5786  fi
5787  configure_input=$configure_input"Generated from `echo $ac_file_in |
5788                                     sed 's,.*/,,'` by configure."
5789
5790  # First look for the input files in the build tree, otherwise in the
5791  # src tree.
5792  ac_file_inputs=`IFS=:
5793    for f in $ac_file_in; do
5794      case $f in
5795      -) echo $tmp/stdin ;;
5796      [\\/$]*)
5797         # Absolute (can't be DOS-style, as IFS=:)
5798         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5799echo "$as_me: error: cannot find input file: $f" >&2;}
5800   { (exit 1); exit 1; }; }
5801         echo "$f";;
5802      *) # Relative
5803         if test -f "$f"; then
5804           # Build tree
5805           echo "$f"
5806         elif test -f "$srcdir/$f"; then
5807           # Source tree
5808           echo "$srcdir/$f"
5809         else
5810           # /dev/null tree
5811           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5812echo "$as_me: error: cannot find input file: $f" >&2;}
5813   { (exit 1); exit 1; }; }
5814         fi;;
5815      esac
5816    done` || { (exit 1); exit 1; }
5817
5818  if test x"$ac_file" != x-; then
5819    { echo "$as_me:$LINENO: creating $ac_file" >&5
5820echo "$as_me: creating $ac_file" >&6;}
5821    rm -f "$ac_file"
5822  fi
5823_ACEOF
5824cat >>$CONFIG_STATUS <<_ACEOF
5825  sed "$ac_vpsub
5826$extrasub
5827_ACEOF
5828cat >>$CONFIG_STATUS <<\_ACEOF
5829:t
5830/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5831s,@configure_input@,$configure_input,;t t
5832s,@srcdir@,$ac_srcdir,;t t
5833s,@abs_srcdir@,$ac_abs_srcdir,;t t
5834s,@top_srcdir@,$ac_top_srcdir,;t t
5835s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5836s,@builddir@,$ac_builddir,;t t
5837s,@abs_builddir@,$ac_abs_builddir,;t t
5838s,@top_builddir@,$ac_top_builddir,;t t
5839s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5840s,@INSTALL@,$ac_INSTALL,;t t
5841" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5842  rm -f $tmp/stdin
5843  if test x"$ac_file" != x-; then
5844    mv $tmp/out $ac_file
5845  else
5846    cat $tmp/out
5847    rm -f $tmp/out
5848  fi
5849
5850done
5851_ACEOF
5852
5853cat >>$CONFIG_STATUS <<\_ACEOF
5854
5855{ (exit 0); exit 0; }
5856_ACEOF
5857chmod +x $CONFIG_STATUS
5858ac_clean_files=$ac_clean_files_save
5859
5860
5861# configure is writing to config.log, and then calls config.status.
5862# config.status does its own redirection, appending to config.log.
5863# Unfortunately, on DOS this fails, as config.log is still kept open
5864# by configure, so config.status won't be able to write to it; its
5865# output is simply discarded.  So we exec the FD to /dev/null,
5866# effectively closing config.log, so it can be properly (re)opened and
5867# appended to by config.status.  When coming back to configure, we
5868# need to make the FD available again.
5869if test "$no_create" != yes; then
5870  ac_cs_success=:
5871  ac_config_status_args=
5872  test "$silent" = yes &&
5873    ac_config_status_args="$ac_config_status_args --quiet"
5874  exec 5>/dev/null
5875  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5876  exec 5>>config.log
5877  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5878  # would make configure fail if this is the last instruction.
5879  $ac_cs_success || { (exit 1); exit 1; }
5880fi
5881
5882#
5883# CONFIG_SUBDIRS section.
5884#
5885if test "$no_recursion" != yes; then
5886
5887  # Remove --cache-file and --srcdir arguments so they do not pile up.
5888  ac_sub_configure_args=
5889  ac_prev=
5890  for ac_arg in $ac_configure_args; do
5891    if test -n "$ac_prev"; then
5892      ac_prev=
5893      continue
5894    fi
5895    case $ac_arg in
5896    -cache-file | --cache-file | --cache-fil | --cache-fi \
5897    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5898      ac_prev=cache_file ;;
5899    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5900    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5901    | --c=*)
5902      ;;
5903    --config-cache | -C)
5904      ;;
5905    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5906      ac_prev=srcdir ;;
5907    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5908      ;;
5909    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5910      ac_prev=prefix ;;
5911    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5912      ;;
5913    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5914    esac
5915  done
5916
5917  # Always prepend --prefix to ensure using the same prefix
5918  # in subdir configurations.
5919  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
5920
5921  ac_popdir=`pwd`
5922  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
5923
5924    # Do not complain, so a configure script can configure whichever
5925    # parts of a large source tree are present.
5926    test -d $srcdir/$ac_dir || continue
5927
5928    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
5929echo "$as_me: configuring in $ac_dir" >&6;}
5930    { if $as_mkdir_p; then
5931    mkdir -p "$ac_dir"
5932  else
5933    as_dir="$ac_dir"
5934    as_dirs=
5935    while test ! -d "$as_dir"; do
5936      as_dirs="$as_dir $as_dirs"
5937      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5938$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5939         X"$as_dir" : 'X\(//\)[^/]' \| \
5940         X"$as_dir" : 'X\(//\)$' \| \
5941         X"$as_dir" : 'X\(/\)' \| \
5942         .     : '\(.\)' 2>/dev/null ||
5943echo X"$as_dir" |
5944    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5945          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5946          /^X\(\/\/\)$/{ s//\1/; q; }
5947          /^X\(\/\).*/{ s//\1/; q; }
5948          s/.*/./; q'`
5949    done
5950    test ! -n "$as_dirs" || mkdir $as_dirs
5951  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5952echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5953   { (exit 1); exit 1; }; }; }
5954
5955    ac_builddir=.
5956
5957if test "$ac_dir" != .; then
5958  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5959  # A "../" for each directory in $ac_dir_suffix.
5960  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5961else
5962  ac_dir_suffix= ac_top_builddir=
5963fi
5964
5965case $srcdir in
5966  .)  # No --srcdir option.  We are building in place.
5967    ac_srcdir=.
5968    if test -z "$ac_top_builddir"; then
5969       ac_top_srcdir=.
5970    else
5971       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5972    fi ;;
5973  [\\/]* | ?:[\\/]* )  # Absolute path.
5974    ac_srcdir=$srcdir$ac_dir_suffix;
5975    ac_top_srcdir=$srcdir ;;
5976  *) # Relative path.
5977    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5978    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5979esac
5980
5981# Do not use `cd foo && pwd` to compute absolute paths, because
5982# the directories may not exist.
5983case `pwd` in
5984.) ac_abs_builddir="$ac_dir";;
5985*)
5986  case "$ac_dir" in
5987  .) ac_abs_builddir=`pwd`;;
5988  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5989  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5990  esac;;
5991esac
5992case $ac_abs_builddir in
5993.) ac_abs_top_builddir=${ac_top_builddir}.;;
5994*)
5995  case ${ac_top_builddir}. in
5996  .) ac_abs_top_builddir=$ac_abs_builddir;;
5997  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5998  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5999  esac;;
6000esac
6001case $ac_abs_builddir in
6002.) ac_abs_srcdir=$ac_srcdir;;
6003*)
6004  case $ac_srcdir in
6005  .) ac_abs_srcdir=$ac_abs_builddir;;
6006  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6007  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6008  esac;;
6009esac
6010case $ac_abs_builddir in
6011.) ac_abs_top_srcdir=$ac_top_srcdir;;
6012*)
6013  case $ac_top_srcdir in
6014  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6015  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6016  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6017  esac;;
6018esac
6019
6020
6021    cd $ac_dir
6022
6023    # Check for guested configure; otherwise get Cygnus style configure.
6024    if test -f $ac_srcdir/configure.gnu; then
6025      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
6026    elif test -f $ac_srcdir/configure; then
6027      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
6028    elif test -f $ac_srcdir/configure.in; then
6029      ac_sub_configure=$ac_configure
6030    else
6031      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
6032echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
6033      ac_sub_configure=
6034    fi
6035
6036    # The recursion is here.
6037    if test -n "$ac_sub_configure"; then
6038      # Make the cache file name correct relative to the subdirectory.
6039      case $cache_file in
6040      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6041      *) # Relative path.
6042        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
6043      esac
6044
6045      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
6046echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6047      # The eval makes quoting arguments work.
6048      eval $ac_sub_configure $ac_sub_configure_args \
6049           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
6050        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
6051echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
6052   { (exit 1); exit 1; }; }
6053    fi
6054
6055    cd "$ac_popdir"
6056  done
6057fi
6058
Note: See TracBrowser for help on using the repository browser.