source: nanovis/branches/1.1/configure @ 4600

Last change on this file since 4600 was 4600, checked in by ldelgass, 5 years ago

Nanovis 1.1 doesn't depend on VTK, so remove VTK search from configure

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