source: trunk/configure @ 833

Last change on this file since 833 was 833, checked in by dkearney, 12 years ago

updated configure to allow user to compile with or without perl, python, octave, matlab
updated makefiles in examples dir to keep it quiet during compilation.

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