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