OSDN Git Service

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