source: nanovis/branches/1.1/configure @ 5049

Last change on this file since 5049 was 4904, checked in by ldelgass, 9 years ago

Merge serveral changes from trunk. Does not include threading, world space
changes, etc.

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