source: trunk/packages/vizservers/geovis/configure @ 4058

Last change on this file since 4058 was 4058, checked in by ldelgass, 8 years ago

cleanup configure: remove unused functions/vars

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