source: branches/r9/pkgs/configure @ 4916

Last change on this file since 4916 was 4916, checked in by gah, 7 years ago
  • Property svn:executable set to *
File size: 255.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Rappture 1.5.
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='Rappture'
582PACKAGE_TARNAME='rappture'
583PACKAGE_VERSION='1.5'
584PACKAGE_STRING='Rappture 1.5'
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
626WITH_TCL
627WITH_RUBY_SITELIBDIR
628WITH_RUBY
629WITH_PYTHON
630WITH_PERL
631WITH_OCTAVE
632WITH_MKOCTFILE3
633WITH_MKOCTFILE2
634WITH_MATLAB
635WITH_JAVA
636WITH_R
637WITH_VTK
638RAPPTURE_VERSION
639RAPPTURE_RELEASE_SERIAL
640RAPPTURE_MINOR_VERSION
641RAPPTURE_MAJOR_VERSION
642WORDSIZE
643X_LIBRARIES
644X_INCLUDES
645VTK_VERSION
646VTK_TCL_DIR
647TK_VERSION
648TK_XLIBSW
649TK_LIB_SPEC
650TK_INC_SPEC
651TCL_SHLIB_SUFFIX
652TCL_SHLIB_LDFLAGS
653TCL_SHLIB_LD
654TCL_SHLIB_CFLAGS
655TCL_CFLAGS_OPTIMIZE
656TCL_CFLAGS_DEBUG
657TCL_LIB_SPEC
658TCL_INC_SPEC
659SIZEOF_VOID_P
660SIZEOF_LONG_LONG
661SIZEOF_LONG
662SIZEOF_INT
663SHLIB_LDFLAGS
664SVN_VERSION
665MAKE
666LIB_SEARCH_DIRS
667INSTALL_PREFIX
668HAVE_LIBNCURSES
669HAVE_LIBVTKDICOM
670HAVE_INTTYPES_H
671LDFLAGS_DEFAULT
672CFLAGS_DEFAULT
673INSTALL_STUB_LIB
674INSTALL_LIB
675MAKE_STUB_LIB
676MAKE_LIB
677SHLIB_SUFFIX
678SHLIB_CFLAGS
679SHLIB_LD_LIBS
680TK_SHLIB_LD_EXTRAS
681TCL_SHLIB_LD_EXTRAS
682SHLIB_LD
683STLIB_LD
684LD_SEARCH_FLAGS
685CC_SEARCH_FLAGS
686LDFLAGS_OPTIMIZE
687LDFLAGS_DEBUG
688CFLAGS_WARNING
689CFLAGS_OPTIMIZE
690CFLAGS_DEBUG
691PLAT_SRCS
692PLAT_OBJS
693DL_OBJS
694DL_LIBS
695AR
696CXXCPP
697XMKMF
698EGREP
699GREP
700CPP
701ac_ct_F77
702FFLAGS
703F77
704ac_ct_CXX
705CXXFLAGS
706CXX
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714SET_MAKE
715MKDIR_P
716LN_S
717RANLIB
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762with_x
763enable_64bit
764enable_64bit_vis
765enable_corefoundation
766enable_load
767enable_symbols
768'
769      ac_precious_vars='build_alias
770host_alias
771target_alias
772CC
773CFLAGS
774LDFLAGS
775LIBS
776CPPFLAGS
777CXX
778CXXFLAGS
779CCC
780F77
781FFLAGS
782CPP
783XMKMF
784CXXCPP'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823includedir='${prefix}/include'
824oldincludedir='/usr/include'
825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
834
835ac_prev=
836ac_dashdash=
837for ac_option
838do
839  # If the previous option needs an argument, assign it.
840  if test -n "$ac_prev"; then
841    eval $ac_prev=\$ac_option
842    ac_prev=
843    continue
844  fi
845
846  case $ac_option in
847  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848  *=)   ac_optarg= ;;
849  *)    ac_optarg=yes ;;
850  esac
851
852  # Accept the important Cygnus configure options, so we can diagnose typos.
853
854  case $ac_dashdash$ac_option in
855  --)
856    ac_dashdash=yes ;;
857
858  -bindir | --bindir | --bindi | --bind | --bin | --bi)
859    ac_prev=bindir ;;
860  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861    bindir=$ac_optarg ;;
862
863  -build | --build | --buil | --bui | --bu)
864    ac_prev=build_alias ;;
865  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866    build_alias=$ac_optarg ;;
867
868  -cache-file | --cache-file | --cache-fil | --cache-fi \
869  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870    ac_prev=cache_file ;;
871  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873    cache_file=$ac_optarg ;;
874
875  --config-cache | -C)
876    cache_file=config.cache ;;
877
878  -datadir | --datadir | --datadi | --datad)
879    ac_prev=datadir ;;
880  -datadir=* | --datadir=* | --datadi=* | --datad=*)
881    datadir=$ac_optarg ;;
882
883  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884  | --dataroo | --dataro | --datar)
885    ac_prev=datarootdir ;;
886  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888    datarootdir=$ac_optarg ;;
889
890  -disable-* | --disable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error $? "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902         ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=no ;;
905
906  -docdir | --docdir | --docdi | --doc | --do)
907    ac_prev=docdir ;;
908  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909    docdir=$ac_optarg ;;
910
911  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912    ac_prev=dvidir ;;
913  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914    dvidir=$ac_optarg ;;
915
916  -enable-* | --enable-*)
917    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918    # Reject names that are not valid shell variable names.
919    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920      as_fn_error $? "invalid feature name: $ac_useropt"
921    ac_useropt_orig=$ac_useropt
922    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923    case $ac_user_opts in
924      *"
925"enable_$ac_useropt"
926"*) ;;
927      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928         ac_unrecognized_sep=', ';;
929    esac
930    eval enable_$ac_useropt=\$ac_optarg ;;
931
932  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934  | --exec | --exe | --ex)
935    ac_prev=exec_prefix ;;
936  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938  | --exec=* | --exe=* | --ex=*)
939    exec_prefix=$ac_optarg ;;
940
941  -gas | --gas | --ga | --g)
942    # Obsolete; use --with-gas.
943    with_gas=yes ;;
944
945  -help | --help | --hel | --he | -h)
946    ac_init_help=long ;;
947  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948    ac_init_help=recursive ;;
949  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950    ac_init_help=short ;;
951
952  -host | --host | --hos | --ho)
953    ac_prev=host_alias ;;
954  -host=* | --host=* | --hos=* | --ho=*)
955    host_alias=$ac_optarg ;;
956
957  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958    ac_prev=htmldir ;;
959  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960  | --ht=*)
961    htmldir=$ac_optarg ;;
962
963  -includedir | --includedir | --includedi | --included | --include \
964  | --includ | --inclu | --incl | --inc)
965    ac_prev=includedir ;;
966  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967  | --includ=* | --inclu=* | --incl=* | --inc=*)
968    includedir=$ac_optarg ;;
969
970  -infodir | --infodir | --infodi | --infod | --info | --inf)
971    ac_prev=infodir ;;
972  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973    infodir=$ac_optarg ;;
974
975  -libdir | --libdir | --libdi | --libd)
976    ac_prev=libdir ;;
977  -libdir=* | --libdir=* | --libdi=* | --libd=*)
978    libdir=$ac_optarg ;;
979
980  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981  | --libexe | --libex | --libe)
982    ac_prev=libexecdir ;;
983  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984  | --libexe=* | --libex=* | --libe=*)
985    libexecdir=$ac_optarg ;;
986
987  -localedir | --localedir | --localedi | --localed | --locale)
988    ac_prev=localedir ;;
989  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990    localedir=$ac_optarg ;;
991
992  -localstatedir | --localstatedir | --localstatedi | --localstated \
993  | --localstate | --localstat | --localsta | --localst | --locals)
994    ac_prev=localstatedir ;;
995  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997    localstatedir=$ac_optarg ;;
998
999  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000    ac_prev=mandir ;;
1001  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002    mandir=$ac_optarg ;;
1003
1004  -nfp | --nfp | --nf)
1005    # Obsolete; use --without-fp.
1006    with_fp=no ;;
1007
1008  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009  | --no-cr | --no-c | -n)
1010    no_create=yes ;;
1011
1012  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014    no_recursion=yes ;;
1015
1016  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018  | --oldin | --oldi | --old | --ol | --o)
1019    ac_prev=oldincludedir ;;
1020  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023    oldincludedir=$ac_optarg ;;
1024
1025  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026    ac_prev=prefix ;;
1027  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028    prefix=$ac_optarg ;;
1029
1030  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031  | --program-pre | --program-pr | --program-p)
1032    ac_prev=program_prefix ;;
1033  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035    program_prefix=$ac_optarg ;;
1036
1037  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038  | --program-suf | --program-su | --program-s)
1039    ac_prev=program_suffix ;;
1040  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042    program_suffix=$ac_optarg ;;
1043
1044  -program-transform-name | --program-transform-name \
1045  | --program-transform-nam | --program-transform-na \
1046  | --program-transform-n | --program-transform- \
1047  | --program-transform | --program-transfor \
1048  | --program-transfo | --program-transf \
1049  | --program-trans | --program-tran \
1050  | --progr-tra | --program-tr | --program-t)
1051    ac_prev=program_transform_name ;;
1052  -program-transform-name=* | --program-transform-name=* \
1053  | --program-transform-nam=* | --program-transform-na=* \
1054  | --program-transform-n=* | --program-transform-=* \
1055  | --program-transform=* | --program-transfor=* \
1056  | --program-transfo=* | --program-transf=* \
1057  | --program-trans=* | --program-tran=* \
1058  | --progr-tra=* | --program-tr=* | --program-t=*)
1059    program_transform_name=$ac_optarg ;;
1060
1061  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062    ac_prev=pdfdir ;;
1063  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064    pdfdir=$ac_optarg ;;
1065
1066  -psdir | --psdir | --psdi | --psd | --ps)
1067    ac_prev=psdir ;;
1068  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069    psdir=$ac_optarg ;;
1070
1071  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072  | -silent | --silent | --silen | --sile | --sil)
1073    silent=yes ;;
1074
1075  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076    ac_prev=sbindir ;;
1077  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078  | --sbi=* | --sb=*)
1079    sbindir=$ac_optarg ;;
1080
1081  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083  | --sharedst | --shareds | --shared | --share | --shar \
1084  | --sha | --sh)
1085    ac_prev=sharedstatedir ;;
1086  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089  | --sha=* | --sh=*)
1090    sharedstatedir=$ac_optarg ;;
1091
1092  -site | --site | --sit)
1093    ac_prev=site ;;
1094  -site=* | --site=* | --sit=*)
1095    site=$ac_optarg ;;
1096
1097  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098    ac_prev=srcdir ;;
1099  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100    srcdir=$ac_optarg ;;
1101
1102  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103  | --syscon | --sysco | --sysc | --sys | --sy)
1104    ac_prev=sysconfdir ;;
1105  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107    sysconfdir=$ac_optarg ;;
1108
1109  -target | --target | --targe | --targ | --tar | --ta | --t)
1110    ac_prev=target_alias ;;
1111  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112    target_alias=$ac_optarg ;;
1113
1114  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115    verbose=yes ;;
1116
1117  -version | --version | --versio | --versi | --vers | -V)
1118    ac_init_version=: ;;
1119
1120  -with-* | --with-*)
1121    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122    # Reject names that are not valid shell variable names.
1123    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124      as_fn_error $? "invalid package name: $ac_useropt"
1125    ac_useropt_orig=$ac_useropt
1126    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127    case $ac_user_opts in
1128      *"
1129"with_$ac_useropt"
1130"*) ;;
1131      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132         ac_unrecognized_sep=', ';;
1133    esac
1134    eval with_$ac_useropt=\$ac_optarg ;;
1135
1136  -without-* | --without-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      as_fn_error $? "invalid package name: $ac_useropt"
1141    ac_useropt_orig=$ac_useropt
1142    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143    case $ac_user_opts in
1144      *"
1145"with_$ac_useropt"
1146"*) ;;
1147      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148         ac_unrecognized_sep=', ';;
1149    esac
1150    eval with_$ac_useropt=no ;;
1151
1152  --x)
1153    # Obsolete; use --with-x.
1154    with_x=yes ;;
1155
1156  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157  | --x-incl | --x-inc | --x-in | --x-i)
1158    ac_prev=x_includes ;;
1159  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161    x_includes=$ac_optarg ;;
1162
1163  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165    ac_prev=x_libraries ;;
1166  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168    x_libraries=$ac_optarg ;;
1169
1170  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171Try \`$0 --help' for more information"
1172    ;;
1173
1174  *=*)
1175    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176    # Reject names that are not valid shell variable names.
1177    case $ac_envvar in #(
1178      '' | [0-9]* | *[!_$as_cr_alnum]* )
1179      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180    esac
1181    eval $ac_envvar=\$ac_optarg
1182    export $ac_envvar ;;
1183
1184  *)
1185    # FIXME: should be removed in autoconf 3.0.
1186    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190    ;;
1191
1192  esac
1193done
1194
1195if test -n "$ac_prev"; then
1196  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197  as_fn_error $? "missing argument to $ac_option"
1198fi
1199
1200if test -n "$ac_unrecognized_opts"; then
1201  case $enable_option_checking in
1202    no) ;;
1203    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205  esac
1206fi
1207
1208# Check all directory arguments for consistency.
1209for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210                datadir sysconfdir sharedstatedir localstatedir includedir \
1211                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212                libdir localedir mandir
1213do
1214  eval ac_val=\$$ac_var
1215  # Remove trailing slashes.
1216  case $ac_val in
1217    */ )
1218      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219      eval $ac_var=\$ac_val;;
1220  esac
1221  # Be sure to have absolute directory names.
1222  case $ac_val in
1223    [\\/$]* | ?:[\\/]* )  continue;;
1224    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225  esac
1226  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238  if test "x$build_alias" = x; then
1239    cross_compiling=maybe
1240  elif test "x$build_alias" != "x$host_alias"; then
1241    cross_compiling=yes
1242  fi
1243fi
1244
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
1249
1250
1251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254  as_fn_error $? "working directory cannot be determined"
1255test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256  as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259# Find the source files, if location was not specified.
1260if test -z "$srcdir"; then
1261  ac_srcdir_defaulted=yes
1262  # Try the directory containing this script, then the parent directory.
1263  ac_confdir=`$as_dirname -- "$as_myself" ||
1264$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265         X"$as_myself" : 'X\(//\)[^/]' \| \
1266         X"$as_myself" : 'X\(//\)$' \| \
1267         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268$as_echo X"$as_myself" |
1269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270            s//\1/
1271            q
1272          }
1273          /^X\(\/\/\)[^/].*/{
1274            s//\1/
1275            q
1276          }
1277          /^X\(\/\/\)$/{
1278            s//\1/
1279            q
1280          }
1281          /^X\(\/\).*/{
1282            s//\1/
1283            q
1284          }
1285          s/.*/./; q'`
1286  srcdir=$ac_confdir
1287  if test ! -r "$srcdir/$ac_unique_file"; then
1288    srcdir=..
1289  fi
1290else
1291  ac_srcdir_defaulted=no
1292fi
1293if test ! -r "$srcdir/$ac_unique_file"; then
1294  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296fi
1297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298ac_abs_confdir=`(
1299        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300        pwd)`
1301# When building in place, set srcdir=.
1302if test "$ac_abs_confdir" = "$ac_pwd"; then
1303  srcdir=.
1304fi
1305# Remove unnecessary trailing slashes from srcdir.
1306# Double slashes in file names in object file debugging info
1307# mess up M-x gdb in Emacs.
1308case $srcdir in
1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310esac
1311for ac_var in $ac_precious_vars; do
1312  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313  eval ac_env_${ac_var}_value=\$${ac_var}
1314  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316done
1317
1318#
1319# Report the --help message.
1320#
1321if test "$ac_init_help" = "long"; then
1322  # Omit some internal or obsolete options to make the list less imposing.
1323  # This message is too long to be a string in the A/UX 3.1 sh.
1324  cat <<_ACEOF
1325\`configure' configures Rappture 1.5 to adapt to many kinds of systems.
1326
1327Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332Defaults for the options are specified in brackets.
1333
1334Configuration:
1335  -h, --help              display this help and exit
1336      --help=short        display options specific to this package
1337      --help=recursive    display the short help of all the included packages
1338  -V, --version           display version information and exit
1339  -q, --quiet, --silent   do not print \`checking ...' messages
1340      --cache-file=FILE   cache test results in FILE [disabled]
1341  -C, --config-cache      alias for \`--cache-file=config.cache'
1342  -n, --no-create         do not create output files
1343      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345Installation directories:
1346  --prefix=PREFIX         install architecture-independent files in PREFIX
1347                          [$ac_default_prefix]
1348  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                          [PREFIX]
1350
1351By default, \`make install' will install all the files in
1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354for instance \`--prefix=\$HOME'.
1355
1356For better control, use the options below.
1357
1358Fine tuning of the installation directories:
1359  --bindir=DIR            user executables [EPREFIX/bin]
1360  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1361  --libexecdir=DIR        program executables [EPREFIX/libexec]
1362  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1363  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1364  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1365  --libdir=DIR            object code libraries [EPREFIX/lib]
1366  --includedir=DIR        C header files [PREFIX/include]
1367  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1368  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1369  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1370  --infodir=DIR           info documentation [DATAROOTDIR/info]
1371  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1372  --mandir=DIR            man documentation [DATAROOTDIR/man]
1373  --docdir=DIR            documentation root [DATAROOTDIR/doc/rappture]
1374  --htmldir=DIR           html documentation [DOCDIR]
1375  --dvidir=DIR            dvi documentation [DOCDIR]
1376  --pdfdir=DIR            pdf documentation [DOCDIR]
1377  --psdir=DIR             ps documentation [DOCDIR]
1378_ACEOF
1379
1380  cat <<\_ACEOF
1381
1382X features:
1383  --x-includes=DIR    X include files are in DIR
1384  --x-libraries=DIR   X library files are in DIR
1385_ACEOF
1386fi
1387
1388if test -n "$ac_init_help"; then
1389  case $ac_init_help in
1390     short | recursive ) echo "Configuration of Rappture 1.5:";;
1391   esac
1392  cat <<\_ACEOF
1393
1394Optional Features:
1395  --disable-option-checking  ignore unrecognized --enable/--with options
1396  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398  --enable-64bit          enable 64bit support (where applicable)
1399  --enable-64bit-vis      enable 64bit Sparc VIS support
1400  --enable-corefoundation use CoreFoundation API --enable-corefoundation
1401  --disable-load          disallow dynamic loading and "load" command
1402  --enable-symbols        build with debugging symbols --disable-symbols
1403
1404Optional Packages:
1405  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1406  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1407  --with-x                use the X Window System
1408
1409Some influential environment variables:
1410  CC          C compiler command
1411  CFLAGS      C compiler flags
1412  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1413              nonstandard directory <lib dir>
1414  LIBS        libraries to pass to the linker, e.g. -l<library>
1415  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1416              you have headers in a nonstandard directory <include dir>
1417  CXX         C++ compiler command
1418  CXXFLAGS    C++ compiler flags
1419  F77         Fortran 77 compiler command
1420  FFLAGS      Fortran 77 compiler flags
1421  CPP         C preprocessor
1422  XMKMF       Path to xmkmf, Makefile generator for X Window System
1423  CXXCPP      C++ preprocessor
1424
1425Use these variables to override the choices made by `configure' or to help
1426it to find libraries and programs with nonstandard names/locations.
1427
1428Report bugs to <rappture@nanohub.org>.
1429_ACEOF
1430ac_status=$?
1431fi
1432
1433if test "$ac_init_help" = "recursive"; then
1434  # If there are subdirs, report their specific --help.
1435  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1436    test -d "$ac_dir" ||
1437      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438      continue
1439    ac_builddir=.
1440
1441case "$ac_dir" in
1442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443*)
1444  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1445  # A ".." for each directory in $ac_dir_suffix.
1446  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1447  case $ac_top_builddir_sub in
1448  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1450  esac ;;
1451esac
1452ac_abs_top_builddir=$ac_pwd
1453ac_abs_builddir=$ac_pwd$ac_dir_suffix
1454# for backward compatibility:
1455ac_top_builddir=$ac_top_build_prefix
1456
1457case $srcdir in
1458  .)  # We are building in place.
1459    ac_srcdir=.
1460    ac_top_srcdir=$ac_top_builddir_sub
1461    ac_abs_top_srcdir=$ac_pwd ;;
1462  [\\/]* | ?:[\\/]* )  # Absolute name.
1463    ac_srcdir=$srcdir$ac_dir_suffix;
1464    ac_top_srcdir=$srcdir
1465    ac_abs_top_srcdir=$srcdir ;;
1466  *) # Relative name.
1467    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1468    ac_top_srcdir=$ac_top_build_prefix$srcdir
1469    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470esac
1471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472
1473    cd "$ac_dir" || { ac_status=$?; continue; }
1474    # Check for guested configure.
1475    if test -f "$ac_srcdir/configure.gnu"; then
1476      echo &&
1477      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1478    elif test -f "$ac_srcdir/configure"; then
1479      echo &&
1480      $SHELL "$ac_srcdir/configure" --help=recursive
1481    else
1482      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483    fi || ac_status=$?
1484    cd "$ac_pwd" || { ac_status=$?; break; }
1485  done
1486fi
1487
1488test -n "$ac_init_help" && exit $ac_status
1489if $ac_init_version; then
1490  cat <<\_ACEOF
1491Rappture configure 1.5
1492generated by GNU Autoconf 2.69
1493
1494Copyright (C) 2012 Free Software Foundation, Inc.
1495This configure script is free software; the Free Software Foundation
1496gives unlimited permission to copy, distribute and modify it.
1497_ACEOF
1498  exit
1499fi
1500
1501## ------------------------ ##
1502## Autoconf initialization. ##
1503## ------------------------ ##
1504
1505# ac_fn_c_try_compile LINENO
1506# --------------------------
1507# Try to compile conftest.$ac_ext, and return whether this succeeded.
1508ac_fn_c_try_compile ()
1509{
1510  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511  rm -f conftest.$ac_objext
1512  if { { ac_try="$ac_compile"
1513case "(($ac_try" in
1514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515  *) ac_try_echo=$ac_try;;
1516esac
1517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518$as_echo "$ac_try_echo"; } >&5
1519  (eval "$ac_compile") 2>conftest.err
1520  ac_status=$?
1521  if test -s conftest.err; then
1522    grep -v '^ *+' conftest.err >conftest.er1
1523    cat conftest.er1 >&5
1524    mv -f conftest.er1 conftest.err
1525  fi
1526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527  test $ac_status = 0; } && {
1528         test -z "$ac_c_werror_flag" ||
1529         test ! -s conftest.err
1530       } && test -s conftest.$ac_objext; then :
1531  ac_retval=0
1532else
1533  $as_echo "$as_me: failed program was:" >&5
1534sed 's/^/| /' conftest.$ac_ext >&5
1535
1536        ac_retval=1
1537fi
1538  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539  as_fn_set_status $ac_retval
1540
1541} # ac_fn_c_try_compile
1542
1543# ac_fn_cxx_try_compile LINENO
1544# ----------------------------
1545# Try to compile conftest.$ac_ext, and return whether this succeeded.
1546ac_fn_cxx_try_compile ()
1547{
1548  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549  rm -f conftest.$ac_objext
1550  if { { ac_try="$ac_compile"
1551case "(($ac_try" in
1552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553  *) ac_try_echo=$ac_try;;
1554esac
1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556$as_echo "$ac_try_echo"; } >&5
1557  (eval "$ac_compile") 2>conftest.err
1558  ac_status=$?
1559  if test -s conftest.err; then
1560    grep -v '^ *+' conftest.err >conftest.er1
1561    cat conftest.er1 >&5
1562    mv -f conftest.er1 conftest.err
1563  fi
1564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565  test $ac_status = 0; } && {
1566         test -z "$ac_cxx_werror_flag" ||
1567         test ! -s conftest.err
1568       } && test -s conftest.$ac_objext; then :
1569  ac_retval=0
1570else
1571  $as_echo "$as_me: failed program was:" >&5
1572sed 's/^/| /' conftest.$ac_ext >&5
1573
1574        ac_retval=1
1575fi
1576  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577  as_fn_set_status $ac_retval
1578
1579} # ac_fn_cxx_try_compile
1580
1581# ac_fn_f77_try_compile LINENO
1582# ----------------------------
1583# Try to compile conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_f77_try_compile ()
1585{
1586  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587  rm -f conftest.$ac_objext
1588  if { { ac_try="$ac_compile"
1589case "(($ac_try" in
1590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591  *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595  (eval "$ac_compile") 2>conftest.err
1596  ac_status=$?
1597  if test -s conftest.err; then
1598    grep -v '^ *+' conftest.err >conftest.er1
1599    cat conftest.er1 >&5
1600    mv -f conftest.er1 conftest.err
1601  fi
1602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603  test $ac_status = 0; } && {
1604         test -z "$ac_f77_werror_flag" ||
1605         test ! -s conftest.err
1606       } && test -s conftest.$ac_objext; then :
1607  ac_retval=0
1608else
1609  $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612        ac_retval=1
1613fi
1614  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615  as_fn_set_status $ac_retval
1616
1617} # ac_fn_f77_try_compile
1618
1619# ac_fn_c_try_cpp LINENO
1620# ----------------------
1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_cpp ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  if { { ac_try="$ac_cpp conftest.$ac_ext"
1626case "(($ac_try" in
1627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628  *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633  ac_status=$?
1634  if test -s conftest.err; then
1635    grep -v '^ *+' conftest.err >conftest.er1
1636    cat conftest.er1 >&5
1637    mv -f conftest.er1 conftest.err
1638  fi
1639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640  test $ac_status = 0; } > conftest.i && {
1641         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642         test ! -s conftest.err
1643       }; then :
1644  ac_retval=0
1645else
1646  $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649    ac_retval=1
1650fi
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652  as_fn_set_status $ac_retval
1653
1654} # ac_fn_c_try_cpp
1655
1656# ac_fn_c_try_run LINENO
1657# ----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659# that executables *can* be run.
1660ac_fn_c_try_run ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_link") 2>&5
1671  ac_status=$?
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674  { { case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_try") 2>&5
1681  ac_status=$?
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; }; }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: program exited with status $ac_status" >&5
1687       $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690       ac_retval=$ac_status
1691fi
1692  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_run
1697
1698# ac_fn_c_try_link LINENO
1699# -----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_link ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  rm -f conftest.$ac_objext conftest$ac_exeext
1705  if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_link") 2>conftest.err
1713  ac_status=$?
1714  if test -s conftest.err; then
1715    grep -v '^ *+' conftest.err >conftest.er1
1716    cat conftest.er1 >&5
1717    mv -f conftest.er1 conftest.err
1718  fi
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } && {
1721         test -z "$ac_c_werror_flag" ||
1722         test ! -s conftest.err
1723       } && test -s conftest$ac_exeext && {
1724         test "$cross_compiling" = yes ||
1725         test -x conftest$ac_exeext
1726       }; then :
1727  ac_retval=0
1728else
1729  $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732        ac_retval=1
1733fi
1734  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736  # interfere with the next link command; also delete a directory that is
1737  # left behind by Apple's compiler.  We do this before executing the actions.
1738  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740  as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_link
1743
1744# ac_fn_c_check_func LINENO FUNC VAR
1745# ----------------------------------
1746# Tests whether FUNC exists, setting the cache variable VAR accordingly
1747ac_fn_c_check_func ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1759#define $2 innocuous_$2
1760
1761/* System header to define __stub macros and hopefully few prototypes,
1762    which can conflict with char $2 (); below.
1763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1764    <limits.h> exists even on freestanding compilers.  */
1765
1766#ifdef __STDC__
1767# include <limits.h>
1768#else
1769# include <assert.h>
1770#endif
1771
1772#undef $2
1773
1774/* Override any GCC internal prototype to avoid an error.
1775   Use char because int might match the return type of a GCC
1776   builtin and then its argument prototype would still apply.  */
1777#ifdef __cplusplus
1778extern "C"
1779#endif
1780char $2 ();
1781/* The GNU C library defines this for functions which it implements
1782    to always fail with ENOSYS.  Some functions are actually named
1783    something starting with __ and the normal name is an alias.  */
1784#if defined __stub_$2 || defined __stub___$2
1785choke me
1786#endif
1787
1788int
1789main ()
1790{
1791return $2 ();
1792  ;
1793  return 0;
1794}
1795_ACEOF
1796if ac_fn_c_try_link "$LINENO"; then :
1797  eval "$3=yes"
1798else
1799  eval "$3=no"
1800fi
1801rm -f core conftest.err conftest.$ac_objext \
1802    conftest$ac_exeext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_func
1810
1811# ac_fn_cxx_try_cpp LINENO
1812# ------------------------
1813# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814ac_fn_cxx_try_cpp ()
1815{
1816  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817  if { { ac_try="$ac_cpp conftest.$ac_ext"
1818case "(($ac_try" in
1819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1820  *) ac_try_echo=$ac_try;;
1821esac
1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1823$as_echo "$ac_try_echo"; } >&5
1824  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1825  ac_status=$?
1826  if test -s conftest.err; then
1827    grep -v '^ *+' conftest.err >conftest.er1
1828    cat conftest.er1 >&5
1829    mv -f conftest.er1 conftest.err
1830  fi
1831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832  test $ac_status = 0; } > conftest.i && {
1833         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1834         test ! -s conftest.err
1835       }; then :
1836  ac_retval=0
1837else
1838  $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841    ac_retval=1
1842fi
1843  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844  as_fn_set_status $ac_retval
1845
1846} # ac_fn_cxx_try_cpp
1847
1848# ac_fn_cxx_try_link LINENO
1849# -------------------------
1850# Try to link conftest.$ac_ext, and return whether this succeeded.
1851ac_fn_cxx_try_link ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  rm -f conftest.$ac_objext conftest$ac_exeext
1855  if { { ac_try="$ac_link"
1856case "(($ac_try" in
1857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858  *) ac_try_echo=$ac_try;;
1859esac
1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861$as_echo "$ac_try_echo"; } >&5
1862  (eval "$ac_link") 2>conftest.err
1863  ac_status=$?
1864  if test -s conftest.err; then
1865    grep -v '^ *+' conftest.err >conftest.er1
1866    cat conftest.er1 >&5
1867    mv -f conftest.er1 conftest.err
1868  fi
1869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870  test $ac_status = 0; } && {
1871         test -z "$ac_cxx_werror_flag" ||
1872         test ! -s conftest.err
1873       } && test -s conftest$ac_exeext && {
1874         test "$cross_compiling" = yes ||
1875         test -x conftest$ac_exeext
1876       }; then :
1877  ac_retval=0
1878else
1879  $as_echo "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882        ac_retval=1
1883fi
1884  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886  # interfere with the next link command; also delete a directory that is
1887  # left behind by Apple's compiler.  We do this before executing the actions.
1888  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890  as_fn_set_status $ac_retval
1891
1892} # ac_fn_cxx_try_link
1893
1894# ac_fn_cxx_try_run LINENO
1895# ------------------------
1896# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1897# that executables *can* be run.
1898ac_fn_cxx_try_run ()
1899{
1900  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901  if { { ac_try="$ac_link"
1902case "(($ac_try" in
1903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904  *) ac_try_echo=$ac_try;;
1905esac
1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907$as_echo "$ac_try_echo"; } >&5
1908  (eval "$ac_link") 2>&5
1909  ac_status=$?
1910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1912  { { case "(($ac_try" in
1913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914  *) ac_try_echo=$ac_try;;
1915esac
1916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917$as_echo "$ac_try_echo"; } >&5
1918  (eval "$ac_try") 2>&5
1919  ac_status=$?
1920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921  test $ac_status = 0; }; }; then :
1922  ac_retval=0
1923else
1924  $as_echo "$as_me: program exited with status $ac_status" >&5
1925       $as_echo "$as_me: failed program was:" >&5
1926sed 's/^/| /' conftest.$ac_ext >&5
1927
1928       ac_retval=$ac_status
1929fi
1930  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932  as_fn_set_status $ac_retval
1933
1934} # ac_fn_cxx_try_run
1935
1936# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1937# ---------------------------------------------------------
1938# Tests whether HEADER exists and can be compiled using the include files in
1939# INCLUDES, setting the cache variable VAR accordingly.
1940ac_fn_cxx_check_header_compile ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946  $as_echo_n "(cached) " >&6
1947else
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950$4
1951#include <$2>
1952_ACEOF
1953if ac_fn_cxx_try_compile "$LINENO"; then :
1954  eval "$3=yes"
1955else
1956  eval "$3=no"
1957fi
1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959fi
1960eval ac_res=\$$3
1961               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962$as_echo "$ac_res" >&6; }
1963  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964
1965} # ac_fn_cxx_check_header_compile
1966
1967# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
1968# ----------------------------------------------
1969# Tries to find the compile-time value of EXPR in a program that includes
1970# INCLUDES, setting VAR accordingly. Returns whether the value could be
1971# computed
1972ac_fn_cxx_compute_int ()
1973{
1974  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975  if test "$cross_compiling" = yes; then
1976    # Depending upon the size, compute the lo and hi bounds.
1977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978/* end confdefs.h.  */
1979$4
1980int
1981main ()
1982{
1983static int test_array [1 - 2 * !(($2) >= 0)];
1984test_array [0] = 0;
1985return test_array [0];
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991if ac_fn_cxx_try_compile "$LINENO"; then :
1992  ac_lo=0 ac_mid=0
1993  while :; do
1994    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996$4
1997int
1998main ()
1999{
2000static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2001test_array [0] = 0;
2002return test_array [0];
2003
2004  ;
2005  return 0;
2006}
2007_ACEOF
2008if ac_fn_cxx_try_compile "$LINENO"; then :
2009  ac_hi=$ac_mid; break
2010else
2011  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2012                        if test $ac_lo -le $ac_mid; then
2013                          ac_lo= ac_hi=
2014                          break
2015                        fi
2016                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019  done
2020else
2021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h.  */
2023$4
2024int
2025main ()
2026{
2027static int test_array [1 - 2 * !(($2) < 0)];
2028test_array [0] = 0;
2029return test_array [0];
2030
2031  ;
2032  return 0;
2033}
2034_ACEOF
2035if ac_fn_cxx_try_compile "$LINENO"; then :
2036  ac_hi=-1 ac_mid=-1
2037  while :; do
2038    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h.  */
2040$4
2041int
2042main ()
2043{
2044static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2045test_array [0] = 0;
2046return test_array [0];
2047
2048  ;
2049  return 0;
2050}
2051_ACEOF
2052if ac_fn_cxx_try_compile "$LINENO"; then :
2053  ac_lo=$ac_mid; break
2054else
2055  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2056                        if test $ac_mid -le $ac_hi; then
2057                          ac_lo= ac_hi=
2058                          break
2059                        fi
2060                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2061fi
2062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063  done
2064else
2065  ac_lo= ac_hi=
2066fi
2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070# Binary search between lo and hi bounds.
2071while test "x$ac_lo" != "x$ac_hi"; do
2072  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h.  */
2075$4
2076int
2077main ()
2078{
2079static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080test_array [0] = 0;
2081return test_array [0];
2082
2083  ;
2084  return 0;
2085}
2086_ACEOF
2087if ac_fn_cxx_try_compile "$LINENO"; then :
2088  ac_hi=$ac_mid
2089else
2090  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093done
2094case $ac_lo in #((
2095?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2096'') ac_retval=1 ;;
2097esac
2098  else
2099    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h.  */
2101$4
2102static long int longval () { return $2; }
2103static unsigned long int ulongval () { return $2; }
2104#include <stdio.h>
2105#include <stdlib.h>
2106int
2107main ()
2108{
2109
2110  FILE *f = fopen ("conftest.val", "w");
2111  if (! f)
2112    return 1;
2113  if (($2) < 0)
2114    {
2115      long int i = longval ();
2116      if (i != ($2))
2117        return 1;
2118      fprintf (f, "%ld", i);
2119    }
2120  else
2121    {
2122      unsigned long int i = ulongval ();
2123      if (i != ($2))
2124        return 1;
2125      fprintf (f, "%lu", i);
2126    }
2127  /* Do not output a trailing newline, as this causes \r\n confusion
2128     on some platforms.  */
2129  return ferror (f) || fclose (f) != 0;
2130
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_cxx_try_run "$LINENO"; then :
2136  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2137else
2138  ac_retval=1
2139fi
2140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2141  conftest.$ac_objext conftest.beam conftest.$ac_ext
2142rm -f conftest.val
2143
2144  fi
2145  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146  as_fn_set_status $ac_retval
2147
2148} # ac_fn_cxx_compute_int
2149
2150# ac_fn_cxx_check_func LINENO FUNC VAR
2151# ------------------------------------
2152# Tests whether FUNC exists, setting the cache variable VAR accordingly
2153ac_fn_cxx_check_func ()
2154{
2155  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157$as_echo_n "checking for $2... " >&6; }
2158if eval \${$3+:} false; then :
2159  $as_echo_n "(cached) " >&6
2160else
2161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162/* end confdefs.h.  */
2163/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2164   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2165#define $2 innocuous_$2
2166
2167/* System header to define __stub macros and hopefully few prototypes,
2168    which can conflict with char $2 (); below.
2169    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2170    <limits.h> exists even on freestanding compilers.  */
2171
2172#ifdef __STDC__
2173# include <limits.h>
2174#else
2175# include <assert.h>
2176#endif
2177
2178#undef $2
2179
2180/* Override any GCC internal prototype to avoid an error.
2181   Use char because int might match the return type of a GCC
2182   builtin and then its argument prototype would still apply.  */
2183#ifdef __cplusplus
2184extern "C"
2185#endif
2186char $2 ();
2187/* The GNU C library defines this for functions which it implements
2188    to always fail with ENOSYS.  Some functions are actually named
2189    something starting with __ and the normal name is an alias.  */
2190#if defined __stub_$2 || defined __stub___$2
2191choke me
2192#endif
2193
2194int
2195main ()
2196{
2197return $2 ();
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202if ac_fn_cxx_try_link "$LINENO"; then :
2203  eval "$3=yes"
2204else
2205  eval "$3=no"
2206fi
2207rm -f core conftest.err conftest.$ac_objext \
2208    conftest$ac_exeext conftest.$ac_ext
2209fi
2210eval ac_res=\$$3
2211               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212$as_echo "$ac_res" >&6; }
2213  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215} # ac_fn_cxx_check_func
2216
2217# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2218# ---------------------------------------------------------
2219# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2220# the include files in INCLUDES and setting the cache variable VAR
2221# accordingly.
2222ac_fn_cxx_check_header_mongrel ()
2223{
2224  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225  if eval \${$3+:} false; then :
2226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227$as_echo_n "checking for $2... " >&6; }
2228if eval \${$3+:} false; then :
2229  $as_echo_n "(cached) " >&6
2230fi
2231eval ac_res=\$$3
2232               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233$as_echo "$ac_res" >&6; }
2234else
2235  # Is the header compilable?
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2237$as_echo_n "checking $2 usability... " >&6; }
2238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h.  */
2240$4
2241#include <$2>
2242_ACEOF
2243if ac_fn_cxx_try_compile "$LINENO"; then :
2244  ac_header_compiler=yes
2245else
2246  ac_header_compiler=no
2247fi
2248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2250$as_echo "$ac_header_compiler" >&6; }
2251
2252# Is the header present?
2253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2254$as_echo_n "checking $2 presence... " >&6; }
2255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256/* end confdefs.h.  */
2257#include <$2>
2258_ACEOF
2259if ac_fn_cxx_try_cpp "$LINENO"; then :
2260  ac_header_preproc=yes
2261else
2262  ac_header_preproc=no
2263fi
2264rm -f conftest.err conftest.i conftest.$ac_ext
2265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2266$as_echo "$ac_header_preproc" >&6; }
2267
2268# So?  What about this header?
2269case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2270  yes:no: )
2271    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2272$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2273    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2274$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2275    ;;
2276  no:yes:* )
2277    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2278$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2279    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2280$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2281    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2282$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2283    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2284$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2285    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2286$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2287( $as_echo "## ----------------------------------- ##
2288## Report this to rappture@nanohub.org ##
2289## ----------------------------------- ##"
2290     ) | sed "s/^/$as_me: WARNING:     /" >&2
2291    ;;
2292esac
2293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294$as_echo_n "checking for $2... " >&6; }
2295if eval \${$3+:} false; then :
2296  $as_echo_n "(cached) " >&6
2297else
2298  eval "$3=\$ac_header_compiler"
2299fi
2300eval ac_res=\$$3
2301               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302$as_echo "$ac_res" >&6; }
2303fi
2304  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305
2306} # ac_fn_cxx_check_header_mongrel
2307cat >config.log <<_ACEOF
2308This file contains any messages produced by compilers while
2309running configure, to aid debugging if configure makes a mistake.
2310
2311It was created by Rappture $as_me 1.5, which was
2312generated by GNU Autoconf 2.69.  Invocation command line was
2313
2314  $ $0 $@
2315
2316_ACEOF
2317exec 5>>config.log
2318{
2319cat <<_ASUNAME
2320## --------- ##
2321## Platform. ##
2322## --------- ##
2323
2324hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328uname -v = `(uname -v) 2>/dev/null || echo unknown`
2329
2330/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2332
2333/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2334/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2335/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2337/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2338/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2339/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2340
2341_ASUNAME
2342
2343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346  IFS=$as_save_IFS
2347  test -z "$as_dir" && as_dir=.
2348    $as_echo "PATH: $as_dir"
2349  done
2350IFS=$as_save_IFS
2351
2352} >&5
2353
2354cat >&5 <<_ACEOF
2355
2356
2357## ----------- ##
2358## Core tests. ##
2359## ----------- ##
2360
2361_ACEOF
2362
2363
2364# Keep a trace of the command line.
2365# Strip out --no-create and --no-recursion so they do not pile up.
2366# Strip out --silent because we don't want to record it for future runs.
2367# Also quote any args containing shell meta-characters.
2368# Make two passes to allow for proper duplicate-argument suppression.
2369ac_configure_args=
2370ac_configure_args0=
2371ac_configure_args1=
2372ac_must_keep_next=false
2373for ac_pass in 1 2
2374do
2375  for ac_arg
2376  do
2377    case $ac_arg in
2378    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380    | -silent | --silent | --silen | --sile | --sil)
2381      continue ;;
2382    *\'*)
2383      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2384    esac
2385    case $ac_pass in
2386    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2387    2)
2388      as_fn_append ac_configure_args1 " '$ac_arg'"
2389      if test $ac_must_keep_next = true; then
2390        ac_must_keep_next=false # Got value, back to normal.
2391      else
2392        case $ac_arg in
2393          *=* | --config-cache | -C | -disable-* | --disable-* \
2394          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396          | -with-* | --with-* | -without-* | --without-* | --x)
2397            case "$ac_configure_args0 " in
2398              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399            esac
2400            ;;
2401          -* ) ac_must_keep_next=true ;;
2402        esac
2403      fi
2404      as_fn_append ac_configure_args " '$ac_arg'"
2405      ;;
2406    esac
2407  done
2408done
2409{ ac_configure_args0=; unset ac_configure_args0;}
2410{ ac_configure_args1=; unset ac_configure_args1;}
2411
2412# When interrupted or exit'd, cleanup temporary files, and complete
2413# config.log.  We remove comments because anyway the quotes in there
2414# would cause problems or look ugly.
2415# WARNING: Use '\'' to represent an apostrophe within the trap.
2416# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417trap 'exit_status=$?
2418  # Save into config.log some information that might help in debugging.
2419  {
2420    echo
2421
2422    $as_echo "## ---------------- ##
2423## Cache variables. ##
2424## ---------------- ##"
2425    echo
2426    # The following way of writing the cache mishandles newlines in values,
2427(
2428  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429    eval ac_val=\$$ac_var
2430    case $ac_val in #(
2431    *${as_nl}*)
2432      case $ac_var in #(
2433      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2435      esac
2436      case $ac_var in #(
2437      _ | IFS | as_nl) ;; #(
2438      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439      *) { eval $ac_var=; unset $ac_var;} ;;
2440      esac ;;
2441    esac
2442  done
2443  (set) 2>&1 |
2444    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445    *${as_nl}ac_space=\ *)
2446      sed -n \
2447        "s/'\''/'\''\\\\'\'''\''/g;
2448          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449      ;; #(
2450    *)
2451      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2452      ;;
2453    esac |
2454    sort
2455)
2456    echo
2457
2458    $as_echo "## ----------------- ##
2459## Output variables. ##
2460## ----------------- ##"
2461    echo
2462    for ac_var in $ac_subst_vars
2463    do
2464      eval ac_val=\$$ac_var
2465      case $ac_val in
2466      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467      esac
2468      $as_echo "$ac_var='\''$ac_val'\''"
2469    done | sort
2470    echo
2471
2472    if test -n "$ac_subst_files"; then
2473      $as_echo "## ------------------- ##
2474## File substitutions. ##
2475## ------------------- ##"
2476      echo
2477      for ac_var in $ac_subst_files
2478      do
2479        eval ac_val=\$$ac_var
2480        case $ac_val in
2481        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482        esac
2483        $as_echo "$ac_var='\''$ac_val'\''"
2484      done | sort
2485      echo
2486    fi
2487
2488    if test -s confdefs.h; then
2489      $as_echo "## ----------- ##
2490## confdefs.h. ##
2491## ----------- ##"
2492      echo
2493      cat confdefs.h
2494      echo
2495    fi
2496    test "$ac_signal" != 0 &&
2497      $as_echo "$as_me: caught signal $ac_signal"
2498    $as_echo "$as_me: exit $exit_status"
2499  } >&5
2500  rm -f core *.core core.conftest.* &&
2501    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2502    exit $exit_status
2503' 0
2504for ac_signal in 1 2 13 15; do
2505  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2506done
2507ac_signal=0
2508
2509# confdefs.h avoids OS command line length limits that DEFS can exceed.
2510rm -f -r conftest* confdefs.h
2511
2512$as_echo "/* confdefs.h */" > confdefs.h
2513
2514# Predefined preprocessor variables.
2515
2516cat >>confdefs.h <<_ACEOF
2517#define PACKAGE_NAME "$PACKAGE_NAME"
2518_ACEOF
2519
2520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2522_ACEOF
2523
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_VERSION "$PACKAGE_VERSION"
2526_ACEOF
2527
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_STRING "$PACKAGE_STRING"
2530_ACEOF
2531
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2534_ACEOF
2535
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_URL "$PACKAGE_URL"
2538_ACEOF
2539
2540
2541# Let the site file select an alternate cache file if it wants to.
2542# Prefer an explicitly selected file to automatically selected ones.
2543ac_site_file1=NONE
2544ac_site_file2=NONE
2545if test -n "$CONFIG_SITE"; then
2546  # We do not want a PATH search for config.site.
2547  case $CONFIG_SITE in #((
2548    -*)  ac_site_file1=./$CONFIG_SITE;;
2549    */*) ac_site_file1=$CONFIG_SITE;;
2550    *)   ac_site_file1=./$CONFIG_SITE;;
2551  esac
2552elif test "x$prefix" != xNONE; then
2553  ac_site_file1=$prefix/share/config.site
2554  ac_site_file2=$prefix/etc/config.site
2555else
2556  ac_site_file1=$ac_default_prefix/share/config.site
2557  ac_site_file2=$ac_default_prefix/etc/config.site
2558fi
2559for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2560do
2561  test "x$ac_site_file" = xNONE && continue
2562  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565    sed 's/^/| /' "$ac_site_file" >&5
2566    . "$ac_site_file" \
2567      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569as_fn_error $? "failed to load site script $ac_site_file
2570See \`config.log' for more details" "$LINENO" 5; }
2571  fi
2572done
2573
2574if test -r "$cache_file"; then
2575  # Some versions of bash will fail to source /dev/null (special files
2576  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2577  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579$as_echo "$as_me: loading cache $cache_file" >&6;}
2580    case $cache_file in
2581      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582      *)                      . "./$cache_file";;
2583    esac
2584  fi
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587$as_echo "$as_me: creating cache $cache_file" >&6;}
2588  >$cache_file
2589fi
2590
2591# Check that the precious variables saved in the cache have kept the same
2592# value.
2593ac_cache_corrupted=false
2594for ac_var in $ac_precious_vars; do
2595  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596  eval ac_new_set=\$ac_env_${ac_var}_set
2597  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598  eval ac_new_val=\$ac_env_${ac_var}_value
2599  case $ac_old_set,$ac_new_set in
2600    set,)
2601      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603      ac_cache_corrupted=: ;;
2604    ,set)
2605      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607      ac_cache_corrupted=: ;;
2608    ,);;
2609    *)
2610      if test "x$ac_old_val" != "x$ac_new_val"; then
2611        # differences in whitespace do not lead to failure.
2612        ac_old_val_w=`echo x $ac_old_val`
2613        ac_new_val_w=`echo x $ac_new_val`
2614        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617          ac_cache_corrupted=:
2618        else
2619          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621          eval $ac_var=\$ac_old_val
2622        fi
2623        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2624$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2625        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2626$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2627      fi;;
2628  esac
2629  # Pass precious variables to config.status.
2630  if test "$ac_new_set" = set; then
2631    case $ac_new_val in
2632    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633    *) ac_arg=$ac_var=$ac_new_val ;;
2634    esac
2635    case " $ac_configure_args " in
2636      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2637      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638    esac
2639  fi
2640done
2641if $ac_cache_corrupted; then
2642  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647fi
2648## -------------------- ##
2649## Main body of script. ##
2650## -------------------- ##
2651
2652ac_ext=c
2653ac_cpp='$CPP $CPPFLAGS'
2654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657
2658
2659ac_aux_dir=
2660for ac_dir in cf "$srcdir"/cf; do
2661  if test -f "$ac_dir/install-sh"; then
2662    ac_aux_dir=$ac_dir
2663    ac_install_sh="$ac_aux_dir/install-sh -c"
2664    break
2665  elif test -f "$ac_dir/install.sh"; then
2666    ac_aux_dir=$ac_dir
2667    ac_install_sh="$ac_aux_dir/install.sh -c"
2668    break
2669  elif test -f "$ac_dir/shtool"; then
2670    ac_aux_dir=$ac_dir
2671    ac_install_sh="$ac_aux_dir/shtool install -c"
2672    break
2673  fi
2674done
2675if test -z "$ac_aux_dir"; then
2676  as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
2677fi
2678
2679# These three variables are undocumented and unsupported,
2680# and are intended to be withdrawn in a future Autoconf release.
2681# They can cause serious problems if a builder's source tree is in a directory
2682# whose full name contains unusual characters.
2683ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2684ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2685ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2686
2687
2688ac_config_headers="$ac_config_headers config.h"
2689
2690
2691# Find a good install program.  We prefer a C program (faster),
2692# so one script is as good as another.  But avoid the broken or
2693# incompatible versions:
2694# SysV /etc/install, /usr/sbin/install
2695# SunOS /usr/etc/install
2696# IRIX /sbin/install
2697# AIX /bin/install
2698# AmigaOS /C/install, which installs bootblocks on floppy discs
2699# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2700# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2701# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2702# OS/2's system install, which has a completely different semantic
2703# ./install, which can be erroneously created by make from ./install.sh.
2704# Reject install programs that cannot install multiple files.
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2706$as_echo_n "checking for a BSD-compatible install... " >&6; }
2707if test -z "$INSTALL"; then
2708if ${ac_cv_path_install+:} false; then :
2709  $as_echo_n "(cached) " >&6
2710else
2711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714  IFS=$as_save_IFS
2715  test -z "$as_dir" && as_dir=.
2716    # Account for people who put trailing slashes in PATH elements.
2717case $as_dir/ in #((
2718  ./ | .// | /[cC]/* | \
2719  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2720  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2721  /usr/ucb/* ) ;;
2722  *)
2723    # OSF1 and SCO ODT 3.0 have their own names for install.
2724    # Don't use installbsd from OSF since it installs stuff as root
2725    # by default.
2726    for ac_prog in ginstall scoinst install; do
2727      for ac_exec_ext in '' $ac_executable_extensions; do
2728        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2729          if test $ac_prog = install &&
2730            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731            # AIX install.  It has an incompatible calling convention.
2732            :
2733          elif test $ac_prog = install &&
2734            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2735            # program-specific install script used by HP pwplus--don't use.
2736            :
2737          else
2738            rm -rf conftest.one conftest.two conftest.dir
2739            echo one > conftest.one
2740            echo two > conftest.two
2741            mkdir conftest.dir
2742            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2743              test -s conftest.one && test -s conftest.two &&
2744              test -s conftest.dir/conftest.one &&
2745              test -s conftest.dir/conftest.two
2746            then
2747              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2748              break 3
2749            fi
2750          fi
2751        fi
2752      done
2753    done
2754    ;;
2755esac
2756
2757  done
2758IFS=$as_save_IFS
2759
2760rm -rf conftest.one conftest.two conftest.dir
2761
2762fi
2763  if test "${ac_cv_path_install+set}" = set; then
2764    INSTALL=$ac_cv_path_install
2765  else
2766    # As a last resort, use the slow shell script.  Don't cache a
2767    # value for INSTALL within a source directory, because that will
2768    # break other packages using the cache if that directory is
2769    # removed, or if the value is a relative name.
2770    INSTALL=$ac_install_sh
2771  fi
2772fi
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2774$as_echo "$INSTALL" >&6; }
2775
2776# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2777# It thinks the first close brace ends the variable substitution.
2778test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2779
2780test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2781
2782test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2783
2784if test -n "$ac_tool_prefix"; then
2785  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788$as_echo_n "checking for $ac_word... " >&6; }
2789if ${ac_cv_prog_RANLIB+:} false; then :
2790  $as_echo_n "(cached) " >&6
2791else
2792  if test -n "$RANLIB"; then
2793  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807  done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812RANLIB=$ac_cv_prog_RANLIB
2813if test -n "$RANLIB"; then
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2815$as_echo "$RANLIB" >&6; }
2816else
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819fi
2820
2821
2822fi
2823if test -z "$ac_cv_prog_RANLIB"; then
2824  ac_ct_RANLIB=$RANLIB
2825  # Extract the first word of "ranlib", so it can be a program name with args.
2826set dummy ranlib; ac_word=$2
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828$as_echo_n "checking for $ac_word... " >&6; }
2829if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  if test -n "$ac_ct_RANLIB"; then
2833  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838  IFS=$as_save_IFS
2839  test -z "$as_dir" && as_dir=.
2840    for ac_exec_ext in '' $ac_executable_extensions; do
2841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842    ac_cv_prog_ac_ct_RANLIB="ranlib"
2843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844    break 2
2845  fi
2846done
2847  done
2848IFS=$as_save_IFS
2849
2850fi
2851fi
2852ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2853if test -n "$ac_ct_RANLIB"; then
2854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2855$as_echo "$ac_ct_RANLIB" >&6; }
2856else
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
2859fi
2860
2861  if test "x$ac_ct_RANLIB" = x; then
2862    RANLIB=":"
2863  else
2864    case $cross_compiling:$ac_tool_warned in
2865yes:)
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2868ac_tool_warned=yes ;;
2869esac
2870    RANLIB=$ac_ct_RANLIB
2871  fi
2872else
2873  RANLIB="$ac_cv_prog_RANLIB"
2874fi
2875
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2877$as_echo_n "checking whether ln -s works... " >&6; }
2878LN_S=$as_ln_s
2879if test "$LN_S" = "ln -s"; then
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881$as_echo "yes" >&6; }
2882else
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2884$as_echo "no, using $LN_S" >&6; }
2885fi
2886
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2888$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2889if test -z "$MKDIR_P"; then
2890  if ${ac_cv_path_mkdir+:} false; then :
2891  $as_echo_n "(cached) " >&6
2892else
2893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2895do
2896  IFS=$as_save_IFS
2897  test -z "$as_dir" && as_dir=.
2898    for ac_prog in mkdir gmkdir; do
2899         for ac_exec_ext in '' $ac_executable_extensions; do
2900           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2901           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2902             'mkdir (GNU coreutils) '* | \
2903             'mkdir (coreutils) '* | \
2904             'mkdir (fileutils) '4.1*)
2905               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2906               break 3;;
2907           esac
2908         done
2909       done
2910  done
2911IFS=$as_save_IFS
2912
2913fi
2914
2915  test -d ./--version && rmdir ./--version
2916  if test "${ac_cv_path_mkdir+set}" = set; then
2917    MKDIR_P="$ac_cv_path_mkdir -p"
2918  else
2919    # As a last resort, use the slow shell script.  Don't cache a
2920    # value for MKDIR_P within a source directory, because that will
2921    # break other packages using the cache if that directory is
2922    # removed, or if the value is a relative name.
2923    MKDIR_P="$ac_install_sh -d"
2924  fi
2925fi
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2927$as_echo "$MKDIR_P" >&6; }
2928
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2930$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2931set x ${MAKE-make}
2932ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2933if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  cat >conftest.make <<\_ACEOF
2937SHELL = /bin/sh
2938all:
2939        @echo '@@@%%%=$(MAKE)=@@@%%%'
2940_ACEOF
2941# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2942case `${MAKE-make} -f conftest.make 2>/dev/null` in
2943  *@@@%%%=?*=@@@%%%*)
2944    eval ac_cv_prog_make_${ac_make}_set=yes;;
2945  *)
2946    eval ac_cv_prog_make_${ac_make}_set=no;;
2947esac
2948rm -f conftest.make
2949fi
2950if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952$as_echo "yes" >&6; }
2953  SET_MAKE=
2954else
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957  SET_MAKE="MAKE=${MAKE-make}"
2958fi
2959
2960
2961# Check for C, C++, and FORTRAN
2962ac_ext=c
2963ac_cpp='$CPP $CPPFLAGS'
2964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967if test -n "$ac_tool_prefix"; then
2968  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2969set dummy ${ac_tool_prefix}gcc; ac_word=$2
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if ${ac_cv_prog_CC+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  if test -n "$CC"; then
2976  ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981  IFS=$as_save_IFS
2982  test -z "$as_dir" && as_dir=.
2983    for ac_exec_ext in '' $ac_executable_extensions; do
2984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987    break 2
2988  fi
2989done
2990  done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995CC=$ac_cv_prog_CC
2996if test -n "$CC"; then
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998$as_echo "$CC" >&6; }
2999else
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001$as_echo "no" >&6; }
3002fi
3003
3004
3005fi
3006if test -z "$ac_cv_prog_CC"; then
3007  ac_ct_CC=$CC
3008  # Extract the first word of "gcc", so it can be a program name with args.
3009set dummy gcc; ac_word=$2
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011$as_echo_n "checking for $ac_word... " >&6; }
3012if ${ac_cv_prog_ac_ct_CC+:} false; then :
3013  $as_echo_n "(cached) " >&6
3014else
3015  if test -n "$ac_ct_CC"; then
3016  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017else
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021  IFS=$as_save_IFS
3022  test -z "$as_dir" && as_dir=.
3023    for ac_exec_ext in '' $ac_executable_extensions; do
3024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025    ac_cv_prog_ac_ct_CC="gcc"
3026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027    break 2
3028  fi
3029done
3030  done
3031IFS=$as_save_IFS
3032
3033fi
3034fi
3035ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036if test -n "$ac_ct_CC"; then
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038$as_echo "$ac_ct_CC" >&6; }
3039else
3040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041$as_echo "no" >&6; }
3042fi
3043
3044  if test "x$ac_ct_CC" = x; then
3045    CC=""
3046  else
3047    case $cross_compiling:$ac_tool_warned in
3048yes:)
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051ac_tool_warned=yes ;;
3052esac
3053    CC=$ac_ct_CC
3054  fi
3055else
3056  CC="$ac_cv_prog_CC"
3057fi
3058
3059if test -z "$CC"; then
3060          if test -n "$ac_tool_prefix"; then
3061    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3062set dummy ${ac_tool_prefix}cc; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$CC"; then
3069  ac_cv_prog_CC="$CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_CC="${ac_tool_prefix}cc"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098  fi
3099fi
3100if test -z "$CC"; then
3101  # Extract the first word of "cc", so it can be a program name with args.
3102set dummy cc; ac_word=$2
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104$as_echo_n "checking for $ac_word... " >&6; }
3105if ${ac_cv_prog_CC+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  if test -n "$CC"; then
3109  ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
3111  ac_prog_rejected=no
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115  IFS=$as_save_IFS
3116  test -z "$as_dir" && as_dir=.
3117    for ac_exec_ext in '' $ac_executable_extensions; do
3118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3120       ac_prog_rejected=yes
3121       continue
3122     fi
3123    ac_cv_prog_CC="cc"
3124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125    break 2
3126  fi
3127done
3128  done
3129IFS=$as_save_IFS
3130
3131if test $ac_prog_rejected = yes; then
3132  # We found a bogon in the path, so make sure we never use it.
3133  set dummy $ac_cv_prog_CC
3134  shift
3135  if test $# != 0; then
3136    # We chose a different compiler from the bogus one.
3137    # However, it has the same basename, so the bogon will be chosen
3138    # first if we set CC to just the basename; use the full file name.
3139    shift
3140    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141  fi
3142fi
3143fi
3144fi
3145CC=$ac_cv_prog_CC
3146if test -n "$CC"; then
3147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148$as_echo "$CC" >&6; }
3149else
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154
3155fi
3156if test -z "$CC"; then
3157  if test -n "$ac_tool_prefix"; then
3158  for ac_prog in cl.exe
3159  do
3160    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163$as_echo_n "checking for $ac_word... " >&6; }
3164if ${ac_cv_prog_CC+:} false; then :
3165  $as_echo_n "(cached) " >&6
3166else
3167  if test -n "$CC"; then
3168  ac_cv_prog_CC="$CC" # Let the user override the test.
3169else
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173  IFS=$as_save_IFS
3174  test -z "$as_dir" && as_dir=.
3175    for ac_exec_ext in '' $ac_executable_extensions; do
3176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179    break 2
3180  fi
3181done
3182  done
3183IFS=$as_save_IFS
3184
3185fi
3186fi
3187CC=$ac_cv_prog_CC
3188if test -n "$CC"; then
3189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190$as_echo "$CC" >&6; }
3191else
3192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193$as_echo "no" >&6; }
3194fi
3195
3196
3197    test -n "$CC" && break
3198  done
3199fi
3200if test -z "$CC"; then
3201  ac_ct_CC=$CC
3202  for ac_prog in cl.exe
3203do
3204  # Extract the first word of "$ac_prog", so it can be a program name with args.
3205set dummy $ac_prog; ac_word=$2
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207$as_echo_n "checking for $ac_word... " >&6; }
3208if ${ac_cv_prog_ac_ct_CC+:} false; then :
3209  $as_echo_n "(cached) " >&6
3210else
3211  if test -n "$ac_ct_CC"; then
3212  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213else
3214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215for as_dir in $PATH
3216do
3217  IFS=$as_save_IFS
3218  test -z "$as_dir" && as_dir=.
3219    for ac_exec_ext in '' $ac_executable_extensions; do
3220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221    ac_cv_prog_ac_ct_CC="$ac_prog"
3222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223    break 2
3224  fi
3225done
3226  done
3227IFS=$as_save_IFS
3228
3229fi
3230fi
3231ac_ct_CC=$ac_cv_prog_ac_ct_CC
3232if test -n "$ac_ct_CC"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3234$as_echo "$ac_ct_CC" >&6; }
3235else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241  test -n "$ac_ct_CC" && break
3242done
3243
3244  if test "x$ac_ct_CC" = x; then
3245    CC=""
3246  else
3247    case $cross_compiling:$ac_tool_warned in
3248yes:)
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3251ac_tool_warned=yes ;;
3252esac
3253    CC=$ac_ct_CC
3254  fi
3255fi
3256
3257fi
3258
3259
3260test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262as_fn_error $? "no acceptable C compiler found in \$PATH
3263See \`config.log' for more details" "$LINENO" 5; }
3264
3265# Provide some information about the compiler.
3266$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3267set X $ac_compile
3268ac_compiler=$2
3269for ac_option in --version -v -V -qversion; do
3270  { { ac_try="$ac_compiler $ac_option >&5"
3271case "(($ac_try" in
3272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273  *) ac_try_echo=$ac_try;;
3274esac
3275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3276$as_echo "$ac_try_echo"; } >&5
3277  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3278  ac_status=$?
3279  if test -s conftest.err; then
3280    sed '10a\
3281... rest of stderr output deleted ...
3282         10q' conftest.err >conftest.er1
3283    cat conftest.er1 >&5
3284  fi
3285  rm -f conftest.er1 conftest.err
3286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287  test $ac_status = 0; }
3288done
3289
3290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291/* end confdefs.h.  */
3292
3293int
3294main ()
3295{
3296
3297  ;
3298  return 0;
3299}
3300_ACEOF
3301ac_clean_files_save=$ac_clean_files
3302ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3303# Try to create an executable without -o first, disregard a.out.
3304# It will help us diagnose broken compilers, and finding out an intuition
3305# of exeext.
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3307$as_echo_n "checking whether the C compiler works... " >&6; }
3308ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309
3310# The possible output files:
3311ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3312
3313ac_rmfiles=
3314for ac_file in $ac_files
3315do
3316  case $ac_file in
3317    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319  esac
3320done
3321rm -f $ac_rmfiles
3322
3323if { { ac_try="$ac_link_default"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
3330  (eval "$ac_link_default") 2>&5
3331  ac_status=$?
3332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333  test $ac_status = 0; }; then :
3334  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3337# so that the user can short-circuit this test for compilers unknown to
3338# Autoconf.
3339for ac_file in $ac_files ''
3340do
3341  test -f "$ac_file" || continue
3342  case $ac_file in
3343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3344        ;;
3345    [ab].out )
3346        # We found the default executable, but exeext='' is most
3347        # certainly right.
3348        break;;
3349    *.* )
3350        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3351        then :; else
3352           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353        fi
3354        # We set ac_cv_exeext here because the later test for it is not
3355        # safe: cross compilers may not add the suffix if given an `-o'
3356        # argument, so we may need to know it at that point already.
3357        # Even if this section looks crufty: it has the advantage of
3358        # actually working.
3359        break;;
3360    * )
3361        break;;
3362  esac
3363done
3364test "$ac_cv_exeext" = no && ac_cv_exeext=
3365
3366else
3367  ac_file=''
3368fi
3369if test -z "$ac_file"; then :
3370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372$as_echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377as_fn_error 77 "C compiler cannot create executables
3378See \`config.log' for more details" "$LINENO" 5; }
3379else
3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381$as_echo "yes" >&6; }
3382fi
3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3384$as_echo_n "checking for C compiler default output file name... " >&6; }
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386$as_echo "$ac_file" >&6; }
3387ac_exeext=$ac_cv_exeext
3388
3389rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3390ac_clean_files=$ac_clean_files_save
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3392$as_echo_n "checking for suffix of executables... " >&6; }
3393if { { ac_try="$ac_link"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
3400  (eval "$ac_link") 2>&5
3401  ac_status=$?
3402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403  test $ac_status = 0; }; then :
3404  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3405# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3406# work properly (i.e., refer to `conftest.exe'), while it won't with
3407# `rm'.
3408for ac_file in conftest.exe conftest conftest.*; do
3409  test -f "$ac_file" || continue
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413          break;;
3414    * ) break;;
3415  esac
3416done
3417else
3418  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3421See \`config.log' for more details" "$LINENO" 5; }
3422fi
3423rm -f conftest conftest$ac_cv_exeext
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3425$as_echo "$ac_cv_exeext" >&6; }
3426
3427rm -f conftest.$ac_ext
3428EXEEXT=$ac_cv_exeext
3429ac_exeext=$EXEEXT
3430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431/* end confdefs.h.  */
3432#include <stdio.h>
3433int
3434main ()
3435{
3436FILE *f = fopen ("conftest.out", "w");
3437 return ferror (f) || fclose (f) != 0;
3438
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443ac_clean_files="$ac_clean_files conftest.out"
3444# Check that the compiler produces executables we can run.  If not, either
3445# the compiler is broken, or we cross compile.
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3447$as_echo_n "checking whether we are cross compiling... " >&6; }
3448if test "$cross_compiling" != yes; then
3449  { { ac_try="$ac_link"
3450case "(($ac_try" in
3451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452  *) ac_try_echo=$ac_try;;
3453esac
3454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455$as_echo "$ac_try_echo"; } >&5
3456  (eval "$ac_link") 2>&5
3457  ac_status=$?
3458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459  test $ac_status = 0; }
3460  if { ac_try='./conftest$ac_cv_exeext'
3461  { { case "(($ac_try" in
3462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463  *) ac_try_echo=$ac_try;;
3464esac
3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466$as_echo "$ac_try_echo"; } >&5
3467  (eval "$ac_try") 2>&5
3468  ac_status=$?
3469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470  test $ac_status = 0; }; }; then
3471    cross_compiling=no
3472  else
3473    if test "$cross_compiling" = maybe; then
3474        cross_compiling=yes
3475    else
3476        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478as_fn_error $? "cannot run C compiled programs.
3479If you meant to cross compile, use \`--host'.
3480See \`config.log' for more details" "$LINENO" 5; }
3481    fi
3482  fi
3483fi
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3485$as_echo "$cross_compiling" >&6; }
3486
3487rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3488ac_clean_files=$ac_clean_files_save
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3490$as_echo_n "checking for suffix of object files... " >&6; }
3491if ${ac_cv_objext+:} false; then :
3492  $as_echo_n "(cached) " >&6
3493else
3494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495/* end confdefs.h.  */
3496
3497int
3498main ()
3499{
3500
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505rm -f conftest.o conftest.obj
3506if { { ac_try="$ac_compile"
3507case "(($ac_try" in
3508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509  *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
3513  (eval "$ac_compile") 2>&5
3514  ac_status=$?
3515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516  test $ac_status = 0; }; then :
3517  for ac_file in conftest.o conftest.obj conftest.*; do
3518  test -f "$ac_file" || continue;
3519  case $ac_file in
3520    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3521    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3522       break;;
3523  esac
3524done
3525else
3526  $as_echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error $? "cannot compute suffix of object files: cannot compile
3532See \`config.log' for more details" "$LINENO" 5; }
3533fi
3534rm -f conftest.$ac_cv_objext conftest.$ac_ext
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3537$as_echo "$ac_cv_objext" >&6; }
3538OBJEXT=$ac_cv_objext
3539ac_objext=$OBJEXT
3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3541$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3542if ${ac_cv_c_compiler_gnu+:} false; then :
3543  $as_echo_n "(cached) " >&6
3544else
3545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h.  */
3547
3548int
3549main ()
3550{
3551#ifndef __GNUC__
3552       choke me
3553#endif
3554
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559if ac_fn_c_try_compile "$LINENO"; then :
3560  ac_compiler_gnu=yes
3561else
3562  ac_compiler_gnu=no
3563fi
3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3569$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3570if test $ac_compiler_gnu = yes; then
3571  GCC=yes
3572else
3573  GCC=
3574fi
3575ac_test_CFLAGS=${CFLAGS+set}
3576ac_save_CFLAGS=$CFLAGS
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3578$as_echo_n "checking whether $CC accepts -g... " >&6; }
3579if ${ac_cv_prog_cc_g+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  ac_save_c_werror_flag=$ac_c_werror_flag
3583   ac_c_werror_flag=yes
3584   ac_cv_prog_cc_g=no
3585   CFLAGS="-g"
3586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h.  */
3588
3589int
3590main ()
3591{
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597if ac_fn_c_try_compile "$LINENO"; then :
3598  ac_cv_prog_cc_g=yes
3599else
3600  CFLAGS=""
3601      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602/* end confdefs.h.  */
3603
3604int
3605main ()
3606{
3607
3608  ;
3609  return 0;
3610}
3611_ACEOF
3612if ac_fn_c_try_compile "$LINENO"; then :
3613
3614else
3615  ac_c_werror_flag=$ac_save_c_werror_flag
3616         CFLAGS="-g"
3617         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h.  */
3619
3620int
3621main ()
3622{
3623
3624  ;
3625  return 0;
3626}
3627_ACEOF
3628if ac_fn_c_try_compile "$LINENO"; then :
3629  ac_cv_prog_cc_g=yes
3630fi
3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632fi
3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634fi
3635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636   ac_c_werror_flag=$ac_save_c_werror_flag
3637fi
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3639$as_echo "$ac_cv_prog_cc_g" >&6; }
3640if test "$ac_test_CFLAGS" = set; then
3641  CFLAGS=$ac_save_CFLAGS
3642elif test $ac_cv_prog_cc_g = yes; then
3643  if test "$GCC" = yes; then
3644    CFLAGS="-g -O2"
3645  else
3646    CFLAGS="-g"
3647  fi
3648else
3649  if test "$GCC" = yes; then
3650    CFLAGS="-O2"
3651  else
3652    CFLAGS=
3653  fi
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3656$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3657if ${ac_cv_prog_cc_c89+:} false; then :
3658  $as_echo_n "(cached) " >&6
3659else
3660  ac_cv_prog_cc_c89=no
3661ac_save_CC=$CC
3662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664#include <stdarg.h>
3665#include <stdio.h>
3666struct stat;
3667/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3668struct buf { int x; };
3669FILE * (*rcsopen) (struct buf *, struct stat *, int);
3670static char *e (p, i)
3671     char **p;
3672     int i;
3673{
3674  return p[i];
3675}
3676static char *f (char * (*g) (char **, int), char **p, ...)
3677{
3678  char *s;
3679  va_list v;
3680  va_start (v,p);
3681  s = g (p, va_arg (v,int));
3682  va_end (v);
3683  return s;
3684}
3685
3686/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3687   function prototypes and stuff, but not '\xHH' hex character constants.
3688   These don't provoke an error unfortunately, instead are silently treated
3689   as 'x'.  The following induces an error, until -std is added to get
3690   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3691   array size at least.  It's necessary to write '\x00'==0 to get something
3692   that's true only with -std.  */
3693int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3694
3695/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3696   inside strings and character constants.  */
3697#define FOO(x) 'x'
3698int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3699
3700int test (int i, double x);
3701struct s1 {int (*f) (int a);};
3702struct s2 {int (*f) (double a);};
3703int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3704int argc;
3705char **argv;
3706int
3707main ()
3708{
3709return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3710  ;
3711  return 0;
3712}
3713_ACEOF
3714for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3715        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3716do
3717  CC="$ac_save_CC $ac_arg"
3718  if ac_fn_c_try_compile "$LINENO"; then :
3719  ac_cv_prog_cc_c89=$ac_arg
3720fi
3721rm -f core conftest.err conftest.$ac_objext
3722  test "x$ac_cv_prog_cc_c89" != "xno" && break
3723done
3724rm -f conftest.$ac_ext
3725CC=$ac_save_CC
3726
3727fi
3728# AC_CACHE_VAL
3729case "x$ac_cv_prog_cc_c89" in
3730  x)
3731    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3732$as_echo "none needed" >&6; } ;;
3733  xno)
3734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3735$as_echo "unsupported" >&6; } ;;
3736  *)
3737    CC="$CC $ac_cv_prog_cc_c89"
3738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3739$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3740esac
3741if test "x$ac_cv_prog_cc_c89" != xno; then :
3742
3743fi
3744
3745ac_ext=c
3746ac_cpp='$CPP $CPPFLAGS'
3747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750
3751ac_ext=cpp
3752ac_cpp='$CXXCPP $CPPFLAGS'
3753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3756if test -z "$CXX"; then
3757  if test -n "$CCC"; then
3758    CXX=$CCC
3759  else
3760    if test -n "$ac_tool_prefix"; then
3761  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3762  do
3763    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766$as_echo_n "checking for $ac_word... " >&6; }
3767if ${ac_cv_prog_CXX+:} false; then :
3768  $as_echo_n "(cached) " >&6
3769else
3770  if test -n "$CXX"; then
3771  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3772else
3773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH
3775do
3776  IFS=$as_save_IFS
3777  test -z "$as_dir" && as_dir=.
3778    for ac_exec_ext in '' $ac_executable_extensions; do
3779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782    break 2
3783  fi
3784done
3785  done
3786IFS=$as_save_IFS
3787
3788fi
3789fi
3790CXX=$ac_cv_prog_CXX
3791if test -n "$CXX"; then
3792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3793$as_echo "$CXX" >&6; }
3794else
3795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796$as_echo "no" >&6; }
3797fi
3798
3799
3800    test -n "$CXX" && break
3801  done
3802fi
3803if test -z "$CXX"; then
3804  ac_ct_CXX=$CXX
3805  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3806do
3807  # Extract the first word of "$ac_prog", so it can be a program name with args.
3808set dummy $ac_prog; ac_word=$2
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810$as_echo_n "checking for $ac_word... " >&6; }
3811if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3812  $as_echo_n "(cached) " >&6
3813else
3814  if test -n "$ac_ct_CXX"; then
3815  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3816else
3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818for as_dir in $PATH
3819do
3820  IFS=$as_save_IFS
3821  test -z "$as_dir" && as_dir=.
3822    for ac_exec_ext in '' $ac_executable_extensions; do
3823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824    ac_cv_prog_ac_ct_CXX="$ac_prog"
3825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3826    break 2
3827  fi
3828done
3829  done
3830IFS=$as_save_IFS
3831
3832fi
3833fi
3834ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3835if test -n "$ac_ct_CXX"; then
3836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3837$as_echo "$ac_ct_CXX" >&6; }
3838else
3839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840$as_echo "no" >&6; }
3841fi
3842
3843
3844  test -n "$ac_ct_CXX" && break
3845done
3846
3847  if test "x$ac_ct_CXX" = x; then
3848    CXX="g++"
3849  else
3850    case $cross_compiling:$ac_tool_warned in
3851yes:)
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3854ac_tool_warned=yes ;;
3855esac
3856    CXX=$ac_ct_CXX
3857  fi
3858fi
3859
3860  fi
3861fi
3862# Provide some information about the compiler.
3863$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3864set X $ac_compile
3865ac_compiler=$2
3866for ac_option in --version -v -V -qversion; do
3867  { { ac_try="$ac_compiler $ac_option >&5"
3868case "(($ac_try" in
3869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870  *) ac_try_echo=$ac_try;;
3871esac
3872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873$as_echo "$ac_try_echo"; } >&5
3874  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3875  ac_status=$?
3876  if test -s conftest.err; then
3877    sed '10a\
3878... rest of stderr output deleted ...
3879         10q' conftest.err >conftest.er1
3880    cat conftest.er1 >&5
3881  fi
3882  rm -f conftest.er1 conftest.err
3883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884  test $ac_status = 0; }
3885done
3886
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3888$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3889if ${ac_cv_cxx_compiler_gnu+:} false; then :
3890  $as_echo_n "(cached) " >&6
3891else
3892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h.  */
3894
3895int
3896main ()
3897{
3898#ifndef __GNUC__
3899       choke me
3900#endif
3901
3902  ;
3903  return 0;
3904}
3905_ACEOF
3906if ac_fn_cxx_try_compile "$LINENO"; then :
3907  ac_compiler_gnu=yes
3908else
3909  ac_compiler_gnu=no
3910fi
3911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3913
3914fi
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3916$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3917if test $ac_compiler_gnu = yes; then
3918  GXX=yes
3919else
3920  GXX=
3921fi
3922ac_test_CXXFLAGS=${CXXFLAGS+set}
3923ac_save_CXXFLAGS=$CXXFLAGS
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3925$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3926if ${ac_cv_prog_cxx_g+:} false; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3930   ac_cxx_werror_flag=yes
3931   ac_cv_prog_cxx_g=no
3932   CXXFLAGS="-g"
3933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h.  */
3935
3936int
3937main ()
3938{
3939
3940  ;
3941  return 0;
3942}
3943_ACEOF
3944if ac_fn_cxx_try_compile "$LINENO"; then :
3945  ac_cv_prog_cxx_g=yes
3946else
3947  CXXFLAGS=""
3948      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h.  */
3950
3951int
3952main ()
3953{
3954
3955  ;
3956  return 0;
3957}
3958_ACEOF
3959if ac_fn_cxx_try_compile "$LINENO"; then :
3960
3961else
3962  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3963         CXXFLAGS="-g"
3964         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h.  */
3966
3967int
3968main ()
3969{
3970
3971  ;
3972  return 0;
3973}
3974_ACEOF
3975if ac_fn_cxx_try_compile "$LINENO"; then :
3976  ac_cv_prog_cxx_g=yes
3977fi
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979fi
3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981fi
3982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3984fi
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3986$as_echo "$ac_cv_prog_cxx_g" >&6; }
3987if test "$ac_test_CXXFLAGS" = set; then
3988  CXXFLAGS=$ac_save_CXXFLAGS
3989elif test $ac_cv_prog_cxx_g = yes; then
3990  if test "$GXX" = yes; then
3991    CXXFLAGS="-g -O2"
3992  else
3993    CXXFLAGS="-g"
3994  fi
3995else
3996  if test "$GXX" = yes; then
3997    CXXFLAGS="-O2"
3998  else
3999    CXXFLAGS=
4000  fi
4001fi
4002ac_ext=c
4003ac_cpp='$CPP $CPPFLAGS'
4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4006ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007
4008# Avoid g95
4009ac_ext=f
4010ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4011ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4013if test -n "$ac_tool_prefix"; then
4014  for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32
4015  do
4016    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4017set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019$as_echo_n "checking for $ac_word... " >&6; }
4020if ${ac_cv_prog_F77+:} false; then :
4021  $as_echo_n "(cached) " >&6
4022else
4023  if test -n "$F77"; then
4024  ac_cv_prog_F77="$F77" # Let the user override the test.
4025else
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029  IFS=$as_save_IFS
4030  test -z "$as_dir" && as_dir=.
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035    break 2
4036  fi
4037done
4038  done
4039IFS=$as_save_IFS
4040
4041fi
4042fi
4043F77=$ac_cv_prog_F77
4044if test -n "$F77"; then
4045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4046$as_echo "$F77" >&6; }
4047else
4048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049$as_echo "no" >&6; }
4050fi
4051
4052
4053    test -n "$F77" && break
4054  done
4055fi
4056if test -z "$F77"; then
4057  ac_ct_F77=$F77
4058  for ac_prog in g77 gfortran f77 fort77 f90 xlf xlf90 fl32
4059do
4060  # Extract the first word of "$ac_prog", so it can be a program name with args.
4061set dummy $ac_prog; ac_word=$2
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063$as_echo_n "checking for $ac_word... " >&6; }
4064if ${ac_cv_prog_ac_ct_F77+:} false; then :
4065  $as_echo_n "(cached) " >&6
4066else
4067  if test -n "$ac_ct_F77"; then
4068  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4069else
4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071for as_dir in $PATH
4072do
4073  IFS=$as_save_IFS
4074  test -z "$as_dir" && as_dir=.
4075    for ac_exec_ext in '' $ac_executable_extensions; do
4076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4077    ac_cv_prog_ac_ct_F77="$ac_prog"
4078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079    break 2
4080  fi
4081done
4082  done
4083IFS=$as_save_IFS
4084
4085fi
4086fi
4087ac_ct_F77=$ac_cv_prog_ac_ct_F77
4088if test -n "$ac_ct_F77"; then
4089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4090$as_echo "$ac_ct_F77" >&6; }
4091else
4092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093$as_echo "no" >&6; }
4094fi
4095
4096
4097  test -n "$ac_ct_F77" && break
4098done
4099
4100  if test "x$ac_ct_F77" = x; then
4101    F77=""
4102  else
4103    case $cross_compiling:$ac_tool_warned in
4104yes:)
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4107ac_tool_warned=yes ;;
4108esac
4109    F77=$ac_ct_F77
4110  fi
4111fi
4112
4113
4114# Provide some information about the compiler.
4115$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4116set X $ac_compile
4117ac_compiler=$2
4118for ac_option in --version -v -V -qversion; do
4119  { { ac_try="$ac_compiler $ac_option >&5"
4120case "(($ac_try" in
4121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122  *) ac_try_echo=$ac_try;;
4123esac
4124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125$as_echo "$ac_try_echo"; } >&5
4126  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4127  ac_status=$?
4128  if test -s conftest.err; then
4129    sed '10a\
4130... rest of stderr output deleted ...
4131         10q' conftest.err >conftest.er1
4132    cat conftest.er1 >&5
4133  fi
4134  rm -f conftest.er1 conftest.err
4135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136  test $ac_status = 0; }
4137done
4138rm -f a.out
4139
4140# If we don't use `.F' as extension, the preprocessor is not run on the
4141# input file.  (Note that this only needs to work for GNU compilers.)
4142ac_save_ext=$ac_ext
4143ac_ext=F
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4145$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4146if ${ac_cv_f77_compiler_gnu+:} false; then :
4147  $as_echo_n "(cached) " >&6
4148else
4149  cat > conftest.$ac_ext <<_ACEOF
4150      program main
4151#ifndef __GNUC__
4152       choke me
4153#endif
4154
4155      end
4156_ACEOF
4157if ac_fn_f77_try_compile "$LINENO"; then :
4158  ac_compiler_gnu=yes
4159else
4160  ac_compiler_gnu=no
4161fi
4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4164
4165fi
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4167$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4168ac_ext=$ac_save_ext
4169ac_test_FFLAGS=${FFLAGS+set}
4170ac_save_FFLAGS=$FFLAGS
4171FFLAGS=
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4173$as_echo_n "checking whether $F77 accepts -g... " >&6; }
4174if ${ac_cv_prog_f77_g+:} false; then :
4175  $as_echo_n "(cached) " >&6
4176else
4177  FFLAGS=-g
4178cat > conftest.$ac_ext <<_ACEOF
4179      program main
4180
4181      end
4182_ACEOF
4183if ac_fn_f77_try_compile "$LINENO"; then :
4184  ac_cv_prog_f77_g=yes
4185else
4186  ac_cv_prog_f77_g=no
4187fi
4188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189
4190fi
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4192$as_echo "$ac_cv_prog_f77_g" >&6; }
4193if test "$ac_test_FFLAGS" = set; then
4194  FFLAGS=$ac_save_FFLAGS
4195elif test $ac_cv_prog_f77_g = yes; then
4196  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4197    FFLAGS="-g -O2"
4198  else
4199    FFLAGS="-g"
4200  fi
4201else
4202  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4203    FFLAGS="-O2"
4204  else
4205    FFLAGS=
4206  fi
4207fi
4208
4209if test $ac_compiler_gnu = yes; then
4210  G77=yes
4211else
4212  G77=
4213fi
4214ac_ext=c
4215ac_cpp='$CPP $CPPFLAGS'
4216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219
4220
4221ac_ext=c
4222ac_cpp='$CPP $CPPFLAGS'
4223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226
4227
4228
4229ac_ext=c
4230ac_cpp='$CPP $CPPFLAGS'
4231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4235$as_echo_n "checking how to run the C preprocessor... " >&6; }
4236# On Suns, sometimes $CPP names a directory.
4237if test -n "$CPP" && test -d "$CPP"; then
4238  CPP=
4239fi
4240if test -z "$CPP"; then
4241  if ${ac_cv_prog_CPP+:} false; then :
4242  $as_echo_n "(cached) " >&6
4243else
4244      # Double quotes because CPP needs to be expanded
4245    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4246    do
4247      ac_preproc_ok=false
4248for ac_c_preproc_warn_flag in '' yes
4249do
4250  # Use a header file that comes with gcc, so configuring glibc
4251  # with a fresh cross-compiler works.
4252  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4253  # <limits.h> exists even on freestanding compilers.
4254  # On the NeXT, cc -E runs the code through the compiler's parser,
4255  # not just through cpp. "Syntax error" is here to catch this case.
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258#ifdef __STDC__
4259# include <limits.h>
4260#else
4261# include <assert.h>
4262#endif
4263                     Syntax error
4264_ACEOF
4265if ac_fn_c_try_cpp "$LINENO"; then :
4266
4267else
4268  # Broken: fails on valid input.
4269continue
4270fi
4271rm -f conftest.err conftest.i conftest.$ac_ext
4272
4273  # OK, works on sane cases.  Now check whether nonexistent headers
4274  # can be detected and how.
4275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277#include <ac_nonexistent.h>
4278_ACEOF
4279if ac_fn_c_try_cpp "$LINENO"; then :
4280  # Broken: success on invalid input.
4281continue
4282else
4283  # Passes both tests.
4284ac_preproc_ok=:
4285break
4286fi
4287rm -f conftest.err conftest.i conftest.$ac_ext
4288
4289done
4290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4291rm -f conftest.i conftest.err conftest.$ac_ext
4292if $ac_preproc_ok; then :
4293  break
4294fi
4295
4296    done
4297    ac_cv_prog_CPP=$CPP
4298
4299fi
4300  CPP=$ac_cv_prog_CPP
4301else
4302  ac_cv_prog_CPP=$CPP
4303fi
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4305$as_echo "$CPP" >&6; }
4306ac_preproc_ok=false
4307for ac_c_preproc_warn_flag in '' yes
4308do
4309  # Use a header file that comes with gcc, so configuring glibc
4310  # with a fresh cross-compiler works.
4311  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312  # <limits.h> exists even on freestanding compilers.
4313  # On the NeXT, cc -E runs the code through the compiler's parser,
4314  # not just through cpp. "Syntax error" is here to catch this case.
4315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316/* end confdefs.h.  */
4317#ifdef __STDC__
4318# include <limits.h>
4319#else
4320# include <assert.h>
4321#endif
4322                     Syntax error
4323_ACEOF
4324if ac_fn_c_try_cpp "$LINENO"; then :
4325
4326else
4327  # Broken: fails on valid input.
4328continue
4329fi
4330rm -f conftest.err conftest.i conftest.$ac_ext
4331
4332  # OK, works on sane cases.  Now check whether nonexistent headers
4333  # can be detected and how.
4334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335/* end confdefs.h.  */
4336#include <ac_nonexistent.h>
4337_ACEOF
4338if ac_fn_c_try_cpp "$LINENO"; then :
4339  # Broken: success on invalid input.
4340continue
4341else
4342  # Passes both tests.
4343ac_preproc_ok=:
4344break
4345fi
4346rm -f conftest.err conftest.i conftest.$ac_ext
4347
4348done
4349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4350rm -f conftest.i conftest.err conftest.$ac_ext
4351if $ac_preproc_ok; then :
4352
4353else
4354  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4356as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4357See \`config.log' for more details" "$LINENO" 5; }
4358fi
4359
4360ac_ext=c
4361ac_cpp='$CPP $CPPFLAGS'
4362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
4366
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4368$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4369if ${ac_cv_path_GREP+:} false; then :
4370  $as_echo_n "(cached) " >&6
4371else
4372  if test -z "$GREP"; then
4373  ac_path_GREP_found=false
4374  # Loop through the user's path and test for each of PROGNAME-LIST
4375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4377do
4378  IFS=$as_save_IFS
4379  test -z "$as_dir" && as_dir=.
4380    for ac_prog in grep ggrep; do
4381    for ac_exec_ext in '' $ac_executable_extensions; do
4382      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4383      as_fn_executable_p "$ac_path_GREP" || continue
4384# Check for GNU ac_path_GREP and select it if it is found.
4385  # Check for GNU $ac_path_GREP
4386case `"$ac_path_GREP" --version 2>&1` in
4387*GNU*)
4388  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4389*)
4390  ac_count=0
4391  $as_echo_n 0123456789 >"conftest.in"
4392  while :
4393  do
4394    cat "conftest.in" "conftest.in" >"conftest.tmp"
4395    mv "conftest.tmp" "conftest.in"
4396    cp "conftest.in" "conftest.nl"
4397    $as_echo 'GREP' >> "conftest.nl"
4398    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400    as_fn_arith $ac_count + 1 && ac_count=$as_val
4401    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4402      # Best one so far, save it but keep looking for a better one
4403      ac_cv_path_GREP="$ac_path_GREP"
4404      ac_path_GREP_max=$ac_count
4405    fi
4406    # 10*(2^10) chars as input seems more than enough
4407    test $ac_count -gt 10 && break
4408  done
4409  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410esac
4411
4412      $ac_path_GREP_found && break 3
4413    done
4414  done
4415  done
4416IFS=$as_save_IFS
4417  if test -z "$ac_cv_path_GREP"; then
4418    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4419  fi
4420else
4421  ac_cv_path_GREP=$GREP
4422fi
4423
4424fi
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4426$as_echo "$ac_cv_path_GREP" >&6; }
4427 GREP="$ac_cv_path_GREP"
4428
4429
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4431$as_echo_n "checking for egrep... " >&6; }
4432if ${ac_cv_path_EGREP+:} false; then :
4433  $as_echo_n "(cached) " >&6
4434else
4435  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4436   then ac_cv_path_EGREP="$GREP -E"
4437   else
4438     if test -z "$EGREP"; then
4439  ac_path_EGREP_found=false
4440  # Loop through the user's path and test for each of PROGNAME-LIST
4441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443do
4444  IFS=$as_save_IFS
4445  test -z "$as_dir" && as_dir=.
4446    for ac_prog in egrep; do
4447    for ac_exec_ext in '' $ac_executable_extensions; do
4448      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4449      as_fn_executable_p "$ac_path_EGREP" || continue
4450# Check for GNU ac_path_EGREP and select it if it is found.
4451  # Check for GNU $ac_path_EGREP
4452case `"$ac_path_EGREP" --version 2>&1` in
4453*GNU*)
4454  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4455*)
4456  ac_count=0
4457  $as_echo_n 0123456789 >"conftest.in"
4458  while :
4459  do
4460    cat "conftest.in" "conftest.in" >"conftest.tmp"
4461    mv "conftest.tmp" "conftest.in"
4462    cp "conftest.in" "conftest.nl"
4463    $as_echo 'EGREP' >> "conftest.nl"
4464    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466    as_fn_arith $ac_count + 1 && ac_count=$as_val
4467    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4468      # Best one so far, save it but keep looking for a better one
4469      ac_cv_path_EGREP="$ac_path_EGREP"
4470      ac_path_EGREP_max=$ac_count
4471    fi
4472    # 10*(2^10) chars as input seems more than enough
4473    test $ac_count -gt 10 && break
4474  done
4475  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476esac
4477
4478      $ac_path_EGREP_found && break 3
4479    done
4480  done
4481  done
4482IFS=$as_save_IFS
4483  if test -z "$ac_cv_path_EGREP"; then
4484    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4485  fi
4486else
4487  ac_cv_path_EGREP=$EGREP
4488fi
4489
4490   fi
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4493$as_echo "$ac_cv_path_EGREP" >&6; }
4494 EGREP="$ac_cv_path_EGREP"
4495
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4498$as_echo_n "checking for ANSI C header files... " >&6; }
4499if ${ac_cv_header_stdc+:} false; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h.  */
4504#include <stdlib.h>
4505#include <stdarg.h>
4506#include <string.h>
4507#include <float.h>
4508
4509int
4510main ()
4511{
4512
4513  ;
4514  return 0;
4515}
4516_ACEOF
4517if ac_fn_c_try_compile "$LINENO"; then :
4518  ac_cv_header_stdc=yes
4519else
4520  ac_cv_header_stdc=no
4521fi
4522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523
4524if test $ac_cv_header_stdc = yes; then
4525  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527/* end confdefs.h.  */
4528#include <string.h>
4529
4530_ACEOF
4531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532  $EGREP "memchr" >/dev/null 2>&1; then :
4533
4534else
4535  ac_cv_header_stdc=no
4536fi
4537rm -f conftest*
4538
4539fi
4540
4541if test $ac_cv_header_stdc = yes; then
4542  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544/* end confdefs.h.  */
4545#include <stdlib.h>
4546
4547_ACEOF
4548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4549  $EGREP "free" >/dev/null 2>&1; then :
4550
4551else
4552  ac_cv_header_stdc=no
4553fi
4554rm -f conftest*
4555
4556fi
4557
4558if test $ac_cv_header_stdc = yes; then
4559  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4560  if test "$cross_compiling" = yes; then :
4561  :
4562else
4563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564/* end confdefs.h.  */
4565#include <ctype.h>
4566#include <stdlib.h>
4567#if ((' ' & 0x0FF) == 0x020)
4568# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4569# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4570#else
4571# define ISLOWER(c) \
4572                   (('a' <= (c) && (c) <= 'i') \
4573                     || ('j' <= (c) && (c) <= 'r') \
4574                     || ('s' <= (c) && (c) <= 'z'))
4575# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4576#endif
4577
4578#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4579int
4580main ()
4581{
4582  int i;
4583  for (i = 0; i < 256; i++)
4584    if (XOR (islower (i), ISLOWER (i))
4585        || toupper (i) != TOUPPER (i))
4586      return 2;
4587  return 0;
4588}
4589_ACEOF
4590if ac_fn_c_try_run "$LINENO"; then :
4591
4592else
4593  ac_cv_header_stdc=no
4594fi
4595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4596  conftest.$ac_objext conftest.beam conftest.$ac_ext
4597fi
4598
4599fi
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4602$as_echo "$ac_cv_header_stdc" >&6; }
4603if test $ac_cv_header_stdc = yes; then
4604
4605$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4606
4607fi
4608
4609ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
4610if test "x$ac_cv_func_atol" = xyes; then :
4611
4612else
4613  as_fn_error $? "oops! no atol ?!?" "$LINENO" 5
4614fi
4615
4616
4617ac_ext=cpp
4618ac_cpp='$CXXCPP $CPPFLAGS'
4619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622
4623
4624ac_ext=cpp
4625ac_cpp='$CXXCPP $CPPFLAGS'
4626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4630$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4631if test -z "$CXXCPP"; then
4632  if ${ac_cv_prog_CXXCPP+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635      # Double quotes because CXXCPP needs to be expanded
4636    for CXXCPP in "$CXX -E" "/lib/cpp"
4637    do
4638      ac_preproc_ok=false
4639for ac_cxx_preproc_warn_flag in '' yes
4640do
4641  # Use a header file that comes with gcc, so configuring glibc
4642  # with a fresh cross-compiler works.
4643  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4644  # <limits.h> exists even on freestanding compilers.
4645  # On the NeXT, cc -E runs the code through the compiler's parser,
4646  # not just through cpp. "Syntax error" is here to catch this case.
4647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h.  */
4649#ifdef __STDC__
4650# include <limits.h>
4651#else
4652# include <assert.h>
4653#endif
4654                     Syntax error
4655_ACEOF
4656if ac_fn_cxx_try_cpp "$LINENO"; then :
4657
4658else
4659  # Broken: fails on valid input.
4660continue
4661fi
4662rm -f conftest.err conftest.i conftest.$ac_ext
4663
4664  # OK, works on sane cases.  Now check whether nonexistent headers
4665  # can be detected and how.
4666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667/* end confdefs.h.  */
4668#include <ac_nonexistent.h>
4669_ACEOF
4670if ac_fn_cxx_try_cpp "$LINENO"; then :
4671  # Broken: success on invalid input.
4672continue
4673else
4674  # Passes both tests.
4675ac_preproc_ok=:
4676break
4677fi
4678rm -f conftest.err conftest.i conftest.$ac_ext
4679
4680done
4681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4682rm -f conftest.i conftest.err conftest.$ac_ext
4683if $ac_preproc_ok; then :
4684  break
4685fi
4686
4687    done
4688    ac_cv_prog_CXXCPP=$CXXCPP
4689
4690fi
4691  CXXCPP=$ac_cv_prog_CXXCPP
4692else
4693  ac_cv_prog_CXXCPP=$CXXCPP
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4696$as_echo "$CXXCPP" >&6; }
4697ac_preproc_ok=false
4698for ac_cxx_preproc_warn_flag in '' yes
4699do
4700  # Use a header file that comes with gcc, so configuring glibc
4701  # with a fresh cross-compiler works.
4702  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4703  # <limits.h> exists even on freestanding compilers.
4704  # On the NeXT, cc -E runs the code through the compiler's parser,
4705  # not just through cpp. "Syntax error" is here to catch this case.
4706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h.  */
4708#ifdef __STDC__
4709# include <limits.h>
4710#else
4711# include <assert.h>
4712#endif
4713                     Syntax error
4714_ACEOF
4715if ac_fn_cxx_try_cpp "$LINENO"; then :
4716
4717else
4718  # Broken: fails on valid input.
4719continue
4720fi
4721rm -f conftest.err conftest.i conftest.$ac_ext
4722
4723  # OK, works on sane cases.  Now check whether nonexistent headers
4724  # can be detected and how.
4725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h.  */
4727#include <ac_nonexistent.h>
4728_ACEOF
4729if ac_fn_cxx_try_cpp "$LINENO"; then :
4730  # Broken: success on invalid input.
4731continue
4732else
4733  # Passes both tests.
4734ac_preproc_ok=:
4735break
4736fi
4737rm -f conftest.err conftest.i conftest.$ac_ext
4738
4739done
4740# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4741rm -f conftest.i conftest.err conftest.$ac_ext
4742if $ac_preproc_ok; then :
4743
4744else
4745  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4747as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4748See \`config.log' for more details" "$LINENO" 5; }
4749fi
4750
4751ac_ext=cpp
4752ac_cpp='$CXXCPP $CPPFLAGS'
4753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4756
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4759$as_echo_n "checking for X... " >&6; }
4760
4761
4762# Check whether --with-x was given.
4763if test "${with_x+set}" = set; then :
4764  withval=$with_x;
4765fi
4766
4767# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4768if test "x$with_x" = xno; then
4769  # The user explicitly disabled X.
4770  have_x=disabled
4771else
4772  case $x_includes,$x_libraries in #(
4773    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4774    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4775  $as_echo_n "(cached) " >&6
4776else
4777  # One or both of the vars are not set, and there is no cached value.
4778ac_x_includes=no ac_x_libraries=no
4779rm -f -r conftest.dir
4780if mkdir conftest.dir; then
4781  cd conftest.dir
4782  cat >Imakefile <<'_ACEOF'
4783incroot:
4784        @echo incroot='${INCROOT}'
4785usrlibdir:
4786        @echo usrlibdir='${USRLIBDIR}'
4787libdir:
4788        @echo libdir='${LIBDIR}'
4789_ACEOF
4790  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4791    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4792    for ac_var in incroot usrlibdir libdir; do
4793      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4794    done
4795    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4796    for ac_extension in a so sl dylib la dll; do
4797      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4798         test -f "$ac_im_libdir/libX11.$ac_extension"; then
4799        ac_im_usrlibdir=$ac_im_libdir; break
4800      fi
4801    done
4802    # Screen out bogus values from the imake configuration.  They are
4803    # bogus both because they are the default anyway, and because
4804    # using them would break gcc on systems where it needs fixed includes.
4805    case $ac_im_incroot in
4806        /usr/include) ac_x_includes= ;;
4807        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4808    esac
4809    case $ac_im_usrlibdir in
4810        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4811        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4812    esac
4813  fi
4814  cd ..
4815  rm -f -r conftest.dir
4816fi
4817
4818# Standard set of common directories for X headers.
4819# Check X11 before X11Rn because it is often a symlink to the current release.
4820ac_x_header_dirs='
4821/usr/X11/include
4822/usr/X11R7/include
4823/usr/X11R6/include
4824/usr/X11R5/include
4825/usr/X11R4/include
4826
4827/usr/include/X11
4828/usr/include/X11R7
4829/usr/include/X11R6
4830/usr/include/X11R5
4831/usr/include/X11R4
4832
4833/usr/local/X11/include
4834/usr/local/X11R7/include
4835/usr/local/X11R6/include
4836/usr/local/X11R5/include
4837/usr/local/X11R4/include
4838
4839/usr/local/include/X11
4840/usr/local/include/X11R7
4841/usr/local/include/X11R6
4842/usr/local/include/X11R5
4843/usr/local/include/X11R4
4844
4845/usr/X386/include
4846/usr/x386/include
4847/usr/XFree86/include/X11
4848
4849/usr/include
4850/usr/local/include
4851/usr/unsupported/include
4852/usr/athena/include
4853/usr/local/x11r5/include
4854/usr/lpp/Xamples/include
4855
4856/usr/openwin/include
4857/usr/openwin/share/include'
4858
4859if test "$ac_x_includes" = no; then
4860  # Guess where to find include files, by looking for Xlib.h.
4861  # First, try using that file with no special directory specified.
4862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863/* end confdefs.h.  */
4864#include <X11/Xlib.h>
4865_ACEOF
4866if ac_fn_cxx_try_cpp "$LINENO"; then :
4867  # We can compile using X headers with no special include directory.
4868ac_x_includes=
4869else
4870  for ac_dir in $ac_x_header_dirs; do
4871  if test -r "$ac_dir/X11/Xlib.h"; then
4872    ac_x_includes=$ac_dir
4873    break
4874  fi
4875done
4876fi
4877rm -f conftest.err conftest.i conftest.$ac_ext
4878fi # $ac_x_includes = no
4879
4880if test "$ac_x_libraries" = no; then
4881  # Check for the libraries.
4882  # See if we find them without any special options.
4883  # Don't add to $LIBS permanently.
4884  ac_save_LIBS=$LIBS
4885  LIBS="-lX11 $LIBS"
4886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h.  */
4888#include <X11/Xlib.h>
4889int
4890main ()
4891{
4892XrmInitialize ()
4893  ;
4894  return 0;
4895}
4896_ACEOF
4897if ac_fn_cxx_try_link "$LINENO"; then :
4898  LIBS=$ac_save_LIBS
4899# We can link X programs with no special library path.
4900ac_x_libraries=
4901else
4902  LIBS=$ac_save_LIBS
4903for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4904do
4905  # Don't even attempt the hair of trying to link an X program!
4906  for ac_extension in a so sl dylib la dll; do
4907    if test -r "$ac_dir/libX11.$ac_extension"; then
4908      ac_x_libraries=$ac_dir
4909      break 2
4910    fi
4911  done
4912done
4913fi
4914rm -f core conftest.err conftest.$ac_objext \
4915    conftest$ac_exeext conftest.$ac_ext
4916fi # $ac_x_libraries = no
4917
4918case $ac_x_includes,$ac_x_libraries in #(
4919  no,* | *,no | *\'*)
4920    # Didn't find X, or a directory has "'" in its name.
4921    ac_cv_have_x="have_x=no";; #(
4922  *)
4923    # Record where we found X for the cache.
4924    ac_cv_have_x="have_x=yes\
4925        ac_x_includes='$ac_x_includes'\
4926        ac_x_libraries='$ac_x_libraries'"
4927esac
4928fi
4929;; #(
4930    *) have_x=yes;;
4931  esac
4932  eval "$ac_cv_have_x"
4933fi # $with_x != no
4934
4935if test "$have_x" != yes; then
4936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4937$as_echo "$have_x" >&6; }
4938  no_x=yes
4939else
4940  # If each of the values was on the command line, it overrides each guess.
4941  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4942  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4943  # Update the cache value to reflect the command line values.
4944  ac_cv_have_x="have_x=yes\
4945        ac_x_includes='$x_includes'\
4946        ac_x_libraries='$x_libraries'"
4947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4948$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4949fi
4950
4951
4952# -----------------------------------------------------------------------
4953#
4954# Compiler characteristics:
4955#   Check for existence of types of size_t and pid_t
4956#
4957# -----------------------------------------------------------------------
4958
4959# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4960for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4961                  inttypes.h stdint.h unistd.h
4962do :
4963  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4964ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4965"
4966if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4967  cat >>confdefs.h <<_ACEOF
4968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4969_ACEOF
4970
4971fi
4972
4973done
4974
4975
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4977$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4978if ${ac_cv_c_bigendian+:} false; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  ac_cv_c_bigendian=unknown
4982    # See if we're dealing with a universal compiler.
4983    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984/* end confdefs.h.  */
4985#ifndef __APPLE_CC__
4986               not a universal capable compiler
4987             #endif
4988             typedef int dummy;
4989
4990_ACEOF
4991if ac_fn_cxx_try_compile "$LINENO"; then :
4992
4993        # Check for potential -arch flags.  It is not universal unless
4994        # there are at least two -arch flags with different values.
4995        ac_arch=
4996        ac_prev=
4997        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4998         if test -n "$ac_prev"; then
4999           case $ac_word in
5000             i?86 | x86_64 | ppc | ppc64)
5001               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5002                 ac_arch=$ac_word
5003               else
5004                 ac_cv_c_bigendian=universal
5005                 break
5006               fi
5007               ;;
5008           esac
5009           ac_prev=
5010         elif test "x$ac_word" = "x-arch"; then
5011           ac_prev=arch
5012         fi
5013       done
5014fi
5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016    if test $ac_cv_c_bigendian = unknown; then
5017      # See if sys/param.h defines the BYTE_ORDER macro.
5018      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019/* end confdefs.h.  */
5020#include <sys/types.h>
5021             #include <sys/param.h>
5022
5023int
5024main ()
5025{
5026#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5027                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5028                     && LITTLE_ENDIAN)
5029              bogus endian macros
5030             #endif
5031
5032  ;
5033  return 0;
5034}
5035_ACEOF
5036if ac_fn_cxx_try_compile "$LINENO"; then :
5037  # It does; now see whether it defined to BIG_ENDIAN or not.
5038         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h.  */
5040#include <sys/types.h>
5041                #include <sys/param.h>
5042
5043int
5044main ()
5045{
5046#if BYTE_ORDER != BIG_ENDIAN
5047                 not big endian
5048                #endif
5049
5050  ;
5051  return 0;
5052}
5053_ACEOF
5054if ac_fn_cxx_try_compile "$LINENO"; then :
5055  ac_cv_c_bigendian=yes
5056else
5057  ac_cv_c_bigendian=no
5058fi
5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060fi
5061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062    fi
5063    if test $ac_cv_c_bigendian = unknown; then
5064      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5065      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h.  */
5067#include <limits.h>
5068
5069int
5070main ()
5071{
5072#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5073              bogus endian macros
5074             #endif
5075
5076  ;
5077  return 0;
5078}
5079_ACEOF
5080if ac_fn_cxx_try_compile "$LINENO"; then :
5081  # It does; now see whether it defined to _BIG_ENDIAN or not.
5082         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h.  */
5084#include <limits.h>
5085
5086int
5087main ()
5088{
5089#ifndef _BIG_ENDIAN
5090                 not big endian
5091                #endif
5092
5093  ;
5094  return 0;
5095}
5096_ACEOF
5097if ac_fn_cxx_try_compile "$LINENO"; then :
5098  ac_cv_c_bigendian=yes
5099else
5100  ac_cv_c_bigendian=no
5101fi
5102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103fi
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105    fi
5106    if test $ac_cv_c_bigendian = unknown; then
5107      # Compile a test program.
5108      if test "$cross_compiling" = yes; then :
5109  # Try to guess by grepping values from an object file.
5110         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h.  */
5112short int ascii_mm[] =
5113                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5114                short int ascii_ii[] =
5115                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5116                int use_ascii (int i) {
5117                  return ascii_mm[i] + ascii_ii[i];
5118                }
5119                short int ebcdic_ii[] =
5120                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5121                short int ebcdic_mm[] =
5122                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5123                int use_ebcdic (int i) {
5124                  return ebcdic_mm[i] + ebcdic_ii[i];
5125                }
5126                extern int foo;
5127
5128int
5129main ()
5130{
5131return use_ascii (foo) == use_ebcdic (foo);
5132  ;
5133  return 0;
5134}
5135_ACEOF
5136if ac_fn_cxx_try_compile "$LINENO"; then :
5137  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5138              ac_cv_c_bigendian=yes
5139            fi
5140            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5141              if test "$ac_cv_c_bigendian" = unknown; then
5142                ac_cv_c_bigendian=no
5143              else
5144                # finding both strings is unlikely to happen, but who knows?
5145                ac_cv_c_bigendian=unknown
5146              fi
5147            fi
5148fi
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150else
5151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h.  */
5153$ac_includes_default
5154int
5155main ()
5156{
5157
5158             /* Are we little or big endian?  From Harbison&Steele.  */
5159             union
5160             {
5161               long int l;
5162               char c[sizeof (long int)];
5163             } u;
5164             u.l = 1;
5165             return u.c[sizeof (long int) - 1] == 1;
5166
5167  ;
5168  return 0;
5169}
5170_ACEOF
5171if ac_fn_cxx_try_run "$LINENO"; then :
5172  ac_cv_c_bigendian=no
5173else
5174  ac_cv_c_bigendian=yes
5175fi
5176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5177  conftest.$ac_objext conftest.beam conftest.$ac_ext
5178fi
5179
5180    fi
5181fi
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5183$as_echo "$ac_cv_c_bigendian" >&6; }
5184 case $ac_cv_c_bigendian in #(
5185   yes)
5186     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5187;; #(
5188   no)
5189      ;; #(
5190   universal)
5191
5192$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5193
5194     ;; #(
5195   *)
5196     as_fn_error $? "unknown endianness
5197 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5198 esac
5199
5200# The cast to long int works around a bug in the HP C Compiler
5201# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5202# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5203# This bug is HP SR number 8606223364.
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5205$as_echo_n "checking size of int... " >&6; }
5206if ${ac_cv_sizeof_int+:} false; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5210
5211else
5212  if test "$ac_cv_type_int" = yes; then
5213     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5215as_fn_error 77 "cannot compute sizeof (int)
5216See \`config.log' for more details" "$LINENO" 5; }
5217   else
5218     ac_cv_sizeof_int=0
5219   fi
5220fi
5221
5222fi
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5224$as_echo "$ac_cv_sizeof_int" >&6; }
5225
5226
5227
5228cat >>confdefs.h <<_ACEOF
5229#define SIZEOF_INT $ac_cv_sizeof_int
5230_ACEOF
5231
5232
5233# The cast to long int works around a bug in the HP C Compiler
5234# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5235# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5236# This bug is HP SR number 8606223364.
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5238$as_echo_n "checking size of long... " >&6; }
5239if ${ac_cv_sizeof_long+:} false; then :
5240  $as_echo_n "(cached) " >&6
5241else
5242  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5243
5244else
5245  if test "$ac_cv_type_long" = yes; then
5246     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5248as_fn_error 77 "cannot compute sizeof (long)
5249See \`config.log' for more details" "$LINENO" 5; }
5250   else
5251     ac_cv_sizeof_long=0
5252   fi
5253fi
5254
5255fi
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5257$as_echo "$ac_cv_sizeof_long" >&6; }
5258
5259
5260
5261cat >>confdefs.h <<_ACEOF
5262#define SIZEOF_LONG $ac_cv_sizeof_long
5263_ACEOF
5264
5265
5266# The cast to long int works around a bug in the HP C Compiler
5267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5269# This bug is HP SR number 8606223364.
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5271$as_echo_n "checking size of long long... " >&6; }
5272if ${ac_cv_sizeof_long_long+:} false; then :
5273  $as_echo_n "(cached) " >&6
5274else
5275  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5276
5277else
5278  if test "$ac_cv_type_long_long" = yes; then
5279     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5281as_fn_error 77 "cannot compute sizeof (long long)
5282See \`config.log' for more details" "$LINENO" 5; }
5283   else
5284     ac_cv_sizeof_long_long=0
5285   fi
5286fi
5287
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5290$as_echo "$ac_cv_sizeof_long_long" >&6; }
5291
5292
5293
5294cat >>confdefs.h <<_ACEOF
5295#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5296_ACEOF
5297
5298
5299# The cast to long int works around a bug in the HP C Compiler
5300# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5301# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5302# This bug is HP SR number 8606223364.
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5304$as_echo_n "checking size of void *... " >&6; }
5305if ${ac_cv_sizeof_void_p+:} false; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5309
5310else
5311  if test "$ac_cv_type_void_p" = yes; then
5312     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5314as_fn_error 77 "cannot compute sizeof (void *)
5315See \`config.log' for more details" "$LINENO" 5; }
5316   else
5317     ac_cv_sizeof_void_p=0
5318   fi
5319fi
5320
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5323$as_echo "$ac_cv_sizeof_void_p" >&6; }
5324
5325
5326
5327cat >>confdefs.h <<_ACEOF
5328#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5329_ACEOF
5330
5331
5332
5333SIZEOF_LONG="${ac_cv_sizeof_long}"
5334SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}"
5335SIZEOF_VOID_P="${ac_cv_sizeof_void_p}"
5336SIZEOF_INT="${ac_cv_sizeof_int}"
5337
5338
5339for ac_func in sysinfo
5340do :
5341  ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo"
5342if test "x$ac_cv_func_sysinfo" = xyes; then :
5343  cat >>confdefs.h <<_ACEOF
5344#define HAVE_SYSINFO 1
5345_ACEOF
5346
5347fi
5348done
5349
5350for ac_func in gettimeofday
5351do :
5352  ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5353if test "x$ac_cv_func_gettimeofday" = xyes; then :
5354  cat >>confdefs.h <<_ACEOF
5355#define HAVE_GETTIMEOFDAY 1
5356_ACEOF
5357
5358fi
5359done
5360
5361ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
5362if test "x$ac_cv_func_localtime" = xyes; then :
5363
5364else
5365  as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5
5366fi
5367
5368ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
5369if test "x$ac_cv_func_getenv" = xyes; then :
5370
5371else
5372  as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5
5373fi
5374
5375
5376for ac_header in sys/sysinfo.h
5377do :
5378  ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
5379if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
5380  cat >>confdefs.h <<_ACEOF
5381#define HAVE_SYS_SYSINFO_H 1
5382_ACEOF
5383
5384fi
5385
5386done
5387
5388
5389HAVE_LIBNCURSES=no
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&5
5391$as_echo_n "checking for clrtoeol in -lncurses... " >&6; }
5392if ${ac_cv_lib_ncurses_clrtoeol+:} false; then :
5393  $as_echo_n "(cached) " >&6
5394else
5395  ac_check_lib_save_LIBS=$LIBS
5396LIBS="-lncurses  $LIBS"
5397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399
5400/* Override any GCC internal prototype to avoid an error.
5401   Use char because int might match the return type of a GCC
5402   builtin and then its argument prototype would still apply.  */
5403#ifdef __cplusplus
5404extern "C"
5405#endif
5406char clrtoeol ();
5407int
5408main ()
5409{
5410return clrtoeol ();
5411  ;
5412  return 0;
5413}
5414_ACEOF
5415if ac_fn_cxx_try_link "$LINENO"; then :
5416  ac_cv_lib_ncurses_clrtoeol=yes
5417else
5418  ac_cv_lib_ncurses_clrtoeol=no
5419fi
5420rm -f core conftest.err conftest.$ac_objext \
5421    conftest$ac_exeext conftest.$ac_ext
5422LIBS=$ac_check_lib_save_LIBS
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&5
5425$as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; }
5426if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then :
5427  HAVE_LIBNCURSES=yes
5428else
5429  as_fn_error $? "ncurses library missing?" "$LINENO" 5
5430fi
5431
5432for ac_header in ncurses.h
5433do :
5434  ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
5435if test "x$ac_cv_header_ncurses_h" = xyes; then :
5436  cat >>confdefs.h <<_ACEOF
5437#define HAVE_NCURSES_H 1
5438_ACEOF
5439
5440else
5441  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&5
5442$as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;}
5443fi
5444
5445done
5446
5447
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
5449$as_echo_n "checking for main in -lstdc++... " >&6; }
5450if ${ac_cv_lib_stdcpp_main+:} false; then :
5451  $as_echo_n "(cached) " >&6
5452else
5453  ac_check_lib_save_LIBS=$LIBS
5454LIBS="-lstdc++  $LIBS"
5455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h.  */
5457
5458
5459int
5460main ()
5461{
5462return main ();
5463  ;
5464  return 0;
5465}
5466_ACEOF
5467if ac_fn_cxx_try_link "$LINENO"; then :
5468  ac_cv_lib_stdcpp_main=yes
5469else
5470  ac_cv_lib_stdcpp_main=no
5471fi
5472rm -f core conftest.err conftest.$ac_objext \
5473    conftest$ac_exeext conftest.$ac_ext
5474LIBS=$ac_check_lib_save_LIBS
5475fi
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
5477$as_echo "$ac_cv_lib_stdcpp_main" >&6; }
5478if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
5479  cat >>confdefs.h <<_ACEOF
5480#define HAVE_LIBSTDC__ 1
5481_ACEOF
5482
5483  LIBS="-lstdc++ $LIBS"
5484
5485else
5486  as_fn_error $? "librappture requires libstdc++" "$LINENO" 5
5487fi
5488
5489for ac_header in algorithm
5490do :
5491  ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"
5492if test "x$ac_cv_header_algorithm" = xyes; then :
5493  cat >>confdefs.h <<_ACEOF
5494#define HAVE_ALGORITHM 1
5495_ACEOF
5496
5497else
5498  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5499$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5500fi
5501
5502done
5503
5504for ac_header in cctype
5505do :
5506  ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default"
5507if test "x$ac_cv_header_cctype" = xyes; then :
5508  cat >>confdefs.h <<_ACEOF
5509#define HAVE_CCTYPE 1
5510_ACEOF
5511
5512else
5513  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5514$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5515fi
5516
5517done
5518
5519for ac_header in cfloat
5520do :
5521  ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default"
5522if test "x$ac_cv_header_cfloat" = xyes; then :
5523  cat >>confdefs.h <<_ACEOF
5524#define HAVE_CFLOAT 1
5525_ACEOF
5526
5527else
5528  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5529$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5530fi
5531
5532done
5533
5534for ac_header in cmath
5535do :
5536  ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default"
5537if test "x$ac_cv_header_cmath" = xyes; then :
5538  cat >>confdefs.h <<_ACEOF
5539#define HAVE_CMATH 1
5540_ACEOF
5541
5542else
5543  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5544$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5545fi
5546
5547done
5548
5549for ac_header in cstdio
5550do :
5551  ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default"
5552if test "x$ac_cv_header_cstdio" = xyes; then :
5553  cat >>confdefs.h <<_ACEOF
5554#define HAVE_CSTDIO 1
5555_ACEOF
5556
5557else
5558  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5559$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5560fi
5561
5562done
5563
5564for ac_header in cstdlib
5565do :
5566  ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default"
5567if test "x$ac_cv_header_cstdlib" = xyes; then :
5568  cat >>confdefs.h <<_ACEOF
5569#define HAVE_CSTDLIB 1
5570_ACEOF
5571
5572else
5573  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5574$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5575fi
5576
5577done
5578
5579for ac_header in cstring
5580do :
5581  ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default"
5582if test "x$ac_cv_header_cstring" = xyes; then :
5583  cat >>confdefs.h <<_ACEOF
5584#define HAVE_CSTRING 1
5585_ACEOF
5586
5587else
5588  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5589$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5590fi
5591
5592done
5593
5594for ac_header in fstream
5595do :
5596  ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default"
5597if test "x$ac_cv_header_fstream" = xyes; then :
5598  cat >>confdefs.h <<_ACEOF
5599#define HAVE_FSTREAM 1
5600_ACEOF
5601
5602else
5603  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5604$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5605fi
5606
5607done
5608
5609for ac_header in list
5610do :
5611  ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default"
5612if test "x$ac_cv_header_list" = xyes; then :
5613  cat >>confdefs.h <<_ACEOF
5614#define HAVE_LIST 1
5615_ACEOF
5616
5617else
5618  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5619$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5620fi
5621
5622done
5623
5624for ac_header in iostream
5625do :
5626  ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"
5627if test "x$ac_cv_header_iostream" = xyes; then :
5628  cat >>confdefs.h <<_ACEOF
5629#define HAVE_IOSTREAM 1
5630_ACEOF
5631
5632else
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5634$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5635fi
5636
5637done
5638
5639for ac_header in iterator
5640do :
5641  ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default"
5642if test "x$ac_cv_header_iterator" = xyes; then :
5643  cat >>confdefs.h <<_ACEOF
5644#define HAVE_ITERATOR 1
5645_ACEOF
5646
5647else
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5649$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5650fi
5651
5652done
5653
5654for ac_header in sstream
5655do :
5656  ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
5657if test "x$ac_cv_header_sstream" = xyes; then :
5658  cat >>confdefs.h <<_ACEOF
5659#define HAVE_SSTREAM 1
5660_ACEOF
5661
5662else
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5664$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5665fi
5666
5667done
5668
5669for ac_header in stack
5670do :
5671  ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default"
5672if test "x$ac_cv_header_stack" = xyes; then :
5673  cat >>confdefs.h <<_ACEOF
5674#define HAVE_STACK 1
5675_ACEOF
5676
5677else
5678  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5679$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5680fi
5681
5682done
5683
5684for ac_header in string
5685do :
5686  ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
5687if test "x$ac_cv_header_string" = xyes; then :
5688  cat >>confdefs.h <<_ACEOF
5689#define HAVE_STRING 1
5690_ACEOF
5691
5692else
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5694$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5695fi
5696
5697done
5698
5699for ac_header in vector
5700do :
5701  ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
5702if test "x$ac_cv_header_vector" = xyes; then :
5703  cat >>confdefs.h <<_ACEOF
5704#define HAVE_VECTOR 1
5705_ACEOF
5706
5707else
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&5
5709$as_echo "$as_me: WARNING: STL classes missing ?" >&2;}
5710fi
5711
5712done
5713
5714
5715for ac_header in assert.h
5716do :
5717  ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
5718if test "x$ac_cv_header_assert_h" = xyes; then :
5719  cat >>confdefs.h <<_ACEOF
5720#define HAVE_ASSERT_H 1
5721_ACEOF
5722
5723else
5724  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5725$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5726fi
5727
5728done
5729
5730for ac_header in ctype.h
5731do :
5732  ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
5733if test "x$ac_cv_header_ctype_h" = xyes; then :
5734  cat >>confdefs.h <<_ACEOF
5735#define HAVE_CTYPE_H 1
5736_ACEOF
5737
5738else
5739  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5740$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5741fi
5742
5743done
5744
5745for ac_header in errno.h
5746do :
5747  ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
5748if test "x$ac_cv_header_errno_h" = xyes; then :
5749  cat >>confdefs.h <<_ACEOF
5750#define HAVE_ERRNO_H 1
5751_ACEOF
5752
5753else
5754  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5755$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5756fi
5757
5758done
5759
5760for ac_header in limits.h
5761do :
5762  ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5763if test "x$ac_cv_header_limits_h" = xyes; then :
5764  cat >>confdefs.h <<_ACEOF
5765#define HAVE_LIMITS_H 1
5766_ACEOF
5767
5768else
5769  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5770$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5771fi
5772
5773done
5774
5775for ac_header in string.h
5776do :
5777  ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5778if test "x$ac_cv_header_string_h" = xyes; then :
5779  cat >>confdefs.h <<_ACEOF
5780#define HAVE_STRING_H 1
5781_ACEOF
5782
5783else
5784  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5785$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5786fi
5787
5788done
5789
5790for ac_header in stdlib.h
5791do :
5792  ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5793if test "x$ac_cv_header_stdlib_h" = xyes; then :
5794  cat >>confdefs.h <<_ACEOF
5795#define HAVE_STDLIB_H 1
5796_ACEOF
5797
5798else
5799  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5800$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5801fi
5802
5803done
5804
5805for ac_header in stddef.h
5806do :
5807  ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
5808if test "x$ac_cv_header_stddef_h" = xyes; then :
5809  cat >>confdefs.h <<_ACEOF
5810#define HAVE_STDDEF_H 1
5811_ACEOF
5812
5813else
5814  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5815$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5816fi
5817
5818done
5819
5820for ac_header in float.h
5821do :
5822  ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
5823if test "x$ac_cv_header_float_h" = xyes; then :
5824  cat >>confdefs.h <<_ACEOF
5825#define HAVE_FLOAT_H 1
5826_ACEOF
5827
5828else
5829  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5830$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5831fi
5832
5833done
5834
5835for ac_header in math.h
5836do :
5837  ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
5838if test "x$ac_cv_header_math_h" = xyes; then :
5839  cat >>confdefs.h <<_ACEOF
5840#define HAVE_MATH_H 1
5841_ACEOF
5842
5843else
5844  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5845$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5846fi
5847
5848done
5849
5850for ac_header in malloc.h
5851do :
5852  ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5853if test "x$ac_cv_header_malloc_h" = xyes; then :
5854  cat >>confdefs.h <<_ACEOF
5855#define HAVE_MALLOC_H 1
5856_ACEOF
5857
5858else
5859  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5860$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5861fi
5862
5863done
5864
5865for ac_header in memory.h
5866do :
5867  ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
5868if test "x$ac_cv_header_memory_h" = xyes; then :
5869  cat >>confdefs.h <<_ACEOF
5870#define HAVE_MEMORY_H 1
5871_ACEOF
5872
5873else
5874  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5875$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5876fi
5877
5878done
5879
5880for ac_header in unistd.h
5881do :
5882  ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5883if test "x$ac_cv_header_unistd_h" = xyes; then :
5884  cat >>confdefs.h <<_ACEOF
5885#define HAVE_UNISTD_H 1
5886_ACEOF
5887
5888else
5889  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5890$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5891fi
5892
5893done
5894
5895
5896for ac_header in inttypes.h
5897do :
5898  ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5899if test "x$ac_cv_header_inttypes_h" = xyes; then :
5900  cat >>confdefs.h <<_ACEOF
5901#define HAVE_INTTYPES_H 1
5902_ACEOF
5903
5904else
5905  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&5
5906$as_echo "$as_me: WARNING: C headers missing ?" >&2;}
5907fi
5908
5909done
5910
5911if test "${ac_cv_header_inttypes_h}" = "yes" ; then
5912  HAVE_INTTYPES_H=1
5913else
5914  HAVE_INTTYPES_H=0
5915fi
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lvtkDICOM" >&5
5918$as_echo_n "checking for main in -lvtkDICOM... " >&6; }
5919if ${ac_cv_lib_vtkDICOM_main+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922  ac_check_lib_save_LIBS=$LIBS
5923LIBS="-lvtkDICOM  $LIBS"
5924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925/* end confdefs.h.  */
5926
5927
5928int
5929main ()
5930{
5931return main ();
5932  ;
5933  return 0;
5934}
5935_ACEOF
5936if ac_fn_cxx_try_link "$LINENO"; then :
5937  ac_cv_lib_vtkDICOM_main=yes
5938else
5939  ac_cv_lib_vtkDICOM_main=no
5940fi
5941rm -f core conftest.err conftest.$ac_objext \
5942    conftest$ac_exeext conftest.$ac_ext
5943LIBS=$ac_check_lib_save_LIBS
5944fi
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vtkDICOM_main" >&5
5946$as_echo "$ac_cv_lib_vtkDICOM_main" >&6; }
5947if test "x$ac_cv_lib_vtkDICOM_main" = xyes; then :
5948  HAVE_LIBVTKDICOM=yes
5949else
5950  HAVE_LIBVTKDICOM=no
5951fi
5952
5953
5954if test "$with_install" != "yes"; then
5955    INSTALL_PREFIX=$with_install
5956else
5957    INSTALL_PREFIX=$prefix
5958fi
5959
5960if test "${libdir}" != "${prefix}/lib"; then
5961    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
5962else
5963    LIB_SEARCH_DIRS="-L${libdir}"
5964fi
5965
5966. ${exec_prefix}/lib/rapptureConfig.sh
5967. ${exec_prefix}/lib/tclConfig.sh
5968. ${exec_prefix}/lib/tkConfig.sh
5969
5970echo RAPPTURE_VERSION=$RAPPTURE_VERSION
5971
5972#--------------------------------------------------------------------
5973# Set the default compiler switches based on the --enable-symbols
5974# option.
5975#--------------------------------------------------------------------
5976
5977
5978
5979    # Step 0.a: Enable 64 bit support?
5980
5981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
5982$as_echo_n "checking if 64bit support is requested... " >&6; }
5983    # Check whether --enable-64bit was given.
5984if test "${enable_64bit+set}" = set; then :
5985  enableval=$enable_64bit; do64bit=$enableval
5986else
5987  do64bit=no
5988fi
5989
5990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
5991$as_echo "$do64bit" >&6; }
5992
5993    # Step 0.b: Enable Solaris 64 bit VIS support?
5994
5995    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
5996$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
5997    # Check whether --enable-64bit-vis was given.
5998if test "${enable_64bit_vis+set}" = set; then :
5999  enableval=$enable_64bit_vis; do64bitVIS=$enableval
6000else
6001  do64bitVIS=no
6002fi
6003
6004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
6005$as_echo "$do64bitVIS" >&6; }
6006
6007    if test "$do64bitVIS" = "yes"; then
6008        # Force 64bit on with VIS
6009        do64bit=yes
6010    fi
6011
6012    # Step 1: set the variable "system" to hold the name and version number
6013    # for the system.
6014
6015
6016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
6017$as_echo_n "checking system version... " >&6; }
6018if ${tcl_cv_sys_version+:} false; then :
6019  $as_echo_n "(cached) " >&6
6020else
6021
6022        if test -f /usr/lib/NextStep/software_version; then
6023            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
6024        else
6025            tcl_cv_sys_version=`uname -s`-`uname -r`
6026            if test "$?" -ne 0 ; then
6027                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
6028$as_echo "$as_me: WARNING: can't find uname command" >&2;}
6029                tcl_cv_sys_version=unknown
6030            else
6031                # Special check for weird MP-RAS system (uname returns weird
6032                # results, and the version is kept in special file).
6033
6034                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
6035                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
6036                fi
6037                if test "`uname -s`" = "AIX" ; then
6038                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
6039                fi
6040            fi
6041        fi
6042
6043fi
6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
6045$as_echo "$tcl_cv_sys_version" >&6; }
6046    system=$tcl_cv_sys_version
6047
6048
6049    # Step 2: check for existence of -ldl library.  This is needed because
6050    # Linux can use either -ldl or -ldld for dynamic loading.
6051
6052    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6053$as_echo_n "checking for dlopen in -ldl... " >&6; }
6054if ${ac_cv_lib_dl_dlopen+:} false; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057  ac_check_lib_save_LIBS=$LIBS
6058LIBS="-ldl  $LIBS"
6059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h.  */
6061
6062/* Override any GCC internal prototype to avoid an error.
6063   Use char because int might match the return type of a GCC
6064   builtin and then its argument prototype would still apply.  */
6065#ifdef __cplusplus
6066extern "C"
6067#endif
6068char dlopen ();
6069int
6070main ()
6071{
6072return dlopen ();
6073  ;
6074  return 0;
6075}
6076_ACEOF
6077if ac_fn_cxx_try_link "$LINENO"; then :
6078  ac_cv_lib_dl_dlopen=yes
6079else
6080  ac_cv_lib_dl_dlopen=no
6081fi
6082rm -f core conftest.err conftest.$ac_objext \
6083    conftest$ac_exeext conftest.$ac_ext
6084LIBS=$ac_check_lib_save_LIBS
6085fi
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6087$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6088if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6089  have_dl=yes
6090else
6091  have_dl=no
6092fi
6093
6094
6095    # Require ranlib early so we can override it in special cases below.
6096
6097
6098
6099    # Step 3: set configuration options based on system name and version.
6100
6101    do64bit_ok=no
6102    LDFLAGS_ORIG="$LDFLAGS"
6103    TCL_EXPORT_FILE_SUFFIX=""
6104    UNSHARED_LIB_SUFFIX=""
6105    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
6106    ECHO_VERSION='`echo ${VERSION}`'
6107    TCL_LIB_VERSIONS_OK=ok
6108    CFLAGS_DEBUG=-g
6109    CFLAGS_OPTIMIZE=-O
6110    if test "$GCC" = "yes" ; then
6111        CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
6112    else
6113        CFLAGS_WARNING=""
6114    fi
6115    TCL_NEEDS_EXP_FILE=0
6116    TCL_BUILD_EXP_FILE=""
6117    TCL_EXP_FILE=""
6118    # Extract the first word of "ar", so it can be a program name with args.
6119set dummy ar; ac_word=$2
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121$as_echo_n "checking for $ac_word... " >&6; }
6122if ${ac_cv_prog_AR+:} false; then :
6123  $as_echo_n "(cached) " >&6
6124else
6125  if test -n "$AR"; then
6126  ac_cv_prog_AR="$AR" # Let the user override the test.
6127else
6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH
6130do
6131  IFS=$as_save_IFS
6132  test -z "$as_dir" && as_dir=.
6133    for ac_exec_ext in '' $ac_executable_extensions; do
6134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135    ac_cv_prog_AR="ar"
6136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137    break 2
6138  fi
6139done
6140  done
6141IFS=$as_save_IFS
6142
6143fi
6144fi
6145AR=$ac_cv_prog_AR
6146if test -n "$AR"; then
6147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6148$as_echo "$AR" >&6; }
6149else
6150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151$as_echo "no" >&6; }
6152fi
6153
6154
6155    if test "${AR}" = "" ; then
6156        as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
6157    fi
6158    STLIB_LD='${AR} cr'
6159    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
6160    PLAT_OBJS=""
6161    PLAT_SRCS=""
6162    case $system in
6163        AIX-*)
6164            if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
6165                # AIX requires the _r compiler when gcc isn't being used
6166                case "${CC}" in
6167                    *_r)
6168                        # ok ...
6169                        ;;
6170                    *)
6171                        CC=${CC}_r
6172                        ;;
6173                esac
6174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
6175$as_echo "Using $CC for compiling with threads" >&6; }
6176            fi
6177            LIBS="$LIBS -lc"
6178            SHLIB_CFLAGS=""
6179            # Note: need the LIBS below, otherwise Tk won't find Tcl's
6180            # symbols when dynamically loaded into tclsh.
6181            SHLIB_LD_LIBS='${LIBS}'
6182            SHLIB_SUFFIX=".so"
6183
6184            DL_OBJS="tclLoadDl.o"
6185            LD_LIBRARY_PATH_VAR="LIBPATH"
6186
6187            # Check to enable 64-bit flags for compiler/linker on AIX 4+
6188            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
6189                if test "$GCC" = "yes" ; then
6190                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6191$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6192                else
6193                    do64bit_ok=yes
6194                    CFLAGS="$CFLAGS -q64"
6195                    LDFLAGS="$LDFLAGS -q64"
6196                    RANLIB="${RANLIB} -X64"
6197                    AR="${AR} -X64"
6198                    SHLIB_LD_FLAGS="-b64"
6199                fi
6200            fi
6201
6202            if test "`uname -m`" = "ia64" ; then
6203                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
6204                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
6205                # AIX-5 has dl* in libc.so
6206                DL_LIBS=""
6207                if test "$GCC" = "yes" ; then
6208                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
6209                else
6210                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
6211                fi
6212                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
6213            else
6214                if test "$GCC" = "yes" ; then
6215                    SHLIB_LD="gcc -shared"
6216                else
6217                    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
6218                fi
6219                SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
6220                DL_LIBS="-ldl"
6221                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6222                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6223                TCL_NEEDS_EXP_FILE=1
6224                TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
6225            fi
6226
6227            # AIX v<=4.1 has some different flags than 4.2+
6228            if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
6229                LIBOBJS="$LIBOBJS tclLoadAix.o"
6230                DL_LIBS="-lld"
6231            fi
6232
6233            # On AIX <=v4 systems, libbsd.a has to be linked in to support
6234            # non-blocking file IO.  This library has to be linked in after
6235            # the MATH_LIBS or it breaks the pow() function.  The way to
6236            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
6237            # This library also supplies gettimeofday.
6238            #
6239            # AIX does not have a timezone field in struct tm. When the AIX
6240            # bsd library is used, the timezone global and the gettimeofday
6241            # methods are to be avoided for timezone deduction instead, we
6242            # deduce the timezone by comparing the localtime result on a
6243            # known GMT value.
6244
6245            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
6246$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
6247if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  ac_check_lib_save_LIBS=$LIBS
6251LIBS="-lbsd  $LIBS"
6252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253/* end confdefs.h.  */
6254
6255/* Override any GCC internal prototype to avoid an error.
6256   Use char because int might match the return type of a GCC
6257   builtin and then its argument prototype would still apply.  */
6258#ifdef __cplusplus
6259extern "C"
6260#endif
6261char gettimeofday ();
6262int
6263main ()
6264{
6265return gettimeofday ();
6266  ;
6267  return 0;
6268}
6269_ACEOF
6270if ac_fn_cxx_try_link "$LINENO"; then :
6271  ac_cv_lib_bsd_gettimeofday=yes
6272else
6273  ac_cv_lib_bsd_gettimeofday=no
6274fi
6275rm -f core conftest.err conftest.$ac_objext \
6276    conftest$ac_exeext conftest.$ac_ext
6277LIBS=$ac_check_lib_save_LIBS
6278fi
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
6280$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
6281if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
6282  libbsd=yes
6283else
6284  libbsd=no
6285fi
6286
6287            if test $libbsd = yes; then
6288                MATH_LIBS="$MATH_LIBS -lbsd"
6289                $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
6290
6291            fi
6292            ;;
6293        BeOS*)
6294            SHLIB_CFLAGS="-fPIC"
6295            SHLIB_LD="${CC} -nostart"
6296            SHLIB_LD_LIBS='${LIBS}'
6297            SHLIB_SUFFIX=".so"
6298            DL_OBJS="tclLoadDl.o"
6299            DL_LIBS="-ldl"
6300
6301            #-----------------------------------------------------------
6302            # Check for inet_ntoa in -lbind, for BeOS (which also needs
6303            # -lsocket, even if the network functions are in -lnet which
6304            # is always linked to, for compatibility.
6305            #-----------------------------------------------------------
6306            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
6307$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
6308if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
6309  $as_echo_n "(cached) " >&6
6310else
6311  ac_check_lib_save_LIBS=$LIBS
6312LIBS="-lbind  $LIBS"
6313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314/* end confdefs.h.  */
6315
6316/* Override any GCC internal prototype to avoid an error.
6317   Use char because int might match the return type of a GCC
6318   builtin and then its argument prototype would still apply.  */
6319#ifdef __cplusplus
6320extern "C"
6321#endif
6322char inet_ntoa ();
6323int
6324main ()
6325{
6326return inet_ntoa ();
6327  ;
6328  return 0;
6329}
6330_ACEOF
6331if ac_fn_cxx_try_link "$LINENO"; then :
6332  ac_cv_lib_bind_inet_ntoa=yes
6333else
6334  ac_cv_lib_bind_inet_ntoa=no
6335fi
6336rm -f core conftest.err conftest.$ac_objext \
6337    conftest$ac_exeext conftest.$ac_ext
6338LIBS=$ac_check_lib_save_LIBS
6339fi
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
6341$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
6342if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
6343  LIBS="$LIBS -lbind -lsocket"
6344fi
6345
6346            ;;
6347        BSD/OS-2.1*|BSD/OS-3*)
6348            SHLIB_CFLAGS=""
6349            SHLIB_LD="shlicc -r"
6350            SHLIB_LD_LIBS='${LIBS}'
6351            SHLIB_SUFFIX=".so"
6352            DL_OBJS="tclLoadDl.o"
6353            DL_LIBS="-ldl"
6354            CC_SEARCH_FLAGS=""
6355            LD_SEARCH_FLAGS=""
6356            ;;
6357        BSD/OS-4.*)
6358            SHLIB_CFLAGS="-export-dynamic -fPIC"
6359            SHLIB_LD="cc -shared"
6360            SHLIB_LD_LIBS='${LIBS}'
6361            SHLIB_SUFFIX=".so"
6362            DL_OBJS="tclLoadDl.o"
6363            DL_LIBS="-ldl"
6364            LDFLAGS="$LDFLAGS -export-dynamic"
6365            CC_SEARCH_FLAGS=""
6366            LD_SEARCH_FLAGS=""
6367            ;;
6368        dgux*)
6369            SHLIB_CFLAGS="-K PIC"
6370            SHLIB_LD="cc -G"
6371            SHLIB_LD_LIBS=""
6372            SHLIB_SUFFIX=".so"
6373            DL_OBJS="tclLoadDl.o"
6374            DL_LIBS="-ldl"
6375            CC_SEARCH_FLAGS=""
6376            LD_SEARCH_FLAGS=""
6377            ;;
6378        HP-UX-*.11.*)
6379            # Use updated header definitions where possible
6380            $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
6381          # Use the XOPEN network library
6382            $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
6383 # Use the XOPEN network library
6384            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
6385
6386            if test "`uname -m`" = "ia64" ; then
6387                SHLIB_SUFFIX=".so"
6388            else
6389                SHLIB_SUFFIX=".sl"
6390            fi
6391            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6392$as_echo_n "checking for shl_load in -ldld... " >&6; }
6393if ${ac_cv_lib_dld_shl_load+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  ac_check_lib_save_LIBS=$LIBS
6397LIBS="-ldld  $LIBS"
6398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399/* end confdefs.h.  */
6400
6401/* Override any GCC internal prototype to avoid an error.
6402   Use char because int might match the return type of a GCC
6403   builtin and then its argument prototype would still apply.  */
6404#ifdef __cplusplus
6405extern "C"
6406#endif
6407char shl_load ();
6408int
6409main ()
6410{
6411return shl_load ();
6412  ;
6413  return 0;
6414}
6415_ACEOF
6416if ac_fn_cxx_try_link "$LINENO"; then :
6417  ac_cv_lib_dld_shl_load=yes
6418else
6419  ac_cv_lib_dld_shl_load=no
6420fi
6421rm -f core conftest.err conftest.$ac_objext \
6422    conftest$ac_exeext conftest.$ac_ext
6423LIBS=$ac_check_lib_save_LIBS
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6426$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6427if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6428  tcl_ok=yes
6429else
6430  tcl_ok=no
6431fi
6432
6433            if test "$tcl_ok" = yes; then
6434                SHLIB_CFLAGS="+z"
6435                SHLIB_LD="ld -b"
6436                SHLIB_LD_LIBS='${LIBS}'
6437                DL_OBJS="tclLoadShl.o"
6438                DL_LIBS="-ldld"
6439                LDFLAGS="$LDFLAGS -Wl,-E"
6440                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
6441                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
6442                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
6443            fi
6444            if test "$GCC" = "yes" ; then
6445                SHLIB_LD="gcc -shared"
6446                SHLIB_LD_LIBS='${LIBS}'
6447                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6448            fi
6449
6450            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
6451            #CFLAGS="$CFLAGS +DAportable"
6452
6453            # Check to enable 64-bit flags for compiler/linker
6454            if test "$do64bit" = "yes" ; then
6455                if test "$GCC" = "yes" ; then
6456                    hpux_arch=`${CC} -dumpmachine`
6457                    case $hpux_arch in
6458                        hppa64*)
6459                            # 64-bit gcc in use.  Fix flags for GNU ld.
6460                            do64bit_ok=yes
6461                            SHLIB_LD="${CC} -shared"
6462                            SHLIB_LD_LIBS='${LIBS}'
6463                            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6464                            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6465                            ;;
6466                        *)
6467                            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6468$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6469                            ;;
6470                    esac
6471                else
6472                    do64bit_ok=yes
6473                    CFLAGS="$CFLAGS +DD64"
6474                    LDFLAGS="$LDFLAGS +DD64"
6475                fi
6476            fi
6477            ;;
6478        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
6479            SHLIB_SUFFIX=".sl"
6480            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6481$as_echo_n "checking for shl_load in -ldld... " >&6; }
6482if ${ac_cv_lib_dld_shl_load+:} false; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  ac_check_lib_save_LIBS=$LIBS
6486LIBS="-ldld  $LIBS"
6487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488/* end confdefs.h.  */
6489
6490/* Override any GCC internal prototype to avoid an error.
6491   Use char because int might match the return type of a GCC
6492   builtin and then its argument prototype would still apply.  */
6493#ifdef __cplusplus
6494extern "C"
6495#endif
6496char shl_load ();
6497int
6498main ()
6499{
6500return shl_load ();
6501  ;
6502  return 0;
6503}
6504_ACEOF
6505if ac_fn_cxx_try_link "$LINENO"; then :
6506  ac_cv_lib_dld_shl_load=yes
6507else
6508  ac_cv_lib_dld_shl_load=no
6509fi
6510rm -f core conftest.err conftest.$ac_objext \
6511    conftest$ac_exeext conftest.$ac_ext
6512LIBS=$ac_check_lib_save_LIBS
6513fi
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6515$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6516if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6517  tcl_ok=yes
6518else
6519  tcl_ok=no
6520fi
6521
6522            if test "$tcl_ok" = yes; then
6523                SHLIB_CFLAGS="+z"
6524                SHLIB_LD="ld -b"
6525                SHLIB_LD_LIBS=""
6526                DL_OBJS="tclLoadShl.o"
6527                DL_LIBS="-ldld"
6528                LDFLAGS="$LDFLAGS -Wl,-E"
6529                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
6530                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
6531                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
6532            fi
6533            ;;
6534        IRIX-4.*)
6535            SHLIB_CFLAGS="-G 0"
6536            SHLIB_SUFFIX=".a"
6537            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
6538            SHLIB_LD_LIBS='${LIBS}'
6539            DL_OBJS="tclLoadAout.o"
6540            DL_LIBS=""
6541            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
6542            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6543            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6544            SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
6545            ;;
6546        IRIX-5.*)
6547            SHLIB_CFLAGS=""
6548            SHLIB_LD="ld -shared -rdata_shared"
6549            SHLIB_LD_LIBS='${LIBS}'
6550            SHLIB_SUFFIX=".so"
6551            DL_OBJS="tclLoadDl.o"
6552            DL_LIBS=""
6553            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6554            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6555            ;;
6556        IRIX-6.*)
6557            SHLIB_CFLAGS=""
6558            SHLIB_LD="ld -n32 -shared -rdata_shared"
6559            SHLIB_LD_LIBS='${LIBS}'
6560            SHLIB_SUFFIX=".so"
6561            DL_OBJS="tclLoadDl.o"
6562            DL_LIBS=""
6563            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6564            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6565            if test "$GCC" = "yes" ; then
6566                CFLAGS="$CFLAGS -mabi=n32"
6567                LDFLAGS="$LDFLAGS -mabi=n32"
6568            else
6569                case $system in
6570                    IRIX-6.3)
6571                        # Use to build 6.2 compatible binaries on 6.3.
6572                        CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
6573                        ;;
6574                    *)
6575                        CFLAGS="$CFLAGS -n32"
6576                        ;;
6577                esac
6578                LDFLAGS="$LDFLAGS -n32"
6579            fi
6580            ;;
6581        IRIX64-6.*)
6582            SHLIB_CFLAGS=""
6583            SHLIB_LD="ld -n32 -shared -rdata_shared"
6584            SHLIB_LD_LIBS='${LIBS}'
6585            SHLIB_SUFFIX=".so"
6586            DL_OBJS="tclLoadDl.o"
6587            DL_LIBS=""
6588            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6589            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6590
6591            # Check to enable 64-bit flags for compiler/linker
6592
6593            if test "$do64bit" = "yes" ; then
6594                if test "$GCC" = "yes" ; then
6595                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
6596$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
6597                else
6598                    do64bit_ok=yes
6599                    SHLIB_LD="ld -64 -shared -rdata_shared"
6600                    CFLAGS="$CFLAGS -64"
6601                    LDFLAGS="$LDFLAGS -64"
6602                fi
6603            fi
6604            ;;
6605        Linux*)
6606            SHLIB_CFLAGS="-fPIC"
6607            SHLIB_LD_LIBS='${LIBS}'
6608            SHLIB_SUFFIX=".so"
6609
6610            CFLAGS_OPTIMIZE=-O2
6611            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
6612            # when you inline the string and math operations.  Turn this off to
6613            # get rid of the warnings.
6614            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
6615
6616            if test "$have_dl" = yes; then
6617                SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
6618                DL_OBJS="tclLoadDl.o"
6619                DL_LIBS="-ldl"
6620                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6621                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6622                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6623            else
6624                ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
6625if test "x$ac_cv_header_dld_h" = xyes; then :
6626
6627                    SHLIB_LD="ld -shared"
6628                    DL_OBJS="tclLoadDld.o"
6629                    DL_LIBS="-ldld"
6630                    CC_SEARCH_FLAGS=""
6631                    LD_SEARCH_FLAGS=""
6632fi
6633
6634
6635            fi
6636            if test "`uname -m`" = "alpha" ; then
6637                CFLAGS="$CFLAGS -mieee"
6638            fi
6639            if test $do64bit = yes; then
6640                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
6641$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
6642if ${tcl_cv_cc_m64+:} false; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645
6646                    hold_cflags=$CFLAGS
6647                    CFLAGS="$CFLAGS -m64"
6648                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649/* end confdefs.h.  */
6650
6651int
6652main ()
6653{
6654
6655  ;
6656  return 0;
6657}
6658_ACEOF
6659if ac_fn_cxx_try_link "$LINENO"; then :
6660  tcl_cv_cc_m64=yes
6661else
6662  tcl_cv_cc_m64=no
6663fi
6664rm -f core conftest.err conftest.$ac_objext \
6665    conftest$ac_exeext conftest.$ac_ext
6666                    CFLAGS=$hold_cflags
6667fi
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
6669$as_echo "$tcl_cv_cc_m64" >&6; }
6670                if test $tcl_cv_cc_m64 = yes; then
6671                    CFLAGS="$CFLAGS -m64"
6672                    do64bit_ok=yes
6673                fi
6674            fi
6675
6676            # The combo of gcc + glibc has a bug related
6677            # to inlining of functions like strtod(). The
6678            # -fno-builtin flag should address this problem
6679            # but it does not work. The -fno-inline flag
6680            # is kind of overkill but it works.
6681            # Disable inlining only when one of the
6682            # files in compat/*.c is being linked in.
6683            if test x"${LIBOBJS}" != x ; then
6684                CFLAGS="$CFLAGS -fno-inline"
6685            fi
6686
6687            # XIM peeking works under XFree86.
6688            $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
6689
6690
6691            ;;
6692        GNU*)
6693            SHLIB_CFLAGS="-fPIC"
6694            SHLIB_LD_LIBS='${LIBS}'
6695            SHLIB_SUFFIX=".so"
6696
6697            if test "$have_dl" = yes; then
6698                SHLIB_LD="${CC} -shared"
6699                DL_OBJS=""
6700                DL_LIBS="-ldl"
6701                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6702                CC_SEARCH_FLAGS=""
6703                LD_SEARCH_FLAGS=""
6704            else
6705                ac_fn_cxx_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
6706if test "x$ac_cv_header_dld_h" = xyes; then :
6707
6708                    SHLIB_LD="ld -shared"
6709                    DL_OBJS=""
6710                    DL_LIBS="-ldld"
6711                    CC_SEARCH_FLAGS=""
6712                    LD_SEARCH_FLAGS=""
6713fi
6714
6715
6716            fi
6717            if test "`uname -m`" = "alpha" ; then
6718                CFLAGS="$CFLAGS -mieee"
6719            fi
6720            ;;
6721        Lynx*)
6722            SHLIB_CFLAGS="-fPIC"
6723            SHLIB_LD_LIBS='${LIBS}'
6724            SHLIB_SUFFIX=".so"
6725            CFLAGS_OPTIMIZE=-02
6726            SHLIB_LD="${CC} -shared "
6727            DL_OBJS="tclLoadDl.o"
6728            DL_LIBS="-mshared -ldl"
6729            LD_FLAGS="-Wl,--export-dynamic"
6730            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6731            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6732            ;;
6733        MP-RAS-02*)
6734            SHLIB_CFLAGS="-K PIC"
6735            SHLIB_LD="cc -G"
6736            SHLIB_LD_LIBS=""
6737            SHLIB_SUFFIX=".so"
6738            DL_OBJS="tclLoadDl.o"
6739            DL_LIBS="-ldl"
6740            CC_SEARCH_FLAGS=""
6741            LD_SEARCH_FLAGS=""
6742            ;;
6743        MP-RAS-*)
6744            SHLIB_CFLAGS="-K PIC"
6745            SHLIB_LD="cc -G"
6746            SHLIB_LD_LIBS=""
6747            SHLIB_SUFFIX=".so"
6748            DL_OBJS="tclLoadDl.o"
6749            DL_LIBS="-ldl"
6750            LDFLAGS="$LDFLAGS -Wl,-Bexport"
6751            CC_SEARCH_FLAGS=""
6752            LD_SEARCH_FLAGS=""
6753            ;;
6754        NetBSD-*|FreeBSD-[1-2].*)
6755            # Not available on all versions:  check for include file.
6756            ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6757if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6758
6759                # NetBSD/SPARC needs -fPIC, -fpic will not do.
6760                SHLIB_CFLAGS="-fPIC"
6761                SHLIB_LD="ld -Bshareable -x"
6762                SHLIB_LD_LIBS='${LIBS}'
6763                SHLIB_SUFFIX=".so"
6764                DL_OBJS="tclLoadDl.o"
6765                DL_LIBS=""
6766                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6767                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6768                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
6769$as_echo_n "checking for ELF... " >&6; }
6770if ${tcl_cv_ld_elf+:} false; then :
6771  $as_echo_n "(cached) " >&6
6772else
6773
6774                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775/* end confdefs.h.  */
6776
6777#ifdef __ELF__
6778        yes
6779#endif
6780
6781_ACEOF
6782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6783  $EGREP "yes" >/dev/null 2>&1; then :
6784  tcl_cv_ld_elf=yes
6785else
6786  tcl_cv_ld_elf=no
6787fi
6788rm -f conftest*
6789
6790fi
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
6792$as_echo "$tcl_cv_ld_elf" >&6; }
6793                if test $tcl_cv_ld_elf = yes; then
6794                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
6795                else
6796                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
6797                fi
6798
6799else
6800
6801                SHLIB_CFLAGS=""
6802                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
6803                SHLIB_LD_LIBS='${LIBS}'
6804                SHLIB_SUFFIX=".a"
6805                DL_OBJS="tclLoadAout.o"
6806                DL_LIBS=""
6807                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6808                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6809                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
6810
6811fi
6812
6813
6814
6815            # FreeBSD doesn't handle version numbers with dots.
6816
6817            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
6818            TCL_LIB_VERSIONS_OK=nodots
6819            ;;
6820        OpenBSD-*)
6821            case `arch -s` in
6822            m88k|vax)
6823                SHLIB_CFLAGS=""
6824                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
6825                SHLIB_LD_LIBS='${LIBS}'
6826                SHLIB_SUFFIX=".a"
6827                DL_OBJS="tclLoadAout.o"
6828                DL_LIBS=""
6829                LDFLAGS=""
6830                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6831                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6832                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
6833                ;;
6834            *)
6835                # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
6836                case `machine` in
6837                sparc|sparc64)
6838                    SHLIB_CFLAGS="-fPIC";;
6839                *)
6840                    SHLIB_CFLAGS="-fpic";;
6841                esac
6842                SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
6843                SHLIB_LD_LIBS='${LIBS}'
6844                SHLIB_SUFFIX=".so"
6845                DL_OBJS="tclLoadDl.o"
6846                DL_LIBS=""
6847                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6848                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6849                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
6850                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
6851$as_echo_n "checking for ELF... " >&6; }
6852if ${tcl_cv_ld_elf+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855
6856                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857/* end confdefs.h.  */
6858
6859#ifdef __ELF__
6860        yes
6861#endif
6862
6863_ACEOF
6864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6865  $EGREP "yes" >/dev/null 2>&1; then :
6866  tcl_cv_ld_elf=yes
6867else
6868  tcl_cv_ld_elf=no
6869fi
6870rm -f conftest*
6871
6872fi
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
6874$as_echo "$tcl_cv_ld_elf" >&6; }
6875                if test $tcl_cv_ld_elf = yes; then
6876                    LDFLAGS=-Wl,-export-dynamic
6877                else
6878                    LDFLAGS=""
6879                fi
6880                ;;
6881            esac
6882
6883            # OpenBSD doesn't do version numbers with dots.
6884            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
6885            TCL_LIB_VERSIONS_OK=nodots
6886            ;;
6887        FreeBSD-*)
6888            # FreeBSD 3.* and greater have ELF.
6889            SHLIB_CFLAGS="-fPIC"
6890            SHLIB_LD="ld -Bshareable -x"
6891            SHLIB_LD_LIBS='${LIBS}'
6892            SHLIB_SUFFIX=".so"
6893            DL_OBJS="tclLoadDl.o"
6894            DL_LIBS=""
6895            LDFLAGS="$LDFLAGS -export-dynamic"
6896            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6897            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6898            if test "${TCL_THREADS}" = "1" ; then
6899                # The -pthread needs to go in the CFLAGS, not LIBS
6900                LIBS=`echo $LIBS | sed s/-pthread//`
6901                CFLAGS="$CFLAGS -pthread"
6902                LDFLAGS="$LDFLAGS -pthread"
6903            fi
6904            case $system in
6905            FreeBSD-3.*)
6906                # FreeBSD-3 doesn't handle version numbers with dots.
6907                UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
6908                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
6909                TCL_LIB_VERSIONS_OK=nodots
6910                ;;
6911            esac
6912            ;;
6913        Darwin-*)
6914            CFLAGS_OPTIMIZE="-Os"
6915            SHLIB_CFLAGS="-fno-common"
6916            # To avoid discrepancies between what headers configure sees during
6917            # preprocessing tests and compiling tests, move any -isysroot and
6918            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
6919            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
6920                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
6921                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
6922            CFLAGS="`echo " ${CFLAGS}" | \
6923                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
6924                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
6925            if test $do64bit = yes; then
6926                case `arch` in
6927                    ppc)
6928                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
6929$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
6930if ${tcl_cv_cc_arch_ppc64+:} false; then :
6931  $as_echo_n "(cached) " >&6
6932else
6933
6934                            hold_cflags=$CFLAGS
6935                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
6936                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937/* end confdefs.h.  */
6938
6939int
6940main ()
6941{
6942
6943  ;
6944  return 0;
6945}
6946_ACEOF
6947if ac_fn_cxx_try_link "$LINENO"; then :
6948  tcl_cv_cc_arch_ppc64=yes
6949else
6950  tcl_cv_cc_arch_ppc64=no
6951fi
6952rm -f core conftest.err conftest.$ac_objext \
6953    conftest$ac_exeext conftest.$ac_ext
6954                            CFLAGS=$hold_cflags
6955fi
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
6957$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
6958                        if test $tcl_cv_cc_arch_ppc64 = yes; then
6959                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
6960                            do64bit_ok=yes
6961                        fi;;
6962                    i386)
6963                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
6964$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
6965if ${tcl_cv_cc_arch_x86_64+:} false; then :
6966  $as_echo_n "(cached) " >&6
6967else
6968
6969                            hold_cflags=$CFLAGS
6970                            CFLAGS="$CFLAGS -arch x86_64"
6971                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972/* end confdefs.h.  */
6973
6974int
6975main ()
6976{
6977
6978  ;
6979  return 0;
6980}
6981_ACEOF
6982if ac_fn_cxx_try_link "$LINENO"; then :
6983  tcl_cv_cc_arch_x86_64=yes
6984else
6985  tcl_cv_cc_arch_x86_64=no
6986fi
6987rm -f core conftest.err conftest.$ac_objext \
6988    conftest$ac_exeext conftest.$ac_ext
6989                            CFLAGS=$hold_cflags
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
6992$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
6993                        if test $tcl_cv_cc_arch_x86_64 = yes; then
6994                            CFLAGS="$CFLAGS -arch x86_64"
6995                            do64bit_ok=yes
6996                        fi;;
6997                    *)
6998                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
6999$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
7000                esac
7001            else
7002                # Check for combined 32-bit and 64-bit fat build
7003                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
7004                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
7005                    fat_32_64=yes
7006            fi
7007            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
7008            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
7009$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
7010if ${tcl_cv_ld_single_module+:} false; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013
7014                hold_ldflags=$LDFLAGS
7015                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
7016                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* end confdefs.h.  */
7018
7019int
7020main ()
7021{
7022int i;
7023  ;
7024  return 0;
7025}
7026_ACEOF
7027if ac_fn_cxx_try_link "$LINENO"; then :
7028  tcl_cv_ld_single_module=yes
7029else
7030  tcl_cv_ld_single_module=no
7031fi
7032rm -f core conftest.err conftest.$ac_objext \
7033    conftest$ac_exeext conftest.$ac_ext
7034                LDFLAGS=$hold_ldflags
7035fi
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
7037$as_echo "$tcl_cv_ld_single_module" >&6; }
7038            if test $tcl_cv_ld_single_module = yes; then
7039                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
7040            fi
7041            SHLIB_LD_LIBS='${LIBS}'
7042            SHLIB_SUFFIX=".dylib"
7043            DL_OBJS="tclLoadDyld.o"
7044            DL_LIBS=""
7045            # Don't use -prebind when building for Mac OS X 10.4 or later only:
7046            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
7047                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
7048                LDFLAGS="$LDFLAGS -prebind"
7049            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
7050            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
7051$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
7052if ${tcl_cv_ld_search_paths_first+:} false; then :
7053  $as_echo_n "(cached) " >&6
7054else
7055
7056                hold_ldflags=$LDFLAGS
7057                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7058                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060
7061int
7062main ()
7063{
7064int i;
7065  ;
7066  return 0;
7067}
7068_ACEOF
7069if ac_fn_cxx_try_link "$LINENO"; then :
7070  tcl_cv_ld_search_paths_first=yes
7071else
7072  tcl_cv_ld_search_paths_first=no
7073fi
7074rm -f core conftest.err conftest.$ac_objext \
7075    conftest$ac_exeext conftest.$ac_ext
7076                LDFLAGS=$hold_ldflags
7077fi
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
7079$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
7080            if test $tcl_cv_ld_search_paths_first = yes; then
7081                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7082            fi
7083            CC_SEARCH_FLAGS=""
7084            LD_SEARCH_FLAGS=""
7085            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
7086            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
7087            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
7088            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
7089$as_echo_n "checking whether to use CoreFoundation... " >&6; }
7090            # Check whether --enable-corefoundation was given.
7091if test "${enable_corefoundation+set}" = set; then :
7092  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
7093else
7094  tcl_corefoundation=yes
7095fi
7096
7097            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
7098$as_echo "$tcl_corefoundation" >&6; }
7099            if test $tcl_corefoundation = yes; then
7100                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
7101$as_echo_n "checking for CoreFoundation.framework... " >&6; }
7102if ${tcl_cv_lib_corefoundation+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105
7106                    hold_libs=$LIBS
7107                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
7108                        # On Tiger there is no 64-bit CF, so remove 64-bit archs
7109                        # from CFLAGS et al. while testing for presence of CF.
7110                        # 64-bit CF is disabled in tclUnixPort.h if necessary.
7111                        eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
7112                    done; fi
7113                    LIBS="$LIBS -framework CoreFoundation"
7114                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115/* end confdefs.h.  */
7116#include <CoreFoundation/CoreFoundation.h>
7117int
7118main ()
7119{
7120CFBundleRef b = CFBundleGetMainBundle();
7121  ;
7122  return 0;
7123}
7124_ACEOF
7125if ac_fn_cxx_try_link "$LINENO"; then :
7126  tcl_cv_lib_corefoundation=yes
7127else
7128  tcl_cv_lib_corefoundation=no
7129fi
7130rm -f core conftest.err conftest.$ac_objext \
7131    conftest$ac_exeext conftest.$ac_ext
7132                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
7133                        eval $v'="$hold_'$v'"'
7134                    done; fi; LIBS=$hold_libs
7135fi
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
7137$as_echo "$tcl_cv_lib_corefoundation" >&6; }
7138                if test $tcl_cv_lib_corefoundation = yes; then
7139                    LIBS="$LIBS -framework CoreFoundation"
7140                    $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
7141
7142                else
7143                    tcl_corefoundation=no
7144                fi
7145                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
7146                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
7147$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
7148if ${tcl_cv_lib_corefoundation_64+:} false; then :
7149  $as_echo_n "(cached) " >&6
7150else
7151
7152                        for v in CFLAGS CPPFLAGS LDFLAGS; do
7153                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7154                        done
7155                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h.  */
7157#include <CoreFoundation/CoreFoundation.h>
7158int
7159main ()
7160{
7161CFBundleRef b = CFBundleGetMainBundle();
7162  ;
7163  return 0;
7164}
7165_ACEOF
7166if ac_fn_cxx_try_link "$LINENO"; then :
7167  tcl_cv_lib_corefoundation_64=yes
7168else
7169  tcl_cv_lib_corefoundation_64=no
7170fi
7171rm -f core conftest.err conftest.$ac_objext \
7172    conftest$ac_exeext conftest.$ac_ext
7173                        for v in CFLAGS CPPFLAGS LDFLAGS; do
7174                            eval $v'="$hold_'$v'"'
7175                        done
7176fi
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
7178$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
7179                    if test $tcl_cv_lib_corefoundation_64 = no; then
7180                        $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
7181
7182                    fi
7183                fi
7184            fi
7185            $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
7186
7187            ;;
7188        NEXTSTEP-*)
7189            SHLIB_CFLAGS=""
7190            SHLIB_LD="cc -nostdlib -r"
7191            SHLIB_LD_LIBS=""
7192            SHLIB_SUFFIX=".so"
7193            DL_OBJS="tclLoadNext.o"
7194            DL_LIBS=""
7195            CC_SEARCH_FLAGS=""
7196            LD_SEARCH_FLAGS=""
7197            ;;
7198        OS/390-*)
7199            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
7200            $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
7201        # needed in sys/socket.h
7202            ;;
7203        OSF1-1.0|OSF1-1.1|OSF1-1.2)
7204            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
7205            SHLIB_CFLAGS=""
7206            # Hack: make package name same as library name
7207            SHLIB_LD='ld -R -export :'
7208            SHLIB_LD_LIBS=""
7209            SHLIB_SUFFIX=".so"
7210            DL_OBJS="tclLoadOSF.o"
7211            DL_LIBS=""
7212            CC_SEARCH_FLAGS=""
7213            LD_SEARCH_FLAGS=""
7214            ;;
7215        OSF1-1.*)
7216            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
7217            SHLIB_CFLAGS="-fPIC"
7218            if test "$SHARED_BUILD" = "1" ; then
7219                SHLIB_LD="ld -shared"
7220            else
7221                SHLIB_LD="ld -non_shared"
7222            fi
7223            SHLIB_LD_LIBS=""
7224            SHLIB_SUFFIX=".so"
7225            DL_OBJS="tclLoadDl.o"
7226            DL_LIBS=""
7227            CC_SEARCH_FLAGS=""
7228            LD_SEARCH_FLAGS=""
7229            ;;
7230        OSF1-V*)
7231            # Digital OSF/1
7232            SHLIB_CFLAGS=""
7233            if test "$SHARED_BUILD" = "1" ; then
7234                SHLIB_LD='ld -shared -expect_unresolved "*"'
7235            else
7236                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
7237            fi
7238            SHLIB_LD_LIBS=""
7239            SHLIB_SUFFIX=".so"
7240            DL_OBJS="tclLoadDl.o"
7241            DL_LIBS=""
7242            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7243            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7244            if test "$GCC" = "yes" ; then
7245                CFLAGS="$CFLAGS -mieee"
7246            else
7247                CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
7248            fi
7249            # see pthread_intro(3) for pthread support on osf1, k.furukawa
7250            if test "${TCL_THREADS}" = "1" ; then
7251                CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
7252                CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
7253                LIBS=`echo $LIBS | sed s/-lpthreads//`
7254                if test "$GCC" = "yes" ; then
7255                    LIBS="$LIBS -lpthread -lmach -lexc"
7256                else
7257                    CFLAGS="$CFLAGS -pthread"
7258                    LDFLAGS="$LDFLAGS -pthread"
7259                fi
7260            fi
7261
7262            ;;
7263        QNX-6*)
7264            # QNX RTP
7265            # This may work for all QNX, but it was only reported for v6.
7266            SHLIB_CFLAGS="-fPIC"
7267            SHLIB_LD="ld -Bshareable -x"
7268            SHLIB_LD_LIBS=""
7269            SHLIB_SUFFIX=".so"
7270            DL_OBJS="tclLoadDl.o"
7271            # dlopen is in -lc on QNX
7272            DL_LIBS=""
7273            CC_SEARCH_FLAGS=""
7274            LD_SEARCH_FLAGS=""
7275            ;;
7276        RISCos-*)
7277            SHLIB_CFLAGS="-G 0"
7278            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
7279            SHLIB_LD_LIBS='${LIBS}'
7280            SHLIB_SUFFIX=".a"
7281            DL_OBJS="tclLoadAout.o"
7282            DL_LIBS=""
7283            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
7284            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7285            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7286            ;;
7287        SCO_SV-3.2*)
7288            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
7289            # this test works, since "uname -s" was non-standard in 3.2.4 and
7290            # below.
7291            if test "$GCC" = "yes" ; then
7292                SHLIB_CFLAGS="-fPIC -melf"
7293                LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
7294            else
7295                SHLIB_CFLAGS="-Kpic -belf"
7296                LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
7297            fi
7298            SHLIB_LD="ld -G"
7299            SHLIB_LD_LIBS=""
7300            SHLIB_SUFFIX=".so"
7301            DL_OBJS="tclLoadDl.o"
7302            DL_LIBS=""
7303            CC_SEARCH_FLAGS=""
7304            LD_SEARCH_FLAGS=""
7305            ;;
7306        SINIX*5.4*)
7307            SHLIB_CFLAGS="-K PIC"
7308            SHLIB_LD="cc -G"
7309            SHLIB_LD_LIBS=""
7310            SHLIB_SUFFIX=".so"
7311            DL_OBJS="tclLoadDl.o"
7312            DL_LIBS="-ldl"
7313            CC_SEARCH_FLAGS=""
7314            LD_SEARCH_FLAGS=""
7315            ;;
7316        SunOS-4*)
7317            SHLIB_CFLAGS="-PIC"
7318            SHLIB_LD="ld"
7319            SHLIB_LD_LIBS=""
7320            SHLIB_SUFFIX=".so"
7321            DL_OBJS="tclLoadDl.o"
7322            DL_LIBS="-ldl"
7323            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7324            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7325
7326            # SunOS can't handle version numbers with dots in them in library
7327            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
7328            # requires an extra version number at the end of .so file names.
7329            # So, the library has to have a name like libtcl75.so.1.0
7330
7331            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
7332            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
7333            TCL_LIB_VERSIONS_OK=nodots
7334            ;;
7335        SunOS-5.[0-6])
7336            # Careful to not let 5.10+ fall into this case
7337
7338            # Note: If _REENTRANT isn't defined, then Solaris
7339            # won't define thread-safe library routines.
7340
7341            $as_echo "#define _REENTRANT 1" >>confdefs.h
7342
7343            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7344
7345
7346            SHLIB_CFLAGS="-KPIC"
7347
7348            # Note: need the LIBS below, otherwise Tk won't find Tcl's
7349            # symbols when dynamically loaded into tclsh.
7350
7351            SHLIB_LD_LIBS='${LIBS}'
7352            SHLIB_SUFFIX=".so"
7353            DL_OBJS="tclLoadDl.o"
7354            DL_LIBS="-ldl"
7355            if test "$GCC" = "yes" ; then
7356                SHLIB_LD="$CC -shared"
7357                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7358                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7359            else
7360                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7361                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7362                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7363            fi
7364            ;;
7365        SunOS-5*)
7366            # Note: If _REENTRANT isn't defined, then Solaris
7367            # won't define thread-safe library routines.
7368
7369            $as_echo "#define _REENTRANT 1" >>confdefs.h
7370
7371            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7372
7373
7374            SHLIB_CFLAGS="-KPIC"
7375
7376            # Check to enable 64-bit flags for compiler/linker
7377            if test "$do64bit" = "yes" ; then
7378                arch=`isainfo`
7379                if test "$arch" = "sparcv9 sparc" ; then
7380                        if test "$GCC" = "yes" ; then
7381                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
7382                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
7383$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
7384                            else
7385                                do64bit_ok=yes
7386                                CFLAGS="$CFLAGS -m64 -mcpu=v9"
7387                                LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
7388                                SHLIB_CFLAGS="-fPIC"
7389                            fi
7390                        else
7391                            do64bit_ok=yes
7392                            if test "$do64bitVIS" = "yes" ; then
7393                                CFLAGS="$CFLAGS -xarch=v9a"
7394                                LDFLAGS="$LDFLAGS -xarch=v9a"
7395                            else
7396                                CFLAGS="$CFLAGS -xarch=v9"
7397                                LDFLAGS="$LDFLAGS -xarch=v9"
7398                            fi
7399                            # Solaris 64 uses this as well
7400                            #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
7401                        fi
7402                elif test "$arch" = "amd64 i386" ; then
7403                    if test "$GCC" = "yes" ; then
7404                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7405$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7406                    else
7407                        do64bit_ok=yes
7408                        CFLAGS="$CFLAGS -xarch=amd64"
7409                        LDFLAGS="$LDFLAGS -xarch=amd64"
7410                    fi
7411                else
7412                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
7413$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
7414                fi
7415            fi
7416
7417            # Note: need the LIBS below, otherwise Tk won't find Tcl's
7418            # symbols when dynamically loaded into tclsh.
7419
7420            SHLIB_LD_LIBS='${LIBS}'
7421            SHLIB_SUFFIX=".so"
7422            DL_OBJS="tclLoadDl.o"
7423            DL_LIBS="-ldl"
7424            if test "$GCC" = "yes" ; then
7425                SHLIB_LD="$CC -shared"
7426                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7427                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7428                if test "$do64bit_ok" = "yes" ; then
7429                    # We need to specify -static-libgcc or we need to
7430                    # add the path to the sparv9 libgcc.
7431                    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
7432                    # for finding sparcv9 libgcc, get the regular libgcc
7433                    # path, remove so name and append 'sparcv9'
7434                    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
7435                    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
7436                fi
7437            else
7438                case $system in
7439                    SunOS-5.[1-9][0-9]*)
7440                        SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
7441                    *)
7442                        SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
7443                esac
7444                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7445                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7446            fi
7447            ;;
7448        ULTRIX-4.*)
7449            SHLIB_CFLAGS="-G 0"
7450            SHLIB_SUFFIX=".a"
7451            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
7452            SHLIB_LD_LIBS='${LIBS}'
7453            DL_OBJS="tclLoadAout.o"
7454            DL_LIBS=""
7455            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
7456            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7457            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7458            if test "$GCC" != "yes" ; then
7459                CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
7460            fi
7461            ;;
7462        UNIX_SV* | UnixWare-5*)
7463            SHLIB_CFLAGS="-KPIC"
7464            SHLIB_LD="cc -G"
7465            SHLIB_LD_LIBS=""
7466            SHLIB_SUFFIX=".so"
7467            DL_OBJS="tclLoadDl.o"
7468            DL_LIBS="-ldl"
7469            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
7470            # that don't grok the -Bexport option.  Test that it does.
7471            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
7472$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
7473if ${tcl_cv_ld_Bexport+:} false; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476
7477                hold_ldflags=$LDFLAGS
7478                LDFLAGS="$LDFLAGS -Wl,-Bexport"
7479                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480/* end confdefs.h.  */
7481
7482int
7483main ()
7484{
7485int i;
7486  ;
7487  return 0;
7488}
7489_ACEOF
7490if ac_fn_cxx_try_link "$LINENO"; then :
7491  tcl_cv_ld_Bexport=yes
7492else
7493  tcl_cv_ld_Bexport=no
7494fi
7495rm -f core conftest.err conftest.$ac_objext \
7496    conftest$ac_exeext conftest.$ac_ext
7497                LDFLAGS=$hold_ldflags
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
7500$as_echo "$tcl_cv_ld_Bexport" >&6; }
7501            if test $tcl_cv_ld_Bexport = yes; then
7502                LDFLAGS="$LDFLAGS -Wl,-Bexport"
7503            fi
7504            CC_SEARCH_FLAGS=""
7505            LD_SEARCH_FLAGS=""
7506            ;;
7507    esac
7508
7509    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
7510        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
7511$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
7512    fi
7513
7514
7515
7516
7517    # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
7518    # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
7519    # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
7520    # to determine which of several header files defines the a.out file
7521    # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
7522    # support only a file format that is more or less version-7-compatible.
7523    # In particular,
7524    #   - a.out files must begin with `struct exec'.
7525    #   - the N_TXTOFF on the `struct exec' must compute the seek address
7526    #     of the text segment
7527    #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
7528    #     and a_entry fields.
7529    # The following compilation should succeed if and only if either sys/exec.h
7530    # or a.out.h is usable for the purpose.
7531    #
7532    # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
7533    # `struct exec' includes a second header that contains information that
7534    # duplicates the v7 fields that are needed.
7535
7536    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
7537        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
7538$as_echo_n "checking sys/exec.h... " >&6; }
7539if ${tcl_cv_sysexec_h+:} false; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542
7543        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544/* end confdefs.h.  */
7545#include <sys/exec.h>
7546int
7547main ()
7548{
7549
7550            struct exec foo;
7551            unsigned long seek;
7552            int flag;
7553#if defined(__mips) || defined(mips)
7554            seek = N_TXTOFF (foo.ex_f, foo.ex_o);
7555#else
7556            seek = N_TXTOFF (foo);
7557#endif
7558            flag = (foo.a_magic == OMAGIC);
7559            return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
7560
7561  ;
7562  return 0;
7563}
7564_ACEOF
7565if ac_fn_cxx_try_compile "$LINENO"; then :
7566  tcl_cv_sysexec_h=usable
7567else
7568  tcl_cv_sysexec_h=unusable
7569fi
7570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571fi
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
7573$as_echo "$tcl_cv_sysexec_h" >&6; }
7574        if test $tcl_cv_sysexec_h = usable; then
7575            $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
7576
7577        else
7578            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
7579$as_echo_n "checking a.out.h... " >&6; }
7580if ${tcl_cv_aout_h+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583
7584            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585/* end confdefs.h.  */
7586#include <a.out.h>
7587int
7588main ()
7589{
7590
7591                struct exec foo;
7592                unsigned long seek;
7593                int flag;
7594#if defined(__mips) || defined(mips)
7595                seek = N_TXTOFF (foo.ex_f, foo.ex_o);
7596#else
7597                seek = N_TXTOFF (foo);
7598#endif
7599                flag = (foo.a_magic == OMAGIC);
7600                return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
7601
7602  ;
7603  return 0;
7604}
7605_ACEOF
7606if ac_fn_cxx_try_compile "$LINENO"; then :
7607  tcl_cv_aout_h=usable
7608else
7609  tcl_cv_aout_h=unusable
7610fi
7611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7612fi
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
7614$as_echo "$tcl_cv_aout_h" >&6; }
7615            if test $tcl_cv_aout_h = usable; then
7616                $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
7617
7618            else
7619                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
7620$as_echo_n "checking sys/exec_aout.h... " >&6; }
7621if ${tcl_cv_sysexecaout_h+:} false; then :
7622  $as_echo_n "(cached) " >&6
7623else
7624
7625                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627#include <sys/exec_aout.h>
7628int
7629main ()
7630{
7631
7632                    struct exec foo;
7633                    unsigned long seek;
7634                    int flag;
7635#if defined(__mips) || defined(mips)
7636                    seek = N_TXTOFF (foo.ex_f, foo.ex_o);
7637#else
7638                    seek = N_TXTOFF (foo);
7639#endif
7640                    flag = (foo.a_midmag == OMAGIC);
7641                    return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
7642
7643  ;
7644  return 0;
7645}
7646_ACEOF
7647if ac_fn_cxx_try_compile "$LINENO"; then :
7648  tcl_cv_sysexecaout_h=usable
7649else
7650  tcl_cv_sysexecaout_h=unusable
7651fi
7652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653fi
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
7655$as_echo "$tcl_cv_sysexecaout_h" >&6; }
7656                if test $tcl_cv_sysexecaout_h = usable; then
7657                    $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
7658
7659                else
7660                    DL_OBJS=""
7661                fi
7662            fi
7663        fi
7664    fi
7665
7666    # Step 5: disable dynamic loading if requested via a command-line switch.
7667
7668    # Check whether --enable-load was given.
7669if test "${enable_load+set}" = set; then :
7670  enableval=$enable_load; tcl_ok=$enableval
7671else
7672  tcl_ok=yes
7673fi
7674
7675    if test "$tcl_ok" = "no"; then
7676        DL_OBJS=""
7677    fi
7678
7679    if test "x$DL_OBJS" != "x" ; then
7680        BUILD_DLTEST="\$(DLTEST_TARGETS)"
7681    else
7682        echo "Can't figure out how to do dynamic loading or shared libraries"
7683        echo "on this system."
7684        SHLIB_CFLAGS=""
7685        SHLIB_LD=""
7686        SHLIB_SUFFIX=""
7687        DL_OBJS="tclLoadNone.o"
7688        DL_LIBS=""
7689        LDFLAGS="$LDFLAGS_ORIG"
7690        CC_SEARCH_FLAGS=""
7691        LD_SEARCH_FLAGS=""
7692        BUILD_DLTEST=""
7693    fi
7694
7695    # If we're running gcc, then change the C flags for compiling shared
7696    # libraries to the right flags for gcc, instead of those for the
7697    # standard manufacturer compiler.
7698
7699    if test "$DL_OBJS" != "tclLoadNone.o" ; then
7700        if test "$GCC" = "yes" ; then
7701            case $system in
7702                AIX-*)
7703                    ;;
7704                BSD/OS*)
7705                    ;;
7706                IRIX*)
7707                    ;;
7708                NetBSD-*|FreeBSD-*|OpenBSD-*)
7709                    ;;
7710                Darwin-*)
7711                    ;;
7712                RISCos-*)
7713                    ;;
7714                SCO_SV-3.2*)
7715                    ;;
7716                ULTRIX-4.*)
7717                    ;;
7718                *)
7719                    SHLIB_CFLAGS="-fPIC"
7720                    ;;
7721            esac
7722        fi
7723    fi
7724
7725    if test "$SHARED_LIB_SUFFIX" = "" ; then
7726        SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
7727    fi
7728    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
7729        UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
7730    fi
7731
7732    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
7733        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
7734        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
7735        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
7736    else
7737        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
7738
7739        if test "$RANLIB" = "" ; then
7740            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
7741            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
7742        else
7743            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
7744            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
7745        fi
7746
7747    fi
7748
7749
7750    # Stub lib does not depend on shared/static configuration
7751    if test "$RANLIB" = "" ; then
7752        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
7753        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
7754    else
7755        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
7756        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
7757    fi
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
7792$as_echo_n "checking for build with symbols... " >&6; }
7793    # Check whether --enable-symbols was given.
7794if test "${enable_symbols+set}" = set; then :
7795  enableval=$enable_symbols; tcl_ok=$enableval
7796else
7797  tcl_ok=no
7798fi
7799
7800# FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT.
7801    if test "$tcl_ok" = "no"; then
7802        CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)'
7803        LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)'
7804        DBGX=""
7805        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
7807    else
7808        CFLAGS_DEFAULT='$(CFLAGS_DEBUG)'
7809        LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)'
7810        DBGX=g
7811        if test "$tcl_ok" = "yes"; then
7812            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
7813$as_echo "yes (standard debugging)" >&6; }
7814        fi
7815    fi
7816
7817
7818
7819    if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
7820        $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
7821
7822    fi
7823
7824    if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then
7825        $as_echo "#define TCL_COMPILE_DEBUG 1" >>confdefs.h
7826
7827        $as_echo "#define TCL_COMPILE_STATS 1" >>confdefs.h
7828
7829    fi
7830
7831    if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
7832        if test "$tcl_ok" = "all"; then
7833            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem compile debugging" >&5
7834$as_echo "enabled symbols mem compile debugging" >&6; }
7835        else
7836            { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
7837$as_echo "enabled $tcl_ok debugging" >&6; }
7838        fi
7839    fi
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849MAKE=${make_command}
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901ac_config_files="$ac_config_files DicomToVtk/Makefile DicomToVtk/pkgIndex.tcl DxToVtk/Makefile DxToVtk/pkgIndex.tcl Makefile PdbToVtk/Makefile PdbToVtk/pkgIndex.tcl builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile diffview/Makefile diffview/pkgIndex.tcl hotspot/Makefile hotspot/pkgIndex.tcl listbox/Makefile listbox/pkgIndex.tcl objects/Makefile p2p/Makefile placard/Makefile placard/pkgIndex.tcl readpoints/Makefile readpoints/pkgIndex.tcl runner/Makefile runner/pkgIndex.tcl runner/scripts/Makefile squeezer/Makefile squeezer/pkgIndex.tcl system/Makefile system/pkgIndex.tcl tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile"
7902
7903cat >confcache <<\_ACEOF
7904# This file is a shell script that caches the results of configure
7905# tests run on this system so they can be shared between configure
7906# scripts and configure runs, see configure's option --config-cache.
7907# It is not useful on other systems.  If it contains results you don't
7908# want to keep, you may remove or edit it.
7909#
7910# config.status only pays attention to the cache file if you give it
7911# the --recheck option to rerun configure.
7912#
7913# `ac_cv_env_foo' variables (set or unset) will be overridden when
7914# loading this file, other *unset* `ac_cv_foo' will be assigned the
7915# following values.
7916
7917_ACEOF
7918
7919# The following way of writing the cache mishandles newlines in values,
7920# but we know of no workaround that is simple, portable, and efficient.
7921# So, we kill variables containing newlines.
7922# Ultrix sh set writes to stderr and can't be redirected directly,
7923# and sets the high bit in the cache file unless we assign to the vars.
7924(
7925  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7926    eval ac_val=\$$ac_var
7927    case $ac_val in #(
7928    *${as_nl}*)
7929      case $ac_var in #(
7930      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7931$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7932      esac
7933      case $ac_var in #(
7934      _ | IFS | as_nl) ;; #(
7935      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7936      *) { eval $ac_var=; unset $ac_var;} ;;
7937      esac ;;
7938    esac
7939  done
7940
7941  (set) 2>&1 |
7942    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7943    *${as_nl}ac_space=\ *)
7944      # `set' does not quote correctly, so add quotes: double-quote
7945      # substitution turns \\\\ into \\, and sed turns \\ into \.
7946      sed -n \
7947        "s/'/'\\\\''/g;
7948          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7949      ;; #(
7950    *)
7951      # `set' quotes correctly as required by POSIX, so do not add quotes.
7952      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7953      ;;
7954    esac |
7955    sort
7956) |
7957  sed '
7958     /^ac_cv_env_/b end
7959     t clear
7960     :clear
7961     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7962     t end
7963     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7964     :end' >>confcache
7965if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7966  if test -w "$cache_file"; then
7967    if test "x$cache_file" != "x/dev/null"; then
7968      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7969$as_echo "$as_me: updating cache $cache_file" >&6;}
7970      if test ! -f "$cache_file" || test -h "$cache_file"; then
7971        cat confcache >"$cache_file"
7972      else
7973        case $cache_file in #(
7974        */* | ?:*)
7975          mv -f confcache "$cache_file"$$ &&
7976          mv -f "$cache_file"$$ "$cache_file" ;; #(
7977        *)
7978          mv -f confcache "$cache_file" ;;
7979        esac
7980      fi
7981    fi
7982  else
7983    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7984$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7985  fi
7986fi
7987rm -f confcache
7988
7989test "x$prefix" = xNONE && prefix=$ac_default_prefix
7990# Let make expand exec_prefix.
7991test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7992
7993DEFS=-DHAVE_CONFIG_H
7994
7995ac_libobjs=
7996ac_ltlibobjs=
7997U=
7998for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7999  # 1. Remove the extension, and $U if already installed.
8000  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8001  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8002  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8003  #    will be set to the directory where LIBOBJS objects are built.
8004  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8005  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8006done
8007LIBOBJS=$ac_libobjs
8008
8009LTLIBOBJS=$ac_ltlibobjs
8010
8011
8012
8013
8014: "${CONFIG_STATUS=./config.status}"
8015ac_write_fail=0
8016ac_clean_files_save=$ac_clean_files
8017ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8019$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8020as_write_fail=0
8021cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8022#! $SHELL
8023# Generated by $as_me.
8024# Run this file to recreate the current configuration.
8025# Compiler output produced by configure, useful for debugging
8026# configure, is in config.log if it exists.
8027
8028debug=false
8029ac_cs_recheck=false
8030ac_cs_silent=false
8031
8032SHELL=\${CONFIG_SHELL-$SHELL}
8033export SHELL
8034_ASEOF
8035cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8036## -------------------- ##
8037## M4sh Initialization. ##
8038## -------------------- ##
8039
8040# Be more Bourne compatible
8041DUALCASE=1; export DUALCASE # for MKS sh
8042if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8043  emulate sh
8044  NULLCMD=:
8045  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8046  # is contrary to our usage.  Disable this feature.
8047  alias -g '${1+"$@"}'='"$@"'
8048  setopt NO_GLOB_SUBST
8049else
8050  case `(set -o) 2>/dev/null` in #(
8051  *posix*) :
8052    set -o posix ;; #(
8053  *) :
8054     ;;
8055esac
8056fi
8057
8058
8059as_nl='
8060'
8061export as_nl
8062# Printing a long string crashes Solaris 7 /usr/bin/printf.
8063as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8064as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8065as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8066# Prefer a ksh shell builtin over an external printf program on Solaris,
8067# but without wasting forks for bash or zsh.
8068if test -z "$BASH_VERSION$ZSH_VERSION" \
8069    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8070  as_echo='print -r --'
8071  as_echo_n='print -rn --'
8072elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8073  as_echo='printf %s\n'
8074  as_echo_n='printf %s'
8075else
8076  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8077    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8078    as_echo_n='/usr/ucb/echo -n'
8079  else
8080    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8081    as_echo_n_body='eval
8082      arg=$1;
8083      case $arg in #(
8084      *"$as_nl"*)
8085        expr "X$arg" : "X\\(.*\\)$as_nl";
8086        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8087      esac;
8088      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8089    '
8090    export as_echo_n_body
8091    as_echo_n='sh -c $as_echo_n_body as_echo'
8092  fi
8093  export as_echo_body
8094  as_echo='sh -c $as_echo_body as_echo'
8095fi
8096
8097# The user is always right.
8098if test "${PATH_SEPARATOR+set}" != set; then
8099  PATH_SEPARATOR=:
8100  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8101    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8102      PATH_SEPARATOR=';'
8103  }
8104fi
8105
8106
8107# IFS
8108# We need space, tab and new line, in precisely that order.  Quoting is
8109# there to prevent editors from complaining about space-tab.
8110# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8111# splitting by setting IFS to empty value.)
8112IFS=" ""        $as_nl"
8113
8114# Find who we are.  Look in the path if we contain no directory separator.
8115as_myself=
8116case $0 in #((
8117  *[\\/]* ) as_myself=$0 ;;
8118  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121  IFS=$as_save_IFS
8122  test -z "$as_dir" && as_dir=.
8123    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8124  done
8125IFS=$as_save_IFS
8126
8127     ;;
8128esac
8129# We did not find ourselves, most probably we were run as `sh COMMAND'
8130# in which case we are not to be found in the path.
8131if test "x$as_myself" = x; then
8132  as_myself=$0
8133fi
8134if test ! -f "$as_myself"; then
8135  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8136  exit 1
8137fi
8138
8139# Unset variables that we do not need and which cause bugs (e.g. in
8140# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8141# suppresses any "Segmentation fault" message there.  '((' could
8142# trigger a bug in pdksh 5.2.14.
8143for as_var in BASH_ENV ENV MAIL MAILPATH
8144do eval test x\${$as_var+set} = xset \
8145  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8146done
8147PS1='$ '
8148PS2='> '
8149PS4='+ '
8150
8151# NLS nuisances.
8152LC_ALL=C
8153export LC_ALL
8154LANGUAGE=C
8155export LANGUAGE
8156
8157# CDPATH.
8158(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8159
8160
8161# as_fn_error STATUS ERROR [LINENO LOG_FD]
8162# ----------------------------------------
8163# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8164# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8165# script with STATUS, using 1 if that was 0.
8166as_fn_error ()
8167{
8168  as_status=$1; test $as_status -eq 0 && as_status=1
8169  if test "$4"; then
8170    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8171    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8172  fi
8173  $as_echo "$as_me: error: $2" >&2
8174  as_fn_exit $as_status
8175} # as_fn_error
8176
8177
8178# as_fn_set_status STATUS
8179# -----------------------
8180# Set $? to STATUS, without forking.
8181as_fn_set_status ()
8182{
8183  return $1
8184} # as_fn_set_status
8185
8186# as_fn_exit STATUS
8187# -----------------
8188# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8189as_fn_exit ()
8190{
8191  set +e
8192  as_fn_set_status $1
8193  exit $1
8194} # as_fn_exit
8195
8196# as_fn_unset VAR
8197# ---------------
8198# Portably unset VAR.
8199as_fn_unset ()
8200{
8201  { eval $1=; unset $1;}
8202}
8203as_unset=as_fn_unset
8204# as_fn_append VAR VALUE
8205# ----------------------
8206# Append the text in VALUE to the end of the definition contained in VAR. Take
8207# advantage of any shell optimizations that allow amortized linear growth over
8208# repeated appends, instead of the typical quadratic growth present in naive
8209# implementations.
8210if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8211  eval 'as_fn_append ()
8212  {
8213    eval $1+=\$2
8214  }'
8215else
8216  as_fn_append ()
8217  {
8218    eval $1=\$$1\$2
8219  }
8220fi # as_fn_append
8221
8222# as_fn_arith ARG...
8223# ------------------
8224# Perform arithmetic evaluation on the ARGs, and store the result in the
8225# global $as_val. Take advantage of shells that can avoid forks. The arguments
8226# must be portable across $(()) and expr.
8227if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8228  eval 'as_fn_arith ()
8229  {
8230    as_val=$(( $* ))
8231  }'
8232else
8233  as_fn_arith ()
8234  {
8235    as_val=`expr "$@" || test $? -eq 1`
8236  }
8237fi # as_fn_arith
8238
8239
8240if expr a : '\(a\)' >/dev/null 2>&1 &&
8241   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8242  as_expr=expr
8243else
8244  as_expr=false
8245fi
8246
8247if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8248  as_basename=basename
8249else
8250  as_basename=false
8251fi
8252
8253if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8254  as_dirname=dirname
8255else
8256  as_dirname=false
8257fi
8258
8259as_me=`$as_basename -- "$0" ||
8260$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8261         X"$0" : 'X\(//\)$' \| \
8262         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8263$as_echo X/"$0" |
8264    sed '/^.*\/\([^/][^/]*\)\/*$/{
8265            s//\1/
8266            q
8267          }
8268          /^X\/\(\/\/\)$/{
8269            s//\1/
8270            q
8271          }
8272          /^X\/\(\/\).*/{
8273            s//\1/
8274            q
8275          }
8276          s/.*/./; q'`
8277
8278# Avoid depending upon Character Ranges.
8279as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8280as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8281as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8282as_cr_digits='0123456789'
8283as_cr_alnum=$as_cr_Letters$as_cr_digits
8284
8285ECHO_C= ECHO_N= ECHO_T=
8286case `echo -n x` in #(((((
8287-n*)
8288  case `echo 'xy\c'` in
8289  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8290  xy)  ECHO_C='\c';;
8291  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8292       ECHO_T=' ';;
8293  esac;;
8294*)
8295  ECHO_N='-n';;
8296esac
8297
8298rm -f conf$$ conf$$.exe conf$$.file
8299if test -d conf$$.dir; then
8300  rm -f conf$$.dir/conf$$.file
8301else
8302  rm -f conf$$.dir
8303  mkdir conf$$.dir 2>/dev/null
8304fi
8305if (echo >conf$$.file) 2>/dev/null; then
8306  if ln -s conf$$.file conf$$ 2>/dev/null; then
8307    as_ln_s='ln -s'
8308    # ... but there are two gotchas:
8309    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8310    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8311    # In both cases, we have to default to `cp -pR'.
8312    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8313      as_ln_s='cp -pR'
8314  elif ln conf$$.file conf$$ 2>/dev/null; then
8315    as_ln_s=ln
8316  else
8317    as_ln_s='cp -pR'
8318  fi
8319else
8320  as_ln_s='cp -pR'
8321fi
8322rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8323rmdir conf$$.dir 2>/dev/null
8324
8325
8326# as_fn_mkdir_p
8327# -------------
8328# Create "$as_dir" as a directory, including parents if necessary.
8329as_fn_mkdir_p ()
8330{
8331
8332  case $as_dir in #(
8333  -*) as_dir=./$as_dir;;
8334  esac
8335  test -d "$as_dir" || eval $as_mkdir_p || {
8336    as_dirs=
8337    while :; do
8338      case $as_dir in #(
8339      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8340      *) as_qdir=$as_dir;;
8341      esac
8342      as_dirs="'$as_qdir' $as_dirs"
8343      as_dir=`$as_dirname -- "$as_dir" ||
8344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8345         X"$as_dir" : 'X\(//\)[^/]' \| \
8346         X"$as_dir" : 'X\(//\)$' \| \
8347         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8348$as_echo X"$as_dir" |
8349    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8350            s//\1/
8351            q
8352          }
8353          /^X\(\/\/\)[^/].*/{
8354            s//\1/
8355            q
8356          }
8357          /^X\(\/\/\)$/{
8358            s//\1/
8359            q
8360          }
8361          /^X\(\/\).*/{
8362            s//\1/
8363            q
8364          }
8365          s/.*/./; q'`
8366      test -d "$as_dir" && break
8367    done
8368    test -z "$as_dirs" || eval "mkdir $as_dirs"
8369  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8370
8371
8372} # as_fn_mkdir_p
8373if mkdir -p . 2>/dev/null; then
8374  as_mkdir_p='mkdir -p "$as_dir"'
8375else
8376  test -d ./-p && rmdir ./-p
8377  as_mkdir_p=false
8378fi
8379
8380
8381# as_fn_executable_p FILE
8382# -----------------------
8383# Test if FILE is an executable regular file.
8384as_fn_executable_p ()
8385{
8386  test -f "$1" && test -x "$1"
8387} # as_fn_executable_p
8388as_test_x='test -x'
8389as_executable_p=as_fn_executable_p
8390
8391# Sed expression to map a string onto a valid CPP name.
8392as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8393
8394# Sed expression to map a string onto a valid variable name.
8395as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8396
8397
8398exec 6>&1
8399## ----------------------------------- ##
8400## Main body of $CONFIG_STATUS script. ##
8401## ----------------------------------- ##
8402_ASEOF
8403test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8404
8405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8406# Save the log message, to keep $0 and so on meaningful, and to
8407# report actual input values of CONFIG_FILES etc. instead of their
8408# values after options handling.
8409ac_log="
8410This file was extended by Rappture $as_me 1.5, which was
8411generated by GNU Autoconf 2.69.  Invocation command line was
8412
8413  CONFIG_FILES    = $CONFIG_FILES
8414  CONFIG_HEADERS  = $CONFIG_HEADERS
8415  CONFIG_LINKS    = $CONFIG_LINKS
8416  CONFIG_COMMANDS = $CONFIG_COMMANDS
8417  $ $0 $@
8418
8419on `(hostname || uname -n) 2>/dev/null | sed 1q`
8420"
8421
8422_ACEOF
8423
8424case $ac_config_files in *"
8425"*) set x $ac_config_files; shift; ac_config_files=$*;;
8426esac
8427
8428case $ac_config_headers in *"
8429"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8430esac
8431
8432
8433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8434# Files that config.status was made for.
8435config_files="$ac_config_files"
8436config_headers="$ac_config_headers"
8437
8438_ACEOF
8439
8440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8441ac_cs_usage="\
8442\`$as_me' instantiates files and other configuration actions
8443from templates according to the current configuration.  Unless the files
8444and actions are specified as TAGs, all are instantiated by default.
8445
8446Usage: $0 [OPTION]... [TAG]...
8447
8448  -h, --help       print this help, then exit
8449  -V, --version    print version number and configuration settings, then exit
8450      --config     print configuration, then exit
8451  -q, --quiet, --silent
8452                   do not print progress messages
8453  -d, --debug      don't remove temporary files
8454      --recheck    update $as_me by reconfiguring in the same conditions
8455      --file=FILE[:TEMPLATE]
8456                   instantiate the configuration file FILE
8457      --header=FILE[:TEMPLATE]
8458                   instantiate the configuration header FILE
8459
8460Configuration files:
8461$config_files
8462
8463Configuration headers:
8464$config_headers
8465
8466Report bugs to <rappture@nanohub.org>."
8467
8468_ACEOF
8469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8470ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8471ac_cs_version="\\
8472Rappture config.status 1.5
8473configured by $0, generated by GNU Autoconf 2.69,
8474  with options \\"\$ac_cs_config\\"
8475
8476Copyright (C) 2012 Free Software Foundation, Inc.
8477This config.status script is free software; the Free Software Foundation
8478gives unlimited permission to copy, distribute and modify it."
8479
8480ac_pwd='$ac_pwd'
8481srcdir='$srcdir'
8482INSTALL='$INSTALL'
8483MKDIR_P='$MKDIR_P'
8484test -n "\$AWK" || AWK=awk
8485_ACEOF
8486
8487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8488# The default lists apply if the user does not specify any file.
8489ac_need_defaults=:
8490while test $# != 0
8491do
8492  case $1 in
8493  --*=?*)
8494    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8495    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8496    ac_shift=:
8497    ;;
8498  --*=)
8499    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8500    ac_optarg=
8501    ac_shift=:
8502    ;;
8503  *)
8504    ac_option=$1
8505    ac_optarg=$2
8506    ac_shift=shift
8507    ;;
8508  esac
8509
8510  case $ac_option in
8511  # Handling of the options.
8512  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8513    ac_cs_recheck=: ;;
8514  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8515    $as_echo "$ac_cs_version"; exit ;;
8516  --config | --confi | --conf | --con | --co | --c )
8517    $as_echo "$ac_cs_config"; exit ;;
8518  --debug | --debu | --deb | --de | --d | -d )
8519    debug=: ;;
8520  --file | --fil | --fi | --f )
8521    $ac_shift
8522    case $ac_optarg in
8523    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8524    '') as_fn_error $? "missing file argument" ;;
8525    esac
8526    as_fn_append CONFIG_FILES " '$ac_optarg'"
8527    ac_need_defaults=false;;
8528  --header | --heade | --head | --hea )
8529    $ac_shift
8530    case $ac_optarg in
8531    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8532    esac
8533    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8534    ac_need_defaults=false;;
8535  --he | --h)
8536    # Conflict between --help and --header
8537    as_fn_error $? "ambiguous option: \`$1'
8538Try \`$0 --help' for more information.";;
8539  --help | --hel | -h )
8540    $as_echo "$ac_cs_usage"; exit ;;
8541  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8542  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8543    ac_cs_silent=: ;;
8544
8545  # This is an error.
8546  -*) as_fn_error $? "unrecognized option: \`$1'
8547Try \`$0 --help' for more information." ;;
8548
8549  *) as_fn_append ac_config_targets " $1"
8550     ac_need_defaults=false ;;
8551
8552  esac
8553  shift
8554done
8555
8556ac_configure_extra_args=
8557
8558if $ac_cs_silent; then
8559  exec 6>/dev/null
8560  ac_configure_extra_args="$ac_configure_extra_args --silent"
8561fi
8562
8563_ACEOF
8564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8565if \$ac_cs_recheck; then
8566  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8567  shift
8568  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8569  CONFIG_SHELL='$SHELL'
8570  export CONFIG_SHELL
8571  exec "\$@"
8572fi
8573
8574_ACEOF
8575cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8576exec 5>>config.log
8577{
8578  echo
8579  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8580## Running $as_me. ##
8581_ASBOX
8582  $as_echo "$ac_log"
8583} >&5
8584
8585_ACEOF
8586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8587_ACEOF
8588
8589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8590
8591# Handling of arguments.
8592for ac_config_target in $ac_config_targets
8593do
8594  case $ac_config_target in
8595    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8596    "DicomToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES DicomToVtk/Makefile" ;;
8597    "DicomToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES DicomToVtk/pkgIndex.tcl" ;;
8598    "DxToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES DxToVtk/Makefile" ;;
8599    "DxToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES DxToVtk/pkgIndex.tcl" ;;
8600    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8601    "PdbToVtk/Makefile") CONFIG_FILES="$CONFIG_FILES PdbToVtk/Makefile" ;;
8602    "PdbToVtk/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES PdbToVtk/pkgIndex.tcl" ;;
8603    "builder/Makefile") CONFIG_FILES="$CONFIG_FILES builder/Makefile" ;;
8604    "builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES builder/pkgIndex.tcl" ;;
8605    "builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES builder/scripts/Makefile" ;;
8606    "diffview/Makefile") CONFIG_FILES="$CONFIG_FILES diffview/Makefile" ;;
8607    "diffview/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES diffview/pkgIndex.tcl" ;;
8608    "hotspot/Makefile") CONFIG_FILES="$CONFIG_FILES hotspot/Makefile" ;;
8609    "hotspot/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES hotspot/pkgIndex.tcl" ;;
8610    "listbox/Makefile") CONFIG_FILES="$CONFIG_FILES listbox/Makefile" ;;
8611    "listbox/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES listbox/pkgIndex.tcl" ;;
8612    "objects/Makefile") CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;;
8613    "p2p/Makefile") CONFIG_FILES="$CONFIG_FILES p2p/Makefile" ;;
8614    "placard/Makefile") CONFIG_FILES="$CONFIG_FILES placard/Makefile" ;;
8615    "placard/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES placard/pkgIndex.tcl" ;;
8616    "readpoints/Makefile") CONFIG_FILES="$CONFIG_FILES readpoints/Makefile" ;;
8617    "readpoints/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES readpoints/pkgIndex.tcl" ;;
8618    "runner/Makefile") CONFIG_FILES="$CONFIG_FILES runner/Makefile" ;;
8619    "runner/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES runner/pkgIndex.tcl" ;;
8620    "runner/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES runner/scripts/Makefile" ;;
8621    "squeezer/Makefile") CONFIG_FILES="$CONFIG_FILES squeezer/Makefile" ;;
8622    "squeezer/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES squeezer/pkgIndex.tcl" ;;
8623    "system/Makefile") CONFIG_FILES="$CONFIG_FILES system/Makefile" ;;
8624    "system/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES system/pkgIndex.tcl" ;;
8625    "tester/Makefile") CONFIG_FILES="$CONFIG_FILES tester/Makefile" ;;
8626    "tester/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES tester/pkgIndex.tcl" ;;
8627    "tester/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tester/scripts/Makefile" ;;
8628
8629  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8630  esac
8631done
8632
8633
8634# If the user did not use the arguments to specify the items to instantiate,
8635# then the envvar interface is used.  Set only those that are not.
8636# We use the long form for the default assignment because of an extremely
8637# bizarre bug on SunOS 4.1.3.
8638if $ac_need_defaults; then
8639  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8640  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8641fi
8642
8643# Have a temporary directory for convenience.  Make it in the build tree
8644# simply because there is no reason against having it here, and in addition,
8645# creating and moving files from /tmp can sometimes cause problems.
8646# Hook for its removal unless debugging.
8647# Note that there is a small window in which the directory will not be cleaned:
8648# after its creation but before its name has been assigned to `$tmp'.
8649$debug ||
8650{
8651  tmp= ac_tmp=
8652  trap 'exit_status=$?
8653  : "${ac_tmp:=$tmp}"
8654  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8655' 0
8656  trap 'as_fn_exit 1' 1 2 13 15
8657}
8658# Create a (secure) tmp directory for tmp files.
8659
8660{
8661  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8662  test -d "$tmp"
8663}  ||
8664{
8665  tmp=./conf$$-$RANDOM
8666  (umask 077 && mkdir "$tmp")
8667} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8668ac_tmp=$tmp
8669
8670# Set up the scripts for CONFIG_FILES section.
8671# No need to generate them if there are no CONFIG_FILES.
8672# This happens for instance with `./config.status config.h'.
8673if test -n "$CONFIG_FILES"; then
8674
8675
8676ac_cr=`echo X | tr X '\015'`
8677# On cygwin, bash can eat \r inside `` if the user requested igncr.
8678# But we know of no other shell where ac_cr would be empty at this
8679# point, so we can use a bashism as a fallback.
8680if test "x$ac_cr" = x; then
8681  eval ac_cr=\$\'\\r\'
8682fi
8683ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8684if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8685  ac_cs_awk_cr='\\r'
8686else
8687  ac_cs_awk_cr=$ac_cr
8688fi
8689
8690echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8691_ACEOF
8692
8693
8694{
8695  echo "cat >conf$$subs.awk <<_ACEOF" &&
8696  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8697  echo "_ACEOF"
8698} >conf$$subs.sh ||
8699  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8700ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8701ac_delim='%!_!# '
8702for ac_last_try in false false false false false :; do
8703  . ./conf$$subs.sh ||
8704    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8705
8706  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8707  if test $ac_delim_n = $ac_delim_num; then
8708    break
8709  elif $ac_last_try; then
8710    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8711  else
8712    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8713  fi
8714done
8715rm -f conf$$subs.sh
8716
8717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8718cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8719_ACEOF
8720sed -n '
8721h
8722s/^/S["/; s/!.*/"]=/
8723p
8724g
8725s/^[^!]*!//
8726:repl
8727t repl
8728s/'"$ac_delim"'$//
8729t delim
8730:nl
8731h
8732s/\(.\{148\}\)..*/\1/
8733t more1
8734s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8735p
8736n
8737b repl
8738:more1
8739s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8740p
8741g
8742s/.\{148\}//
8743t nl
8744:delim
8745h
8746s/\(.\{148\}\)..*/\1/
8747t more2
8748s/["\\]/\\&/g; s/^/"/; s/$/"/
8749p
8750b
8751:more2
8752s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8753p
8754g
8755s/.\{148\}//
8756t delim
8757' <conf$$subs.awk | sed '
8758/^[^""]/{
8759  N
8760  s/\n//
8761}
8762' >>$CONFIG_STATUS || ac_write_fail=1
8763rm -f conf$$subs.awk
8764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8765_ACAWK
8766cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8767  for (key in S) S_is_set[key] = 1
8768  FS = ""
8769
8770}
8771{
8772  line = $ 0
8773  nfields = split(line, field, "@")
8774  substed = 0
8775  len = length(field[1])
8776  for (i = 2; i < nfields; i++) {
8777    key = field[i]
8778    keylen = length(key)
8779    if (S_is_set[key]) {
8780      value = S[key]
8781      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8782      len += length(value) + length(field[++i])
8783      substed = 1
8784    } else
8785      len += 1 + keylen
8786  }
8787
8788  print line
8789}
8790
8791_ACAWK
8792_ACEOF
8793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8794if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8795  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8796else
8797  cat
8798fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8799  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8800_ACEOF
8801
8802# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8803# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8804# trailing colons and then remove the whole line if VPATH becomes empty
8805# (actually we leave an empty line to preserve line numbers).
8806if test "x$srcdir" = x.; then
8807  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8808h
8809s///
8810s/^/:/
8811s/[      ]*$/:/
8812s/:\$(srcdir):/:/g
8813s/:\${srcdir}:/:/g
8814s/:@srcdir@:/:/g
8815s/^:*//
8816s/:*$//
8817x
8818s/\(=[   ]*\).*/\1/
8819G
8820s/\n//
8821s/^[^=]*=[       ]*$//
8822}'
8823fi
8824
8825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8826fi # test -n "$CONFIG_FILES"
8827
8828# Set up the scripts for CONFIG_HEADERS section.
8829# No need to generate them if there are no CONFIG_HEADERS.
8830# This happens for instance with `./config.status Makefile'.
8831if test -n "$CONFIG_HEADERS"; then
8832cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8833BEGIN {
8834_ACEOF
8835
8836# Transform confdefs.h into an awk script `defines.awk', embedded as
8837# here-document in config.status, that substitutes the proper values into
8838# config.h.in to produce config.h.
8839
8840# Create a delimiter string that does not exist in confdefs.h, to ease
8841# handling of long lines.
8842ac_delim='%!_!# '
8843for ac_last_try in false false :; do
8844  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8845  if test -z "$ac_tt"; then
8846    break
8847  elif $ac_last_try; then
8848    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8849  else
8850    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8851  fi
8852done
8853
8854# For the awk script, D is an array of macro values keyed by name,
8855# likewise P contains macro parameters if any.  Preserve backslash
8856# newline sequences.
8857
8858ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8859sed -n '
8860s/.\{148\}/&'"$ac_delim"'/g
8861t rset
8862:rset
8863s/^[     ]*#[    ]*define[       ][      ]*/ /
8864t def
8865d
8866:def
8867s/\\$//
8868t bsnl
8869s/["\\]/\\&/g
8870s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8871D["\1"]=" \3"/p
8872s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8873d
8874:bsnl
8875s/["\\]/\\&/g
8876s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8877D["\1"]=" \3\\\\\\n"\\/p
8878t cont
8879s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8880t cont
8881d
8882:cont
8883n
8884s/.\{148\}/&'"$ac_delim"'/g
8885t clear
8886:clear
8887s/\\$//
8888t bsnlc
8889s/["\\]/\\&/g; s/^/"/; s/$/"/p
8890d
8891:bsnlc
8892s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8893b cont
8894' <confdefs.h | sed '
8895s/'"$ac_delim"'/"\\\
8896"/g' >>$CONFIG_STATUS || ac_write_fail=1
8897
8898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8899  for (key in D) D_is_set[key] = 1
8900  FS = ""
8901}
8902/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8903  line = \$ 0
8904  split(line, arg, " ")
8905  if (arg[1] == "#") {
8906    defundef = arg[2]
8907    mac1 = arg[3]
8908  } else {
8909    defundef = substr(arg[1], 2)
8910    mac1 = arg[2]
8911  }
8912  split(mac1, mac2, "(") #)
8913  macro = mac2[1]
8914  prefix = substr(line, 1, index(line, defundef) - 1)
8915  if (D_is_set[macro]) {
8916    # Preserve the white space surrounding the "#".
8917    print prefix "define", macro P[macro] D[macro]
8918    next
8919  } else {
8920    # Replace #undef with comments.  This is necessary, for example,
8921    # in the case of _POSIX_SOURCE, which is predefined and required
8922    # on some systems where configure will not decide to define it.
8923    if (defundef == "undef") {
8924      print "/*", prefix defundef, macro, "*/"
8925      next
8926    }
8927  }
8928}
8929{ print }
8930_ACAWK
8931_ACEOF
8932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8933  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8934fi # test -n "$CONFIG_HEADERS"
8935
8936
8937eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
8938shift
8939for ac_tag
8940do
8941  case $ac_tag in
8942  :[FHLC]) ac_mode=$ac_tag; continue;;
8943  esac
8944  case $ac_mode$ac_tag in
8945  :[FHL]*:*);;
8946  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8947  :[FH]-) ac_tag=-:-;;
8948  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8949  esac
8950  ac_save_IFS=$IFS
8951  IFS=:
8952  set x $ac_tag
8953  IFS=$ac_save_IFS
8954  shift
8955  ac_file=$1
8956  shift
8957
8958  case $ac_mode in
8959  :L) ac_source=$1;;
8960  :[FH])
8961    ac_file_inputs=
8962    for ac_f
8963    do
8964      case $ac_f in
8965      -) ac_f="$ac_tmp/stdin";;
8966      *) # Look for the file first in the build tree, then in the source tree
8967         # (if the path is not absolute).  The absolute path cannot be DOS-style,
8968         # because $ac_f cannot contain `:'.
8969         test -f "$ac_f" ||
8970           case $ac_f in
8971           [\\/$]*) false;;
8972           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8973           esac ||
8974           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8975      esac
8976      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8977      as_fn_append ac_file_inputs " '$ac_f'"
8978    done
8979
8980    # Let's still pretend it is `configure' which instantiates (i.e., don't
8981    # use $as_me), people would be surprised to read:
8982    #    /* config.h.  Generated by config.status.  */
8983    configure_input='Generated from '`
8984          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8985        `' by configure.'
8986    if test x"$ac_file" != x-; then
8987      configure_input="$ac_file.  $configure_input"
8988      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8989$as_echo "$as_me: creating $ac_file" >&6;}
8990    fi
8991    # Neutralize special characters interpreted by sed in replacement strings.
8992    case $configure_input in #(
8993    *\&* | *\|* | *\\* )
8994       ac_sed_conf_input=`$as_echo "$configure_input" |
8995       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8996    *) ac_sed_conf_input=$configure_input;;
8997    esac
8998
8999    case $ac_tag in
9000    *:-:* | *:-) cat >"$ac_tmp/stdin" \
9001      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9002    esac
9003    ;;
9004  esac
9005
9006  ac_dir=`$as_dirname -- "$ac_file" ||
9007$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9008         X"$ac_file" : 'X\(//\)[^/]' \| \
9009         X"$ac_file" : 'X\(//\)$' \| \
9010         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9011$as_echo X"$ac_file" |
9012    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9013            s//\1/
9014            q
9015          }
9016          /^X\(\/\/\)[^/].*/{
9017            s//\1/
9018            q
9019          }
9020          /^X\(\/\/\)$/{
9021            s//\1/
9022            q
9023          }
9024          /^X\(\/\).*/{
9025            s//\1/
9026            q
9027          }
9028          s/.*/./; q'`
9029  as_dir="$ac_dir"; as_fn_mkdir_p
9030  ac_builddir=.
9031
9032case "$ac_dir" in
9033.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9034*)
9035  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9036  # A ".." for each directory in $ac_dir_suffix.
9037  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9038  case $ac_top_builddir_sub in
9039  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9040  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9041  esac ;;
9042esac
9043ac_abs_top_builddir=$ac_pwd
9044ac_abs_builddir=$ac_pwd$ac_dir_suffix
9045# for backward compatibility:
9046ac_top_builddir=$ac_top_build_prefix
9047
9048case $srcdir in
9049  .)  # We are building in place.
9050    ac_srcdir=.
9051    ac_top_srcdir=$ac_top_builddir_sub
9052    ac_abs_top_srcdir=$ac_pwd ;;
9053  [\\/]* | ?:[\\/]* )  # Absolute name.
9054    ac_srcdir=$srcdir$ac_dir_suffix;
9055    ac_top_srcdir=$srcdir
9056    ac_abs_top_srcdir=$srcdir ;;
9057  *) # Relative name.
9058    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9059    ac_top_srcdir=$ac_top_build_prefix$srcdir
9060    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9061esac
9062ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9063
9064
9065  case $ac_mode in
9066  :F)
9067  #
9068  # CONFIG_FILE
9069  #
9070
9071  case $INSTALL in
9072  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9073  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9074  esac
9075  ac_MKDIR_P=$MKDIR_P
9076  case $MKDIR_P in
9077  [\\/$]* | ?:[\\/]* ) ;;
9078  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9079  esac
9080_ACEOF
9081
9082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9083# If the template does not know about datarootdir, expand it.
9084# FIXME: This hack should be removed a few years after 2.60.
9085ac_datarootdir_hack=; ac_datarootdir_seen=
9086ac_sed_dataroot='
9087/datarootdir/ {
9088  p
9089  q
9090}
9091/@datadir@/p
9092/@docdir@/p
9093/@infodir@/p
9094/@localedir@/p
9095/@mandir@/p'
9096case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9097*datarootdir*) ac_datarootdir_seen=yes;;
9098*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9100$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9101_ACEOF
9102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9103  ac_datarootdir_hack='
9104  s&@datadir@&$datadir&g
9105  s&@docdir@&$docdir&g
9106  s&@infodir@&$infodir&g
9107  s&@localedir@&$localedir&g
9108  s&@mandir@&$mandir&g
9109  s&\\\${datarootdir}&$datarootdir&g' ;;
9110esac
9111_ACEOF
9112
9113# Neutralize VPATH when `$srcdir' = `.'.
9114# Shell code in configure.ac might set extrasub.
9115# FIXME: do we really want to maintain this feature?
9116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9117ac_sed_extra="$ac_vpsub
9118$extrasub
9119_ACEOF
9120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9121:t
9122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9123s|@configure_input@|$ac_sed_conf_input|;t t
9124s&@top_builddir@&$ac_top_builddir_sub&;t t
9125s&@top_build_prefix@&$ac_top_build_prefix&;t t
9126s&@srcdir@&$ac_srcdir&;t t
9127s&@abs_srcdir@&$ac_abs_srcdir&;t t
9128s&@top_srcdir@&$ac_top_srcdir&;t t
9129s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9130s&@builddir@&$ac_builddir&;t t
9131s&@abs_builddir@&$ac_abs_builddir&;t t
9132s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9133s&@INSTALL@&$ac_INSTALL&;t t
9134s&@MKDIR_P@&$ac_MKDIR_P&;t t
9135$ac_datarootdir_hack
9136"
9137eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9138  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9139
9140test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9141  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9142  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
9143      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9144  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9145which seems to be undefined.  Please make sure it is defined" >&5
9146$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9147which seems to be undefined.  Please make sure it is defined" >&2;}
9148
9149  rm -f "$ac_tmp/stdin"
9150  case $ac_file in
9151  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9152  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9153  esac \
9154  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9155 ;;
9156  :H)
9157  #
9158  # CONFIG_HEADER
9159  #
9160  if test x"$ac_file" != x-; then
9161    {
9162      $as_echo "/* $configure_input  */" \
9163      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9164    } >"$ac_tmp/config.h" \
9165      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9166    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9167      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9168$as_echo "$as_me: $ac_file is unchanged" >&6;}
9169    else
9170      rm -f "$ac_file"
9171      mv "$ac_tmp/config.h" "$ac_file" \
9172        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9173    fi
9174  else
9175    $as_echo "/* $configure_input  */" \
9176      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9177      || as_fn_error $? "could not create -" "$LINENO" 5
9178  fi
9179 ;;
9180
9181
9182  esac
9183
9184done # for ac_tag
9185
9186
9187as_fn_exit 0
9188_ACEOF
9189ac_clean_files=$ac_clean_files_save
9190
9191test $ac_write_fail = 0 ||
9192  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9193
9194
9195# configure is writing to config.log, and then calls config.status.
9196# config.status does its own redirection, appending to config.log.
9197# Unfortunately, on DOS this fails, as config.log is still kept open
9198# by configure, so config.status won't be able to write to it; its
9199# output is simply discarded.  So we exec the FD to /dev/null,
9200# effectively closing config.log, so it can be properly (re)opened and
9201# appended to by config.status.  When coming back to configure, we
9202# need to make the FD available again.
9203if test "$no_create" != yes; then
9204  ac_cs_success=:
9205  ac_config_status_args=
9206  test "$silent" = yes &&
9207    ac_config_status_args="$ac_config_status_args --quiet"
9208  exec 5>/dev/null
9209  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9210  exec 5>>config.log
9211  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9212  # would make configure fail if this is the last instruction.
9213  $ac_cs_success || as_fn_exit 1
9214fi
9215if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9216  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9217$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9218fi
9219
9220
Note: See TracBrowser for help on using the repository browser.