Debian Codegraph @

configure

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