source: trunk/configure @ 4144

Last change on this file since 4144 was 4144, checked in by gah, 6 years ago

initial changes for new build system for rappture

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