Deleted Added
full compact
configure (361456) configure (362190)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.31.1.
3# Generated by GNU Autoconf 2.69 for sqlite 3.32.2.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='sqlite'
579PACKAGE_TARNAME='sqlite'
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='sqlite'
579PACKAGE_TARNAME='sqlite'
580PACKAGE_VERSION='3.31.1'
581PACKAGE_STRING='sqlite 3.31.1'
580PACKAGE_VERSION='3.32.2'
581PACKAGE_STRING='sqlite 3.32.2'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585# Factoring default headers for most tests.
586ac_includes_default="\
587#include <stdio.h>
588#ifdef HAVE_SYS_TYPES_H
589# include <sys/types.h>
590#endif
591#ifdef HAVE_SYS_STAT_H
592# include <sys/stat.h>
593#endif
594#ifdef STDC_HEADERS
595# include <stdlib.h>
596# include <stddef.h>
597#else
598# ifdef HAVE_STDLIB_H
599# include <stdlib.h>
600# endif
601#endif
602#ifdef HAVE_STRING_H
603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604# include <memory.h>
605# endif
606# include <string.h>
607#endif
608#ifdef HAVE_STRINGS_H
609# include <strings.h>
610#endif
611#ifdef HAVE_INTTYPES_H
612# include <inttypes.h>
613#endif
614#ifdef HAVE_STDINT_H
615# include <stdint.h>
616#endif
617#ifdef HAVE_UNISTD_H
618# include <unistd.h>
619#endif"
620
621ac_subst_vars='LTLIBOBJS
622LIBOBJS
623TCLSH_PROG
624VC_MANIFEST_EMBED_EXE
625VC_MANIFEST_EMBED_DLL
626RANLIB_STUB
627MAKE_STUB_LIB
628MAKE_STATIC_LIB
629MAKE_SHARED_LIB
630MAKE_LIB
631TCL_DBGX
632LDFLAGS_DEFAULT
633CFLAGS_DEFAULT
634LD_LIBRARY_PATH_VAR
635SHLIB_CFLAGS
636SHLIB_LD_LIBS
637SHLIB_LD
638STLIB_LD
639CFLAGS_WARNING
640CFLAGS_OPTIMIZE
641CFLAGS_DEBUG
642RC
643CELIB_DIR
644AR
645SHARED_BUILD
646TCL_THREADS
647TCL_INCLUDES
648PKG_OBJECTS
649PKG_SOURCES
650MATH_LIBS
651EGREP
652GREP
653RANLIB
654SET_MAKE
655INSTALL_SCRIPT
656INSTALL_PROGRAM
657INSTALL_DATA
658INSTALL
659CPP
660TCL_SHLIB_LD_LIBS
661TCL_LD_FLAGS
662TCL_EXTRA_CFLAGS
663TCL_DEFS
664TCL_LIBS
665CLEANFILES
666OBJEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
672TCL_STUB_LIB_SPEC
673TCL_STUB_LIB_FLAG
674TCL_STUB_LIB_FILE
675TCL_LIB_SPEC
676TCL_LIB_FLAG
677TCL_LIB_FILE
678TCL_SRC_DIR
679TCL_BIN_DIR
680TCL_PATCH_LEVEL
681TCL_VERSION
682PKG_CFLAGS
683PKG_LIBS
684PKG_INCLUDES
685PKG_HEADERS
686PKG_TCL_SOURCES
687PKG_STUB_OBJECTS
688PKG_STUB_SOURCES
689PKG_STUB_LIB_FILE
690PKG_LIB_FILE
691EXEEXT
692CYGPATH
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712runstatedir
713localstatedir
714sharedstatedir
715sysconfdir
716datadir
717datarootdir
718libexecdir
719sbindir
720bindir
721program_transform_name
722prefix
723exec_prefix
724PACKAGE_URL
725PACKAGE_BUGREPORT
726PACKAGE_STRING
727PACKAGE_VERSION
728PACKAGE_TARNAME
729PACKAGE_NAME
730PATH_SEPARATOR
731SHELL'
732ac_subst_files=''
733ac_user_opts='
734enable_option_checking
735with_tcl
736with_system_sqlite
737with_tclinclude
738enable_threads
739enable_shared
740enable_64bit
741enable_64bit_vis
742enable_rpath
743enable_wince
744with_celib
745enable_symbols
746'
747 ac_precious_vars='build_alias
748host_alias
749target_alias
750CC
751CFLAGS
752LDFLAGS
753LIBS
754CPPFLAGS
755CPP'
756
757
758# Initialize some variables set by options.
759ac_init_help=
760ac_init_version=false
761ac_unrecognized_opts=
762ac_unrecognized_sep=
763# The variables have the same names as the options, with
764# dashes changed to underlines.
765cache_file=/dev/null
766exec_prefix=NONE
767no_create=
768no_recursion=
769prefix=NONE
770program_prefix=NONE
771program_suffix=NONE
772program_transform_name=s,x,x,
773silent=
774site=
775srcdir=
776verbose=
777x_includes=NONE
778x_libraries=NONE
779
780# Installation directory options.
781# These are left unexpanded so users can "make install exec_prefix=/foo"
782# and all the variables that are supposed to be based on exec_prefix
783# by default will actually change.
784# Use braces instead of parens because sh, perl, etc. also accept them.
785# (The list follows the same order as the GNU Coding Standards.)
786bindir='${exec_prefix}/bin'
787sbindir='${exec_prefix}/sbin'
788libexecdir='${exec_prefix}/libexec'
789datarootdir='${prefix}/share'
790datadir='${datarootdir}'
791sysconfdir='${prefix}/etc'
792sharedstatedir='${prefix}/com'
793localstatedir='${prefix}/var'
794runstatedir='${localstatedir}/run'
795includedir='${prefix}/include'
796oldincludedir='/usr/include'
797docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798infodir='${datarootdir}/info'
799htmldir='${docdir}'
800dvidir='${docdir}'
801pdfdir='${docdir}'
802psdir='${docdir}'
803libdir='${exec_prefix}/lib'
804localedir='${datarootdir}/locale'
805mandir='${datarootdir}/man'
806
807ac_prev=
808ac_dashdash=
809for ac_option
810do
811 # If the previous option needs an argument, assign it.
812 if test -n "$ac_prev"; then
813 eval $ac_prev=\$ac_option
814 ac_prev=
815 continue
816 fi
817
818 case $ac_option in
819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 *=) ac_optarg= ;;
821 *) ac_optarg=yes ;;
822 esac
823
824 # Accept the important Cygnus configure options, so we can diagnose typos.
825
826 case $ac_dashdash$ac_option in
827 --)
828 ac_dashdash=yes ;;
829
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
834
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
839
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
846
847 --config-cache | -C)
848 cache_file=config.cache ;;
849
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
854
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
861
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error $? "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871"enable_$ac_useropt"
872"*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897"enable_$ac_useropt"
898"*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
903
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
912
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
916
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
923
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
928
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
934
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
941
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
946
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
951
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
958
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
963
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
970
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
975
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
979
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
983
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
987
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
996
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1001
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1008
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1015
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1032
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1037
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1042
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1046
1047 -runstatedir | --runstatedir | --runstatedi | --runstated \
1048 | --runstate | --runstat | --runsta | --runst | --runs \
1049 | --run | --ru | --r)
1050 ac_prev=runstatedir ;;
1051 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1052 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1053 | --run=* | --ru=* | --r=*)
1054 runstatedir=$ac_optarg ;;
1055
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1061
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1072
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1077
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1082
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1089
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1094
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1097
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1100
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110"with_$ac_useropt"
1111"*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1116
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126"with_$ac_useropt"
1127"*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1132
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1136
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1143
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1150
1151 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152Try \`$0 --help' for more information"
1153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1164
1165 *)
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171 ;;
1172
1173 esac
1174done
1175
1176if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error $? "missing argument to $ac_option"
1179fi
1180
1181if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1187fi
1188
1189# Check all directory arguments for consistency.
1190for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir runstatedir
1194do
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208done
1209
1210# There might be people who depend on the old broken behavior: `$host'
1211# used to hold the argument of --host etc.
1212# FIXME: To remove some day.
1213build=$build_alias
1214host=$host_alias
1215target=$target_alias
1216
1217# FIXME: To remove some day.
1218if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224fi
1225
1226ac_tool_prefix=
1227test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229test "$silent" = yes && exec 6>/dev/null
1230
1231
1232ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233ac_ls_di=`ls -di .` &&
1234ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240# Find the source files, if location was not specified.
1241if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249$as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271else
1272 ac_srcdir_defaulted=no
1273fi
1274if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277fi
1278ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 pwd)`
1282# When building in place, set srcdir=.
1283if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285fi
1286# Remove unnecessary trailing slashes from srcdir.
1287# Double slashes in file names in object file debugging info
1288# mess up M-x gdb in Emacs.
1289case $srcdir in
1290*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291esac
1292for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297done
1298
1299#
1300# Report the --help message.
1301#
1302if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585# Factoring default headers for most tests.
586ac_includes_default="\
587#include <stdio.h>
588#ifdef HAVE_SYS_TYPES_H
589# include <sys/types.h>
590#endif
591#ifdef HAVE_SYS_STAT_H
592# include <sys/stat.h>
593#endif
594#ifdef STDC_HEADERS
595# include <stdlib.h>
596# include <stddef.h>
597#else
598# ifdef HAVE_STDLIB_H
599# include <stdlib.h>
600# endif
601#endif
602#ifdef HAVE_STRING_H
603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604# include <memory.h>
605# endif
606# include <string.h>
607#endif
608#ifdef HAVE_STRINGS_H
609# include <strings.h>
610#endif
611#ifdef HAVE_INTTYPES_H
612# include <inttypes.h>
613#endif
614#ifdef HAVE_STDINT_H
615# include <stdint.h>
616#endif
617#ifdef HAVE_UNISTD_H
618# include <unistd.h>
619#endif"
620
621ac_subst_vars='LTLIBOBJS
622LIBOBJS
623TCLSH_PROG
624VC_MANIFEST_EMBED_EXE
625VC_MANIFEST_EMBED_DLL
626RANLIB_STUB
627MAKE_STUB_LIB
628MAKE_STATIC_LIB
629MAKE_SHARED_LIB
630MAKE_LIB
631TCL_DBGX
632LDFLAGS_DEFAULT
633CFLAGS_DEFAULT
634LD_LIBRARY_PATH_VAR
635SHLIB_CFLAGS
636SHLIB_LD_LIBS
637SHLIB_LD
638STLIB_LD
639CFLAGS_WARNING
640CFLAGS_OPTIMIZE
641CFLAGS_DEBUG
642RC
643CELIB_DIR
644AR
645SHARED_BUILD
646TCL_THREADS
647TCL_INCLUDES
648PKG_OBJECTS
649PKG_SOURCES
650MATH_LIBS
651EGREP
652GREP
653RANLIB
654SET_MAKE
655INSTALL_SCRIPT
656INSTALL_PROGRAM
657INSTALL_DATA
658INSTALL
659CPP
660TCL_SHLIB_LD_LIBS
661TCL_LD_FLAGS
662TCL_EXTRA_CFLAGS
663TCL_DEFS
664TCL_LIBS
665CLEANFILES
666OBJEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
672TCL_STUB_LIB_SPEC
673TCL_STUB_LIB_FLAG
674TCL_STUB_LIB_FILE
675TCL_LIB_SPEC
676TCL_LIB_FLAG
677TCL_LIB_FILE
678TCL_SRC_DIR
679TCL_BIN_DIR
680TCL_PATCH_LEVEL
681TCL_VERSION
682PKG_CFLAGS
683PKG_LIBS
684PKG_INCLUDES
685PKG_HEADERS
686PKG_TCL_SOURCES
687PKG_STUB_OBJECTS
688PKG_STUB_SOURCES
689PKG_STUB_LIB_FILE
690PKG_LIB_FILE
691EXEEXT
692CYGPATH
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712runstatedir
713localstatedir
714sharedstatedir
715sysconfdir
716datadir
717datarootdir
718libexecdir
719sbindir
720bindir
721program_transform_name
722prefix
723exec_prefix
724PACKAGE_URL
725PACKAGE_BUGREPORT
726PACKAGE_STRING
727PACKAGE_VERSION
728PACKAGE_TARNAME
729PACKAGE_NAME
730PATH_SEPARATOR
731SHELL'
732ac_subst_files=''
733ac_user_opts='
734enable_option_checking
735with_tcl
736with_system_sqlite
737with_tclinclude
738enable_threads
739enable_shared
740enable_64bit
741enable_64bit_vis
742enable_rpath
743enable_wince
744with_celib
745enable_symbols
746'
747 ac_precious_vars='build_alias
748host_alias
749target_alias
750CC
751CFLAGS
752LDFLAGS
753LIBS
754CPPFLAGS
755CPP'
756
757
758# Initialize some variables set by options.
759ac_init_help=
760ac_init_version=false
761ac_unrecognized_opts=
762ac_unrecognized_sep=
763# The variables have the same names as the options, with
764# dashes changed to underlines.
765cache_file=/dev/null
766exec_prefix=NONE
767no_create=
768no_recursion=
769prefix=NONE
770program_prefix=NONE
771program_suffix=NONE
772program_transform_name=s,x,x,
773silent=
774site=
775srcdir=
776verbose=
777x_includes=NONE
778x_libraries=NONE
779
780# Installation directory options.
781# These are left unexpanded so users can "make install exec_prefix=/foo"
782# and all the variables that are supposed to be based on exec_prefix
783# by default will actually change.
784# Use braces instead of parens because sh, perl, etc. also accept them.
785# (The list follows the same order as the GNU Coding Standards.)
786bindir='${exec_prefix}/bin'
787sbindir='${exec_prefix}/sbin'
788libexecdir='${exec_prefix}/libexec'
789datarootdir='${prefix}/share'
790datadir='${datarootdir}'
791sysconfdir='${prefix}/etc'
792sharedstatedir='${prefix}/com'
793localstatedir='${prefix}/var'
794runstatedir='${localstatedir}/run'
795includedir='${prefix}/include'
796oldincludedir='/usr/include'
797docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798infodir='${datarootdir}/info'
799htmldir='${docdir}'
800dvidir='${docdir}'
801pdfdir='${docdir}'
802psdir='${docdir}'
803libdir='${exec_prefix}/lib'
804localedir='${datarootdir}/locale'
805mandir='${datarootdir}/man'
806
807ac_prev=
808ac_dashdash=
809for ac_option
810do
811 # If the previous option needs an argument, assign it.
812 if test -n "$ac_prev"; then
813 eval $ac_prev=\$ac_option
814 ac_prev=
815 continue
816 fi
817
818 case $ac_option in
819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 *=) ac_optarg= ;;
821 *) ac_optarg=yes ;;
822 esac
823
824 # Accept the important Cygnus configure options, so we can diagnose typos.
825
826 case $ac_dashdash$ac_option in
827 --)
828 ac_dashdash=yes ;;
829
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
834
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
839
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
846
847 --config-cache | -C)
848 cache_file=config.cache ;;
849
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
854
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
861
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error $? "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871"enable_$ac_useropt"
872"*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897"enable_$ac_useropt"
898"*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
903
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
912
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
916
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
923
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
928
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
934
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
941
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
946
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
951
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
958
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
963
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
970
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
975
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
979
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
983
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
987
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
996
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1001
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1008
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1015
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1032
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1037
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1042
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1046
1047 -runstatedir | --runstatedir | --runstatedi | --runstated \
1048 | --runstate | --runstat | --runsta | --runst | --runs \
1049 | --run | --ru | --r)
1050 ac_prev=runstatedir ;;
1051 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1052 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1053 | --run=* | --ru=* | --r=*)
1054 runstatedir=$ac_optarg ;;
1055
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1061
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1072
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1077
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1082
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1089
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1094
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1097
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1100
1101 -with-* | --with-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error $? "invalid package name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1109 *"
1110"with_$ac_useropt"
1111"*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval with_$ac_useropt=\$ac_optarg ;;
1116
1117 -without-* | --without-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126"with_$ac_useropt"
1127"*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=no ;;
1132
1133 --x)
1134 # Obsolete; use --with-x.
1135 with_x=yes ;;
1136
1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138 | --x-incl | --x-inc | --x-in | --x-i)
1139 ac_prev=x_includes ;;
1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142 x_includes=$ac_optarg ;;
1143
1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146 ac_prev=x_libraries ;;
1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149 x_libraries=$ac_optarg ;;
1150
1151 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152Try \`$0 --help' for more information"
1153 ;;
1154
1155 *=*)
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 case $ac_envvar in #(
1159 '' | [0-9]* | *[!_$as_cr_alnum]* )
1160 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161 esac
1162 eval $ac_envvar=\$ac_optarg
1163 export $ac_envvar ;;
1164
1165 *)
1166 # FIXME: should be removed in autoconf 3.0.
1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171 ;;
1172
1173 esac
1174done
1175
1176if test -n "$ac_prev"; then
1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178 as_fn_error $? "missing argument to $ac_option"
1179fi
1180
1181if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1183 no) ;;
1184 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186 esac
1187fi
1188
1189# Check all directory arguments for consistency.
1190for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191 datadir sysconfdir sharedstatedir localstatedir includedir \
1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193 libdir localedir mandir runstatedir
1194do
1195 eval ac_val=\$$ac_var
1196 # Remove trailing slashes.
1197 case $ac_val in
1198 */ )
1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200 eval $ac_var=\$ac_val;;
1201 esac
1202 # Be sure to have absolute directory names.
1203 case $ac_val in
1204 [\\/$]* | ?:[\\/]* ) continue;;
1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206 esac
1207 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208done
1209
1210# There might be people who depend on the old broken behavior: `$host'
1211# used to hold the argument of --host etc.
1212# FIXME: To remove some day.
1213build=$build_alias
1214host=$host_alias
1215target=$target_alias
1216
1217# FIXME: To remove some day.
1218if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
1221 elif test "x$build_alias" != "x$host_alias"; then
1222 cross_compiling=yes
1223 fi
1224fi
1225
1226ac_tool_prefix=
1227test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229test "$silent" = yes && exec 6>/dev/null
1230
1231
1232ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233ac_ls_di=`ls -di .` &&
1234ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240# Find the source files, if location was not specified.
1241if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249$as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)[^/].*/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)$/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\).*/{
1263 s//\1/
1264 q
1265 }
1266 s/.*/./; q'`
1267 srcdir=$ac_confdir
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269 srcdir=..
1270 fi
1271else
1272 ac_srcdir_defaulted=no
1273fi
1274if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277fi
1278ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279ac_abs_confdir=`(
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281 pwd)`
1282# When building in place, set srcdir=.
1283if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 srcdir=.
1285fi
1286# Remove unnecessary trailing slashes from srcdir.
1287# Double slashes in file names in object file debugging info
1288# mess up M-x gdb in Emacs.
1289case $srcdir in
1290*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291esac
1292for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297done
1298
1299#
1300# Report the --help message.
1301#
1302if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1305 cat <<_ACEOF
1306\`configure' configures sqlite 3.31.1 to adapt to many kinds of systems.
1306\`configure' configures sqlite 3.32.2 to adapt to many kinds of systems.
1307
1308Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313Defaults for the options are specified in brackets.
1314
1315Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332By default, \`make install' will install all the files in
1333\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335for instance \`--prefix=\$HOME'.
1336
1337For better control, use the options below.
1338
1339Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1360_ACEOF
1361
1362 cat <<\_ACEOF
1363_ACEOF
1364fi
1365
1366if test -n "$ac_init_help"; then
1367 case $ac_init_help in
1307
1308Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311VAR=VALUE. See below for descriptions of some of the useful variables.
1312
1313Defaults for the options are specified in brackets.
1314
1315Configuration:
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1325
1326Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 [PREFIX]
1331
1332By default, \`make install' will install all the files in
1333\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335for instance \`--prefix=\$HOME'.
1336
1337For better control, use the options below.
1338
1339Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1347 --libdir=DIR object code libraries [EPREFIX/lib]
1348 --includedir=DIR C header files [PREFIX/include]
1349 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1350 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1351 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1352 --infodir=DIR info documentation [DATAROOTDIR/info]
1353 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1354 --mandir=DIR man documentation [DATAROOTDIR/man]
1355 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1356 --htmldir=DIR html documentation [DOCDIR]
1357 --dvidir=DIR dvi documentation [DOCDIR]
1358 --pdfdir=DIR pdf documentation [DOCDIR]
1359 --psdir=DIR ps documentation [DOCDIR]
1360_ACEOF
1361
1362 cat <<\_ACEOF
1363_ACEOF
1364fi
1365
1366if test -n "$ac_init_help"; then
1367 case $ac_init_help in
1368 short | recursive ) echo "Configuration of sqlite 3.31.1:";;
1368 short | recursive ) echo "Configuration of sqlite 3.32.2:";;
1369 esac
1370 cat <<\_ACEOF
1371
1372Optional Features:
1373 --disable-option-checking ignore unrecognized --enable/--with options
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-threads build with threads
1377 --enable-shared build and link with shared libraries (default: on)
1378 --enable-64bit enable 64bit support (default: off)
1379 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
1380 --disable-rpath disable rpath support (default: on)
1381 --enable-wince enable Win/CE support (where applicable)
1382 --enable-symbols build with debugging symbols (default: off)
1383
1384Optional Packages:
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-tcl directory containing tcl configuration
1388 (tclConfig.sh)
1389 --with-system-sqlite use a system-supplied libsqlite3 instead of the
1390 bundled one
1391 --with-tclinclude directory containing the public Tcl header files
1392 --with-celib=DIR use Windows/CE support library from DIR
1393
1394Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403
1404Use these variables to override the choices made by `configure' or to help
1405it to find libraries and programs with nonstandard names/locations.
1406
1407Report bugs to the package provider.
1408_ACEOF
1409ac_status=$?
1410fi
1411
1412if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415 test -d "$ac_dir" ||
1416 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1417 continue
1418 ac_builddir=.
1419
1420case "$ac_dir" in
1421.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422*)
1423 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 esac ;;
1430esac
1431ac_abs_top_builddir=$ac_pwd
1432ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433# for backward compatibility:
1434ac_top_builddir=$ac_top_build_prefix
1435
1436case $srcdir in
1437 .) # We are building in place.
1438 ac_srcdir=.
1439 ac_top_srcdir=$ac_top_builddir_sub
1440 ac_abs_top_srcdir=$ac_pwd ;;
1441 [\\/]* | ?:[\\/]* ) # Absolute name.
1442 ac_srcdir=$srcdir$ac_dir_suffix;
1443 ac_top_srcdir=$srcdir
1444 ac_abs_top_srcdir=$srcdir ;;
1445 *) # Relative name.
1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449esac
1450ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451
1452 cd "$ac_dir" || { ac_status=$?; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1458 echo &&
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1460 else
1461 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 fi || ac_status=$?
1463 cd "$ac_pwd" || { ac_status=$?; break; }
1464 done
1465fi
1466
1467test -n "$ac_init_help" && exit $ac_status
1468if $ac_init_version; then
1469 cat <<\_ACEOF
1369 esac
1370 cat <<\_ACEOF
1371
1372Optional Features:
1373 --disable-option-checking ignore unrecognized --enable/--with options
1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1376 --enable-threads build with threads
1377 --enable-shared build and link with shared libraries (default: on)
1378 --enable-64bit enable 64bit support (default: off)
1379 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
1380 --disable-rpath disable rpath support (default: on)
1381 --enable-wince enable Win/CE support (where applicable)
1382 --enable-symbols build with debugging symbols (default: off)
1383
1384Optional Packages:
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-tcl directory containing tcl configuration
1388 (tclConfig.sh)
1389 --with-system-sqlite use a system-supplied libsqlite3 instead of the
1390 bundled one
1391 --with-tclinclude directory containing the public Tcl header files
1392 --with-celib=DIR use Windows/CE support library from DIR
1393
1394Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403
1404Use these variables to override the choices made by `configure' or to help
1405it to find libraries and programs with nonstandard names/locations.
1406
1407Report bugs to the package provider.
1408_ACEOF
1409ac_status=$?
1410fi
1411
1412if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415 test -d "$ac_dir" ||
1416 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1417 continue
1418 ac_builddir=.
1419
1420case "$ac_dir" in
1421.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422*)
1423 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 esac ;;
1430esac
1431ac_abs_top_builddir=$ac_pwd
1432ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433# for backward compatibility:
1434ac_top_builddir=$ac_top_build_prefix
1435
1436case $srcdir in
1437 .) # We are building in place.
1438 ac_srcdir=.
1439 ac_top_srcdir=$ac_top_builddir_sub
1440 ac_abs_top_srcdir=$ac_pwd ;;
1441 [\\/]* | ?:[\\/]* ) # Absolute name.
1442 ac_srcdir=$srcdir$ac_dir_suffix;
1443 ac_top_srcdir=$srcdir
1444 ac_abs_top_srcdir=$srcdir ;;
1445 *) # Relative name.
1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449esac
1450ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451
1452 cd "$ac_dir" || { ac_status=$?; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1458 echo &&
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1460 else
1461 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 fi || ac_status=$?
1463 cd "$ac_pwd" || { ac_status=$?; break; }
1464 done
1465fi
1466
1467test -n "$ac_init_help" && exit $ac_status
1468if $ac_init_version; then
1469 cat <<\_ACEOF
1470sqlite configure 3.31.1
1470sqlite configure 3.32.2
1471generated by GNU Autoconf 2.69
1472
1473Copyright (C) 2012 Free Software Foundation, Inc.
1474This configure script is free software; the Free Software Foundation
1475gives unlimited permission to copy, distribute and modify it.
1476_ACEOF
1477 exit
1478fi
1479
1480## ------------------------ ##
1481## Autoconf initialization. ##
1482## ------------------------ ##
1483
1484# ac_fn_c_try_compile LINENO
1485# --------------------------
1486# Try to compile conftest.$ac_ext, and return whether this succeeded.
1487ac_fn_c_try_compile ()
1488{
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 rm -f conftest.$ac_objext
1491 if { { ac_try="$ac_compile"
1492case "(($ac_try" in
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1495esac
1496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497$as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_compile") 2>conftest.err
1499 ac_status=$?
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1504 fi
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest.$ac_objext; then :
1510 ac_retval=0
1511else
1512 $as_echo "$as_me: failed program was:" >&5
1513sed 's/^/| /' conftest.$ac_ext >&5
1514
1515 ac_retval=1
1516fi
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518 as_fn_set_status $ac_retval
1519
1520} # ac_fn_c_try_compile
1521
1522# ac_fn_c_try_cpp LINENO
1523# ----------------------
1524# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_cpp ()
1526{
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 if { { ac_try="$ac_cpp conftest.$ac_ext"
1529case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } > conftest.i && {
1544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 }; then :
1547 ac_retval=0
1548else
1549 $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553fi
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557} # ac_fn_c_try_cpp
1558
1559# ac_fn_c_try_run LINENO
1560# ----------------------
1561# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1562# that executables *can* be run.
1563ac_fn_c_try_run ()
1564{
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_link"
1567case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570esac
1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572$as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>&5
1574 ac_status=$?
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1577 { { case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_try") 2>&5
1584 ac_status=$?
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; }; }; then :
1587 ac_retval=0
1588else
1589 $as_echo "$as_me: program exited with status $ac_status" >&5
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=$ac_status
1594fi
1595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_run
1600
1601# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1602# -------------------------------------------------------
1603# Tests whether HEADER exists and can be compiled using the include files in
1604# INCLUDES, setting the cache variable VAR accordingly.
1605ac_fn_c_check_header_compile ()
1606{
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609$as_echo_n "checking for $2... " >&6; }
1610if eval \${$3+:} false; then :
1611 $as_echo_n "(cached) " >&6
1612else
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h. */
1615$4
1616#include <$2>
1617_ACEOF
1618if ac_fn_c_try_compile "$LINENO"; then :
1619 eval "$3=yes"
1620else
1621 eval "$3=no"
1622fi
1623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624fi
1625eval ac_res=\$$3
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627$as_echo "$ac_res" >&6; }
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629
1630} # ac_fn_c_check_header_compile
1631
1632# ac_fn_c_try_link LINENO
1633# -----------------------
1634# Try to link conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_c_try_link ()
1636{
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext conftest$ac_exeext
1639 if { { ac_try="$ac_link"
1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest$ac_exeext && {
1658 test "$cross_compiling" = yes ||
1659 test -x conftest$ac_exeext
1660 }; then :
1661 ac_retval=0
1662else
1663 $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667fi
1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670 # interfere with the next link command; also delete a directory that is
1671 # left behind by Apple's compiler. We do this before executing the actions.
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_link
1677
1678# ac_fn_c_check_func LINENO FUNC VAR
1679# ----------------------------------
1680# Tests whether FUNC exists, setting the cache variable VAR accordingly
1681ac_fn_c_check_func ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
1686if eval \${$3+:} false; then :
1687 $as_echo_n "(cached) " >&6
1688else
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h. */
1691/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1693#define $2 innocuous_$2
1694
1695/* System header to define __stub macros and hopefully few prototypes,
1696 which can conflict with char $2 (); below.
1697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1698 <limits.h> exists even on freestanding compilers. */
1699
1700#ifdef __STDC__
1701# include <limits.h>
1702#else
1703# include <assert.h>
1704#endif
1705
1706#undef $2
1707
1708/* Override any GCC internal prototype to avoid an error.
1709 Use char because int might match the return type of a GCC
1710 builtin and then its argument prototype would still apply. */
1711#ifdef __cplusplus
1712extern "C"
1713#endif
1714char $2 ();
1715/* The GNU C library defines this for functions which it implements
1716 to always fail with ENOSYS. Some functions are actually named
1717 something starting with __ and the normal name is an alias. */
1718#if defined __stub_$2 || defined __stub___$2
1719choke me
1720#endif
1721
1722int
1723main ()
1724{
1725return $2 ();
1726 ;
1727 return 0;
1728}
1729_ACEOF
1730if ac_fn_c_try_link "$LINENO"; then :
1731 eval "$3=yes"
1732else
1733 eval "$3=no"
1734fi
1735rm -f core conftest.err conftest.$ac_objext \
1736 conftest$ac_exeext conftest.$ac_ext
1737fi
1738eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743} # ac_fn_c_check_func
1744
1745# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1746# -------------------------------------------------------
1747# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1748# the include files in INCLUDES and setting the cache variable VAR
1749# accordingly.
1750ac_fn_c_check_header_mongrel ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if eval \${$3+:} false; then :
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755$as_echo_n "checking for $2... " >&6; }
1756if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758fi
1759eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
1762else
1763 # Is the header compilable?
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1765$as_echo_n "checking $2 usability... " >&6; }
1766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h. */
1768$4
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772 ac_header_compiler=yes
1773else
1774 ac_header_compiler=no
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1778$as_echo "$ac_header_compiler" >&6; }
1779
1780# Is the header present?
1781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1782$as_echo_n "checking $2 presence... " >&6; }
1783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h. */
1785#include <$2>
1786_ACEOF
1787if ac_fn_c_try_cpp "$LINENO"; then :
1788 ac_header_preproc=yes
1789else
1790 ac_header_preproc=no
1791fi
1792rm -f conftest.err conftest.i conftest.$ac_ext
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1794$as_echo "$ac_header_preproc" >&6; }
1795
1796# So? What about this header?
1797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1798 yes:no: )
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1800$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1802$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803 ;;
1804 no:yes:* )
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1806$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1808$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1810$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1812$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 ;;
1816esac
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
1819if eval \${$3+:} false; then :
1820 $as_echo_n "(cached) " >&6
1821else
1822 eval "$3=\$ac_header_compiler"
1823fi
1824eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827fi
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830} # ac_fn_c_check_header_mongrel
1831
1832# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1833# ---------------------------------------------
1834# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1835# accordingly.
1836ac_fn_c_check_decl ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 as_decl_name=`echo $2|sed 's/ *(.*//'`
1840 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1842$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1843if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848$4
1849int
1850main ()
1851{
1852#ifndef $as_decl_name
1853#ifdef __cplusplus
1854 (void) $as_decl_use;
1855#else
1856 (void) $as_decl_name;
1857#endif
1858#endif
1859
1860 ;
1861 return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_compile "$LINENO"; then :
1865 eval "$3=yes"
1866else
1867 eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876} # ac_fn_c_check_decl
1877cat >config.log <<_ACEOF
1878This file contains any messages produced by compilers while
1879running configure, to aid debugging if configure makes a mistake.
1880
1471generated by GNU Autoconf 2.69
1472
1473Copyright (C) 2012 Free Software Foundation, Inc.
1474This configure script is free software; the Free Software Foundation
1475gives unlimited permission to copy, distribute and modify it.
1476_ACEOF
1477 exit
1478fi
1479
1480## ------------------------ ##
1481## Autoconf initialization. ##
1482## ------------------------ ##
1483
1484# ac_fn_c_try_compile LINENO
1485# --------------------------
1486# Try to compile conftest.$ac_ext, and return whether this succeeded.
1487ac_fn_c_try_compile ()
1488{
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 rm -f conftest.$ac_objext
1491 if { { ac_try="$ac_compile"
1492case "(($ac_try" in
1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494 *) ac_try_echo=$ac_try;;
1495esac
1496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497$as_echo "$ac_try_echo"; } >&5
1498 (eval "$ac_compile") 2>conftest.err
1499 ac_status=$?
1500 if test -s conftest.err; then
1501 grep -v '^ *+' conftest.err >conftest.er1
1502 cat conftest.er1 >&5
1503 mv -f conftest.er1 conftest.err
1504 fi
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; } && {
1507 test -z "$ac_c_werror_flag" ||
1508 test ! -s conftest.err
1509 } && test -s conftest.$ac_objext; then :
1510 ac_retval=0
1511else
1512 $as_echo "$as_me: failed program was:" >&5
1513sed 's/^/| /' conftest.$ac_ext >&5
1514
1515 ac_retval=1
1516fi
1517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518 as_fn_set_status $ac_retval
1519
1520} # ac_fn_c_try_compile
1521
1522# ac_fn_c_try_cpp LINENO
1523# ----------------------
1524# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_cpp ()
1526{
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 if { { ac_try="$ac_cpp conftest.$ac_ext"
1529case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1541 fi
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } > conftest.i && {
1544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 }; then :
1547 ac_retval=0
1548else
1549 $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1
1553fi
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1556
1557} # ac_fn_c_try_cpp
1558
1559# ac_fn_c_try_run LINENO
1560# ----------------------
1561# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1562# that executables *can* be run.
1563ac_fn_c_try_run ()
1564{
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_link"
1567case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570esac
1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572$as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>&5
1574 ac_status=$?
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1577 { { case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_try") 2>&5
1584 ac_status=$?
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; }; }; then :
1587 ac_retval=0
1588else
1589 $as_echo "$as_me: program exited with status $ac_status" >&5
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=$ac_status
1594fi
1595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_run
1600
1601# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1602# -------------------------------------------------------
1603# Tests whether HEADER exists and can be compiled using the include files in
1604# INCLUDES, setting the cache variable VAR accordingly.
1605ac_fn_c_check_header_compile ()
1606{
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609$as_echo_n "checking for $2... " >&6; }
1610if eval \${$3+:} false; then :
1611 $as_echo_n "(cached) " >&6
1612else
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h. */
1615$4
1616#include <$2>
1617_ACEOF
1618if ac_fn_c_try_compile "$LINENO"; then :
1619 eval "$3=yes"
1620else
1621 eval "$3=no"
1622fi
1623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624fi
1625eval ac_res=\$$3
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627$as_echo "$ac_res" >&6; }
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629
1630} # ac_fn_c_check_header_compile
1631
1632# ac_fn_c_try_link LINENO
1633# -----------------------
1634# Try to link conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_c_try_link ()
1636{
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext conftest$ac_exeext
1639 if { { ac_try="$ac_link"
1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest$ac_exeext && {
1658 test "$cross_compiling" = yes ||
1659 test -x conftest$ac_exeext
1660 }; then :
1661 ac_retval=0
1662else
1663 $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667fi
1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670 # interfere with the next link command; also delete a directory that is
1671 # left behind by Apple's compiler. We do this before executing the actions.
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_link
1677
1678# ac_fn_c_check_func LINENO FUNC VAR
1679# ----------------------------------
1680# Tests whether FUNC exists, setting the cache variable VAR accordingly
1681ac_fn_c_check_func ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685$as_echo_n "checking for $2... " >&6; }
1686if eval \${$3+:} false; then :
1687 $as_echo_n "(cached) " >&6
1688else
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h. */
1691/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1693#define $2 innocuous_$2
1694
1695/* System header to define __stub macros and hopefully few prototypes,
1696 which can conflict with char $2 (); below.
1697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1698 <limits.h> exists even on freestanding compilers. */
1699
1700#ifdef __STDC__
1701# include <limits.h>
1702#else
1703# include <assert.h>
1704#endif
1705
1706#undef $2
1707
1708/* Override any GCC internal prototype to avoid an error.
1709 Use char because int might match the return type of a GCC
1710 builtin and then its argument prototype would still apply. */
1711#ifdef __cplusplus
1712extern "C"
1713#endif
1714char $2 ();
1715/* The GNU C library defines this for functions which it implements
1716 to always fail with ENOSYS. Some functions are actually named
1717 something starting with __ and the normal name is an alias. */
1718#if defined __stub_$2 || defined __stub___$2
1719choke me
1720#endif
1721
1722int
1723main ()
1724{
1725return $2 ();
1726 ;
1727 return 0;
1728}
1729_ACEOF
1730if ac_fn_c_try_link "$LINENO"; then :
1731 eval "$3=yes"
1732else
1733 eval "$3=no"
1734fi
1735rm -f core conftest.err conftest.$ac_objext \
1736 conftest$ac_exeext conftest.$ac_ext
1737fi
1738eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740$as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743} # ac_fn_c_check_func
1744
1745# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1746# -------------------------------------------------------
1747# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1748# the include files in INCLUDES and setting the cache variable VAR
1749# accordingly.
1750ac_fn_c_check_header_mongrel ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if eval \${$3+:} false; then :
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755$as_echo_n "checking for $2... " >&6; }
1756if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758fi
1759eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
1762else
1763 # Is the header compilable?
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1765$as_echo_n "checking $2 usability... " >&6; }
1766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767/* end confdefs.h. */
1768$4
1769#include <$2>
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772 ac_header_compiler=yes
1773else
1774 ac_header_compiler=no
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1778$as_echo "$ac_header_compiler" >&6; }
1779
1780# Is the header present?
1781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1782$as_echo_n "checking $2 presence... " >&6; }
1783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h. */
1785#include <$2>
1786_ACEOF
1787if ac_fn_c_try_cpp "$LINENO"; then :
1788 ac_header_preproc=yes
1789else
1790 ac_header_preproc=no
1791fi
1792rm -f conftest.err conftest.i conftest.$ac_ext
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1794$as_echo "$ac_header_preproc" >&6; }
1795
1796# So? What about this header?
1797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1798 yes:no: )
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1800$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1802$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803 ;;
1804 no:yes:* )
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1806$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1808$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1810$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1812$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1814$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 ;;
1816esac
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818$as_echo_n "checking for $2... " >&6; }
1819if eval \${$3+:} false; then :
1820 $as_echo_n "(cached) " >&6
1821else
1822 eval "$3=\$ac_header_compiler"
1823fi
1824eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826$as_echo "$ac_res" >&6; }
1827fi
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830} # ac_fn_c_check_header_mongrel
1831
1832# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1833# ---------------------------------------------
1834# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1835# accordingly.
1836ac_fn_c_check_decl ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 as_decl_name=`echo $2|sed 's/ *(.*//'`
1840 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1842$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1843if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1845else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848$4
1849int
1850main ()
1851{
1852#ifndef $as_decl_name
1853#ifdef __cplusplus
1854 (void) $as_decl_use;
1855#else
1856 (void) $as_decl_name;
1857#endif
1858#endif
1859
1860 ;
1861 return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_compile "$LINENO"; then :
1865 eval "$3=yes"
1866else
1867 eval "$3=no"
1868fi
1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876} # ac_fn_c_check_decl
1877cat >config.log <<_ACEOF
1878This file contains any messages produced by compilers while
1879running configure, to aid debugging if configure makes a mistake.
1880
1881It was created by sqlite $as_me 3.31.1, which was
1881It was created by sqlite $as_me 3.32.2, which was
1882generated by GNU Autoconf 2.69. Invocation command line was
1883
1884 $ $0 $@
1885
1886_ACEOF
1887exec 5>>config.log
1888{
1889cat <<_ASUNAME
1890## --------- ##
1891## Platform. ##
1892## --------- ##
1893
1894hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902
1903/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1907/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1910
1911_ASUNAME
1912
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 $as_echo "PATH: $as_dir"
1919 done
1920IFS=$as_save_IFS
1921
1922} >&5
1923
1924cat >&5 <<_ACEOF
1925
1926
1927## ----------- ##
1928## Core tests. ##
1929## ----------- ##
1930
1931_ACEOF
1932
1933
1934# Keep a trace of the command line.
1935# Strip out --no-create and --no-recursion so they do not pile up.
1936# Strip out --silent because we don't want to record it for future runs.
1937# Also quote any args containing shell meta-characters.
1938# Make two passes to allow for proper duplicate-argument suppression.
1939ac_configure_args=
1940ac_configure_args0=
1941ac_configure_args1=
1942ac_must_keep_next=false
1943for ac_pass in 1 2
1944do
1945 for ac_arg
1946 do
1947 case $ac_arg in
1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 continue ;;
1952 *\'*)
1953 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 esac
1955 case $ac_pass in
1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957 2)
1958 as_fn_append ac_configure_args1 " '$ac_arg'"
1959 if test $ac_must_keep_next = true; then
1960 ac_must_keep_next=false # Got value, back to normal.
1961 else
1962 case $ac_arg in
1963 *=* | --config-cache | -C | -disable-* | --disable-* \
1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966 | -with-* | --with-* | -without-* | --without-* | --x)
1967 case "$ac_configure_args0 " in
1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 esac
1970 ;;
1971 -* ) ac_must_keep_next=true ;;
1972 esac
1973 fi
1974 as_fn_append ac_configure_args " '$ac_arg'"
1975 ;;
1976 esac
1977 done
1978done
1979{ ac_configure_args0=; unset ac_configure_args0;}
1980{ ac_configure_args1=; unset ac_configure_args1;}
1981
1982# When interrupted or exit'd, cleanup temporary files, and complete
1983# config.log. We remove comments because anyway the quotes in there
1984# would cause problems or look ugly.
1985# WARNING: Use '\'' to represent an apostrophe within the trap.
1986# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987trap 'exit_status=$?
1988 # Save into config.log some information that might help in debugging.
1989 {
1990 echo
1991
1992 $as_echo "## ---------------- ##
1993## Cache variables. ##
1994## ---------------- ##"
1995 echo
1996 # The following way of writing the cache mishandles newlines in values,
1997(
1998 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1999 eval ac_val=\$$ac_var
2000 case $ac_val in #(
2001 *${as_nl}*)
2002 case $ac_var in #(
2003 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2004$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2005 esac
2006 case $ac_var in #(
2007 _ | IFS | as_nl) ;; #(
2008 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2009 *) { eval $ac_var=; unset $ac_var;} ;;
2010 esac ;;
2011 esac
2012 done
2013 (set) 2>&1 |
2014 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2015 *${as_nl}ac_space=\ *)
2016 sed -n \
2017 "s/'\''/'\''\\\\'\'''\''/g;
2018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019 ;; #(
2020 *)
2021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022 ;;
2023 esac |
2024 sort
2025)
2026 echo
2027
2028 $as_echo "## ----------------- ##
2029## Output variables. ##
2030## ----------------- ##"
2031 echo
2032 for ac_var in $ac_subst_vars
2033 do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
2039 done | sort
2040 echo
2041
2042 if test -n "$ac_subst_files"; then
2043 $as_echo "## ------------------- ##
2044## File substitutions. ##
2045## ------------------- ##"
2046 echo
2047 for ac_var in $ac_subst_files
2048 do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 esac
2053 $as_echo "$ac_var='\''$ac_val'\''"
2054 done | sort
2055 echo
2056 fi
2057
2058 if test -s confdefs.h; then
2059 $as_echo "## ----------- ##
2060## confdefs.h. ##
2061## ----------- ##"
2062 echo
2063 cat confdefs.h
2064 echo
2065 fi
2066 test "$ac_signal" != 0 &&
2067 $as_echo "$as_me: caught signal $ac_signal"
2068 $as_echo "$as_me: exit $exit_status"
2069 } >&5
2070 rm -f core *.core core.conftest.* &&
2071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072 exit $exit_status
2073' 0
2074for ac_signal in 1 2 13 15; do
2075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2076done
2077ac_signal=0
2078
2079# confdefs.h avoids OS command line length limits that DEFS can exceed.
2080rm -f -r conftest* confdefs.h
2081
2082$as_echo "/* confdefs.h */" > confdefs.h
2083
2084# Predefined preprocessor variables.
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_NAME "$PACKAGE_NAME"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_VERSION "$PACKAGE_VERSION"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_STRING "$PACKAGE_STRING"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2104_ACEOF
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_URL "$PACKAGE_URL"
2108_ACEOF
2109
2110
2111# Let the site file select an alternate cache file if it wants to.
2112# Prefer an explicitly selected file to automatically selected ones.
2113ac_site_file1=NONE
2114ac_site_file2=NONE
2115if test -n "$CONFIG_SITE"; then
2116 # We do not want a PATH search for config.site.
2117 case $CONFIG_SITE in #((
2118 -*) ac_site_file1=./$CONFIG_SITE;;
2119 */*) ac_site_file1=$CONFIG_SITE;;
2120 *) ac_site_file1=./$CONFIG_SITE;;
2121 esac
2122elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
2128fi
2129for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130do
2131 test "x$ac_site_file" = xNONE && continue
2132 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file" \
2137 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139as_fn_error $? "failed to load site script $ac_site_file
2140See \`config.log' for more details" "$LINENO" 5; }
2141 fi
2142done
2143
2144if test -r "$cache_file"; then
2145 # Some versions of bash will fail to source /dev/null (special files
2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149$as_echo "$as_me: loading cache $cache_file" >&6;}
2150 case $cache_file in
2151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
2153 esac
2154 fi
2155else
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157$as_echo "$as_me: creating cache $cache_file" >&6;}
2158 >$cache_file
2159fi
2160
2161# Check that the precious variables saved in the cache have kept the same
2162# value.
2163ac_cache_corrupted=false
2164for ac_var in $ac_precious_vars; do
2165 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166 eval ac_new_set=\$ac_env_${ac_var}_set
2167 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168 eval ac_new_val=\$ac_env_${ac_var}_value
2169 case $ac_old_set,$ac_new_set in
2170 set,)
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2173 ac_cache_corrupted=: ;;
2174 ,set)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,);;
2179 *)
2180 if test "x$ac_old_val" != "x$ac_new_val"; then
2181 # differences in whitespace do not lead to failure.
2182 ac_old_val_w=`echo x $ac_old_val`
2183 ac_new_val_w=`echo x $ac_new_val`
2184 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187 ac_cache_corrupted=:
2188 else
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191 eval $ac_var=\$ac_old_val
2192 fi
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2194$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2196$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2197 fi;;
2198 esac
2199 # Pass precious variables to config.status.
2200 if test "$ac_new_set" = set; then
2201 case $ac_new_val in
2202 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2203 *) ac_arg=$ac_var=$ac_new_val ;;
2204 esac
2205 case " $ac_configure_args " in
2206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2207 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2208 esac
2209 fi
2210done
2211if $ac_cache_corrupted; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217fi
2218## -------------------- ##
2219## Main body of script. ##
2220## -------------------- ##
2221
2222ac_ext=c
2223ac_cpp='$CPP $CPPFLAGS'
2224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227
2228
2229
2230#--------------------------------------------------------------------
2231# Call TEA_INIT as the first TEA_ macro to set up initial vars.
2232# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
2233# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
2234#--------------------------------------------------------------------
2235
2236
2237 # TEA extensions pass this us the version of TEA they think they
2238 # are compatible with.
2239 TEA_VERSION="3.9"
2240
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5
2242$as_echo_n "checking for correct TEA configuration... " >&6; }
2243 if test x"${PACKAGE_NAME}" = x ; then
2244 as_fn_error $? "
2245The PACKAGE_NAME variable must be defined by your TEA configure.in" "$LINENO" 5
2246 fi
2247 if test x"3.9" = x ; then
2248 as_fn_error $? "
2249TEA version not specified." "$LINENO" 5
2250 elif test "3.9" != "${TEA_VERSION}" ; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5
2252$as_echo "warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; }
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2255$as_echo "ok (TEA ${TEA_VERSION})" >&6; }
2256 fi
2257
2258 # If the user did not set CFLAGS, set it now to keep macros
2259 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
2260 if test "${CFLAGS+set}" != "set" ; then
2261 CFLAGS=""
2262 fi
2263
2264 case "`uname -s`" in
2265 *win32*|*WIN32*|*MINGW32_*)
2266 # Extract the first word of "cygpath", so it can be a program name with args.
2267set dummy cygpath; ac_word=$2
2268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2269$as_echo_n "checking for $ac_word... " >&6; }
2270if ${ac_cv_prog_CYGPATH+:} false; then :
2271 $as_echo_n "(cached) " >&6
2272else
2273 if test -n "$CYGPATH"; then
2274 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2275else
2276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277for as_dir in $PATH
2278do
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_CYGPATH="cygpath -w"
2284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
2286 fi
2287done
2288 done
2289IFS=$as_save_IFS
2290
2291 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2292fi
2293fi
2294CYGPATH=$ac_cv_prog_CYGPATH
2295if test -n "$CYGPATH"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2297$as_echo "$CYGPATH" >&6; }
2298else
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2300$as_echo "no" >&6; }
2301fi
2302
2303
2304 EXEEXT=".exe"
2305 TEA_PLATFORM="windows"
2306 ;;
2307 *CYGWIN_*)
2308 CYGPATH=echo
2309 EXEEXT=".exe"
2310 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG
2311 ;;
2312 *)
2313 CYGPATH=echo
2314 # Maybe we are cross-compiling....
2315 case ${host_alias} in
2316 *mingw32*)
2317 EXEEXT=".exe"
2318 TEA_PLATFORM="windows"
2319 ;;
2320 *)
2321 EXEEXT=""
2322 TEA_PLATFORM="unix"
2323 ;;
2324 esac
2325 ;;
2326 esac
2327
2328 # Check if exec_prefix is set. If not use fall back to prefix.
2329 # Note when adjusted, so that TEA_PREFIX can correct for this.
2330 # This is needed for recursive configures, since autoconf propagates
2331 # $prefix, but not $exec_prefix (doh!).
2332 if test x$exec_prefix = xNONE ; then
2333 exec_prefix_default=yes
2334 exec_prefix=$prefix
2335 fi
2336
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
2338$as_echo "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
2339
2340
2341
2342
2343 # This package name must be replaced statically for AC_SUBST to work
2344
2345 # Substitute STUB_LIB_FILE in case package creates a stub library too.
2346
2347
2348 # We AC_SUBST these here to ensure they are subst'ed,
2349 # in case the user doesn't call TEA_ADD_...
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359ac_aux_dir=
2360for ac_dir in tclconfig "$srcdir"/tclconfig; do
2361 if test -f "$ac_dir/install-sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install-sh -c"
2364 break
2365 elif test -f "$ac_dir/install.sh"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/install.sh -c"
2368 break
2369 elif test -f "$ac_dir/shtool"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/shtool install -c"
2372 break
2373 fi
2374done
2375if test -z "$ac_aux_dir"; then
2376 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tclconfig \"$srcdir\"/tclconfig" "$LINENO" 5
2377fi
2378
2379# These three variables are undocumented and unsupported,
2380# and are intended to be withdrawn in a future Autoconf release.
2381# They can cause serious problems if a builder's source tree is in a directory
2382# whose full name contains unusual characters.
2383ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2386
2387
2388
2389#--------------------------------------------------------------------
2390# Load the tclConfig.sh file
2391#--------------------------------------------------------------------
2392
2393
2394
2395 #
2396 # Ok, lets find the tcl configuration
2397 # First, look for one uninstalled.
2398 # the alternative search directory is invoked by --with-tcl
2399 #
2400
2401 if test x"${no_tcl}" = x ; then
2402 # we reset no_tcl in case something fails here
2403 no_tcl=true
2404
2405# Check whether --with-tcl was given.
2406if test "${with_tcl+set}" = set; then :
2407 withval=$with_tcl; with_tclconfig="${withval}"
2408fi
2409
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2411$as_echo_n "checking for Tcl configuration... " >&6; }
2412 if ${ac_cv_c_tclconfig+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414else
2415
2416
2417 # First check to see if --with-tcl was specified.
2418 if test x"${with_tclconfig}" != x ; then
2419 case "${with_tclconfig}" in
2420 */tclConfig.sh )
2421 if test -f "${with_tclconfig}"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
2423$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2424 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2425 fi ;;
2426 esac
2427 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2428 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2429 else
2430 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2431 fi
2432 fi
2433
2434 # then check for a private Tcl installation
2435 if test x"${ac_cv_c_tclconfig}" = x ; then
2436 for i in \
2437 ../tcl \
2438 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2439 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2440 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2441 ../../tcl \
2442 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2443 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2444 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2445 ../../../tcl \
2446 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2447 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2448 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2449 if test "${TEA_PLATFORM}" = "windows" \
2450 -a -f "$i/win/tclConfig.sh" ; then
2451 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2452 break
2453 fi
2454 if test -f "$i/unix/tclConfig.sh" ; then
2455 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2456 break
2457 fi
2458 done
2459 fi
2460
2461 # on Darwin, check in Framework installation locations
2462 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2463 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2464 `ls -d /Library/Frameworks 2>/dev/null` \
2465 `ls -d /Network/Library/Frameworks 2>/dev/null` \
2466 `ls -d /System/Library/Frameworks 2>/dev/null` \
2467 ; do
2468 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2469 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2470 break
2471 fi
2472 done
2473 fi
2474
2475 # TEA specific: on Windows, check in common installation locations
2476 if test "${TEA_PLATFORM}" = "windows" \
2477 -a x"${ac_cv_c_tclconfig}" = x ; then
2478 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2479 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2480 ; do
2481 if test -f "$i/tclConfig.sh" ; then
2482 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2483 break
2484 fi
2485 done
2486 fi
2487
2488 # check in a few common install locations
2489 if test x"${ac_cv_c_tclconfig}" = x ; then
2490 for i in `ls -d ${libdir} 2>/dev/null` \
2491 `ls -d ${exec_prefix}/lib 2>/dev/null` \
2492 `ls -d ${prefix}/lib 2>/dev/null` \
2493 `ls -d /usr/local/lib 2>/dev/null` \
2494 `ls -d /usr/contrib/lib 2>/dev/null` \
2495 `ls -d /usr/lib 2>/dev/null` \
2496 `ls -d /usr/lib64 2>/dev/null` \
2497 `ls -d /usr/lib/tcl8.6 2>/dev/null` \
2498 `ls -d /usr/lib/tcl8.5 2>/dev/null` \
2499 ; do
2500 if test -f "$i/tclConfig.sh" ; then
2501 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2502 break
2503 fi
2504 done
2505 fi
2506
2507 # check in a few other private locations
2508 if test x"${ac_cv_c_tclconfig}" = x ; then
2509 for i in \
2510 ${srcdir}/../tcl \
2511 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2512 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2513 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2514 if test "${TEA_PLATFORM}" = "windows" \
2515 -a -f "$i/win/tclConfig.sh" ; then
2516 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2517 break
2518 fi
2519 if test -f "$i/unix/tclConfig.sh" ; then
2520 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2521 break
2522 fi
2523 done
2524 fi
2525
2526fi
2527
2528
2529 if test x"${ac_cv_c_tclconfig}" = x ; then
2530 TCL_BIN_DIR="# no Tcl configs found"
2531 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2532 else
2533 no_tcl=
2534 TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2536$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2537 fi
2538 fi
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545if test -n "$ac_tool_prefix"; then
2546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2547set dummy ${ac_tool_prefix}gcc; ac_word=$2
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549$as_echo_n "checking for $ac_word... " >&6; }
2550if ${ac_cv_prog_CC+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH
2558do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567done
2568 done
2569IFS=$as_save_IFS
2570
2571fi
2572fi
2573CC=$ac_cv_prog_CC
2574if test -n "$CC"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2576$as_echo "$CC" >&6; }
2577else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579$as_echo "no" >&6; }
2580fi
2581
2582
2583fi
2584if test -z "$ac_cv_prog_CC"; then
2585 ac_ct_CC=$CC
2586 # Extract the first word of "gcc", so it can be a program name with args.
2587set dummy gcc; ac_word=$2
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589$as_echo_n "checking for $ac_word... " >&6; }
2590if ${ac_cv_prog_ac_ct_CC+:} false; then :
2591 $as_echo_n "(cached) " >&6
2592else
2593 if test -n "$ac_ct_CC"; then
2594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2595else
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603 ac_cv_prog_ac_ct_CC="gcc"
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2606 fi
2607done
2608 done
2609IFS=$as_save_IFS
2610
2611fi
2612fi
2613ac_ct_CC=$ac_cv_prog_ac_ct_CC
2614if test -n "$ac_ct_CC"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2616$as_echo "$ac_ct_CC" >&6; }
2617else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619$as_echo "no" >&6; }
2620fi
2621
2622 if test "x$ac_ct_CC" = x; then
2623 CC=""
2624 else
2625 case $cross_compiling:$ac_tool_warned in
2626yes:)
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2629ac_tool_warned=yes ;;
2630esac
2631 CC=$ac_ct_CC
2632 fi
2633else
2634 CC="$ac_cv_prog_CC"
2635fi
2636
2637if test -z "$CC"; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640set dummy ${ac_tool_prefix}cc; ac_word=$2
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642$as_echo_n "checking for $ac_word... " >&6; }
2643if ${ac_cv_prog_CC+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645else
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_CC="${ac_tool_prefix}cc"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660done
2661 done
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666CC=$ac_cv_prog_CC
2667if test -n "$CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669$as_echo "$CC" >&6; }
2670else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672$as_echo "no" >&6; }
2673fi
2674
2675
2676 fi
2677fi
2678if test -z "$CC"; then
2679 # Extract the first word of "cc", so it can be a program name with args.
2680set dummy cc; ac_word=$2
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682$as_echo_n "checking for $ac_word... " >&6; }
2683if ${ac_cv_prog_CC+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685else
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689 ac_prog_rejected=no
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698 ac_prog_rejected=yes
2699 continue
2700 fi
2701 ac_cv_prog_CC="cc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705done
2706 done
2707IFS=$as_save_IFS
2708
2709if test $ac_prog_rejected = yes; then
2710 # We found a bogon in the path, so make sure we never use it.
2711 set dummy $ac_cv_prog_CC
2712 shift
2713 if test $# != 0; then
2714 # We chose a different compiler from the bogus one.
2715 # However, it has the same basename, so the bogon will be chosen
2716 # first if we set CC to just the basename; use the full file name.
2717 shift
2718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2719 fi
2720fi
2721fi
2722fi
2723CC=$ac_cv_prog_CC
2724if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726$as_echo "$CC" >&6; }
2727else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729$as_echo "no" >&6; }
2730fi
2731
2732
2733fi
2734if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 for ac_prog in cl.exe
2737 do
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if ${ac_cv_prog_CC+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
2760 done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765CC=$ac_cv_prog_CC
2766if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768$as_echo "$CC" >&6; }
2769else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774
2775 test -n "$CC" && break
2776 done
2777fi
2778if test -z "$CC"; then
2779 ac_ct_CC=$CC
2780 for ac_prog in cl.exe
2781do
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783set dummy $ac_prog; ac_word=$2
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
2786if ${ac_cv_prog_ac_ct_CC+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788else
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_ac_ct_CC="$ac_prog"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804 done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810if test -n "$ac_ct_CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2812$as_echo "$ac_ct_CC" >&6; }
2813else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815$as_echo "no" >&6; }
2816fi
2817
2818
2819 test -n "$ac_ct_CC" && break
2820done
2821
2822 if test "x$ac_ct_CC" = x; then
2823 CC=""
2824 else
2825 case $cross_compiling:$ac_tool_warned in
2826yes:)
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2829ac_tool_warned=yes ;;
2830esac
2831 CC=$ac_ct_CC
2832 fi
2833fi
2834
2835fi
2836
2837
2838test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840as_fn_error $? "no acceptable C compiler found in \$PATH
2841See \`config.log' for more details" "$LINENO" 5; }
2842
2843# Provide some information about the compiler.
2844$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2845set X $ac_compile
2846ac_compiler=$2
2847for ac_option in --version -v -V -qversion; do
2848 { { ac_try="$ac_compiler $ac_option >&5"
2849case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854$as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2856 ac_status=$?
2857 if test -s conftest.err; then
2858 sed '10a\
2859... rest of stderr output deleted ...
2860 10q' conftest.err >conftest.er1
2861 cat conftest.er1 >&5
2862 fi
2863 rm -f conftest.er1 conftest.err
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; }
2866done
2867
2868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869/* end confdefs.h. */
2870
2871int
2872main ()
2873{
2874
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879ac_clean_files_save=$ac_clean_files
2880ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2881# Try to create an executable without -o first, disregard a.out.
2882# It will help us diagnose broken compilers, and finding out an intuition
2883# of exeext.
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2885$as_echo_n "checking whether the C compiler works... " >&6; }
2886ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2887
2888# The possible output files:
2889ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2890
2891ac_rmfiles=
2892for ac_file in $ac_files
2893do
2894 case $ac_file in
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2896 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2897 esac
2898done
2899rm -f $ac_rmfiles
2900
2901if { { ac_try="$ac_link_default"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2907$as_echo "$ac_try_echo"; } >&5
2908 (eval "$ac_link_default") 2>&5
2909 ac_status=$?
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; }; then :
2912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2913# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2914# in a Makefile. We should not override ac_cv_exeext if it was cached,
2915# so that the user can short-circuit this test for compilers unknown to
2916# Autoconf.
2917for ac_file in $ac_files ''
2918do
2919 test -f "$ac_file" || continue
2920 case $ac_file in
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2922 ;;
2923 [ab].out )
2924 # We found the default executable, but exeext='' is most
2925 # certainly right.
2926 break;;
2927 *.* )
2928 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2929 then :; else
2930 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 fi
2932 # We set ac_cv_exeext here because the later test for it is not
2933 # safe: cross compilers may not add the suffix if given an `-o'
2934 # argument, so we may need to know it at that point already.
2935 # Even if this section looks crufty: it has the advantage of
2936 # actually working.
2937 break;;
2938 * )
2939 break;;
2940 esac
2941done
2942test "$ac_cv_exeext" = no && ac_cv_exeext=
2943
2944else
2945 ac_file=''
2946fi
2947if test -z "$ac_file"; then :
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950$as_echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955as_fn_error 77 "C compiler cannot create executables
2956See \`config.log' for more details" "$LINENO" 5; }
2957else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959$as_echo "yes" >&6; }
2960fi
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2962$as_echo_n "checking for C compiler default output file name... " >&6; }
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2964$as_echo "$ac_file" >&6; }
2965ac_exeext=$ac_cv_exeext
2966
2967rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2968ac_clean_files=$ac_clean_files_save
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2970$as_echo_n "checking for suffix of executables... " >&6; }
2971if { { ac_try="$ac_link"
2972case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977$as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_link") 2>&5
2979 ac_status=$?
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; then :
2982 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2983# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2984# work properly (i.e., refer to `conftest.exe'), while it won't with
2985# `rm'.
2986for ac_file in conftest.exe conftest conftest.*; do
2987 test -f "$ac_file" || continue
2988 case $ac_file in
2989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2990 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991 break;;
2992 * ) break;;
2993 esac
2994done
2995else
2996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2999See \`config.log' for more details" "$LINENO" 5; }
3000fi
3001rm -f conftest conftest$ac_cv_exeext
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3003$as_echo "$ac_cv_exeext" >&6; }
3004
3005rm -f conftest.$ac_ext
3006EXEEXT=$ac_cv_exeext
3007ac_exeext=$EXEEXT
3008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010#include <stdio.h>
3011int
3012main ()
3013{
3014FILE *f = fopen ("conftest.out", "w");
3015 return ferror (f) || fclose (f) != 0;
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021ac_clean_files="$ac_clean_files conftest.out"
3022# Check that the compiler produces executables we can run. If not, either
3023# the compiler is broken, or we cross compile.
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3025$as_echo_n "checking whether we are cross compiling... " >&6; }
3026if test "$cross_compiling" != yes; then
3027 { { ac_try="$ac_link"
3028case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
3032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033$as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link") 2>&5
3035 ac_status=$?
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }
3038 if { ac_try='./conftest$ac_cv_exeext'
3039 { { case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044$as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }; }; then
3049 cross_compiling=no
3050 else
3051 if test "$cross_compiling" = maybe; then
3052 cross_compiling=yes
3053 else
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056as_fn_error $? "cannot run C compiled programs.
3057If you meant to cross compile, use \`--host'.
3058See \`config.log' for more details" "$LINENO" 5; }
3059 fi
3060 fi
3061fi
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3063$as_echo "$cross_compiling" >&6; }
3064
3065rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3066ac_clean_files=$ac_clean_files_save
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3068$as_echo_n "checking for suffix of object files... " >&6; }
3069if ${ac_cv_objext+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071else
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073/* end confdefs.h. */
3074
3075int
3076main ()
3077{
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083rm -f conftest.o conftest.obj
3084if { { ac_try="$ac_compile"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compile") 2>&5
3092 ac_status=$?
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; then :
3095 for ac_file in conftest.o conftest.obj conftest.*; do
3096 test -f "$ac_file" || continue;
3097 case $ac_file in
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3100 break;;
3101 esac
3102done
3103else
3104 $as_echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109as_fn_error $? "cannot compute suffix of object files: cannot compile
3110See \`config.log' for more details" "$LINENO" 5; }
3111fi
3112rm -f conftest.$ac_cv_objext conftest.$ac_ext
3113fi
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3115$as_echo "$ac_cv_objext" >&6; }
3116OBJEXT=$ac_cv_objext
3117ac_objext=$OBJEXT
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3119$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3120if ${ac_cv_c_compiler_gnu+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122else
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124/* end confdefs.h. */
3125
3126int
3127main ()
3128{
3129#ifndef __GNUC__
3130 choke me
3131#endif
3132
3133 ;
3134 return 0;
3135}
3136_ACEOF
3137if ac_fn_c_try_compile "$LINENO"; then :
3138 ac_compiler_gnu=yes
3139else
3140 ac_compiler_gnu=no
3141fi
3142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143ac_cv_c_compiler_gnu=$ac_compiler_gnu
3144
3145fi
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3147$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3148if test $ac_compiler_gnu = yes; then
3149 GCC=yes
3150else
3151 GCC=
3152fi
3153ac_test_CFLAGS=${CFLAGS+set}
3154ac_save_CFLAGS=$CFLAGS
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3156$as_echo_n "checking whether $CC accepts -g... " >&6; }
3157if ${ac_cv_prog_cc_g+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159else
3160 ac_save_c_werror_flag=$ac_c_werror_flag
3161 ac_c_werror_flag=yes
3162 ac_cv_prog_cc_g=no
3163 CFLAGS="-g"
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h. */
3166
3167int
3168main ()
3169{
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175if ac_fn_c_try_compile "$LINENO"; then :
3176 ac_cv_prog_cc_g=yes
3177else
3178 CFLAGS=""
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180/* end confdefs.h. */
3181
3182int
3183main ()
3184{
3185
3186 ;
3187 return 0;
3188}
3189_ACEOF
3190if ac_fn_c_try_compile "$LINENO"; then :
3191
3192else
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3194 CFLAGS="-g"
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196/* end confdefs.h. */
3197
3198int
3199main ()
3200{
3201
3202 ;
3203 return 0;
3204}
3205_ACEOF
3206if ac_fn_c_try_compile "$LINENO"; then :
3207 ac_cv_prog_cc_g=yes
3208fi
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210fi
3211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212fi
3213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3215fi
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3217$as_echo "$ac_cv_prog_cc_g" >&6; }
3218if test "$ac_test_CFLAGS" = set; then
3219 CFLAGS=$ac_save_CFLAGS
3220elif test $ac_cv_prog_cc_g = yes; then
3221 if test "$GCC" = yes; then
3222 CFLAGS="-g -O2"
3223 else
3224 CFLAGS="-g"
3225 fi
3226else
3227 if test "$GCC" = yes; then
3228 CFLAGS="-O2"
3229 else
3230 CFLAGS=
3231 fi
3232fi
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3234$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3235if ${ac_cv_prog_cc_c89+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237else
3238 ac_cv_prog_cc_c89=no
3239ac_save_CC=$CC
3240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241/* end confdefs.h. */
3242#include <stdarg.h>
3243#include <stdio.h>
3244struct stat;
3245/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3246struct buf { int x; };
3247FILE * (*rcsopen) (struct buf *, struct stat *, int);
3248static char *e (p, i)
3249 char **p;
3250 int i;
3251{
3252 return p[i];
3253}
3254static char *f (char * (*g) (char **, int), char **p, ...)
3255{
3256 char *s;
3257 va_list v;
3258 va_start (v,p);
3259 s = g (p, va_arg (v,int));
3260 va_end (v);
3261 return s;
3262}
3263
3264/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3265 function prototypes and stuff, but not '\xHH' hex character constants.
3266 These don't provoke an error unfortunately, instead are silently treated
3267 as 'x'. The following induces an error, until -std is added to get
3268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3269 array size at least. It's necessary to write '\x00'==0 to get something
3270 that's true only with -std. */
3271int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272
3273/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3274 inside strings and character constants. */
3275#define FOO(x) 'x'
3276int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277
3278int test (int i, double x);
3279struct s1 {int (*f) (int a);};
3280struct s2 {int (*f) (double a);};
3281int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3282int argc;
3283char **argv;
3284int
3285main ()
3286{
3287return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3288 ;
3289 return 0;
3290}
3291_ACEOF
3292for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294do
3295 CC="$ac_save_CC $ac_arg"
3296 if ac_fn_c_try_compile "$LINENO"; then :
3297 ac_cv_prog_cc_c89=$ac_arg
3298fi
3299rm -f core conftest.err conftest.$ac_objext
3300 test "x$ac_cv_prog_cc_c89" != "xno" && break
3301done
3302rm -f conftest.$ac_ext
3303CC=$ac_save_CC
3304
3305fi
3306# AC_CACHE_VAL
3307case "x$ac_cv_prog_cc_c89" in
3308 x)
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3310$as_echo "none needed" >&6; } ;;
3311 xno)
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3313$as_echo "unsupported" >&6; } ;;
3314 *)
3315 CC="$CC $ac_cv_prog_cc_c89"
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3317$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3318esac
3319if test "x$ac_cv_prog_cc_c89" != xno; then :
3320
3321fi
3322
3323ac_ext=c
3324ac_cpp='$CPP $CPPFLAGS'
3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328
3329
3330
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
3332$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
3333
3334 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
3336$as_echo "loading" >&6; }
3337 . "${TCL_BIN_DIR}/tclConfig.sh"
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
3340$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
3341 fi
3342
3343 # eval is required to do the TCL_DBGX substitution
3344 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
3345 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
3346
3347 # If the TCL_BIN_DIR is the build directory (not the install directory),
3348 # then set the common variable name to the value of the build variables.
3349 # For example, the variable TCL_LIB_SPEC will be set to the value
3350 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
3351 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
3352 # installed and uninstalled version of Tcl.
3353 if test -f "${TCL_BIN_DIR}/Makefile" ; then
3354 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
3355 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
3356 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
3357 elif test "`uname -s`" = "Darwin"; then
3358 # If Tcl was built as a framework, attempt to use the libraries
3359 # from the framework at the given location so that linking works
3360 # against Tcl.framework installed in an arbitrary location.
3361 case ${TCL_DEFS} in
3362 *TCL_FRAMEWORK*)
3363 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
3364 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
3365 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
3366 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
3367 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
3368 break
3369 fi
3370 done
3371 fi
3372 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
3373 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
3374 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
3375 fi
3376 ;;
3377 esac
3378 fi
3379
3380 # eval is required to do the TCL_DBGX substitution
3381 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
3382 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
3383 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
3384 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5
3400$as_echo_n "checking platform... " >&6; }
3401 hold_cc=$CC; CC="$TCL_CC"
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h. */
3404
3405int
3406main ()
3407{
3408
3409 #ifdef _WIN32
3410 #error win32
3411 #endif
3412
3413 ;
3414 return 0;
3415}
3416_ACEOF
3417if ac_fn_c_try_compile "$LINENO"; then :
3418 TEA_PLATFORM="unix"
3419else
3420 TEA_PLATFORM="windows"
3421
3422fi
3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 CC=$hold_cc
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
3426$as_echo "$TEA_PLATFORM" >&6; }
3427
3428 # The BUILD_$pkg is to define the correct extern storage class
3429 # handling when making this package
3430
3431cat >>confdefs.h <<_ACEOF
3432#define BUILD_${PACKAGE_NAME} /**/
3433_ACEOF
3434
3435 # Do this here as we have fully defined TEA_PLATFORM now
3436 if test "${TEA_PLATFORM}" = "windows" ; then
3437 EXEEXT=".exe"
3438 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
3439 fi
3440
3441 # TEA specific:
3442
3443
3444
3445
3446
3447
3448
3449
3450#--------------------------------------------------------------------
3451# Load the tkConfig.sh file if necessary (Tk extension)
3452#--------------------------------------------------------------------
3453
3454#TEA_PATH_TKCONFIG
3455#TEA_LOAD_TKCONFIG
3456
3457#-----------------------------------------------------------------------
3458# Handle the --prefix=... option by defaulting to what Tcl gave.
3459# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
3460#-----------------------------------------------------------------------
3461
3462
3463 if test "${prefix}" = "NONE"; then
3464 prefix_default=yes
3465 if test x"${TCL_PREFIX}" != x; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
3467$as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
3468 prefix=${TCL_PREFIX}
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
3471$as_echo "$as_me: --prefix defaulting to /usr/local" >&6;}
3472 prefix=/usr/local
3473 fi
3474 fi
3475 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
3476 -o x"${exec_prefix_default}" = x"yes" ; then
3477 if test x"${TCL_EXEC_PREFIX}" != x; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
3479$as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
3480 exec_prefix=${TCL_EXEC_PREFIX}
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
3483$as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
3484 exec_prefix=$prefix
3485 fi
3486 fi
3487
3488
3489#-----------------------------------------------------------------------
3490# Standard compiler checks.
3491# This sets up CC by using the CC env var, or looks for gcc otherwise.
3492# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
3493# the basic setup necessary to compile executables.
3494#-----------------------------------------------------------------------
3495
3496
3497 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
3498 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
3499
3500 ac_ext=c
3501ac_cpp='$CPP $CPPFLAGS'
3502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3507set dummy ${ac_tool_prefix}gcc; ac_word=$2
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509$as_echo_n "checking for $ac_word... " >&6; }
3510if ${ac_cv_prog_CC+:} false; then :
3511 $as_echo_n "(cached) " >&6
3512else
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3515else
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527done
3528 done
3529IFS=$as_save_IFS
3530
3531fi
3532fi
3533CC=$ac_cv_prog_CC
3534if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536$as_echo "$CC" >&6; }
3537else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539$as_echo "no" >&6; }
3540fi
3541
3542
3543fi
3544if test -z "$ac_cv_prog_CC"; then
3545 ac_ct_CC=$CC
3546 # Extract the first word of "gcc", so it can be a program name with args.
3547set dummy gcc; ac_word=$2
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549$as_echo_n "checking for $ac_word... " >&6; }
3550if ${ac_cv_prog_ac_ct_CC+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552else
3553 if test -n "$ac_ct_CC"; then
3554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3555else
3556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557for as_dir in $PATH
3558do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 ac_cv_prog_ac_ct_CC="gcc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3566 fi
3567done
3568 done
3569IFS=$as_save_IFS
3570
3571fi
3572fi
3573ac_ct_CC=$ac_cv_prog_ac_ct_CC
3574if test -n "$ac_ct_CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576$as_echo "$ac_ct_CC" >&6; }
3577else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
3580fi
3581
3582 if test "x$ac_ct_CC" = x; then
3583 CC=""
3584 else
3585 case $cross_compiling:$ac_tool_warned in
3586yes:)
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589ac_tool_warned=yes ;;
3590esac
3591 CC=$ac_ct_CC
3592 fi
3593else
3594 CC="$ac_cv_prog_CC"
3595fi
3596
3597if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3600set dummy ${ac_tool_prefix}cc; ac_word=$2
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602$as_echo_n "checking for $ac_word... " >&6; }
3603if ${ac_cv_prog_CC+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605else
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3608else
3609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610for as_dir in $PATH
3611do
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_CC="${ac_tool_prefix}cc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620done
3621 done
3622IFS=$as_save_IFS
3623
3624fi
3625fi
3626CC=$ac_cv_prog_CC
3627if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629$as_echo "$CC" >&6; }
3630else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632$as_echo "no" >&6; }
3633fi
3634
3635
3636 fi
3637fi
3638if test -z "$CC"; then
3639 # Extract the first word of "cc", so it can be a program name with args.
3640set dummy cc; ac_word=$2
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642$as_echo_n "checking for $ac_word... " >&6; }
3643if ${ac_cv_prog_CC+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645else
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648else
3649 ac_prog_rejected=no
3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651for as_dir in $PATH
3652do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3658 ac_prog_rejected=yes
3659 continue
3660 fi
3661 ac_cv_prog_CC="cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665done
3666 done
3667IFS=$as_save_IFS
3668
3669if test $ac_prog_rejected = yes; then
3670 # We found a bogon in the path, so make sure we never use it.
3671 set dummy $ac_cv_prog_CC
3672 shift
3673 if test $# != 0; then
3674 # We chose a different compiler from the bogus one.
3675 # However, it has the same basename, so the bogon will be chosen
3676 # first if we set CC to just the basename; use the full file name.
3677 shift
3678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3679 fi
3680fi
3681fi
3682fi
3683CC=$ac_cv_prog_CC
3684if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686$as_echo "$CC" >&6; }
3687else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689$as_echo "no" >&6; }
3690fi
3691
3692
3693fi
3694if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog in cl.exe
3697 do
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701$as_echo_n "checking for $ac_word... " >&6; }
3702if ${ac_cv_prog_CC+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704else
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC="$CC" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719done
3720 done
3721IFS=$as_save_IFS
3722
3723fi
3724fi
3725CC=$ac_cv_prog_CC
3726if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728$as_echo "$CC" >&6; }
3729else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731$as_echo "no" >&6; }
3732fi
3733
3734
3735 test -n "$CC" && break
3736 done
3737fi
3738if test -z "$CC"; then
3739 ac_ct_CC=$CC
3740 for ac_prog in cl.exe
3741do
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743set dummy $ac_prog; ac_word=$2
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745$as_echo_n "checking for $ac_word... " >&6; }
3746if ${ac_cv_prog_ac_ct_CC+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748else
3749 if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_ac_ct_CC="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3762 fi
3763done
3764 done
3765IFS=$as_save_IFS
3766
3767fi
3768fi
3769ac_ct_CC=$ac_cv_prog_ac_ct_CC
3770if test -n "$ac_ct_CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772$as_echo "$ac_ct_CC" >&6; }
3773else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775$as_echo "no" >&6; }
3776fi
3777
3778
3779 test -n "$ac_ct_CC" && break
3780done
3781
3782 if test "x$ac_ct_CC" = x; then
3783 CC=""
3784 else
3785 case $cross_compiling:$ac_tool_warned in
3786yes:)
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789ac_tool_warned=yes ;;
3790esac
3791 CC=$ac_ct_CC
3792 fi
3793fi
3794
3795fi
3796
3797
3798test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800as_fn_error $? "no acceptable C compiler found in \$PATH
3801See \`config.log' for more details" "$LINENO" 5; }
3802
3803# Provide some information about the compiler.
3804$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3805set X $ac_compile
3806ac_compiler=$2
3807for ac_option in --version -v -V -qversion; do
3808 { { ac_try="$ac_compiler $ac_option >&5"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814$as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3816 ac_status=$?
3817 if test -s conftest.err; then
3818 sed '10a\
3819... rest of stderr output deleted ...
3820 10q' conftest.err >conftest.er1
3821 cat conftest.er1 >&5
3822 fi
3823 rm -f conftest.er1 conftest.err
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3826done
3827
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3829$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3830if ${ac_cv_c_compiler_gnu+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832else
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834/* end confdefs.h. */
3835
3836int
3837main ()
3838{
3839#ifndef __GNUC__
3840 choke me
3841#endif
3842
3843 ;
3844 return 0;
3845}
3846_ACEOF
3847if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_compiler_gnu=yes
3849else
3850 ac_compiler_gnu=no
3851fi
3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853ac_cv_c_compiler_gnu=$ac_compiler_gnu
3854
3855fi
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3857$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3858if test $ac_compiler_gnu = yes; then
3859 GCC=yes
3860else
3861 GCC=
3862fi
3863ac_test_CFLAGS=${CFLAGS+set}
3864ac_save_CFLAGS=$CFLAGS
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3866$as_echo_n "checking whether $CC accepts -g... " >&6; }
3867if ${ac_cv_prog_cc_g+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869else
3870 ac_save_c_werror_flag=$ac_c_werror_flag
3871 ac_c_werror_flag=yes
3872 ac_cv_prog_cc_g=no
3873 CFLAGS="-g"
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h. */
3876
3877int
3878main ()
3879{
3880
3881 ;
3882 return 0;
3883}
3884_ACEOF
3885if ac_fn_c_try_compile "$LINENO"; then :
3886 ac_cv_prog_cc_g=yes
3887else
3888 CFLAGS=""
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h. */
3891
3892int
3893main ()
3894{
3895
3896 ;
3897 return 0;
3898}
3899_ACEOF
3900if ac_fn_c_try_compile "$LINENO"; then :
3901
3902else
3903 ac_c_werror_flag=$ac_save_c_werror_flag
3904 CFLAGS="-g"
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h. */
3907
3908int
3909main ()
3910{
3911
3912 ;
3913 return 0;
3914}
3915_ACEOF
3916if ac_fn_c_try_compile "$LINENO"; then :
3917 ac_cv_prog_cc_g=yes
3918fi
3919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920fi
3921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922fi
3923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_c_werror_flag=$ac_save_c_werror_flag
3925fi
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3927$as_echo "$ac_cv_prog_cc_g" >&6; }
3928if test "$ac_test_CFLAGS" = set; then
3929 CFLAGS=$ac_save_CFLAGS
3930elif test $ac_cv_prog_cc_g = yes; then
3931 if test "$GCC" = yes; then
3932 CFLAGS="-g -O2"
3933 else
3934 CFLAGS="-g"
3935 fi
3936else
3937 if test "$GCC" = yes; then
3938 CFLAGS="-O2"
3939 else
3940 CFLAGS=
3941 fi
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3944$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3945if ${ac_cv_prog_cc_c89+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947else
3948 ac_cv_prog_cc_c89=no
3949ac_save_CC=$CC
3950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h. */
3952#include <stdarg.h>
3953#include <stdio.h>
3954struct stat;
3955/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3956struct buf { int x; };
3957FILE * (*rcsopen) (struct buf *, struct stat *, int);
3958static char *e (p, i)
3959 char **p;
3960 int i;
3961{
3962 return p[i];
3963}
3964static char *f (char * (*g) (char **, int), char **p, ...)
3965{
3966 char *s;
3967 va_list v;
3968 va_start (v,p);
3969 s = g (p, va_arg (v,int));
3970 va_end (v);
3971 return s;
3972}
3973
3974/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3975 function prototypes and stuff, but not '\xHH' hex character constants.
3976 These don't provoke an error unfortunately, instead are silently treated
3977 as 'x'. The following induces an error, until -std is added to get
3978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3979 array size at least. It's necessary to write '\x00'==0 to get something
3980 that's true only with -std. */
3981int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3982
3983/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3984 inside strings and character constants. */
3985#define FOO(x) 'x'
3986int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3987
3988int test (int i, double x);
3989struct s1 {int (*f) (int a);};
3990struct s2 {int (*f) (double a);};
3991int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3992int argc;
3993char **argv;
3994int
3995main ()
3996{
3997return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3998 ;
3999 return 0;
4000}
4001_ACEOF
4002for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4004do
4005 CC="$ac_save_CC $ac_arg"
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_cv_prog_cc_c89=$ac_arg
4008fi
4009rm -f core conftest.err conftest.$ac_objext
4010 test "x$ac_cv_prog_cc_c89" != "xno" && break
4011done
4012rm -f conftest.$ac_ext
4013CC=$ac_save_CC
4014
4015fi
4016# AC_CACHE_VAL
4017case "x$ac_cv_prog_cc_c89" in
4018 x)
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4020$as_echo "none needed" >&6; } ;;
4021 xno)
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4023$as_echo "unsupported" >&6; } ;;
4024 *)
4025 CC="$CC $ac_cv_prog_cc_c89"
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4027$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4028esac
4029if test "x$ac_cv_prog_cc_c89" != xno; then :
4030
4031fi
4032
4033ac_ext=c
4034ac_cpp='$CPP $CPPFLAGS'
4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038
4039 ac_ext=c
4040ac_cpp='$CPP $CPPFLAGS'
4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4045$as_echo_n "checking how to run the C preprocessor... " >&6; }
4046# On Suns, sometimes $CPP names a directory.
4047if test -n "$CPP" && test -d "$CPP"; then
4048 CPP=
4049fi
4050if test -z "$CPP"; then
4051 if ${ac_cv_prog_CPP+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053else
4054 # Double quotes because CPP needs to be expanded
4055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4056 do
4057 ac_preproc_ok=false
4058for ac_c_preproc_warn_flag in '' yes
4059do
4060 # Use a header file that comes with gcc, so configuring glibc
4061 # with a fresh cross-compiler works.
4062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4063 # <limits.h> exists even on freestanding compilers.
4064 # On the NeXT, cc -E runs the code through the compiler's parser,
4065 # not just through cpp. "Syntax error" is here to catch this case.
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h. */
4068#ifdef __STDC__
4069# include <limits.h>
4070#else
4071# include <assert.h>
4072#endif
4073 Syntax error
4074_ACEOF
4075if ac_fn_c_try_cpp "$LINENO"; then :
4076
4077else
4078 # Broken: fails on valid input.
4079continue
4080fi
4081rm -f conftest.err conftest.i conftest.$ac_ext
4082
4083 # OK, works on sane cases. Now check whether nonexistent headers
4084 # can be detected and how.
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h. */
4087#include <ac_nonexistent.h>
4088_ACEOF
4089if ac_fn_c_try_cpp "$LINENO"; then :
4090 # Broken: success on invalid input.
4091continue
4092else
4093 # Passes both tests.
4094ac_preproc_ok=:
4095break
4096fi
4097rm -f conftest.err conftest.i conftest.$ac_ext
4098
4099done
4100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4101rm -f conftest.i conftest.err conftest.$ac_ext
4102if $ac_preproc_ok; then :
4103 break
4104fi
4105
4106 done
4107 ac_cv_prog_CPP=$CPP
4108
4109fi
4110 CPP=$ac_cv_prog_CPP
4111else
4112 ac_cv_prog_CPP=$CPP
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4115$as_echo "$CPP" >&6; }
4116ac_preproc_ok=false
4117for ac_c_preproc_warn_flag in '' yes
4118do
4119 # Use a header file that comes with gcc, so configuring glibc
4120 # with a fresh cross-compiler works.
4121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4122 # <limits.h> exists even on freestanding compilers.
4123 # On the NeXT, cc -E runs the code through the compiler's parser,
4124 # not just through cpp. "Syntax error" is here to catch this case.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h. */
4127#ifdef __STDC__
4128# include <limits.h>
4129#else
4130# include <assert.h>
4131#endif
4132 Syntax error
4133_ACEOF
4134if ac_fn_c_try_cpp "$LINENO"; then :
4135
4136else
4137 # Broken: fails on valid input.
4138continue
4139fi
4140rm -f conftest.err conftest.i conftest.$ac_ext
4141
4142 # OK, works on sane cases. Now check whether nonexistent headers
4143 # can be detected and how.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h. */
4146#include <ac_nonexistent.h>
4147_ACEOF
4148if ac_fn_c_try_cpp "$LINENO"; then :
4149 # Broken: success on invalid input.
4150continue
4151else
4152 # Passes both tests.
4153ac_preproc_ok=:
4154break
4155fi
4156rm -f conftest.err conftest.i conftest.$ac_ext
4157
4158done
4159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4160rm -f conftest.i conftest.err conftest.$ac_ext
4161if $ac_preproc_ok; then :
4162
4163else
4164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4166as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4167See \`config.log' for more details" "$LINENO" 5; }
4168fi
4169
4170ac_ext=c
4171ac_cpp='$CPP $CPPFLAGS'
4172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175
4176
4177 INSTALL="\$(SHELL) \$(srcdir)/tclconfig/install-sh -c"
4178
4179 INSTALL_DATA="\${INSTALL} -m 644"
4180
4181 INSTALL_PROGRAM="\${INSTALL}"
4182
4183 INSTALL_SCRIPT="\${INSTALL}"
4184
4185
4186 #--------------------------------------------------------------------
4187 # Checks to see if the make program sets the $MAKE variable.
4188 #--------------------------------------------------------------------
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4191$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4192set x ${MAKE-make}
4193ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4194if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 cat >conftest.make <<\_ACEOF
4198SHELL = /bin/sh
4199all:
4200 @echo '@@@%%%=$(MAKE)=@@@%%%'
4201_ACEOF
4202# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4203case `${MAKE-make} -f conftest.make 2>/dev/null` in
4204 *@@@%%%=?*=@@@%%%*)
4205 eval ac_cv_prog_make_${ac_make}_set=yes;;
4206 *)
4207 eval ac_cv_prog_make_${ac_make}_set=no;;
4208esac
4209rm -f conftest.make
4210fi
4211if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4213$as_echo "yes" >&6; }
4214 SET_MAKE=
4215else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217$as_echo "no" >&6; }
4218 SET_MAKE="MAKE=${MAKE-make}"
4219fi
4220
4221
4222 #--------------------------------------------------------------------
4223 # Find ranlib
4224 #--------------------------------------------------------------------
4225
4226 if test -n "$ac_tool_prefix"; then
4227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4228set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230$as_echo_n "checking for $ac_word... " >&6; }
4231if ${ac_cv_prog_RANLIB+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233else
4234 if test -n "$RANLIB"; then
4235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4236else
4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4247 fi
4248done
4249 done
4250IFS=$as_save_IFS
4251
4252fi
4253fi
4254RANLIB=$ac_cv_prog_RANLIB
4255if test -n "$RANLIB"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4257$as_echo "$RANLIB" >&6; }
4258else
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260$as_echo "no" >&6; }
4261fi
4262
4263
4264fi
4265if test -z "$ac_cv_prog_RANLIB"; then
4266 ac_ct_RANLIB=$RANLIB
4267 # Extract the first word of "ranlib", so it can be a program name with args.
4268set dummy ranlib; ac_word=$2
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270$as_echo_n "checking for $ac_word... " >&6; }
4271if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273else
4274 if test -n "$ac_ct_RANLIB"; then
4275 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_prog_ac_ct_RANLIB="ranlib"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288done
4289 done
4290IFS=$as_save_IFS
4291
4292fi
4293fi
4294ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4295if test -n "$ac_ct_RANLIB"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4297$as_echo "$ac_ct_RANLIB" >&6; }
4298else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300$as_echo "no" >&6; }
4301fi
4302
4303 if test "x$ac_ct_RANLIB" = x; then
4304 RANLIB=""
4305 else
4306 case $cross_compiling:$ac_tool_warned in
4307yes:)
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4310ac_tool_warned=yes ;;
4311esac
4312 RANLIB=$ac_ct_RANLIB
4313 fi
4314else
4315 RANLIB="$ac_cv_prog_RANLIB"
4316fi
4317
4318
4319 #--------------------------------------------------------------------
4320 # Determines the correct binary file extension (.o, .obj, .exe etc.)
4321 #--------------------------------------------------------------------
4322
4323
4324
4325
4326
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4328$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4329if ${ac_cv_path_GREP+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331else
4332 if test -z "$GREP"; then
4333 ac_path_GREP_found=false
4334 # Loop through the user's path and test for each of PROGNAME-LIST
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4337do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_prog in grep ggrep; do
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4343 as_fn_executable_p "$ac_path_GREP" || continue
4344# Check for GNU ac_path_GREP and select it if it is found.
4345 # Check for GNU $ac_path_GREP
4346case `"$ac_path_GREP" --version 2>&1` in
4347*GNU*)
4348 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4349*)
4350 ac_count=0
4351 $as_echo_n 0123456789 >"conftest.in"
4352 while :
4353 do
4354 cat "conftest.in" "conftest.in" >"conftest.tmp"
4355 mv "conftest.tmp" "conftest.in"
4356 cp "conftest.in" "conftest.nl"
4357 $as_echo 'GREP' >> "conftest.nl"
4358 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4360 as_fn_arith $ac_count + 1 && ac_count=$as_val
4361 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4362 # Best one so far, save it but keep looking for a better one
4363 ac_cv_path_GREP="$ac_path_GREP"
4364 ac_path_GREP_max=$ac_count
4365 fi
4366 # 10*(2^10) chars as input seems more than enough
4367 test $ac_count -gt 10 && break
4368 done
4369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4370esac
4371
4372 $ac_path_GREP_found && break 3
4373 done
4374 done
4375 done
4376IFS=$as_save_IFS
4377 if test -z "$ac_cv_path_GREP"; then
4378 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4379 fi
4380else
4381 ac_cv_path_GREP=$GREP
4382fi
4383
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4386$as_echo "$ac_cv_path_GREP" >&6; }
4387 GREP="$ac_cv_path_GREP"
4388
4389
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4391$as_echo_n "checking for egrep... " >&6; }
4392if ${ac_cv_path_EGREP+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394else
4395 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4396 then ac_cv_path_EGREP="$GREP -E"
4397 else
4398 if test -z "$EGREP"; then
4399 ac_path_EGREP_found=false
4400 # Loop through the user's path and test for each of PROGNAME-LIST
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4403do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_prog in egrep; do
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4409 as_fn_executable_p "$ac_path_EGREP" || continue
4410# Check for GNU ac_path_EGREP and select it if it is found.
4411 # Check for GNU $ac_path_EGREP
4412case `"$ac_path_EGREP" --version 2>&1` in
4413*GNU*)
4414 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4415*)
4416 ac_count=0
4417 $as_echo_n 0123456789 >"conftest.in"
4418 while :
4419 do
4420 cat "conftest.in" "conftest.in" >"conftest.tmp"
4421 mv "conftest.tmp" "conftest.in"
4422 cp "conftest.in" "conftest.nl"
4423 $as_echo 'EGREP' >> "conftest.nl"
4424 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4426 as_fn_arith $ac_count + 1 && ac_count=$as_val
4427 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4428 # Best one so far, save it but keep looking for a better one
4429 ac_cv_path_EGREP="$ac_path_EGREP"
4430 ac_path_EGREP_max=$ac_count
4431 fi
4432 # 10*(2^10) chars as input seems more than enough
4433 test $ac_count -gt 10 && break
4434 done
4435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4436esac
4437
4438 $ac_path_EGREP_found && break 3
4439 done
4440 done
4441 done
4442IFS=$as_save_IFS
4443 if test -z "$ac_cv_path_EGREP"; then
4444 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4445 fi
4446else
4447 ac_cv_path_EGREP=$EGREP
4448fi
4449
4450 fi
4451fi
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4453$as_echo "$ac_cv_path_EGREP" >&6; }
4454 EGREP="$ac_cv_path_EGREP"
4455
4456
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4458$as_echo_n "checking for ANSI C header files... " >&6; }
4459if ${ac_cv_header_stdc+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461else
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h. */
4464#include <stdlib.h>
4465#include <stdarg.h>
4466#include <string.h>
4467#include <float.h>
4468
4469int
4470main ()
4471{
4472
4473 ;
4474 return 0;
4475}
4476_ACEOF
4477if ac_fn_c_try_compile "$LINENO"; then :
4478 ac_cv_header_stdc=yes
4479else
4480 ac_cv_header_stdc=no
4481fi
4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483
4484if test $ac_cv_header_stdc = yes; then
4485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h. */
4488#include <string.h>
4489
4490_ACEOF
4491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 $EGREP "memchr" >/dev/null 2>&1; then :
4493
4494else
4495 ac_cv_header_stdc=no
4496fi
4497rm -f conftest*
4498
4499fi
4500
4501if test $ac_cv_header_stdc = yes; then
4502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h. */
4505#include <stdlib.h>
4506
4507_ACEOF
4508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509 $EGREP "free" >/dev/null 2>&1; then :
4510
4511else
4512 ac_cv_header_stdc=no
4513fi
4514rm -f conftest*
4515
4516fi
4517
4518if test $ac_cv_header_stdc = yes; then
4519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4520 if test "$cross_compiling" = yes; then :
4521 :
4522else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524/* end confdefs.h. */
4525#include <ctype.h>
4526#include <stdlib.h>
4527#if ((' ' & 0x0FF) == 0x020)
4528# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530#else
4531# define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4536#endif
4537
4538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4539int
4540main ()
4541{
4542 int i;
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4546 return 2;
4547 return 0;
4548}
4549_ACEOF
4550if ac_fn_c_try_run "$LINENO"; then :
4551
4552else
4553 ac_cv_header_stdc=no
4554fi
4555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4556 conftest.$ac_objext conftest.beam conftest.$ac_ext
4557fi
4558
4559fi
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4562$as_echo "$ac_cv_header_stdc" >&6; }
4563if test $ac_cv_header_stdc = yes; then
4564
4565$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4566
4567fi
4568
4569# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4570for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4571 inttypes.h stdint.h unistd.h
4572do :
4573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4574ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4575"
4576if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4577 cat >>confdefs.h <<_ACEOF
4578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579_ACEOF
4580
4581fi
4582
4583done
4584
4585
4586
4587 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
4588
4589
4590 #------------------------------------------------------------------------
4591 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
4592 # It makes compiling go faster. (This is only a performance feature.)
4593 #------------------------------------------------------------------------
4594
4595 if test -z "$no_pipe" -a -n "$GCC"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
4597$as_echo_n "checking if the compiler understands -pipe... " >&6; }
4598if ${tcl_cv_cc_pipe+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600else
4601
4602 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h. */
4605
4606int
4607main ()
4608{
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614if ac_fn_c_try_compile "$LINENO"; then :
4615 tcl_cv_cc_pipe=yes
4616else
4617 tcl_cv_cc_pipe=no
4618fi
4619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 CFLAGS=$hold_cflags
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
4623$as_echo "$tcl_cv_cc_pipe" >&6; }
4624 if test $tcl_cv_cc_pipe = yes; then
4625 CFLAGS="$CFLAGS -pipe"
4626 fi
4627 fi
4628
4629 #--------------------------------------------------------------------
4630 # Common compiler flag setup
4631 #--------------------------------------------------------------------
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4634$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4635if ${ac_cv_c_bigendian+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637else
4638 ac_cv_c_bigendian=unknown
4639 # See if we're dealing with a universal compiler.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641/* end confdefs.h. */
4642#ifndef __APPLE_CC__
4643 not a universal capable compiler
4644 #endif
4645 typedef int dummy;
4646
4647_ACEOF
4648if ac_fn_c_try_compile "$LINENO"; then :
4649
4650 # Check for potential -arch flags. It is not universal unless
4651 # there are at least two -arch flags with different values.
4652 ac_arch=
4653 ac_prev=
4654 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4655 if test -n "$ac_prev"; then
4656 case $ac_word in
4657 i?86 | x86_64 | ppc | ppc64)
4658 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4659 ac_arch=$ac_word
4660 else
4661 ac_cv_c_bigendian=universal
4662 break
4663 fi
4664 ;;
4665 esac
4666 ac_prev=
4667 elif test "x$ac_word" = "x-arch"; then
4668 ac_prev=arch
4669 fi
4670 done
4671fi
4672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 if test $ac_cv_c_bigendian = unknown; then
4674 # See if sys/param.h defines the BYTE_ORDER macro.
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h. */
4677#include <sys/types.h>
4678 #include <sys/param.h>
4679
4680int
4681main ()
4682{
4683#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4684 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4685 && LITTLE_ENDIAN)
4686 bogus endian macros
4687 #endif
4688
4689 ;
4690 return 0;
4691}
4692_ACEOF
4693if ac_fn_c_try_compile "$LINENO"; then :
4694 # It does; now see whether it defined to BIG_ENDIAN or not.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h. */
4697#include <sys/types.h>
4698 #include <sys/param.h>
4699
4700int
4701main ()
4702{
4703#if BYTE_ORDER != BIG_ENDIAN
4704 not big endian
4705 #endif
4706
4707 ;
4708 return 0;
4709}
4710_ACEOF
4711if ac_fn_c_try_compile "$LINENO"; then :
4712 ac_cv_c_bigendian=yes
4713else
4714 ac_cv_c_bigendian=no
4715fi
4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717fi
4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 fi
4720 if test $ac_cv_c_bigendian = unknown; then
4721 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h. */
4724#include <limits.h>
4725
4726int
4727main ()
4728{
4729#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4730 bogus endian macros
4731 #endif
4732
4733 ;
4734 return 0;
4735}
4736_ACEOF
4737if ac_fn_c_try_compile "$LINENO"; then :
4738 # It does; now see whether it defined to _BIG_ENDIAN or not.
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h. */
4741#include <limits.h>
4742
4743int
4744main ()
4745{
4746#ifndef _BIG_ENDIAN
4747 not big endian
4748 #endif
4749
4750 ;
4751 return 0;
4752}
4753_ACEOF
4754if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_c_bigendian=yes
4756else
4757 ac_cv_c_bigendian=no
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 if test $ac_cv_c_bigendian = unknown; then
4764 # Compile a test program.
4765 if test "$cross_compiling" = yes; then :
4766 # Try to guess by grepping values from an object file.
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768/* end confdefs.h. */
4769short int ascii_mm[] =
4770 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4771 short int ascii_ii[] =
4772 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4773 int use_ascii (int i) {
4774 return ascii_mm[i] + ascii_ii[i];
4775 }
4776 short int ebcdic_ii[] =
4777 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4778 short int ebcdic_mm[] =
4779 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4780 int use_ebcdic (int i) {
4781 return ebcdic_mm[i] + ebcdic_ii[i];
4782 }
4783 extern int foo;
4784
4785int
4786main ()
4787{
4788return use_ascii (foo) == use_ebcdic (foo);
4789 ;
4790 return 0;
4791}
4792_ACEOF
4793if ac_fn_c_try_compile "$LINENO"; then :
4794 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4795 ac_cv_c_bigendian=yes
4796 fi
4797 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4798 if test "$ac_cv_c_bigendian" = unknown; then
4799 ac_cv_c_bigendian=no
4800 else
4801 # finding both strings is unlikely to happen, but who knows?
4802 ac_cv_c_bigendian=unknown
4803 fi
4804 fi
4805fi
4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807else
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h. */
4810$ac_includes_default
4811int
4812main ()
4813{
4814
4815 /* Are we little or big endian? From Harbison&Steele. */
4816 union
4817 {
4818 long int l;
4819 char c[sizeof (long int)];
4820 } u;
4821 u.l = 1;
4822 return u.c[sizeof (long int) - 1] == 1;
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828if ac_fn_c_try_run "$LINENO"; then :
4829 ac_cv_c_bigendian=no
4830else
4831 ac_cv_c_bigendian=yes
4832fi
4833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4834 conftest.$ac_objext conftest.beam conftest.$ac_ext
4835fi
4836
4837 fi
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4840$as_echo "$ac_cv_c_bigendian" >&6; }
4841 case $ac_cv_c_bigendian in #(
4842 yes)
4843 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4844;; #(
4845 no)
4846 ;; #(
4847 universal)
4848
4849$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4850
4851 ;; #(
4852 *)
4853 as_fn_error $? "unknown endianness
4854 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4855 esac
4856
4857 if test "${TEA_PLATFORM}" = "unix" ; then
4858
4859 #--------------------------------------------------------------------
4860 # On a few very rare systems, all of the libm.a stuff is
4861 # already in libc.a. Set compiler flags accordingly.
4862 # Also, Linux requires the "ieee" library for math to work
4863 # right (and it must appear before "-lm").
4864 #--------------------------------------------------------------------
4865
4866 ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
4867if test "x$ac_cv_func_sin" = xyes; then :
4868 MATH_LIBS=""
4869else
4870 MATH_LIBS="-lm"
4871fi
4872
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5
4874$as_echo_n "checking for main in -lieee... " >&6; }
4875if ${ac_cv_lib_ieee_main+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877else
4878 ac_check_lib_save_LIBS=$LIBS
4879LIBS="-lieee $LIBS"
4880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h. */
4882
4883
4884int
4885main ()
4886{
4887return main ();
4888 ;
4889 return 0;
4890}
4891_ACEOF
4892if ac_fn_c_try_link "$LINENO"; then :
4893 ac_cv_lib_ieee_main=yes
4894else
4895 ac_cv_lib_ieee_main=no
4896fi
4897rm -f core conftest.err conftest.$ac_objext \
4898 conftest$ac_exeext conftest.$ac_ext
4899LIBS=$ac_check_lib_save_LIBS
4900fi
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5
4902$as_echo "$ac_cv_lib_ieee_main" >&6; }
4903if test "x$ac_cv_lib_ieee_main" = xyes; then :
4904 MATH_LIBS="-lieee $MATH_LIBS"
4905fi
4906
4907
4908 #--------------------------------------------------------------------
4909 # Interactive UNIX requires -linet instead of -lsocket, plus it
4910 # needs net/errno.h to define the socket-related error codes.
4911 #--------------------------------------------------------------------
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
4914$as_echo_n "checking for main in -linet... " >&6; }
4915if ${ac_cv_lib_inet_main+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917else
4918 ac_check_lib_save_LIBS=$LIBS
4919LIBS="-linet $LIBS"
4920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h. */
4922
4923
4924int
4925main ()
4926{
4927return main ();
4928 ;
4929 return 0;
4930}
4931_ACEOF
4932if ac_fn_c_try_link "$LINENO"; then :
4933 ac_cv_lib_inet_main=yes
4934else
4935 ac_cv_lib_inet_main=no
4936fi
4937rm -f core conftest.err conftest.$ac_objext \
4938 conftest$ac_exeext conftest.$ac_ext
4939LIBS=$ac_check_lib_save_LIBS
4940fi
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
4942$as_echo "$ac_cv_lib_inet_main" >&6; }
4943if test "x$ac_cv_lib_inet_main" = xyes; then :
4944 LIBS="$LIBS -linet"
4945fi
4946
4947 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
4948if test "x$ac_cv_header_net_errno_h" = xyes; then :
4949
4950
4951$as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
4952
4953fi
4954
4955
4956
4957 #--------------------------------------------------------------------
4958 # Check for the existence of the -lsocket and -lnsl libraries.
4959 # The order here is important, so that they end up in the right
4960 # order in the command line generated by make. Here are some
4961 # special considerations:
4962 # 1. Use "connect" and "accept" to check for -lsocket, and
4963 # "gethostbyname" to check for -lnsl.
4964 # 2. Use each function name only once: can't redo a check because
4965 # autoconf caches the results of the last check and won't redo it.
4966 # 3. Use -lnsl and -lsocket only if they supply procedures that
4967 # aren't already present in the normal libraries. This is because
4968 # IRIX 5.2 has libraries, but they aren't needed and they're
4969 # bogus: they goof up name resolution if used.
4970 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4971 # To get around this problem, check for both libraries together
4972 # if -lsocket doesn't work by itself.
4973 #--------------------------------------------------------------------
4974
4975 tcl_checkBoth=0
4976 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4977if test "x$ac_cv_func_connect" = xyes; then :
4978 tcl_checkSocket=0
4979else
4980 tcl_checkSocket=1
4981fi
4982
4983 if test "$tcl_checkSocket" = 1; then
4984 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
4985if test "x$ac_cv_func_setsockopt" = xyes; then :
4986
4987else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
4989$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
4990if ${ac_cv_lib_socket_setsockopt+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992else
4993 ac_check_lib_save_LIBS=$LIBS
4994LIBS="-lsocket $LIBS"
4995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996/* end confdefs.h. */
4997
4998/* Override any GCC internal prototype to avoid an error.
4999 Use char because int might match the return type of a GCC
5000 builtin and then its argument prototype would still apply. */
5001#ifdef __cplusplus
5002extern "C"
5003#endif
5004char setsockopt ();
5005int
5006main ()
5007{
5008return setsockopt ();
5009 ;
5010 return 0;
5011}
5012_ACEOF
5013if ac_fn_c_try_link "$LINENO"; then :
5014 ac_cv_lib_socket_setsockopt=yes
5015else
5016 ac_cv_lib_socket_setsockopt=no
5017fi
5018rm -f core conftest.err conftest.$ac_objext \
5019 conftest$ac_exeext conftest.$ac_ext
5020LIBS=$ac_check_lib_save_LIBS
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
5023$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
5024if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
5025 LIBS="$LIBS -lsocket"
5026else
5027 tcl_checkBoth=1
5028fi
5029
5030fi
5031
5032 fi
5033 if test "$tcl_checkBoth" = 1; then
5034 tk_oldLibs=$LIBS
5035 LIBS="$LIBS -lsocket -lnsl"
5036 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
5037if test "x$ac_cv_func_accept" = xyes; then :
5038 tcl_checkNsl=0
5039else
5040 LIBS=$tk_oldLibs
5041fi
5042
5043 fi
5044 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5045if test "x$ac_cv_func_gethostbyname" = xyes; then :
5046
5047else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5049$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5050if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052else
5053 ac_check_lib_save_LIBS=$LIBS
5054LIBS="-lnsl $LIBS"
5055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h. */
5057
5058/* Override any GCC internal prototype to avoid an error.
5059 Use char because int might match the return type of a GCC
5060 builtin and then its argument prototype would still apply. */
5061#ifdef __cplusplus
5062extern "C"
5063#endif
5064char gethostbyname ();
5065int
5066main ()
5067{
5068return gethostbyname ();
5069 ;
5070 return 0;
5071}
5072_ACEOF
5073if ac_fn_c_try_link "$LINENO"; then :
5074 ac_cv_lib_nsl_gethostbyname=yes
5075else
5076 ac_cv_lib_nsl_gethostbyname=no
5077fi
5078rm -f core conftest.err conftest.$ac_objext \
5079 conftest$ac_exeext conftest.$ac_ext
5080LIBS=$ac_check_lib_save_LIBS
5081fi
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5083$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5084if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5085 LIBS="$LIBS -lnsl"
5086fi
5087
5088fi
5089
5090
5091 # TEA specific: Don't perform the eval of the libraries here because
5092 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
5093
5094 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
5095
5096
5097
5098
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5
5100$as_echo_n "checking dirent.h... " >&6; }
5101if ${tcl_cv_dirent_h+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103else
5104
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h. */
5107#include <sys/types.h>
5108#include <dirent.h>
5109int
5110main ()
5111{
5112
5113#ifndef _POSIX_SOURCE
5114# ifdef __Lynx__
5115 /*
5116 * Generate compilation error to make the test fail: Lynx headers
5117 * are only valid if really in the POSIX environment.
5118 */
5119
5120 missing_procedure();
5121# endif
5122#endif
5123DIR *d;
5124struct dirent *entryPtr;
5125char *p;
5126d = opendir("foobar");
5127entryPtr = readdir(d);
5128p = entryPtr->d_name;
5129closedir(d);
5130
5131 ;
5132 return 0;
5133}
5134_ACEOF
5135if ac_fn_c_try_link "$LINENO"; then :
5136 tcl_cv_dirent_h=yes
5137else
5138 tcl_cv_dirent_h=no
5139fi
5140rm -f core conftest.err conftest.$ac_objext \
5141 conftest$ac_exeext conftest.$ac_ext
5142fi
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5
5144$as_echo "$tcl_cv_dirent_h" >&6; }
5145
5146 if test $tcl_cv_dirent_h = no; then
5147
5148$as_echo "#define NO_DIRENT_H 1" >>confdefs.h
5149
5150 fi
5151
5152 # TEA specific:
5153 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
5154if test "x$ac_cv_header_errno_h" = xyes; then :
5155
5156else
5157
5158$as_echo "#define NO_ERRNO_H 1" >>confdefs.h
5159
5160fi
5161
5162
5163 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
5164if test "x$ac_cv_header_float_h" = xyes; then :
5165
5166else
5167
5168$as_echo "#define NO_FLOAT_H 1" >>confdefs.h
5169
5170fi
5171
5172
5173 ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
5174if test "x$ac_cv_header_values_h" = xyes; then :
5175
5176else
5177
5178$as_echo "#define NO_VALUES_H 1" >>confdefs.h
5179
5180fi
5181
5182
5183 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5184if test "x$ac_cv_header_limits_h" = xyes; then :
5185
5186$as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
5187
5188else
5189
5190$as_echo "#define NO_LIMITS_H 1" >>confdefs.h
5191
5192fi
5193
5194
5195 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5196if test "x$ac_cv_header_stdlib_h" = xyes; then :
5197 tcl_ok=1
5198else
5199 tcl_ok=0
5200fi
5201
5202
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h. */
5205#include <stdlib.h>
5206
5207_ACEOF
5208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "strtol" >/dev/null 2>&1; then :
5210
5211else
5212 tcl_ok=0
5213fi
5214rm -f conftest*
5215
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217/* end confdefs.h. */
5218#include <stdlib.h>
5219
5220_ACEOF
5221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5222 $EGREP "strtoul" >/dev/null 2>&1; then :
5223
5224else
5225 tcl_ok=0
5226fi
5227rm -f conftest*
5228
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230/* end confdefs.h. */
5231#include <stdlib.h>
5232
5233_ACEOF
5234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5235 $EGREP "strtod" >/dev/null 2>&1; then :
5236
5237else
5238 tcl_ok=0
5239fi
5240rm -f conftest*
5241
5242 if test $tcl_ok = 0; then
5243
5244$as_echo "#define NO_STDLIB_H 1" >>confdefs.h
5245
5246 fi
5247 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5248if test "x$ac_cv_header_string_h" = xyes; then :
5249 tcl_ok=1
5250else
5251 tcl_ok=0
5252fi
5253
5254
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h. */
5257#include <string.h>
5258
5259_ACEOF
5260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "strstr" >/dev/null 2>&1; then :
5262
5263else
5264 tcl_ok=0
5265fi
5266rm -f conftest*
5267
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h. */
5270#include <string.h>
5271
5272_ACEOF
5273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274 $EGREP "strerror" >/dev/null 2>&1; then :
5275
5276else
5277 tcl_ok=0
5278fi
5279rm -f conftest*
5280
5281
5282 # See also memmove check below for a place where NO_STRING_H can be
5283 # set and why.
5284
5285 if test $tcl_ok = 0; then
5286
5287$as_echo "#define NO_STRING_H 1" >>confdefs.h
5288
5289 fi
5290
5291 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
5292if test "x$ac_cv_header_sys_wait_h" = xyes; then :
5293
5294else
5295
5296$as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h
5297
5298fi
5299
5300
5301 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5302if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5303
5304else
5305
5306$as_echo "#define NO_DLFCN_H 1" >>confdefs.h
5307
5308fi
5309
5310
5311
5312 # OS/390 lacks sys/param.h (and doesn't need it, by chance).
5313 for ac_header in sys/param.h
5314do :
5315 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5316if test "x$ac_cv_header_sys_param_h" = xyes; then :
5317 cat >>confdefs.h <<_ACEOF
5318#define HAVE_SYS_PARAM_H 1
5319_ACEOF
5320
5321fi
5322
5323done
5324
5325
5326 # Let the user call this, because if it triggers, they will
5327 # need a compat/strtod.c that is correct. Users can also
5328 # use Tcl_GetDouble(FromObj) instead.
5329 #TEA_BUGGY_STRTOD
5330 fi
5331
5332
5333#-----------------------------------------------------------------------
5334# __CHANGE__
5335# Specify the C source files to compile in TEA_ADD_SOURCES,
5336# public headers that need to be installed in TEA_ADD_HEADERS,
5337# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
5338# and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
5339# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
5340# and PKG_TCL_SOURCES.
5341#-----------------------------------------------------------------------
5342
5343
5344 vars="tclsqlite3.c"
5345 for i in $vars; do
5346 case $i in
5347 \$*)
5348 # allow $-var names
5349 PKG_SOURCES="$PKG_SOURCES $i"
5350 PKG_OBJECTS="$PKG_OBJECTS $i"
5351 ;;
5352 *)
5353 # check for existence - allows for generic/win/unix VPATH
5354 # To add more dirs here (like 'src'), you have to update VPATH
5355 # in Makefile.in as well
5356 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5357 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5358 -a ! -f "${srcdir}/macosx/$i" \
5359 ; then
5360 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
5361 fi
5362 PKG_SOURCES="$PKG_SOURCES $i"
5363 # this assumes it is in a VPATH dir
5364 i=`basename $i`
5365 # handle user calling this before or after TEA_SETUP_COMPILER
5366 if test x"${OBJEXT}" != x ; then
5367 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5368 else
5369 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5370 fi
5371 PKG_OBJECTS="$PKG_OBJECTS $j"
5372 ;;
5373 esac
5374 done
5375
5376
5377
5378
5379 vars=""
5380 for i in $vars; do
5381 # check for existence, be strict because it is installed
5382 if test ! -f "${srcdir}/$i" ; then
5383 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
5384 fi
5385 PKG_HEADERS="$PKG_HEADERS $i"
5386 done
5387
5388
5389
5390 vars="-I\"`\${CYGPATH} \${srcdir}/generic`\""
5391 for i in $vars; do
5392 PKG_INCLUDES="$PKG_INCLUDES $i"
5393 done
5394
5395
5396
5397 vars=""
5398 for i in $vars; do
5399 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5400 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5401 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
5402 fi
5403 PKG_LIBS="$PKG_LIBS $i"
5404 done
5405
5406
5407
5408 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_FTS3=1"
5409
5410
5411
5412 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_3_SUFFIX_ONLY=1"
5413
5414
5415
5416 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_RTREE=1"
5417
5418
5419
5420 vars=""
5421 for i in $vars; do
5422 # check for existence - allows for generic/win/unix VPATH
5423 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5424 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5425 -a ! -f "${srcdir}/macosx/$i" \
5426 ; then
5427 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
5428 fi
5429 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
5430 # this assumes it is in a VPATH dir
5431 i=`basename $i`
5432 # handle user calling this before or after TEA_SETUP_COMPILER
5433 if test x"${OBJEXT}" != x ; then
5434 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5435 else
5436 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5437 fi
5438 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
5439 done
5440
5441
5442
5443
5444 vars=""
5445 for i in $vars; do
5446 # check for existence, be strict because it is installed
5447 if test ! -f "${srcdir}/$i" ; then
5448 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
5449 fi
5450 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
5451 done
5452
5453
5454
5455#--------------------------------------------------------------------
5456# The --with-system-sqlite causes the TCL bindings to SQLite to use
5457# the system shared library for SQLite rather than statically linking
5458# against its own private copy. This is dangerous and leads to
5459# undersirable dependences and is not recommended.
5460# Patchs from rmax.
5461#--------------------------------------------------------------------
5462
5463# Check whether --with-system-sqlite was given.
5464if test "${with_system_sqlite+set}" = set; then :
5465 withval=$with_system_sqlite;
5466else
5467 with_system_sqlite=no
5468fi
5469
5470if test x$with_system_sqlite != xno; then
5471 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
5472if test "x$ac_cv_header_sqlite3_h" = xyes; then :
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5
5474$as_echo_n "checking for sqlite3_initialize in -lsqlite3... " >&6; }
5475if ${ac_cv_lib_sqlite3_sqlite3_initialize+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477else
5478 ac_check_lib_save_LIBS=$LIBS
5479LIBS="-lsqlite3 $LIBS"
5480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h. */
5482
5483/* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5486#ifdef __cplusplus
5487extern "C"
5488#endif
5489char sqlite3_initialize ();
5490int
5491main ()
5492{
5493return sqlite3_initialize ();
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498if ac_fn_c_try_link "$LINENO"; then :
5499 ac_cv_lib_sqlite3_sqlite3_initialize=yes
5500else
5501 ac_cv_lib_sqlite3_sqlite3_initialize=no
5502fi
5503rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5505LIBS=$ac_check_lib_save_LIBS
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5
5508$as_echo "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; }
5509if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = xyes; then :
5510 $as_echo "#define USE_SYSTEM_SQLITE 1" >>confdefs.h
5511
5512 LIBS="$LIBS -lsqlite3"
5513fi
5514
5515fi
5516
5517
5518fi
5519
5520#--------------------------------------------------------------------
5521# __CHANGE__
5522# Choose which headers you need. Extension authors should try very
5523# hard to only rely on the Tcl public header files. Internal headers
5524# contain private data structures and are subject to change without
5525# notice.
5526# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
5527#--------------------------------------------------------------------
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
5531$as_echo_n "checking for Tcl public headers... " >&6; }
5532
5533
5534# Check whether --with-tclinclude was given.
5535if test "${with_tclinclude+set}" = set; then :
5536 withval=$with_tclinclude; with_tclinclude=${withval}
5537fi
5538
5539
5540 if ${ac_cv_c_tclh+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542else
5543
5544 # Use the value from --with-tclinclude, if it was given
5545
5546 if test x"${with_tclinclude}" != x ; then
5547 if test -f "${with_tclinclude}/tcl.h" ; then
5548 ac_cv_c_tclh=${with_tclinclude}
5549 else
5550 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
5551 fi
5552 else
5553 list=""
5554 if test "`uname -s`" = "Darwin"; then
5555 # If Tcl was built as a framework, attempt to use
5556 # the framework's Headers directory
5557 case ${TCL_DEFS} in
5558 *TCL_FRAMEWORK*)
5559 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
5560 ;;
5561 esac
5562 fi
5563
5564 # Look in the source dir only if Tcl is not installed,
5565 # and in that situation, look there before installed locations.
5566 if test -f "${TCL_BIN_DIR}/Makefile" ; then
5567 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
5568 fi
5569
5570 # Check order: pkg --prefix location, Tcl's --prefix location,
5571 # relative to directory of tclConfig.sh.
5572
5573 eval "temp_includedir=${includedir}"
5574 list="$list \
5575 `ls -d ${temp_includedir} 2>/dev/null` \
5576 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
5577 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
5578 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
5579 list="$list /usr/local/include /usr/include"
5580 if test x"${TCL_INCLUDE_SPEC}" != x ; then
5581 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
5582 list="$list `ls -d ${d} 2>/dev/null`"
5583 fi
5584 fi
5585 for i in $list ; do
5586 if test -f "$i/tcl.h" ; then
5587 ac_cv_c_tclh=$i
5588 break
5589 fi
5590 done
5591 fi
5592
5593fi
5594
5595
5596 # Print a message based on how we determined the include path
5597
5598 if test x"${ac_cv_c_tclh}" = x ; then
5599 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
5602$as_echo "${ac_cv_c_tclh}" >&6; }
5603 fi
5604
5605 # Convert to a native path and substitute into the output files.
5606
5607 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
5608
5609 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
5610
5611
5612
5613#TEA_PRIVATE_TCL_HEADERS
5614
5615#TEA_PUBLIC_TK_HEADERS
5616#TEA_PRIVATE_TK_HEADERS
5617#TEA_PATH_X
5618
5619#--------------------------------------------------------------------
5620# Check whether --enable-threads or --disable-threads was given.
5621# This auto-enables if Tcl was compiled threaded.
5622#--------------------------------------------------------------------
5623
5624
5625 # Check whether --enable-threads was given.
5626if test "${enable_threads+set}" = set; then :
5627 enableval=$enable_threads; tcl_ok=$enableval
5628else
5629 tcl_ok=yes
5630fi
5631
5632
5633 if test "${enable_threads+set}" = set; then
5634 enableval="$enable_threads"
5635 tcl_ok=$enableval
5636 else
5637 tcl_ok=yes
5638 fi
5639
5640 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
5641 TCL_THREADS=1
5642
5643 if test "${TEA_PLATFORM}" != "windows" ; then
5644 # We are always OK on Windows, so check what this platform wants:
5645
5646 # USE_THREAD_ALLOC tells us to try the special thread-based
5647 # allocator that significantly reduces lock contention
5648
5649$as_echo "#define USE_THREAD_ALLOC 1" >>confdefs.h
5650
5651
5652$as_echo "#define _REENTRANT 1" >>confdefs.h
5653
5654 if test "`uname -s`" = "SunOS" ; then
5655
5656$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5657
5658 fi
5659
5660$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
5661
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
5663$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
5664if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666else
5667 ac_check_lib_save_LIBS=$LIBS
5668LIBS="-lpthread $LIBS"
5669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h. */
5671
5672/* Override any GCC internal prototype to avoid an error.
5673 Use char because int might match the return type of a GCC
5674 builtin and then its argument prototype would still apply. */
5675#ifdef __cplusplus
5676extern "C"
5677#endif
5678char pthread_mutex_init ();
5679int
5680main ()
5681{
5682return pthread_mutex_init ();
5683 ;
5684 return 0;
5685}
5686_ACEOF
5687if ac_fn_c_try_link "$LINENO"; then :
5688 ac_cv_lib_pthread_pthread_mutex_init=yes
5689else
5690 ac_cv_lib_pthread_pthread_mutex_init=no
5691fi
5692rm -f core conftest.err conftest.$ac_objext \
5693 conftest$ac_exeext conftest.$ac_ext
5694LIBS=$ac_check_lib_save_LIBS
5695fi
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
5697$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
5698if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
5699 tcl_ok=yes
5700else
5701 tcl_ok=no
5702fi
5703
5704 if test "$tcl_ok" = "no"; then
5705 # Check a little harder for __pthread_mutex_init in the same
5706 # library, as some systems hide it there until pthread.h is
5707 # defined. We could alternatively do an AC_TRY_COMPILE with
5708 # pthread.h, but that will work with libpthread really doesn't
5709 # exist, like AIX 4.2. [Bug: 4359]
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
5711$as_echo_n "checking for __pthread_mutex_init in -lpthread... " >&6; }
5712if ${ac_cv_lib_pthread___pthread_mutex_init+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714else
5715 ac_check_lib_save_LIBS=$LIBS
5716LIBS="-lpthread $LIBS"
5717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h. */
5719
5720/* Override any GCC internal prototype to avoid an error.
5721 Use char because int might match the return type of a GCC
5722 builtin and then its argument prototype would still apply. */
5723#ifdef __cplusplus
5724extern "C"
5725#endif
5726char __pthread_mutex_init ();
5727int
5728main ()
5729{
5730return __pthread_mutex_init ();
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735if ac_fn_c_try_link "$LINENO"; then :
5736 ac_cv_lib_pthread___pthread_mutex_init=yes
5737else
5738 ac_cv_lib_pthread___pthread_mutex_init=no
5739fi
5740rm -f core conftest.err conftest.$ac_objext \
5741 conftest$ac_exeext conftest.$ac_ext
5742LIBS=$ac_check_lib_save_LIBS
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
5745$as_echo "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
5746if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes; then :
5747 tcl_ok=yes
5748else
5749 tcl_ok=no
5750fi
5751
5752 fi
5753
5754 if test "$tcl_ok" = "yes"; then
5755 # The space is needed
5756 THREADS_LIBS=" -lpthread"
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
5759$as_echo_n "checking for pthread_mutex_init in -lpthreads... " >&6; }
5760if ${ac_cv_lib_pthreads_pthread_mutex_init+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762else
5763 ac_check_lib_save_LIBS=$LIBS
5764LIBS="-lpthreads $LIBS"
5765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h. */
5767
5768/* Override any GCC internal prototype to avoid an error.
5769 Use char because int might match the return type of a GCC
5770 builtin and then its argument prototype would still apply. */
5771#ifdef __cplusplus
5772extern "C"
5773#endif
5774char pthread_mutex_init ();
5775int
5776main ()
5777{
5778return pthread_mutex_init ();
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_link "$LINENO"; then :
5784 ac_cv_lib_pthreads_pthread_mutex_init=yes
5785else
5786 ac_cv_lib_pthreads_pthread_mutex_init=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
5790LIBS=$ac_check_lib_save_LIBS
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
5793$as_echo "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
5794if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes; then :
5795 tcl_ok=yes
5796else
5797 tcl_ok=no
5798fi
5799
5800 if test "$tcl_ok" = "yes"; then
5801 # The space is needed
5802 THREADS_LIBS=" -lpthreads"
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
5805$as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
5806if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808else
5809 ac_check_lib_save_LIBS=$LIBS
5810LIBS="-lc $LIBS"
5811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h. */
5813
5814/* Override any GCC internal prototype to avoid an error.
5815 Use char because int might match the return type of a GCC
5816 builtin and then its argument prototype would still apply. */
5817#ifdef __cplusplus
5818extern "C"
5819#endif
5820char pthread_mutex_init ();
5821int
5822main ()
5823{
5824return pthread_mutex_init ();
5825 ;
5826 return 0;
5827}
5828_ACEOF
5829if ac_fn_c_try_link "$LINENO"; then :
5830 ac_cv_lib_c_pthread_mutex_init=yes
5831else
5832 ac_cv_lib_c_pthread_mutex_init=no
5833fi
5834rm -f core conftest.err conftest.$ac_objext \
5835 conftest$ac_exeext conftest.$ac_ext
5836LIBS=$ac_check_lib_save_LIBS
5837fi
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
5839$as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
5840if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
5841 tcl_ok=yes
5842else
5843 tcl_ok=no
5844fi
5845
5846 if test "$tcl_ok" = "no"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
5848$as_echo_n "checking for pthread_mutex_init in -lc_r... " >&6; }
5849if ${ac_cv_lib_c_r_pthread_mutex_init+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851else
5852 ac_check_lib_save_LIBS=$LIBS
5853LIBS="-lc_r $LIBS"
5854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855/* end confdefs.h. */
5856
5857/* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5860#ifdef __cplusplus
5861extern "C"
5862#endif
5863char pthread_mutex_init ();
5864int
5865main ()
5866{
5867return pthread_mutex_init ();
5868 ;
5869 return 0;
5870}
5871_ACEOF
5872if ac_fn_c_try_link "$LINENO"; then :
5873 ac_cv_lib_c_r_pthread_mutex_init=yes
5874else
5875 ac_cv_lib_c_r_pthread_mutex_init=no
5876fi
5877rm -f core conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
5879LIBS=$ac_check_lib_save_LIBS
5880fi
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
5882$as_echo "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
5883if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes; then :
5884 tcl_ok=yes
5885else
5886 tcl_ok=no
5887fi
5888
5889 if test "$tcl_ok" = "yes"; then
5890 # The space is needed
5891 THREADS_LIBS=" -pthread"
5892 else
5893 TCL_THREADS=0
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
5895$as_echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
5896 fi
5897 fi
5898 fi
5899 fi
5900 fi
5901 else
5902 TCL_THREADS=0
5903 fi
5904 # Do checking message here to not mess up interleaved configure output
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
5906$as_echo_n "checking for building with threads... " >&6; }
5907 if test "${TCL_THREADS}" = 1; then
5908
5909$as_echo "#define TCL_THREADS 1" >>confdefs.h
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
5912$as_echo "yes (default)" >&6; }
5913 else
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915$as_echo "no" >&6; }
5916 fi
5917 # TCL_THREADS sanity checking. See if our request for building with
5918 # threads is the same as the way Tcl was built. If not, warn the user.
5919 case ${TCL_DEFS} in
5920 *THREADS=1*)
5921 if test "${TCL_THREADS}" = "0"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5923 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
5924 that IS thread-enabled. It is recommended to use --enable-threads." >&5
5925$as_echo "$as_me: WARNING:
5926 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
5927 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
5928 fi
5929 ;;
5930 *)
5931 if test "${TCL_THREADS}" = "1"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5933 --enable-threads requested, but building against a Tcl that is NOT
5934 thread-enabled. This is an OK configuration that will also run in
5935 a thread-enabled core." >&5
5936$as_echo "$as_me: WARNING:
5937 --enable-threads requested, but building against a Tcl that is NOT
5938 thread-enabled. This is an OK configuration that will also run in
5939 a thread-enabled core." >&2;}
5940 fi
5941 ;;
5942 esac
5943
5944
5945if test "${TCL_THREADS}" = "1" ; then
5946
5947$as_echo "#define SQLITE_THREADSAFE 1" >>confdefs.h
5948
5949 # Not automatically added by Tcl because its assumed Tcl links to them,
5950 # but it may not if it isn't really a threaded build.
5951
5952 vars="$THREADS_LIBS"
5953 for i in $vars; do
5954 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5955 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5956 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
5957 fi
5958 PKG_LIBS="$PKG_LIBS $i"
5959 done
5960
5961
5962else
5963
5964$as_echo "#define SQLITE_THREADSAFE 0" >>confdefs.h
5965
5966fi
5967
5968#--------------------------------------------------------------------
5969# The statement below defines a collection of symbols related to
5970# building as a shared library instead of a static library.
5971#--------------------------------------------------------------------
5972
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
5975$as_echo_n "checking how to build libraries... " >&6; }
5976 # Check whether --enable-shared was given.
5977if test "${enable_shared+set}" = set; then :
5978 enableval=$enable_shared; tcl_ok=$enableval
5979else
5980 tcl_ok=yes
5981fi
5982
5983
5984 if test "${enable_shared+set}" = set; then
5985 enableval="$enable_shared"
5986 tcl_ok=$enableval
5987 else
5988 tcl_ok=yes
5989 fi
5990
5991 if test "$tcl_ok" = "yes" ; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
5993$as_echo "shared" >&6; }
5994 SHARED_BUILD=1
5995 else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
5997$as_echo "static" >&6; }
5998 SHARED_BUILD=0
5999
6000$as_echo "#define STATIC_BUILD 1" >>confdefs.h
6001
6002 fi
6003
6004
6005
6006#--------------------------------------------------------------------
6007# This macro figures out what flags to use with the compiler/linker
6008# when building shared/static debug/optimized objects. This information
6009# can be taken from the tclConfig.sh file, but this figures it all out.
6010#--------------------------------------------------------------------
6011
6012if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6014set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
6017if ${ac_cv_prog_RANLIB+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019else
6020 if test -n "$RANLIB"; then
6021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034done
6035 done
6036IFS=$as_save_IFS
6037
6038fi
6039fi
6040RANLIB=$ac_cv_prog_RANLIB
6041if test -n "$RANLIB"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6043$as_echo "$RANLIB" >&6; }
6044else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
6047fi
6048
6049
6050fi
6051if test -z "$ac_cv_prog_RANLIB"; then
6052 ac_ct_RANLIB=$RANLIB
6053 # Extract the first word of "ranlib", so it can be a program name with args.
6054set dummy ranlib; ac_word=$2
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056$as_echo_n "checking for $ac_word... " >&6; }
6057if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059else
6060 if test -n "$ac_ct_RANLIB"; then
6061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_ac_ct_RANLIB="ranlib"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074done
6075 done
6076IFS=$as_save_IFS
6077
6078fi
6079fi
6080ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6081if test -n "$ac_ct_RANLIB"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6083$as_echo "$ac_ct_RANLIB" >&6; }
6084else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086$as_echo "no" >&6; }
6087fi
6088
6089 if test "x$ac_ct_RANLIB" = x; then
6090 RANLIB=":"
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093yes:)
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096ac_tool_warned=yes ;;
6097esac
6098 RANLIB=$ac_ct_RANLIB
6099 fi
6100else
6101 RANLIB="$ac_cv_prog_RANLIB"
6102fi
6103
6104
6105
6106
6107 # Step 0.a: Enable 64 bit support?
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
6110$as_echo_n "checking if 64bit support is requested... " >&6; }
6111 # Check whether --enable-64bit was given.
6112if test "${enable_64bit+set}" = set; then :
6113 enableval=$enable_64bit; do64bit=$enableval
6114else
6115 do64bit=no
6116fi
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
6119$as_echo "$do64bit" >&6; }
6120
6121 # Step 0.b: Enable Solaris 64 bit VIS support?
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
6124$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
6125 # Check whether --enable-64bit-vis was given.
6126if test "${enable_64bit_vis+set}" = set; then :
6127 enableval=$enable_64bit_vis; do64bitVIS=$enableval
6128else
6129 do64bitVIS=no
6130fi
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
6133$as_echo "$do64bitVIS" >&6; }
6134 # Force 64bit on with VIS
6135 if test "$do64bitVIS" = "yes"; then :
6136 do64bit=yes
6137fi
6138
6139 # Step 0.c: Check if visibility support is available. Do this here so
6140 # that platform specific alternatives can be used below if this fails.
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
6143$as_echo_n "checking if compiler supports visibility \"hidden\"... " >&6; }
6144if ${tcl_cv_cc_visibility_hidden+:} false; then :
6145 $as_echo_n "(cached) " >&6
6146else
6147
6148 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h. */
6151
6152 extern __attribute__((__visibility__("hidden"))) void f(void);
6153 void f(void) {}
6154int
6155main ()
6156{
6157f();
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_link "$LINENO"; then :
6163 tcl_cv_cc_visibility_hidden=yes
6164else
6165 tcl_cv_cc_visibility_hidden=no
6166fi
6167rm -f core conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext
6169 CFLAGS=$hold_cflags
6170fi
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
6172$as_echo "$tcl_cv_cc_visibility_hidden" >&6; }
6173 if test $tcl_cv_cc_visibility_hidden = yes; then :
6174
6175
6176$as_echo "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
6177
6178
6179$as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
6180
6181
6182fi
6183
6184 # Step 0.d: Disable -rpath support?
6185
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
6187$as_echo_n "checking if rpath support is requested... " >&6; }
6188 # Check whether --enable-rpath was given.
6189if test "${enable_rpath+set}" = set; then :
6190 enableval=$enable_rpath; doRpath=$enableval
6191else
6192 doRpath=yes
6193fi
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
6196$as_echo "$doRpath" >&6; }
6197
6198 # TEA specific: Cross-compiling options for Windows/CE builds?
6199
6200 if test "${TEA_PLATFORM}" = windows; then :
6201
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows/CE build is requested" >&5
6203$as_echo_n "checking if Windows/CE build is requested... " >&6; }
6204 # Check whether --enable-wince was given.
6205if test "${enable_wince+set}" = set; then :
6206 enableval=$enable_wince; doWince=$enableval
6207else
6208 doWince=no
6209fi
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5
6212$as_echo "$doWince" >&6; }
6213
6214fi
6215
6216 # Set the variable "system" to hold the name and version number
6217 # for the system.
6218
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
6221$as_echo_n "checking system version... " >&6; }
6222if ${tcl_cv_sys_version+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224else
6225
6226 # TEA specific:
6227 if test "${TEA_PLATFORM}" = "windows" ; then
6228 tcl_cv_sys_version=windows
6229 else
6230 tcl_cv_sys_version=`uname -s`-`uname -r`
6231 if test "$?" -ne 0 ; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
6233$as_echo "$as_me: WARNING: can't find uname command" >&2;}
6234 tcl_cv_sys_version=unknown
6235 else
6236 if test "`uname -s`" = "AIX" ; then
6237 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
6238 fi
6239 fi
6240 fi
6241
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
6244$as_echo "$tcl_cv_sys_version" >&6; }
6245 system=$tcl_cv_sys_version
6246
6247
6248 # Require ranlib early so we can override it in special cases below.
6249
6250
6251
6252 # Set configuration options based on system name and version.
6253 # This is similar to Tcl's unix/tcl.m4 except that we've added a
6254 # "windows" case and removed some core-only vars.
6255
6256 do64bit_ok=no
6257 # default to '{$LIBS}' and set to "" on per-platform necessary basis
6258 SHLIB_LD_LIBS='${LIBS}'
6259 # When ld needs options to work in 64-bit mode, put them in
6260 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
6261 # is disabled by the user. [Bug 1016796]
6262 LDFLAGS_ARCH=""
6263 UNSHARED_LIB_SUFFIX=""
6264 # TEA specific: use PACKAGE_VERSION instead of VERSION
6265 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
6266 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
6267 TCL_LIB_VERSIONS_OK=ok
6268 CFLAGS_DEBUG=-g
6269 if test "$GCC" = yes; then :
6270
6271 CFLAGS_OPTIMIZE=-O2
6272 CFLAGS_WARNING="-Wall"
6273
6274else
6275
6276 CFLAGS_OPTIMIZE=-O
6277 CFLAGS_WARNING=""
6278
6279fi
6280 if test -n "$ac_tool_prefix"; then
6281 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6282set dummy ${ac_tool_prefix}ar; ac_word=$2
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if ${ac_cv_prog_AR+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287else
6288 if test -n "$AR"; then
6289 ac_cv_prog_AR="$AR" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_AR="${ac_tool_prefix}ar"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6301 fi
6302done
6303 done
6304IFS=$as_save_IFS
6305
6306fi
6307fi
6308AR=$ac_cv_prog_AR
6309if test -n "$AR"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6311$as_echo "$AR" >&6; }
6312else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
6315fi
6316
6317
6318fi
6319if test -z "$ac_cv_prog_AR"; then
6320 ac_ct_AR=$AR
6321 # Extract the first word of "ar", so it can be a program name with args.
6322set dummy ar; ac_word=$2
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324$as_echo_n "checking for $ac_word... " >&6; }
6325if ${ac_cv_prog_ac_ct_AR+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327else
6328 if test -n "$ac_ct_AR"; then
6329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6330else
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_ac_ct_AR="ar"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342done
6343 done
6344IFS=$as_save_IFS
6345
6346fi
6347fi
6348ac_ct_AR=$ac_cv_prog_ac_ct_AR
6349if test -n "$ac_ct_AR"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6351$as_echo "$ac_ct_AR" >&6; }
6352else
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354$as_echo "no" >&6; }
6355fi
6356
6357 if test "x$ac_ct_AR" = x; then
6358 AR=""
6359 else
6360 case $cross_compiling:$ac_tool_warned in
6361yes:)
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6364ac_tool_warned=yes ;;
6365esac
6366 AR=$ac_ct_AR
6367 fi
6368else
6369 AR="$ac_cv_prog_AR"
6370fi
6371
6372 STLIB_LD='${AR} cr'
6373 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
6374 if test "x$SHLIB_VERSION" = x; then :
6375 SHLIB_VERSION="1.0"
6376fi
6377 case $system in
6378 # TEA specific:
6379 windows)
6380 # This is a 2-stage check to make sure we have the 64-bit SDK
6381 # We have to know where the SDK is installed.
6382 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
6383 # MACHINE is IX86 for LINK, but this is used by the manifest,
6384 # which requires x86|amd64|ia64.
6385 MACHINE="X86"
6386 if test "$do64bit" != "no" ; then
6387 if test "x${MSSDK}x" = "xx" ; then
6388 MSSDK="C:/Progra~1/Microsoft Platform SDK"
6389 fi
6390 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'`
6391 PATH64=""
6392 case "$do64bit" in
6393 amd64|x64|yes)
6394 MACHINE="AMD64" ; # default to AMD64 64-bit build
6395 PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
6396 ;;
6397 ia64)
6398 MACHINE="IA64"
6399 PATH64="${MSSDK}/Bin/Win64"
6400 ;;
6401 esac
6402 if test "$GCC" != "yes" -a ! -d "${PATH64}" ; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
6404$as_echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ensure latest Platform SDK is installed" >&5
6406$as_echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
6407 do64bit="no"
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using 64-bit $MACHINE mode" >&5
6410$as_echo " Using 64-bit $MACHINE mode" >&6; }
6411 do64bit_ok="yes"
6412 fi
6413 fi
6414
6415 if test "$doWince" != "no" ; then
6416 if test "$do64bit" != "no" ; then
6417 as_fn_error $? "Windows/CE and 64-bit builds incompatible" "$LINENO" 5
6418 fi
6419 if test "$GCC" = "yes" ; then
6420 as_fn_error $? "Windows/CE and GCC builds incompatible" "$LINENO" 5
6421 fi
6422
6423 # First, look for one uninstalled.
6424 # the alternative search directory is invoked by --with-celib
6425
6426 if test x"${no_celib}" = x ; then
6427 # we reset no_celib in case something fails here
6428 no_celib=true
6429
6430# Check whether --with-celib was given.
6431if test "${with_celib+set}" = set; then :
6432 withval=$with_celib; with_celibconfig=${withval}
6433fi
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows/CE celib directory" >&5
6436$as_echo_n "checking for Windows/CE celib directory... " >&6; }
6437 if ${ac_cv_c_celibconfig+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439else
6440
6441 # First check to see if --with-celibconfig was specified.
6442 if test x"${with_celibconfig}" != x ; then
6443 if test -d "${with_celibconfig}/inc" ; then
6444 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
6445 else
6446 as_fn_error $? "${with_celibconfig} directory doesn't contain inc directory" "$LINENO" 5
6447 fi
6448 fi
6449
6450 # then check for a celib library
6451 if test x"${ac_cv_c_celibconfig}" = x ; then
6452 for i in \
6453 ../celib-palm-3.0 \
6454 ../celib \
6455 ../../celib-palm-3.0 \
6456 ../../celib \
6457 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
6458 ${srcdir}/../celib-palm-3.0 \
6459 ${srcdir}/../celib \
6460 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
6461 ; do
6462 if test -d "$i/inc" ; then
6463 ac_cv_c_celibconfig=`(cd $i; pwd)`
6464 break
6465 fi
6466 done
6467 fi
6468
6469fi
6470
6471 if test x"${ac_cv_c_celibconfig}" = x ; then
6472 as_fn_error $? "Cannot find celib support library directory" "$LINENO" 5
6473 else
6474 no_celib=
6475 CELIB_DIR=${ac_cv_c_celibconfig}
6476 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $CELIB_DIR" >&5
6478$as_echo "found $CELIB_DIR" >&6; }
6479 fi
6480 fi
6481
6482 # Set defaults for common evc4/PPC2003 setup
6483 # Currently Tcl requires 300+, possibly 420+ for sockets
6484 CEVERSION=420; # could be 211 300 301 400 420 ...
6485 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ...
6486 ARCH=ARM; # could be ARM MIPS X86EM ...
6487 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
6488 if test "$doWince" != "yes"; then
6489 # If !yes then the user specified something
6490 # Reset ARCH to allow user to skip specifying it
6491 ARCH=
6492 eval `echo $doWince | awk -F, '{ \
6493 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
6494 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
6495 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
6496 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
6497 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
6498 }'`
6499 if test "x${ARCH}" = "x" ; then
6500 ARCH=$TARGETCPU;
6501 fi
6502 fi
6503 OSVERSION=WCE$CEVERSION;
6504 if test "x${WCEROOT}" = "x" ; then
6505 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
6506 if test ! -d "${WCEROOT}" ; then
6507 WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
6508 fi
6509 fi
6510 if test "x${SDKROOT}" = "x" ; then
6511 SDKROOT="C:/Program Files/Windows CE Tools"
6512 if test ! -d "${SDKROOT}" ; then
6513 SDKROOT="C:/Windows CE Tools"
6514 fi
6515 fi
6516 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
6517 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
6518 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
6519 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
6520 as_fn_error $? "could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" "$LINENO" 5
6521 doWince="no"
6522 else
6523 # We could PATH_NOSPACE these, but that's not important,
6524 # as long as we quote them when used.
6525 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
6526 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
6527 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
6528 fi
6529 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
6530 fi
6531 fi
6532
6533 if test "$GCC" != "yes" ; then
6534 if test "${SHARED_BUILD}" = "0" ; then
6535 runtime=-MT
6536 else
6537 runtime=-MD
6538 fi
6539
6540 if test "$do64bit" != "no" ; then
6541 # All this magic is necessary for the Win64 SDK RC1 - hobbs
6542 CC="\"${PATH64}/cl.exe\""
6543 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
6544 RC="\"${MSSDK}/bin/rc.exe\""
6545 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
6546 LINKBIN="\"${PATH64}/link.exe\""
6547 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
6548 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6549 # Avoid 'unresolved external symbol __security_cookie'
6550 # errors, c.f. http://support.microsoft.com/?id=894573
6551
6552 vars="bufferoverflowU.lib"
6553 for i in $vars; do
6554 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6555 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6556 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
6557 fi
6558 PKG_LIBS="$PKG_LIBS $i"
6559 done
6560
6561
6562 elif test "$doWince" != "no" ; then
6563 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
6564 if test "${TARGETCPU}" = "X86"; then
6565 CC="\"${CEBINROOT}/cl.exe\""
6566 else
6567 CC="\"${CEBINROOT}/cl${ARCH}.exe\""
6568 fi
6569 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
6570 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
6571 arch=`echo ${ARCH} | awk '{print tolower($0)}'`
6572 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
6573 if test "${SHARED_BUILD}" = "1" ; then
6574 # Static CE builds require static celib as well
6575 defs="${defs} _DLL"
6576 fi
6577 for i in $defs ; do
6578
6579cat >>confdefs.h <<_ACEOF
6580#define $i 1
6581_ACEOF
6582
6583 done
6584
6585cat >>confdefs.h <<_ACEOF
6586#define _WIN32_WCE $CEVERSION
6587_ACEOF
6588
6589
6590cat >>confdefs.h <<_ACEOF
6591#define UNDER_CE $CEVERSION
6592_ACEOF
6593
6594 CFLAGS_DEBUG="-nologo -Zi -Od"
6595 CFLAGS_OPTIMIZE="-nologo -Ox"
6596 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
6597 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
6598 LINKBIN="\"${CEBINROOT}/link.exe\""
6599
6600 else
6601 RC="rc"
6602 lflags="-nologo"
6603 LINKBIN="link"
6604 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
6605 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6606 fi
6607 fi
6608
6609 if test "$GCC" = "yes"; then
6610 # mingw gcc mode
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6613set dummy ${ac_tool_prefix}windres; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if ${ac_cv_prog_RC+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618else
6619 if test -n "$RC"; then
6620 ac_cv_prog_RC="$RC" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_RC="${ac_tool_prefix}windres"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633done
6634 done
6635IFS=$as_save_IFS
6636
6637fi
6638fi
6639RC=$ac_cv_prog_RC
6640if test -n "$RC"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
6642$as_echo "$RC" >&6; }
6643else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648
6649fi
6650if test -z "$ac_cv_prog_RC"; then
6651 ac_ct_RC=$RC
6652 # Extract the first word of "windres", so it can be a program name with args.
6653set dummy windres; ac_word=$2
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
6656if ${ac_cv_prog_ac_ct_RC+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658else
6659 if test -n "$ac_ct_RC"; then
6660 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_ac_ct_RC="windres"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673done
6674 done
6675IFS=$as_save_IFS
6676
6677fi
6678fi
6679ac_ct_RC=$ac_cv_prog_ac_ct_RC
6680if test -n "$ac_ct_RC"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
6682$as_echo "$ac_ct_RC" >&6; }
6683else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685$as_echo "no" >&6; }
6686fi
6687
6688 if test "x$ac_ct_RC" = x; then
6689 RC=""
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692yes:)
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695ac_tool_warned=yes ;;
6696esac
6697 RC=$ac_ct_RC
6698 fi
6699else
6700 RC="$ac_cv_prog_RC"
6701fi
6702
6703 CFLAGS_DEBUG="-g"
6704 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
6705 SHLIB_LD='${CC} -shared'
6706 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
6707 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
6708 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
6709
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
6711$as_echo_n "checking for cross-compile version of gcc... " >&6; }
6712if ${ac_cv_cross+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714else
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716/* end confdefs.h. */
6717
6718 #ifdef _WIN32
6719 #error cross-compiler
6720 #endif
6721
6722int
6723main ()
6724{
6725
6726 ;
6727 return 0;
6728}
6729_ACEOF
6730if ac_fn_c_try_compile "$LINENO"; then :
6731 ac_cv_cross=yes
6732else
6733 ac_cv_cross=no
6734fi
6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
6739$as_echo "$ac_cv_cross" >&6; }
6740 if test "$ac_cv_cross" = "yes"; then
6741 case "$do64bit" in
6742 amd64|x64|yes)
6743 CC="x86_64-w64-mingw32-gcc"
6744 LD="x86_64-w64-mingw32-ld"
6745 AR="x86_64-w64-mingw32-ar"
6746 RANLIB="x86_64-w64-mingw32-ranlib"
6747 RC="x86_64-w64-mingw32-windres"
6748 ;;
6749 *)
6750 CC="i686-w64-mingw32-gcc"
6751 LD="i686-w64-mingw32-ld"
6752 AR="i686-w64-mingw32-ar"
6753 RANLIB="i686-w64-mingw32-ranlib"
6754 RC="i686-w64-mingw32-windres"
6755 ;;
6756 esac
6757 fi
6758
6759 else
6760 SHLIB_LD="${LINKBIN} -dll ${lflags}"
6761 # link -lib only works when -lib is the first arg
6762 STLIB_LD="${LINKBIN} -lib ${lflags}"
6763 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
6764 PATHTYPE=-w
6765 # For information on what debugtype is most useful, see:
6766 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
6767 # and also
6768 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
6769 # This essentially turns it all on.
6770 LDFLAGS_DEBUG="-debug -debugtype:cv"
6771 LDFLAGS_OPTIMIZE="-release"
6772 if test "$doWince" != "no" ; then
6773 LDFLAGS_CONSOLE="-link ${lflags}"
6774 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
6775 else
6776 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
6777 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
6778 fi
6779 fi
6780
6781 SHLIB_SUFFIX=".dll"
6782 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
6783
6784 TCL_LIB_VERSIONS_OK=nodots
6785 ;;
6786 AIX-*)
6787 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then :
6788
6789 # AIX requires the _r compiler when gcc isn't being used
6790 case "${CC}" in
6791 *_r|*_r\ *)
6792 # ok ...
6793 ;;
6794 *)
6795 # Make sure only first arg gets _r
6796 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
6797 ;;
6798 esac
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
6800$as_echo "Using $CC for compiling with threads" >&6; }
6801
6802fi
6803 LIBS="$LIBS -lc"
6804 SHLIB_CFLAGS=""
6805 SHLIB_SUFFIX=".so"
6806
6807 LD_LIBRARY_PATH_VAR="LIBPATH"
6808
6809 # Check to enable 64-bit flags for compiler/linker
6810 if test "$do64bit" = yes; then :
6811
6812 if test "$GCC" = yes; then :
6813
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6815$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6816
6817else
6818
6819 do64bit_ok=yes
6820 CFLAGS="$CFLAGS -q64"
6821 LDFLAGS_ARCH="-q64"
6822 RANLIB="${RANLIB} -X64"
6823 AR="${AR} -X64"
6824 SHLIB_LD_FLAGS="-b64"
6825
6826fi
6827
6828fi
6829
6830 if test "`uname -m`" = ia64; then :
6831
6832 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
6833 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
6834 if test "$GCC" = yes; then :
6835
6836 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
6837
6838else
6839
6840 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
6841
6842fi
6843 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
6844
6845else
6846
6847 if test "$GCC" = yes; then :
6848
6849 SHLIB_LD='${CC} -shared -Wl,-bexpall'
6850
6851else
6852
6853 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
6854 LDFLAGS="$LDFLAGS -brtl"
6855
6856fi
6857 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
6858 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6859 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6860
6861fi
6862 ;;
6863 BeOS*)
6864 SHLIB_CFLAGS="-fPIC"
6865 SHLIB_LD='${CC} -nostart'
6866 SHLIB_SUFFIX=".so"
6867
6868 #-----------------------------------------------------------
6869 # Check for inet_ntoa in -lbind, for BeOS (which also needs
6870 # -lsocket, even if the network functions are in -lnet which
6871 # is always linked to, for compatibility.
6872 #-----------------------------------------------------------
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
6874$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
6875if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877else
6878 ac_check_lib_save_LIBS=$LIBS
6879LIBS="-lbind $LIBS"
6880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h. */
6882
6883/* Override any GCC internal prototype to avoid an error.
6884 Use char because int might match the return type of a GCC
6885 builtin and then its argument prototype would still apply. */
6886#ifdef __cplusplus
6887extern "C"
6888#endif
6889char inet_ntoa ();
6890int
6891main ()
6892{
6893return inet_ntoa ();
6894 ;
6895 return 0;
6896}
6897_ACEOF
6898if ac_fn_c_try_link "$LINENO"; then :
6899 ac_cv_lib_bind_inet_ntoa=yes
6900else
6901 ac_cv_lib_bind_inet_ntoa=no
6902fi
6903rm -f core conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905LIBS=$ac_check_lib_save_LIBS
6906fi
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
6908$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
6909if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
6910 LIBS="$LIBS -lbind -lsocket"
6911fi
6912
6913 ;;
6914 BSD/OS-4.*)
6915 SHLIB_CFLAGS="-export-dynamic -fPIC"
6916 SHLIB_LD='${CC} -shared'
6917 SHLIB_SUFFIX=".so"
6918 LDFLAGS="$LDFLAGS -export-dynamic"
6919 CC_SEARCH_FLAGS=""
6920 LD_SEARCH_FLAGS=""
6921 ;;
6922 CYGWIN_*)
6923 SHLIB_CFLAGS=""
6924 SHLIB_LD='${CC} -shared'
6925 SHLIB_SUFFIX=".dll"
6926 EXEEXT=".exe"
6927 do64bit_ok=yes
6928 CC_SEARCH_FLAGS=""
6929 LD_SEARCH_FLAGS=""
6930 ;;
6931 Haiku*)
6932 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6933 SHLIB_CFLAGS="-fPIC"
6934 SHLIB_SUFFIX=".so"
6935 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
6937$as_echo_n "checking for inet_ntoa in -lnetwork... " >&6; }
6938if ${ac_cv_lib_network_inet_ntoa+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940else
6941 ac_check_lib_save_LIBS=$LIBS
6942LIBS="-lnetwork $LIBS"
6943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h. */
6945
6946/* Override any GCC internal prototype to avoid an error.
6947 Use char because int might match the return type of a GCC
6948 builtin and then its argument prototype would still apply. */
6949#ifdef __cplusplus
6950extern "C"
6951#endif
6952char inet_ntoa ();
6953int
6954main ()
6955{
6956return inet_ntoa ();
6957 ;
6958 return 0;
6959}
6960_ACEOF
6961if ac_fn_c_try_link "$LINENO"; then :
6962 ac_cv_lib_network_inet_ntoa=yes
6963else
6964 ac_cv_lib_network_inet_ntoa=no
6965fi
6966rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6968LIBS=$ac_check_lib_save_LIBS
6969fi
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
6971$as_echo "$ac_cv_lib_network_inet_ntoa" >&6; }
6972if test "x$ac_cv_lib_network_inet_ntoa" = xyes; then :
6973 LIBS="$LIBS -lnetwork"
6974fi
6975
6976 ;;
6977 HP-UX-*.11.*)
6978 # Use updated header definitions where possible
6979
6980$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
6981
6982 # TEA specific: Needed by Tcl, but not most extensions
6983 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
6984 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
6985
6986 if test "`uname -m`" = ia64; then :
6987
6988 SHLIB_SUFFIX=".so"
6989 # Use newer C++ library for C++ extensions
6990 #if test "$GCC" != "yes" ; then
6991 # CPPFLAGS="-AA"
6992 #fi
6993
6994else
6995
6996 SHLIB_SUFFIX=".sl"
6997
6998fi
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7000$as_echo_n "checking for shl_load in -ldld... " >&6; }
7001if ${ac_cv_lib_dld_shl_load+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003else
7004 ac_check_lib_save_LIBS=$LIBS
7005LIBS="-ldld $LIBS"
7006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h. */
7008
7009/* Override any GCC internal prototype to avoid an error.
7010 Use char because int might match the return type of a GCC
7011 builtin and then its argument prototype would still apply. */
7012#ifdef __cplusplus
7013extern "C"
7014#endif
7015char shl_load ();
7016int
7017main ()
7018{
7019return shl_load ();
7020 ;
7021 return 0;
7022}
7023_ACEOF
7024if ac_fn_c_try_link "$LINENO"; then :
7025 ac_cv_lib_dld_shl_load=yes
7026else
7027 ac_cv_lib_dld_shl_load=no
7028fi
7029rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7031LIBS=$ac_check_lib_save_LIBS
7032fi
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7034$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7035if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7036 tcl_ok=yes
7037else
7038 tcl_ok=no
7039fi
7040
7041 if test "$tcl_ok" = yes; then :
7042
7043 LDFLAGS="$LDFLAGS -Wl,-E"
7044 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
7045 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
7046 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7047
7048fi
7049 if test "$GCC" = yes; then :
7050
7051 SHLIB_LD='${CC} -shared'
7052 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7053
7054else
7055
7056 CFLAGS="$CFLAGS -z"
7057 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
7058 #CFLAGS="$CFLAGS +DAportable"
7059 SHLIB_CFLAGS="+z"
7060 SHLIB_LD="ld -b"
7061
7062fi
7063
7064 # Check to enable 64-bit flags for compiler/linker
7065 if test "$do64bit" = "yes"; then :
7066
7067 if test "$GCC" = yes; then :
7068
7069 case `${CC} -dumpmachine` in
7070 hppa64*)
7071 # 64-bit gcc in use. Fix flags for GNU ld.
7072 do64bit_ok=yes
7073 SHLIB_LD='${CC} -shared'
7074 if test $doRpath = yes; then :
7075
7076 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7077fi
7078 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7079 ;;
7080 *)
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7082$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7083 ;;
7084 esac
7085
7086else
7087
7088 do64bit_ok=yes
7089 CFLAGS="$CFLAGS +DD64"
7090 LDFLAGS_ARCH="+DD64"
7091
7092fi
7093
7094fi ;;
7095 IRIX-6.*)
7096 SHLIB_CFLAGS=""
7097 SHLIB_LD="ld -n32 -shared -rdata_shared"
7098 SHLIB_SUFFIX=".so"
7099 if test $doRpath = yes; then :
7100
7101 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7102 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7103fi
7104 if test "$GCC" = yes; then :
7105
7106 CFLAGS="$CFLAGS -mabi=n32"
7107 LDFLAGS="$LDFLAGS -mabi=n32"
7108
7109else
7110
7111 case $system in
7112 IRIX-6.3)
7113 # Use to build 6.2 compatible binaries on 6.3.
7114 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7115 ;;
7116 *)
7117 CFLAGS="$CFLAGS -n32"
7118 ;;
7119 esac
7120 LDFLAGS="$LDFLAGS -n32"
7121
7122fi
7123 ;;
7124 IRIX64-6.*)
7125 SHLIB_CFLAGS=""
7126 SHLIB_LD="ld -n32 -shared -rdata_shared"
7127 SHLIB_SUFFIX=".so"
7128 if test $doRpath = yes; then :
7129
7130 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7131 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7132fi
7133
7134 # Check to enable 64-bit flags for compiler/linker
7135
7136 if test "$do64bit" = yes; then :
7137
7138 if test "$GCC" = yes; then :
7139
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
7141$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7142
7143else
7144
7145 do64bit_ok=yes
7146 SHLIB_LD="ld -64 -shared -rdata_shared"
7147 CFLAGS="$CFLAGS -64"
7148 LDFLAGS_ARCH="-64"
7149
7150fi
7151
7152fi
7153 ;;
7154 Linux*|GNU*|NetBSD-Debian)
7155 SHLIB_CFLAGS="-fPIC"
7156 SHLIB_SUFFIX=".so"
7157
7158 # TEA specific:
7159 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7160
7161 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7162 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
7163 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7164 if test $doRpath = yes; then :
7165
7166 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7167fi
7168 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7169 if test "`uname -m`" = "alpha"; then :
7170 CFLAGS="$CFLAGS -mieee"
7171fi
7172 if test $do64bit = yes; then :
7173
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
7175$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
7176if ${tcl_cv_cc_m64+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178else
7179
7180 hold_cflags=$CFLAGS
7181 CFLAGS="$CFLAGS -m64"
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h. */
7184
7185int
7186main ()
7187{
7188
7189 ;
7190 return 0;
7191}
7192_ACEOF
7193if ac_fn_c_try_link "$LINENO"; then :
7194 tcl_cv_cc_m64=yes
7195else
7196 tcl_cv_cc_m64=no
7197fi
7198rm -f core conftest.err conftest.$ac_objext \
7199 conftest$ac_exeext conftest.$ac_ext
7200 CFLAGS=$hold_cflags
7201fi
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
7203$as_echo "$tcl_cv_cc_m64" >&6; }
7204 if test $tcl_cv_cc_m64 = yes; then :
7205
7206 CFLAGS="$CFLAGS -m64"
7207 do64bit_ok=yes
7208
7209fi
7210
7211fi
7212
7213 # The combo of gcc + glibc has a bug related to inlining of
7214 # functions like strtod(). The -fno-builtin flag should address
7215 # this problem but it does not work. The -fno-inline flag is kind
7216 # of overkill but it works. Disable inlining only when one of the
7217 # files in compat/*.c is being linked in.
7218
7219 if test x"${USE_COMPAT}" != x; then :
7220 CFLAGS="$CFLAGS -fno-inline"
7221fi
7222 ;;
7223 Lynx*)
7224 SHLIB_CFLAGS="-fPIC"
7225 SHLIB_SUFFIX=".so"
7226 CFLAGS_OPTIMIZE=-02
7227 SHLIB_LD='${CC} -shared'
7228 LD_FLAGS="-Wl,--export-dynamic"
7229 if test $doRpath = yes; then :
7230
7231 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7232 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7233fi
7234 ;;
7235 OpenBSD-*)
7236 arch=`arch -s`
7237 case "$arch" in
7238 vax)
7239 SHLIB_SUFFIX=""
7240 SHARED_LIB_SUFFIX=""
7241 LDFLAGS=""
7242 ;;
7243 *)
7244 SHLIB_CFLAGS="-fPIC"
7245 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
7246 SHLIB_SUFFIX=".so"
7247 if test $doRpath = yes; then :
7248
7249 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7250fi
7251 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7252 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
7253 LDFLAGS="-Wl,-export-dynamic"
7254 ;;
7255 esac
7256 case "$arch" in
7257 vax)
7258 CFLAGS_OPTIMIZE="-O1"
7259 ;;
7260 *)
7261 CFLAGS_OPTIMIZE="-O2"
7262 ;;
7263 esac
7264 if test "${TCL_THREADS}" = "1"; then :
7265
7266 # On OpenBSD: Compile with -pthread
7267 # Don't link with -lpthread
7268 LIBS=`echo $LIBS | sed s/-lpthread//`
7269 CFLAGS="$CFLAGS -pthread"
7270
7271fi
7272 # OpenBSD doesn't do version numbers with dots.
7273 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7274 TCL_LIB_VERSIONS_OK=nodots
7275 ;;
7276 NetBSD-*)
7277 # NetBSD has ELF and can use 'cc -shared' to build shared libs
7278 SHLIB_CFLAGS="-fPIC"
7279 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
7280 SHLIB_SUFFIX=".so"
7281 LDFLAGS="$LDFLAGS -export-dynamic"
7282 if test $doRpath = yes; then :
7283
7284 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7285fi
7286 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7287 if test "${TCL_THREADS}" = "1"; then :
7288
7289 # The -pthread needs to go in the CFLAGS, not LIBS
7290 LIBS=`echo $LIBS | sed s/-pthread//`
7291 CFLAGS="$CFLAGS -pthread"
7292 LDFLAGS="$LDFLAGS -pthread"
7293
7294fi
7295 ;;
7296 FreeBSD-*)
7297 # This configuration from FreeBSD Ports.
7298 SHLIB_CFLAGS="-fPIC"
7299 SHLIB_LD="${CC} -shared"
7300 TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$@"
7301 TK_SHLIB_LD_EXTRAS="-Wl,-soname,\$@"
7302 SHLIB_SUFFIX=".so"
7303 LDFLAGS=""
7304 if test $doRpath = yes; then :
7305
7306 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7307 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7308fi
7309 if test "${TCL_THREADS}" = "1"; then :
7310
7311 # The -pthread needs to go in the LDFLAGS, not LIBS
7312 LIBS=`echo $LIBS | sed s/-pthread//`
7313 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7314 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
7315fi
7316 case $system in
7317 FreeBSD-3.*)
7318 # Version numbers are dot-stripped by system policy.
7319 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
7320 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7321 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
7322 TCL_LIB_VERSIONS_OK=nodots
7323 ;;
7324 esac
7325 ;;
7326 Darwin-*)
7327 CFLAGS_OPTIMIZE="-Os"
7328 SHLIB_CFLAGS="-fno-common"
7329 # To avoid discrepancies between what headers configure sees during
7330 # preprocessing tests and compiling tests, move any -isysroot and
7331 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
7332 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
7333 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7334 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
7335 CFLAGS="`echo " ${CFLAGS}" | \
7336 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7337 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
7338 if test $do64bit = yes; then :
7339
7340 case `arch` in
7341 ppc)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
7343$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
7344if ${tcl_cv_cc_arch_ppc64+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346else
7347
7348 hold_cflags=$CFLAGS
7349 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h. */
7352
7353int
7354main ()
7355{
7356
7357 ;
7358 return 0;
7359}
7360_ACEOF
7361if ac_fn_c_try_link "$LINENO"; then :
7362 tcl_cv_cc_arch_ppc64=yes
7363else
7364 tcl_cv_cc_arch_ppc64=no
7365fi
7366rm -f core conftest.err conftest.$ac_objext \
7367 conftest$ac_exeext conftest.$ac_ext
7368 CFLAGS=$hold_cflags
7369fi
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
7371$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
7372 if test $tcl_cv_cc_arch_ppc64 = yes; then :
7373
7374 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7375 do64bit_ok=yes
7376
7377fi;;
7378 i386)
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
7380$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
7381if ${tcl_cv_cc_arch_x86_64+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383else
7384
7385 hold_cflags=$CFLAGS
7386 CFLAGS="$CFLAGS -arch x86_64"
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388/* end confdefs.h. */
7389
7390int
7391main ()
7392{
7393
7394 ;
7395 return 0;
7396}
7397_ACEOF
7398if ac_fn_c_try_link "$LINENO"; then :
7399 tcl_cv_cc_arch_x86_64=yes
7400else
7401 tcl_cv_cc_arch_x86_64=no
7402fi
7403rm -f core conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
7405 CFLAGS=$hold_cflags
7406fi
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
7408$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
7409 if test $tcl_cv_cc_arch_x86_64 = yes; then :
7410
7411 CFLAGS="$CFLAGS -arch x86_64"
7412 do64bit_ok=yes
7413
7414fi;;
7415 *)
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
7417$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
7418 esac
7419
7420else
7421
7422 # Check for combined 32-bit and 64-bit fat build
7423 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
7424 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then :
7425
7426 fat_32_64=yes
7427fi
7428
7429fi
7430 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7431 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
7433$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
7434if ${tcl_cv_ld_single_module+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436else
7437
7438 hold_ldflags=$LDFLAGS
7439 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h. */
7442
7443int
7444main ()
7445{
7446int i;
7447 ;
7448 return 0;
7449}
7450_ACEOF
7451if ac_fn_c_try_link "$LINENO"; then :
7452 tcl_cv_ld_single_module=yes
7453else
7454 tcl_cv_ld_single_module=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext \
7457 conftest$ac_exeext conftest.$ac_ext
7458 LDFLAGS=$hold_ldflags
7459fi
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
7461$as_echo "$tcl_cv_ld_single_module" >&6; }
7462 if test $tcl_cv_ld_single_module = yes; then :
7463
7464 SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
7465
7466fi
7467 # TEA specific: link shlib with current and compatibility version flags
7468 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
7469 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
7470 SHLIB_SUFFIX=".dylib"
7471 # Don't use -prebind when building for Mac OS X 10.4 or later only:
7472 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
7473 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then :
7474
7475 LDFLAGS="$LDFLAGS -prebind"
7476fi
7477 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
7479$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
7480if ${tcl_cv_ld_search_paths_first+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482else
7483
7484 hold_ldflags=$LDFLAGS
7485 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h. */
7488
7489int
7490main ()
7491{
7492int i;
7493 ;
7494 return 0;
7495}
7496_ACEOF
7497if ac_fn_c_try_link "$LINENO"; then :
7498 tcl_cv_ld_search_paths_first=yes
7499else
7500 tcl_cv_ld_search_paths_first=no
7501fi
7502rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 LDFLAGS=$hold_ldflags
7505fi
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
7507$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
7508 if test $tcl_cv_ld_search_paths_first = yes; then :
7509
7510 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7511
7512fi
7513 if test "$tcl_cv_cc_visibility_hidden" != yes; then :
7514
7515
7516$as_echo "#define MODULE_SCOPE __private_extern__" >>confdefs.h
7517
7518 tcl_cv_cc_visibility_hidden=yes
7519
7520fi
7521 CC_SEARCH_FLAGS=""
7522 LD_SEARCH_FLAGS=""
7523 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
7524 # TEA specific: for combined 32 & 64 bit fat builds of Tk
7525 # extensions, verify that 64-bit build is possible.
7526 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then :
7527
7528 if test "${TEA_WINDOWINGSYSTEM}" = x11; then :
7529
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
7531$as_echo_n "checking for 64-bit X11... " >&6; }
7532if ${tcl_cv_lib_x11_64+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534else
7535
7536 for v in CFLAGS CPPFLAGS LDFLAGS; do
7537 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7538 done
7539 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
7540 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542/* end confdefs.h. */
7543#include <X11/Xlib.h>
7544int
7545main ()
7546{
7547XrmInitialize();
7548 ;
7549 return 0;
7550}
7551_ACEOF
7552if ac_fn_c_try_link "$LINENO"; then :
7553 tcl_cv_lib_x11_64=yes
7554else
7555 tcl_cv_lib_x11_64=no
7556fi
7557rm -f core conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
7559 for v in CFLAGS CPPFLAGS LDFLAGS; do
7560 eval $v'="$hold_'$v'"'
7561 done
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
7564$as_echo "$tcl_cv_lib_x11_64" >&6; }
7565
7566fi
7567 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then :
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
7570$as_echo_n "checking for 64-bit Tk... " >&6; }
7571if ${tcl_cv_lib_tk_64+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573else
7574
7575 for v in CFLAGS CPPFLAGS LDFLAGS; do
7576 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7577 done
7578 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
7579 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h. */
7582#include <tk.h>
7583int
7584main ()
7585{
7586Tk_InitStubs(NULL, "", 0);
7587 ;
7588 return 0;
7589}
7590_ACEOF
7591if ac_fn_c_try_link "$LINENO"; then :
7592 tcl_cv_lib_tk_64=yes
7593else
7594 tcl_cv_lib_tk_64=no
7595fi
7596rm -f core conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 for v in CFLAGS CPPFLAGS LDFLAGS; do
7599 eval $v'="$hold_'$v'"'
7600 done
7601fi
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
7603$as_echo "$tcl_cv_lib_tk_64" >&6; }
7604
7605fi
7606 # remove 64-bit arch flags from CFLAGS et al. if configuration
7607 # does not support 64-bit.
7608 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then :
7609
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
7611$as_echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
7612 for v in CFLAGS CPPFLAGS LDFLAGS; do
7613 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
7614 done
7615fi
7616
7617fi
7618 ;;
7619 OS/390-*)
7620 CFLAGS_OPTIMIZE="" # Optimizer is buggy
7621
7622$as_echo "#define _OE_SOCKETS 1" >>confdefs.h
7623
7624 ;;
7625 OSF1-V*)
7626 # Digital OSF/1
7627 SHLIB_CFLAGS=""
7628 if test "$SHARED_BUILD" = 1; then :
7629
7630 SHLIB_LD='ld -shared -expect_unresolved "*"'
7631
7632else
7633
7634 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
7635
7636fi
7637 SHLIB_SUFFIX=".so"
7638 if test $doRpath = yes; then :
7639
7640 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7641 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7642fi
7643 if test "$GCC" = yes; then :
7644 CFLAGS="$CFLAGS -mieee"
7645else
7646
7647 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
7648fi
7649 # see pthread_intro(3) for pthread support on osf1, k.furukawa
7650 if test "${TCL_THREADS}" = 1; then :
7651
7652 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
7653 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
7654 LIBS=`echo $LIBS | sed s/-lpthreads//`
7655 if test "$GCC" = yes; then :
7656
7657 LIBS="$LIBS -lpthread -lmach -lexc"
7658
7659else
7660
7661 CFLAGS="$CFLAGS -pthread"
7662 LDFLAGS="$LDFLAGS -pthread"
7663
7664fi
7665
7666fi
7667 ;;
7668 QNX-6*)
7669 # QNX RTP
7670 # This may work for all QNX, but it was only reported for v6.
7671 SHLIB_CFLAGS="-fPIC"
7672 SHLIB_LD="ld -Bshareable -x"
7673 SHLIB_LD_LIBS=""
7674 SHLIB_SUFFIX=".so"
7675 CC_SEARCH_FLAGS=""
7676 LD_SEARCH_FLAGS=""
7677 ;;
7678 SCO_SV-3.2*)
7679 if test "$GCC" = yes; then :
7680
7681 SHLIB_CFLAGS="-fPIC -melf"
7682 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
7683
7684else
7685
7686 SHLIB_CFLAGS="-Kpic -belf"
7687 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
7688
7689fi
7690 SHLIB_LD="ld -G"
7691 SHLIB_LD_LIBS=""
7692 SHLIB_SUFFIX=".so"
7693 CC_SEARCH_FLAGS=""
7694 LD_SEARCH_FLAGS=""
7695 ;;
7696 SunOS-5.[0-6])
7697 # Careful to not let 5.10+ fall into this case
7698
7699 # Note: If _REENTRANT isn't defined, then Solaris
7700 # won't define thread-safe library routines.
7701
7702
7703$as_echo "#define _REENTRANT 1" >>confdefs.h
7704
7705
7706$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7707
7708
7709 SHLIB_CFLAGS="-KPIC"
7710 SHLIB_SUFFIX=".so"
7711 if test "$GCC" = yes; then :
7712
7713 SHLIB_LD='${CC} -shared'
7714 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7715 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7716
7717else
7718
7719 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7720 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7721 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7722
7723fi
7724 ;;
7725 SunOS-5*)
7726 # Note: If _REENTRANT isn't defined, then Solaris
7727 # won't define thread-safe library routines.
7728
7729
7730$as_echo "#define _REENTRANT 1" >>confdefs.h
7731
7732
7733$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7734
7735
7736 SHLIB_CFLAGS="-KPIC"
7737
7738 # Check to enable 64-bit flags for compiler/linker
7739 if test "$do64bit" = yes; then :
7740
7741 arch=`isainfo`
7742 if test "$arch" = "sparcv9 sparc"; then :
7743
7744 if test "$GCC" = yes; then :
7745
7746 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then :
7747
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
7749$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
7750
7751else
7752
7753 do64bit_ok=yes
7754 CFLAGS="$CFLAGS -m64 -mcpu=v9"
7755 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
7756 SHLIB_CFLAGS="-fPIC"
7757
7758fi
7759
7760else
7761
7762 do64bit_ok=yes
7763 if test "$do64bitVIS" = yes; then :
7764
7765 CFLAGS="$CFLAGS -xarch=v9a"
7766 LDFLAGS_ARCH="-xarch=v9a"
7767
7768else
7769
7770 CFLAGS="$CFLAGS -xarch=v9"
7771 LDFLAGS_ARCH="-xarch=v9"
7772
7773fi
7774 # Solaris 64 uses this as well
7775 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
7776
7777fi
7778
7779else
7780 if test "$arch" = "amd64 i386"; then :
7781
7782 if test "$GCC" = yes; then :
7783
7784 case $system in
7785 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
7786 do64bit_ok=yes
7787 CFLAGS="$CFLAGS -m64"
7788 LDFLAGS="$LDFLAGS -m64";;
7789 *)
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7791$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
7792 esac
7793
7794else
7795
7796 do64bit_ok=yes
7797 case $system in
7798 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
7799 CFLAGS="$CFLAGS -m64"
7800 LDFLAGS="$LDFLAGS -m64";;
7801 *)
7802 CFLAGS="$CFLAGS -xarch=amd64"
7803 LDFLAGS="$LDFLAGS -xarch=amd64";;
7804 esac
7805
7806fi
7807
7808else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
7810$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
7811fi
7812fi
7813
7814fi
7815
7816 SHLIB_SUFFIX=".so"
7817 if test "$GCC" = yes; then :
7818
7819 SHLIB_LD='${CC} -shared'
7820 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7821 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7822 if test "$do64bit_ok" = yes; then :
7823
7824 if test "$arch" = "sparcv9 sparc"; then :
7825
7826 # We need to specify -static-libgcc or we need to
7827 # add the path to the sparv9 libgcc.
7828 # JH: static-libgcc is necessary for core Tcl, but may
7829 # not be necessary for extensions.
7830 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
7831 # for finding sparcv9 libgcc, get the regular libgcc
7832 # path, remove so name and append 'sparcv9'
7833 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
7834 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
7835
7836else
7837 if test "$arch" = "amd64 i386"; then :
7838
7839 # JH: static-libgcc is necessary for core Tcl, but may
7840 # not be necessary for extensions.
7841 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
7842
7843fi
7844fi
7845
7846fi
7847
7848else
7849
7850 case $system in
7851 SunOS-5.[1-9][0-9]*)
7852 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7853 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
7854 *)
7855 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
7856 esac
7857 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7858 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7859
7860fi
7861 ;;
7862 UNIX_SV* | UnixWare-5*)
7863 SHLIB_CFLAGS="-KPIC"
7864 SHLIB_LD='${CC} -G'
7865 SHLIB_LD_LIBS=""
7866 SHLIB_SUFFIX=".so"
7867 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
7868 # that don't grok the -Bexport option. Test that it does.
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
7870$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
7871if ${tcl_cv_ld_Bexport+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873else
7874
7875 hold_ldflags=$LDFLAGS
7876 LDFLAGS="$LDFLAGS -Wl,-Bexport"
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h. */
7879
7880int
7881main ()
7882{
7883int i;
7884 ;
7885 return 0;
7886}
7887_ACEOF
7888if ac_fn_c_try_link "$LINENO"; then :
7889 tcl_cv_ld_Bexport=yes
7890else
7891 tcl_cv_ld_Bexport=no
7892fi
7893rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 LDFLAGS=$hold_ldflags
7896fi
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
7898$as_echo "$tcl_cv_ld_Bexport" >&6; }
7899 if test $tcl_cv_ld_Bexport = yes; then :
7900
7901 LDFLAGS="$LDFLAGS -Wl,-Bexport"
7902
7903fi
7904 CC_SEARCH_FLAGS=""
7905 LD_SEARCH_FLAGS=""
7906 ;;
7907 esac
7908
7909 if test "$do64bit" = yes -a "$do64bit_ok" = no; then :
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
7912$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
7913
7914fi
7915
7916
7917
7918 # Add in the arch flags late to ensure it wasn't removed.
7919 # Not necessary in TEA, but this is aligned with core
7920 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
7921
7922 # If we're running gcc, then change the C flags for compiling shared
7923 # libraries to the right flags for gcc, instead of those for the
7924 # standard manufacturer compiler.
7925
7926 if test "$GCC" = yes; then :
7927
7928 case $system in
7929 AIX-*) ;;
7930 BSD/OS*) ;;
7931 CYGWIN_*|MINGW32_*) ;;
7932 IRIX*) ;;
7933 NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
7934 Darwin-*) ;;
7935 SCO_SV-3.2*) ;;
7936 windows) ;;
7937 *) SHLIB_CFLAGS="-fPIC" ;;
7938 esac
7939fi
7940
7941 if test "$tcl_cv_cc_visibility_hidden" != yes; then :
7942
7943
7944$as_echo "#define MODULE_SCOPE extern" >>confdefs.h
7945
7946
7947fi
7948
7949 if test "$SHARED_LIB_SUFFIX" = ""; then :
7950
7951 # TEA specific: use PACKAGE_VERSION instead of VERSION
7952 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
7953fi
7954 if test "$UNSHARED_LIB_SUFFIX" = ""; then :
7955
7956 # TEA specific: use PACKAGE_VERSION instead of VERSION
7957 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
7958fi
7959
7960 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
7962$as_echo_n "checking for SEH support in compiler... " >&6; }
7963if ${tcl_cv_seh+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965else
7966 if test "$cross_compiling" = yes; then :
7967 tcl_cv_seh=no
7968else
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970/* end confdefs.h. */
7971
7972#define WIN32_LEAN_AND_MEAN
7973#include <windows.h>
7974#undef WIN32_LEAN_AND_MEAN
7975
7976 int main(int argc, char** argv) {
7977 int a, b = 0;
7978 __try {
7979 a = 666 / b;
7980 }
7981 __except (EXCEPTION_EXECUTE_HANDLER) {
7982 return 0;
7983 }
7984 return 1;
7985 }
7986
7987_ACEOF
7988if ac_fn_c_try_run "$LINENO"; then :
7989 tcl_cv_seh=yes
7990else
7991 tcl_cv_seh=no
7992fi
7993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7994 conftest.$ac_objext conftest.beam conftest.$ac_ext
7995fi
7996
7997
7998fi
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
8000$as_echo "$tcl_cv_seh" >&6; }
8001 if test "$tcl_cv_seh" = "no" ; then
8002
8003$as_echo "#define HAVE_NO_SEH 1" >>confdefs.h
8004
8005 fi
8006
8007 #
8008 # Check to see if the excpt.h include file provided contains the
8009 # definition for EXCEPTION_DISPOSITION; if not, which is the case
8010 # with Cygwin's version as of 2002-04-10, define it to be int,
8011 # sufficient for getting the current code to work.
8012 #
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
8014$as_echo_n "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
8015if ${tcl_cv_eh_disposition+:} false; then :
8016 $as_echo_n "(cached) " >&6
8017else
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h. */
8020
8021# define WIN32_LEAN_AND_MEAN
8022# include <windows.h>
8023# undef WIN32_LEAN_AND_MEAN
8024
8025int
8026main ()
8027{
8028
8029 EXCEPTION_DISPOSITION x;
8030
8031 ;
8032 return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_compile "$LINENO"; then :
8036 tcl_cv_eh_disposition=yes
8037else
8038 tcl_cv_eh_disposition=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041
8042fi
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
8044$as_echo "$tcl_cv_eh_disposition" >&6; }
8045 if test "$tcl_cv_eh_disposition" = "no" ; then
8046
8047$as_echo "#define EXCEPTION_DISPOSITION int" >>confdefs.h
8048
8049 fi
8050
8051 # Check to see if winnt.h defines CHAR, SHORT, and LONG
8052 # even if VOID has already been #defined. The win32api
8053 # used by mingw and cygwin is known to do this.
8054
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
8056$as_echo_n "checking for winnt.h that ignores VOID define... " >&6; }
8057if ${tcl_cv_winnt_ignore_void+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059else
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061/* end confdefs.h. */
8062
8063#define VOID void
8064#define WIN32_LEAN_AND_MEAN
8065#include <windows.h>
8066#undef WIN32_LEAN_AND_MEAN
8067
8068int
8069main ()
8070{
8071
8072 CHAR c;
8073 SHORT s;
8074 LONG l;
8075
8076 ;
8077 return 0;
8078}
8079_ACEOF
8080if ac_fn_c_try_compile "$LINENO"; then :
8081 tcl_cv_winnt_ignore_void=yes
8082else
8083 tcl_cv_winnt_ignore_void=no
8084fi
8085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086
8087fi
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
8089$as_echo "$tcl_cv_winnt_ignore_void" >&6; }
8090 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
8091
8092$as_echo "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
8093
8094 fi
8095 fi
8096
8097 # See if the compiler supports casting to a union type.
8098 # This is used to stop gcc from printing a compiler
8099 # warning when initializing a union member.
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
8102$as_echo_n "checking for cast to union support... " >&6; }
8103if ${tcl_cv_cast_to_union+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h. */
8108
8109int
8110main ()
8111{
8112
8113 union foo { int i; double d; };
8114 union foo f = (union foo) (int) 0;
8115
8116 ;
8117 return 0;
8118}
8119_ACEOF
8120if ac_fn_c_try_compile "$LINENO"; then :
8121 tcl_cv_cast_to_union=yes
8122else
8123 tcl_cv_cast_to_union=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126
8127fi
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
8129$as_echo "$tcl_cv_cast_to_union" >&6; }
8130 if test "$tcl_cv_cast_to_union" = "yes"; then
8131
8132$as_echo "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
8133
8134 fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148 # These must be called after we do the basic CFLAGS checks and
8149 # verify any possible 64-bit or similar switches are necessary
8150
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
8152$as_echo_n "checking for required early compiler flags... " >&6; }
8153 tcl_flags=""
8154
8155 if ${tcl_cv_flag__isoc99_source+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157else
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h. */
8160#include <stdlib.h>
8161int
8162main ()
8163{
8164char *p = (char *)strtoll; char *q = (char *)strtoull;
8165 ;
8166 return 0;
8167}
8168_ACEOF
8169if ac_fn_c_try_compile "$LINENO"; then :
8170 tcl_cv_flag__isoc99_source=no
8171else
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h. */
8174#define _ISOC99_SOURCE 1
8175#include <stdlib.h>
8176int
8177main ()
8178{
8179char *p = (char *)strtoll; char *q = (char *)strtoull;
8180 ;
8181 return 0;
8182}
8183_ACEOF
8184if ac_fn_c_try_compile "$LINENO"; then :
8185 tcl_cv_flag__isoc99_source=yes
8186else
8187 tcl_cv_flag__isoc99_source=no
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190fi
8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192fi
8193
8194 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
8195
8196$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h
8197
8198 tcl_flags="$tcl_flags _ISOC99_SOURCE"
8199 fi
8200
8201
8202 if ${tcl_cv_flag__largefile64_source+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204else
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206/* end confdefs.h. */
8207#include <sys/stat.h>
8208int
8209main ()
8210{
8211struct stat64 buf; int i = stat64("/", &buf);
8212 ;
8213 return 0;
8214}
8215_ACEOF
8216if ac_fn_c_try_compile "$LINENO"; then :
8217 tcl_cv_flag__largefile64_source=no
8218else
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220/* end confdefs.h. */
8221#define _LARGEFILE64_SOURCE 1
8222#include <sys/stat.h>
8223int
8224main ()
8225{
8226struct stat64 buf; int i = stat64("/", &buf);
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231if ac_fn_c_try_compile "$LINENO"; then :
8232 tcl_cv_flag__largefile64_source=yes
8233else
8234 tcl_cv_flag__largefile64_source=no
8235fi
8236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237fi
8238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239fi
8240
8241 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
8242
8243$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
8244
8245 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
8246 fi
8247
8248
8249 if ${tcl_cv_flag__largefile_source64+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251else
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253/* end confdefs.h. */
8254#include <sys/stat.h>
8255int
8256main ()
8257{
8258char *p = (char *)open64;
8259 ;
8260 return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_compile "$LINENO"; then :
8264 tcl_cv_flag__largefile_source64=no
8265else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h. */
8268#define _LARGEFILE_SOURCE64 1
8269#include <sys/stat.h>
8270int
8271main ()
8272{
8273char *p = (char *)open64;
8274 ;
8275 return 0;
8276}
8277_ACEOF
8278if ac_fn_c_try_compile "$LINENO"; then :
8279 tcl_cv_flag__largefile_source64=yes
8280else
8281 tcl_cv_flag__largefile_source64=no
8282fi
8283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284fi
8285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286fi
8287
8288 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
8289
8290$as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h
8291
8292 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
8293 fi
8294
8295 if test "x${tcl_flags}" = "x" ; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8297$as_echo "none" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
8300$as_echo "${tcl_flags}" >&6; }
8301 fi
8302
8303
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
8305$as_echo_n "checking for 64-bit integer type... " >&6; }
8306 if ${tcl_cv_type_64bit+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308else
8309
8310 tcl_cv_type_64bit=none
8311 # See if the compiler knows natively about __int64
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313/* end confdefs.h. */
8314
8315int
8316main ()
8317{
8318__int64 value = (__int64) 0;
8319 ;
8320 return 0;
8321}
8322_ACEOF
8323if ac_fn_c_try_compile "$LINENO"; then :
8324 tcl_type_64bit=__int64
8325else
8326 tcl_type_64bit="long long"
8327fi
8328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 # See if we should use long anyway Note that we substitute in the
8330 # type that is our current guess for a 64-bit type inside this check
8331 # program, so it should be modified only carefully...
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333/* end confdefs.h. */
8334
8335int
8336main ()
8337{
8338switch (0) {
8339 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
8340 }
8341 ;
8342 return 0;
8343}
8344_ACEOF
8345if ac_fn_c_try_compile "$LINENO"; then :
8346 tcl_cv_type_64bit=${tcl_type_64bit}
8347fi
8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349fi
8350
8351 if test "${tcl_cv_type_64bit}" = none ; then
8352
8353$as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using long" >&5
8356$as_echo "using long" >&6; }
8357 elif test "${tcl_cv_type_64bit}" = "__int64" \
8358 -a "${TEA_PLATFORM}" = "windows" ; then
8359 # TEA specific: We actually want to use the default tcl.h checks in
8360 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
8362$as_echo "using Tcl header defaults" >&6; }
8363 else
8364
8365cat >>confdefs.h <<_ACEOF
8366#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
8367_ACEOF
8368
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
8370$as_echo "${tcl_cv_type_64bit}" >&6; }
8371
8372 # Now check for auxiliary declarations
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
8374$as_echo_n "checking for struct dirent64... " >&6; }
8375if ${tcl_cv_struct_dirent64+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377else
8378
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380/* end confdefs.h. */
8381#include <sys/types.h>
8382#include <dirent.h>
8383int
8384main ()
8385{
8386struct dirent64 p;
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391if ac_fn_c_try_compile "$LINENO"; then :
8392 tcl_cv_struct_dirent64=yes
8393else
8394 tcl_cv_struct_dirent64=no
8395fi
8396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397fi
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
8399$as_echo "$tcl_cv_struct_dirent64" >&6; }
8400 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
8401
8402$as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
8403
8404 fi
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
8407$as_echo_n "checking for struct stat64... " >&6; }
8408if ${tcl_cv_struct_stat64+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410else
8411
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h. */
8414#include <sys/stat.h>
8415int
8416main ()
8417{
8418struct stat64 p;
8419
8420 ;
8421 return 0;
8422}
8423_ACEOF
8424if ac_fn_c_try_compile "$LINENO"; then :
8425 tcl_cv_struct_stat64=yes
8426else
8427 tcl_cv_struct_stat64=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
8432$as_echo "$tcl_cv_struct_stat64" >&6; }
8433 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
8434
8435$as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
8436
8437 fi
8438
8439 for ac_func in open64 lseek64
8440do :
8441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8442ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8443if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8444 cat >>confdefs.h <<_ACEOF
8445#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8446_ACEOF
8447
8448fi
8449done
8450
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
8452$as_echo_n "checking for off64_t... " >&6; }
8453 if ${tcl_cv_type_off64_t+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455else
8456
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458/* end confdefs.h. */
8459#include <sys/types.h>
8460int
8461main ()
8462{
8463off64_t offset;
8464
8465 ;
8466 return 0;
8467}
8468_ACEOF
8469if ac_fn_c_try_compile "$LINENO"; then :
8470 tcl_cv_type_off64_t=yes
8471else
8472 tcl_cv_type_off64_t=no
8473fi
8474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475fi
8476
8477 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
8478 test "x${ac_cv_func_lseek64}" = "xyes" && \
8479 test "x${ac_cv_func_open64}" = "xyes" ; then
8480
8481$as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
8482
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8484$as_echo "yes" >&6; }
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
8488 fi
8489 fi
8490
8491
8492
8493#--------------------------------------------------------------------
8494# Set the default compiler switches based on the --enable-symbols option.
8495#--------------------------------------------------------------------
8496
8497
8498
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
8500$as_echo_n "checking for build with symbols... " >&6; }
8501 # Check whether --enable-symbols was given.
8502if test "${enable_symbols+set}" = set; then :
8503 enableval=$enable_symbols; tcl_ok=$enableval
8504else
8505 tcl_ok=no
8506fi
8507
8508 DBGX=""
8509 if test "$tcl_ok" = "no"; then
8510 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
8511 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513$as_echo "no" >&6; }
8514 else
8515 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
8516 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
8517 if test "$tcl_ok" = "yes"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
8519$as_echo "yes (standard debugging)" >&6; }
8520 fi
8521 fi
8522 # TEA specific:
8523 if test "${TEA_PLATFORM}" != "windows" ; then
8524 LDFLAGS_DEFAULT="${LDFLAGS}"
8525 fi
8526
8527
8528
8529
8530 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
8531
8532$as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
8533
8534 fi
8535
8536 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
8537 if test "$tcl_ok" = "all"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
8539$as_echo "enabled symbols mem debugging" >&6; }
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
8542$as_echo "enabled $tcl_ok debugging" >&6; }
8543 fi
8544 fi
8545
8546
8547#--------------------------------------------------------------------
8548# Everyone should be linking against the Tcl stub library. If you
8549# can't for some reason, remove this definition. If you aren't using
8550# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
8551# link against the non-stubbed Tcl library. Add Tk too if necessary.
8552#--------------------------------------------------------------------
8553
8554
8555$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h
8556
8557#AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs])
8558
8559
8560#--------------------------------------------------------------------
8561# Redefine fdatasync as fsync on systems that lack fdatasync
8562#--------------------------------------------------------------------
8563#
8564#AC_CHECK_FUNC(fdatasync, , AC_DEFINE(fdatasync, fsync))
8565# Check for library functions that SQLite can optionally use.
8566for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
8567do :
8568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8569ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8570if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8571 cat >>confdefs.h <<_ACEOF
8572#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8573_ACEOF
8574
8575fi
8576done
8577
8578
8579ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8580if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
8581 ac_have_decl=1
8582else
8583 ac_have_decl=0
8584fi
8585
8586cat >>confdefs.h <<_ACEOF
8587#define HAVE_DECL_STRERROR_R $ac_have_decl
8588_ACEOF
8589
8590for ac_func in strerror_r
8591do :
8592 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8593if test "x$ac_cv_func_strerror_r" = xyes; then :
8594 cat >>confdefs.h <<_ACEOF
8595#define HAVE_STRERROR_R 1
8596_ACEOF
8597
8598fi
8599done
8600
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8602$as_echo_n "checking whether strerror_r returns char *... " >&6; }
8603if ${ac_cv_func_strerror_r_char_p+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605else
8606
8607 ac_cv_func_strerror_r_char_p=no
8608 if test $ac_cv_have_decl_strerror_r = yes; then
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h. */
8611$ac_includes_default
8612int
8613main ()
8614{
8615
8616 char buf[100];
8617 char x = *strerror_r (0, buf, sizeof buf);
8618 char *p = strerror_r (0, buf, sizeof buf);
8619 return !p || x;
8620
8621 ;
8622 return 0;
8623}
8624_ACEOF
8625if ac_fn_c_try_compile "$LINENO"; then :
8626 ac_cv_func_strerror_r_char_p=yes
8627fi
8628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 else
8630 # strerror_r is not declared. Choose between
8631 # systems that have relatively inaccessible declarations for the
8632 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8633 # former has a strerror_r that returns char*, while the latter
8634 # has a strerror_r that returns `int'.
8635 # This test should segfault on the DEC system.
8636 if test "$cross_compiling" = yes; then :
8637 :
8638else
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640/* end confdefs.h. */
8641$ac_includes_default
8642 extern char *strerror_r ();
8643int
8644main ()
8645{
8646char buf[100];
8647 char x = *strerror_r (0, buf, sizeof buf);
8648 return ! isalpha (x);
8649 ;
8650 return 0;
8651}
8652_ACEOF
8653if ac_fn_c_try_run "$LINENO"; then :
8654 ac_cv_func_strerror_r_char_p=yes
8655fi
8656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8657 conftest.$ac_objext conftest.beam conftest.$ac_ext
8658fi
8659
8660 fi
8661
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8664$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8665if test $ac_cv_func_strerror_r_char_p = yes; then
8666
8667$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8668
8669fi
8670
8671
8672
8673#--------------------------------------------------------------------
8674# This macro generates a line to use when building a library. It
8675# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
8676# and TEA_LOAD_TCLCONFIG macros above.
8677#--------------------------------------------------------------------
8678
8679
8680 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
8681 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
8682 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684/* end confdefs.h. */
8685
8686#if defined(_MSC_VER) && _MSC_VER >= 1400
8687print("manifest needed")
8688#endif
8689
8690_ACEOF
8691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8692 $EGREP "manifest needed" >/dev/null 2>&1; then :
8693
8694 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
8695 VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi"
8696 VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi"
8697 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
8698
8699 CLEANFILES="$CLEANFILES *.manifest"
8700
8701
8702fi
8703rm -f conftest*
8704
8705 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
8706 else
8707 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
8708 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
8709 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
8710 fi
8711
8712 if test "${SHARED_BUILD}" = "1" ; then
8713 MAKE_LIB="${MAKE_SHARED_LIB} "
8714 else
8715 MAKE_LIB="${MAKE_STATIC_LIB} "
8716 fi
8717
8718 #--------------------------------------------------------------------
8719 # Shared libraries and static libraries have different names.
8720 # Use the double eval to make sure any variables in the suffix is
8721 # substituted. (@@@ Might not be necessary anymore)
8722 #--------------------------------------------------------------------
8723
8724 if test "${TEA_PLATFORM}" = "windows" ; then
8725 if test "${SHARED_BUILD}" = "1" ; then
8726 # We force the unresolved linking of symbols that are really in
8727 # the private libraries of Tcl and Tk.
8728 if test x"${TK_BIN_DIR}" != x ; then
8729 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
8730 fi
8731 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
8732 if test "$GCC" = "yes"; then
8733 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
8734 fi
8735 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8736 else
8737 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8738 if test "$GCC" = "yes"; then
8739 PKG_LIB_FILE=lib${PKG_LIB_FILE}
8740 fi
8741 fi
8742 # Some packages build their own stubs libraries
8743 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
8744 if test "$GCC" = "yes"; then
8745 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
8746 fi
8747 # These aren't needed on Windows (either MSVC or gcc)
8748 RANLIB=:
8749 RANLIB_STUB=:
8750 else
8751 RANLIB_STUB="${RANLIB}"
8752 if test "${SHARED_BUILD}" = "1" ; then
8753 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
8754 if test x"${TK_BIN_DIR}" != x ; then
8755 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
8756 fi
8757 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8758 RANLIB=:
8759 else
8760 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8761 fi
8762 # Some packages build their own stubs libraries
8763 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
8764 fi
8765
8766 # These are escaped so that only CFLAGS is picked up at configure time.
8767 # The other values will be substituted at make time.
8768 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
8769 if test "${SHARED_BUILD}" = "1" ; then
8770 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
8771 fi
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782#--------------------------------------------------------------------
8783# Determine the name of the tclsh and/or wish executables in the
8784# Tcl and Tk build directories or the location they were installed
8785# into. These paths are used to support running test cases only,
8786# the Makefile should not be making use of these paths to generate
8787# a pkgIndex.tcl file or anything else at extension build time.
8788#--------------------------------------------------------------------
8789
8790
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
8792$as_echo_n "checking for tclsh... " >&6; }
8793 if test -f "${TCL_BIN_DIR}/Makefile" ; then
8794 # tclConfig.sh is in Tcl build directory
8795 if test "${TEA_PLATFORM}" = "windows"; then
8796 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
8797 else
8798 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
8799 fi
8800 else
8801 # tclConfig.sh is in install location
8802 if test "${TEA_PLATFORM}" = "windows"; then
8803 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
8804 else
8805 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}"
8806 fi
8807 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
8808 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
8809 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
8810 for i in $list ; do
8811 if test -f "$i/${TCLSH_PROG}" ; then
8812 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
8813 break
8814 fi
8815 done
8816 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
8819$as_echo "${TCLSH_PROG}" >&6; }
8820
8821
8822#TEA_PROG_WISH
8823
8824#--------------------------------------------------------------------
8825# Finally, substitute all of the various values into the Makefile.
8826# You may alternatively have a special pkgIndex.tcl.in or other files
8827# which require substituting th AC variables in. Include these here.
8828#--------------------------------------------------------------------
8829
8830ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
8831
8832cat >confcache <<\_ACEOF
8833# This file is a shell script that caches the results of configure
8834# tests run on this system so they can be shared between configure
8835# scripts and configure runs, see configure's option --config-cache.
8836# It is not useful on other systems. If it contains results you don't
8837# want to keep, you may remove or edit it.
8838#
8839# config.status only pays attention to the cache file if you give it
8840# the --recheck option to rerun configure.
8841#
8842# `ac_cv_env_foo' variables (set or unset) will be overridden when
8843# loading this file, other *unset* `ac_cv_foo' will be assigned the
8844# following values.
8845
8846_ACEOF
8847
8848# The following way of writing the cache mishandles newlines in values,
8849# but we know of no workaround that is simple, portable, and efficient.
8850# So, we kill variables containing newlines.
8851# Ultrix sh set writes to stderr and can't be redirected directly,
8852# and sets the high bit in the cache file unless we assign to the vars.
8853(
8854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8855 eval ac_val=\$$ac_var
8856 case $ac_val in #(
8857 *${as_nl}*)
8858 case $ac_var in #(
8859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8860$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8861 esac
8862 case $ac_var in #(
8863 _ | IFS | as_nl) ;; #(
8864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8865 *) { eval $ac_var=; unset $ac_var;} ;;
8866 esac ;;
8867 esac
8868 done
8869
8870 (set) 2>&1 |
8871 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8872 *${as_nl}ac_space=\ *)
8873 # `set' does not quote correctly, so add quotes: double-quote
8874 # substitution turns \\\\ into \\, and sed turns \\ into \.
8875 sed -n \
8876 "s/'/'\\\\''/g;
8877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8878 ;; #(
8879 *)
8880 # `set' quotes correctly as required by POSIX, so do not add quotes.
8881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8882 ;;
8883 esac |
8884 sort
8885) |
8886 sed '
8887 /^ac_cv_env_/b end
8888 t clear
8889 :clear
8890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8891 t end
8892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8893 :end' >>confcache
8894if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8895 if test -w "$cache_file"; then
8896 if test "x$cache_file" != "x/dev/null"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8898$as_echo "$as_me: updating cache $cache_file" >&6;}
8899 if test ! -f "$cache_file" || test -h "$cache_file"; then
8900 cat confcache >"$cache_file"
8901 else
8902 case $cache_file in #(
8903 */* | ?:*)
8904 mv -f confcache "$cache_file"$$ &&
8905 mv -f "$cache_file"$$ "$cache_file" ;; #(
8906 *)
8907 mv -f confcache "$cache_file" ;;
8908 esac
8909 fi
8910 fi
8911 else
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8913$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8914 fi
8915fi
8916rm -f confcache
8917
8918test "x$prefix" = xNONE && prefix=$ac_default_prefix
8919# Let make expand exec_prefix.
8920test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8921
8922# Transform confdefs.h into DEFS.
8923# Protect against shell expansion while executing Makefile rules.
8924# Protect against Makefile macro expansion.
8925#
8926# If the first sed substitution is executed (which looks for macros that
8927# take arguments), then branch to the quote section. Otherwise,
8928# look for a macro that doesn't take arguments.
8929ac_script='
8930:mline
8931/\\$/{
8932 N
8933 s,\\\n,,
8934 b mline
8935}
8936t clear
8937:clear
8938s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
8939t quote
8940s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
8941t quote
8942b any
8943:quote
8944s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8945s/\[/\\&/g
8946s/\]/\\&/g
8947s/\$/$$/g
8948H
8949:any
8950${
8951 g
8952 s/^\n//
8953 s/\n/ /g
8954 p
8955}
8956'
8957DEFS=`sed -n "$ac_script" confdefs.h`
8958
8959
8960ac_libobjs=
8961ac_ltlibobjs=
8962U=
8963for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8964 # 1. Remove the extension, and $U if already installed.
8965 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8966 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8967 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8968 # will be set to the directory where LIBOBJS objects are built.
8969 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8970 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8971done
8972LIBOBJS=$ac_libobjs
8973
8974LTLIBOBJS=$ac_ltlibobjs
8975
8976
8977
8978CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
8979
8980: "${CONFIG_STATUS=./config.status}"
8981ac_write_fail=0
8982ac_clean_files_save=$ac_clean_files
8983ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8985$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8986as_write_fail=0
8987cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8988#! $SHELL
8989# Generated by $as_me.
8990# Run this file to recreate the current configuration.
8991# Compiler output produced by configure, useful for debugging
8992# configure, is in config.log if it exists.
8993
8994debug=false
8995ac_cs_recheck=false
8996ac_cs_silent=false
8997
8998SHELL=\${CONFIG_SHELL-$SHELL}
8999export SHELL
9000_ASEOF
9001cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9002## -------------------- ##
9003## M4sh Initialization. ##
9004## -------------------- ##
9005
9006# Be more Bourne compatible
9007DUALCASE=1; export DUALCASE # for MKS sh
9008if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9009 emulate sh
9010 NULLCMD=:
9011 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9012 # is contrary to our usage. Disable this feature.
9013 alias -g '${1+"$@"}'='"$@"'
9014 setopt NO_GLOB_SUBST
9015else
9016 case `(set -o) 2>/dev/null` in #(
9017 *posix*) :
9018 set -o posix ;; #(
9019 *) :
9020 ;;
9021esac
9022fi
9023
9024
9025as_nl='
9026'
9027export as_nl
9028# Printing a long string crashes Solaris 7 /usr/bin/printf.
9029as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9030as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9031as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9032# Prefer a ksh shell builtin over an external printf program on Solaris,
9033# but without wasting forks for bash or zsh.
9034if test -z "$BASH_VERSION$ZSH_VERSION" \
9035 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9036 as_echo='print -r --'
9037 as_echo_n='print -rn --'
9038elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9039 as_echo='printf %s\n'
9040 as_echo_n='printf %s'
9041else
9042 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9043 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9044 as_echo_n='/usr/ucb/echo -n'
9045 else
9046 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9047 as_echo_n_body='eval
9048 arg=$1;
9049 case $arg in #(
9050 *"$as_nl"*)
9051 expr "X$arg" : "X\\(.*\\)$as_nl";
9052 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9053 esac;
9054 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9055 '
9056 export as_echo_n_body
9057 as_echo_n='sh -c $as_echo_n_body as_echo'
9058 fi
9059 export as_echo_body
9060 as_echo='sh -c $as_echo_body as_echo'
9061fi
9062
9063# The user is always right.
9064if test "${PATH_SEPARATOR+set}" != set; then
9065 PATH_SEPARATOR=:
9066 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9067 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9068 PATH_SEPARATOR=';'
9069 }
9070fi
9071
9072
9073# IFS
9074# We need space, tab and new line, in precisely that order. Quoting is
9075# there to prevent editors from complaining about space-tab.
9076# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9077# splitting by setting IFS to empty value.)
9078IFS=" "" $as_nl"
9079
9080# Find who we are. Look in the path if we contain no directory separator.
9081as_myself=
9082case $0 in #((
9083 *[\\/]* ) as_myself=$0 ;;
9084 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9090 done
9091IFS=$as_save_IFS
9092
9093 ;;
9094esac
9095# We did not find ourselves, most probably we were run as `sh COMMAND'
9096# in which case we are not to be found in the path.
9097if test "x$as_myself" = x; then
9098 as_myself=$0
9099fi
9100if test ! -f "$as_myself"; then
9101 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9102 exit 1
9103fi
9104
9105# Unset variables that we do not need and which cause bugs (e.g. in
9106# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9107# suppresses any "Segmentation fault" message there. '((' could
9108# trigger a bug in pdksh 5.2.14.
9109for as_var in BASH_ENV ENV MAIL MAILPATH
9110do eval test x\${$as_var+set} = xset \
9111 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9112done
9113PS1='$ '
9114PS2='> '
9115PS4='+ '
9116
9117# NLS nuisances.
9118LC_ALL=C
9119export LC_ALL
9120LANGUAGE=C
9121export LANGUAGE
9122
9123# CDPATH.
9124(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9125
9126
9127# as_fn_error STATUS ERROR [LINENO LOG_FD]
9128# ----------------------------------------
9129# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9130# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9131# script with STATUS, using 1 if that was 0.
9132as_fn_error ()
9133{
9134 as_status=$1; test $as_status -eq 0 && as_status=1
9135 if test "$4"; then
9136 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9137 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9138 fi
9139 $as_echo "$as_me: error: $2" >&2
9140 as_fn_exit $as_status
9141} # as_fn_error
9142
9143
9144# as_fn_set_status STATUS
9145# -----------------------
9146# Set $? to STATUS, without forking.
9147as_fn_set_status ()
9148{
9149 return $1
9150} # as_fn_set_status
9151
9152# as_fn_exit STATUS
9153# -----------------
9154# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9155as_fn_exit ()
9156{
9157 set +e
9158 as_fn_set_status $1
9159 exit $1
9160} # as_fn_exit
9161
9162# as_fn_unset VAR
9163# ---------------
9164# Portably unset VAR.
9165as_fn_unset ()
9166{
9167 { eval $1=; unset $1;}
9168}
9169as_unset=as_fn_unset
9170# as_fn_append VAR VALUE
9171# ----------------------
9172# Append the text in VALUE to the end of the definition contained in VAR. Take
9173# advantage of any shell optimizations that allow amortized linear growth over
9174# repeated appends, instead of the typical quadratic growth present in naive
9175# implementations.
9176if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9177 eval 'as_fn_append ()
9178 {
9179 eval $1+=\$2
9180 }'
9181else
9182 as_fn_append ()
9183 {
9184 eval $1=\$$1\$2
9185 }
9186fi # as_fn_append
9187
9188# as_fn_arith ARG...
9189# ------------------
9190# Perform arithmetic evaluation on the ARGs, and store the result in the
9191# global $as_val. Take advantage of shells that can avoid forks. The arguments
9192# must be portable across $(()) and expr.
9193if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9194 eval 'as_fn_arith ()
9195 {
9196 as_val=$(( $* ))
9197 }'
9198else
9199 as_fn_arith ()
9200 {
9201 as_val=`expr "$@" || test $? -eq 1`
9202 }
9203fi # as_fn_arith
9204
9205
9206if expr a : '\(a\)' >/dev/null 2>&1 &&
9207 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9208 as_expr=expr
9209else
9210 as_expr=false
9211fi
9212
9213if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9214 as_basename=basename
9215else
9216 as_basename=false
9217fi
9218
9219if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9220 as_dirname=dirname
9221else
9222 as_dirname=false
9223fi
9224
9225as_me=`$as_basename -- "$0" ||
9226$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9227 X"$0" : 'X\(//\)$' \| \
9228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9229$as_echo X/"$0" |
9230 sed '/^.*\/\([^/][^/]*\)\/*$/{
9231 s//\1/
9232 q
9233 }
9234 /^X\/\(\/\/\)$/{
9235 s//\1/
9236 q
9237 }
9238 /^X\/\(\/\).*/{
9239 s//\1/
9240 q
9241 }
9242 s/.*/./; q'`
9243
9244# Avoid depending upon Character Ranges.
9245as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9246as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9247as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9248as_cr_digits='0123456789'
9249as_cr_alnum=$as_cr_Letters$as_cr_digits
9250
9251ECHO_C= ECHO_N= ECHO_T=
9252case `echo -n x` in #(((((
9253-n*)
9254 case `echo 'xy\c'` in
9255 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9256 xy) ECHO_C='\c';;
9257 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9258 ECHO_T=' ';;
9259 esac;;
9260*)
9261 ECHO_N='-n';;
9262esac
9263
9264rm -f conf$$ conf$$.exe conf$$.file
9265if test -d conf$$.dir; then
9266 rm -f conf$$.dir/conf$$.file
9267else
9268 rm -f conf$$.dir
9269 mkdir conf$$.dir 2>/dev/null
9270fi
9271if (echo >conf$$.file) 2>/dev/null; then
9272 if ln -s conf$$.file conf$$ 2>/dev/null; then
9273 as_ln_s='ln -s'
9274 # ... but there are two gotchas:
9275 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9276 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9277 # In both cases, we have to default to `cp -pR'.
9278 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9279 as_ln_s='cp -pR'
9280 elif ln conf$$.file conf$$ 2>/dev/null; then
9281 as_ln_s=ln
9282 else
9283 as_ln_s='cp -pR'
9284 fi
9285else
9286 as_ln_s='cp -pR'
9287fi
9288rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9289rmdir conf$$.dir 2>/dev/null
9290
9291
9292# as_fn_mkdir_p
9293# -------------
9294# Create "$as_dir" as a directory, including parents if necessary.
9295as_fn_mkdir_p ()
9296{
9297
9298 case $as_dir in #(
9299 -*) as_dir=./$as_dir;;
9300 esac
9301 test -d "$as_dir" || eval $as_mkdir_p || {
9302 as_dirs=
9303 while :; do
9304 case $as_dir in #(
9305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9306 *) as_qdir=$as_dir;;
9307 esac
9308 as_dirs="'$as_qdir' $as_dirs"
9309 as_dir=`$as_dirname -- "$as_dir" ||
9310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9311 X"$as_dir" : 'X\(//\)[^/]' \| \
9312 X"$as_dir" : 'X\(//\)$' \| \
9313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9314$as_echo X"$as_dir" |
9315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9316 s//\1/
9317 q
9318 }
9319 /^X\(\/\/\)[^/].*/{
9320 s//\1/
9321 q
9322 }
9323 /^X\(\/\/\)$/{
9324 s//\1/
9325 q
9326 }
9327 /^X\(\/\).*/{
9328 s//\1/
9329 q
9330 }
9331 s/.*/./; q'`
9332 test -d "$as_dir" && break
9333 done
9334 test -z "$as_dirs" || eval "mkdir $as_dirs"
9335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9336
9337
9338} # as_fn_mkdir_p
9339if mkdir -p . 2>/dev/null; then
9340 as_mkdir_p='mkdir -p "$as_dir"'
9341else
9342 test -d ./-p && rmdir ./-p
9343 as_mkdir_p=false
9344fi
9345
9346
9347# as_fn_executable_p FILE
9348# -----------------------
9349# Test if FILE is an executable regular file.
9350as_fn_executable_p ()
9351{
9352 test -f "$1" && test -x "$1"
9353} # as_fn_executable_p
9354as_test_x='test -x'
9355as_executable_p=as_fn_executable_p
9356
9357# Sed expression to map a string onto a valid CPP name.
9358as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9359
9360# Sed expression to map a string onto a valid variable name.
9361as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9362
9363
9364exec 6>&1
9365## ----------------------------------- ##
9366## Main body of $CONFIG_STATUS script. ##
9367## ----------------------------------- ##
9368_ASEOF
9369test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9370
9371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9372# Save the log message, to keep $0 and so on meaningful, and to
9373# report actual input values of CONFIG_FILES etc. instead of their
9374# values after options handling.
9375ac_log="
1882generated by GNU Autoconf 2.69. Invocation command line was
1883
1884 $ $0 $@
1885
1886_ACEOF
1887exec 5>>config.log
1888{
1889cat <<_ASUNAME
1890## --------- ##
1891## Platform. ##
1892## --------- ##
1893
1894hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902
1903/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1907/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1910
1911_ASUNAME
1912
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 $as_echo "PATH: $as_dir"
1919 done
1920IFS=$as_save_IFS
1921
1922} >&5
1923
1924cat >&5 <<_ACEOF
1925
1926
1927## ----------- ##
1928## Core tests. ##
1929## ----------- ##
1930
1931_ACEOF
1932
1933
1934# Keep a trace of the command line.
1935# Strip out --no-create and --no-recursion so they do not pile up.
1936# Strip out --silent because we don't want to record it for future runs.
1937# Also quote any args containing shell meta-characters.
1938# Make two passes to allow for proper duplicate-argument suppression.
1939ac_configure_args=
1940ac_configure_args0=
1941ac_configure_args1=
1942ac_must_keep_next=false
1943for ac_pass in 1 2
1944do
1945 for ac_arg
1946 do
1947 case $ac_arg in
1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 continue ;;
1952 *\'*)
1953 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 esac
1955 case $ac_pass in
1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957 2)
1958 as_fn_append ac_configure_args1 " '$ac_arg'"
1959 if test $ac_must_keep_next = true; then
1960 ac_must_keep_next=false # Got value, back to normal.
1961 else
1962 case $ac_arg in
1963 *=* | --config-cache | -C | -disable-* | --disable-* \
1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966 | -with-* | --with-* | -without-* | --without-* | --x)
1967 case "$ac_configure_args0 " in
1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 esac
1970 ;;
1971 -* ) ac_must_keep_next=true ;;
1972 esac
1973 fi
1974 as_fn_append ac_configure_args " '$ac_arg'"
1975 ;;
1976 esac
1977 done
1978done
1979{ ac_configure_args0=; unset ac_configure_args0;}
1980{ ac_configure_args1=; unset ac_configure_args1;}
1981
1982# When interrupted or exit'd, cleanup temporary files, and complete
1983# config.log. We remove comments because anyway the quotes in there
1984# would cause problems or look ugly.
1985# WARNING: Use '\'' to represent an apostrophe within the trap.
1986# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987trap 'exit_status=$?
1988 # Save into config.log some information that might help in debugging.
1989 {
1990 echo
1991
1992 $as_echo "## ---------------- ##
1993## Cache variables. ##
1994## ---------------- ##"
1995 echo
1996 # The following way of writing the cache mishandles newlines in values,
1997(
1998 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1999 eval ac_val=\$$ac_var
2000 case $ac_val in #(
2001 *${as_nl}*)
2002 case $ac_var in #(
2003 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2004$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2005 esac
2006 case $ac_var in #(
2007 _ | IFS | as_nl) ;; #(
2008 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2009 *) { eval $ac_var=; unset $ac_var;} ;;
2010 esac ;;
2011 esac
2012 done
2013 (set) 2>&1 |
2014 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2015 *${as_nl}ac_space=\ *)
2016 sed -n \
2017 "s/'\''/'\''\\\\'\'''\''/g;
2018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019 ;; #(
2020 *)
2021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022 ;;
2023 esac |
2024 sort
2025)
2026 echo
2027
2028 $as_echo "## ----------------- ##
2029## Output variables. ##
2030## ----------------- ##"
2031 echo
2032 for ac_var in $ac_subst_vars
2033 do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
2039 done | sort
2040 echo
2041
2042 if test -n "$ac_subst_files"; then
2043 $as_echo "## ------------------- ##
2044## File substitutions. ##
2045## ------------------- ##"
2046 echo
2047 for ac_var in $ac_subst_files
2048 do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 esac
2053 $as_echo "$ac_var='\''$ac_val'\''"
2054 done | sort
2055 echo
2056 fi
2057
2058 if test -s confdefs.h; then
2059 $as_echo "## ----------- ##
2060## confdefs.h. ##
2061## ----------- ##"
2062 echo
2063 cat confdefs.h
2064 echo
2065 fi
2066 test "$ac_signal" != 0 &&
2067 $as_echo "$as_me: caught signal $ac_signal"
2068 $as_echo "$as_me: exit $exit_status"
2069 } >&5
2070 rm -f core *.core core.conftest.* &&
2071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072 exit $exit_status
2073' 0
2074for ac_signal in 1 2 13 15; do
2075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2076done
2077ac_signal=0
2078
2079# confdefs.h avoids OS command line length limits that DEFS can exceed.
2080rm -f -r conftest* confdefs.h
2081
2082$as_echo "/* confdefs.h */" > confdefs.h
2083
2084# Predefined preprocessor variables.
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_NAME "$PACKAGE_NAME"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_VERSION "$PACKAGE_VERSION"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_STRING "$PACKAGE_STRING"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2104_ACEOF
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_URL "$PACKAGE_URL"
2108_ACEOF
2109
2110
2111# Let the site file select an alternate cache file if it wants to.
2112# Prefer an explicitly selected file to automatically selected ones.
2113ac_site_file1=NONE
2114ac_site_file2=NONE
2115if test -n "$CONFIG_SITE"; then
2116 # We do not want a PATH search for config.site.
2117 case $CONFIG_SITE in #((
2118 -*) ac_site_file1=./$CONFIG_SITE;;
2119 */*) ac_site_file1=$CONFIG_SITE;;
2120 *) ac_site_file1=./$CONFIG_SITE;;
2121 esac
2122elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
2128fi
2129for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130do
2131 test "x$ac_site_file" = xNONE && continue
2132 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file" \
2137 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139as_fn_error $? "failed to load site script $ac_site_file
2140See \`config.log' for more details" "$LINENO" 5; }
2141 fi
2142done
2143
2144if test -r "$cache_file"; then
2145 # Some versions of bash will fail to source /dev/null (special files
2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149$as_echo "$as_me: loading cache $cache_file" >&6;}
2150 case $cache_file in
2151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
2153 esac
2154 fi
2155else
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157$as_echo "$as_me: creating cache $cache_file" >&6;}
2158 >$cache_file
2159fi
2160
2161# Check that the precious variables saved in the cache have kept the same
2162# value.
2163ac_cache_corrupted=false
2164for ac_var in $ac_precious_vars; do
2165 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166 eval ac_new_set=\$ac_env_${ac_var}_set
2167 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168 eval ac_new_val=\$ac_env_${ac_var}_value
2169 case $ac_old_set,$ac_new_set in
2170 set,)
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2173 ac_cache_corrupted=: ;;
2174 ,set)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,);;
2179 *)
2180 if test "x$ac_old_val" != "x$ac_new_val"; then
2181 # differences in whitespace do not lead to failure.
2182 ac_old_val_w=`echo x $ac_old_val`
2183 ac_new_val_w=`echo x $ac_new_val`
2184 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187 ac_cache_corrupted=:
2188 else
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191 eval $ac_var=\$ac_old_val
2192 fi
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2194$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2196$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2197 fi;;
2198 esac
2199 # Pass precious variables to config.status.
2200 if test "$ac_new_set" = set; then
2201 case $ac_new_val in
2202 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2203 *) ac_arg=$ac_var=$ac_new_val ;;
2204 esac
2205 case " $ac_configure_args " in
2206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2207 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2208 esac
2209 fi
2210done
2211if $ac_cache_corrupted; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217fi
2218## -------------------- ##
2219## Main body of script. ##
2220## -------------------- ##
2221
2222ac_ext=c
2223ac_cpp='$CPP $CPPFLAGS'
2224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227
2228
2229
2230#--------------------------------------------------------------------
2231# Call TEA_INIT as the first TEA_ macro to set up initial vars.
2232# This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
2233# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
2234#--------------------------------------------------------------------
2235
2236
2237 # TEA extensions pass this us the version of TEA they think they
2238 # are compatible with.
2239 TEA_VERSION="3.9"
2240
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5
2242$as_echo_n "checking for correct TEA configuration... " >&6; }
2243 if test x"${PACKAGE_NAME}" = x ; then
2244 as_fn_error $? "
2245The PACKAGE_NAME variable must be defined by your TEA configure.in" "$LINENO" 5
2246 fi
2247 if test x"3.9" = x ; then
2248 as_fn_error $? "
2249TEA version not specified." "$LINENO" 5
2250 elif test "3.9" != "${TEA_VERSION}" ; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5
2252$as_echo "warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; }
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2255$as_echo "ok (TEA ${TEA_VERSION})" >&6; }
2256 fi
2257
2258 # If the user did not set CFLAGS, set it now to keep macros
2259 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
2260 if test "${CFLAGS+set}" != "set" ; then
2261 CFLAGS=""
2262 fi
2263
2264 case "`uname -s`" in
2265 *win32*|*WIN32*|*MINGW32_*)
2266 # Extract the first word of "cygpath", so it can be a program name with args.
2267set dummy cygpath; ac_word=$2
2268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2269$as_echo_n "checking for $ac_word... " >&6; }
2270if ${ac_cv_prog_CYGPATH+:} false; then :
2271 $as_echo_n "(cached) " >&6
2272else
2273 if test -n "$CYGPATH"; then
2274 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2275else
2276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277for as_dir in $PATH
2278do
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283 ac_cv_prog_CYGPATH="cygpath -w"
2284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 break 2
2286 fi
2287done
2288 done
2289IFS=$as_save_IFS
2290
2291 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2292fi
2293fi
2294CYGPATH=$ac_cv_prog_CYGPATH
2295if test -n "$CYGPATH"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2297$as_echo "$CYGPATH" >&6; }
2298else
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2300$as_echo "no" >&6; }
2301fi
2302
2303
2304 EXEEXT=".exe"
2305 TEA_PLATFORM="windows"
2306 ;;
2307 *CYGWIN_*)
2308 CYGPATH=echo
2309 EXEEXT=".exe"
2310 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG
2311 ;;
2312 *)
2313 CYGPATH=echo
2314 # Maybe we are cross-compiling....
2315 case ${host_alias} in
2316 *mingw32*)
2317 EXEEXT=".exe"
2318 TEA_PLATFORM="windows"
2319 ;;
2320 *)
2321 EXEEXT=""
2322 TEA_PLATFORM="unix"
2323 ;;
2324 esac
2325 ;;
2326 esac
2327
2328 # Check if exec_prefix is set. If not use fall back to prefix.
2329 # Note when adjusted, so that TEA_PREFIX can correct for this.
2330 # This is needed for recursive configures, since autoconf propagates
2331 # $prefix, but not $exec_prefix (doh!).
2332 if test x$exec_prefix = xNONE ; then
2333 exec_prefix_default=yes
2334 exec_prefix=$prefix
2335 fi
2336
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
2338$as_echo "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
2339
2340
2341
2342
2343 # This package name must be replaced statically for AC_SUBST to work
2344
2345 # Substitute STUB_LIB_FILE in case package creates a stub library too.
2346
2347
2348 # We AC_SUBST these here to ensure they are subst'ed,
2349 # in case the user doesn't call TEA_ADD_...
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359ac_aux_dir=
2360for ac_dir in tclconfig "$srcdir"/tclconfig; do
2361 if test -f "$ac_dir/install-sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install-sh -c"
2364 break
2365 elif test -f "$ac_dir/install.sh"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/install.sh -c"
2368 break
2369 elif test -f "$ac_dir/shtool"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/shtool install -c"
2372 break
2373 fi
2374done
2375if test -z "$ac_aux_dir"; then
2376 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tclconfig \"$srcdir\"/tclconfig" "$LINENO" 5
2377fi
2378
2379# These three variables are undocumented and unsupported,
2380# and are intended to be withdrawn in a future Autoconf release.
2381# They can cause serious problems if a builder's source tree is in a directory
2382# whose full name contains unusual characters.
2383ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2386
2387
2388
2389#--------------------------------------------------------------------
2390# Load the tclConfig.sh file
2391#--------------------------------------------------------------------
2392
2393
2394
2395 #
2396 # Ok, lets find the tcl configuration
2397 # First, look for one uninstalled.
2398 # the alternative search directory is invoked by --with-tcl
2399 #
2400
2401 if test x"${no_tcl}" = x ; then
2402 # we reset no_tcl in case something fails here
2403 no_tcl=true
2404
2405# Check whether --with-tcl was given.
2406if test "${with_tcl+set}" = set; then :
2407 withval=$with_tcl; with_tclconfig="${withval}"
2408fi
2409
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2411$as_echo_n "checking for Tcl configuration... " >&6; }
2412 if ${ac_cv_c_tclconfig+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414else
2415
2416
2417 # First check to see if --with-tcl was specified.
2418 if test x"${with_tclconfig}" != x ; then
2419 case "${with_tclconfig}" in
2420 */tclConfig.sh )
2421 if test -f "${with_tclconfig}"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
2423$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2424 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2425 fi ;;
2426 esac
2427 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2428 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2429 else
2430 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2431 fi
2432 fi
2433
2434 # then check for a private Tcl installation
2435 if test x"${ac_cv_c_tclconfig}" = x ; then
2436 for i in \
2437 ../tcl \
2438 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2439 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2440 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2441 ../../tcl \
2442 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2443 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2444 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2445 ../../../tcl \
2446 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2447 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2448 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2449 if test "${TEA_PLATFORM}" = "windows" \
2450 -a -f "$i/win/tclConfig.sh" ; then
2451 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2452 break
2453 fi
2454 if test -f "$i/unix/tclConfig.sh" ; then
2455 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2456 break
2457 fi
2458 done
2459 fi
2460
2461 # on Darwin, check in Framework installation locations
2462 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2463 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2464 `ls -d /Library/Frameworks 2>/dev/null` \
2465 `ls -d /Network/Library/Frameworks 2>/dev/null` \
2466 `ls -d /System/Library/Frameworks 2>/dev/null` \
2467 ; do
2468 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2469 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2470 break
2471 fi
2472 done
2473 fi
2474
2475 # TEA specific: on Windows, check in common installation locations
2476 if test "${TEA_PLATFORM}" = "windows" \
2477 -a x"${ac_cv_c_tclconfig}" = x ; then
2478 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2479 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2480 ; do
2481 if test -f "$i/tclConfig.sh" ; then
2482 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2483 break
2484 fi
2485 done
2486 fi
2487
2488 # check in a few common install locations
2489 if test x"${ac_cv_c_tclconfig}" = x ; then
2490 for i in `ls -d ${libdir} 2>/dev/null` \
2491 `ls -d ${exec_prefix}/lib 2>/dev/null` \
2492 `ls -d ${prefix}/lib 2>/dev/null` \
2493 `ls -d /usr/local/lib 2>/dev/null` \
2494 `ls -d /usr/contrib/lib 2>/dev/null` \
2495 `ls -d /usr/lib 2>/dev/null` \
2496 `ls -d /usr/lib64 2>/dev/null` \
2497 `ls -d /usr/lib/tcl8.6 2>/dev/null` \
2498 `ls -d /usr/lib/tcl8.5 2>/dev/null` \
2499 ; do
2500 if test -f "$i/tclConfig.sh" ; then
2501 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2502 break
2503 fi
2504 done
2505 fi
2506
2507 # check in a few other private locations
2508 if test x"${ac_cv_c_tclconfig}" = x ; then
2509 for i in \
2510 ${srcdir}/../tcl \
2511 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2512 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2513 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2514 if test "${TEA_PLATFORM}" = "windows" \
2515 -a -f "$i/win/tclConfig.sh" ; then
2516 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2517 break
2518 fi
2519 if test -f "$i/unix/tclConfig.sh" ; then
2520 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2521 break
2522 fi
2523 done
2524 fi
2525
2526fi
2527
2528
2529 if test x"${ac_cv_c_tclconfig}" = x ; then
2530 TCL_BIN_DIR="# no Tcl configs found"
2531 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2532 else
2533 no_tcl=
2534 TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2536$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2537 fi
2538 fi
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545if test -n "$ac_tool_prefix"; then
2546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2547set dummy ${ac_tool_prefix}gcc; ac_word=$2
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549$as_echo_n "checking for $ac_word... " >&6; }
2550if ${ac_cv_prog_CC+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH
2558do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567done
2568 done
2569IFS=$as_save_IFS
2570
2571fi
2572fi
2573CC=$ac_cv_prog_CC
2574if test -n "$CC"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2576$as_echo "$CC" >&6; }
2577else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579$as_echo "no" >&6; }
2580fi
2581
2582
2583fi
2584if test -z "$ac_cv_prog_CC"; then
2585 ac_ct_CC=$CC
2586 # Extract the first word of "gcc", so it can be a program name with args.
2587set dummy gcc; ac_word=$2
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589$as_echo_n "checking for $ac_word... " >&6; }
2590if ${ac_cv_prog_ac_ct_CC+:} false; then :
2591 $as_echo_n "(cached) " >&6
2592else
2593 if test -n "$ac_ct_CC"; then
2594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2595else
2596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2603 ac_cv_prog_ac_ct_CC="gcc"
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2606 fi
2607done
2608 done
2609IFS=$as_save_IFS
2610
2611fi
2612fi
2613ac_ct_CC=$ac_cv_prog_ac_ct_CC
2614if test -n "$ac_ct_CC"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2616$as_echo "$ac_ct_CC" >&6; }
2617else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619$as_echo "no" >&6; }
2620fi
2621
2622 if test "x$ac_ct_CC" = x; then
2623 CC=""
2624 else
2625 case $cross_compiling:$ac_tool_warned in
2626yes:)
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2629ac_tool_warned=yes ;;
2630esac
2631 CC=$ac_ct_CC
2632 fi
2633else
2634 CC="$ac_cv_prog_CC"
2635fi
2636
2637if test -z "$CC"; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640set dummy ${ac_tool_prefix}cc; ac_word=$2
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642$as_echo_n "checking for $ac_word... " >&6; }
2643if ${ac_cv_prog_CC+:} false; then :
2644 $as_echo_n "(cached) " >&6
2645else
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_CC="${ac_tool_prefix}cc"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660done
2661 done
2662IFS=$as_save_IFS
2663
2664fi
2665fi
2666CC=$ac_cv_prog_CC
2667if test -n "$CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669$as_echo "$CC" >&6; }
2670else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672$as_echo "no" >&6; }
2673fi
2674
2675
2676 fi
2677fi
2678if test -z "$CC"; then
2679 # Extract the first word of "cc", so it can be a program name with args.
2680set dummy cc; ac_word=$2
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682$as_echo_n "checking for $ac_word... " >&6; }
2683if ${ac_cv_prog_CC+:} false; then :
2684 $as_echo_n "(cached) " >&6
2685else
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689 ac_prog_rejected=no
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698 ac_prog_rejected=yes
2699 continue
2700 fi
2701 ac_cv_prog_CC="cc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2704 fi
2705done
2706 done
2707IFS=$as_save_IFS
2708
2709if test $ac_prog_rejected = yes; then
2710 # We found a bogon in the path, so make sure we never use it.
2711 set dummy $ac_cv_prog_CC
2712 shift
2713 if test $# != 0; then
2714 # We chose a different compiler from the bogus one.
2715 # However, it has the same basename, so the bogon will be chosen
2716 # first if we set CC to just the basename; use the full file name.
2717 shift
2718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2719 fi
2720fi
2721fi
2722fi
2723CC=$ac_cv_prog_CC
2724if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726$as_echo "$CC" >&6; }
2727else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729$as_echo "no" >&6; }
2730fi
2731
2732
2733fi
2734if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 for ac_prog in cl.exe
2737 do
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if ${ac_cv_prog_CC+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
2760 done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765CC=$ac_cv_prog_CC
2766if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768$as_echo "$CC" >&6; }
2769else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774
2775 test -n "$CC" && break
2776 done
2777fi
2778if test -z "$CC"; then
2779 ac_ct_CC=$CC
2780 for ac_prog in cl.exe
2781do
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783set dummy $ac_prog; ac_word=$2
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
2786if ${ac_cv_prog_ac_ct_CC+:} false; then :
2787 $as_echo_n "(cached) " >&6
2788else
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799 ac_cv_prog_ac_ct_CC="$ac_prog"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803done
2804 done
2805IFS=$as_save_IFS
2806
2807fi
2808fi
2809ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810if test -n "$ac_ct_CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2812$as_echo "$ac_ct_CC" >&6; }
2813else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815$as_echo "no" >&6; }
2816fi
2817
2818
2819 test -n "$ac_ct_CC" && break
2820done
2821
2822 if test "x$ac_ct_CC" = x; then
2823 CC=""
2824 else
2825 case $cross_compiling:$ac_tool_warned in
2826yes:)
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2829ac_tool_warned=yes ;;
2830esac
2831 CC=$ac_ct_CC
2832 fi
2833fi
2834
2835fi
2836
2837
2838test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840as_fn_error $? "no acceptable C compiler found in \$PATH
2841See \`config.log' for more details" "$LINENO" 5; }
2842
2843# Provide some information about the compiler.
2844$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2845set X $ac_compile
2846ac_compiler=$2
2847for ac_option in --version -v -V -qversion; do
2848 { { ac_try="$ac_compiler $ac_option >&5"
2849case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
2853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854$as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2856 ac_status=$?
2857 if test -s conftest.err; then
2858 sed '10a\
2859... rest of stderr output deleted ...
2860 10q' conftest.err >conftest.er1
2861 cat conftest.er1 >&5
2862 fi
2863 rm -f conftest.er1 conftest.err
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; }
2866done
2867
2868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869/* end confdefs.h. */
2870
2871int
2872main ()
2873{
2874
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879ac_clean_files_save=$ac_clean_files
2880ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2881# Try to create an executable without -o first, disregard a.out.
2882# It will help us diagnose broken compilers, and finding out an intuition
2883# of exeext.
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2885$as_echo_n "checking whether the C compiler works... " >&6; }
2886ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2887
2888# The possible output files:
2889ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2890
2891ac_rmfiles=
2892for ac_file in $ac_files
2893do
2894 case $ac_file in
2895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2896 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2897 esac
2898done
2899rm -f $ac_rmfiles
2900
2901if { { ac_try="$ac_link_default"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2907$as_echo "$ac_try_echo"; } >&5
2908 (eval "$ac_link_default") 2>&5
2909 ac_status=$?
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; }; then :
2912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2913# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2914# in a Makefile. We should not override ac_cv_exeext if it was cached,
2915# so that the user can short-circuit this test for compilers unknown to
2916# Autoconf.
2917for ac_file in $ac_files ''
2918do
2919 test -f "$ac_file" || continue
2920 case $ac_file in
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2922 ;;
2923 [ab].out )
2924 # We found the default executable, but exeext='' is most
2925 # certainly right.
2926 break;;
2927 *.* )
2928 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2929 then :; else
2930 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 fi
2932 # We set ac_cv_exeext here because the later test for it is not
2933 # safe: cross compilers may not add the suffix if given an `-o'
2934 # argument, so we may need to know it at that point already.
2935 # Even if this section looks crufty: it has the advantage of
2936 # actually working.
2937 break;;
2938 * )
2939 break;;
2940 esac
2941done
2942test "$ac_cv_exeext" = no && ac_cv_exeext=
2943
2944else
2945 ac_file=''
2946fi
2947if test -z "$ac_file"; then :
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950$as_echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955as_fn_error 77 "C compiler cannot create executables
2956See \`config.log' for more details" "$LINENO" 5; }
2957else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959$as_echo "yes" >&6; }
2960fi
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2962$as_echo_n "checking for C compiler default output file name... " >&6; }
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2964$as_echo "$ac_file" >&6; }
2965ac_exeext=$ac_cv_exeext
2966
2967rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2968ac_clean_files=$ac_clean_files_save
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2970$as_echo_n "checking for suffix of executables... " >&6; }
2971if { { ac_try="$ac_link"
2972case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977$as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_link") 2>&5
2979 ac_status=$?
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; then :
2982 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2983# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2984# work properly (i.e., refer to `conftest.exe'), while it won't with
2985# `rm'.
2986for ac_file in conftest.exe conftest conftest.*; do
2987 test -f "$ac_file" || continue
2988 case $ac_file in
2989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2990 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2991 break;;
2992 * ) break;;
2993 esac
2994done
2995else
2996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2999See \`config.log' for more details" "$LINENO" 5; }
3000fi
3001rm -f conftest conftest$ac_cv_exeext
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3003$as_echo "$ac_cv_exeext" >&6; }
3004
3005rm -f conftest.$ac_ext
3006EXEEXT=$ac_cv_exeext
3007ac_exeext=$EXEEXT
3008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010#include <stdio.h>
3011int
3012main ()
3013{
3014FILE *f = fopen ("conftest.out", "w");
3015 return ferror (f) || fclose (f) != 0;
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021ac_clean_files="$ac_clean_files conftest.out"
3022# Check that the compiler produces executables we can run. If not, either
3023# the compiler is broken, or we cross compile.
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3025$as_echo_n "checking whether we are cross compiling... " >&6; }
3026if test "$cross_compiling" != yes; then
3027 { { ac_try="$ac_link"
3028case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
3032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033$as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link") 2>&5
3035 ac_status=$?
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }
3038 if { ac_try='./conftest$ac_cv_exeext'
3039 { { case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044$as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }; }; then
3049 cross_compiling=no
3050 else
3051 if test "$cross_compiling" = maybe; then
3052 cross_compiling=yes
3053 else
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056as_fn_error $? "cannot run C compiled programs.
3057If you meant to cross compile, use \`--host'.
3058See \`config.log' for more details" "$LINENO" 5; }
3059 fi
3060 fi
3061fi
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3063$as_echo "$cross_compiling" >&6; }
3064
3065rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3066ac_clean_files=$ac_clean_files_save
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3068$as_echo_n "checking for suffix of object files... " >&6; }
3069if ${ac_cv_objext+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071else
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073/* end confdefs.h. */
3074
3075int
3076main ()
3077{
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083rm -f conftest.o conftest.obj
3084if { { ac_try="$ac_compile"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compile") 2>&5
3092 ac_status=$?
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; then :
3095 for ac_file in conftest.o conftest.obj conftest.*; do
3096 test -f "$ac_file" || continue;
3097 case $ac_file in
3098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3100 break;;
3101 esac
3102done
3103else
3104 $as_echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109as_fn_error $? "cannot compute suffix of object files: cannot compile
3110See \`config.log' for more details" "$LINENO" 5; }
3111fi
3112rm -f conftest.$ac_cv_objext conftest.$ac_ext
3113fi
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3115$as_echo "$ac_cv_objext" >&6; }
3116OBJEXT=$ac_cv_objext
3117ac_objext=$OBJEXT
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3119$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3120if ${ac_cv_c_compiler_gnu+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122else
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124/* end confdefs.h. */
3125
3126int
3127main ()
3128{
3129#ifndef __GNUC__
3130 choke me
3131#endif
3132
3133 ;
3134 return 0;
3135}
3136_ACEOF
3137if ac_fn_c_try_compile "$LINENO"; then :
3138 ac_compiler_gnu=yes
3139else
3140 ac_compiler_gnu=no
3141fi
3142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143ac_cv_c_compiler_gnu=$ac_compiler_gnu
3144
3145fi
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3147$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3148if test $ac_compiler_gnu = yes; then
3149 GCC=yes
3150else
3151 GCC=
3152fi
3153ac_test_CFLAGS=${CFLAGS+set}
3154ac_save_CFLAGS=$CFLAGS
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3156$as_echo_n "checking whether $CC accepts -g... " >&6; }
3157if ${ac_cv_prog_cc_g+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159else
3160 ac_save_c_werror_flag=$ac_c_werror_flag
3161 ac_c_werror_flag=yes
3162 ac_cv_prog_cc_g=no
3163 CFLAGS="-g"
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h. */
3166
3167int
3168main ()
3169{
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175if ac_fn_c_try_compile "$LINENO"; then :
3176 ac_cv_prog_cc_g=yes
3177else
3178 CFLAGS=""
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180/* end confdefs.h. */
3181
3182int
3183main ()
3184{
3185
3186 ;
3187 return 0;
3188}
3189_ACEOF
3190if ac_fn_c_try_compile "$LINENO"; then :
3191
3192else
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3194 CFLAGS="-g"
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196/* end confdefs.h. */
3197
3198int
3199main ()
3200{
3201
3202 ;
3203 return 0;
3204}
3205_ACEOF
3206if ac_fn_c_try_compile "$LINENO"; then :
3207 ac_cv_prog_cc_g=yes
3208fi
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210fi
3211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212fi
3213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3215fi
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3217$as_echo "$ac_cv_prog_cc_g" >&6; }
3218if test "$ac_test_CFLAGS" = set; then
3219 CFLAGS=$ac_save_CFLAGS
3220elif test $ac_cv_prog_cc_g = yes; then
3221 if test "$GCC" = yes; then
3222 CFLAGS="-g -O2"
3223 else
3224 CFLAGS="-g"
3225 fi
3226else
3227 if test "$GCC" = yes; then
3228 CFLAGS="-O2"
3229 else
3230 CFLAGS=
3231 fi
3232fi
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3234$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3235if ${ac_cv_prog_cc_c89+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237else
3238 ac_cv_prog_cc_c89=no
3239ac_save_CC=$CC
3240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241/* end confdefs.h. */
3242#include <stdarg.h>
3243#include <stdio.h>
3244struct stat;
3245/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3246struct buf { int x; };
3247FILE * (*rcsopen) (struct buf *, struct stat *, int);
3248static char *e (p, i)
3249 char **p;
3250 int i;
3251{
3252 return p[i];
3253}
3254static char *f (char * (*g) (char **, int), char **p, ...)
3255{
3256 char *s;
3257 va_list v;
3258 va_start (v,p);
3259 s = g (p, va_arg (v,int));
3260 va_end (v);
3261 return s;
3262}
3263
3264/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3265 function prototypes and stuff, but not '\xHH' hex character constants.
3266 These don't provoke an error unfortunately, instead are silently treated
3267 as 'x'. The following induces an error, until -std is added to get
3268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3269 array size at least. It's necessary to write '\x00'==0 to get something
3270 that's true only with -std. */
3271int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272
3273/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3274 inside strings and character constants. */
3275#define FOO(x) 'x'
3276int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277
3278int test (int i, double x);
3279struct s1 {int (*f) (int a);};
3280struct s2 {int (*f) (double a);};
3281int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3282int argc;
3283char **argv;
3284int
3285main ()
3286{
3287return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3288 ;
3289 return 0;
3290}
3291_ACEOF
3292for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3294do
3295 CC="$ac_save_CC $ac_arg"
3296 if ac_fn_c_try_compile "$LINENO"; then :
3297 ac_cv_prog_cc_c89=$ac_arg
3298fi
3299rm -f core conftest.err conftest.$ac_objext
3300 test "x$ac_cv_prog_cc_c89" != "xno" && break
3301done
3302rm -f conftest.$ac_ext
3303CC=$ac_save_CC
3304
3305fi
3306# AC_CACHE_VAL
3307case "x$ac_cv_prog_cc_c89" in
3308 x)
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3310$as_echo "none needed" >&6; } ;;
3311 xno)
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3313$as_echo "unsupported" >&6; } ;;
3314 *)
3315 CC="$CC $ac_cv_prog_cc_c89"
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3317$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3318esac
3319if test "x$ac_cv_prog_cc_c89" != xno; then :
3320
3321fi
3322
3323ac_ext=c
3324ac_cpp='$CPP $CPPFLAGS'
3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328
3329
3330
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
3332$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
3333
3334 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
3336$as_echo "loading" >&6; }
3337 . "${TCL_BIN_DIR}/tclConfig.sh"
3338 else
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
3340$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
3341 fi
3342
3343 # eval is required to do the TCL_DBGX substitution
3344 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
3345 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
3346
3347 # If the TCL_BIN_DIR is the build directory (not the install directory),
3348 # then set the common variable name to the value of the build variables.
3349 # For example, the variable TCL_LIB_SPEC will be set to the value
3350 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
3351 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
3352 # installed and uninstalled version of Tcl.
3353 if test -f "${TCL_BIN_DIR}/Makefile" ; then
3354 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
3355 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
3356 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
3357 elif test "`uname -s`" = "Darwin"; then
3358 # If Tcl was built as a framework, attempt to use the libraries
3359 # from the framework at the given location so that linking works
3360 # against Tcl.framework installed in an arbitrary location.
3361 case ${TCL_DEFS} in
3362 *TCL_FRAMEWORK*)
3363 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
3364 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
3365 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
3366 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
3367 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
3368 break
3369 fi
3370 done
3371 fi
3372 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
3373 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
3374 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
3375 fi
3376 ;;
3377 esac
3378 fi
3379
3380 # eval is required to do the TCL_DBGX substitution
3381 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
3382 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
3383 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
3384 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5
3400$as_echo_n "checking platform... " >&6; }
3401 hold_cc=$CC; CC="$TCL_CC"
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403/* end confdefs.h. */
3404
3405int
3406main ()
3407{
3408
3409 #ifdef _WIN32
3410 #error win32
3411 #endif
3412
3413 ;
3414 return 0;
3415}
3416_ACEOF
3417if ac_fn_c_try_compile "$LINENO"; then :
3418 TEA_PLATFORM="unix"
3419else
3420 TEA_PLATFORM="windows"
3421
3422fi
3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 CC=$hold_cc
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
3426$as_echo "$TEA_PLATFORM" >&6; }
3427
3428 # The BUILD_$pkg is to define the correct extern storage class
3429 # handling when making this package
3430
3431cat >>confdefs.h <<_ACEOF
3432#define BUILD_${PACKAGE_NAME} /**/
3433_ACEOF
3434
3435 # Do this here as we have fully defined TEA_PLATFORM now
3436 if test "${TEA_PLATFORM}" = "windows" ; then
3437 EXEEXT=".exe"
3438 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
3439 fi
3440
3441 # TEA specific:
3442
3443
3444
3445
3446
3447
3448
3449
3450#--------------------------------------------------------------------
3451# Load the tkConfig.sh file if necessary (Tk extension)
3452#--------------------------------------------------------------------
3453
3454#TEA_PATH_TKCONFIG
3455#TEA_LOAD_TKCONFIG
3456
3457#-----------------------------------------------------------------------
3458# Handle the --prefix=... option by defaulting to what Tcl gave.
3459# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
3460#-----------------------------------------------------------------------
3461
3462
3463 if test "${prefix}" = "NONE"; then
3464 prefix_default=yes
3465 if test x"${TCL_PREFIX}" != x; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
3467$as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
3468 prefix=${TCL_PREFIX}
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
3471$as_echo "$as_me: --prefix defaulting to /usr/local" >&6;}
3472 prefix=/usr/local
3473 fi
3474 fi
3475 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
3476 -o x"${exec_prefix_default}" = x"yes" ; then
3477 if test x"${TCL_EXEC_PREFIX}" != x; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
3479$as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
3480 exec_prefix=${TCL_EXEC_PREFIX}
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
3483$as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
3484 exec_prefix=$prefix
3485 fi
3486 fi
3487
3488
3489#-----------------------------------------------------------------------
3490# Standard compiler checks.
3491# This sets up CC by using the CC env var, or looks for gcc otherwise.
3492# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
3493# the basic setup necessary to compile executables.
3494#-----------------------------------------------------------------------
3495
3496
3497 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
3498 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
3499
3500 ac_ext=c
3501ac_cpp='$CPP $CPPFLAGS'
3502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3507set dummy ${ac_tool_prefix}gcc; ac_word=$2
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509$as_echo_n "checking for $ac_word... " >&6; }
3510if ${ac_cv_prog_CC+:} false; then :
3511 $as_echo_n "(cached) " >&6
3512else
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3515else
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527done
3528 done
3529IFS=$as_save_IFS
3530
3531fi
3532fi
3533CC=$ac_cv_prog_CC
3534if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536$as_echo "$CC" >&6; }
3537else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539$as_echo "no" >&6; }
3540fi
3541
3542
3543fi
3544if test -z "$ac_cv_prog_CC"; then
3545 ac_ct_CC=$CC
3546 # Extract the first word of "gcc", so it can be a program name with args.
3547set dummy gcc; ac_word=$2
3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549$as_echo_n "checking for $ac_word... " >&6; }
3550if ${ac_cv_prog_ac_ct_CC+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552else
3553 if test -n "$ac_ct_CC"; then
3554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3555else
3556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557for as_dir in $PATH
3558do
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 ac_cv_prog_ac_ct_CC="gcc"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 break 2
3566 fi
3567done
3568 done
3569IFS=$as_save_IFS
3570
3571fi
3572fi
3573ac_ct_CC=$ac_cv_prog_ac_ct_CC
3574if test -n "$ac_ct_CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3576$as_echo "$ac_ct_CC" >&6; }
3577else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
3580fi
3581
3582 if test "x$ac_ct_CC" = x; then
3583 CC=""
3584 else
3585 case $cross_compiling:$ac_tool_warned in
3586yes:)
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589ac_tool_warned=yes ;;
3590esac
3591 CC=$ac_ct_CC
3592 fi
3593else
3594 CC="$ac_cv_prog_CC"
3595fi
3596
3597if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3600set dummy ${ac_tool_prefix}cc; ac_word=$2
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602$as_echo_n "checking for $ac_word... " >&6; }
3603if ${ac_cv_prog_CC+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605else
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3608else
3609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610for as_dir in $PATH
3611do
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_CC="${ac_tool_prefix}cc"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620done
3621 done
3622IFS=$as_save_IFS
3623
3624fi
3625fi
3626CC=$ac_cv_prog_CC
3627if test -n "$CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629$as_echo "$CC" >&6; }
3630else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632$as_echo "no" >&6; }
3633fi
3634
3635
3636 fi
3637fi
3638if test -z "$CC"; then
3639 # Extract the first word of "cc", so it can be a program name with args.
3640set dummy cc; ac_word=$2
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642$as_echo_n "checking for $ac_word... " >&6; }
3643if ${ac_cv_prog_CC+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645else
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648else
3649 ac_prog_rejected=no
3650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651for as_dir in $PATH
3652do
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3658 ac_prog_rejected=yes
3659 continue
3660 fi
3661 ac_cv_prog_CC="cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3664 fi
3665done
3666 done
3667IFS=$as_save_IFS
3668
3669if test $ac_prog_rejected = yes; then
3670 # We found a bogon in the path, so make sure we never use it.
3671 set dummy $ac_cv_prog_CC
3672 shift
3673 if test $# != 0; then
3674 # We chose a different compiler from the bogus one.
3675 # However, it has the same basename, so the bogon will be chosen
3676 # first if we set CC to just the basename; use the full file name.
3677 shift
3678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3679 fi
3680fi
3681fi
3682fi
3683CC=$ac_cv_prog_CC
3684if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686$as_echo "$CC" >&6; }
3687else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689$as_echo "no" >&6; }
3690fi
3691
3692
3693fi
3694if test -z "$CC"; then
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog in cl.exe
3697 do
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701$as_echo_n "checking for $ac_word... " >&6; }
3702if ${ac_cv_prog_CC+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704else
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC="$CC" # Let the user override the test.
3707else
3708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709for as_dir in $PATH
3710do
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3718 fi
3719done
3720 done
3721IFS=$as_save_IFS
3722
3723fi
3724fi
3725CC=$ac_cv_prog_CC
3726if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728$as_echo "$CC" >&6; }
3729else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731$as_echo "no" >&6; }
3732fi
3733
3734
3735 test -n "$CC" && break
3736 done
3737fi
3738if test -z "$CC"; then
3739 ac_ct_CC=$CC
3740 for ac_prog in cl.exe
3741do
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743set dummy $ac_prog; ac_word=$2
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745$as_echo_n "checking for $ac_word... " >&6; }
3746if ${ac_cv_prog_ac_ct_CC+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748else
3749 if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_ac_ct_CC="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3762 fi
3763done
3764 done
3765IFS=$as_save_IFS
3766
3767fi
3768fi
3769ac_ct_CC=$ac_cv_prog_ac_ct_CC
3770if test -n "$ac_ct_CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772$as_echo "$ac_ct_CC" >&6; }
3773else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775$as_echo "no" >&6; }
3776fi
3777
3778
3779 test -n "$ac_ct_CC" && break
3780done
3781
3782 if test "x$ac_ct_CC" = x; then
3783 CC=""
3784 else
3785 case $cross_compiling:$ac_tool_warned in
3786yes:)
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789ac_tool_warned=yes ;;
3790esac
3791 CC=$ac_ct_CC
3792 fi
3793fi
3794
3795fi
3796
3797
3798test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800as_fn_error $? "no acceptable C compiler found in \$PATH
3801See \`config.log' for more details" "$LINENO" 5; }
3802
3803# Provide some information about the compiler.
3804$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3805set X $ac_compile
3806ac_compiler=$2
3807for ac_option in --version -v -V -qversion; do
3808 { { ac_try="$ac_compiler $ac_option >&5"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814$as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3816 ac_status=$?
3817 if test -s conftest.err; then
3818 sed '10a\
3819... rest of stderr output deleted ...
3820 10q' conftest.err >conftest.er1
3821 cat conftest.er1 >&5
3822 fi
3823 rm -f conftest.er1 conftest.err
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3826done
3827
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3829$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3830if ${ac_cv_c_compiler_gnu+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832else
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834/* end confdefs.h. */
3835
3836int
3837main ()
3838{
3839#ifndef __GNUC__
3840 choke me
3841#endif
3842
3843 ;
3844 return 0;
3845}
3846_ACEOF
3847if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_compiler_gnu=yes
3849else
3850 ac_compiler_gnu=no
3851fi
3852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853ac_cv_c_compiler_gnu=$ac_compiler_gnu
3854
3855fi
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3857$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3858if test $ac_compiler_gnu = yes; then
3859 GCC=yes
3860else
3861 GCC=
3862fi
3863ac_test_CFLAGS=${CFLAGS+set}
3864ac_save_CFLAGS=$CFLAGS
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3866$as_echo_n "checking whether $CC accepts -g... " >&6; }
3867if ${ac_cv_prog_cc_g+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869else
3870 ac_save_c_werror_flag=$ac_c_werror_flag
3871 ac_c_werror_flag=yes
3872 ac_cv_prog_cc_g=no
3873 CFLAGS="-g"
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875/* end confdefs.h. */
3876
3877int
3878main ()
3879{
3880
3881 ;
3882 return 0;
3883}
3884_ACEOF
3885if ac_fn_c_try_compile "$LINENO"; then :
3886 ac_cv_prog_cc_g=yes
3887else
3888 CFLAGS=""
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h. */
3891
3892int
3893main ()
3894{
3895
3896 ;
3897 return 0;
3898}
3899_ACEOF
3900if ac_fn_c_try_compile "$LINENO"; then :
3901
3902else
3903 ac_c_werror_flag=$ac_save_c_werror_flag
3904 CFLAGS="-g"
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h. */
3907
3908int
3909main ()
3910{
3911
3912 ;
3913 return 0;
3914}
3915_ACEOF
3916if ac_fn_c_try_compile "$LINENO"; then :
3917 ac_cv_prog_cc_g=yes
3918fi
3919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920fi
3921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922fi
3923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_c_werror_flag=$ac_save_c_werror_flag
3925fi
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3927$as_echo "$ac_cv_prog_cc_g" >&6; }
3928if test "$ac_test_CFLAGS" = set; then
3929 CFLAGS=$ac_save_CFLAGS
3930elif test $ac_cv_prog_cc_g = yes; then
3931 if test "$GCC" = yes; then
3932 CFLAGS="-g -O2"
3933 else
3934 CFLAGS="-g"
3935 fi
3936else
3937 if test "$GCC" = yes; then
3938 CFLAGS="-O2"
3939 else
3940 CFLAGS=
3941 fi
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3944$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3945if ${ac_cv_prog_cc_c89+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947else
3948 ac_cv_prog_cc_c89=no
3949ac_save_CC=$CC
3950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h. */
3952#include <stdarg.h>
3953#include <stdio.h>
3954struct stat;
3955/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3956struct buf { int x; };
3957FILE * (*rcsopen) (struct buf *, struct stat *, int);
3958static char *e (p, i)
3959 char **p;
3960 int i;
3961{
3962 return p[i];
3963}
3964static char *f (char * (*g) (char **, int), char **p, ...)
3965{
3966 char *s;
3967 va_list v;
3968 va_start (v,p);
3969 s = g (p, va_arg (v,int));
3970 va_end (v);
3971 return s;
3972}
3973
3974/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3975 function prototypes and stuff, but not '\xHH' hex character constants.
3976 These don't provoke an error unfortunately, instead are silently treated
3977 as 'x'. The following induces an error, until -std is added to get
3978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3979 array size at least. It's necessary to write '\x00'==0 to get something
3980 that's true only with -std. */
3981int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3982
3983/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3984 inside strings and character constants. */
3985#define FOO(x) 'x'
3986int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3987
3988int test (int i, double x);
3989struct s1 {int (*f) (int a);};
3990struct s2 {int (*f) (double a);};
3991int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3992int argc;
3993char **argv;
3994int
3995main ()
3996{
3997return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3998 ;
3999 return 0;
4000}
4001_ACEOF
4002for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4004do
4005 CC="$ac_save_CC $ac_arg"
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_cv_prog_cc_c89=$ac_arg
4008fi
4009rm -f core conftest.err conftest.$ac_objext
4010 test "x$ac_cv_prog_cc_c89" != "xno" && break
4011done
4012rm -f conftest.$ac_ext
4013CC=$ac_save_CC
4014
4015fi
4016# AC_CACHE_VAL
4017case "x$ac_cv_prog_cc_c89" in
4018 x)
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4020$as_echo "none needed" >&6; } ;;
4021 xno)
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4023$as_echo "unsupported" >&6; } ;;
4024 *)
4025 CC="$CC $ac_cv_prog_cc_c89"
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4027$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4028esac
4029if test "x$ac_cv_prog_cc_c89" != xno; then :
4030
4031fi
4032
4033ac_ext=c
4034ac_cpp='$CPP $CPPFLAGS'
4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038
4039 ac_ext=c
4040ac_cpp='$CPP $CPPFLAGS'
4041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4045$as_echo_n "checking how to run the C preprocessor... " >&6; }
4046# On Suns, sometimes $CPP names a directory.
4047if test -n "$CPP" && test -d "$CPP"; then
4048 CPP=
4049fi
4050if test -z "$CPP"; then
4051 if ${ac_cv_prog_CPP+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053else
4054 # Double quotes because CPP needs to be expanded
4055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4056 do
4057 ac_preproc_ok=false
4058for ac_c_preproc_warn_flag in '' yes
4059do
4060 # Use a header file that comes with gcc, so configuring glibc
4061 # with a fresh cross-compiler works.
4062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4063 # <limits.h> exists even on freestanding compilers.
4064 # On the NeXT, cc -E runs the code through the compiler's parser,
4065 # not just through cpp. "Syntax error" is here to catch this case.
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h. */
4068#ifdef __STDC__
4069# include <limits.h>
4070#else
4071# include <assert.h>
4072#endif
4073 Syntax error
4074_ACEOF
4075if ac_fn_c_try_cpp "$LINENO"; then :
4076
4077else
4078 # Broken: fails on valid input.
4079continue
4080fi
4081rm -f conftest.err conftest.i conftest.$ac_ext
4082
4083 # OK, works on sane cases. Now check whether nonexistent headers
4084 # can be detected and how.
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h. */
4087#include <ac_nonexistent.h>
4088_ACEOF
4089if ac_fn_c_try_cpp "$LINENO"; then :
4090 # Broken: success on invalid input.
4091continue
4092else
4093 # Passes both tests.
4094ac_preproc_ok=:
4095break
4096fi
4097rm -f conftest.err conftest.i conftest.$ac_ext
4098
4099done
4100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4101rm -f conftest.i conftest.err conftest.$ac_ext
4102if $ac_preproc_ok; then :
4103 break
4104fi
4105
4106 done
4107 ac_cv_prog_CPP=$CPP
4108
4109fi
4110 CPP=$ac_cv_prog_CPP
4111else
4112 ac_cv_prog_CPP=$CPP
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4115$as_echo "$CPP" >&6; }
4116ac_preproc_ok=false
4117for ac_c_preproc_warn_flag in '' yes
4118do
4119 # Use a header file that comes with gcc, so configuring glibc
4120 # with a fresh cross-compiler works.
4121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4122 # <limits.h> exists even on freestanding compilers.
4123 # On the NeXT, cc -E runs the code through the compiler's parser,
4124 # not just through cpp. "Syntax error" is here to catch this case.
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h. */
4127#ifdef __STDC__
4128# include <limits.h>
4129#else
4130# include <assert.h>
4131#endif
4132 Syntax error
4133_ACEOF
4134if ac_fn_c_try_cpp "$LINENO"; then :
4135
4136else
4137 # Broken: fails on valid input.
4138continue
4139fi
4140rm -f conftest.err conftest.i conftest.$ac_ext
4141
4142 # OK, works on sane cases. Now check whether nonexistent headers
4143 # can be detected and how.
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h. */
4146#include <ac_nonexistent.h>
4147_ACEOF
4148if ac_fn_c_try_cpp "$LINENO"; then :
4149 # Broken: success on invalid input.
4150continue
4151else
4152 # Passes both tests.
4153ac_preproc_ok=:
4154break
4155fi
4156rm -f conftest.err conftest.i conftest.$ac_ext
4157
4158done
4159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4160rm -f conftest.i conftest.err conftest.$ac_ext
4161if $ac_preproc_ok; then :
4162
4163else
4164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4166as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4167See \`config.log' for more details" "$LINENO" 5; }
4168fi
4169
4170ac_ext=c
4171ac_cpp='$CPP $CPPFLAGS'
4172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175
4176
4177 INSTALL="\$(SHELL) \$(srcdir)/tclconfig/install-sh -c"
4178
4179 INSTALL_DATA="\${INSTALL} -m 644"
4180
4181 INSTALL_PROGRAM="\${INSTALL}"
4182
4183 INSTALL_SCRIPT="\${INSTALL}"
4184
4185
4186 #--------------------------------------------------------------------
4187 # Checks to see if the make program sets the $MAKE variable.
4188 #--------------------------------------------------------------------
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4191$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4192set x ${MAKE-make}
4193ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4194if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 cat >conftest.make <<\_ACEOF
4198SHELL = /bin/sh
4199all:
4200 @echo '@@@%%%=$(MAKE)=@@@%%%'
4201_ACEOF
4202# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4203case `${MAKE-make} -f conftest.make 2>/dev/null` in
4204 *@@@%%%=?*=@@@%%%*)
4205 eval ac_cv_prog_make_${ac_make}_set=yes;;
4206 *)
4207 eval ac_cv_prog_make_${ac_make}_set=no;;
4208esac
4209rm -f conftest.make
4210fi
4211if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4213$as_echo "yes" >&6; }
4214 SET_MAKE=
4215else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217$as_echo "no" >&6; }
4218 SET_MAKE="MAKE=${MAKE-make}"
4219fi
4220
4221
4222 #--------------------------------------------------------------------
4223 # Find ranlib
4224 #--------------------------------------------------------------------
4225
4226 if test -n "$ac_tool_prefix"; then
4227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4228set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230$as_echo_n "checking for $ac_word... " >&6; }
4231if ${ac_cv_prog_RANLIB+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233else
4234 if test -n "$RANLIB"; then
4235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4236else
4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 break 2
4247 fi
4248done
4249 done
4250IFS=$as_save_IFS
4251
4252fi
4253fi
4254RANLIB=$ac_cv_prog_RANLIB
4255if test -n "$RANLIB"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4257$as_echo "$RANLIB" >&6; }
4258else
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260$as_echo "no" >&6; }
4261fi
4262
4263
4264fi
4265if test -z "$ac_cv_prog_RANLIB"; then
4266 ac_ct_RANLIB=$RANLIB
4267 # Extract the first word of "ranlib", so it can be a program name with args.
4268set dummy ranlib; ac_word=$2
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270$as_echo_n "checking for $ac_word... " >&6; }
4271if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273else
4274 if test -n "$ac_ct_RANLIB"; then
4275 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_prog_ac_ct_RANLIB="ranlib"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288done
4289 done
4290IFS=$as_save_IFS
4291
4292fi
4293fi
4294ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4295if test -n "$ac_ct_RANLIB"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4297$as_echo "$ac_ct_RANLIB" >&6; }
4298else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300$as_echo "no" >&6; }
4301fi
4302
4303 if test "x$ac_ct_RANLIB" = x; then
4304 RANLIB=""
4305 else
4306 case $cross_compiling:$ac_tool_warned in
4307yes:)
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4310ac_tool_warned=yes ;;
4311esac
4312 RANLIB=$ac_ct_RANLIB
4313 fi
4314else
4315 RANLIB="$ac_cv_prog_RANLIB"
4316fi
4317
4318
4319 #--------------------------------------------------------------------
4320 # Determines the correct binary file extension (.o, .obj, .exe etc.)
4321 #--------------------------------------------------------------------
4322
4323
4324
4325
4326
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4328$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4329if ${ac_cv_path_GREP+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331else
4332 if test -z "$GREP"; then
4333 ac_path_GREP_found=false
4334 # Loop through the user's path and test for each of PROGNAME-LIST
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4337do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_prog in grep ggrep; do
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4343 as_fn_executable_p "$ac_path_GREP" || continue
4344# Check for GNU ac_path_GREP and select it if it is found.
4345 # Check for GNU $ac_path_GREP
4346case `"$ac_path_GREP" --version 2>&1` in
4347*GNU*)
4348 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4349*)
4350 ac_count=0
4351 $as_echo_n 0123456789 >"conftest.in"
4352 while :
4353 do
4354 cat "conftest.in" "conftest.in" >"conftest.tmp"
4355 mv "conftest.tmp" "conftest.in"
4356 cp "conftest.in" "conftest.nl"
4357 $as_echo 'GREP' >> "conftest.nl"
4358 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4360 as_fn_arith $ac_count + 1 && ac_count=$as_val
4361 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4362 # Best one so far, save it but keep looking for a better one
4363 ac_cv_path_GREP="$ac_path_GREP"
4364 ac_path_GREP_max=$ac_count
4365 fi
4366 # 10*(2^10) chars as input seems more than enough
4367 test $ac_count -gt 10 && break
4368 done
4369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4370esac
4371
4372 $ac_path_GREP_found && break 3
4373 done
4374 done
4375 done
4376IFS=$as_save_IFS
4377 if test -z "$ac_cv_path_GREP"; then
4378 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4379 fi
4380else
4381 ac_cv_path_GREP=$GREP
4382fi
4383
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4386$as_echo "$ac_cv_path_GREP" >&6; }
4387 GREP="$ac_cv_path_GREP"
4388
4389
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4391$as_echo_n "checking for egrep... " >&6; }
4392if ${ac_cv_path_EGREP+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394else
4395 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4396 then ac_cv_path_EGREP="$GREP -E"
4397 else
4398 if test -z "$EGREP"; then
4399 ac_path_EGREP_found=false
4400 # Loop through the user's path and test for each of PROGNAME-LIST
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4403do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_prog in egrep; do
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4409 as_fn_executable_p "$ac_path_EGREP" || continue
4410# Check for GNU ac_path_EGREP and select it if it is found.
4411 # Check for GNU $ac_path_EGREP
4412case `"$ac_path_EGREP" --version 2>&1` in
4413*GNU*)
4414 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4415*)
4416 ac_count=0
4417 $as_echo_n 0123456789 >"conftest.in"
4418 while :
4419 do
4420 cat "conftest.in" "conftest.in" >"conftest.tmp"
4421 mv "conftest.tmp" "conftest.in"
4422 cp "conftest.in" "conftest.nl"
4423 $as_echo 'EGREP' >> "conftest.nl"
4424 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4426 as_fn_arith $ac_count + 1 && ac_count=$as_val
4427 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4428 # Best one so far, save it but keep looking for a better one
4429 ac_cv_path_EGREP="$ac_path_EGREP"
4430 ac_path_EGREP_max=$ac_count
4431 fi
4432 # 10*(2^10) chars as input seems more than enough
4433 test $ac_count -gt 10 && break
4434 done
4435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4436esac
4437
4438 $ac_path_EGREP_found && break 3
4439 done
4440 done
4441 done
4442IFS=$as_save_IFS
4443 if test -z "$ac_cv_path_EGREP"; then
4444 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4445 fi
4446else
4447 ac_cv_path_EGREP=$EGREP
4448fi
4449
4450 fi
4451fi
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4453$as_echo "$ac_cv_path_EGREP" >&6; }
4454 EGREP="$ac_cv_path_EGREP"
4455
4456
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4458$as_echo_n "checking for ANSI C header files... " >&6; }
4459if ${ac_cv_header_stdc+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461else
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h. */
4464#include <stdlib.h>
4465#include <stdarg.h>
4466#include <string.h>
4467#include <float.h>
4468
4469int
4470main ()
4471{
4472
4473 ;
4474 return 0;
4475}
4476_ACEOF
4477if ac_fn_c_try_compile "$LINENO"; then :
4478 ac_cv_header_stdc=yes
4479else
4480 ac_cv_header_stdc=no
4481fi
4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483
4484if test $ac_cv_header_stdc = yes; then
4485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h. */
4488#include <string.h>
4489
4490_ACEOF
4491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 $EGREP "memchr" >/dev/null 2>&1; then :
4493
4494else
4495 ac_cv_header_stdc=no
4496fi
4497rm -f conftest*
4498
4499fi
4500
4501if test $ac_cv_header_stdc = yes; then
4502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h. */
4505#include <stdlib.h>
4506
4507_ACEOF
4508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509 $EGREP "free" >/dev/null 2>&1; then :
4510
4511else
4512 ac_cv_header_stdc=no
4513fi
4514rm -f conftest*
4515
4516fi
4517
4518if test $ac_cv_header_stdc = yes; then
4519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4520 if test "$cross_compiling" = yes; then :
4521 :
4522else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524/* end confdefs.h. */
4525#include <ctype.h>
4526#include <stdlib.h>
4527#if ((' ' & 0x0FF) == 0x020)
4528# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530#else
4531# define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4536#endif
4537
4538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4539int
4540main ()
4541{
4542 int i;
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4546 return 2;
4547 return 0;
4548}
4549_ACEOF
4550if ac_fn_c_try_run "$LINENO"; then :
4551
4552else
4553 ac_cv_header_stdc=no
4554fi
4555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4556 conftest.$ac_objext conftest.beam conftest.$ac_ext
4557fi
4558
4559fi
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4562$as_echo "$ac_cv_header_stdc" >&6; }
4563if test $ac_cv_header_stdc = yes; then
4564
4565$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4566
4567fi
4568
4569# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4570for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4571 inttypes.h stdint.h unistd.h
4572do :
4573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4574ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4575"
4576if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4577 cat >>confdefs.h <<_ACEOF
4578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579_ACEOF
4580
4581fi
4582
4583done
4584
4585
4586
4587 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
4588
4589
4590 #------------------------------------------------------------------------
4591 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
4592 # It makes compiling go faster. (This is only a performance feature.)
4593 #------------------------------------------------------------------------
4594
4595 if test -z "$no_pipe" -a -n "$GCC"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
4597$as_echo_n "checking if the compiler understands -pipe... " >&6; }
4598if ${tcl_cv_cc_pipe+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600else
4601
4602 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h. */
4605
4606int
4607main ()
4608{
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614if ac_fn_c_try_compile "$LINENO"; then :
4615 tcl_cv_cc_pipe=yes
4616else
4617 tcl_cv_cc_pipe=no
4618fi
4619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 CFLAGS=$hold_cflags
4621fi
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
4623$as_echo "$tcl_cv_cc_pipe" >&6; }
4624 if test $tcl_cv_cc_pipe = yes; then
4625 CFLAGS="$CFLAGS -pipe"
4626 fi
4627 fi
4628
4629 #--------------------------------------------------------------------
4630 # Common compiler flag setup
4631 #--------------------------------------------------------------------
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4634$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4635if ${ac_cv_c_bigendian+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637else
4638 ac_cv_c_bigendian=unknown
4639 # See if we're dealing with a universal compiler.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641/* end confdefs.h. */
4642#ifndef __APPLE_CC__
4643 not a universal capable compiler
4644 #endif
4645 typedef int dummy;
4646
4647_ACEOF
4648if ac_fn_c_try_compile "$LINENO"; then :
4649
4650 # Check for potential -arch flags. It is not universal unless
4651 # there are at least two -arch flags with different values.
4652 ac_arch=
4653 ac_prev=
4654 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4655 if test -n "$ac_prev"; then
4656 case $ac_word in
4657 i?86 | x86_64 | ppc | ppc64)
4658 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4659 ac_arch=$ac_word
4660 else
4661 ac_cv_c_bigendian=universal
4662 break
4663 fi
4664 ;;
4665 esac
4666 ac_prev=
4667 elif test "x$ac_word" = "x-arch"; then
4668 ac_prev=arch
4669 fi
4670 done
4671fi
4672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 if test $ac_cv_c_bigendian = unknown; then
4674 # See if sys/param.h defines the BYTE_ORDER macro.
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h. */
4677#include <sys/types.h>
4678 #include <sys/param.h>
4679
4680int
4681main ()
4682{
4683#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4684 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4685 && LITTLE_ENDIAN)
4686 bogus endian macros
4687 #endif
4688
4689 ;
4690 return 0;
4691}
4692_ACEOF
4693if ac_fn_c_try_compile "$LINENO"; then :
4694 # It does; now see whether it defined to BIG_ENDIAN or not.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h. */
4697#include <sys/types.h>
4698 #include <sys/param.h>
4699
4700int
4701main ()
4702{
4703#if BYTE_ORDER != BIG_ENDIAN
4704 not big endian
4705 #endif
4706
4707 ;
4708 return 0;
4709}
4710_ACEOF
4711if ac_fn_c_try_compile "$LINENO"; then :
4712 ac_cv_c_bigendian=yes
4713else
4714 ac_cv_c_bigendian=no
4715fi
4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717fi
4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 fi
4720 if test $ac_cv_c_bigendian = unknown; then
4721 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h. */
4724#include <limits.h>
4725
4726int
4727main ()
4728{
4729#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4730 bogus endian macros
4731 #endif
4732
4733 ;
4734 return 0;
4735}
4736_ACEOF
4737if ac_fn_c_try_compile "$LINENO"; then :
4738 # It does; now see whether it defined to _BIG_ENDIAN or not.
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h. */
4741#include <limits.h>
4742
4743int
4744main ()
4745{
4746#ifndef _BIG_ENDIAN
4747 not big endian
4748 #endif
4749
4750 ;
4751 return 0;
4752}
4753_ACEOF
4754if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_c_bigendian=yes
4756else
4757 ac_cv_c_bigendian=no
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760fi
4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 if test $ac_cv_c_bigendian = unknown; then
4764 # Compile a test program.
4765 if test "$cross_compiling" = yes; then :
4766 # Try to guess by grepping values from an object file.
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768/* end confdefs.h. */
4769short int ascii_mm[] =
4770 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4771 short int ascii_ii[] =
4772 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4773 int use_ascii (int i) {
4774 return ascii_mm[i] + ascii_ii[i];
4775 }
4776 short int ebcdic_ii[] =
4777 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4778 short int ebcdic_mm[] =
4779 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4780 int use_ebcdic (int i) {
4781 return ebcdic_mm[i] + ebcdic_ii[i];
4782 }
4783 extern int foo;
4784
4785int
4786main ()
4787{
4788return use_ascii (foo) == use_ebcdic (foo);
4789 ;
4790 return 0;
4791}
4792_ACEOF
4793if ac_fn_c_try_compile "$LINENO"; then :
4794 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4795 ac_cv_c_bigendian=yes
4796 fi
4797 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4798 if test "$ac_cv_c_bigendian" = unknown; then
4799 ac_cv_c_bigendian=no
4800 else
4801 # finding both strings is unlikely to happen, but who knows?
4802 ac_cv_c_bigendian=unknown
4803 fi
4804 fi
4805fi
4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807else
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h. */
4810$ac_includes_default
4811int
4812main ()
4813{
4814
4815 /* Are we little or big endian? From Harbison&Steele. */
4816 union
4817 {
4818 long int l;
4819 char c[sizeof (long int)];
4820 } u;
4821 u.l = 1;
4822 return u.c[sizeof (long int) - 1] == 1;
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828if ac_fn_c_try_run "$LINENO"; then :
4829 ac_cv_c_bigendian=no
4830else
4831 ac_cv_c_bigendian=yes
4832fi
4833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4834 conftest.$ac_objext conftest.beam conftest.$ac_ext
4835fi
4836
4837 fi
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4840$as_echo "$ac_cv_c_bigendian" >&6; }
4841 case $ac_cv_c_bigendian in #(
4842 yes)
4843 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4844;; #(
4845 no)
4846 ;; #(
4847 universal)
4848
4849$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4850
4851 ;; #(
4852 *)
4853 as_fn_error $? "unknown endianness
4854 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4855 esac
4856
4857 if test "${TEA_PLATFORM}" = "unix" ; then
4858
4859 #--------------------------------------------------------------------
4860 # On a few very rare systems, all of the libm.a stuff is
4861 # already in libc.a. Set compiler flags accordingly.
4862 # Also, Linux requires the "ieee" library for math to work
4863 # right (and it must appear before "-lm").
4864 #--------------------------------------------------------------------
4865
4866 ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
4867if test "x$ac_cv_func_sin" = xyes; then :
4868 MATH_LIBS=""
4869else
4870 MATH_LIBS="-lm"
4871fi
4872
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5
4874$as_echo_n "checking for main in -lieee... " >&6; }
4875if ${ac_cv_lib_ieee_main+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877else
4878 ac_check_lib_save_LIBS=$LIBS
4879LIBS="-lieee $LIBS"
4880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881/* end confdefs.h. */
4882
4883
4884int
4885main ()
4886{
4887return main ();
4888 ;
4889 return 0;
4890}
4891_ACEOF
4892if ac_fn_c_try_link "$LINENO"; then :
4893 ac_cv_lib_ieee_main=yes
4894else
4895 ac_cv_lib_ieee_main=no
4896fi
4897rm -f core conftest.err conftest.$ac_objext \
4898 conftest$ac_exeext conftest.$ac_ext
4899LIBS=$ac_check_lib_save_LIBS
4900fi
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5
4902$as_echo "$ac_cv_lib_ieee_main" >&6; }
4903if test "x$ac_cv_lib_ieee_main" = xyes; then :
4904 MATH_LIBS="-lieee $MATH_LIBS"
4905fi
4906
4907
4908 #--------------------------------------------------------------------
4909 # Interactive UNIX requires -linet instead of -lsocket, plus it
4910 # needs net/errno.h to define the socket-related error codes.
4911 #--------------------------------------------------------------------
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
4914$as_echo_n "checking for main in -linet... " >&6; }
4915if ${ac_cv_lib_inet_main+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917else
4918 ac_check_lib_save_LIBS=$LIBS
4919LIBS="-linet $LIBS"
4920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921/* end confdefs.h. */
4922
4923
4924int
4925main ()
4926{
4927return main ();
4928 ;
4929 return 0;
4930}
4931_ACEOF
4932if ac_fn_c_try_link "$LINENO"; then :
4933 ac_cv_lib_inet_main=yes
4934else
4935 ac_cv_lib_inet_main=no
4936fi
4937rm -f core conftest.err conftest.$ac_objext \
4938 conftest$ac_exeext conftest.$ac_ext
4939LIBS=$ac_check_lib_save_LIBS
4940fi
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
4942$as_echo "$ac_cv_lib_inet_main" >&6; }
4943if test "x$ac_cv_lib_inet_main" = xyes; then :
4944 LIBS="$LIBS -linet"
4945fi
4946
4947 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
4948if test "x$ac_cv_header_net_errno_h" = xyes; then :
4949
4950
4951$as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
4952
4953fi
4954
4955
4956
4957 #--------------------------------------------------------------------
4958 # Check for the existence of the -lsocket and -lnsl libraries.
4959 # The order here is important, so that they end up in the right
4960 # order in the command line generated by make. Here are some
4961 # special considerations:
4962 # 1. Use "connect" and "accept" to check for -lsocket, and
4963 # "gethostbyname" to check for -lnsl.
4964 # 2. Use each function name only once: can't redo a check because
4965 # autoconf caches the results of the last check and won't redo it.
4966 # 3. Use -lnsl and -lsocket only if they supply procedures that
4967 # aren't already present in the normal libraries. This is because
4968 # IRIX 5.2 has libraries, but they aren't needed and they're
4969 # bogus: they goof up name resolution if used.
4970 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4971 # To get around this problem, check for both libraries together
4972 # if -lsocket doesn't work by itself.
4973 #--------------------------------------------------------------------
4974
4975 tcl_checkBoth=0
4976 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4977if test "x$ac_cv_func_connect" = xyes; then :
4978 tcl_checkSocket=0
4979else
4980 tcl_checkSocket=1
4981fi
4982
4983 if test "$tcl_checkSocket" = 1; then
4984 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
4985if test "x$ac_cv_func_setsockopt" = xyes; then :
4986
4987else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
4989$as_echo_n "checking for setsockopt in -lsocket... " >&6; }
4990if ${ac_cv_lib_socket_setsockopt+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992else
4993 ac_check_lib_save_LIBS=$LIBS
4994LIBS="-lsocket $LIBS"
4995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996/* end confdefs.h. */
4997
4998/* Override any GCC internal prototype to avoid an error.
4999 Use char because int might match the return type of a GCC
5000 builtin and then its argument prototype would still apply. */
5001#ifdef __cplusplus
5002extern "C"
5003#endif
5004char setsockopt ();
5005int
5006main ()
5007{
5008return setsockopt ();
5009 ;
5010 return 0;
5011}
5012_ACEOF
5013if ac_fn_c_try_link "$LINENO"; then :
5014 ac_cv_lib_socket_setsockopt=yes
5015else
5016 ac_cv_lib_socket_setsockopt=no
5017fi
5018rm -f core conftest.err conftest.$ac_objext \
5019 conftest$ac_exeext conftest.$ac_ext
5020LIBS=$ac_check_lib_save_LIBS
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
5023$as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
5024if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
5025 LIBS="$LIBS -lsocket"
5026else
5027 tcl_checkBoth=1
5028fi
5029
5030fi
5031
5032 fi
5033 if test "$tcl_checkBoth" = 1; then
5034 tk_oldLibs=$LIBS
5035 LIBS="$LIBS -lsocket -lnsl"
5036 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
5037if test "x$ac_cv_func_accept" = xyes; then :
5038 tcl_checkNsl=0
5039else
5040 LIBS=$tk_oldLibs
5041fi
5042
5043 fi
5044 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5045if test "x$ac_cv_func_gethostbyname" = xyes; then :
5046
5047else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5049$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5050if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052else
5053 ac_check_lib_save_LIBS=$LIBS
5054LIBS="-lnsl $LIBS"
5055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h. */
5057
5058/* Override any GCC internal prototype to avoid an error.
5059 Use char because int might match the return type of a GCC
5060 builtin and then its argument prototype would still apply. */
5061#ifdef __cplusplus
5062extern "C"
5063#endif
5064char gethostbyname ();
5065int
5066main ()
5067{
5068return gethostbyname ();
5069 ;
5070 return 0;
5071}
5072_ACEOF
5073if ac_fn_c_try_link "$LINENO"; then :
5074 ac_cv_lib_nsl_gethostbyname=yes
5075else
5076 ac_cv_lib_nsl_gethostbyname=no
5077fi
5078rm -f core conftest.err conftest.$ac_objext \
5079 conftest$ac_exeext conftest.$ac_ext
5080LIBS=$ac_check_lib_save_LIBS
5081fi
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5083$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5084if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5085 LIBS="$LIBS -lnsl"
5086fi
5087
5088fi
5089
5090
5091 # TEA specific: Don't perform the eval of the libraries here because
5092 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS
5093
5094 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
5095
5096
5097
5098
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5
5100$as_echo_n "checking dirent.h... " >&6; }
5101if ${tcl_cv_dirent_h+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103else
5104
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h. */
5107#include <sys/types.h>
5108#include <dirent.h>
5109int
5110main ()
5111{
5112
5113#ifndef _POSIX_SOURCE
5114# ifdef __Lynx__
5115 /*
5116 * Generate compilation error to make the test fail: Lynx headers
5117 * are only valid if really in the POSIX environment.
5118 */
5119
5120 missing_procedure();
5121# endif
5122#endif
5123DIR *d;
5124struct dirent *entryPtr;
5125char *p;
5126d = opendir("foobar");
5127entryPtr = readdir(d);
5128p = entryPtr->d_name;
5129closedir(d);
5130
5131 ;
5132 return 0;
5133}
5134_ACEOF
5135if ac_fn_c_try_link "$LINENO"; then :
5136 tcl_cv_dirent_h=yes
5137else
5138 tcl_cv_dirent_h=no
5139fi
5140rm -f core conftest.err conftest.$ac_objext \
5141 conftest$ac_exeext conftest.$ac_ext
5142fi
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5
5144$as_echo "$tcl_cv_dirent_h" >&6; }
5145
5146 if test $tcl_cv_dirent_h = no; then
5147
5148$as_echo "#define NO_DIRENT_H 1" >>confdefs.h
5149
5150 fi
5151
5152 # TEA specific:
5153 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
5154if test "x$ac_cv_header_errno_h" = xyes; then :
5155
5156else
5157
5158$as_echo "#define NO_ERRNO_H 1" >>confdefs.h
5159
5160fi
5161
5162
5163 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
5164if test "x$ac_cv_header_float_h" = xyes; then :
5165
5166else
5167
5168$as_echo "#define NO_FLOAT_H 1" >>confdefs.h
5169
5170fi
5171
5172
5173 ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
5174if test "x$ac_cv_header_values_h" = xyes; then :
5175
5176else
5177
5178$as_echo "#define NO_VALUES_H 1" >>confdefs.h
5179
5180fi
5181
5182
5183 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5184if test "x$ac_cv_header_limits_h" = xyes; then :
5185
5186$as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
5187
5188else
5189
5190$as_echo "#define NO_LIMITS_H 1" >>confdefs.h
5191
5192fi
5193
5194
5195 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5196if test "x$ac_cv_header_stdlib_h" = xyes; then :
5197 tcl_ok=1
5198else
5199 tcl_ok=0
5200fi
5201
5202
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h. */
5205#include <stdlib.h>
5206
5207_ACEOF
5208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "strtol" >/dev/null 2>&1; then :
5210
5211else
5212 tcl_ok=0
5213fi
5214rm -f conftest*
5215
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217/* end confdefs.h. */
5218#include <stdlib.h>
5219
5220_ACEOF
5221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5222 $EGREP "strtoul" >/dev/null 2>&1; then :
5223
5224else
5225 tcl_ok=0
5226fi
5227rm -f conftest*
5228
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230/* end confdefs.h. */
5231#include <stdlib.h>
5232
5233_ACEOF
5234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5235 $EGREP "strtod" >/dev/null 2>&1; then :
5236
5237else
5238 tcl_ok=0
5239fi
5240rm -f conftest*
5241
5242 if test $tcl_ok = 0; then
5243
5244$as_echo "#define NO_STDLIB_H 1" >>confdefs.h
5245
5246 fi
5247 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5248if test "x$ac_cv_header_string_h" = xyes; then :
5249 tcl_ok=1
5250else
5251 tcl_ok=0
5252fi
5253
5254
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h. */
5257#include <string.h>
5258
5259_ACEOF
5260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "strstr" >/dev/null 2>&1; then :
5262
5263else
5264 tcl_ok=0
5265fi
5266rm -f conftest*
5267
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h. */
5270#include <string.h>
5271
5272_ACEOF
5273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5274 $EGREP "strerror" >/dev/null 2>&1; then :
5275
5276else
5277 tcl_ok=0
5278fi
5279rm -f conftest*
5280
5281
5282 # See also memmove check below for a place where NO_STRING_H can be
5283 # set and why.
5284
5285 if test $tcl_ok = 0; then
5286
5287$as_echo "#define NO_STRING_H 1" >>confdefs.h
5288
5289 fi
5290
5291 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
5292if test "x$ac_cv_header_sys_wait_h" = xyes; then :
5293
5294else
5295
5296$as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h
5297
5298fi
5299
5300
5301 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5302if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5303
5304else
5305
5306$as_echo "#define NO_DLFCN_H 1" >>confdefs.h
5307
5308fi
5309
5310
5311
5312 # OS/390 lacks sys/param.h (and doesn't need it, by chance).
5313 for ac_header in sys/param.h
5314do :
5315 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5316if test "x$ac_cv_header_sys_param_h" = xyes; then :
5317 cat >>confdefs.h <<_ACEOF
5318#define HAVE_SYS_PARAM_H 1
5319_ACEOF
5320
5321fi
5322
5323done
5324
5325
5326 # Let the user call this, because if it triggers, they will
5327 # need a compat/strtod.c that is correct. Users can also
5328 # use Tcl_GetDouble(FromObj) instead.
5329 #TEA_BUGGY_STRTOD
5330 fi
5331
5332
5333#-----------------------------------------------------------------------
5334# __CHANGE__
5335# Specify the C source files to compile in TEA_ADD_SOURCES,
5336# public headers that need to be installed in TEA_ADD_HEADERS,
5337# stub library C source files to compile in TEA_ADD_STUB_SOURCES,
5338# and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
5339# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
5340# and PKG_TCL_SOURCES.
5341#-----------------------------------------------------------------------
5342
5343
5344 vars="tclsqlite3.c"
5345 for i in $vars; do
5346 case $i in
5347 \$*)
5348 # allow $-var names
5349 PKG_SOURCES="$PKG_SOURCES $i"
5350 PKG_OBJECTS="$PKG_OBJECTS $i"
5351 ;;
5352 *)
5353 # check for existence - allows for generic/win/unix VPATH
5354 # To add more dirs here (like 'src'), you have to update VPATH
5355 # in Makefile.in as well
5356 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5357 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5358 -a ! -f "${srcdir}/macosx/$i" \
5359 ; then
5360 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
5361 fi
5362 PKG_SOURCES="$PKG_SOURCES $i"
5363 # this assumes it is in a VPATH dir
5364 i=`basename $i`
5365 # handle user calling this before or after TEA_SETUP_COMPILER
5366 if test x"${OBJEXT}" != x ; then
5367 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5368 else
5369 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5370 fi
5371 PKG_OBJECTS="$PKG_OBJECTS $j"
5372 ;;
5373 esac
5374 done
5375
5376
5377
5378
5379 vars=""
5380 for i in $vars; do
5381 # check for existence, be strict because it is installed
5382 if test ! -f "${srcdir}/$i" ; then
5383 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
5384 fi
5385 PKG_HEADERS="$PKG_HEADERS $i"
5386 done
5387
5388
5389
5390 vars="-I\"`\${CYGPATH} \${srcdir}/generic`\""
5391 for i in $vars; do
5392 PKG_INCLUDES="$PKG_INCLUDES $i"
5393 done
5394
5395
5396
5397 vars=""
5398 for i in $vars; do
5399 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5400 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5401 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
5402 fi
5403 PKG_LIBS="$PKG_LIBS $i"
5404 done
5405
5406
5407
5408 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_FTS3=1"
5409
5410
5411
5412 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_3_SUFFIX_ONLY=1"
5413
5414
5415
5416 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_RTREE=1"
5417
5418
5419
5420 vars=""
5421 for i in $vars; do
5422 # check for existence - allows for generic/win/unix VPATH
5423 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5424 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5425 -a ! -f "${srcdir}/macosx/$i" \
5426 ; then
5427 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
5428 fi
5429 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
5430 # this assumes it is in a VPATH dir
5431 i=`basename $i`
5432 # handle user calling this before or after TEA_SETUP_COMPILER
5433 if test x"${OBJEXT}" != x ; then
5434 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5435 else
5436 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5437 fi
5438 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
5439 done
5440
5441
5442
5443
5444 vars=""
5445 for i in $vars; do
5446 # check for existence, be strict because it is installed
5447 if test ! -f "${srcdir}/$i" ; then
5448 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
5449 fi
5450 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
5451 done
5452
5453
5454
5455#--------------------------------------------------------------------
5456# The --with-system-sqlite causes the TCL bindings to SQLite to use
5457# the system shared library for SQLite rather than statically linking
5458# against its own private copy. This is dangerous and leads to
5459# undersirable dependences and is not recommended.
5460# Patchs from rmax.
5461#--------------------------------------------------------------------
5462
5463# Check whether --with-system-sqlite was given.
5464if test "${with_system_sqlite+set}" = set; then :
5465 withval=$with_system_sqlite;
5466else
5467 with_system_sqlite=no
5468fi
5469
5470if test x$with_system_sqlite != xno; then
5471 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
5472if test "x$ac_cv_header_sqlite3_h" = xyes; then :
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5
5474$as_echo_n "checking for sqlite3_initialize in -lsqlite3... " >&6; }
5475if ${ac_cv_lib_sqlite3_sqlite3_initialize+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477else
5478 ac_check_lib_save_LIBS=$LIBS
5479LIBS="-lsqlite3 $LIBS"
5480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h. */
5482
5483/* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5486#ifdef __cplusplus
5487extern "C"
5488#endif
5489char sqlite3_initialize ();
5490int
5491main ()
5492{
5493return sqlite3_initialize ();
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498if ac_fn_c_try_link "$LINENO"; then :
5499 ac_cv_lib_sqlite3_sqlite3_initialize=yes
5500else
5501 ac_cv_lib_sqlite3_sqlite3_initialize=no
5502fi
5503rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5505LIBS=$ac_check_lib_save_LIBS
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5
5508$as_echo "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; }
5509if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = xyes; then :
5510 $as_echo "#define USE_SYSTEM_SQLITE 1" >>confdefs.h
5511
5512 LIBS="$LIBS -lsqlite3"
5513fi
5514
5515fi
5516
5517
5518fi
5519
5520#--------------------------------------------------------------------
5521# __CHANGE__
5522# Choose which headers you need. Extension authors should try very
5523# hard to only rely on the Tcl public header files. Internal headers
5524# contain private data structures and are subject to change without
5525# notice.
5526# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
5527#--------------------------------------------------------------------
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
5531$as_echo_n "checking for Tcl public headers... " >&6; }
5532
5533
5534# Check whether --with-tclinclude was given.
5535if test "${with_tclinclude+set}" = set; then :
5536 withval=$with_tclinclude; with_tclinclude=${withval}
5537fi
5538
5539
5540 if ${ac_cv_c_tclh+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542else
5543
5544 # Use the value from --with-tclinclude, if it was given
5545
5546 if test x"${with_tclinclude}" != x ; then
5547 if test -f "${with_tclinclude}/tcl.h" ; then
5548 ac_cv_c_tclh=${with_tclinclude}
5549 else
5550 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
5551 fi
5552 else
5553 list=""
5554 if test "`uname -s`" = "Darwin"; then
5555 # If Tcl was built as a framework, attempt to use
5556 # the framework's Headers directory
5557 case ${TCL_DEFS} in
5558 *TCL_FRAMEWORK*)
5559 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
5560 ;;
5561 esac
5562 fi
5563
5564 # Look in the source dir only if Tcl is not installed,
5565 # and in that situation, look there before installed locations.
5566 if test -f "${TCL_BIN_DIR}/Makefile" ; then
5567 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
5568 fi
5569
5570 # Check order: pkg --prefix location, Tcl's --prefix location,
5571 # relative to directory of tclConfig.sh.
5572
5573 eval "temp_includedir=${includedir}"
5574 list="$list \
5575 `ls -d ${temp_includedir} 2>/dev/null` \
5576 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
5577 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
5578 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
5579 list="$list /usr/local/include /usr/include"
5580 if test x"${TCL_INCLUDE_SPEC}" != x ; then
5581 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
5582 list="$list `ls -d ${d} 2>/dev/null`"
5583 fi
5584 fi
5585 for i in $list ; do
5586 if test -f "$i/tcl.h" ; then
5587 ac_cv_c_tclh=$i
5588 break
5589 fi
5590 done
5591 fi
5592
5593fi
5594
5595
5596 # Print a message based on how we determined the include path
5597
5598 if test x"${ac_cv_c_tclh}" = x ; then
5599 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
5602$as_echo "${ac_cv_c_tclh}" >&6; }
5603 fi
5604
5605 # Convert to a native path and substitute into the output files.
5606
5607 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
5608
5609 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
5610
5611
5612
5613#TEA_PRIVATE_TCL_HEADERS
5614
5615#TEA_PUBLIC_TK_HEADERS
5616#TEA_PRIVATE_TK_HEADERS
5617#TEA_PATH_X
5618
5619#--------------------------------------------------------------------
5620# Check whether --enable-threads or --disable-threads was given.
5621# This auto-enables if Tcl was compiled threaded.
5622#--------------------------------------------------------------------
5623
5624
5625 # Check whether --enable-threads was given.
5626if test "${enable_threads+set}" = set; then :
5627 enableval=$enable_threads; tcl_ok=$enableval
5628else
5629 tcl_ok=yes
5630fi
5631
5632
5633 if test "${enable_threads+set}" = set; then
5634 enableval="$enable_threads"
5635 tcl_ok=$enableval
5636 else
5637 tcl_ok=yes
5638 fi
5639
5640 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
5641 TCL_THREADS=1
5642
5643 if test "${TEA_PLATFORM}" != "windows" ; then
5644 # We are always OK on Windows, so check what this platform wants:
5645
5646 # USE_THREAD_ALLOC tells us to try the special thread-based
5647 # allocator that significantly reduces lock contention
5648
5649$as_echo "#define USE_THREAD_ALLOC 1" >>confdefs.h
5650
5651
5652$as_echo "#define _REENTRANT 1" >>confdefs.h
5653
5654 if test "`uname -s`" = "SunOS" ; then
5655
5656$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5657
5658 fi
5659
5660$as_echo "#define _THREAD_SAFE 1" >>confdefs.h
5661
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
5663$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
5664if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666else
5667 ac_check_lib_save_LIBS=$LIBS
5668LIBS="-lpthread $LIBS"
5669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h. */
5671
5672/* Override any GCC internal prototype to avoid an error.
5673 Use char because int might match the return type of a GCC
5674 builtin and then its argument prototype would still apply. */
5675#ifdef __cplusplus
5676extern "C"
5677#endif
5678char pthread_mutex_init ();
5679int
5680main ()
5681{
5682return pthread_mutex_init ();
5683 ;
5684 return 0;
5685}
5686_ACEOF
5687if ac_fn_c_try_link "$LINENO"; then :
5688 ac_cv_lib_pthread_pthread_mutex_init=yes
5689else
5690 ac_cv_lib_pthread_pthread_mutex_init=no
5691fi
5692rm -f core conftest.err conftest.$ac_objext \
5693 conftest$ac_exeext conftest.$ac_ext
5694LIBS=$ac_check_lib_save_LIBS
5695fi
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
5697$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
5698if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
5699 tcl_ok=yes
5700else
5701 tcl_ok=no
5702fi
5703
5704 if test "$tcl_ok" = "no"; then
5705 # Check a little harder for __pthread_mutex_init in the same
5706 # library, as some systems hide it there until pthread.h is
5707 # defined. We could alternatively do an AC_TRY_COMPILE with
5708 # pthread.h, but that will work with libpthread really doesn't
5709 # exist, like AIX 4.2. [Bug: 4359]
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
5711$as_echo_n "checking for __pthread_mutex_init in -lpthread... " >&6; }
5712if ${ac_cv_lib_pthread___pthread_mutex_init+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714else
5715 ac_check_lib_save_LIBS=$LIBS
5716LIBS="-lpthread $LIBS"
5717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h. */
5719
5720/* Override any GCC internal prototype to avoid an error.
5721 Use char because int might match the return type of a GCC
5722 builtin and then its argument prototype would still apply. */
5723#ifdef __cplusplus
5724extern "C"
5725#endif
5726char __pthread_mutex_init ();
5727int
5728main ()
5729{
5730return __pthread_mutex_init ();
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735if ac_fn_c_try_link "$LINENO"; then :
5736 ac_cv_lib_pthread___pthread_mutex_init=yes
5737else
5738 ac_cv_lib_pthread___pthread_mutex_init=no
5739fi
5740rm -f core conftest.err conftest.$ac_objext \
5741 conftest$ac_exeext conftest.$ac_ext
5742LIBS=$ac_check_lib_save_LIBS
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
5745$as_echo "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
5746if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes; then :
5747 tcl_ok=yes
5748else
5749 tcl_ok=no
5750fi
5751
5752 fi
5753
5754 if test "$tcl_ok" = "yes"; then
5755 # The space is needed
5756 THREADS_LIBS=" -lpthread"
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
5759$as_echo_n "checking for pthread_mutex_init in -lpthreads... " >&6; }
5760if ${ac_cv_lib_pthreads_pthread_mutex_init+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762else
5763 ac_check_lib_save_LIBS=$LIBS
5764LIBS="-lpthreads $LIBS"
5765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h. */
5767
5768/* Override any GCC internal prototype to avoid an error.
5769 Use char because int might match the return type of a GCC
5770 builtin and then its argument prototype would still apply. */
5771#ifdef __cplusplus
5772extern "C"
5773#endif
5774char pthread_mutex_init ();
5775int
5776main ()
5777{
5778return pthread_mutex_init ();
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_link "$LINENO"; then :
5784 ac_cv_lib_pthreads_pthread_mutex_init=yes
5785else
5786 ac_cv_lib_pthreads_pthread_mutex_init=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext \
5789 conftest$ac_exeext conftest.$ac_ext
5790LIBS=$ac_check_lib_save_LIBS
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
5793$as_echo "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
5794if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes; then :
5795 tcl_ok=yes
5796else
5797 tcl_ok=no
5798fi
5799
5800 if test "$tcl_ok" = "yes"; then
5801 # The space is needed
5802 THREADS_LIBS=" -lpthreads"
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
5805$as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
5806if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808else
5809 ac_check_lib_save_LIBS=$LIBS
5810LIBS="-lc $LIBS"
5811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h. */
5813
5814/* Override any GCC internal prototype to avoid an error.
5815 Use char because int might match the return type of a GCC
5816 builtin and then its argument prototype would still apply. */
5817#ifdef __cplusplus
5818extern "C"
5819#endif
5820char pthread_mutex_init ();
5821int
5822main ()
5823{
5824return pthread_mutex_init ();
5825 ;
5826 return 0;
5827}
5828_ACEOF
5829if ac_fn_c_try_link "$LINENO"; then :
5830 ac_cv_lib_c_pthread_mutex_init=yes
5831else
5832 ac_cv_lib_c_pthread_mutex_init=no
5833fi
5834rm -f core conftest.err conftest.$ac_objext \
5835 conftest$ac_exeext conftest.$ac_ext
5836LIBS=$ac_check_lib_save_LIBS
5837fi
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
5839$as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
5840if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
5841 tcl_ok=yes
5842else
5843 tcl_ok=no
5844fi
5845
5846 if test "$tcl_ok" = "no"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
5848$as_echo_n "checking for pthread_mutex_init in -lc_r... " >&6; }
5849if ${ac_cv_lib_c_r_pthread_mutex_init+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851else
5852 ac_check_lib_save_LIBS=$LIBS
5853LIBS="-lc_r $LIBS"
5854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855/* end confdefs.h. */
5856
5857/* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5860#ifdef __cplusplus
5861extern "C"
5862#endif
5863char pthread_mutex_init ();
5864int
5865main ()
5866{
5867return pthread_mutex_init ();
5868 ;
5869 return 0;
5870}
5871_ACEOF
5872if ac_fn_c_try_link "$LINENO"; then :
5873 ac_cv_lib_c_r_pthread_mutex_init=yes
5874else
5875 ac_cv_lib_c_r_pthread_mutex_init=no
5876fi
5877rm -f core conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
5879LIBS=$ac_check_lib_save_LIBS
5880fi
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
5882$as_echo "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
5883if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes; then :
5884 tcl_ok=yes
5885else
5886 tcl_ok=no
5887fi
5888
5889 if test "$tcl_ok" = "yes"; then
5890 # The space is needed
5891 THREADS_LIBS=" -pthread"
5892 else
5893 TCL_THREADS=0
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
5895$as_echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
5896 fi
5897 fi
5898 fi
5899 fi
5900 fi
5901 else
5902 TCL_THREADS=0
5903 fi
5904 # Do checking message here to not mess up interleaved configure output
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
5906$as_echo_n "checking for building with threads... " >&6; }
5907 if test "${TCL_THREADS}" = 1; then
5908
5909$as_echo "#define TCL_THREADS 1" >>confdefs.h
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
5912$as_echo "yes (default)" >&6; }
5913 else
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915$as_echo "no" >&6; }
5916 fi
5917 # TCL_THREADS sanity checking. See if our request for building with
5918 # threads is the same as the way Tcl was built. If not, warn the user.
5919 case ${TCL_DEFS} in
5920 *THREADS=1*)
5921 if test "${TCL_THREADS}" = "0"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5923 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
5924 that IS thread-enabled. It is recommended to use --enable-threads." >&5
5925$as_echo "$as_me: WARNING:
5926 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
5927 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
5928 fi
5929 ;;
5930 *)
5931 if test "${TCL_THREADS}" = "1"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5933 --enable-threads requested, but building against a Tcl that is NOT
5934 thread-enabled. This is an OK configuration that will also run in
5935 a thread-enabled core." >&5
5936$as_echo "$as_me: WARNING:
5937 --enable-threads requested, but building against a Tcl that is NOT
5938 thread-enabled. This is an OK configuration that will also run in
5939 a thread-enabled core." >&2;}
5940 fi
5941 ;;
5942 esac
5943
5944
5945if test "${TCL_THREADS}" = "1" ; then
5946
5947$as_echo "#define SQLITE_THREADSAFE 1" >>confdefs.h
5948
5949 # Not automatically added by Tcl because its assumed Tcl links to them,
5950 # but it may not if it isn't really a threaded build.
5951
5952 vars="$THREADS_LIBS"
5953 for i in $vars; do
5954 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5955 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5956 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
5957 fi
5958 PKG_LIBS="$PKG_LIBS $i"
5959 done
5960
5961
5962else
5963
5964$as_echo "#define SQLITE_THREADSAFE 0" >>confdefs.h
5965
5966fi
5967
5968#--------------------------------------------------------------------
5969# The statement below defines a collection of symbols related to
5970# building as a shared library instead of a static library.
5971#--------------------------------------------------------------------
5972
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
5975$as_echo_n "checking how to build libraries... " >&6; }
5976 # Check whether --enable-shared was given.
5977if test "${enable_shared+set}" = set; then :
5978 enableval=$enable_shared; tcl_ok=$enableval
5979else
5980 tcl_ok=yes
5981fi
5982
5983
5984 if test "${enable_shared+set}" = set; then
5985 enableval="$enable_shared"
5986 tcl_ok=$enableval
5987 else
5988 tcl_ok=yes
5989 fi
5990
5991 if test "$tcl_ok" = "yes" ; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
5993$as_echo "shared" >&6; }
5994 SHARED_BUILD=1
5995 else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
5997$as_echo "static" >&6; }
5998 SHARED_BUILD=0
5999
6000$as_echo "#define STATIC_BUILD 1" >>confdefs.h
6001
6002 fi
6003
6004
6005
6006#--------------------------------------------------------------------
6007# This macro figures out what flags to use with the compiler/linker
6008# when building shared/static debug/optimized objects. This information
6009# can be taken from the tclConfig.sh file, but this figures it all out.
6010#--------------------------------------------------------------------
6011
6012if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6014set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016$as_echo_n "checking for $ac_word... " >&6; }
6017if ${ac_cv_prog_RANLIB+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019else
6020 if test -n "$RANLIB"; then
6021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6022else
6023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034done
6035 done
6036IFS=$as_save_IFS
6037
6038fi
6039fi
6040RANLIB=$ac_cv_prog_RANLIB
6041if test -n "$RANLIB"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6043$as_echo "$RANLIB" >&6; }
6044else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046$as_echo "no" >&6; }
6047fi
6048
6049
6050fi
6051if test -z "$ac_cv_prog_RANLIB"; then
6052 ac_ct_RANLIB=$RANLIB
6053 # Extract the first word of "ranlib", so it can be a program name with args.
6054set dummy ranlib; ac_word=$2
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056$as_echo_n "checking for $ac_word... " >&6; }
6057if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059else
6060 if test -n "$ac_ct_RANLIB"; then
6061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6062else
6063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064for as_dir in $PATH
6065do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070 ac_cv_prog_ac_ct_RANLIB="ranlib"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074done
6075 done
6076IFS=$as_save_IFS
6077
6078fi
6079fi
6080ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6081if test -n "$ac_ct_RANLIB"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6083$as_echo "$ac_ct_RANLIB" >&6; }
6084else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086$as_echo "no" >&6; }
6087fi
6088
6089 if test "x$ac_ct_RANLIB" = x; then
6090 RANLIB=":"
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093yes:)
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096ac_tool_warned=yes ;;
6097esac
6098 RANLIB=$ac_ct_RANLIB
6099 fi
6100else
6101 RANLIB="$ac_cv_prog_RANLIB"
6102fi
6103
6104
6105
6106
6107 # Step 0.a: Enable 64 bit support?
6108
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
6110$as_echo_n "checking if 64bit support is requested... " >&6; }
6111 # Check whether --enable-64bit was given.
6112if test "${enable_64bit+set}" = set; then :
6113 enableval=$enable_64bit; do64bit=$enableval
6114else
6115 do64bit=no
6116fi
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
6119$as_echo "$do64bit" >&6; }
6120
6121 # Step 0.b: Enable Solaris 64 bit VIS support?
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
6124$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
6125 # Check whether --enable-64bit-vis was given.
6126if test "${enable_64bit_vis+set}" = set; then :
6127 enableval=$enable_64bit_vis; do64bitVIS=$enableval
6128else
6129 do64bitVIS=no
6130fi
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
6133$as_echo "$do64bitVIS" >&6; }
6134 # Force 64bit on with VIS
6135 if test "$do64bitVIS" = "yes"; then :
6136 do64bit=yes
6137fi
6138
6139 # Step 0.c: Check if visibility support is available. Do this here so
6140 # that platform specific alternatives can be used below if this fails.
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
6143$as_echo_n "checking if compiler supports visibility \"hidden\"... " >&6; }
6144if ${tcl_cv_cc_visibility_hidden+:} false; then :
6145 $as_echo_n "(cached) " >&6
6146else
6147
6148 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150/* end confdefs.h. */
6151
6152 extern __attribute__((__visibility__("hidden"))) void f(void);
6153 void f(void) {}
6154int
6155main ()
6156{
6157f();
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_link "$LINENO"; then :
6163 tcl_cv_cc_visibility_hidden=yes
6164else
6165 tcl_cv_cc_visibility_hidden=no
6166fi
6167rm -f core conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext
6169 CFLAGS=$hold_cflags
6170fi
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
6172$as_echo "$tcl_cv_cc_visibility_hidden" >&6; }
6173 if test $tcl_cv_cc_visibility_hidden = yes; then :
6174
6175
6176$as_echo "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
6177
6178
6179$as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
6180
6181
6182fi
6183
6184 # Step 0.d: Disable -rpath support?
6185
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
6187$as_echo_n "checking if rpath support is requested... " >&6; }
6188 # Check whether --enable-rpath was given.
6189if test "${enable_rpath+set}" = set; then :
6190 enableval=$enable_rpath; doRpath=$enableval
6191else
6192 doRpath=yes
6193fi
6194
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
6196$as_echo "$doRpath" >&6; }
6197
6198 # TEA specific: Cross-compiling options for Windows/CE builds?
6199
6200 if test "${TEA_PLATFORM}" = windows; then :
6201
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows/CE build is requested" >&5
6203$as_echo_n "checking if Windows/CE build is requested... " >&6; }
6204 # Check whether --enable-wince was given.
6205if test "${enable_wince+set}" = set; then :
6206 enableval=$enable_wince; doWince=$enableval
6207else
6208 doWince=no
6209fi
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5
6212$as_echo "$doWince" >&6; }
6213
6214fi
6215
6216 # Set the variable "system" to hold the name and version number
6217 # for the system.
6218
6219
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
6221$as_echo_n "checking system version... " >&6; }
6222if ${tcl_cv_sys_version+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224else
6225
6226 # TEA specific:
6227 if test "${TEA_PLATFORM}" = "windows" ; then
6228 tcl_cv_sys_version=windows
6229 else
6230 tcl_cv_sys_version=`uname -s`-`uname -r`
6231 if test "$?" -ne 0 ; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
6233$as_echo "$as_me: WARNING: can't find uname command" >&2;}
6234 tcl_cv_sys_version=unknown
6235 else
6236 if test "`uname -s`" = "AIX" ; then
6237 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
6238 fi
6239 fi
6240 fi
6241
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
6244$as_echo "$tcl_cv_sys_version" >&6; }
6245 system=$tcl_cv_sys_version
6246
6247
6248 # Require ranlib early so we can override it in special cases below.
6249
6250
6251
6252 # Set configuration options based on system name and version.
6253 # This is similar to Tcl's unix/tcl.m4 except that we've added a
6254 # "windows" case and removed some core-only vars.
6255
6256 do64bit_ok=no
6257 # default to '{$LIBS}' and set to "" on per-platform necessary basis
6258 SHLIB_LD_LIBS='${LIBS}'
6259 # When ld needs options to work in 64-bit mode, put them in
6260 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
6261 # is disabled by the user. [Bug 1016796]
6262 LDFLAGS_ARCH=""
6263 UNSHARED_LIB_SUFFIX=""
6264 # TEA specific: use PACKAGE_VERSION instead of VERSION
6265 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
6266 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
6267 TCL_LIB_VERSIONS_OK=ok
6268 CFLAGS_DEBUG=-g
6269 if test "$GCC" = yes; then :
6270
6271 CFLAGS_OPTIMIZE=-O2
6272 CFLAGS_WARNING="-Wall"
6273
6274else
6275
6276 CFLAGS_OPTIMIZE=-O
6277 CFLAGS_WARNING=""
6278
6279fi
6280 if test -n "$ac_tool_prefix"; then
6281 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6282set dummy ${ac_tool_prefix}ar; ac_word=$2
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if ${ac_cv_prog_AR+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287else
6288 if test -n "$AR"; then
6289 ac_cv_prog_AR="$AR" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_AR="${ac_tool_prefix}ar"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 break 2
6301 fi
6302done
6303 done
6304IFS=$as_save_IFS
6305
6306fi
6307fi
6308AR=$ac_cv_prog_AR
6309if test -n "$AR"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6311$as_echo "$AR" >&6; }
6312else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
6315fi
6316
6317
6318fi
6319if test -z "$ac_cv_prog_AR"; then
6320 ac_ct_AR=$AR
6321 # Extract the first word of "ar", so it can be a program name with args.
6322set dummy ar; ac_word=$2
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324$as_echo_n "checking for $ac_word... " >&6; }
6325if ${ac_cv_prog_ac_ct_AR+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327else
6328 if test -n "$ac_ct_AR"; then
6329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6330else
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_ac_ct_AR="ar"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342done
6343 done
6344IFS=$as_save_IFS
6345
6346fi
6347fi
6348ac_ct_AR=$ac_cv_prog_ac_ct_AR
6349if test -n "$ac_ct_AR"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6351$as_echo "$ac_ct_AR" >&6; }
6352else
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354$as_echo "no" >&6; }
6355fi
6356
6357 if test "x$ac_ct_AR" = x; then
6358 AR=""
6359 else
6360 case $cross_compiling:$ac_tool_warned in
6361yes:)
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6364ac_tool_warned=yes ;;
6365esac
6366 AR=$ac_ct_AR
6367 fi
6368else
6369 AR="$ac_cv_prog_AR"
6370fi
6371
6372 STLIB_LD='${AR} cr'
6373 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
6374 if test "x$SHLIB_VERSION" = x; then :
6375 SHLIB_VERSION="1.0"
6376fi
6377 case $system in
6378 # TEA specific:
6379 windows)
6380 # This is a 2-stage check to make sure we have the 64-bit SDK
6381 # We have to know where the SDK is installed.
6382 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
6383 # MACHINE is IX86 for LINK, but this is used by the manifest,
6384 # which requires x86|amd64|ia64.
6385 MACHINE="X86"
6386 if test "$do64bit" != "no" ; then
6387 if test "x${MSSDK}x" = "xx" ; then
6388 MSSDK="C:/Progra~1/Microsoft Platform SDK"
6389 fi
6390 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'`
6391 PATH64=""
6392 case "$do64bit" in
6393 amd64|x64|yes)
6394 MACHINE="AMD64" ; # default to AMD64 64-bit build
6395 PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
6396 ;;
6397 ia64)
6398 MACHINE="IA64"
6399 PATH64="${MSSDK}/Bin/Win64"
6400 ;;
6401 esac
6402 if test "$GCC" != "yes" -a ! -d "${PATH64}" ; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
6404$as_echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ensure latest Platform SDK is installed" >&5
6406$as_echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
6407 do64bit="no"
6408 else
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using 64-bit $MACHINE mode" >&5
6410$as_echo " Using 64-bit $MACHINE mode" >&6; }
6411 do64bit_ok="yes"
6412 fi
6413 fi
6414
6415 if test "$doWince" != "no" ; then
6416 if test "$do64bit" != "no" ; then
6417 as_fn_error $? "Windows/CE and 64-bit builds incompatible" "$LINENO" 5
6418 fi
6419 if test "$GCC" = "yes" ; then
6420 as_fn_error $? "Windows/CE and GCC builds incompatible" "$LINENO" 5
6421 fi
6422
6423 # First, look for one uninstalled.
6424 # the alternative search directory is invoked by --with-celib
6425
6426 if test x"${no_celib}" = x ; then
6427 # we reset no_celib in case something fails here
6428 no_celib=true
6429
6430# Check whether --with-celib was given.
6431if test "${with_celib+set}" = set; then :
6432 withval=$with_celib; with_celibconfig=${withval}
6433fi
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows/CE celib directory" >&5
6436$as_echo_n "checking for Windows/CE celib directory... " >&6; }
6437 if ${ac_cv_c_celibconfig+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439else
6440
6441 # First check to see if --with-celibconfig was specified.
6442 if test x"${with_celibconfig}" != x ; then
6443 if test -d "${with_celibconfig}/inc" ; then
6444 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
6445 else
6446 as_fn_error $? "${with_celibconfig} directory doesn't contain inc directory" "$LINENO" 5
6447 fi
6448 fi
6449
6450 # then check for a celib library
6451 if test x"${ac_cv_c_celibconfig}" = x ; then
6452 for i in \
6453 ../celib-palm-3.0 \
6454 ../celib \
6455 ../../celib-palm-3.0 \
6456 ../../celib \
6457 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
6458 ${srcdir}/../celib-palm-3.0 \
6459 ${srcdir}/../celib \
6460 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
6461 ; do
6462 if test -d "$i/inc" ; then
6463 ac_cv_c_celibconfig=`(cd $i; pwd)`
6464 break
6465 fi
6466 done
6467 fi
6468
6469fi
6470
6471 if test x"${ac_cv_c_celibconfig}" = x ; then
6472 as_fn_error $? "Cannot find celib support library directory" "$LINENO" 5
6473 else
6474 no_celib=
6475 CELIB_DIR=${ac_cv_c_celibconfig}
6476 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $CELIB_DIR" >&5
6478$as_echo "found $CELIB_DIR" >&6; }
6479 fi
6480 fi
6481
6482 # Set defaults for common evc4/PPC2003 setup
6483 # Currently Tcl requires 300+, possibly 420+ for sockets
6484 CEVERSION=420; # could be 211 300 301 400 420 ...
6485 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ...
6486 ARCH=ARM; # could be ARM MIPS X86EM ...
6487 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
6488 if test "$doWince" != "yes"; then
6489 # If !yes then the user specified something
6490 # Reset ARCH to allow user to skip specifying it
6491 ARCH=
6492 eval `echo $doWince | awk -F, '{ \
6493 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
6494 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
6495 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
6496 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
6497 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
6498 }'`
6499 if test "x${ARCH}" = "x" ; then
6500 ARCH=$TARGETCPU;
6501 fi
6502 fi
6503 OSVERSION=WCE$CEVERSION;
6504 if test "x${WCEROOT}" = "x" ; then
6505 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
6506 if test ! -d "${WCEROOT}" ; then
6507 WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
6508 fi
6509 fi
6510 if test "x${SDKROOT}" = "x" ; then
6511 SDKROOT="C:/Program Files/Windows CE Tools"
6512 if test ! -d "${SDKROOT}" ; then
6513 SDKROOT="C:/Windows CE Tools"
6514 fi
6515 fi
6516 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
6517 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
6518 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
6519 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
6520 as_fn_error $? "could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" "$LINENO" 5
6521 doWince="no"
6522 else
6523 # We could PATH_NOSPACE these, but that's not important,
6524 # as long as we quote them when used.
6525 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
6526 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
6527 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
6528 fi
6529 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
6530 fi
6531 fi
6532
6533 if test "$GCC" != "yes" ; then
6534 if test "${SHARED_BUILD}" = "0" ; then
6535 runtime=-MT
6536 else
6537 runtime=-MD
6538 fi
6539
6540 if test "$do64bit" != "no" ; then
6541 # All this magic is necessary for the Win64 SDK RC1 - hobbs
6542 CC="\"${PATH64}/cl.exe\""
6543 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
6544 RC="\"${MSSDK}/bin/rc.exe\""
6545 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
6546 LINKBIN="\"${PATH64}/link.exe\""
6547 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
6548 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6549 # Avoid 'unresolved external symbol __security_cookie'
6550 # errors, c.f. http://support.microsoft.com/?id=894573
6551
6552 vars="bufferoverflowU.lib"
6553 for i in $vars; do
6554 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6555 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6556 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
6557 fi
6558 PKG_LIBS="$PKG_LIBS $i"
6559 done
6560
6561
6562 elif test "$doWince" != "no" ; then
6563 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
6564 if test "${TARGETCPU}" = "X86"; then
6565 CC="\"${CEBINROOT}/cl.exe\""
6566 else
6567 CC="\"${CEBINROOT}/cl${ARCH}.exe\""
6568 fi
6569 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
6570 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
6571 arch=`echo ${ARCH} | awk '{print tolower($0)}'`
6572 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
6573 if test "${SHARED_BUILD}" = "1" ; then
6574 # Static CE builds require static celib as well
6575 defs="${defs} _DLL"
6576 fi
6577 for i in $defs ; do
6578
6579cat >>confdefs.h <<_ACEOF
6580#define $i 1
6581_ACEOF
6582
6583 done
6584
6585cat >>confdefs.h <<_ACEOF
6586#define _WIN32_WCE $CEVERSION
6587_ACEOF
6588
6589
6590cat >>confdefs.h <<_ACEOF
6591#define UNDER_CE $CEVERSION
6592_ACEOF
6593
6594 CFLAGS_DEBUG="-nologo -Zi -Od"
6595 CFLAGS_OPTIMIZE="-nologo -Ox"
6596 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
6597 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
6598 LINKBIN="\"${CEBINROOT}/link.exe\""
6599
6600 else
6601 RC="rc"
6602 lflags="-nologo"
6603 LINKBIN="link"
6604 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
6605 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6606 fi
6607 fi
6608
6609 if test "$GCC" = "yes"; then
6610 # mingw gcc mode
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6613set dummy ${ac_tool_prefix}windres; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if ${ac_cv_prog_RC+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618else
6619 if test -n "$RC"; then
6620 ac_cv_prog_RC="$RC" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_RC="${ac_tool_prefix}windres"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633done
6634 done
6635IFS=$as_save_IFS
6636
6637fi
6638fi
6639RC=$ac_cv_prog_RC
6640if test -n "$RC"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
6642$as_echo "$RC" >&6; }
6643else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648
6649fi
6650if test -z "$ac_cv_prog_RC"; then
6651 ac_ct_RC=$RC
6652 # Extract the first word of "windres", so it can be a program name with args.
6653set dummy windres; ac_word=$2
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
6656if ${ac_cv_prog_ac_ct_RC+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658else
6659 if test -n "$ac_ct_RC"; then
6660 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_ac_ct_RC="windres"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673done
6674 done
6675IFS=$as_save_IFS
6676
6677fi
6678fi
6679ac_ct_RC=$ac_cv_prog_ac_ct_RC
6680if test -n "$ac_ct_RC"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
6682$as_echo "$ac_ct_RC" >&6; }
6683else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685$as_echo "no" >&6; }
6686fi
6687
6688 if test "x$ac_ct_RC" = x; then
6689 RC=""
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692yes:)
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695ac_tool_warned=yes ;;
6696esac
6697 RC=$ac_ct_RC
6698 fi
6699else
6700 RC="$ac_cv_prog_RC"
6701fi
6702
6703 CFLAGS_DEBUG="-g"
6704 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
6705 SHLIB_LD='${CC} -shared'
6706 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
6707 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
6708 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
6709
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
6711$as_echo_n "checking for cross-compile version of gcc... " >&6; }
6712if ${ac_cv_cross+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714else
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716/* end confdefs.h. */
6717
6718 #ifdef _WIN32
6719 #error cross-compiler
6720 #endif
6721
6722int
6723main ()
6724{
6725
6726 ;
6727 return 0;
6728}
6729_ACEOF
6730if ac_fn_c_try_compile "$LINENO"; then :
6731 ac_cv_cross=yes
6732else
6733 ac_cv_cross=no
6734fi
6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
6739$as_echo "$ac_cv_cross" >&6; }
6740 if test "$ac_cv_cross" = "yes"; then
6741 case "$do64bit" in
6742 amd64|x64|yes)
6743 CC="x86_64-w64-mingw32-gcc"
6744 LD="x86_64-w64-mingw32-ld"
6745 AR="x86_64-w64-mingw32-ar"
6746 RANLIB="x86_64-w64-mingw32-ranlib"
6747 RC="x86_64-w64-mingw32-windres"
6748 ;;
6749 *)
6750 CC="i686-w64-mingw32-gcc"
6751 LD="i686-w64-mingw32-ld"
6752 AR="i686-w64-mingw32-ar"
6753 RANLIB="i686-w64-mingw32-ranlib"
6754 RC="i686-w64-mingw32-windres"
6755 ;;
6756 esac
6757 fi
6758
6759 else
6760 SHLIB_LD="${LINKBIN} -dll ${lflags}"
6761 # link -lib only works when -lib is the first arg
6762 STLIB_LD="${LINKBIN} -lib ${lflags}"
6763 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
6764 PATHTYPE=-w
6765 # For information on what debugtype is most useful, see:
6766 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
6767 # and also
6768 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
6769 # This essentially turns it all on.
6770 LDFLAGS_DEBUG="-debug -debugtype:cv"
6771 LDFLAGS_OPTIMIZE="-release"
6772 if test "$doWince" != "no" ; then
6773 LDFLAGS_CONSOLE="-link ${lflags}"
6774 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
6775 else
6776 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
6777 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
6778 fi
6779 fi
6780
6781 SHLIB_SUFFIX=".dll"
6782 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
6783
6784 TCL_LIB_VERSIONS_OK=nodots
6785 ;;
6786 AIX-*)
6787 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then :
6788
6789 # AIX requires the _r compiler when gcc isn't being used
6790 case "${CC}" in
6791 *_r|*_r\ *)
6792 # ok ...
6793 ;;
6794 *)
6795 # Make sure only first arg gets _r
6796 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
6797 ;;
6798 esac
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
6800$as_echo "Using $CC for compiling with threads" >&6; }
6801
6802fi
6803 LIBS="$LIBS -lc"
6804 SHLIB_CFLAGS=""
6805 SHLIB_SUFFIX=".so"
6806
6807 LD_LIBRARY_PATH_VAR="LIBPATH"
6808
6809 # Check to enable 64-bit flags for compiler/linker
6810 if test "$do64bit" = yes; then :
6811
6812 if test "$GCC" = yes; then :
6813
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6815$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6816
6817else
6818
6819 do64bit_ok=yes
6820 CFLAGS="$CFLAGS -q64"
6821 LDFLAGS_ARCH="-q64"
6822 RANLIB="${RANLIB} -X64"
6823 AR="${AR} -X64"
6824 SHLIB_LD_FLAGS="-b64"
6825
6826fi
6827
6828fi
6829
6830 if test "`uname -m`" = ia64; then :
6831
6832 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
6833 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
6834 if test "$GCC" = yes; then :
6835
6836 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
6837
6838else
6839
6840 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
6841
6842fi
6843 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
6844
6845else
6846
6847 if test "$GCC" = yes; then :
6848
6849 SHLIB_LD='${CC} -shared -Wl,-bexpall'
6850
6851else
6852
6853 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
6854 LDFLAGS="$LDFLAGS -brtl"
6855
6856fi
6857 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
6858 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6859 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6860
6861fi
6862 ;;
6863 BeOS*)
6864 SHLIB_CFLAGS="-fPIC"
6865 SHLIB_LD='${CC} -nostart'
6866 SHLIB_SUFFIX=".so"
6867
6868 #-----------------------------------------------------------
6869 # Check for inet_ntoa in -lbind, for BeOS (which also needs
6870 # -lsocket, even if the network functions are in -lnet which
6871 # is always linked to, for compatibility.
6872 #-----------------------------------------------------------
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
6874$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
6875if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877else
6878 ac_check_lib_save_LIBS=$LIBS
6879LIBS="-lbind $LIBS"
6880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h. */
6882
6883/* Override any GCC internal prototype to avoid an error.
6884 Use char because int might match the return type of a GCC
6885 builtin and then its argument prototype would still apply. */
6886#ifdef __cplusplus
6887extern "C"
6888#endif
6889char inet_ntoa ();
6890int
6891main ()
6892{
6893return inet_ntoa ();
6894 ;
6895 return 0;
6896}
6897_ACEOF
6898if ac_fn_c_try_link "$LINENO"; then :
6899 ac_cv_lib_bind_inet_ntoa=yes
6900else
6901 ac_cv_lib_bind_inet_ntoa=no
6902fi
6903rm -f core conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905LIBS=$ac_check_lib_save_LIBS
6906fi
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
6908$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
6909if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
6910 LIBS="$LIBS -lbind -lsocket"
6911fi
6912
6913 ;;
6914 BSD/OS-4.*)
6915 SHLIB_CFLAGS="-export-dynamic -fPIC"
6916 SHLIB_LD='${CC} -shared'
6917 SHLIB_SUFFIX=".so"
6918 LDFLAGS="$LDFLAGS -export-dynamic"
6919 CC_SEARCH_FLAGS=""
6920 LD_SEARCH_FLAGS=""
6921 ;;
6922 CYGWIN_*)
6923 SHLIB_CFLAGS=""
6924 SHLIB_LD='${CC} -shared'
6925 SHLIB_SUFFIX=".dll"
6926 EXEEXT=".exe"
6927 do64bit_ok=yes
6928 CC_SEARCH_FLAGS=""
6929 LD_SEARCH_FLAGS=""
6930 ;;
6931 Haiku*)
6932 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6933 SHLIB_CFLAGS="-fPIC"
6934 SHLIB_SUFFIX=".so"
6935 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
6937$as_echo_n "checking for inet_ntoa in -lnetwork... " >&6; }
6938if ${ac_cv_lib_network_inet_ntoa+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940else
6941 ac_check_lib_save_LIBS=$LIBS
6942LIBS="-lnetwork $LIBS"
6943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h. */
6945
6946/* Override any GCC internal prototype to avoid an error.
6947 Use char because int might match the return type of a GCC
6948 builtin and then its argument prototype would still apply. */
6949#ifdef __cplusplus
6950extern "C"
6951#endif
6952char inet_ntoa ();
6953int
6954main ()
6955{
6956return inet_ntoa ();
6957 ;
6958 return 0;
6959}
6960_ACEOF
6961if ac_fn_c_try_link "$LINENO"; then :
6962 ac_cv_lib_network_inet_ntoa=yes
6963else
6964 ac_cv_lib_network_inet_ntoa=no
6965fi
6966rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6968LIBS=$ac_check_lib_save_LIBS
6969fi
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
6971$as_echo "$ac_cv_lib_network_inet_ntoa" >&6; }
6972if test "x$ac_cv_lib_network_inet_ntoa" = xyes; then :
6973 LIBS="$LIBS -lnetwork"
6974fi
6975
6976 ;;
6977 HP-UX-*.11.*)
6978 # Use updated header definitions where possible
6979
6980$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
6981
6982 # TEA specific: Needed by Tcl, but not most extensions
6983 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
6984 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
6985
6986 if test "`uname -m`" = ia64; then :
6987
6988 SHLIB_SUFFIX=".so"
6989 # Use newer C++ library for C++ extensions
6990 #if test "$GCC" != "yes" ; then
6991 # CPPFLAGS="-AA"
6992 #fi
6993
6994else
6995
6996 SHLIB_SUFFIX=".sl"
6997
6998fi
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7000$as_echo_n "checking for shl_load in -ldld... " >&6; }
7001if ${ac_cv_lib_dld_shl_load+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003else
7004 ac_check_lib_save_LIBS=$LIBS
7005LIBS="-ldld $LIBS"
7006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h. */
7008
7009/* Override any GCC internal prototype to avoid an error.
7010 Use char because int might match the return type of a GCC
7011 builtin and then its argument prototype would still apply. */
7012#ifdef __cplusplus
7013extern "C"
7014#endif
7015char shl_load ();
7016int
7017main ()
7018{
7019return shl_load ();
7020 ;
7021 return 0;
7022}
7023_ACEOF
7024if ac_fn_c_try_link "$LINENO"; then :
7025 ac_cv_lib_dld_shl_load=yes
7026else
7027 ac_cv_lib_dld_shl_load=no
7028fi
7029rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7031LIBS=$ac_check_lib_save_LIBS
7032fi
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7034$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7035if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7036 tcl_ok=yes
7037else
7038 tcl_ok=no
7039fi
7040
7041 if test "$tcl_ok" = yes; then :
7042
7043 LDFLAGS="$LDFLAGS -Wl,-E"
7044 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
7045 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
7046 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7047
7048fi
7049 if test "$GCC" = yes; then :
7050
7051 SHLIB_LD='${CC} -shared'
7052 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7053
7054else
7055
7056 CFLAGS="$CFLAGS -z"
7057 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
7058 #CFLAGS="$CFLAGS +DAportable"
7059 SHLIB_CFLAGS="+z"
7060 SHLIB_LD="ld -b"
7061
7062fi
7063
7064 # Check to enable 64-bit flags for compiler/linker
7065 if test "$do64bit" = "yes"; then :
7066
7067 if test "$GCC" = yes; then :
7068
7069 case `${CC} -dumpmachine` in
7070 hppa64*)
7071 # 64-bit gcc in use. Fix flags for GNU ld.
7072 do64bit_ok=yes
7073 SHLIB_LD='${CC} -shared'
7074 if test $doRpath = yes; then :
7075
7076 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7077fi
7078 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7079 ;;
7080 *)
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7082$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7083 ;;
7084 esac
7085
7086else
7087
7088 do64bit_ok=yes
7089 CFLAGS="$CFLAGS +DD64"
7090 LDFLAGS_ARCH="+DD64"
7091
7092fi
7093
7094fi ;;
7095 IRIX-6.*)
7096 SHLIB_CFLAGS=""
7097 SHLIB_LD="ld -n32 -shared -rdata_shared"
7098 SHLIB_SUFFIX=".so"
7099 if test $doRpath = yes; then :
7100
7101 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7102 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7103fi
7104 if test "$GCC" = yes; then :
7105
7106 CFLAGS="$CFLAGS -mabi=n32"
7107 LDFLAGS="$LDFLAGS -mabi=n32"
7108
7109else
7110
7111 case $system in
7112 IRIX-6.3)
7113 # Use to build 6.2 compatible binaries on 6.3.
7114 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7115 ;;
7116 *)
7117 CFLAGS="$CFLAGS -n32"
7118 ;;
7119 esac
7120 LDFLAGS="$LDFLAGS -n32"
7121
7122fi
7123 ;;
7124 IRIX64-6.*)
7125 SHLIB_CFLAGS=""
7126 SHLIB_LD="ld -n32 -shared -rdata_shared"
7127 SHLIB_SUFFIX=".so"
7128 if test $doRpath = yes; then :
7129
7130 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7131 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7132fi
7133
7134 # Check to enable 64-bit flags for compiler/linker
7135
7136 if test "$do64bit" = yes; then :
7137
7138 if test "$GCC" = yes; then :
7139
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
7141$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7142
7143else
7144
7145 do64bit_ok=yes
7146 SHLIB_LD="ld -64 -shared -rdata_shared"
7147 CFLAGS="$CFLAGS -64"
7148 LDFLAGS_ARCH="-64"
7149
7150fi
7151
7152fi
7153 ;;
7154 Linux*|GNU*|NetBSD-Debian)
7155 SHLIB_CFLAGS="-fPIC"
7156 SHLIB_SUFFIX=".so"
7157
7158 # TEA specific:
7159 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7160
7161 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7162 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}'
7163 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7164 if test $doRpath = yes; then :
7165
7166 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7167fi
7168 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7169 if test "`uname -m`" = "alpha"; then :
7170 CFLAGS="$CFLAGS -mieee"
7171fi
7172 if test $do64bit = yes; then :
7173
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
7175$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
7176if ${tcl_cv_cc_m64+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178else
7179
7180 hold_cflags=$CFLAGS
7181 CFLAGS="$CFLAGS -m64"
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h. */
7184
7185int
7186main ()
7187{
7188
7189 ;
7190 return 0;
7191}
7192_ACEOF
7193if ac_fn_c_try_link "$LINENO"; then :
7194 tcl_cv_cc_m64=yes
7195else
7196 tcl_cv_cc_m64=no
7197fi
7198rm -f core conftest.err conftest.$ac_objext \
7199 conftest$ac_exeext conftest.$ac_ext
7200 CFLAGS=$hold_cflags
7201fi
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
7203$as_echo "$tcl_cv_cc_m64" >&6; }
7204 if test $tcl_cv_cc_m64 = yes; then :
7205
7206 CFLAGS="$CFLAGS -m64"
7207 do64bit_ok=yes
7208
7209fi
7210
7211fi
7212
7213 # The combo of gcc + glibc has a bug related to inlining of
7214 # functions like strtod(). The -fno-builtin flag should address
7215 # this problem but it does not work. The -fno-inline flag is kind
7216 # of overkill but it works. Disable inlining only when one of the
7217 # files in compat/*.c is being linked in.
7218
7219 if test x"${USE_COMPAT}" != x; then :
7220 CFLAGS="$CFLAGS -fno-inline"
7221fi
7222 ;;
7223 Lynx*)
7224 SHLIB_CFLAGS="-fPIC"
7225 SHLIB_SUFFIX=".so"
7226 CFLAGS_OPTIMIZE=-02
7227 SHLIB_LD='${CC} -shared'
7228 LD_FLAGS="-Wl,--export-dynamic"
7229 if test $doRpath = yes; then :
7230
7231 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7232 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7233fi
7234 ;;
7235 OpenBSD-*)
7236 arch=`arch -s`
7237 case "$arch" in
7238 vax)
7239 SHLIB_SUFFIX=""
7240 SHARED_LIB_SUFFIX=""
7241 LDFLAGS=""
7242 ;;
7243 *)
7244 SHLIB_CFLAGS="-fPIC"
7245 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
7246 SHLIB_SUFFIX=".so"
7247 if test $doRpath = yes; then :
7248
7249 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7250fi
7251 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7252 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
7253 LDFLAGS="-Wl,-export-dynamic"
7254 ;;
7255 esac
7256 case "$arch" in
7257 vax)
7258 CFLAGS_OPTIMIZE="-O1"
7259 ;;
7260 *)
7261 CFLAGS_OPTIMIZE="-O2"
7262 ;;
7263 esac
7264 if test "${TCL_THREADS}" = "1"; then :
7265
7266 # On OpenBSD: Compile with -pthread
7267 # Don't link with -lpthread
7268 LIBS=`echo $LIBS | sed s/-lpthread//`
7269 CFLAGS="$CFLAGS -pthread"
7270
7271fi
7272 # OpenBSD doesn't do version numbers with dots.
7273 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7274 TCL_LIB_VERSIONS_OK=nodots
7275 ;;
7276 NetBSD-*)
7277 # NetBSD has ELF and can use 'cc -shared' to build shared libs
7278 SHLIB_CFLAGS="-fPIC"
7279 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
7280 SHLIB_SUFFIX=".so"
7281 LDFLAGS="$LDFLAGS -export-dynamic"
7282 if test $doRpath = yes; then :
7283
7284 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7285fi
7286 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7287 if test "${TCL_THREADS}" = "1"; then :
7288
7289 # The -pthread needs to go in the CFLAGS, not LIBS
7290 LIBS=`echo $LIBS | sed s/-pthread//`
7291 CFLAGS="$CFLAGS -pthread"
7292 LDFLAGS="$LDFLAGS -pthread"
7293
7294fi
7295 ;;
7296 FreeBSD-*)
7297 # This configuration from FreeBSD Ports.
7298 SHLIB_CFLAGS="-fPIC"
7299 SHLIB_LD="${CC} -shared"
7300 TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$@"
7301 TK_SHLIB_LD_EXTRAS="-Wl,-soname,\$@"
7302 SHLIB_SUFFIX=".so"
7303 LDFLAGS=""
7304 if test $doRpath = yes; then :
7305
7306 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7307 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7308fi
7309 if test "${TCL_THREADS}" = "1"; then :
7310
7311 # The -pthread needs to go in the LDFLAGS, not LIBS
7312 LIBS=`echo $LIBS | sed s/-pthread//`
7313 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7314 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
7315fi
7316 case $system in
7317 FreeBSD-3.*)
7318 # Version numbers are dot-stripped by system policy.
7319 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
7320 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7321 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
7322 TCL_LIB_VERSIONS_OK=nodots
7323 ;;
7324 esac
7325 ;;
7326 Darwin-*)
7327 CFLAGS_OPTIMIZE="-Os"
7328 SHLIB_CFLAGS="-fno-common"
7329 # To avoid discrepancies between what headers configure sees during
7330 # preprocessing tests and compiling tests, move any -isysroot and
7331 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
7332 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
7333 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7334 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
7335 CFLAGS="`echo " ${CFLAGS}" | \
7336 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7337 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
7338 if test $do64bit = yes; then :
7339
7340 case `arch` in
7341 ppc)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
7343$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
7344if ${tcl_cv_cc_arch_ppc64+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346else
7347
7348 hold_cflags=$CFLAGS
7349 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h. */
7352
7353int
7354main ()
7355{
7356
7357 ;
7358 return 0;
7359}
7360_ACEOF
7361if ac_fn_c_try_link "$LINENO"; then :
7362 tcl_cv_cc_arch_ppc64=yes
7363else
7364 tcl_cv_cc_arch_ppc64=no
7365fi
7366rm -f core conftest.err conftest.$ac_objext \
7367 conftest$ac_exeext conftest.$ac_ext
7368 CFLAGS=$hold_cflags
7369fi
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
7371$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
7372 if test $tcl_cv_cc_arch_ppc64 = yes; then :
7373
7374 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7375 do64bit_ok=yes
7376
7377fi;;
7378 i386)
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
7380$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
7381if ${tcl_cv_cc_arch_x86_64+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383else
7384
7385 hold_cflags=$CFLAGS
7386 CFLAGS="$CFLAGS -arch x86_64"
7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388/* end confdefs.h. */
7389
7390int
7391main ()
7392{
7393
7394 ;
7395 return 0;
7396}
7397_ACEOF
7398if ac_fn_c_try_link "$LINENO"; then :
7399 tcl_cv_cc_arch_x86_64=yes
7400else
7401 tcl_cv_cc_arch_x86_64=no
7402fi
7403rm -f core conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
7405 CFLAGS=$hold_cflags
7406fi
7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
7408$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
7409 if test $tcl_cv_cc_arch_x86_64 = yes; then :
7410
7411 CFLAGS="$CFLAGS -arch x86_64"
7412 do64bit_ok=yes
7413
7414fi;;
7415 *)
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
7417$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
7418 esac
7419
7420else
7421
7422 # Check for combined 32-bit and 64-bit fat build
7423 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
7424 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then :
7425
7426 fat_32_64=yes
7427fi
7428
7429fi
7430 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7431 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
7433$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
7434if ${tcl_cv_ld_single_module+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436else
7437
7438 hold_ldflags=$LDFLAGS
7439 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h. */
7442
7443int
7444main ()
7445{
7446int i;
7447 ;
7448 return 0;
7449}
7450_ACEOF
7451if ac_fn_c_try_link "$LINENO"; then :
7452 tcl_cv_ld_single_module=yes
7453else
7454 tcl_cv_ld_single_module=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext \
7457 conftest$ac_exeext conftest.$ac_ext
7458 LDFLAGS=$hold_ldflags
7459fi
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
7461$as_echo "$tcl_cv_ld_single_module" >&6; }
7462 if test $tcl_cv_ld_single_module = yes; then :
7463
7464 SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
7465
7466fi
7467 # TEA specific: link shlib with current and compatibility version flags
7468 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
7469 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
7470 SHLIB_SUFFIX=".dylib"
7471 # Don't use -prebind when building for Mac OS X 10.4 or later only:
7472 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
7473 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then :
7474
7475 LDFLAGS="$LDFLAGS -prebind"
7476fi
7477 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
7479$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
7480if ${tcl_cv_ld_search_paths_first+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482else
7483
7484 hold_ldflags=$LDFLAGS
7485 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h. */
7488
7489int
7490main ()
7491{
7492int i;
7493 ;
7494 return 0;
7495}
7496_ACEOF
7497if ac_fn_c_try_link "$LINENO"; then :
7498 tcl_cv_ld_search_paths_first=yes
7499else
7500 tcl_cv_ld_search_paths_first=no
7501fi
7502rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 LDFLAGS=$hold_ldflags
7505fi
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
7507$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
7508 if test $tcl_cv_ld_search_paths_first = yes; then :
7509
7510 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7511
7512fi
7513 if test "$tcl_cv_cc_visibility_hidden" != yes; then :
7514
7515
7516$as_echo "#define MODULE_SCOPE __private_extern__" >>confdefs.h
7517
7518 tcl_cv_cc_visibility_hidden=yes
7519
7520fi
7521 CC_SEARCH_FLAGS=""
7522 LD_SEARCH_FLAGS=""
7523 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
7524 # TEA specific: for combined 32 & 64 bit fat builds of Tk
7525 # extensions, verify that 64-bit build is possible.
7526 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then :
7527
7528 if test "${TEA_WINDOWINGSYSTEM}" = x11; then :
7529
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
7531$as_echo_n "checking for 64-bit X11... " >&6; }
7532if ${tcl_cv_lib_x11_64+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534else
7535
7536 for v in CFLAGS CPPFLAGS LDFLAGS; do
7537 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7538 done
7539 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
7540 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542/* end confdefs.h. */
7543#include <X11/Xlib.h>
7544int
7545main ()
7546{
7547XrmInitialize();
7548 ;
7549 return 0;
7550}
7551_ACEOF
7552if ac_fn_c_try_link "$LINENO"; then :
7553 tcl_cv_lib_x11_64=yes
7554else
7555 tcl_cv_lib_x11_64=no
7556fi
7557rm -f core conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
7559 for v in CFLAGS CPPFLAGS LDFLAGS; do
7560 eval $v'="$hold_'$v'"'
7561 done
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
7564$as_echo "$tcl_cv_lib_x11_64" >&6; }
7565
7566fi
7567 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then :
7568
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
7570$as_echo_n "checking for 64-bit Tk... " >&6; }
7571if ${tcl_cv_lib_tk_64+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573else
7574
7575 for v in CFLAGS CPPFLAGS LDFLAGS; do
7576 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7577 done
7578 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
7579 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h. */
7582#include <tk.h>
7583int
7584main ()
7585{
7586Tk_InitStubs(NULL, "", 0);
7587 ;
7588 return 0;
7589}
7590_ACEOF
7591if ac_fn_c_try_link "$LINENO"; then :
7592 tcl_cv_lib_tk_64=yes
7593else
7594 tcl_cv_lib_tk_64=no
7595fi
7596rm -f core conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 for v in CFLAGS CPPFLAGS LDFLAGS; do
7599 eval $v'="$hold_'$v'"'
7600 done
7601fi
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
7603$as_echo "$tcl_cv_lib_tk_64" >&6; }
7604
7605fi
7606 # remove 64-bit arch flags from CFLAGS et al. if configuration
7607 # does not support 64-bit.
7608 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then :
7609
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
7611$as_echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
7612 for v in CFLAGS CPPFLAGS LDFLAGS; do
7613 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
7614 done
7615fi
7616
7617fi
7618 ;;
7619 OS/390-*)
7620 CFLAGS_OPTIMIZE="" # Optimizer is buggy
7621
7622$as_echo "#define _OE_SOCKETS 1" >>confdefs.h
7623
7624 ;;
7625 OSF1-V*)
7626 # Digital OSF/1
7627 SHLIB_CFLAGS=""
7628 if test "$SHARED_BUILD" = 1; then :
7629
7630 SHLIB_LD='ld -shared -expect_unresolved "*"'
7631
7632else
7633
7634 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
7635
7636fi
7637 SHLIB_SUFFIX=".so"
7638 if test $doRpath = yes; then :
7639
7640 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7641 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7642fi
7643 if test "$GCC" = yes; then :
7644 CFLAGS="$CFLAGS -mieee"
7645else
7646
7647 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
7648fi
7649 # see pthread_intro(3) for pthread support on osf1, k.furukawa
7650 if test "${TCL_THREADS}" = 1; then :
7651
7652 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
7653 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
7654 LIBS=`echo $LIBS | sed s/-lpthreads//`
7655 if test "$GCC" = yes; then :
7656
7657 LIBS="$LIBS -lpthread -lmach -lexc"
7658
7659else
7660
7661 CFLAGS="$CFLAGS -pthread"
7662 LDFLAGS="$LDFLAGS -pthread"
7663
7664fi
7665
7666fi
7667 ;;
7668 QNX-6*)
7669 # QNX RTP
7670 # This may work for all QNX, but it was only reported for v6.
7671 SHLIB_CFLAGS="-fPIC"
7672 SHLIB_LD="ld -Bshareable -x"
7673 SHLIB_LD_LIBS=""
7674 SHLIB_SUFFIX=".so"
7675 CC_SEARCH_FLAGS=""
7676 LD_SEARCH_FLAGS=""
7677 ;;
7678 SCO_SV-3.2*)
7679 if test "$GCC" = yes; then :
7680
7681 SHLIB_CFLAGS="-fPIC -melf"
7682 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
7683
7684else
7685
7686 SHLIB_CFLAGS="-Kpic -belf"
7687 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
7688
7689fi
7690 SHLIB_LD="ld -G"
7691 SHLIB_LD_LIBS=""
7692 SHLIB_SUFFIX=".so"
7693 CC_SEARCH_FLAGS=""
7694 LD_SEARCH_FLAGS=""
7695 ;;
7696 SunOS-5.[0-6])
7697 # Careful to not let 5.10+ fall into this case
7698
7699 # Note: If _REENTRANT isn't defined, then Solaris
7700 # won't define thread-safe library routines.
7701
7702
7703$as_echo "#define _REENTRANT 1" >>confdefs.h
7704
7705
7706$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7707
7708
7709 SHLIB_CFLAGS="-KPIC"
7710 SHLIB_SUFFIX=".so"
7711 if test "$GCC" = yes; then :
7712
7713 SHLIB_LD='${CC} -shared'
7714 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7715 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7716
7717else
7718
7719 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7720 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7721 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7722
7723fi
7724 ;;
7725 SunOS-5*)
7726 # Note: If _REENTRANT isn't defined, then Solaris
7727 # won't define thread-safe library routines.
7728
7729
7730$as_echo "#define _REENTRANT 1" >>confdefs.h
7731
7732
7733$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7734
7735
7736 SHLIB_CFLAGS="-KPIC"
7737
7738 # Check to enable 64-bit flags for compiler/linker
7739 if test "$do64bit" = yes; then :
7740
7741 arch=`isainfo`
7742 if test "$arch" = "sparcv9 sparc"; then :
7743
7744 if test "$GCC" = yes; then :
7745
7746 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then :
7747
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
7749$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
7750
7751else
7752
7753 do64bit_ok=yes
7754 CFLAGS="$CFLAGS -m64 -mcpu=v9"
7755 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
7756 SHLIB_CFLAGS="-fPIC"
7757
7758fi
7759
7760else
7761
7762 do64bit_ok=yes
7763 if test "$do64bitVIS" = yes; then :
7764
7765 CFLAGS="$CFLAGS -xarch=v9a"
7766 LDFLAGS_ARCH="-xarch=v9a"
7767
7768else
7769
7770 CFLAGS="$CFLAGS -xarch=v9"
7771 LDFLAGS_ARCH="-xarch=v9"
7772
7773fi
7774 # Solaris 64 uses this as well
7775 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
7776
7777fi
7778
7779else
7780 if test "$arch" = "amd64 i386"; then :
7781
7782 if test "$GCC" = yes; then :
7783
7784 case $system in
7785 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
7786 do64bit_ok=yes
7787 CFLAGS="$CFLAGS -m64"
7788 LDFLAGS="$LDFLAGS -m64";;
7789 *)
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7791$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
7792 esac
7793
7794else
7795
7796 do64bit_ok=yes
7797 case $system in
7798 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
7799 CFLAGS="$CFLAGS -m64"
7800 LDFLAGS="$LDFLAGS -m64";;
7801 *)
7802 CFLAGS="$CFLAGS -xarch=amd64"
7803 LDFLAGS="$LDFLAGS -xarch=amd64";;
7804 esac
7805
7806fi
7807
7808else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
7810$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
7811fi
7812fi
7813
7814fi
7815
7816 SHLIB_SUFFIX=".so"
7817 if test "$GCC" = yes; then :
7818
7819 SHLIB_LD='${CC} -shared'
7820 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7821 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7822 if test "$do64bit_ok" = yes; then :
7823
7824 if test "$arch" = "sparcv9 sparc"; then :
7825
7826 # We need to specify -static-libgcc or we need to
7827 # add the path to the sparv9 libgcc.
7828 # JH: static-libgcc is necessary for core Tcl, but may
7829 # not be necessary for extensions.
7830 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
7831 # for finding sparcv9 libgcc, get the regular libgcc
7832 # path, remove so name and append 'sparcv9'
7833 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
7834 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
7835
7836else
7837 if test "$arch" = "amd64 i386"; then :
7838
7839 # JH: static-libgcc is necessary for core Tcl, but may
7840 # not be necessary for extensions.
7841 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
7842
7843fi
7844fi
7845
7846fi
7847
7848else
7849
7850 case $system in
7851 SunOS-5.[1-9][0-9]*)
7852 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7853 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
7854 *)
7855 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
7856 esac
7857 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
7858 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7859
7860fi
7861 ;;
7862 UNIX_SV* | UnixWare-5*)
7863 SHLIB_CFLAGS="-KPIC"
7864 SHLIB_LD='${CC} -G'
7865 SHLIB_LD_LIBS=""
7866 SHLIB_SUFFIX=".so"
7867 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
7868 # that don't grok the -Bexport option. Test that it does.
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
7870$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
7871if ${tcl_cv_ld_Bexport+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873else
7874
7875 hold_ldflags=$LDFLAGS
7876 LDFLAGS="$LDFLAGS -Wl,-Bexport"
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878/* end confdefs.h. */
7879
7880int
7881main ()
7882{
7883int i;
7884 ;
7885 return 0;
7886}
7887_ACEOF
7888if ac_fn_c_try_link "$LINENO"; then :
7889 tcl_cv_ld_Bexport=yes
7890else
7891 tcl_cv_ld_Bexport=no
7892fi
7893rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 LDFLAGS=$hold_ldflags
7896fi
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
7898$as_echo "$tcl_cv_ld_Bexport" >&6; }
7899 if test $tcl_cv_ld_Bexport = yes; then :
7900
7901 LDFLAGS="$LDFLAGS -Wl,-Bexport"
7902
7903fi
7904 CC_SEARCH_FLAGS=""
7905 LD_SEARCH_FLAGS=""
7906 ;;
7907 esac
7908
7909 if test "$do64bit" = yes -a "$do64bit_ok" = no; then :
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
7912$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
7913
7914fi
7915
7916
7917
7918 # Add in the arch flags late to ensure it wasn't removed.
7919 # Not necessary in TEA, but this is aligned with core
7920 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
7921
7922 # If we're running gcc, then change the C flags for compiling shared
7923 # libraries to the right flags for gcc, instead of those for the
7924 # standard manufacturer compiler.
7925
7926 if test "$GCC" = yes; then :
7927
7928 case $system in
7929 AIX-*) ;;
7930 BSD/OS*) ;;
7931 CYGWIN_*|MINGW32_*) ;;
7932 IRIX*) ;;
7933 NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
7934 Darwin-*) ;;
7935 SCO_SV-3.2*) ;;
7936 windows) ;;
7937 *) SHLIB_CFLAGS="-fPIC" ;;
7938 esac
7939fi
7940
7941 if test "$tcl_cv_cc_visibility_hidden" != yes; then :
7942
7943
7944$as_echo "#define MODULE_SCOPE extern" >>confdefs.h
7945
7946
7947fi
7948
7949 if test "$SHARED_LIB_SUFFIX" = ""; then :
7950
7951 # TEA specific: use PACKAGE_VERSION instead of VERSION
7952 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
7953fi
7954 if test "$UNSHARED_LIB_SUFFIX" = ""; then :
7955
7956 # TEA specific: use PACKAGE_VERSION instead of VERSION
7957 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
7958fi
7959
7960 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
7962$as_echo_n "checking for SEH support in compiler... " >&6; }
7963if ${tcl_cv_seh+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965else
7966 if test "$cross_compiling" = yes; then :
7967 tcl_cv_seh=no
7968else
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970/* end confdefs.h. */
7971
7972#define WIN32_LEAN_AND_MEAN
7973#include <windows.h>
7974#undef WIN32_LEAN_AND_MEAN
7975
7976 int main(int argc, char** argv) {
7977 int a, b = 0;
7978 __try {
7979 a = 666 / b;
7980 }
7981 __except (EXCEPTION_EXECUTE_HANDLER) {
7982 return 0;
7983 }
7984 return 1;
7985 }
7986
7987_ACEOF
7988if ac_fn_c_try_run "$LINENO"; then :
7989 tcl_cv_seh=yes
7990else
7991 tcl_cv_seh=no
7992fi
7993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7994 conftest.$ac_objext conftest.beam conftest.$ac_ext
7995fi
7996
7997
7998fi
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
8000$as_echo "$tcl_cv_seh" >&6; }
8001 if test "$tcl_cv_seh" = "no" ; then
8002
8003$as_echo "#define HAVE_NO_SEH 1" >>confdefs.h
8004
8005 fi
8006
8007 #
8008 # Check to see if the excpt.h include file provided contains the
8009 # definition for EXCEPTION_DISPOSITION; if not, which is the case
8010 # with Cygwin's version as of 2002-04-10, define it to be int,
8011 # sufficient for getting the current code to work.
8012 #
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
8014$as_echo_n "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
8015if ${tcl_cv_eh_disposition+:} false; then :
8016 $as_echo_n "(cached) " >&6
8017else
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h. */
8020
8021# define WIN32_LEAN_AND_MEAN
8022# include <windows.h>
8023# undef WIN32_LEAN_AND_MEAN
8024
8025int
8026main ()
8027{
8028
8029 EXCEPTION_DISPOSITION x;
8030
8031 ;
8032 return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_compile "$LINENO"; then :
8036 tcl_cv_eh_disposition=yes
8037else
8038 tcl_cv_eh_disposition=no
8039fi
8040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041
8042fi
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
8044$as_echo "$tcl_cv_eh_disposition" >&6; }
8045 if test "$tcl_cv_eh_disposition" = "no" ; then
8046
8047$as_echo "#define EXCEPTION_DISPOSITION int" >>confdefs.h
8048
8049 fi
8050
8051 # Check to see if winnt.h defines CHAR, SHORT, and LONG
8052 # even if VOID has already been #defined. The win32api
8053 # used by mingw and cygwin is known to do this.
8054
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
8056$as_echo_n "checking for winnt.h that ignores VOID define... " >&6; }
8057if ${tcl_cv_winnt_ignore_void+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059else
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061/* end confdefs.h. */
8062
8063#define VOID void
8064#define WIN32_LEAN_AND_MEAN
8065#include <windows.h>
8066#undef WIN32_LEAN_AND_MEAN
8067
8068int
8069main ()
8070{
8071
8072 CHAR c;
8073 SHORT s;
8074 LONG l;
8075
8076 ;
8077 return 0;
8078}
8079_ACEOF
8080if ac_fn_c_try_compile "$LINENO"; then :
8081 tcl_cv_winnt_ignore_void=yes
8082else
8083 tcl_cv_winnt_ignore_void=no
8084fi
8085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086
8087fi
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
8089$as_echo "$tcl_cv_winnt_ignore_void" >&6; }
8090 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
8091
8092$as_echo "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
8093
8094 fi
8095 fi
8096
8097 # See if the compiler supports casting to a union type.
8098 # This is used to stop gcc from printing a compiler
8099 # warning when initializing a union member.
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
8102$as_echo_n "checking for cast to union support... " >&6; }
8103if ${tcl_cv_cast_to_union+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h. */
8108
8109int
8110main ()
8111{
8112
8113 union foo { int i; double d; };
8114 union foo f = (union foo) (int) 0;
8115
8116 ;
8117 return 0;
8118}
8119_ACEOF
8120if ac_fn_c_try_compile "$LINENO"; then :
8121 tcl_cv_cast_to_union=yes
8122else
8123 tcl_cv_cast_to_union=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126
8127fi
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
8129$as_echo "$tcl_cv_cast_to_union" >&6; }
8130 if test "$tcl_cv_cast_to_union" = "yes"; then
8131
8132$as_echo "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
8133
8134 fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148 # These must be called after we do the basic CFLAGS checks and
8149 # verify any possible 64-bit or similar switches are necessary
8150
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
8152$as_echo_n "checking for required early compiler flags... " >&6; }
8153 tcl_flags=""
8154
8155 if ${tcl_cv_flag__isoc99_source+:} false; then :
8156 $as_echo_n "(cached) " >&6
8157else
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h. */
8160#include <stdlib.h>
8161int
8162main ()
8163{
8164char *p = (char *)strtoll; char *q = (char *)strtoull;
8165 ;
8166 return 0;
8167}
8168_ACEOF
8169if ac_fn_c_try_compile "$LINENO"; then :
8170 tcl_cv_flag__isoc99_source=no
8171else
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173/* end confdefs.h. */
8174#define _ISOC99_SOURCE 1
8175#include <stdlib.h>
8176int
8177main ()
8178{
8179char *p = (char *)strtoll; char *q = (char *)strtoull;
8180 ;
8181 return 0;
8182}
8183_ACEOF
8184if ac_fn_c_try_compile "$LINENO"; then :
8185 tcl_cv_flag__isoc99_source=yes
8186else
8187 tcl_cv_flag__isoc99_source=no
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190fi
8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192fi
8193
8194 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
8195
8196$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h
8197
8198 tcl_flags="$tcl_flags _ISOC99_SOURCE"
8199 fi
8200
8201
8202 if ${tcl_cv_flag__largefile64_source+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204else
8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206/* end confdefs.h. */
8207#include <sys/stat.h>
8208int
8209main ()
8210{
8211struct stat64 buf; int i = stat64("/", &buf);
8212 ;
8213 return 0;
8214}
8215_ACEOF
8216if ac_fn_c_try_compile "$LINENO"; then :
8217 tcl_cv_flag__largefile64_source=no
8218else
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220/* end confdefs.h. */
8221#define _LARGEFILE64_SOURCE 1
8222#include <sys/stat.h>
8223int
8224main ()
8225{
8226struct stat64 buf; int i = stat64("/", &buf);
8227 ;
8228 return 0;
8229}
8230_ACEOF
8231if ac_fn_c_try_compile "$LINENO"; then :
8232 tcl_cv_flag__largefile64_source=yes
8233else
8234 tcl_cv_flag__largefile64_source=no
8235fi
8236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237fi
8238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8239fi
8240
8241 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
8242
8243$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
8244
8245 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
8246 fi
8247
8248
8249 if ${tcl_cv_flag__largefile_source64+:} false; then :
8250 $as_echo_n "(cached) " >&6
8251else
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253/* end confdefs.h. */
8254#include <sys/stat.h>
8255int
8256main ()
8257{
8258char *p = (char *)open64;
8259 ;
8260 return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_compile "$LINENO"; then :
8264 tcl_cv_flag__largefile_source64=no
8265else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h. */
8268#define _LARGEFILE_SOURCE64 1
8269#include <sys/stat.h>
8270int
8271main ()
8272{
8273char *p = (char *)open64;
8274 ;
8275 return 0;
8276}
8277_ACEOF
8278if ac_fn_c_try_compile "$LINENO"; then :
8279 tcl_cv_flag__largefile_source64=yes
8280else
8281 tcl_cv_flag__largefile_source64=no
8282fi
8283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284fi
8285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286fi
8287
8288 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
8289
8290$as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h
8291
8292 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
8293 fi
8294
8295 if test "x${tcl_flags}" = "x" ; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8297$as_echo "none" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
8300$as_echo "${tcl_flags}" >&6; }
8301 fi
8302
8303
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
8305$as_echo_n "checking for 64-bit integer type... " >&6; }
8306 if ${tcl_cv_type_64bit+:} false; then :
8307 $as_echo_n "(cached) " >&6
8308else
8309
8310 tcl_cv_type_64bit=none
8311 # See if the compiler knows natively about __int64
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313/* end confdefs.h. */
8314
8315int
8316main ()
8317{
8318__int64 value = (__int64) 0;
8319 ;
8320 return 0;
8321}
8322_ACEOF
8323if ac_fn_c_try_compile "$LINENO"; then :
8324 tcl_type_64bit=__int64
8325else
8326 tcl_type_64bit="long long"
8327fi
8328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 # See if we should use long anyway Note that we substitute in the
8330 # type that is our current guess for a 64-bit type inside this check
8331 # program, so it should be modified only carefully...
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333/* end confdefs.h. */
8334
8335int
8336main ()
8337{
8338switch (0) {
8339 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
8340 }
8341 ;
8342 return 0;
8343}
8344_ACEOF
8345if ac_fn_c_try_compile "$LINENO"; then :
8346 tcl_cv_type_64bit=${tcl_type_64bit}
8347fi
8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349fi
8350
8351 if test "${tcl_cv_type_64bit}" = none ; then
8352
8353$as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using long" >&5
8356$as_echo "using long" >&6; }
8357 elif test "${tcl_cv_type_64bit}" = "__int64" \
8358 -a "${TEA_PLATFORM}" = "windows" ; then
8359 # TEA specific: We actually want to use the default tcl.h checks in
8360 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
8362$as_echo "using Tcl header defaults" >&6; }
8363 else
8364
8365cat >>confdefs.h <<_ACEOF
8366#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
8367_ACEOF
8368
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
8370$as_echo "${tcl_cv_type_64bit}" >&6; }
8371
8372 # Now check for auxiliary declarations
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
8374$as_echo_n "checking for struct dirent64... " >&6; }
8375if ${tcl_cv_struct_dirent64+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377else
8378
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380/* end confdefs.h. */
8381#include <sys/types.h>
8382#include <dirent.h>
8383int
8384main ()
8385{
8386struct dirent64 p;
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391if ac_fn_c_try_compile "$LINENO"; then :
8392 tcl_cv_struct_dirent64=yes
8393else
8394 tcl_cv_struct_dirent64=no
8395fi
8396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397fi
8398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
8399$as_echo "$tcl_cv_struct_dirent64" >&6; }
8400 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
8401
8402$as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
8403
8404 fi
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
8407$as_echo_n "checking for struct stat64... " >&6; }
8408if ${tcl_cv_struct_stat64+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410else
8411
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h. */
8414#include <sys/stat.h>
8415int
8416main ()
8417{
8418struct stat64 p;
8419
8420 ;
8421 return 0;
8422}
8423_ACEOF
8424if ac_fn_c_try_compile "$LINENO"; then :
8425 tcl_cv_struct_stat64=yes
8426else
8427 tcl_cv_struct_stat64=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
8432$as_echo "$tcl_cv_struct_stat64" >&6; }
8433 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
8434
8435$as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
8436
8437 fi
8438
8439 for ac_func in open64 lseek64
8440do :
8441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8442ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8443if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8444 cat >>confdefs.h <<_ACEOF
8445#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8446_ACEOF
8447
8448fi
8449done
8450
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
8452$as_echo_n "checking for off64_t... " >&6; }
8453 if ${tcl_cv_type_off64_t+:} false; then :
8454 $as_echo_n "(cached) " >&6
8455else
8456
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458/* end confdefs.h. */
8459#include <sys/types.h>
8460int
8461main ()
8462{
8463off64_t offset;
8464
8465 ;
8466 return 0;
8467}
8468_ACEOF
8469if ac_fn_c_try_compile "$LINENO"; then :
8470 tcl_cv_type_off64_t=yes
8471else
8472 tcl_cv_type_off64_t=no
8473fi
8474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475fi
8476
8477 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
8478 test "x${ac_cv_func_lseek64}" = "xyes" && \
8479 test "x${ac_cv_func_open64}" = "xyes" ; then
8480
8481$as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
8482
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8484$as_echo "yes" >&6; }
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
8488 fi
8489 fi
8490
8491
8492
8493#--------------------------------------------------------------------
8494# Set the default compiler switches based on the --enable-symbols option.
8495#--------------------------------------------------------------------
8496
8497
8498
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
8500$as_echo_n "checking for build with symbols... " >&6; }
8501 # Check whether --enable-symbols was given.
8502if test "${enable_symbols+set}" = set; then :
8503 enableval=$enable_symbols; tcl_ok=$enableval
8504else
8505 tcl_ok=no
8506fi
8507
8508 DBGX=""
8509 if test "$tcl_ok" = "no"; then
8510 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
8511 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513$as_echo "no" >&6; }
8514 else
8515 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
8516 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
8517 if test "$tcl_ok" = "yes"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
8519$as_echo "yes (standard debugging)" >&6; }
8520 fi
8521 fi
8522 # TEA specific:
8523 if test "${TEA_PLATFORM}" != "windows" ; then
8524 LDFLAGS_DEFAULT="${LDFLAGS}"
8525 fi
8526
8527
8528
8529
8530 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
8531
8532$as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
8533
8534 fi
8535
8536 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
8537 if test "$tcl_ok" = "all"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
8539$as_echo "enabled symbols mem debugging" >&6; }
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
8542$as_echo "enabled $tcl_ok debugging" >&6; }
8543 fi
8544 fi
8545
8546
8547#--------------------------------------------------------------------
8548# Everyone should be linking against the Tcl stub library. If you
8549# can't for some reason, remove this definition. If you aren't using
8550# stubs, you also need to modify the SHLIB_LD_LIBS setting below to
8551# link against the non-stubbed Tcl library. Add Tk too if necessary.
8552#--------------------------------------------------------------------
8553
8554
8555$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h
8556
8557#AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs])
8558
8559
8560#--------------------------------------------------------------------
8561# Redefine fdatasync as fsync on systems that lack fdatasync
8562#--------------------------------------------------------------------
8563#
8564#AC_CHECK_FUNC(fdatasync, , AC_DEFINE(fdatasync, fsync))
8565# Check for library functions that SQLite can optionally use.
8566for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
8567do :
8568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8569ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8570if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8571 cat >>confdefs.h <<_ACEOF
8572#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8573_ACEOF
8574
8575fi
8576done
8577
8578
8579ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8580if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
8581 ac_have_decl=1
8582else
8583 ac_have_decl=0
8584fi
8585
8586cat >>confdefs.h <<_ACEOF
8587#define HAVE_DECL_STRERROR_R $ac_have_decl
8588_ACEOF
8589
8590for ac_func in strerror_r
8591do :
8592 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8593if test "x$ac_cv_func_strerror_r" = xyes; then :
8594 cat >>confdefs.h <<_ACEOF
8595#define HAVE_STRERROR_R 1
8596_ACEOF
8597
8598fi
8599done
8600
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8602$as_echo_n "checking whether strerror_r returns char *... " >&6; }
8603if ${ac_cv_func_strerror_r_char_p+:} false; then :
8604 $as_echo_n "(cached) " >&6
8605else
8606
8607 ac_cv_func_strerror_r_char_p=no
8608 if test $ac_cv_have_decl_strerror_r = yes; then
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h. */
8611$ac_includes_default
8612int
8613main ()
8614{
8615
8616 char buf[100];
8617 char x = *strerror_r (0, buf, sizeof buf);
8618 char *p = strerror_r (0, buf, sizeof buf);
8619 return !p || x;
8620
8621 ;
8622 return 0;
8623}
8624_ACEOF
8625if ac_fn_c_try_compile "$LINENO"; then :
8626 ac_cv_func_strerror_r_char_p=yes
8627fi
8628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 else
8630 # strerror_r is not declared. Choose between
8631 # systems that have relatively inaccessible declarations for the
8632 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8633 # former has a strerror_r that returns char*, while the latter
8634 # has a strerror_r that returns `int'.
8635 # This test should segfault on the DEC system.
8636 if test "$cross_compiling" = yes; then :
8637 :
8638else
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640/* end confdefs.h. */
8641$ac_includes_default
8642 extern char *strerror_r ();
8643int
8644main ()
8645{
8646char buf[100];
8647 char x = *strerror_r (0, buf, sizeof buf);
8648 return ! isalpha (x);
8649 ;
8650 return 0;
8651}
8652_ACEOF
8653if ac_fn_c_try_run "$LINENO"; then :
8654 ac_cv_func_strerror_r_char_p=yes
8655fi
8656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8657 conftest.$ac_objext conftest.beam conftest.$ac_ext
8658fi
8659
8660 fi
8661
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8664$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8665if test $ac_cv_func_strerror_r_char_p = yes; then
8666
8667$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8668
8669fi
8670
8671
8672
8673#--------------------------------------------------------------------
8674# This macro generates a line to use when building a library. It
8675# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
8676# and TEA_LOAD_TCLCONFIG macros above.
8677#--------------------------------------------------------------------
8678
8679
8680 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
8681 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
8682 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684/* end confdefs.h. */
8685
8686#if defined(_MSC_VER) && _MSC_VER >= 1400
8687print("manifest needed")
8688#endif
8689
8690_ACEOF
8691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8692 $EGREP "manifest needed" >/dev/null 2>&1; then :
8693
8694 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
8695 VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi"
8696 VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi"
8697 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
8698
8699 CLEANFILES="$CLEANFILES *.manifest"
8700
8701
8702fi
8703rm -f conftest*
8704
8705 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
8706 else
8707 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
8708 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
8709 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
8710 fi
8711
8712 if test "${SHARED_BUILD}" = "1" ; then
8713 MAKE_LIB="${MAKE_SHARED_LIB} "
8714 else
8715 MAKE_LIB="${MAKE_STATIC_LIB} "
8716 fi
8717
8718 #--------------------------------------------------------------------
8719 # Shared libraries and static libraries have different names.
8720 # Use the double eval to make sure any variables in the suffix is
8721 # substituted. (@@@ Might not be necessary anymore)
8722 #--------------------------------------------------------------------
8723
8724 if test "${TEA_PLATFORM}" = "windows" ; then
8725 if test "${SHARED_BUILD}" = "1" ; then
8726 # We force the unresolved linking of symbols that are really in
8727 # the private libraries of Tcl and Tk.
8728 if test x"${TK_BIN_DIR}" != x ; then
8729 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
8730 fi
8731 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
8732 if test "$GCC" = "yes"; then
8733 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
8734 fi
8735 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8736 else
8737 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8738 if test "$GCC" = "yes"; then
8739 PKG_LIB_FILE=lib${PKG_LIB_FILE}
8740 fi
8741 fi
8742 # Some packages build their own stubs libraries
8743 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
8744 if test "$GCC" = "yes"; then
8745 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
8746 fi
8747 # These aren't needed on Windows (either MSVC or gcc)
8748 RANLIB=:
8749 RANLIB_STUB=:
8750 else
8751 RANLIB_STUB="${RANLIB}"
8752 if test "${SHARED_BUILD}" = "1" ; then
8753 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
8754 if test x"${TK_BIN_DIR}" != x ; then
8755 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
8756 fi
8757 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8758 RANLIB=:
8759 else
8760 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8761 fi
8762 # Some packages build their own stubs libraries
8763 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
8764 fi
8765
8766 # These are escaped so that only CFLAGS is picked up at configure time.
8767 # The other values will be substituted at make time.
8768 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
8769 if test "${SHARED_BUILD}" = "1" ; then
8770 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
8771 fi
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782#--------------------------------------------------------------------
8783# Determine the name of the tclsh and/or wish executables in the
8784# Tcl and Tk build directories or the location they were installed
8785# into. These paths are used to support running test cases only,
8786# the Makefile should not be making use of these paths to generate
8787# a pkgIndex.tcl file or anything else at extension build time.
8788#--------------------------------------------------------------------
8789
8790
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
8792$as_echo_n "checking for tclsh... " >&6; }
8793 if test -f "${TCL_BIN_DIR}/Makefile" ; then
8794 # tclConfig.sh is in Tcl build directory
8795 if test "${TEA_PLATFORM}" = "windows"; then
8796 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
8797 else
8798 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
8799 fi
8800 else
8801 # tclConfig.sh is in install location
8802 if test "${TEA_PLATFORM}" = "windows"; then
8803 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
8804 else
8805 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}"
8806 fi
8807 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
8808 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
8809 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
8810 for i in $list ; do
8811 if test -f "$i/${TCLSH_PROG}" ; then
8812 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
8813 break
8814 fi
8815 done
8816 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
8819$as_echo "${TCLSH_PROG}" >&6; }
8820
8821
8822#TEA_PROG_WISH
8823
8824#--------------------------------------------------------------------
8825# Finally, substitute all of the various values into the Makefile.
8826# You may alternatively have a special pkgIndex.tcl.in or other files
8827# which require substituting th AC variables in. Include these here.
8828#--------------------------------------------------------------------
8829
8830ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
8831
8832cat >confcache <<\_ACEOF
8833# This file is a shell script that caches the results of configure
8834# tests run on this system so they can be shared between configure
8835# scripts and configure runs, see configure's option --config-cache.
8836# It is not useful on other systems. If it contains results you don't
8837# want to keep, you may remove or edit it.
8838#
8839# config.status only pays attention to the cache file if you give it
8840# the --recheck option to rerun configure.
8841#
8842# `ac_cv_env_foo' variables (set or unset) will be overridden when
8843# loading this file, other *unset* `ac_cv_foo' will be assigned the
8844# following values.
8845
8846_ACEOF
8847
8848# The following way of writing the cache mishandles newlines in values,
8849# but we know of no workaround that is simple, portable, and efficient.
8850# So, we kill variables containing newlines.
8851# Ultrix sh set writes to stderr and can't be redirected directly,
8852# and sets the high bit in the cache file unless we assign to the vars.
8853(
8854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8855 eval ac_val=\$$ac_var
8856 case $ac_val in #(
8857 *${as_nl}*)
8858 case $ac_var in #(
8859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8860$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8861 esac
8862 case $ac_var in #(
8863 _ | IFS | as_nl) ;; #(
8864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8865 *) { eval $ac_var=; unset $ac_var;} ;;
8866 esac ;;
8867 esac
8868 done
8869
8870 (set) 2>&1 |
8871 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8872 *${as_nl}ac_space=\ *)
8873 # `set' does not quote correctly, so add quotes: double-quote
8874 # substitution turns \\\\ into \\, and sed turns \\ into \.
8875 sed -n \
8876 "s/'/'\\\\''/g;
8877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8878 ;; #(
8879 *)
8880 # `set' quotes correctly as required by POSIX, so do not add quotes.
8881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8882 ;;
8883 esac |
8884 sort
8885) |
8886 sed '
8887 /^ac_cv_env_/b end
8888 t clear
8889 :clear
8890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8891 t end
8892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8893 :end' >>confcache
8894if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8895 if test -w "$cache_file"; then
8896 if test "x$cache_file" != "x/dev/null"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8898$as_echo "$as_me: updating cache $cache_file" >&6;}
8899 if test ! -f "$cache_file" || test -h "$cache_file"; then
8900 cat confcache >"$cache_file"
8901 else
8902 case $cache_file in #(
8903 */* | ?:*)
8904 mv -f confcache "$cache_file"$$ &&
8905 mv -f "$cache_file"$$ "$cache_file" ;; #(
8906 *)
8907 mv -f confcache "$cache_file" ;;
8908 esac
8909 fi
8910 fi
8911 else
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8913$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8914 fi
8915fi
8916rm -f confcache
8917
8918test "x$prefix" = xNONE && prefix=$ac_default_prefix
8919# Let make expand exec_prefix.
8920test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8921
8922# Transform confdefs.h into DEFS.
8923# Protect against shell expansion while executing Makefile rules.
8924# Protect against Makefile macro expansion.
8925#
8926# If the first sed substitution is executed (which looks for macros that
8927# take arguments), then branch to the quote section. Otherwise,
8928# look for a macro that doesn't take arguments.
8929ac_script='
8930:mline
8931/\\$/{
8932 N
8933 s,\\\n,,
8934 b mline
8935}
8936t clear
8937:clear
8938s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
8939t quote
8940s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
8941t quote
8942b any
8943:quote
8944s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8945s/\[/\\&/g
8946s/\]/\\&/g
8947s/\$/$$/g
8948H
8949:any
8950${
8951 g
8952 s/^\n//
8953 s/\n/ /g
8954 p
8955}
8956'
8957DEFS=`sed -n "$ac_script" confdefs.h`
8958
8959
8960ac_libobjs=
8961ac_ltlibobjs=
8962U=
8963for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8964 # 1. Remove the extension, and $U if already installed.
8965 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8966 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8967 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8968 # will be set to the directory where LIBOBJS objects are built.
8969 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8970 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8971done
8972LIBOBJS=$ac_libobjs
8973
8974LTLIBOBJS=$ac_ltlibobjs
8975
8976
8977
8978CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
8979
8980: "${CONFIG_STATUS=./config.status}"
8981ac_write_fail=0
8982ac_clean_files_save=$ac_clean_files
8983ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8985$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8986as_write_fail=0
8987cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8988#! $SHELL
8989# Generated by $as_me.
8990# Run this file to recreate the current configuration.
8991# Compiler output produced by configure, useful for debugging
8992# configure, is in config.log if it exists.
8993
8994debug=false
8995ac_cs_recheck=false
8996ac_cs_silent=false
8997
8998SHELL=\${CONFIG_SHELL-$SHELL}
8999export SHELL
9000_ASEOF
9001cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9002## -------------------- ##
9003## M4sh Initialization. ##
9004## -------------------- ##
9005
9006# Be more Bourne compatible
9007DUALCASE=1; export DUALCASE # for MKS sh
9008if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9009 emulate sh
9010 NULLCMD=:
9011 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9012 # is contrary to our usage. Disable this feature.
9013 alias -g '${1+"$@"}'='"$@"'
9014 setopt NO_GLOB_SUBST
9015else
9016 case `(set -o) 2>/dev/null` in #(
9017 *posix*) :
9018 set -o posix ;; #(
9019 *) :
9020 ;;
9021esac
9022fi
9023
9024
9025as_nl='
9026'
9027export as_nl
9028# Printing a long string crashes Solaris 7 /usr/bin/printf.
9029as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9030as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9031as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9032# Prefer a ksh shell builtin over an external printf program on Solaris,
9033# but without wasting forks for bash or zsh.
9034if test -z "$BASH_VERSION$ZSH_VERSION" \
9035 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9036 as_echo='print -r --'
9037 as_echo_n='print -rn --'
9038elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9039 as_echo='printf %s\n'
9040 as_echo_n='printf %s'
9041else
9042 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9043 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9044 as_echo_n='/usr/ucb/echo -n'
9045 else
9046 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9047 as_echo_n_body='eval
9048 arg=$1;
9049 case $arg in #(
9050 *"$as_nl"*)
9051 expr "X$arg" : "X\\(.*\\)$as_nl";
9052 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9053 esac;
9054 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9055 '
9056 export as_echo_n_body
9057 as_echo_n='sh -c $as_echo_n_body as_echo'
9058 fi
9059 export as_echo_body
9060 as_echo='sh -c $as_echo_body as_echo'
9061fi
9062
9063# The user is always right.
9064if test "${PATH_SEPARATOR+set}" != set; then
9065 PATH_SEPARATOR=:
9066 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9067 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9068 PATH_SEPARATOR=';'
9069 }
9070fi
9071
9072
9073# IFS
9074# We need space, tab and new line, in precisely that order. Quoting is
9075# there to prevent editors from complaining about space-tab.
9076# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9077# splitting by setting IFS to empty value.)
9078IFS=" "" $as_nl"
9079
9080# Find who we are. Look in the path if we contain no directory separator.
9081as_myself=
9082case $0 in #((
9083 *[\\/]* ) as_myself=$0 ;;
9084 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085for as_dir in $PATH
9086do
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9090 done
9091IFS=$as_save_IFS
9092
9093 ;;
9094esac
9095# We did not find ourselves, most probably we were run as `sh COMMAND'
9096# in which case we are not to be found in the path.
9097if test "x$as_myself" = x; then
9098 as_myself=$0
9099fi
9100if test ! -f "$as_myself"; then
9101 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9102 exit 1
9103fi
9104
9105# Unset variables that we do not need and which cause bugs (e.g. in
9106# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9107# suppresses any "Segmentation fault" message there. '((' could
9108# trigger a bug in pdksh 5.2.14.
9109for as_var in BASH_ENV ENV MAIL MAILPATH
9110do eval test x\${$as_var+set} = xset \
9111 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9112done
9113PS1='$ '
9114PS2='> '
9115PS4='+ '
9116
9117# NLS nuisances.
9118LC_ALL=C
9119export LC_ALL
9120LANGUAGE=C
9121export LANGUAGE
9122
9123# CDPATH.
9124(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9125
9126
9127# as_fn_error STATUS ERROR [LINENO LOG_FD]
9128# ----------------------------------------
9129# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9130# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9131# script with STATUS, using 1 if that was 0.
9132as_fn_error ()
9133{
9134 as_status=$1; test $as_status -eq 0 && as_status=1
9135 if test "$4"; then
9136 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9137 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9138 fi
9139 $as_echo "$as_me: error: $2" >&2
9140 as_fn_exit $as_status
9141} # as_fn_error
9142
9143
9144# as_fn_set_status STATUS
9145# -----------------------
9146# Set $? to STATUS, without forking.
9147as_fn_set_status ()
9148{
9149 return $1
9150} # as_fn_set_status
9151
9152# as_fn_exit STATUS
9153# -----------------
9154# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9155as_fn_exit ()
9156{
9157 set +e
9158 as_fn_set_status $1
9159 exit $1
9160} # as_fn_exit
9161
9162# as_fn_unset VAR
9163# ---------------
9164# Portably unset VAR.
9165as_fn_unset ()
9166{
9167 { eval $1=; unset $1;}
9168}
9169as_unset=as_fn_unset
9170# as_fn_append VAR VALUE
9171# ----------------------
9172# Append the text in VALUE to the end of the definition contained in VAR. Take
9173# advantage of any shell optimizations that allow amortized linear growth over
9174# repeated appends, instead of the typical quadratic growth present in naive
9175# implementations.
9176if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9177 eval 'as_fn_append ()
9178 {
9179 eval $1+=\$2
9180 }'
9181else
9182 as_fn_append ()
9183 {
9184 eval $1=\$$1\$2
9185 }
9186fi # as_fn_append
9187
9188# as_fn_arith ARG...
9189# ------------------
9190# Perform arithmetic evaluation on the ARGs, and store the result in the
9191# global $as_val. Take advantage of shells that can avoid forks. The arguments
9192# must be portable across $(()) and expr.
9193if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9194 eval 'as_fn_arith ()
9195 {
9196 as_val=$(( $* ))
9197 }'
9198else
9199 as_fn_arith ()
9200 {
9201 as_val=`expr "$@" || test $? -eq 1`
9202 }
9203fi # as_fn_arith
9204
9205
9206if expr a : '\(a\)' >/dev/null 2>&1 &&
9207 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9208 as_expr=expr
9209else
9210 as_expr=false
9211fi
9212
9213if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9214 as_basename=basename
9215else
9216 as_basename=false
9217fi
9218
9219if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9220 as_dirname=dirname
9221else
9222 as_dirname=false
9223fi
9224
9225as_me=`$as_basename -- "$0" ||
9226$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9227 X"$0" : 'X\(//\)$' \| \
9228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9229$as_echo X/"$0" |
9230 sed '/^.*\/\([^/][^/]*\)\/*$/{
9231 s//\1/
9232 q
9233 }
9234 /^X\/\(\/\/\)$/{
9235 s//\1/
9236 q
9237 }
9238 /^X\/\(\/\).*/{
9239 s//\1/
9240 q
9241 }
9242 s/.*/./; q'`
9243
9244# Avoid depending upon Character Ranges.
9245as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9246as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9247as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9248as_cr_digits='0123456789'
9249as_cr_alnum=$as_cr_Letters$as_cr_digits
9250
9251ECHO_C= ECHO_N= ECHO_T=
9252case `echo -n x` in #(((((
9253-n*)
9254 case `echo 'xy\c'` in
9255 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9256 xy) ECHO_C='\c';;
9257 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9258 ECHO_T=' ';;
9259 esac;;
9260*)
9261 ECHO_N='-n';;
9262esac
9263
9264rm -f conf$$ conf$$.exe conf$$.file
9265if test -d conf$$.dir; then
9266 rm -f conf$$.dir/conf$$.file
9267else
9268 rm -f conf$$.dir
9269 mkdir conf$$.dir 2>/dev/null
9270fi
9271if (echo >conf$$.file) 2>/dev/null; then
9272 if ln -s conf$$.file conf$$ 2>/dev/null; then
9273 as_ln_s='ln -s'
9274 # ... but there are two gotchas:
9275 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9276 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9277 # In both cases, we have to default to `cp -pR'.
9278 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9279 as_ln_s='cp -pR'
9280 elif ln conf$$.file conf$$ 2>/dev/null; then
9281 as_ln_s=ln
9282 else
9283 as_ln_s='cp -pR'
9284 fi
9285else
9286 as_ln_s='cp -pR'
9287fi
9288rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9289rmdir conf$$.dir 2>/dev/null
9290
9291
9292# as_fn_mkdir_p
9293# -------------
9294# Create "$as_dir" as a directory, including parents if necessary.
9295as_fn_mkdir_p ()
9296{
9297
9298 case $as_dir in #(
9299 -*) as_dir=./$as_dir;;
9300 esac
9301 test -d "$as_dir" || eval $as_mkdir_p || {
9302 as_dirs=
9303 while :; do
9304 case $as_dir in #(
9305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9306 *) as_qdir=$as_dir;;
9307 esac
9308 as_dirs="'$as_qdir' $as_dirs"
9309 as_dir=`$as_dirname -- "$as_dir" ||
9310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9311 X"$as_dir" : 'X\(//\)[^/]' \| \
9312 X"$as_dir" : 'X\(//\)$' \| \
9313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9314$as_echo X"$as_dir" |
9315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9316 s//\1/
9317 q
9318 }
9319 /^X\(\/\/\)[^/].*/{
9320 s//\1/
9321 q
9322 }
9323 /^X\(\/\/\)$/{
9324 s//\1/
9325 q
9326 }
9327 /^X\(\/\).*/{
9328 s//\1/
9329 q
9330 }
9331 s/.*/./; q'`
9332 test -d "$as_dir" && break
9333 done
9334 test -z "$as_dirs" || eval "mkdir $as_dirs"
9335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9336
9337
9338} # as_fn_mkdir_p
9339if mkdir -p . 2>/dev/null; then
9340 as_mkdir_p='mkdir -p "$as_dir"'
9341else
9342 test -d ./-p && rmdir ./-p
9343 as_mkdir_p=false
9344fi
9345
9346
9347# as_fn_executable_p FILE
9348# -----------------------
9349# Test if FILE is an executable regular file.
9350as_fn_executable_p ()
9351{
9352 test -f "$1" && test -x "$1"
9353} # as_fn_executable_p
9354as_test_x='test -x'
9355as_executable_p=as_fn_executable_p
9356
9357# Sed expression to map a string onto a valid CPP name.
9358as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9359
9360# Sed expression to map a string onto a valid variable name.
9361as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9362
9363
9364exec 6>&1
9365## ----------------------------------- ##
9366## Main body of $CONFIG_STATUS script. ##
9367## ----------------------------------- ##
9368_ASEOF
9369test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9370
9371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9372# Save the log message, to keep $0 and so on meaningful, and to
9373# report actual input values of CONFIG_FILES etc. instead of their
9374# values after options handling.
9375ac_log="
9376This file was extended by sqlite $as_me 3.31.1, which was
9376This file was extended by sqlite $as_me 3.32.2, which was
9377generated by GNU Autoconf 2.69. Invocation command line was
9378
9379 CONFIG_FILES = $CONFIG_FILES
9380 CONFIG_HEADERS = $CONFIG_HEADERS
9381 CONFIG_LINKS = $CONFIG_LINKS
9382 CONFIG_COMMANDS = $CONFIG_COMMANDS
9383 $ $0 $@
9384
9385on `(hostname || uname -n) 2>/dev/null | sed 1q`
9386"
9387
9388_ACEOF
9389
9390case $ac_config_files in *"
9391"*) set x $ac_config_files; shift; ac_config_files=$*;;
9392esac
9393
9394
9395
9396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9397# Files that config.status was made for.
9398config_files="$ac_config_files"
9399
9400_ACEOF
9401
9402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9403ac_cs_usage="\
9404\`$as_me' instantiates files and other configuration actions
9405from templates according to the current configuration. Unless the files
9406and actions are specified as TAGs, all are instantiated by default.
9407
9408Usage: $0 [OPTION]... [TAG]...
9409
9410 -h, --help print this help, then exit
9411 -V, --version print version number and configuration settings, then exit
9412 --config print configuration, then exit
9413 -q, --quiet, --silent
9414 do not print progress messages
9415 -d, --debug don't remove temporary files
9416 --recheck update $as_me by reconfiguring in the same conditions
9417 --file=FILE[:TEMPLATE]
9418 instantiate the configuration file FILE
9419
9420Configuration files:
9421$config_files
9422
9423Report bugs to the package provider."
9424
9425_ACEOF
9426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9427ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9428ac_cs_version="\\
9377generated by GNU Autoconf 2.69. Invocation command line was
9378
9379 CONFIG_FILES = $CONFIG_FILES
9380 CONFIG_HEADERS = $CONFIG_HEADERS
9381 CONFIG_LINKS = $CONFIG_LINKS
9382 CONFIG_COMMANDS = $CONFIG_COMMANDS
9383 $ $0 $@
9384
9385on `(hostname || uname -n) 2>/dev/null | sed 1q`
9386"
9387
9388_ACEOF
9389
9390case $ac_config_files in *"
9391"*) set x $ac_config_files; shift; ac_config_files=$*;;
9392esac
9393
9394
9395
9396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9397# Files that config.status was made for.
9398config_files="$ac_config_files"
9399
9400_ACEOF
9401
9402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9403ac_cs_usage="\
9404\`$as_me' instantiates files and other configuration actions
9405from templates according to the current configuration. Unless the files
9406and actions are specified as TAGs, all are instantiated by default.
9407
9408Usage: $0 [OPTION]... [TAG]...
9409
9410 -h, --help print this help, then exit
9411 -V, --version print version number and configuration settings, then exit
9412 --config print configuration, then exit
9413 -q, --quiet, --silent
9414 do not print progress messages
9415 -d, --debug don't remove temporary files
9416 --recheck update $as_me by reconfiguring in the same conditions
9417 --file=FILE[:TEMPLATE]
9418 instantiate the configuration file FILE
9419
9420Configuration files:
9421$config_files
9422
9423Report bugs to the package provider."
9424
9425_ACEOF
9426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9427ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9428ac_cs_version="\\
9429sqlite config.status 3.31.1
9429sqlite config.status 3.32.2
9430configured by $0, generated by GNU Autoconf 2.69,
9431 with options \\"\$ac_cs_config\\"
9432
9433Copyright (C) 2012 Free Software Foundation, Inc.
9434This config.status script is free software; the Free Software Foundation
9435gives unlimited permission to copy, distribute and modify it."
9436
9437ac_pwd='$ac_pwd'
9438srcdir='$srcdir'
9439test -n "\$AWK" || AWK=awk
9440_ACEOF
9441
9442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9443# The default lists apply if the user does not specify any file.
9444ac_need_defaults=:
9445while test $# != 0
9446do
9447 case $1 in
9448 --*=?*)
9449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9450 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9451 ac_shift=:
9452 ;;
9453 --*=)
9454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9455 ac_optarg=
9456 ac_shift=:
9457 ;;
9458 *)
9459 ac_option=$1
9460 ac_optarg=$2
9461 ac_shift=shift
9462 ;;
9463 esac
9464
9465 case $ac_option in
9466 # Handling of the options.
9467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9468 ac_cs_recheck=: ;;
9469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9470 $as_echo "$ac_cs_version"; exit ;;
9471 --config | --confi | --conf | --con | --co | --c )
9472 $as_echo "$ac_cs_config"; exit ;;
9473 --debug | --debu | --deb | --de | --d | -d )
9474 debug=: ;;
9475 --file | --fil | --fi | --f )
9476 $ac_shift
9477 case $ac_optarg in
9478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9479 '') as_fn_error $? "missing file argument" ;;
9480 esac
9481 as_fn_append CONFIG_FILES " '$ac_optarg'"
9482 ac_need_defaults=false;;
9483 --he | --h | --help | --hel | -h )
9484 $as_echo "$ac_cs_usage"; exit ;;
9485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9486 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9487 ac_cs_silent=: ;;
9488
9489 # This is an error.
9490 -*) as_fn_error $? "unrecognized option: \`$1'
9491Try \`$0 --help' for more information." ;;
9492
9493 *) as_fn_append ac_config_targets " $1"
9494 ac_need_defaults=false ;;
9495
9496 esac
9497 shift
9498done
9499
9500ac_configure_extra_args=
9501
9502if $ac_cs_silent; then
9503 exec 6>/dev/null
9504 ac_configure_extra_args="$ac_configure_extra_args --silent"
9505fi
9506
9507_ACEOF
9508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9509if \$ac_cs_recheck; then
9510 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9511 shift
9512 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9513 CONFIG_SHELL='$SHELL'
9514 export CONFIG_SHELL
9515 exec "\$@"
9516fi
9517
9518_ACEOF
9519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9520exec 5>>config.log
9521{
9522 echo
9523 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9524## Running $as_me. ##
9525_ASBOX
9526 $as_echo "$ac_log"
9527} >&5
9528
9529_ACEOF
9530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9531_ACEOF
9532
9533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9534
9535# Handling of arguments.
9536for ac_config_target in $ac_config_targets
9537do
9538 case $ac_config_target in
9539 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9540 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
9541
9542 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9543 esac
9544done
9545
9546
9547# If the user did not use the arguments to specify the items to instantiate,
9548# then the envvar interface is used. Set only those that are not.
9549# We use the long form for the default assignment because of an extremely
9550# bizarre bug on SunOS 4.1.3.
9551if $ac_need_defaults; then
9552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9553fi
9554
9555# Have a temporary directory for convenience. Make it in the build tree
9556# simply because there is no reason against having it here, and in addition,
9557# creating and moving files from /tmp can sometimes cause problems.
9558# Hook for its removal unless debugging.
9559# Note that there is a small window in which the directory will not be cleaned:
9560# after its creation but before its name has been assigned to `$tmp'.
9561$debug ||
9562{
9563 tmp= ac_tmp=
9564 trap 'exit_status=$?
9565 : "${ac_tmp:=$tmp}"
9566 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9567' 0
9568 trap 'as_fn_exit 1' 1 2 13 15
9569}
9570# Create a (secure) tmp directory for tmp files.
9571
9572{
9573 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9574 test -d "$tmp"
9575} ||
9576{
9577 tmp=./conf$$-$RANDOM
9578 (umask 077 && mkdir "$tmp")
9579} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9580ac_tmp=$tmp
9581
9582# Set up the scripts for CONFIG_FILES section.
9583# No need to generate them if there are no CONFIG_FILES.
9584# This happens for instance with `./config.status config.h'.
9585if test -n "$CONFIG_FILES"; then
9586
9587
9588ac_cr=`echo X | tr X '\015'`
9589# On cygwin, bash can eat \r inside `` if the user requested igncr.
9590# But we know of no other shell where ac_cr would be empty at this
9591# point, so we can use a bashism as a fallback.
9592if test "x$ac_cr" = x; then
9593 eval ac_cr=\$\'\\r\'
9594fi
9595ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9596if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9597 ac_cs_awk_cr='\\r'
9598else
9599 ac_cs_awk_cr=$ac_cr
9600fi
9601
9602echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9603_ACEOF
9604
9605
9606{
9607 echo "cat >conf$$subs.awk <<_ACEOF" &&
9608 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9609 echo "_ACEOF"
9610} >conf$$subs.sh ||
9611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9612ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9613ac_delim='%!_!# '
9614for ac_last_try in false false false false false :; do
9615 . ./conf$$subs.sh ||
9616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9617
9618 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9619 if test $ac_delim_n = $ac_delim_num; then
9620 break
9621 elif $ac_last_try; then
9622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9623 else
9624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9625 fi
9626done
9627rm -f conf$$subs.sh
9628
9629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9630cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9631_ACEOF
9632sed -n '
9633h
9634s/^/S["/; s/!.*/"]=/
9635p
9636g
9637s/^[^!]*!//
9638:repl
9639t repl
9640s/'"$ac_delim"'$//
9641t delim
9642:nl
9643h
9644s/\(.\{148\}\)..*/\1/
9645t more1
9646s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9647p
9648n
9649b repl
9650:more1
9651s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9652p
9653g
9654s/.\{148\}//
9655t nl
9656:delim
9657h
9658s/\(.\{148\}\)..*/\1/
9659t more2
9660s/["\\]/\\&/g; s/^/"/; s/$/"/
9661p
9662b
9663:more2
9664s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9665p
9666g
9667s/.\{148\}//
9668t delim
9669' <conf$$subs.awk | sed '
9670/^[^""]/{
9671 N
9672 s/\n//
9673}
9674' >>$CONFIG_STATUS || ac_write_fail=1
9675rm -f conf$$subs.awk
9676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9677_ACAWK
9678cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9679 for (key in S) S_is_set[key] = 1
9680 FS = ""
9681
9682}
9683{
9684 line = $ 0
9685 nfields = split(line, field, "@")
9686 substed = 0
9687 len = length(field[1])
9688 for (i = 2; i < nfields; i++) {
9689 key = field[i]
9690 keylen = length(key)
9691 if (S_is_set[key]) {
9692 value = S[key]
9693 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9694 len += length(value) + length(field[++i])
9695 substed = 1
9696 } else
9697 len += 1 + keylen
9698 }
9699
9700 print line
9701}
9702
9703_ACAWK
9704_ACEOF
9705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9706if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9707 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9708else
9709 cat
9710fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9711 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9712_ACEOF
9713
9714# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9715# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9716# trailing colons and then remove the whole line if VPATH becomes empty
9717# (actually we leave an empty line to preserve line numbers).
9718if test "x$srcdir" = x.; then
9719 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9720h
9721s///
9722s/^/:/
9723s/[ ]*$/:/
9724s/:\$(srcdir):/:/g
9725s/:\${srcdir}:/:/g
9726s/:@srcdir@:/:/g
9727s/^:*//
9728s/:*$//
9729x
9730s/\(=[ ]*\).*/\1/
9731G
9732s/\n//
9733s/^[^=]*=[ ]*$//
9734}'
9735fi
9736
9737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9738fi # test -n "$CONFIG_FILES"
9739
9740
9741eval set X " :F $CONFIG_FILES "
9742shift
9743for ac_tag
9744do
9745 case $ac_tag in
9746 :[FHLC]) ac_mode=$ac_tag; continue;;
9747 esac
9748 case $ac_mode$ac_tag in
9749 :[FHL]*:*);;
9750 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9751 :[FH]-) ac_tag=-:-;;
9752 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9753 esac
9754 ac_save_IFS=$IFS
9755 IFS=:
9756 set x $ac_tag
9757 IFS=$ac_save_IFS
9758 shift
9759 ac_file=$1
9760 shift
9761
9762 case $ac_mode in
9763 :L) ac_source=$1;;
9764 :[FH])
9765 ac_file_inputs=
9766 for ac_f
9767 do
9768 case $ac_f in
9769 -) ac_f="$ac_tmp/stdin";;
9770 *) # Look for the file first in the build tree, then in the source tree
9771 # (if the path is not absolute). The absolute path cannot be DOS-style,
9772 # because $ac_f cannot contain `:'.
9773 test -f "$ac_f" ||
9774 case $ac_f in
9775 [\\/$]*) false;;
9776 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9777 esac ||
9778 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9779 esac
9780 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9781 as_fn_append ac_file_inputs " '$ac_f'"
9782 done
9783
9784 # Let's still pretend it is `configure' which instantiates (i.e., don't
9785 # use $as_me), people would be surprised to read:
9786 # /* config.h. Generated by config.status. */
9787 configure_input='Generated from '`
9788 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9789 `' by configure.'
9790 if test x"$ac_file" != x-; then
9791 configure_input="$ac_file. $configure_input"
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9793$as_echo "$as_me: creating $ac_file" >&6;}
9794 fi
9795 # Neutralize special characters interpreted by sed in replacement strings.
9796 case $configure_input in #(
9797 *\&* | *\|* | *\\* )
9798 ac_sed_conf_input=`$as_echo "$configure_input" |
9799 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9800 *) ac_sed_conf_input=$configure_input;;
9801 esac
9802
9803 case $ac_tag in
9804 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9806 esac
9807 ;;
9808 esac
9809
9810 ac_dir=`$as_dirname -- "$ac_file" ||
9811$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9812 X"$ac_file" : 'X\(//\)[^/]' \| \
9813 X"$ac_file" : 'X\(//\)$' \| \
9814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9815$as_echo X"$ac_file" |
9816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9817 s//\1/
9818 q
9819 }
9820 /^X\(\/\/\)[^/].*/{
9821 s//\1/
9822 q
9823 }
9824 /^X\(\/\/\)$/{
9825 s//\1/
9826 q
9827 }
9828 /^X\(\/\).*/{
9829 s//\1/
9830 q
9831 }
9832 s/.*/./; q'`
9833 as_dir="$ac_dir"; as_fn_mkdir_p
9834 ac_builddir=.
9835
9836case "$ac_dir" in
9837.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9838*)
9839 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9840 # A ".." for each directory in $ac_dir_suffix.
9841 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9842 case $ac_top_builddir_sub in
9843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9845 esac ;;
9846esac
9847ac_abs_top_builddir=$ac_pwd
9848ac_abs_builddir=$ac_pwd$ac_dir_suffix
9849# for backward compatibility:
9850ac_top_builddir=$ac_top_build_prefix
9851
9852case $srcdir in
9853 .) # We are building in place.
9854 ac_srcdir=.
9855 ac_top_srcdir=$ac_top_builddir_sub
9856 ac_abs_top_srcdir=$ac_pwd ;;
9857 [\\/]* | ?:[\\/]* ) # Absolute name.
9858 ac_srcdir=$srcdir$ac_dir_suffix;
9859 ac_top_srcdir=$srcdir
9860 ac_abs_top_srcdir=$srcdir ;;
9861 *) # Relative name.
9862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9863 ac_top_srcdir=$ac_top_build_prefix$srcdir
9864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9865esac
9866ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9867
9868
9869 case $ac_mode in
9870 :F)
9871 #
9872 # CONFIG_FILE
9873 #
9874
9875_ACEOF
9876
9877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9878# If the template does not know about datarootdir, expand it.
9879# FIXME: This hack should be removed a few years after 2.60.
9880ac_datarootdir_hack=; ac_datarootdir_seen=
9881ac_sed_dataroot='
9882/datarootdir/ {
9883 p
9884 q
9885}
9886/@datadir@/p
9887/@docdir@/p
9888/@infodir@/p
9889/@localedir@/p
9890/@mandir@/p'
9891case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9892*datarootdir*) ac_datarootdir_seen=yes;;
9893*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9895$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9896_ACEOF
9897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9898 ac_datarootdir_hack='
9899 s&@datadir@&$datadir&g
9900 s&@docdir@&$docdir&g
9901 s&@infodir@&$infodir&g
9902 s&@localedir@&$localedir&g
9903 s&@mandir@&$mandir&g
9904 s&\\\${datarootdir}&$datarootdir&g' ;;
9905esac
9906_ACEOF
9907
9908# Neutralize VPATH when `$srcdir' = `.'.
9909# Shell code in configure.ac might set extrasub.
9910# FIXME: do we really want to maintain this feature?
9911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9912ac_sed_extra="$ac_vpsub
9913$extrasub
9914_ACEOF
9915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9916:t
9917/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9918s|@configure_input@|$ac_sed_conf_input|;t t
9919s&@top_builddir@&$ac_top_builddir_sub&;t t
9920s&@top_build_prefix@&$ac_top_build_prefix&;t t
9921s&@srcdir@&$ac_srcdir&;t t
9922s&@abs_srcdir@&$ac_abs_srcdir&;t t
9923s&@top_srcdir@&$ac_top_srcdir&;t t
9924s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9925s&@builddir@&$ac_builddir&;t t
9926s&@abs_builddir@&$ac_abs_builddir&;t t
9927s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9928$ac_datarootdir_hack
9929"
9930eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9931 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9932
9933test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9934 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9935 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9936 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9938which seems to be undefined. Please make sure it is defined" >&5
9939$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9940which seems to be undefined. Please make sure it is defined" >&2;}
9941
9942 rm -f "$ac_tmp/stdin"
9943 case $ac_file in
9944 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9945 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9946 esac \
9947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9948 ;;
9949
9950
9951
9952 esac
9953
9954done # for ac_tag
9955
9956
9957as_fn_exit 0
9958_ACEOF
9959ac_clean_files=$ac_clean_files_save
9960
9961test $ac_write_fail = 0 ||
9962 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9963
9964
9965# configure is writing to config.log, and then calls config.status.
9966# config.status does its own redirection, appending to config.log.
9967# Unfortunately, on DOS this fails, as config.log is still kept open
9968# by configure, so config.status won't be able to write to it; its
9969# output is simply discarded. So we exec the FD to /dev/null,
9970# effectively closing config.log, so it can be properly (re)opened and
9971# appended to by config.status. When coming back to configure, we
9972# need to make the FD available again.
9973if test "$no_create" != yes; then
9974 ac_cs_success=:
9975 ac_config_status_args=
9976 test "$silent" = yes &&
9977 ac_config_status_args="$ac_config_status_args --quiet"
9978 exec 5>/dev/null
9979 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9980 exec 5>>config.log
9981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9982 # would make configure fail if this is the last instruction.
9983 $ac_cs_success || as_fn_exit 1
9984fi
9985if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9987$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9988fi
9989
9430configured by $0, generated by GNU Autoconf 2.69,
9431 with options \\"\$ac_cs_config\\"
9432
9433Copyright (C) 2012 Free Software Foundation, Inc.
9434This config.status script is free software; the Free Software Foundation
9435gives unlimited permission to copy, distribute and modify it."
9436
9437ac_pwd='$ac_pwd'
9438srcdir='$srcdir'
9439test -n "\$AWK" || AWK=awk
9440_ACEOF
9441
9442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9443# The default lists apply if the user does not specify any file.
9444ac_need_defaults=:
9445while test $# != 0
9446do
9447 case $1 in
9448 --*=?*)
9449 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9450 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9451 ac_shift=:
9452 ;;
9453 --*=)
9454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9455 ac_optarg=
9456 ac_shift=:
9457 ;;
9458 *)
9459 ac_option=$1
9460 ac_optarg=$2
9461 ac_shift=shift
9462 ;;
9463 esac
9464
9465 case $ac_option in
9466 # Handling of the options.
9467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9468 ac_cs_recheck=: ;;
9469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9470 $as_echo "$ac_cs_version"; exit ;;
9471 --config | --confi | --conf | --con | --co | --c )
9472 $as_echo "$ac_cs_config"; exit ;;
9473 --debug | --debu | --deb | --de | --d | -d )
9474 debug=: ;;
9475 --file | --fil | --fi | --f )
9476 $ac_shift
9477 case $ac_optarg in
9478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9479 '') as_fn_error $? "missing file argument" ;;
9480 esac
9481 as_fn_append CONFIG_FILES " '$ac_optarg'"
9482 ac_need_defaults=false;;
9483 --he | --h | --help | --hel | -h )
9484 $as_echo "$ac_cs_usage"; exit ;;
9485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9486 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9487 ac_cs_silent=: ;;
9488
9489 # This is an error.
9490 -*) as_fn_error $? "unrecognized option: \`$1'
9491Try \`$0 --help' for more information." ;;
9492
9493 *) as_fn_append ac_config_targets " $1"
9494 ac_need_defaults=false ;;
9495
9496 esac
9497 shift
9498done
9499
9500ac_configure_extra_args=
9501
9502if $ac_cs_silent; then
9503 exec 6>/dev/null
9504 ac_configure_extra_args="$ac_configure_extra_args --silent"
9505fi
9506
9507_ACEOF
9508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9509if \$ac_cs_recheck; then
9510 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9511 shift
9512 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9513 CONFIG_SHELL='$SHELL'
9514 export CONFIG_SHELL
9515 exec "\$@"
9516fi
9517
9518_ACEOF
9519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9520exec 5>>config.log
9521{
9522 echo
9523 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9524## Running $as_me. ##
9525_ASBOX
9526 $as_echo "$ac_log"
9527} >&5
9528
9529_ACEOF
9530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9531_ACEOF
9532
9533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9534
9535# Handling of arguments.
9536for ac_config_target in $ac_config_targets
9537do
9538 case $ac_config_target in
9539 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9540 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
9541
9542 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9543 esac
9544done
9545
9546
9547# If the user did not use the arguments to specify the items to instantiate,
9548# then the envvar interface is used. Set only those that are not.
9549# We use the long form for the default assignment because of an extremely
9550# bizarre bug on SunOS 4.1.3.
9551if $ac_need_defaults; then
9552 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9553fi
9554
9555# Have a temporary directory for convenience. Make it in the build tree
9556# simply because there is no reason against having it here, and in addition,
9557# creating and moving files from /tmp can sometimes cause problems.
9558# Hook for its removal unless debugging.
9559# Note that there is a small window in which the directory will not be cleaned:
9560# after its creation but before its name has been assigned to `$tmp'.
9561$debug ||
9562{
9563 tmp= ac_tmp=
9564 trap 'exit_status=$?
9565 : "${ac_tmp:=$tmp}"
9566 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9567' 0
9568 trap 'as_fn_exit 1' 1 2 13 15
9569}
9570# Create a (secure) tmp directory for tmp files.
9571
9572{
9573 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9574 test -d "$tmp"
9575} ||
9576{
9577 tmp=./conf$$-$RANDOM
9578 (umask 077 && mkdir "$tmp")
9579} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9580ac_tmp=$tmp
9581
9582# Set up the scripts for CONFIG_FILES section.
9583# No need to generate them if there are no CONFIG_FILES.
9584# This happens for instance with `./config.status config.h'.
9585if test -n "$CONFIG_FILES"; then
9586
9587
9588ac_cr=`echo X | tr X '\015'`
9589# On cygwin, bash can eat \r inside `` if the user requested igncr.
9590# But we know of no other shell where ac_cr would be empty at this
9591# point, so we can use a bashism as a fallback.
9592if test "x$ac_cr" = x; then
9593 eval ac_cr=\$\'\\r\'
9594fi
9595ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9596if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9597 ac_cs_awk_cr='\\r'
9598else
9599 ac_cs_awk_cr=$ac_cr
9600fi
9601
9602echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9603_ACEOF
9604
9605
9606{
9607 echo "cat >conf$$subs.awk <<_ACEOF" &&
9608 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9609 echo "_ACEOF"
9610} >conf$$subs.sh ||
9611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9612ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9613ac_delim='%!_!# '
9614for ac_last_try in false false false false false :; do
9615 . ./conf$$subs.sh ||
9616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9617
9618 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9619 if test $ac_delim_n = $ac_delim_num; then
9620 break
9621 elif $ac_last_try; then
9622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9623 else
9624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9625 fi
9626done
9627rm -f conf$$subs.sh
9628
9629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9630cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9631_ACEOF
9632sed -n '
9633h
9634s/^/S["/; s/!.*/"]=/
9635p
9636g
9637s/^[^!]*!//
9638:repl
9639t repl
9640s/'"$ac_delim"'$//
9641t delim
9642:nl
9643h
9644s/\(.\{148\}\)..*/\1/
9645t more1
9646s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9647p
9648n
9649b repl
9650:more1
9651s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9652p
9653g
9654s/.\{148\}//
9655t nl
9656:delim
9657h
9658s/\(.\{148\}\)..*/\1/
9659t more2
9660s/["\\]/\\&/g; s/^/"/; s/$/"/
9661p
9662b
9663:more2
9664s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9665p
9666g
9667s/.\{148\}//
9668t delim
9669' <conf$$subs.awk | sed '
9670/^[^""]/{
9671 N
9672 s/\n//
9673}
9674' >>$CONFIG_STATUS || ac_write_fail=1
9675rm -f conf$$subs.awk
9676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9677_ACAWK
9678cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9679 for (key in S) S_is_set[key] = 1
9680 FS = ""
9681
9682}
9683{
9684 line = $ 0
9685 nfields = split(line, field, "@")
9686 substed = 0
9687 len = length(field[1])
9688 for (i = 2; i < nfields; i++) {
9689 key = field[i]
9690 keylen = length(key)
9691 if (S_is_set[key]) {
9692 value = S[key]
9693 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9694 len += length(value) + length(field[++i])
9695 substed = 1
9696 } else
9697 len += 1 + keylen
9698 }
9699
9700 print line
9701}
9702
9703_ACAWK
9704_ACEOF
9705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9706if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9707 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9708else
9709 cat
9710fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9711 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9712_ACEOF
9713
9714# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9715# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9716# trailing colons and then remove the whole line if VPATH becomes empty
9717# (actually we leave an empty line to preserve line numbers).
9718if test "x$srcdir" = x.; then
9719 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9720h
9721s///
9722s/^/:/
9723s/[ ]*$/:/
9724s/:\$(srcdir):/:/g
9725s/:\${srcdir}:/:/g
9726s/:@srcdir@:/:/g
9727s/^:*//
9728s/:*$//
9729x
9730s/\(=[ ]*\).*/\1/
9731G
9732s/\n//
9733s/^[^=]*=[ ]*$//
9734}'
9735fi
9736
9737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9738fi # test -n "$CONFIG_FILES"
9739
9740
9741eval set X " :F $CONFIG_FILES "
9742shift
9743for ac_tag
9744do
9745 case $ac_tag in
9746 :[FHLC]) ac_mode=$ac_tag; continue;;
9747 esac
9748 case $ac_mode$ac_tag in
9749 :[FHL]*:*);;
9750 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9751 :[FH]-) ac_tag=-:-;;
9752 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9753 esac
9754 ac_save_IFS=$IFS
9755 IFS=:
9756 set x $ac_tag
9757 IFS=$ac_save_IFS
9758 shift
9759 ac_file=$1
9760 shift
9761
9762 case $ac_mode in
9763 :L) ac_source=$1;;
9764 :[FH])
9765 ac_file_inputs=
9766 for ac_f
9767 do
9768 case $ac_f in
9769 -) ac_f="$ac_tmp/stdin";;
9770 *) # Look for the file first in the build tree, then in the source tree
9771 # (if the path is not absolute). The absolute path cannot be DOS-style,
9772 # because $ac_f cannot contain `:'.
9773 test -f "$ac_f" ||
9774 case $ac_f in
9775 [\\/$]*) false;;
9776 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9777 esac ||
9778 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9779 esac
9780 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9781 as_fn_append ac_file_inputs " '$ac_f'"
9782 done
9783
9784 # Let's still pretend it is `configure' which instantiates (i.e., don't
9785 # use $as_me), people would be surprised to read:
9786 # /* config.h. Generated by config.status. */
9787 configure_input='Generated from '`
9788 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9789 `' by configure.'
9790 if test x"$ac_file" != x-; then
9791 configure_input="$ac_file. $configure_input"
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9793$as_echo "$as_me: creating $ac_file" >&6;}
9794 fi
9795 # Neutralize special characters interpreted by sed in replacement strings.
9796 case $configure_input in #(
9797 *\&* | *\|* | *\\* )
9798 ac_sed_conf_input=`$as_echo "$configure_input" |
9799 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9800 *) ac_sed_conf_input=$configure_input;;
9801 esac
9802
9803 case $ac_tag in
9804 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9806 esac
9807 ;;
9808 esac
9809
9810 ac_dir=`$as_dirname -- "$ac_file" ||
9811$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9812 X"$ac_file" : 'X\(//\)[^/]' \| \
9813 X"$ac_file" : 'X\(//\)$' \| \
9814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9815$as_echo X"$ac_file" |
9816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9817 s//\1/
9818 q
9819 }
9820 /^X\(\/\/\)[^/].*/{
9821 s//\1/
9822 q
9823 }
9824 /^X\(\/\/\)$/{
9825 s//\1/
9826 q
9827 }
9828 /^X\(\/\).*/{
9829 s//\1/
9830 q
9831 }
9832 s/.*/./; q'`
9833 as_dir="$ac_dir"; as_fn_mkdir_p
9834 ac_builddir=.
9835
9836case "$ac_dir" in
9837.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9838*)
9839 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9840 # A ".." for each directory in $ac_dir_suffix.
9841 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9842 case $ac_top_builddir_sub in
9843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9845 esac ;;
9846esac
9847ac_abs_top_builddir=$ac_pwd
9848ac_abs_builddir=$ac_pwd$ac_dir_suffix
9849# for backward compatibility:
9850ac_top_builddir=$ac_top_build_prefix
9851
9852case $srcdir in
9853 .) # We are building in place.
9854 ac_srcdir=.
9855 ac_top_srcdir=$ac_top_builddir_sub
9856 ac_abs_top_srcdir=$ac_pwd ;;
9857 [\\/]* | ?:[\\/]* ) # Absolute name.
9858 ac_srcdir=$srcdir$ac_dir_suffix;
9859 ac_top_srcdir=$srcdir
9860 ac_abs_top_srcdir=$srcdir ;;
9861 *) # Relative name.
9862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9863 ac_top_srcdir=$ac_top_build_prefix$srcdir
9864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9865esac
9866ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9867
9868
9869 case $ac_mode in
9870 :F)
9871 #
9872 # CONFIG_FILE
9873 #
9874
9875_ACEOF
9876
9877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9878# If the template does not know about datarootdir, expand it.
9879# FIXME: This hack should be removed a few years after 2.60.
9880ac_datarootdir_hack=; ac_datarootdir_seen=
9881ac_sed_dataroot='
9882/datarootdir/ {
9883 p
9884 q
9885}
9886/@datadir@/p
9887/@docdir@/p
9888/@infodir@/p
9889/@localedir@/p
9890/@mandir@/p'
9891case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9892*datarootdir*) ac_datarootdir_seen=yes;;
9893*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9895$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9896_ACEOF
9897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9898 ac_datarootdir_hack='
9899 s&@datadir@&$datadir&g
9900 s&@docdir@&$docdir&g
9901 s&@infodir@&$infodir&g
9902 s&@localedir@&$localedir&g
9903 s&@mandir@&$mandir&g
9904 s&\\\${datarootdir}&$datarootdir&g' ;;
9905esac
9906_ACEOF
9907
9908# Neutralize VPATH when `$srcdir' = `.'.
9909# Shell code in configure.ac might set extrasub.
9910# FIXME: do we really want to maintain this feature?
9911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9912ac_sed_extra="$ac_vpsub
9913$extrasub
9914_ACEOF
9915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9916:t
9917/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9918s|@configure_input@|$ac_sed_conf_input|;t t
9919s&@top_builddir@&$ac_top_builddir_sub&;t t
9920s&@top_build_prefix@&$ac_top_build_prefix&;t t
9921s&@srcdir@&$ac_srcdir&;t t
9922s&@abs_srcdir@&$ac_abs_srcdir&;t t
9923s&@top_srcdir@&$ac_top_srcdir&;t t
9924s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9925s&@builddir@&$ac_builddir&;t t
9926s&@abs_builddir@&$ac_abs_builddir&;t t
9927s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9928$ac_datarootdir_hack
9929"
9930eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9931 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9932
9933test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9934 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9935 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9936 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9938which seems to be undefined. Please make sure it is defined" >&5
9939$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9940which seems to be undefined. Please make sure it is defined" >&2;}
9941
9942 rm -f "$ac_tmp/stdin"
9943 case $ac_file in
9944 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9945 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9946 esac \
9947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9948 ;;
9949
9950
9951
9952 esac
9953
9954done # for ac_tag
9955
9956
9957as_fn_exit 0
9958_ACEOF
9959ac_clean_files=$ac_clean_files_save
9960
9961test $ac_write_fail = 0 ||
9962 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9963
9964
9965# configure is writing to config.log, and then calls config.status.
9966# config.status does its own redirection, appending to config.log.
9967# Unfortunately, on DOS this fails, as config.log is still kept open
9968# by configure, so config.status won't be able to write to it; its
9969# output is simply discarded. So we exec the FD to /dev/null,
9970# effectively closing config.log, so it can be properly (re)opened and
9971# appended to by config.status. When coming back to configure, we
9972# need to make the FD available again.
9973if test "$no_create" != yes; then
9974 ac_cs_success=:
9975 ac_config_status_args=
9976 test "$silent" = yes &&
9977 ac_config_status_args="$ac_config_status_args --quiet"
9978 exec 5>/dev/null
9979 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9980 exec 5>>config.log
9981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9982 # would make configure fail if this is the last instruction.
9983 $ac_cs_success || as_fn_exit 1
9984fi
9985if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9987$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9988fi
9989