source: nanovis/trunk/configure @ 4843

Last change on this file since 4843 was 4353, checked in by ldelgass, 10 years ago

Use avconv instead of ffmpeg if found (Debian uses the libav fork and ffmpeg
is removed in e.g. Ubuntu 14.04).

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