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

Last change on this file since 4024 was 4024, checked in by ldelgass, 11 years ago

Fix spelling in configure help

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