Debian Codegraph @

png/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for tkimgpng 2.1.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else case e in #(
190 e) as_have_required=no ;;
191 esac
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else case e in #(
197 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else case e in #(
231 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi ;;
236 esac
237 fi
238
239
240 if test "x$CONFIG_SHELL" != x
241 then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed 'exec'.
259 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno
264 then :
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 printf "%s\n" "$0: Please tell [email protected] about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
275 fi
276 exit 1
277 fi ;;
278 esac
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317
318 # as_fn_mkdir_p
319 # -------------
320 # Create "$as_dir" as a directory, including parents if necessary.
321 as_fn_mkdir_p ()
322 {
323
324 case $as_dir in #(
325 -*) as_dir=./$as_dir;;
326 esac
327 test -d "$as_dir" || eval $as_mkdir_p || {
328 as_dirs=
329 while :; do
330 case $as_dir in #(
331 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 *) as_qdir=$as_dir;;
333 esac
334 as_dirs="'$as_qdir' $as_dirs"
335 as_dir=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337 X"$as_dir" : 'X\(//\)[^/]' \| \
338 X"$as_dir" : 'X\(//\)$' \| \
339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 printf "%s\n" X"$as_dir" |
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)[^/].*/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\).*/{
354 s//\1/
355 q
356 }
357 s/.*/./; q'`
358 test -d "$as_dir" && break
359 done
360 test -z "$as_dirs" || eval "mkdir $as_dirs"
361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362
363
364 } # as_fn_mkdir_p
365
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p ()
370 {
371 test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
378 # implementations.
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
380 then :
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
385 else case e in #(
386 e) as_fn_append ()
387 {
388 eval $1=\$$1\$2
389 } ;;
390 esac
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
399 then :
400 eval 'as_fn_arith ()
401 {
402 as_val=$(( $* ))
403 }'
404 else case e in #(
405 e) as_fn_arith ()
406 {
407 as_val=`expr "$@" || test $? -eq 1`
408 } ;;
409 esac
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 printf "%s\n" "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 printf "%s\n" X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 t clear
486 :clear
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512
513 # Determine whether it's possible to make 'echo' print without a newline.
514 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
515 # for compatibility with existing Makefiles.
516 ECHO_C= ECHO_N= ECHO_T=
517 case `echo -n x` in #(((((
518 -n*)
519 case `echo 'xy\c'` in
520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
521 xy) ECHO_C='\c';;
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 ECHO_T=' ';;
524 esac;;
525 *)
526 ECHO_N='-n';;
527 esac
528
529 # For backward compatibility with old third-party macros, we provide
530 # the shell variables $as_echo and $as_echo_n. New code should use
531 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
532 as_echo='printf %s\n'
533 as_echo_n='printf %s'
534
535 rm -f conf$$ conf$$.exe conf$$.file
536 if test -d conf$$.dir; then
537 rm -f conf$$.dir/conf$$.file
538 else
539 rm -f conf$$.dir
540 mkdir conf$$.dir 2>/dev/null
541 fi
542 if (echo >conf$$.file) 2>/dev/null; then
543 if ln -s conf$$.file conf$$ 2>/dev/null; then
544 as_ln_s='ln -s'
545 # ... but there are two gotchas:
546 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
547 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
548 # In both cases, we have to default to 'cp -pR'.
549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
550 as_ln_s='cp -pR'
551 elif ln conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s=ln
553 else
554 as_ln_s='cp -pR'
555 fi
556 else
557 as_ln_s='cp -pR'
558 fi
559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
560 rmdir conf$$.dir 2>/dev/null
561
562 if mkdir -p . 2>/dev/null; then
563 as_mkdir_p='mkdir -p "$as_dir"'
564 else
565 test -d ./-p && rmdir ./-p
566 as_mkdir_p=false
567 fi
568
569 as_test_x='test -x'
570 as_executable_p=as_fn_executable_p
571
572 # Sed expression to map a string onto a valid CPP name.
573 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
574 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
575
576 # Sed expression to map a string onto a valid variable name.
577 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
579
580
581 test -n "$DJDIR" || exec 7<&0 </dev/null
582 exec 6>&1
583
584 # Name of the host.
585 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
586 # so uname gets run too.
587 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588
589 #
590 # Initializations.
591 #
592 ac_default_prefix=/usr/local
593 ac_clean_files=
594 ac_config_libobj_dir=.
595 LIBOBJS=
596 cross_compiling=no
597 subdirs=
598 MFLAGS=
599 MAKEFLAGS=
600
601 # Identity of this package.
602 PACKAGE_NAME='tkimgpng'
603 PACKAGE_TARNAME='tkimgpng'
604 PACKAGE_VERSION='2.1.1'
605 PACKAGE_STRING='tkimgpng 2.1.1'
606 PACKAGE_BUGREPORT=''
607 PACKAGE_URL=''
608
609 # Factoring default headers for most tests.
610 ac_includes_default="\
611 #include <stddef.h>
612 #ifdef HAVE_STDIO_H
613 # include <stdio.h>
614 #endif
615 #ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 #endif
618 #ifdef HAVE_STRING_H
619 # include <string.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_SYS_TYPES_H
631 # include <sys/types.h>
632 #endif
633 #ifdef HAVE_SYS_STAT_H
634 # include <sys/stat.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_header_c_list=
641 ac_subst_vars='LTLIBOBJS
642 WISH_PROG
643 TCLSH_PROG
644 VC_MANIFEST_EMBED_EXE
645 VC_MANIFEST_EMBED_DLL
646 RANLIB_STUB
647 PKG_STUB_LIB_FILE
648 MAKE_STUB_LIB
649 MAKE_STATIC_LIB
650 MAKE_SHARED_LIB
651 MAKE_LIB
652 XMKMF
653 LDFLAGS_DEFAULT
654 CFLAGS_DEFAULT
655 LD_LIBRARY_PATH_VAR
656 SHLIB_CFLAGS
657 SHLIB_LD_LIBS
658 SHLIB_LD
659 STLIB_LD
660 LDFLAGS_OPTIMIZE
661 LDFLAGS_DEBUG
662 CFLAGS_WARNING
663 CFLAGS_OPTIMIZE
664 CFLAGS_DEBUG
665 LIBOBJS
666 RC
667 AR
668 STUBS_BUILD
669 SHARED_BUILD
670 TCL_THREADS
671 TK_INCLUDES
672 TCL_INCLUDES
673 PKG_OBJECTS
674 PKG_SOURCES
675 zlibtcl_BUILD_PATH
676 zlibtcl_SRC_PATH
677 pngtcl_BUILD_PATH
678 pngtcl_SRC_PATH
679 tkimg_BUILD_PATH
680 tkimg_SRC_PATH
681 zlibtcl_STUB_LIB_PATH
682 zlibtcl_STUB_LIB_SPEC
683 zlibtcl_STUB_LIB_FILE
684 zlibtcl_LIB_SPEC
685 zlibtcl_LIB_FILE
686 zlibtcl_SRC_DIR
687 zlibtcl_BIN_DIR
688 zlibtcl_VERSION
689 pngtcl_STUB_LIB_PATH
690 pngtcl_STUB_LIB_SPEC
691 pngtcl_STUB_LIB_FILE
692 pngtcl_LIB_SPEC
693 pngtcl_LIB_FILE
694 pngtcl_SRC_DIR
695 pngtcl_BIN_DIR
696 pngtcl_VERSION
697 tkimg_STUB_LIB_PATH
698 tkimg_STUB_LIB_SPEC
699 tkimg_STUB_LIB_FILE
700 tkimg_LIB_SPEC
701 tkimg_LIB_FILE
702 tkimg_SRC_DIR
703 tkimg_BIN_DIR
704 tkimg_VERSION
705 RANLIB
706 SET_MAKE
707 CPP
708 TK_XINCLUDES
709 TK_LIBS
710 TK_STUB_LIB_SPEC
711 TK_STUB_LIB_FLAG
712 TK_STUB_LIB_FILE
713 TK_LIB_SPEC
714 TK_LIB_FLAG
715 TK_LIB_FILE
716 TK_SRC_DIR
717 TK_BIN_DIR
718 TK_VERSION
719 TCL_SHLIB_LD_LIBS
720 TCL_LD_FLAGS
721 TCL_EXTRA_CFLAGS
722 TCL_DEFS
723 TCL_LIBS
724 CLEANFILES
725 OBJEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 TCL_STUB_LIB_SPEC
732 TCL_STUB_LIB_FLAG
733 TCL_STUB_LIB_FILE
734 TCL_LIB_SPEC
735 TCL_LIB_FLAG
736 TCL_LIB_FILE
737 TCL_SRC_DIR
738 TCL_BIN_DIR
739 TCL_PATCH_LEVEL
740 TCL_VERSION
741 PACKAGE_TCLNAME
742 PHIMGTYPE
743 INSTALL_LIBRARY
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 INSTALL_DATA
747 INSTALL_DATA_DIR
748 INSTALL
749 PKG_CFLAGS
750 PKG_LIBS
751 PKG_INCLUDES
752 PKG_HEADERS
753 PKG_TCL_SOURCES
754 PKG_STUB_OBJECTS
755 PKG_STUB_SOURCES
756 PKG_LIB_FILE9
757 PKG_LIB_FILE8
758 PKG_LIB_FILE
759 EXEEXT
760 CYGPATH
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 runstatedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_URL
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 with_tcl
804 with_tcl8
805 with_tk
806 with_tk8
807 with_tkimg
808 with_pngtcl
809 with_zlibtcl
810 with_tclinclude
811 with_tkinclude
812 enable_threads
813 enable_shared
814 enable_stubs
815 enable_64bit
816 enable_64bit_vis
817 enable_rpath
818 enable_symbols
819 with_x
820 '
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 CPP
830 XMKMF'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 runstatedir='${localstatedir}/run'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
907
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
922
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
927
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: '$ac_useropt'"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
960
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: '$ac_useropt'"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
996
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1001
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1031
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1105
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -runstatedir | --runstatedir | --runstatedi | --runstated \
1121 | --runstate | --runstat | --runsta | --runst | --runs \
1122 | --run | --ru | --r)
1123 ac_prev=runstatedir ;;
1124 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1125 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1126 | --run=* | --ru=* | --r=*)
1127 runstatedir=$ac_optarg ;;
1128
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1145
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1155
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1162
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1173
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: '$ac_useropt'"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1189
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: '$ac_useropt'"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1205
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1209
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1216
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1223
1224 -*) as_fn_error $? "unrecognized option: '$ac_option'
1225 Try '$0 --help' for more information"
1226 ;;
1227
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1237
1238 *)
1239 # FIXME: should be removed in autoconf 3.0.
1240 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 ;;
1245
1246 esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir runstatedir
1267 do
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: '$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 printf "%s\n" X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1343 fi
1344 else
1345 ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 'configure' configures tkimgpng 2.1.1 to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print 'checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for '--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or '..']
1398
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1404
1405 By default, 'make install' will install all the files in
1406 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than '$ac_default_prefix' using '--prefix',
1408 for instance '--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/tkimgpng]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1433 _ACEOF
1434
1435 cat <<\_ACEOF
1436
1437 X features:
1438 --x-includes=DIR X include files are in DIR
1439 --x-libraries=DIR X library files are in DIR
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of tkimgpng 2.1.1:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-threads build with threads (default: on)
1454 --enable-shared build and link with shared libraries (default: on)
1455 --enable-stubs build and link with stub libraries. Always true for
1456 shared builds (default: on)
1457 --enable-64bit enable 64bit support (default: off)
1458 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
1459 --disable-rpath disable rpath support (default: on)
1460 --enable-symbols build with debugging symbols (default: off)
1461
1462 Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-tcl directory containing tcl configuration
1466 (tclConfig.sh)
1467 --with-tcl8 Compile for Tcl8 in Tcl9 environment
1468 --with-tk directory containing tk configuration (tkConfig.sh)
1469 --with-tk8 Compile for Tk8 in Tk9 environment
1470 --with-tkimg directory containing tkimg configuration (tkimgConfig.sh)
1471 --with-pngtcl directory containing pngtcl configuration (pngtclConfig.sh)
1472 --with-zlibtcl directory containing zlibtcl configuration (zlibtclConfig.sh)
1473 --with-tclinclude directory containing the public Tcl header files
1474 --with-tkinclude directory containing the public Tk header files
1475 --with-x use the X Window System
1476
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CPP C preprocessor
1486 XMKMF Path to xmkmf, Makefile generator for X Window System
1487
1488 Use these variables to override the choices made by 'configure' or to help
1489 it to find libraries and programs with nonstandard names/locations.
1490
1491 Report bugs to the package provider.
1492 _ACEOF
1493 ac_status=$?
1494 fi
1495
1496 if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 continue
1502 ac_builddir=.
1503
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *)
1507 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1519
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for configure.gnu first; this name is used for a wrapper for
1538 # Metaconfig's "Configure" on case-insensitive file systems.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 tkimgpng configure 2.1.1
1556 generated by GNU Autoconf 2.72
1557
1558 Copyright (C) 2023 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext conftest.beam
1576 if { { ac_try="$ac_compile"
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 printf "%s\n" "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext
1595 then :
1596 ac_retval=0
1597 else case e in #(
1598 e) printf "%s\n" "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1 ;;
1602 esac
1603 fi
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_compile
1608
1609 # ac_fn_c_try_cpp LINENO
1610 # ----------------------
1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_cpp ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { { ac_try="$ac_cpp conftest.$ac_ext"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 printf "%s\n" "$ac_try_echo"; } >&5
1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } > conftest.i && {
1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 }
1634 then :
1635 ac_retval=0
1636 else case e in #(
1637 e) printf "%s\n" "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1 ;;
1641 esac
1642 fi
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_cpp
1647
1648 # ac_fn_c_try_link LINENO
1649 # -----------------------
1650 # Try to link conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_link ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1655 if { { ac_try="$ac_link"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 printf "%s\n" "$ac_try_echo"; } >&5
1662 (eval "$ac_link") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest$ac_exeext && {
1674 test "$cross_compiling" = yes ||
1675 test -x conftest$ac_exeext
1676 }
1677 then :
1678 ac_retval=0
1679 else case e in #(
1680 e) printf "%s\n" "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1 ;;
1684 esac
1685 fi
1686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688 # interfere with the next link command; also delete a directory that is
1689 # left behind by Apple's compiler. We do this before executing the actions.
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_link
1695
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1699 # executables *can* be run.
1700 ac_fn_c_try_run ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 printf "%s\n" "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1711 ac_status=$?
1712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 printf "%s\n" "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1721 ac_status=$?
1722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }
1724 then :
1725 ac_retval=0
1726 else case e in #(
1727 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1728 printf "%s\n" "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=$ac_status ;;
1732 esac
1733 fi
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_run
1739
1740 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1741 # -------------------------------------------------------
1742 # Tests whether HEADER exists and can be compiled using the include files in
1743 # INCLUDES, setting the cache variable VAR accordingly.
1744 ac_fn_c_check_header_compile ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 printf %s "checking for $2... " >&6; }
1749 if eval test \${$3+y}
1750 then :
1751 printf %s "(cached) " >&6
1752 else case e in #(
1753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 $4
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"
1759 then :
1760 eval "$3=yes"
1761 else case e in #(
1762 e) eval "$3=no" ;;
1763 esac
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1766 esac
1767 fi
1768 eval ac_res=\$$3
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 printf "%s\n" "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_header_compile
1774
1775 # ac_fn_c_check_func LINENO FUNC VAR
1776 # ----------------------------------
1777 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1778 ac_fn_c_check_func ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 printf %s "checking for $2... " >&6; }
1783 if eval test \${$3+y}
1784 then :
1785 printf %s "(cached) " >&6
1786 else case e in #(
1787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1791 #define $2 innocuous_$2
1792
1793 /* System header to define __stub macros and hopefully few prototypes,
1794 which can conflict with char $2 (void); below. */
1795
1796 #include <limits.h>
1797 #undef $2
1798
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1802 #ifdef __cplusplus
1803 extern "C"
1804 #endif
1805 char $2 (void);
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1810 choke me
1811 #endif
1812
1813 int
1814 main (void)
1815 {
1816 return $2 ();
1817 ;
1818 return 0;
1819 }
1820 _ACEOF
1821 if ac_fn_c_try_link "$LINENO"
1822 then :
1823 eval "$3=yes"
1824 else case e in #(
1825 e) eval "$3=no" ;;
1826 esac
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1829 conftest$ac_exeext conftest.$ac_ext ;;
1830 esac
1831 fi
1832 eval ac_res=\$$3
1833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 printf "%s\n" "$ac_res" >&6; }
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836
1837 } # ac_fn_c_check_func
1838 ac_configure_args_raw=
1839 for ac_arg
1840 do
1841 case $ac_arg in
1842 *\'*)
1843 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1844 esac
1845 as_fn_append ac_configure_args_raw " '$ac_arg'"
1846 done
1847
1848 case $ac_configure_args_raw in
1849 *$as_nl*)
1850 ac_safe_unquote= ;;
1851 *)
1852 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1853 ac_unsafe_a="$ac_unsafe_z#~"
1854 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1855 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1856 esac
1857
1858 cat >config.log <<_ACEOF
1859 This file contains any messages produced by compilers while
1860 running configure, to aid debugging if configure makes a mistake.
1861
1862 It was created by tkimgpng $as_me 2.1.1, which was
1863 generated by GNU Autoconf 2.72. Invocation command line was
1864
1865 $ $0$ac_configure_args_raw
1866
1867 _ACEOF
1868 exec 5>>config.log
1869 {
1870 cat <<_ASUNAME
1871 ## --------- ##
1872 ## Platform. ##
1873 ## --------- ##
1874
1875 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1876 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1877 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1878 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1879 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1880
1881 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1882 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1883
1884 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1885 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1886 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1887 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1888 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1889 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1890 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1891
1892 _ASUNAME
1893
1894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 for as_dir in $PATH
1896 do
1897 IFS=$as_save_IFS
1898 case $as_dir in #(((
1899 '') as_dir=./ ;;
1900 */) ;;
1901 *) as_dir=$as_dir/ ;;
1902 esac
1903 printf "%s\n" "PATH: $as_dir"
1904 done
1905 IFS=$as_save_IFS
1906
1907 } >&5
1908
1909 cat >&5 <<_ACEOF
1910
1911
1912 ## ----------- ##
1913 ## Core tests. ##
1914 ## ----------- ##
1915
1916 _ACEOF
1917
1918
1919 # Keep a trace of the command line.
1920 # Strip out --no-create and --no-recursion so they do not pile up.
1921 # Strip out --silent because we don't want to record it for future runs.
1922 # Also quote any args containing shell meta-characters.
1923 # Make two passes to allow for proper duplicate-argument suppression.
1924 ac_configure_args=
1925 ac_configure_args0=
1926 ac_configure_args1=
1927 ac_must_keep_next=false
1928 for ac_pass in 1 2
1929 do
1930 for ac_arg
1931 do
1932 case $ac_arg in
1933 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1935 | -silent | --silent | --silen | --sile | --sil)
1936 continue ;;
1937 *\'*)
1938 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 esac
1940 case $ac_pass in
1941 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1942 2)
1943 as_fn_append ac_configure_args1 " '$ac_arg'"
1944 if test $ac_must_keep_next = true; then
1945 ac_must_keep_next=false # Got value, back to normal.
1946 else
1947 case $ac_arg in
1948 *=* | --config-cache | -C | -disable-* | --disable-* \
1949 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1950 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1951 | -with-* | --with-* | -without-* | --without-* | --x)
1952 case "$ac_configure_args0 " in
1953 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1954 esac
1955 ;;
1956 -* ) ac_must_keep_next=true ;;
1957 esac
1958 fi
1959 as_fn_append ac_configure_args " '$ac_arg'"
1960 ;;
1961 esac
1962 done
1963 done
1964 { ac_configure_args0=; unset ac_configure_args0;}
1965 { ac_configure_args1=; unset ac_configure_args1;}
1966
1967 # When interrupted or exit'd, cleanup temporary files, and complete
1968 # config.log. We remove comments because anyway the quotes in there
1969 # would cause problems or look ugly.
1970 # WARNING: Use '\'' to represent an apostrophe within the trap.
1971 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1972 trap 'exit_status=$?
1973 # Sanitize IFS.
1974 IFS=" "" $as_nl"
1975 # Save into config.log some information that might help in debugging.
1976 {
1977 echo
1978
1979 printf "%s\n" "## ---------------- ##
1980 ## Cache variables. ##
1981 ## ---------------- ##"
1982 echo
1983 # The following way of writing the cache mishandles newlines in values,
1984 (
1985 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in #(
1988 *${as_nl}*)
1989 case $ac_var in #(
1990 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1991 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1992 esac
1993 case $ac_var in #(
1994 _ | IFS | as_nl) ;; #(
1995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1996 *) { eval $ac_var=; unset $ac_var;} ;;
1997 esac ;;
1998 esac
1999 done
2000 (set) 2>&1 |
2001 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2002 *${as_nl}ac_space=\ *)
2003 sed -n \
2004 "s/'\''/'\''\\\\'\'''\''/g;
2005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2006 ;; #(
2007 *)
2008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009 ;;
2010 esac |
2011 sort
2012 )
2013 echo
2014
2015 printf "%s\n" "## ----------------- ##
2016 ## Output variables. ##
2017 ## ----------------- ##"
2018 echo
2019 for ac_var in $ac_subst_vars
2020 do
2021 eval ac_val=\$$ac_var
2022 case $ac_val in
2023 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 esac
2025 printf "%s\n" "$ac_var='\''$ac_val'\''"
2026 done | sort
2027 echo
2028
2029 if test -n "$ac_subst_files"; then
2030 printf "%s\n" "## ------------------- ##
2031 ## File substitutions. ##
2032 ## ------------------- ##"
2033 echo
2034 for ac_var in $ac_subst_files
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 printf "%s\n" "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043 fi
2044
2045 if test -s confdefs.h; then
2046 printf "%s\n" "## ----------- ##
2047 ## confdefs.h. ##
2048 ## ----------- ##"
2049 echo
2050 cat confdefs.h
2051 echo
2052 fi
2053 test "$ac_signal" != 0 &&
2054 printf "%s\n" "$as_me: caught signal $ac_signal"
2055 printf "%s\n" "$as_me: exit $exit_status"
2056 } >&5
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2059 exit $exit_status
2060 ' 0
2061 for ac_signal in 1 2 13 15; do
2062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2063 done
2064 ac_signal=0
2065
2066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2067 rm -f -r conftest* confdefs.h
2068
2069 printf "%s\n" "/* confdefs.h */" > confdefs.h
2070
2071 # Predefined preprocessor variables.
2072
2073 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2074
2075 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2076
2077 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2078
2079 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2080
2081 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2082
2083 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2084
2085
2086 # Let the site file select an alternate cache file if it wants to.
2087 # Prefer an explicitly selected file to automatically selected ones.
2088 if test -n "$CONFIG_SITE"; then
2089 ac_site_files="$CONFIG_SITE"
2090 elif test "x$prefix" != xNONE; then
2091 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2092 else
2093 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2094 fi
2095
2096 for ac_site_file in $ac_site_files
2097 do
2098 case $ac_site_file in #(
2099 */*) :
2100 ;; #(
2101 *) :
2102 ac_site_file=./$ac_site_file ;;
2103 esac
2104 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2106 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2107 sed 's/^/| /' "$ac_site_file" >&5
2108 . "$ac_site_file" \
2109 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2110 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2111 as_fn_error $? "failed to load site script $ac_site_file
2112 See 'config.log' for more details" "$LINENO" 5; }
2113 fi
2114 done
2115
2116 if test -r "$cache_file"; then
2117 # Some versions of bash will fail to source /dev/null (special files
2118 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2119 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2121 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2122 case $cache_file in
2123 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2124 *) . "./$cache_file";;
2125 esac
2126 fi
2127 else
2128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2129 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2130 >$cache_file
2131 fi
2132
2133 # Test code for whether the C compiler supports C89 (global declarations)
2134 ac_c_conftest_c89_globals='
2135 /* Does the compiler advertise C89 conformance?
2136 Do not test the value of __STDC__, because some compilers set it to 0
2137 while being otherwise adequately conformant. */
2138 #if !defined __STDC__
2139 # error "Compiler does not advertise C89 conformance"
2140 #endif
2141
2142 #include <stddef.h>
2143 #include <stdarg.h>
2144 struct stat;
2145 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2146 struct buf { int x; };
2147 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2148 static char *e (char **p, int i)
2149 {
2150 return p[i];
2151 }
2152 static char *f (char * (*g) (char **, int), char **p, ...)
2153 {
2154 char *s;
2155 va_list v;
2156 va_start (v,p);
2157 s = g (p, va_arg (v,int));
2158 va_end (v);
2159 return s;
2160 }
2161
2162 /* C89 style stringification. */
2163 #define noexpand_stringify(a) #a
2164 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2165
2166 /* C89 style token pasting. Exercises some of the corner cases that
2167 e.g. old MSVC gets wrong, but not very hard. */
2168 #define noexpand_concat(a,b) a##b
2169 #define expand_concat(a,b) noexpand_concat(a,b)
2170 extern int vA;
2171 extern int vbee;
2172 #define aye A
2173 #define bee B
2174 int *pvA = &expand_concat(v,aye);
2175 int *pvbee = &noexpand_concat(v,bee);
2176
2177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2178 function prototypes and stuff, but not \xHH hex character constants.
2179 These do not provoke an error unfortunately, instead are silently treated
2180 as an "x". The following induces an error, until -std is added to get
2181 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2182 array size at least. It is necessary to write \x00 == 0 to get something
2183 that is true only with -std. */
2184 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2185
2186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2187 inside strings and character constants. */
2188 #define FOO(x) '\''x'\''
2189 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2190
2191 int test (int i, double x);
2192 struct s1 {int (*f) (int a);};
2193 struct s2 {int (*f) (double a);};
2194 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2195 int, int);'
2196
2197 # Test code for whether the C compiler supports C89 (body of main).
2198 ac_c_conftest_c89_main='
2199 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2200 '
2201
2202 # Test code for whether the C compiler supports C99 (global declarations)
2203 ac_c_conftest_c99_globals='
2204 /* Does the compiler advertise C99 conformance? */
2205 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2206 # error "Compiler does not advertise C99 conformance"
2207 #endif
2208
2209 // See if C++-style comments work.
2210
2211 #include <stdbool.h>
2212 extern int puts (const char *);
2213 extern int printf (const char *, ...);
2214 extern int dprintf (int, const char *, ...);
2215 extern void *malloc (size_t);
2216 extern void free (void *);
2217
2218 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2219 // dprintf is used instead of fprintf to avoid needing to declare
2220 // FILE and stderr.
2221 #define debug(...) dprintf (2, __VA_ARGS__)
2222 #define showlist(...) puts (#__VA_ARGS__)
2223 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2224 static void
2225 test_varargs_macros (void)
2226 {
2227 int x = 1234;
2228 int y = 5678;
2229 debug ("Flag");
2230 debug ("X = %d\n", x);
2231 showlist (The first, second, and third items.);
2232 report (x>y, "x is %d but y is %d", x, y);
2233 }
2234
2235 // Check long long types.
2236 #define BIG64 18446744073709551615ull
2237 #define BIG32 4294967295ul
2238 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2239 #if !BIG_OK
2240 #error "your preprocessor is broken"
2241 #endif
2242 #if BIG_OK
2243 #else
2244 #error "your preprocessor is broken"
2245 #endif
2246 static long long int bignum = -9223372036854775807LL;
2247 static unsigned long long int ubignum = BIG64;
2248
2249 struct incomplete_array
2250 {
2251 int datasize;
2252 double data[];
2253 };
2254
2255 struct named_init {
2256 int number;
2257 const wchar_t *name;
2258 double average;
2259 };
2260
2261 typedef const char *ccp;
2262
2263 static inline int
2264 test_restrict (ccp restrict text)
2265 {
2266 // Iterate through items via the restricted pointer.
2267 // Also check for declarations in for loops.
2268 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2269 continue;
2270 return 0;
2271 }
2272
2273 // Check varargs and va_copy.
2274 static bool
2275 test_varargs (const char *format, ...)
2276 {
2277 va_list args;
2278 va_start (args, format);
2279 va_list args_copy;
2280 va_copy (args_copy, args);
2281
2282 const char *str = "";
2283 int number = 0;
2284 float fnumber = 0;
2285
2286 while (*format)
2287 {
2288 switch (*format++)
2289 {
2290 case '\''s'\'': // string
2291 str = va_arg (args_copy, const char *);
2292 break;
2293 case '\''d'\'': // int
2294 number = va_arg (args_copy, int);
2295 break;
2296 case '\''f'\'': // float
2297 fnumber = va_arg (args_copy, double);
2298 break;
2299 default:
2300 break;
2301 }
2302 }
2303 va_end (args_copy);
2304 va_end (args);
2305
2306 return *str && number && fnumber;
2307 }
2308 '
2309
2310 # Test code for whether the C compiler supports C99 (body of main).
2311 ac_c_conftest_c99_main='
2312 // Check bool.
2313 _Bool success = false;
2314 success |= (argc != 0);
2315
2316 // Check restrict.
2317 if (test_restrict ("String literal") == 0)
2318 success = true;
2319 char *restrict newvar = "Another string";
2320
2321 // Check varargs.
2322 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2323 test_varargs_macros ();
2324
2325 // Check flexible array members.
2326 struct incomplete_array *ia =
2327 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2328 ia->datasize = 10;
2329 for (int i = 0; i < ia->datasize; ++i)
2330 ia->data[i] = i * 1.234;
2331 // Work around memory leak warnings.
2332 free (ia);
2333
2334 // Check named initializers.
2335 struct named_init ni = {
2336 .number = 34,
2337 .name = L"Test wide string",
2338 .average = 543.34343,
2339 };
2340
2341 ni.number = 58;
2342
2343 int dynamic_array[ni.number];
2344 dynamic_array[0] = argv[0][0];
2345 dynamic_array[ni.number - 1] = 543;
2346
2347 // work around unused variable warnings
2348 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2349 || dynamic_array[ni.number - 1] != 543);
2350 '
2351
2352 # Test code for whether the C compiler supports C11 (global declarations)
2353 ac_c_conftest_c11_globals='
2354 /* Does the compiler advertise C11 conformance? */
2355 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2356 # error "Compiler does not advertise C11 conformance"
2357 #endif
2358
2359 // Check _Alignas.
2360 char _Alignas (double) aligned_as_double;
2361 char _Alignas (0) no_special_alignment;
2362 extern char aligned_as_int;
2363 char _Alignas (0) _Alignas (int) aligned_as_int;
2364
2365 // Check _Alignof.
2366 enum
2367 {
2368 int_alignment = _Alignof (int),
2369 int_array_alignment = _Alignof (int[100]),
2370 char_alignment = _Alignof (char)
2371 };
2372 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2373
2374 // Check _Noreturn.
2375 int _Noreturn does_not_return (void) { for (;;) continue; }
2376
2377 // Check _Static_assert.
2378 struct test_static_assert
2379 {
2380 int x;
2381 _Static_assert (sizeof (int) <= sizeof (long int),
2382 "_Static_assert does not work in struct");
2383 long int y;
2384 };
2385
2386 // Check UTF-8 literals.
2387 #define u8 syntax error!
2388 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2389
2390 // Check duplicate typedefs.
2391 typedef long *long_ptr;
2392 typedef long int *long_ptr;
2393 typedef long_ptr long_ptr;
2394
2395 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2396 struct anonymous
2397 {
2398 union {
2399 struct { int i; int j; };
2400 struct { int k; long int l; } w;
2401 };
2402 int m;
2403 } v1;
2404 '
2405
2406 # Test code for whether the C compiler supports C11 (body of main).
2407 ac_c_conftest_c11_main='
2408 _Static_assert ((offsetof (struct anonymous, i)
2409 == offsetof (struct anonymous, w.k)),
2410 "Anonymous union alignment botch");
2411 v1.i = 2;
2412 v1.w.k = 5;
2413 ok |= v1.i != 5;
2414 '
2415
2416 # Test code for whether the C compiler supports C11 (complete).
2417 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2418 ${ac_c_conftest_c99_globals}
2419 ${ac_c_conftest_c11_globals}
2420
2421 int
2422 main (int argc, char **argv)
2423 {
2424 int ok = 0;
2425 ${ac_c_conftest_c89_main}
2426 ${ac_c_conftest_c99_main}
2427 ${ac_c_conftest_c11_main}
2428 return ok;
2429 }
2430 "
2431
2432 # Test code for whether the C compiler supports C99 (complete).
2433 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2434 ${ac_c_conftest_c99_globals}
2435
2436 int
2437 main (int argc, char **argv)
2438 {
2439 int ok = 0;
2440 ${ac_c_conftest_c89_main}
2441 ${ac_c_conftest_c99_main}
2442 return ok;
2443 }
2444 "
2445
2446 # Test code for whether the C compiler supports C89 (complete).
2447 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2448
2449 int
2450 main (int argc, char **argv)
2451 {
2452 int ok = 0;
2453 ${ac_c_conftest_c89_main}
2454 return ok;
2455 }
2456 "
2457
2458 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2459 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2460 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2461 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2462 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2463 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2464 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2465 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2466 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2467 # Check that the precious variables saved in the cache have kept the same
2468 # value.
2469 ac_cache_corrupted=false
2470 for ac_var in $ac_precious_vars; do
2471 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2472 eval ac_new_set=\$ac_env_${ac_var}_set
2473 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2474 eval ac_new_val=\$ac_env_${ac_var}_value
2475 case $ac_old_set,$ac_new_set in
2476 set,)
2477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2478 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,set)
2481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2482 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2484 ,);;
2485 *)
2486 if test "x$ac_old_val" != "x$ac_new_val"; then
2487 # differences in whitespace do not lead to failure.
2488 ac_old_val_w=`echo x $ac_old_val`
2489 ac_new_val_w=`echo x $ac_new_val`
2490 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2492 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2493 ac_cache_corrupted=:
2494 else
2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2496 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2497 eval $ac_var=\$ac_old_val
2498 fi
2499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2500 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2502 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2503 fi;;
2504 esac
2505 # Pass precious variables to config.status.
2506 if test "$ac_new_set" = set; then
2507 case $ac_new_val in
2508 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2509 *) ac_arg=$ac_var=$ac_new_val ;;
2510 esac
2511 case " $ac_configure_args " in
2512 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2513 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2514 esac
2515 fi
2516 done
2517 if $ac_cache_corrupted; then
2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2519 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2521 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2522 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2523 and start over" "$LINENO" 5
2524 fi
2525 ## -------------------- ##
2526 ## Main body of script. ##
2527 ## -------------------- ##
2528
2529 ac_ext=c
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534
2535
2536
2537
2538 TEA_VERSION="3.13"
2539
2540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5
2541 printf %s "checking TEA configuration... " >&6; }
2542 if test x"${PACKAGE_NAME}" = x ; then
2543 as_fn_error $? "
2544 The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
2545 fi
2546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2547 printf "%s\n" "ok (TEA ${TEA_VERSION})" >&6; }
2548
2549 # If the user did not set CFLAGS, set it now to keep macros
2550 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
2551 if test "${CFLAGS+set}" != "set" ; then
2552 CFLAGS=""
2553 fi
2554
2555 case "`uname -s`" in
2556 *win32*|*WIN32*|*MINGW32_*|*MINGW64_*|*MSYS_*)
2557 # Extract the first word of "cygpath", so it can be a program name with args.
2558 set dummy cygpath; ac_word=$2
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 printf %s "checking for $ac_word... " >&6; }
2561 if test ${ac_cv_prog_CYGPATH+y}
2562 then :
2563 printf %s "(cached) " >&6
2564 else case e in #(
2565 e) if test -n "$CYGPATH"; then
2566 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571 IFS=$as_save_IFS
2572 case $as_dir in #(((
2573 '') as_dir=./ ;;
2574 */) ;;
2575 *) as_dir=$as_dir/ ;;
2576 esac
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_CYGPATH="cygpath -m"
2580 printf "%s\n" "$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 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2588 fi ;;
2589 esac
2590 fi
2591 CYGPATH=$ac_cv_prog_CYGPATH
2592 if test -n "$CYGPATH"; then
2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2594 printf "%s\n" "$CYGPATH" >&6; }
2595 else
2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 printf "%s\n" "no" >&6; }
2598 fi
2599
2600
2601 EXEEXT=".exe"
2602 TEA_PLATFORM="windows"
2603 ;;
2604 *CYGWIN_*)
2605 EXEEXT=".exe"
2606 # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
2607 ;;
2608 *)
2609 CYGPATH=echo
2610 # Maybe we are cross-compiling....
2611 case ${host_alias} in
2612 *mingw32*)
2613 EXEEXT=".exe"
2614 TEA_PLATFORM="windows"
2615 ;;
2616 *)
2617 EXEEXT=""
2618 TEA_PLATFORM="unix"
2619 ;;
2620 esac
2621 ;;
2622 esac
2623
2624 # Check if exec_prefix is set. If not use fall back to prefix.
2625 # Note when adjusted, so that TEA_PREFIX can correct for this.
2626 # This is needed for recursive configures, since autoconf propagates
2627 # $prefix, but not $exec_prefix (doh!).
2628 if test x$exec_prefix = xNONE ; then
2629 exec_prefix_default=yes
2630 exec_prefix=$prefix
2631 fi
2632
2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
2634 printf "%s\n" "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
2635
2636
2637
2638
2639 # This package name must be replaced statically for AC_SUBST to work
2640
2641
2642
2643
2644 # We AC_SUBST these here to ensure they are subst'ed,
2645 # in case the user doesn't call TEA_ADD_...
2646
2647
2648
2649
2650
2651
2652
2653
2654 # Configure the installer.
2655
2656 INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
2657 INSTALL_DATA_DIR='${INSTALL} -d -m 755'
2658 INSTALL_DATA='${INSTALL} -m 644'
2659 INSTALL_PROGRAM='${INSTALL} -m 755'
2660 INSTALL_SCRIPT='${INSTALL} -m 755'
2661
2662
2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
2664 printf %s "checking system version... " >&6; }
2665 if test ${tcl_cv_sys_version+y}
2666 then :
2667 printf %s "(cached) " >&6
2668 else case e in #(
2669 e)
2670 # TEA specific:
2671 if test "${TEA_PLATFORM}" = "windows" ; then
2672 tcl_cv_sys_version=windows
2673 else
2674 tcl_cv_sys_version=`uname -s`-`uname -r`
2675 if test "$?" -ne 0 ; then
2676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
2677 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
2678 tcl_cv_sys_version=unknown
2679 else
2680 if test "`uname -s`" = "AIX" ; then
2681 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
2682 fi
2683 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
2684 tcl_cv_sys_version=NetBSD-Debian
2685 fi
2686 fi
2687 fi
2688 ;;
2689 esac
2690 fi
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
2692 printf "%s\n" "$tcl_cv_sys_version" >&6; }
2693 system=$tcl_cv_sys_version
2694
2695 case $system in
2696 HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;;
2697 *) INSTALL_LIBRARY='${INSTALL} -m 644' ;;
2698 esac
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711 PHIMGTYPE="png"
2712 CPACKAGE="Tkimgpng"
2713 PACKAGE_TCLNAME="img::png"
2714
2715
2716
2717 #--------------------------------------------------------------------
2718 # Load the tclConfig.sh file
2719 # Load the tkConfig.sh file
2720 #--------------------------------------------------------------------
2721
2722
2723
2724 #
2725 # Ok, lets find the tcl configuration
2726 # First, look for one uninstalled.
2727 # the alternative search directory is invoked by --with-tcl
2728 #
2729
2730 if test x"${no_tcl}" = x ; then
2731 # we reset no_tcl in case something fails here
2732 no_tcl=true
2733
2734 # Check whether --with-tcl was given.
2735 if test ${with_tcl+y}
2736 then :
2737 withval=$with_tcl; with_tclconfig="${withval}"
2738 fi
2739
2740
2741 # Check whether --with-tcl8 was given.
2742 if test ${with_tcl8+y}
2743 then :
2744 withval=$with_tcl8; with_tcl8="${withval}"
2745 fi
2746
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2748 printf %s "checking for Tcl configuration... " >&6; }
2749 if test ${ac_cv_c_tclconfig+y}
2750 then :
2751 printf %s "(cached) " >&6
2752 else case e in #(
2753 e)
2754
2755 # First check to see if --with-tcl was specified.
2756 if test x"${with_tclconfig}" != x ; then
2757 case "${with_tclconfig}" in
2758 */tclConfig.sh )
2759 if test -f "${with_tclconfig}"; then
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
2761 printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2762 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2763 fi ;;
2764 esac
2765 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2766 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2767 else
2768 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2769 fi
2770 fi
2771
2772 # then check for a private Tcl installation
2773 if test x"${ac_cv_c_tclconfig}" = x ; then
2774 for i in \
2775 ../tcl \
2776 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2777 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2778 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2779 ../../tcl \
2780 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2781 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2782 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2783 ../../../tcl \
2784 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2785 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2786 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2787 if test "${TEA_PLATFORM}" = "windows" \
2788 -a -f "$i/win/tclConfig.sh" ; then
2789 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2790 break
2791 fi
2792 if test -f "$i/unix/tclConfig.sh" ; then
2793 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2794 break
2795 fi
2796 done
2797 fi
2798
2799 # on Darwin, check in Framework installation locations
2800 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2801 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2802 `ls -d /Library/Frameworks 2>/dev/null` \
2803 `ls -d /Network/Library/Frameworks 2>/dev/null` \
2804 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
2805 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
2806 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
2807 ; do
2808 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2809 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2810 break
2811 fi
2812 done
2813 fi
2814
2815 # TEA specific: on Windows, check in common installation locations
2816 if test "${TEA_PLATFORM}" = "windows" \
2817 -a x"${ac_cv_c_tclconfig}" = x ; then
2818 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2819 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2820 ; do
2821 if test -f "$i/tclConfig.sh" ; then
2822 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2823 break
2824 fi
2825 done
2826 fi
2827
2828 # check in a few common install locations
2829 if test x"${ac_cv_c_tclconfig}" = x ; then
2830 for i in `ls -d ${libdir} 2>/dev/null` \
2831 `ls -d ${exec_prefix}/lib 2>/dev/null` \
2832 `ls -d ${prefix}/lib 2>/dev/null` \
2833 `ls -d /usr/local/lib 2>/dev/null` \
2834 `ls -d /usr/contrib/lib 2>/dev/null` \
2835 `ls -d /usr/pkg/lib 2>/dev/null` \
2836 `ls -d /usr/lib 2>/dev/null` \
2837 `ls -d /usr/lib64 2>/dev/null` \
2838 `ls -d /usr/lib/tcl9.0 2>/dev/null` \
2839 `ls -d /usr/lib/tcl8.7 2>/dev/null` \
2840 `ls -d /usr/lib/tcl8.6 2>/dev/null` \
2841 `ls -d /usr/lib/tcl8.5 2>/dev/null` \
2842 `ls -d /usr/local/lib/tcl9.0 2>/dev/null` \
2843 `ls -d /usr/local/lib/tcl8.7 2>/dev/null` \
2844 `ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
2845 `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
2846 `ls -d /usr/local/lib/tcl/tcl9.0 2>/dev/null` \
2847 `ls -d /usr/local/lib/tcl/tcl8.7 2>/dev/null` \
2848 `ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
2849 `ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \
2850 ; do
2851 if test -f "$i/tclConfig.sh" ; then
2852 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2853 break
2854 fi
2855 done
2856 fi
2857
2858 # check in a few other private locations
2859 if test x"${ac_cv_c_tclconfig}" = x ; then
2860 for i in \
2861 ${srcdir}/../tcl \
2862 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2863 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2864 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2865 if test "${TEA_PLATFORM}" = "windows" \
2866 -a -f "$i/win/tclConfig.sh" ; then
2867 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2868 break
2869 fi
2870 if test -f "$i/unix/tclConfig.sh" ; then
2871 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2872 break
2873 fi
2874 done
2875 fi
2876 ;;
2877 esac
2878 fi
2879
2880
2881 if test x"${ac_cv_c_tclconfig}" = x ; then
2882 TCL_BIN_DIR="# no Tcl configs found"
2883 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2884 else
2885 no_tcl=
2886 TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2888 printf "%s\n" "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2889 fi
2890 fi
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901 ac_ext=c
2902 ac_cpp='$CPP $CPPFLAGS'
2903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906 if test -n "$ac_tool_prefix"; then
2907 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2908 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 printf %s "checking for $ac_word... " >&6; }
2911 if test ${ac_cv_prog_CC+y}
2912 then :
2913 printf %s "(cached) " >&6
2914 else case e in #(
2915 e) if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921 IFS=$as_save_IFS
2922 case $as_dir in #(((
2923 '') as_dir=./ ;;
2924 */) ;;
2925 *) as_dir=$as_dir/ ;;
2926 esac
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi ;;
2938 esac
2939 fi
2940 CC=$ac_cv_prog_CC
2941 if test -n "$CC"; then
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943 printf "%s\n" "$CC" >&6; }
2944 else
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 printf "%s\n" "no" >&6; }
2947 fi
2948
2949
2950 fi
2951 if test -z "$ac_cv_prog_CC"; then
2952 ac_ct_CC=$CC
2953 # Extract the first word of "gcc", so it can be a program name with args.
2954 set dummy gcc; ac_word=$2
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 printf %s "checking for $ac_word... " >&6; }
2957 if test ${ac_cv_prog_ac_ct_CC+y}
2958 then :
2959 printf %s "(cached) " >&6
2960 else case e in #(
2961 e) if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 case $as_dir in #(((
2969 '') as_dir=./ ;;
2970 */) ;;
2971 *) as_dir=$as_dir/ ;;
2972 esac
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_ac_ct_CC="gcc"
2976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi ;;
2984 esac
2985 fi
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2989 printf "%s\n" "$ac_ct_CC" >&6; }
2990 else
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 printf "%s\n" "no" >&6; }
2993 fi
2994
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 CC=$ac_ct_CC
3005 fi
3006 else
3007 CC="$ac_cv_prog_CC"
3008 fi
3009
3010 if test -z "$CC"; then
3011 if test -n "$ac_tool_prefix"; then
3012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3013 set dummy ${ac_tool_prefix}cc; ac_word=$2
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 printf %s "checking for $ac_word... " >&6; }
3016 if test ${ac_cv_prog_CC+y}
3017 then :
3018 printf %s "(cached) " >&6
3019 else case e in #(
3020 e) if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026 IFS=$as_save_IFS
3027 case $as_dir in #(((
3028 '') as_dir=./ ;;
3029 */) ;;
3030 *) as_dir=$as_dir/ ;;
3031 esac
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_CC="${ac_tool_prefix}cc"
3035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038 done
3039 done
3040 IFS=$as_save_IFS
3041
3042 fi ;;
3043 esac
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3048 printf "%s\n" "$CC" >&6; }
3049 else
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 printf "%s\n" "no" >&6; }
3052 fi
3053
3054
3055 fi
3056 fi
3057 if test -z "$CC"; then
3058 # Extract the first word of "cc", so it can be a program name with args.
3059 set dummy cc; ac_word=$2
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 printf %s "checking for $ac_word... " >&6; }
3062 if test ${ac_cv_prog_CC+y}
3063 then :
3064 printf %s "(cached) " >&6
3065 else case e in #(
3066 e) if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 ac_prog_rejected=no
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 case $as_dir in #(((
3075 '') as_dir=./ ;;
3076 */) ;;
3077 *) as_dir=$as_dir/ ;;
3078 esac
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3081 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3082 ac_prog_rejected=yes
3083 continue
3084 fi
3085 ac_cv_prog_CC="cc"
3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 if test $ac_prog_rejected = yes; then
3094 # We found a bogon in the path, so make sure we never use it.
3095 set dummy $ac_cv_prog_CC
3096 shift
3097 if test $# != 0; then
3098 # We chose a different compiler from the bogus one.
3099 # However, it has the same basename, so the bogon will be chosen
3100 # first if we set CC to just the basename; use the full file name.
3101 shift
3102 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3103 fi
3104 fi
3105 fi ;;
3106 esac
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 printf "%s\n" "$CC" >&6; }
3112 else
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 printf "%s\n" "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 for ac_prog in cl.exe
3122 do
3123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 printf %s "checking for $ac_word... " >&6; }
3127 if test ${ac_cv_prog_CC+y}
3128 then :
3129 printf %s "(cached) " >&6
3130 else case e in #(
3131 e) if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137 IFS=$as_save_IFS
3138 case $as_dir in #(((
3139 '') as_dir=./ ;;
3140 */) ;;
3141 *) as_dir=$as_dir/ ;;
3142 esac
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149 done
3150 done
3151 IFS=$as_save_IFS
3152
3153 fi ;;
3154 esac
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 printf "%s\n" "$CC" >&6; }
3160 else
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 printf "%s\n" "no" >&6; }
3163 fi
3164
3165
3166 test -n "$CC" && break
3167 done
3168 fi
3169 if test -z "$CC"; then
3170 ac_ct_CC=$CC
3171 for ac_prog in cl.exe
3172 do
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 printf %s "checking for $ac_word... " >&6; }
3177 if test ${ac_cv_prog_ac_ct_CC+y}
3178 then :
3179 printf %s "(cached) " >&6
3180 else case e in #(
3181 e) if test -n "$ac_ct_CC"; then
3182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 case $as_dir in #(((
3189 '') as_dir=./ ;;
3190 */) ;;
3191 *) as_dir=$as_dir/ ;;
3192 esac
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_ac_ct_CC="$ac_prog"
3196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3197 break 2
3198 fi
3199 done
3200 done
3201 IFS=$as_save_IFS
3202
3203 fi ;;
3204 esac
3205 fi
3206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207 if test -n "$ac_ct_CC"; then
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3209 printf "%s\n" "$ac_ct_CC" >&6; }
3210 else
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 printf "%s\n" "no" >&6; }
3213 fi
3214
3215
3216 test -n "$ac_ct_CC" && break
3217 done
3218
3219 if test "x$ac_ct_CC" = x; then
3220 CC=""
3221 else
3222 case $cross_compiling:$ac_tool_warned in
3223 yes:)
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3225 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3226 ac_tool_warned=yes ;;
3227 esac
3228 CC=$ac_ct_CC
3229 fi
3230 fi
3231
3232 fi
3233 if test -z "$CC"; then
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}clang; ac_word=$2
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 printf %s "checking for $ac_word... " >&6; }
3239 if test ${ac_cv_prog_CC+y}
3240 then :
3241 printf %s "(cached) " >&6
3242 else case e in #(
3243 e) if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 case $as_dir in #(((
3251 '') as_dir=./ ;;
3252 */) ;;
3253 *) as_dir=$as_dir/ ;;
3254 esac
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_CC="${ac_tool_prefix}clang"
3258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261 done
3262 done
3263 IFS=$as_save_IFS
3264
3265 fi ;;
3266 esac
3267 fi
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 printf "%s\n" "$CC" >&6; }
3272 else
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 printf "%s\n" "no" >&6; }
3275 fi
3276
3277
3278 fi
3279 if test -z "$ac_cv_prog_CC"; then
3280 ac_ct_CC=$CC
3281 # Extract the first word of "clang", so it can be a program name with args.
3282 set dummy clang; ac_word=$2
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 printf %s "checking for $ac_word... " >&6; }
3285 if test ${ac_cv_prog_ac_ct_CC+y}
3286 then :
3287 printf %s "(cached) " >&6
3288 else case e in #(
3289 e) if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295 IFS=$as_save_IFS
3296 case $as_dir in #(((
3297 '') as_dir=./ ;;
3298 */) ;;
3299 *) as_dir=$as_dir/ ;;
3300 esac
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3303 ac_cv_prog_ac_ct_CC="clang"
3304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi ;;
3312 esac
3313 fi
3314 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315 if test -n "$ac_ct_CC"; then
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3317 printf "%s\n" "$ac_ct_CC" >&6; }
3318 else
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 printf "%s\n" "no" >&6; }
3321 fi
3322
3323 if test "x$ac_ct_CC" = x; then
3324 CC=""
3325 else
3326 case $cross_compiling:$ac_tool_warned in
3327 yes:)
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3329 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3330 ac_tool_warned=yes ;;
3331 esac
3332 CC=$ac_ct_CC
3333 fi
3334 else
3335 CC="$ac_cv_prog_CC"
3336 fi
3337
3338 fi
3339
3340
3341 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3342 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3343 as_fn_error $? "no acceptable C compiler found in \$PATH
3344 See 'config.log' for more details" "$LINENO" 5; }
3345
3346 # Provide some information about the compiler.
3347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3348 set X $ac_compile
3349 ac_compiler=$2
3350 for ac_option in --version -v -V -qversion -version; do
3351 { { ac_try="$ac_compiler $ac_option >&5"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 printf "%s\n" "$ac_try_echo"; } >&5
3358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3359 ac_status=$?
3360 if test -s conftest.err; then
3361 sed '10a\
3362 ... rest of stderr output deleted ...
3363 10q' conftest.err >conftest.er1
3364 cat conftest.er1 >&5
3365 fi
3366 rm -f conftest.er1 conftest.err
3367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }
3369 done
3370
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373
3374 int
3375 main (void)
3376 {
3377
3378 ;
3379 return 0;
3380 }
3381 _ACEOF
3382 ac_clean_files_save=$ac_clean_files
3383 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3384 # Try to create an executable without -o first, disregard a.out.
3385 # It will help us diagnose broken compilers, and finding out an intuition
3386 # of exeext.
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3388 printf %s "checking whether the C compiler works... " >&6; }
3389 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3390
3391 # The possible output files:
3392 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3393
3394 ac_rmfiles=
3395 for ac_file in $ac_files
3396 do
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3400 esac
3401 done
3402 rm -f $ac_rmfiles
3403
3404 if { { ac_try="$ac_link_default"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 printf "%s\n" "$ac_try_echo"; } >&5
3411 (eval "$ac_link_default") 2>&5
3412 ac_status=$?
3413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414 test $ac_status = 0; }
3415 then :
3416 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3417 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3418 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3419 # so that the user can short-circuit this test for compilers unknown to
3420 # Autoconf.
3421 for ac_file in $ac_files ''
3422 do
3423 test -f "$ac_file" || continue
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3426 ;;
3427 [ab].out )
3428 # We found the default executable, but exeext='' is most
3429 # certainly right.
3430 break;;
3431 *.* )
3432 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3433 then :; else
3434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435 fi
3436 # We set ac_cv_exeext here because the later test for it is not
3437 # safe: cross compilers may not add the suffix if given an '-o'
3438 # argument, so we may need to know it at that point already.
3439 # Even if this section looks crufty: it has the advantage of
3440 # actually working.
3441 break;;
3442 * )
3443 break;;
3444 esac
3445 done
3446 test "$ac_cv_exeext" = no && ac_cv_exeext=
3447
3448 else case e in #(
3449 e) ac_file='' ;;
3450 esac
3451 fi
3452 if test -z "$ac_file"
3453 then :
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 printf "%s\n" "no" >&6; }
3456 printf "%s\n" "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3460 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3461 as_fn_error 77 "C compiler cannot create executables
3462 See 'config.log' for more details" "$LINENO" 5; }
3463 else case e in #(
3464 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3465 printf "%s\n" "yes" >&6; } ;;
3466 esac
3467 fi
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3469 printf %s "checking for C compiler default output file name... " >&6; }
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3471 printf "%s\n" "$ac_file" >&6; }
3472 ac_exeext=$ac_cv_exeext
3473
3474 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3475 ac_clean_files=$ac_clean_files_save
3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3477 printf %s "checking for suffix of executables... " >&6; }
3478 if { { ac_try="$ac_link"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 printf "%s\n" "$ac_try_echo"; } >&5
3485 (eval "$ac_link") 2>&5
3486 ac_status=$?
3487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }
3489 then :
3490 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3491 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3492 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3493 # 'rm'.
3494 for ac_file in conftest.exe conftest conftest.*; do
3495 test -f "$ac_file" || continue
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499 break;;
3500 * ) break;;
3501 esac
3502 done
3503 else case e in #(
3504 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3505 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3506 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3507 See 'config.log' for more details" "$LINENO" 5; } ;;
3508 esac
3509 fi
3510 rm -f conftest conftest$ac_cv_exeext
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3512 printf "%s\n" "$ac_cv_exeext" >&6; }
3513
3514 rm -f conftest.$ac_ext
3515 EXEEXT=$ac_cv_exeext
3516 ac_exeext=$EXEEXT
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519 #include <stdio.h>
3520 int
3521 main (void)
3522 {
3523 FILE *f = fopen ("conftest.out", "w");
3524 if (!f)
3525 return 1;
3526 return ferror (f) || fclose (f) != 0;
3527
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 ac_clean_files="$ac_clean_files conftest.out"
3533 # Check that the compiler produces executables we can run. If not, either
3534 # the compiler is broken, or we cross compile.
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3536 printf %s "checking whether we are cross compiling... " >&6; }
3537 if test "$cross_compiling" != yes; then
3538 { { ac_try="$ac_link"
3539 case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 printf "%s\n" "$ac_try_echo"; } >&5
3545 (eval "$ac_link") 2>&5
3546 ac_status=$?
3547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }
3549 if { ac_try='./conftest$ac_cv_exeext'
3550 { { case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 printf "%s\n" "$ac_try_echo"; } >&5
3556 (eval "$ac_try") 2>&5
3557 ac_status=$?
3558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }; }; then
3560 cross_compiling=no
3561 else
3562 if test "$cross_compiling" = maybe; then
3563 cross_compiling=yes
3564 else
3565 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3566 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3567 as_fn_error 77 "cannot run C compiled programs.
3568 If you meant to cross compile, use '--host'.
3569 See 'config.log' for more details" "$LINENO" 5; }
3570 fi
3571 fi
3572 fi
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3574 printf "%s\n" "$cross_compiling" >&6; }
3575
3576 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3577 conftest.o conftest.obj conftest.out
3578 ac_clean_files=$ac_clean_files_save
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3580 printf %s "checking for suffix of object files... " >&6; }
3581 if test ${ac_cv_objext+y}
3582 then :
3583 printf %s "(cached) " >&6
3584 else case e in #(
3585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587
3588 int
3589 main (void)
3590 {
3591
3592 ;
3593 return 0;
3594 }
3595 _ACEOF
3596 rm -f conftest.o conftest.obj
3597 if { { ac_try="$ac_compile"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 printf "%s\n" "$ac_try_echo"; } >&5
3604 (eval "$ac_compile") 2>&5
3605 ac_status=$?
3606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }
3608 then :
3609 for ac_file in conftest.o conftest.obj conftest.*; do
3610 test -f "$ac_file" || continue;
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3613 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3614 break;;
3615 esac
3616 done
3617 else case e in #(
3618 e) printf "%s\n" "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3622 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3623 as_fn_error $? "cannot compute suffix of object files: cannot compile
3624 See 'config.log' for more details" "$LINENO" 5; } ;;
3625 esac
3626 fi
3627 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3628 esac
3629 fi
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3631 printf "%s\n" "$ac_cv_objext" >&6; }
3632 OBJEXT=$ac_cv_objext
3633 ac_objext=$OBJEXT
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3635 printf %s "checking whether the compiler supports GNU C... " >&6; }
3636 if test ${ac_cv_c_compiler_gnu+y}
3637 then :
3638 printf %s "(cached) " >&6
3639 else case e in #(
3640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3642
3643 int
3644 main (void)
3645 {
3646 #ifndef __GNUC__
3647 choke me
3648 #endif
3649
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 if ac_fn_c_try_compile "$LINENO"
3655 then :
3656 ac_compiler_gnu=yes
3657 else case e in #(
3658 e) ac_compiler_gnu=no ;;
3659 esac
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3662 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3663 ;;
3664 esac
3665 fi
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3667 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
3670 if test $ac_compiler_gnu = yes; then
3671 GCC=yes
3672 else
3673 GCC=
3674 fi
3675 ac_test_CFLAGS=${CFLAGS+y}
3676 ac_save_CFLAGS=$CFLAGS
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3678 printf %s "checking whether $CC accepts -g... " >&6; }
3679 if test ${ac_cv_prog_cc_g+y}
3680 then :
3681 printf %s "(cached) " >&6
3682 else case e in #(
3683 e) ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3685 ac_cv_prog_cc_g=no
3686 CFLAGS="-g"
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689
3690 int
3691 main (void)
3692 {
3693
3694 ;
3695 return 0;
3696 }
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"
3699 then :
3700 ac_cv_prog_cc_g=yes
3701 else case e in #(
3702 e) CFLAGS=""
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705
3706 int
3707 main (void)
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"
3715 then :
3716
3717 else case e in #(
3718 e) ac_c_werror_flag=$ac_save_c_werror_flag
3719 CFLAGS="-g"
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 int
3724 main (void)
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"
3732 then :
3733 ac_cv_prog_cc_g=yes
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3736 esac
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3739 esac
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3742 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3743 esac
3744 fi
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3747 if test $ac_test_CFLAGS; then
3748 CFLAGS=$ac_save_CFLAGS
3749 elif test $ac_cv_prog_cc_g = yes; then
3750 if test "$GCC" = yes; then
3751 CFLAGS="-g -O2"
3752 else
3753 CFLAGS="-g"
3754 fi
3755 else
3756 if test "$GCC" = yes; then
3757 CFLAGS="-O2"
3758 else
3759 CFLAGS=
3760 fi
3761 fi
3762 ac_prog_cc_stdc=no
3763 if test x$ac_prog_cc_stdc = xno
3764 then :
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3766 printf %s "checking for $CC option to enable C11 features... " >&6; }
3767 if test ${ac_cv_prog_cc_c11+y}
3768 then :
3769 printf %s "(cached) " >&6
3770 else case e in #(
3771 e) ac_cv_prog_cc_c11=no
3772 ac_save_CC=$CC
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775 $ac_c_conftest_c11_program
3776 _ACEOF
3777 for ac_arg in '' -std=gnu11
3778 do
3779 CC="$ac_save_CC $ac_arg"
3780 if ac_fn_c_try_compile "$LINENO"
3781 then :
3782 ac_cv_prog_cc_c11=$ac_arg
3783 fi
3784 rm -f core conftest.err conftest.$ac_objext conftest.beam
3785 test "x$ac_cv_prog_cc_c11" != "xno" && break
3786 done
3787 rm -f conftest.$ac_ext
3788 CC=$ac_save_CC ;;
3789 esac
3790 fi
3791
3792 if test "x$ac_cv_prog_cc_c11" = xno
3793 then :
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3795 printf "%s\n" "unsupported" >&6; }
3796 else case e in #(
3797 e) if test "x$ac_cv_prog_cc_c11" = x
3798 then :
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3800 printf "%s\n" "none needed" >&6; }
3801 else case e in #(
3802 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3803 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3804 CC="$CC $ac_cv_prog_cc_c11" ;;
3805 esac
3806 fi
3807 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3808 ac_prog_cc_stdc=c11 ;;
3809 esac
3810 fi
3811 fi
3812 if test x$ac_prog_cc_stdc = xno
3813 then :
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3815 printf %s "checking for $CC option to enable C99 features... " >&6; }
3816 if test ${ac_cv_prog_cc_c99+y}
3817 then :
3818 printf %s "(cached) " >&6
3819 else case e in #(
3820 e) ac_cv_prog_cc_c99=no
3821 ac_save_CC=$CC
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 $ac_c_conftest_c99_program
3825 _ACEOF
3826 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3827 do
3828 CC="$ac_save_CC $ac_arg"
3829 if ac_fn_c_try_compile "$LINENO"
3830 then :
3831 ac_cv_prog_cc_c99=$ac_arg
3832 fi
3833 rm -f core conftest.err conftest.$ac_objext conftest.beam
3834 test "x$ac_cv_prog_cc_c99" != "xno" && break
3835 done
3836 rm -f conftest.$ac_ext
3837 CC=$ac_save_CC ;;
3838 esac
3839 fi
3840
3841 if test "x$ac_cv_prog_cc_c99" = xno
3842 then :
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3844 printf "%s\n" "unsupported" >&6; }
3845 else case e in #(
3846 e) if test "x$ac_cv_prog_cc_c99" = x
3847 then :
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3849 printf "%s\n" "none needed" >&6; }
3850 else case e in #(
3851 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3852 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3853 CC="$CC $ac_cv_prog_cc_c99" ;;
3854 esac
3855 fi
3856 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3857 ac_prog_cc_stdc=c99 ;;
3858 esac
3859 fi
3860 fi
3861 if test x$ac_prog_cc_stdc = xno
3862 then :
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3864 printf %s "checking for $CC option to enable C89 features... " >&6; }
3865 if test ${ac_cv_prog_cc_c89+y}
3866 then :
3867 printf %s "(cached) " >&6
3868 else case e in #(
3869 e) ac_cv_prog_cc_c89=no
3870 ac_save_CC=$CC
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 $ac_c_conftest_c89_program
3874 _ACEOF
3875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3876 do
3877 CC="$ac_save_CC $ac_arg"
3878 if ac_fn_c_try_compile "$LINENO"
3879 then :
3880 ac_cv_prog_cc_c89=$ac_arg
3881 fi
3882 rm -f core conftest.err conftest.$ac_objext conftest.beam
3883 test "x$ac_cv_prog_cc_c89" != "xno" && break
3884 done
3885 rm -f conftest.$ac_ext
3886 CC=$ac_save_CC ;;
3887 esac
3888 fi
3889
3890 if test "x$ac_cv_prog_cc_c89" = xno
3891 then :
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3893 printf "%s\n" "unsupported" >&6; }
3894 else case e in #(
3895 e) if test "x$ac_cv_prog_cc_c89" = x
3896 then :
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3898 printf "%s\n" "none needed" >&6; }
3899 else case e in #(
3900 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3901 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3902 CC="$CC $ac_cv_prog_cc_c89" ;;
3903 esac
3904 fi
3905 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3906 ac_prog_cc_stdc=c89 ;;
3907 esac
3908 fi
3909 fi
3910
3911 ac_ext=c
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917
3918
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
3920 printf %s "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
3921
3922 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
3924 printf "%s\n" "loading" >&6; }
3925 . "${TCL_BIN_DIR}/tclConfig.sh"
3926 else
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
3928 printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
3929 fi
3930
3931 # If the TCL_BIN_DIR is the build directory (not the install directory),
3932 # then set the common variable name to the value of the build variables.
3933 # For example, the variable TCL_LIB_SPEC will be set to the value
3934 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
3935 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
3936 # installed and uninstalled version of Tcl.
3937 if test -f "${TCL_BIN_DIR}/Makefile" ; then
3938 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
3939 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
3940 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
3941 elif test "`uname -s`" = "Darwin"; then
3942 # If Tcl was built as a framework, attempt to use the libraries
3943 # from the framework at the given location so that linking works
3944 # against Tcl.framework installed in an arbitrary location.
3945 case ${TCL_DEFS} in
3946 *TCL_FRAMEWORK*)
3947 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
3948 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
3949 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
3950 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
3951 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
3952 break
3953 fi
3954 done
3955 fi
3956 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
3957 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
3958 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
3959 fi
3960 ;;
3961 esac
3962 fi
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
3978 printf %s "checking platform... " >&6; }
3979 hold_cc=$CC; CC="$TCL_CC"
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982
3983 int
3984 main (void)
3985 {
3986
3987 #ifdef _WIN32
3988 #error win32
3989 #endif
3990
3991 ;
3992 return 0;
3993 }
3994 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"
3996 then :
3997
3998 # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
3999 TEA_PLATFORM="${TEA_PLATFORM-unix}"
4000 CYGPATH=echo
4001
4002 else case e in #(
4003 e)
4004 TEA_PLATFORM="windows"
4005 # Extract the first word of "cygpath", so it can be a program name with args.
4006 set dummy cygpath; ac_word=$2
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 printf %s "checking for $ac_word... " >&6; }
4009 if test ${ac_cv_prog_CYGPATH+y}
4010 then :
4011 printf %s "(cached) " >&6
4012 else case e in #(
4013 e) if test -n "$CYGPATH"; then
4014 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019 IFS=$as_save_IFS
4020 case $as_dir in #(((
4021 '') as_dir=./ ;;
4022 */) ;;
4023 *) as_dir=$as_dir/ ;;
4024 esac
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4027 ac_cv_prog_CYGPATH="cygpath -m"
4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031 done
4032 done
4033 IFS=$as_save_IFS
4034
4035 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
4036 fi ;;
4037 esac
4038 fi
4039 CYGPATH=$ac_cv_prog_CYGPATH
4040 if test -n "$CYGPATH"; then
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
4042 printf "%s\n" "$CYGPATH" >&6; }
4043 else
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 printf "%s\n" "no" >&6; }
4046 fi
4047
4048
4049 ;;
4050 esac
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4053 CC=$hold_cc
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
4055 printf "%s\n" "$TEA_PLATFORM" >&6; }
4056
4057 # The BUILD_$pkg is to define the correct extern storage class
4058 # handling when making this package
4059
4060 printf "%s\n" "#define BUILD_${PACKAGE_NAME} /**/" >>confdefs.h
4061
4062 # Do this here as we have fully defined TEA_PLATFORM now
4063 if test "${TEA_PLATFORM}" = "windows" ; then
4064 EXEEXT=".exe"
4065 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
4066 fi
4067
4068 # TEA specific:
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078 #
4079 # Ok, lets find the tk configuration
4080 # First, look for one uninstalled.
4081 # the alternative search directory is invoked by --with-tk
4082 #
4083
4084 if test x"${no_tk}" = x ; then
4085 # we reset no_tk in case something fails here
4086 no_tk=true
4087
4088 # Check whether --with-tk was given.
4089 if test ${with_tk+y}
4090 then :
4091 withval=$with_tk; with_tkconfig="${withval}"
4092 fi
4093
4094
4095 # Check whether --with-tk8 was given.
4096 if test ${with_tk8+y}
4097 then :
4098 withval=$with_tk8; with_tk8="${withval}"
4099 fi
4100
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
4102 printf %s "checking for Tk configuration... " >&6; }
4103 if test ${ac_cv_c_tkconfig+y}
4104 then :
4105 printf %s "(cached) " >&6
4106 else case e in #(
4107 e)
4108
4109 # First check to see if --with-tkconfig was specified.
4110 if test x"${with_tkconfig}" != x ; then
4111 case "${with_tkconfig}" in
4112 */tkConfig.sh )
4113 if test -f "${with_tkconfig}"; then
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&5
4115 printf "%s\n" "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;}
4116 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`"
4117 fi ;;
4118 esac
4119 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4120 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`"
4121 else
4122 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
4123 fi
4124 fi
4125
4126 # then check for a private Tk library
4127 if test x"${ac_cv_c_tkconfig}" = x ; then
4128 for i in \
4129 ../tk \
4130 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4131 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
4132 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
4133 ../../tk \
4134 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4135 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
4136 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
4137 ../../../tk \
4138 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4139 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
4140 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
4141 if test "${TEA_PLATFORM}" = "windows" \
4142 -a -f "$i/win/tkConfig.sh" ; then
4143 ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
4144 break
4145 fi
4146 if test -f "$i/unix/tkConfig.sh" ; then
4147 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
4148 break
4149 fi
4150 done
4151 fi
4152
4153 # on Darwin, check in Framework installation locations
4154 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
4155 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4156 `ls -d /Library/Frameworks 2>/dev/null` \
4157 `ls -d /Network/Library/Frameworks 2>/dev/null` \
4158 ; do
4159 if test -f "$i/Tk.framework/tkConfig.sh" ; then
4160 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`"
4161 break
4162 fi
4163 done
4164 fi
4165
4166 # check in a few common install locations
4167 if test x"${ac_cv_c_tkconfig}" = x ; then
4168 for i in `ls -d ${libdir} 2>/dev/null` \
4169 `ls -d ${exec_prefix}/lib 2>/dev/null` \
4170 `ls -d ${prefix}/lib 2>/dev/null` \
4171 `ls -d /usr/local/lib 2>/dev/null` \
4172 `ls -d /usr/contrib/lib 2>/dev/null` \
4173 `ls -d /usr/pkg/lib 2>/dev/null` \
4174 `ls -d /usr/lib/tk9.0 2>/dev/null` \
4175 `ls -d /usr/lib/tk8.7 2>/dev/null` \
4176 `ls -d /usr/lib/tk8.6 2>/dev/null` \
4177 `ls -d /usr/lib/tk8.5 2>/dev/null` \
4178 `ls -d /usr/lib 2>/dev/null` \
4179 `ls -d /usr/lib64 2>/dev/null` \
4180 `ls -d /usr/local/lib/tk9.0 2>/dev/null` \
4181 `ls -d /usr/local/lib/tk8.7 2>/dev/null` \
4182 `ls -d /usr/local/lib/tk8.6 2>/dev/null` \
4183 `ls -d /usr/local/lib/tk8.5 2>/dev/null` \
4184 `ls -d /usr/local/lib/tcl/tk9.0 2>/dev/null` \
4185 `ls -d /usr/local/lib/tcl/tk8.7 2>/dev/null` \
4186 `ls -d /usr/local/lib/tcl/tk8.6 2>/dev/null` \
4187 `ls -d /usr/local/lib/tcl/tk8.5 2>/dev/null` \
4188 ; do
4189 if test -f "$i/tkConfig.sh" ; then
4190 ac_cv_c_tkconfig="`(cd $i; pwd)`"
4191 break
4192 fi
4193 done
4194 fi
4195
4196 # TEA specific: on Windows, check in common installation locations
4197 if test "${TEA_PLATFORM}" = "windows" \
4198 -a x"${ac_cv_c_tkconfig}" = x ; then
4199 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
4200 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
4201 ; do
4202 if test -f "$i/tkConfig.sh" ; then
4203 ac_cv_c_tkconfig="`(cd $i; pwd)`"
4204 break
4205 fi
4206 done
4207 fi
4208
4209 # check in a few other private locations
4210 if test x"${ac_cv_c_tkconfig}" = x ; then
4211 for i in \
4212 ${srcdir}/../tk \
4213 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4214 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
4215 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
4216 if test "${TEA_PLATFORM}" = "windows" \
4217 -a -f "$i/win/tkConfig.sh" ; then
4218 ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
4219 break
4220 fi
4221 if test -f "$i/unix/tkConfig.sh" ; then
4222 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
4223 break
4224 fi
4225 done
4226 fi
4227 ;;
4228 esac
4229 fi
4230
4231
4232 if test x"${ac_cv_c_tkconfig}" = x ; then
4233 TK_BIN_DIR="# no Tk configs found"
4234 as_fn_error $? "Can't find Tk configuration definitions. Use --with-tk to specify a directory containing tkConfig.sh" "$LINENO" 5
4235 else
4236 no_tk=
4237 TK_BIN_DIR="${ac_cv_c_tkconfig}"
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
4239 printf "%s\n" "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4240 fi
4241 fi
4242
4243
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
4245 printf %s "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
4246
4247 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4249 printf "%s\n" "loading" >&6; }
4250 . "${TK_BIN_DIR}/tkConfig.sh"
4251 else
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
4253 printf "%s\n" "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4254 fi
4255
4256 # If the TK_BIN_DIR is the build directory (not the install directory),
4257 # then set the common variable name to the value of the build variables.
4258 # For example, the variable TK_LIB_SPEC will be set to the value
4259 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
4260 # instead of TK_BUILD_LIB_SPEC since it will work with both an
4261 # installed and uninstalled version of Tcl.
4262 if test -f "${TK_BIN_DIR}/Makefile" ; then
4263 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}"
4264 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}"
4265 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}"
4266 elif test "`uname -s`" = "Darwin"; then
4267 # If Tk was built as a framework, attempt to use the libraries
4268 # from the framework at the given location so that linking works
4269 # against Tk.framework installed in an arbitrary location.
4270 case ${TK_DEFS} in
4271 *TK_FRAMEWORK*)
4272 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
4273 for i in "`cd "${TK_BIN_DIR}"; pwd`" \
4274 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do
4275 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
4276 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}"
4277 break
4278 fi
4279 done
4280 fi
4281 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
4282 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
4283 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
4284 fi
4285 ;;
4286 esac
4287 fi
4288
4289 # TEA specific: Ensure windowingsystem is defined
4290 if test "${TEA_PLATFORM}" = "unix" ; then
4291 case ${TK_DEFS} in
4292 *MAC_OSX_TK*)
4293
4294 printf "%s\n" "#define MAC_OSX_TK 1" >>confdefs.h
4295
4296 TEA_WINDOWINGSYSTEM="aqua"
4297 ;;
4298 *)
4299 TEA_WINDOWINGSYSTEM="x11"
4300 ;;
4301 esac
4302 elif test "${TEA_PLATFORM}" = "windows" ; then
4303 TEA_WINDOWINGSYSTEM="win32"
4304 fi
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318 # TEA specific:
4319
4320
4321
4322
4323 #-----------------------------------------------------------------------
4324 # Handle the --prefix=... option by defaulting to what Tcl gave.
4325 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
4326 #-----------------------------------------------------------------------
4327
4328
4329 if test "${prefix}" = "NONE"; then
4330 prefix_default=yes
4331 if test x"${TCL_PREFIX}" != x; then
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
4333 printf "%s\n" "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
4334 prefix=${TCL_PREFIX}
4335 else
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
4337 printf "%s\n" "$as_me: --prefix defaulting to /usr/local" >&6;}
4338 prefix=/usr/local
4339 fi
4340 fi
4341 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
4342 -o x"${exec_prefix_default}" = x"yes" ; then
4343 if test x"${TCL_EXEC_PREFIX}" != x; then
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
4345 printf "%s\n" "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
4346 exec_prefix=${TCL_EXEC_PREFIX}
4347 else
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
4349 printf "%s\n" "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
4350 exec_prefix=$prefix
4351 fi
4352 fi
4353
4354
4355 #-----------------------------------------------------------------------
4356 # Standard compiler checks.
4357 # This sets up CC by using the CC env var, or looks for gcc otherwise.
4358 # This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
4359 # the basic setup necessary to compile executables.
4360 #-----------------------------------------------------------------------
4361
4362
4363 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
4364 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
4365
4366 ac_ext=c
4367 ac_cpp='$CPP $CPPFLAGS'
4368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 if test -n "$ac_tool_prefix"; then
4372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4373 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 printf %s "checking for $ac_word... " >&6; }
4376 if test ${ac_cv_prog_CC+y}
4377 then :
4378 printf %s "(cached) " >&6
4379 else case e in #(
4380 e) if test -n "$CC"; then
4381 ac_cv_prog_CC="$CC" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386 IFS=$as_save_IFS
4387 case $as_dir in #(((
4388 '') as_dir=./ ;;
4389 */) ;;
4390 *) as_dir=$as_dir/ ;;
4391 esac
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398 done
4399 done
4400 IFS=$as_save_IFS
4401
4402 fi ;;
4403 esac
4404 fi
4405 CC=$ac_cv_prog_CC
4406 if test -n "$CC"; then
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4408 printf "%s\n" "$CC" >&6; }
4409 else
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 printf "%s\n" "no" >&6; }
4412 fi
4413
4414
4415 fi
4416 if test -z "$ac_cv_prog_CC"; then
4417 ac_ct_CC=$CC
4418 # Extract the first word of "gcc", so it can be a program name with args.
4419 set dummy gcc; ac_word=$2
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 printf %s "checking for $ac_word... " >&6; }
4422 if test ${ac_cv_prog_ac_ct_CC+y}
4423 then :
4424 printf %s "(cached) " >&6
4425 else case e in #(
4426 e) if test -n "$ac_ct_CC"; then
4427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432 IFS=$as_save_IFS
4433 case $as_dir in #(((
4434 '') as_dir=./ ;;
4435 */) ;;
4436 *) as_dir=$as_dir/ ;;
4437 esac
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_CC="gcc"
4441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi ;;
4449 esac
4450 fi
4451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4452 if test -n "$ac_ct_CC"; then
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4454 printf "%s\n" "$ac_ct_CC" >&6; }
4455 else
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 printf "%s\n" "no" >&6; }
4458 fi
4459
4460 if test "x$ac_ct_CC" = x; then
4461 CC=""
4462 else
4463 case $cross_compiling:$ac_tool_warned in
4464 yes:)
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4466 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4467 ac_tool_warned=yes ;;
4468 esac
4469 CC=$ac_ct_CC
4470 fi
4471 else
4472 CC="$ac_cv_prog_CC"
4473 fi
4474
4475 if test -z "$CC"; then
4476 if test -n "$ac_tool_prefix"; then
4477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4478 set dummy ${ac_tool_prefix}cc; ac_word=$2
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 printf %s "checking for $ac_word... " >&6; }
4481 if test ${ac_cv_prog_CC+y}
4482 then :
4483 printf %s "(cached) " >&6
4484 else case e in #(
4485 e) if test -n "$CC"; then
4486 ac_cv_prog_CC="$CC" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491 IFS=$as_save_IFS
4492 case $as_dir in #(((
4493 '') as_dir=./ ;;
4494 */) ;;
4495 *) as_dir=$as_dir/ ;;
4496 esac
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4499 ac_cv_prog_CC="${ac_tool_prefix}cc"
4500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4501 break 2
4502 fi
4503 done
4504 done
4505 IFS=$as_save_IFS
4506
4507 fi ;;
4508 esac
4509 fi
4510 CC=$ac_cv_prog_CC
4511 if test -n "$CC"; then
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4513 printf "%s\n" "$CC" >&6; }
4514 else
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 printf "%s\n" "no" >&6; }
4517 fi
4518
4519
4520 fi
4521 fi
4522 if test -z "$CC"; then
4523 # Extract the first word of "cc", so it can be a program name with args.
4524 set dummy cc; ac_word=$2
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 printf %s "checking for $ac_word... " >&6; }
4527 if test ${ac_cv_prog_CC+y}
4528 then :
4529 printf %s "(cached) " >&6
4530 else case e in #(
4531 e) if test -n "$CC"; then
4532 ac_cv_prog_CC="$CC" # Let the user override the test.
4533 else
4534 ac_prog_rejected=no
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538 IFS=$as_save_IFS
4539 case $as_dir in #(((
4540 '') as_dir=./ ;;
4541 */) ;;
4542 *) as_dir=$as_dir/ ;;
4543 esac
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4546 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4547 ac_prog_rejected=yes
4548 continue
4549 fi
4550 ac_cv_prog_CC="cc"
4551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554 done
4555 done
4556 IFS=$as_save_IFS
4557
4558 if test $ac_prog_rejected = yes; then
4559 # We found a bogon in the path, so make sure we never use it.
4560 set dummy $ac_cv_prog_CC
4561 shift
4562 if test $# != 0; then
4563 # We chose a different compiler from the bogus one.
4564 # However, it has the same basename, so the bogon will be chosen
4565 # first if we set CC to just the basename; use the full file name.
4566 shift
4567 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4568 fi
4569 fi
4570 fi ;;
4571 esac
4572 fi
4573 CC=$ac_cv_prog_CC
4574 if test -n "$CC"; then
4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4576 printf "%s\n" "$CC" >&6; }
4577 else
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 printf "%s\n" "no" >&6; }
4580 fi
4581
4582
4583 fi
4584 if test -z "$CC"; then
4585 if test -n "$ac_tool_prefix"; then
4586 for ac_prog in cl.exe
4587 do
4588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 printf %s "checking for $ac_word... " >&6; }
4592 if test ${ac_cv_prog_CC+y}
4593 then :
4594 printf %s "(cached) " >&6
4595 else case e in #(
4596 e) if test -n "$CC"; then
4597 ac_cv_prog_CC="$CC" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602 IFS=$as_save_IFS
4603 case $as_dir in #(((
4604 '') as_dir=./ ;;
4605 */) ;;
4606 *) as_dir=$as_dir/ ;;
4607 esac
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi ;;
4619 esac
4620 fi
4621 CC=$ac_cv_prog_CC
4622 if test -n "$CC"; then
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4624 printf "%s\n" "$CC" >&6; }
4625 else
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 printf "%s\n" "no" >&6; }
4628 fi
4629
4630
4631 test -n "$CC" && break
4632 done
4633 fi
4634 if test -z "$CC"; then
4635 ac_ct_CC=$CC
4636 for ac_prog in cl.exe
4637 do
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639 set dummy $ac_prog; ac_word=$2
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 printf %s "checking for $ac_word... " >&6; }
4642 if test ${ac_cv_prog_ac_ct_CC+y}
4643 then :
4644 printf %s "(cached) " >&6
4645 else case e in #(
4646 e) if test -n "$ac_ct_CC"; then
4647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652 IFS=$as_save_IFS
4653 case $as_dir in #(((
4654 '') as_dir=./ ;;
4655 */) ;;
4656 *) as_dir=$as_dir/ ;;
4657 esac
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_ac_ct_CC="$ac_prog"
4661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 fi ;;
4669 esac
4670 fi
4671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4672 if test -n "$ac_ct_CC"; then
4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4674 printf "%s\n" "$ac_ct_CC" >&6; }
4675 else
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 printf "%s\n" "no" >&6; }
4678 fi
4679
4680
4681 test -n "$ac_ct_CC" && break
4682 done
4683
4684 if test "x$ac_ct_CC" = x; then
4685 CC=""
4686 else
4687 case $cross_compiling:$ac_tool_warned in
4688 yes:)
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4690 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4691 ac_tool_warned=yes ;;
4692 esac
4693 CC=$ac_ct_CC
4694 fi
4695 fi
4696
4697 fi
4698 if test -z "$CC"; then
4699 if test -n "$ac_tool_prefix"; then
4700 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4701 set dummy ${ac_tool_prefix}clang; ac_word=$2
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 printf %s "checking for $ac_word... " >&6; }
4704 if test ${ac_cv_prog_CC+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else case e in #(
4708 e) if test -n "$CC"; then
4709 ac_cv_prog_CC="$CC" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 case $as_dir in #(((
4716 '') as_dir=./ ;;
4717 */) ;;
4718 *) as_dir=$as_dir/ ;;
4719 esac
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4722 ac_cv_prog_CC="${ac_tool_prefix}clang"
4723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4729
4730 fi ;;
4731 esac
4732 fi
4733 CC=$ac_cv_prog_CC
4734 if test -n "$CC"; then
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4736 printf "%s\n" "$CC" >&6; }
4737 else
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 printf "%s\n" "no" >&6; }
4740 fi
4741
4742
4743 fi
4744 if test -z "$ac_cv_prog_CC"; then
4745 ac_ct_CC=$CC
4746 # Extract the first word of "clang", so it can be a program name with args.
4747 set dummy clang; ac_word=$2
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 printf %s "checking for $ac_word... " >&6; }
4750 if test ${ac_cv_prog_ac_ct_CC+y}
4751 then :
4752 printf %s "(cached) " >&6
4753 else case e in #(
4754 e) if test -n "$ac_ct_CC"; then
4755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760 IFS=$as_save_IFS
4761 case $as_dir in #(((
4762 '') as_dir=./ ;;
4763 */) ;;
4764 *) as_dir=$as_dir/ ;;
4765 esac
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4768 ac_cv_prog_ac_ct_CC="clang"
4769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 fi ;;
4777 esac
4778 fi
4779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4780 if test -n "$ac_ct_CC"; then
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4782 printf "%s\n" "$ac_ct_CC" >&6; }
4783 else
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 printf "%s\n" "no" >&6; }
4786 fi
4787
4788 if test "x$ac_ct_CC" = x; then
4789 CC=""
4790 else
4791 case $cross_compiling:$ac_tool_warned in
4792 yes:)
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795 ac_tool_warned=yes ;;
4796 esac
4797 CC=$ac_ct_CC
4798 fi
4799 else
4800 CC="$ac_cv_prog_CC"
4801 fi
4802
4803 fi
4804
4805
4806 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4807 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4808 as_fn_error $? "no acceptable C compiler found in \$PATH
4809 See 'config.log' for more details" "$LINENO" 5; }
4810
4811 # Provide some information about the compiler.
4812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4813 set X $ac_compile
4814 ac_compiler=$2
4815 for ac_option in --version -v -V -qversion -version; do
4816 { { ac_try="$ac_compiler $ac_option >&5"
4817 case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820 esac
4821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4822 printf "%s\n" "$ac_try_echo"; } >&5
4823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4824 ac_status=$?
4825 if test -s conftest.err; then
4826 sed '10a\
4827 ... rest of stderr output deleted ...
4828 10q' conftest.err >conftest.er1
4829 cat conftest.er1 >&5
4830 fi
4831 rm -f conftest.er1 conftest.err
4832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4833 test $ac_status = 0; }
4834 done
4835
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4837 printf %s "checking whether the compiler supports GNU C... " >&6; }
4838 if test ${ac_cv_c_compiler_gnu+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else case e in #(
4842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844
4845 int
4846 main (void)
4847 {
4848 #ifndef __GNUC__
4849 choke me
4850 #endif
4851
4852 ;
4853 return 0;
4854 }
4855 _ACEOF
4856 if ac_fn_c_try_compile "$LINENO"
4857 then :
4858 ac_compiler_gnu=yes
4859 else case e in #(
4860 e) ac_compiler_gnu=no ;;
4861 esac
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4865 ;;
4866 esac
4867 fi
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4869 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871
4872 if test $ac_compiler_gnu = yes; then
4873 GCC=yes
4874 else
4875 GCC=
4876 fi
4877 ac_test_CFLAGS=${CFLAGS+y}
4878 ac_save_CFLAGS=$CFLAGS
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4880 printf %s "checking whether $CC accepts -g... " >&6; }
4881 if test ${ac_cv_prog_cc_g+y}
4882 then :
4883 printf %s "(cached) " >&6
4884 else case e in #(
4885 e) ac_save_c_werror_flag=$ac_c_werror_flag
4886 ac_c_werror_flag=yes
4887 ac_cv_prog_cc_g=no
4888 CFLAGS="-g"
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891
4892 int
4893 main (void)
4894 {
4895
4896 ;
4897 return 0;
4898 }
4899 _ACEOF
4900 if ac_fn_c_try_compile "$LINENO"
4901 then :
4902 ac_cv_prog_cc_g=yes
4903 else case e in #(
4904 e) CFLAGS=""
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907
4908 int
4909 main (void)
4910 {
4911
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"
4917 then :
4918
4919 else case e in #(
4920 e) ac_c_werror_flag=$ac_save_c_werror_flag
4921 CFLAGS="-g"
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924
4925 int
4926 main (void)
4927 {
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 if ac_fn_c_try_compile "$LINENO"
4934 then :
4935 ac_cv_prog_cc_g=yes
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4938 esac
4939 fi
4940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4941 esac
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4944 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4945 esac
4946 fi
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4948 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4949 if test $ac_test_CFLAGS; then
4950 CFLAGS=$ac_save_CFLAGS
4951 elif test $ac_cv_prog_cc_g = yes; then
4952 if test "$GCC" = yes; then
4953 CFLAGS="-g -O2"
4954 else
4955 CFLAGS="-g"
4956 fi
4957 else
4958 if test "$GCC" = yes; then
4959 CFLAGS="-O2"
4960 else
4961 CFLAGS=
4962 fi
4963 fi
4964 ac_prog_cc_stdc=no
4965 if test x$ac_prog_cc_stdc = xno
4966 then :
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4968 printf %s "checking for $CC option to enable C11 features... " >&6; }
4969 if test ${ac_cv_prog_cc_c11+y}
4970 then :
4971 printf %s "(cached) " >&6
4972 else case e in #(
4973 e) ac_cv_prog_cc_c11=no
4974 ac_save_CC=$CC
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 $ac_c_conftest_c11_program
4978 _ACEOF
4979 for ac_arg in '' -std=gnu11
4980 do
4981 CC="$ac_save_CC $ac_arg"
4982 if ac_fn_c_try_compile "$LINENO"
4983 then :
4984 ac_cv_prog_cc_c11=$ac_arg
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext conftest.beam
4987 test "x$ac_cv_prog_cc_c11" != "xno" && break
4988 done
4989 rm -f conftest.$ac_ext
4990 CC=$ac_save_CC ;;
4991 esac
4992 fi
4993
4994 if test "x$ac_cv_prog_cc_c11" = xno
4995 then :
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4997 printf "%s\n" "unsupported" >&6; }
4998 else case e in #(
4999 e) if test "x$ac_cv_prog_cc_c11" = x
5000 then :
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5002 printf "%s\n" "none needed" >&6; }
5003 else case e in #(
5004 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5005 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5006 CC="$CC $ac_cv_prog_cc_c11" ;;
5007 esac
5008 fi
5009 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5010 ac_prog_cc_stdc=c11 ;;
5011 esac
5012 fi
5013 fi
5014 if test x$ac_prog_cc_stdc = xno
5015 then :
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5017 printf %s "checking for $CC option to enable C99 features... " >&6; }
5018 if test ${ac_cv_prog_cc_c99+y}
5019 then :
5020 printf %s "(cached) " >&6
5021 else case e in #(
5022 e) ac_cv_prog_cc_c99=no
5023 ac_save_CC=$CC
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5026 $ac_c_conftest_c99_program
5027 _ACEOF
5028 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5029 do
5030 CC="$ac_save_CC $ac_arg"
5031 if ac_fn_c_try_compile "$LINENO"
5032 then :
5033 ac_cv_prog_cc_c99=$ac_arg
5034 fi
5035 rm -f core conftest.err conftest.$ac_objext conftest.beam
5036 test "x$ac_cv_prog_cc_c99" != "xno" && break
5037 done
5038 rm -f conftest.$ac_ext
5039 CC=$ac_save_CC ;;
5040 esac
5041 fi
5042
5043 if test "x$ac_cv_prog_cc_c99" = xno
5044 then :
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5046 printf "%s\n" "unsupported" >&6; }
5047 else case e in #(
5048 e) if test "x$ac_cv_prog_cc_c99" = x
5049 then :
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5051 printf "%s\n" "none needed" >&6; }
5052 else case e in #(
5053 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5054 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5055 CC="$CC $ac_cv_prog_cc_c99" ;;
5056 esac
5057 fi
5058 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5059 ac_prog_cc_stdc=c99 ;;
5060 esac
5061 fi
5062 fi
5063 if test x$ac_prog_cc_stdc = xno
5064 then :
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5066 printf %s "checking for $CC option to enable C89 features... " >&6; }
5067 if test ${ac_cv_prog_cc_c89+y}
5068 then :
5069 printf %s "(cached) " >&6
5070 else case e in #(
5071 e) ac_cv_prog_cc_c89=no
5072 ac_save_CC=$CC
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 $ac_c_conftest_c89_program
5076 _ACEOF
5077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5078 do
5079 CC="$ac_save_CC $ac_arg"
5080 if ac_fn_c_try_compile "$LINENO"
5081 then :
5082 ac_cv_prog_cc_c89=$ac_arg
5083 fi
5084 rm -f core conftest.err conftest.$ac_objext conftest.beam
5085 test "x$ac_cv_prog_cc_c89" != "xno" && break
5086 done
5087 rm -f conftest.$ac_ext
5088 CC=$ac_save_CC ;;
5089 esac
5090 fi
5091
5092 if test "x$ac_cv_prog_cc_c89" = xno
5093 then :
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5095 printf "%s\n" "unsupported" >&6; }
5096 else case e in #(
5097 e) if test "x$ac_cv_prog_cc_c89" = x
5098 then :
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5100 printf "%s\n" "none needed" >&6; }
5101 else case e in #(
5102 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5103 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5104 CC="$CC $ac_cv_prog_cc_c89" ;;
5105 esac
5106 fi
5107 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5108 ac_prog_cc_stdc=c89 ;;
5109 esac
5110 fi
5111 fi
5112
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119 ac_ext=c
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5125 printf %s "checking how to run the C preprocessor... " >&6; }
5126 # On Suns, sometimes $CPP names a directory.
5127 if test -n "$CPP" && test -d "$CPP"; then
5128 CPP=
5129 fi
5130 if test -z "$CPP"; then
5131 if test ${ac_cv_prog_CPP+y}
5132 then :
5133 printf %s "(cached) " >&6
5134 else case e in #(
5135 e) # Double quotes because $CC needs to be expanded
5136 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5137 do
5138 ac_preproc_ok=false
5139 for ac_c_preproc_warn_flag in '' yes
5140 do
5141 # Use a header file that comes with gcc, so configuring glibc
5142 # with a fresh cross-compiler works.
5143 # On the NeXT, cc -E runs the code through the compiler's parser,
5144 # not just through cpp. "Syntax error" is here to catch this case.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <limits.h>
5148 Syntax error
5149 _ACEOF
5150 if ac_fn_c_try_cpp "$LINENO"
5151 then :
5152
5153 else case e in #(
5154 e) # Broken: fails on valid input.
5155 continue ;;
5156 esac
5157 fi
5158 rm -f conftest.err conftest.i conftest.$ac_ext
5159
5160 # OK, works on sane cases. Now check whether nonexistent headers
5161 # can be detected and how.
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 #include <ac_nonexistent.h>
5165 _ACEOF
5166 if ac_fn_c_try_cpp "$LINENO"
5167 then :
5168 # Broken: success on invalid input.
5169 continue
5170 else case e in #(
5171 e) # Passes both tests.
5172 ac_preproc_ok=:
5173 break ;;
5174 esac
5175 fi
5176 rm -f conftest.err conftest.i conftest.$ac_ext
5177
5178 done
5179 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.i conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok
5182 then :
5183 break
5184 fi
5185
5186 done
5187 ac_cv_prog_CPP=$CPP
5188 ;;
5189 esac
5190 fi
5191 CPP=$ac_cv_prog_CPP
5192 else
5193 ac_cv_prog_CPP=$CPP
5194 fi
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5196 printf "%s\n" "$CPP" >&6; }
5197 ac_preproc_ok=false
5198 for ac_c_preproc_warn_flag in '' yes
5199 do
5200 # Use a header file that comes with gcc, so configuring glibc
5201 # with a fresh cross-compiler works.
5202 # On the NeXT, cc -E runs the code through the compiler's parser,
5203 # not just through cpp. "Syntax error" is here to catch this case.
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 #include <limits.h>
5207 Syntax error
5208 _ACEOF
5209 if ac_fn_c_try_cpp "$LINENO"
5210 then :
5211
5212 else case e in #(
5213 e) # Broken: fails on valid input.
5214 continue ;;
5215 esac
5216 fi
5217 rm -f conftest.err conftest.i conftest.$ac_ext
5218
5219 # OK, works on sane cases. Now check whether nonexistent headers
5220 # can be detected and how.
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 #include <ac_nonexistent.h>
5224 _ACEOF
5225 if ac_fn_c_try_cpp "$LINENO"
5226 then :
5227 # Broken: success on invalid input.
5228 continue
5229 else case e in #(
5230 e) # Passes both tests.
5231 ac_preproc_ok=:
5232 break ;;
5233 esac
5234 fi
5235 rm -f conftest.err conftest.i conftest.$ac_ext
5236
5237 done
5238 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5239 rm -f conftest.i conftest.err conftest.$ac_ext
5240 if $ac_preproc_ok
5241 then :
5242
5243 else case e in #(
5244 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5245 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5246 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5247 See 'config.log' for more details" "$LINENO" 5; } ;;
5248 esac
5249 fi
5250
5251 ac_ext=c
5252 ac_cpp='$CPP $CPPFLAGS'
5253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256
5257
5258 #--------------------------------------------------------------------
5259 # Checks to see if the make program sets the $MAKE variable.
5260 #--------------------------------------------------------------------
5261
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5263 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5264 set x ${MAKE-make}
5265 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5266 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5267 then :
5268 printf %s "(cached) " >&6
5269 else case e in #(
5270 e) cat >conftest.make <<\_ACEOF
5271 SHELL = /bin/sh
5272 all:
5273 @echo '@@@%%%=$(MAKE)=@@@%%%'
5274 _ACEOF
5275 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5276 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5277 *@@@%%%=?*=@@@%%%*)
5278 eval ac_cv_prog_make_${ac_make}_set=yes;;
5279 *)
5280 eval ac_cv_prog_make_${ac_make}_set=no;;
5281 esac
5282 rm -f conftest.make ;;
5283 esac
5284 fi
5285 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5287 printf "%s\n" "yes" >&6; }
5288 SET_MAKE=
5289 else
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 printf "%s\n" "no" >&6; }
5292 SET_MAKE="MAKE=${MAKE-make}"
5293 fi
5294
5295
5296 #--------------------------------------------------------------------
5297 # Find ranlib
5298 #--------------------------------------------------------------------
5299
5300 if test -n "$ac_tool_prefix"; then
5301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 printf %s "checking for $ac_word... " >&6; }
5305 if test ${ac_cv_prog_RANLIB+y}
5306 then :
5307 printf %s "(cached) " >&6
5308 else case e in #(
5309 e) if test -n "$RANLIB"; then
5310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315 IFS=$as_save_IFS
5316 case $as_dir in #(((
5317 '') as_dir=./ ;;
5318 */) ;;
5319 *) as_dir=$as_dir/ ;;
5320 esac
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327 done
5328 done
5329 IFS=$as_save_IFS
5330
5331 fi ;;
5332 esac
5333 fi
5334 RANLIB=$ac_cv_prog_RANLIB
5335 if test -n "$RANLIB"; then
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5337 printf "%s\n" "$RANLIB" >&6; }
5338 else
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 printf "%s\n" "no" >&6; }
5341 fi
5342
5343
5344 fi
5345 if test -z "$ac_cv_prog_RANLIB"; then
5346 ac_ct_RANLIB=$RANLIB
5347 # Extract the first word of "ranlib", so it can be a program name with args.
5348 set dummy ranlib; ac_word=$2
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 printf %s "checking for $ac_word... " >&6; }
5351 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5352 then :
5353 printf %s "(cached) " >&6
5354 else case e in #(
5355 e) if test -n "$ac_ct_RANLIB"; then
5356 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361 IFS=$as_save_IFS
5362 case $as_dir in #(((
5363 '') as_dir=./ ;;
5364 */) ;;
5365 *) as_dir=$as_dir/ ;;
5366 esac
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_ac_ct_RANLIB="ranlib"
5370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373 done
5374 done
5375 IFS=$as_save_IFS
5376
5377 fi ;;
5378 esac
5379 fi
5380 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5381 if test -n "$ac_ct_RANLIB"; then
5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5383 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5384 else
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 printf "%s\n" "no" >&6; }
5387 fi
5388
5389 if test "x$ac_ct_RANLIB" = x; then
5390 RANLIB=""
5391 else
5392 case $cross_compiling:$ac_tool_warned in
5393 yes:)
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396 ac_tool_warned=yes ;;
5397 esac
5398 RANLIB=$ac_ct_RANLIB
5399 fi
5400 else
5401 RANLIB="$ac_cv_prog_RANLIB"
5402 fi
5403
5404
5405 #--------------------------------------------------------------------
5406 # Determines the correct binary file extension (.o, .obj, .exe etc.)
5407 #--------------------------------------------------------------------
5408
5409
5410
5411
5412 ac_header= ac_cache=
5413 for ac_item in $ac_header_c_list
5414 do
5415 if test $ac_cache; then
5416 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5417 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5418 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5419 fi
5420 ac_header= ac_cache=
5421 elif test $ac_header; then
5422 ac_cache=$ac_item
5423 else
5424 ac_header=$ac_item
5425 fi
5426 done
5427
5428
5429
5430
5431
5432
5433
5434
5435 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5436 then :
5437
5438 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5439
5440 fi
5441
5442 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
5443
5444
5445 #------------------------------------------------------------------------
5446 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
5447 # It makes compiling go faster. (This is only a performance feature.)
5448 #------------------------------------------------------------------------
5449
5450 if test -z "$no_pipe" -a -n "$GCC"; then
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
5452 printf %s "checking if the compiler understands -pipe... " >&6; }
5453 if test ${tcl_cv_cc_pipe+y}
5454 then :
5455 printf %s "(cached) " >&6
5456 else case e in #(
5457 e)
5458 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461
5462 int
5463 main (void)
5464 {
5465
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"
5471 then :
5472 tcl_cv_cc_pipe=yes
5473 else case e in #(
5474 e) tcl_cv_cc_pipe=no ;;
5475 esac
5476 fi
5477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5478 CFLAGS=$hold_cflags ;;
5479 esac
5480 fi
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
5482 printf "%s\n" "$tcl_cv_cc_pipe" >&6; }
5483 if test $tcl_cv_cc_pipe = yes; then
5484 CFLAGS="$CFLAGS -pipe"
5485 fi
5486 fi
5487
5488 if test "${TCL_MAJOR_VERSION}" -lt 9 -a "${TCL_MINOR_VERSION}" -lt 7; then
5489
5490 printf "%s\n" "#define Tcl_Size int" >>confdefs.h
5491
5492 fi
5493
5494 #--------------------------------------------------------------------
5495 # Common compiler flag setup
5496 #--------------------------------------------------------------------
5497
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5499 printf %s "checking whether byte ordering is bigendian... " >&6; }
5500 if test ${ac_cv_c_bigendian+y}
5501 then :
5502 printf %s "(cached) " >&6
5503 else case e in #(
5504 e) ac_cv_c_bigendian=unknown
5505 # See if we're dealing with a universal compiler.
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 #ifndef __APPLE_CC__
5509 not a universal capable compiler
5510 #endif
5511 typedef int dummy;
5512
5513 _ACEOF
5514 if ac_fn_c_try_compile "$LINENO"
5515 then :
5516
5517 # Check for potential -arch flags. It is not universal unless
5518 # there are at least two -arch flags with different values.
5519 ac_arch=
5520 ac_prev=
5521 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5522 if test -n "$ac_prev"; then
5523 case $ac_word in
5524 i?86 | x86_64 | ppc | ppc64)
5525 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5526 ac_arch=$ac_word
5527 else
5528 ac_cv_c_bigendian=universal
5529 break
5530 fi
5531 ;;
5532 esac
5533 ac_prev=
5534 elif test "x$ac_word" = "x-arch"; then
5535 ac_prev=arch
5536 fi
5537 done
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5540 if test $ac_cv_c_bigendian = unknown; then
5541 # See if sys/param.h defines the BYTE_ORDER macro.
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5544 #include <sys/types.h>
5545 #include <sys/param.h>
5546
5547 int
5548 main (void)
5549 {
5550 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
5551 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
5552 && LITTLE_ENDIAN)
5553 bogus endian macros
5554 #endif
5555
5556 ;
5557 return 0;
5558 }
5559 _ACEOF
5560 if ac_fn_c_try_compile "$LINENO"
5561 then :
5562 # It does; now see whether it defined to BIG_ENDIAN or not.
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 #include <sys/types.h>
5566 #include <sys/param.h>
5567
5568 int
5569 main (void)
5570 {
5571 #if BYTE_ORDER != BIG_ENDIAN
5572 not big endian
5573 #endif
5574
5575 ;
5576 return 0;
5577 }
5578 _ACEOF
5579 if ac_fn_c_try_compile "$LINENO"
5580 then :
5581 ac_cv_c_bigendian=yes
5582 else case e in #(
5583 e) ac_cv_c_bigendian=no ;;
5584 esac
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5587 fi
5588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5589 fi
5590 if test $ac_cv_c_bigendian = unknown; then
5591 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <limits.h>
5595
5596 int
5597 main (void)
5598 {
5599 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5600 bogus endian macros
5601 #endif
5602
5603 ;
5604 return 0;
5605 }
5606 _ACEOF
5607 if ac_fn_c_try_compile "$LINENO"
5608 then :
5609 # It does; now see whether it defined to _BIG_ENDIAN or not.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <limits.h>
5613
5614 int
5615 main (void)
5616 {
5617 #ifndef _BIG_ENDIAN
5618 not big endian
5619 #endif
5620
5621 ;
5622 return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"
5626 then :
5627 ac_cv_c_bigendian=yes
5628 else case e in #(
5629 e) ac_cv_c_bigendian=no ;;
5630 esac
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5633 fi
5634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5635 fi
5636 if test $ac_cv_c_bigendian = unknown; then
5637 # Compile a test program.
5638 if test "$cross_compiling" = yes
5639 then :
5640 # Try to guess by grepping values from an object file.
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 unsigned short int ascii_mm[] =
5644 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5645 unsigned short int ascii_ii[] =
5646 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5647 int use_ascii (int i) {
5648 return ascii_mm[i] + ascii_ii[i];
5649 }
5650 unsigned short int ebcdic_ii[] =
5651 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5652 unsigned short int ebcdic_mm[] =
5653 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5654 int use_ebcdic (int i) {
5655 return ebcdic_mm[i] + ebcdic_ii[i];
5656 }
5657 int
5658 main (int argc, char **argv)
5659 {
5660 /* Intimidate the compiler so that it does not
5661 optimize the arrays away. */
5662 char *p = argv[0];
5663 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
5664 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
5665 return use_ascii (argc) == use_ebcdic (*p);
5666 }
5667 _ACEOF
5668 if ac_fn_c_try_link "$LINENO"
5669 then :
5670 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
5671 ac_cv_c_bigendian=yes
5672 fi
5673 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
5674 if test "$ac_cv_c_bigendian" = unknown; then
5675 ac_cv_c_bigendian=no
5676 else
5677 # finding both strings is unlikely to happen, but who knows?
5678 ac_cv_c_bigendian=unknown
5679 fi
5680 fi
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5683 conftest$ac_exeext conftest.$ac_ext
5684 else case e in #(
5685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 $ac_includes_default
5688 int
5689 main (void)
5690 {
5691
5692 /* Are we little or big endian? From Harbison&Steele. */
5693 union
5694 {
5695 long int l;
5696 char c[sizeof (long int)];
5697 } u;
5698 u.l = 1;
5699 return u.c[sizeof (long int) - 1] == 1;
5700
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_run "$LINENO"
5706 then :
5707 ac_cv_c_bigendian=no
5708 else case e in #(
5709 e) ac_cv_c_bigendian=yes ;;
5710 esac
5711 fi
5712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5713 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5714 esac
5715 fi
5716
5717 fi ;;
5718 esac
5719 fi
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5721 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5722 case $ac_cv_c_bigendian in #(
5723 yes)
5724 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5725 ;; #(
5726 no)
5727 ;; #(
5728 universal)
5729 #
5730 ;; #(
5731 *)
5732 as_fn_error $? "unknown endianness
5733 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5734 esac
5735
5736
5737
5738
5739 #
5740 # Ok, lets find the tkimg configuration
5741 # First, look for one uninstalled.
5742 # the alternative search directory is invoked by --with-tkimg
5743 #
5744
5745 if test x"${no_tkimg}" = x ; then
5746 # we reset no_tkimg in case something fails here
5747 no_tkimg=true
5748
5749 # Check whether --with-tkimg was given.
5750 if test ${with_tkimg+y}
5751 then :
5752 withval=$with_tkimg; with_tkimgconfig=${withval}
5753 fi
5754
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tkimg configuration" >&5
5756 printf %s "checking for tkimg configuration... " >&6; }
5757 if test ${ac_cv_c_tkimgconfig+y}
5758 then :
5759 printf %s "(cached) " >&6
5760 else case e in #(
5761 e)
5762
5763 # First check to see if --with-tkimg was specified.
5764 if test x"${with_tkimgconfig}" != x ; then
5765 case ${with_tkimgconfig} in
5766 */tkimgConfig.sh )
5767 if test -f ${with_tkimgconfig}; then
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&5
5769 printf "%s\n" "$as_me: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&2;}
5770 with_tkimgconfig=`echo ${with_tkimgconfig} | sed 's!/tkimgConfig\.sh$!!'`
5771 fi;;
5772 esac
5773 if test -f "${with_tkimgconfig}/tkimgConfig.sh" ; then
5774 ac_cv_c_tkimgconfig=`(cd ${with_tkimgconfig}; pwd)`
5775 else
5776 as_fn_error $? "${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" "$LINENO" 5
5777 fi
5778 fi
5779
5780 # then check for a private tkimg installation
5781 if test x"${ac_cv_c_tkimgconfig}" = x ; then
5782 for i in \
5783 ../tkimg \
5784 `ls -dr ../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5785 `ls -dr ../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5786 `ls -dr ../tkimg*[0-9].[0-9] 2>/dev/null` \
5787 `ls -dr ../tkimg*[0-9].[0-9]* 2>/dev/null` \
5788 ../../tkimg \
5789 `ls -dr ../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5790 `ls -dr ../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5791 `ls -dr ../../tkimg*[0-9].[0-9] 2>/dev/null` \
5792 `ls -dr ../../tkimg*[0-9].[0-9]* 2>/dev/null` \
5793 ../../../tkimg \
5794 `ls -dr ../../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5795 `ls -dr ../../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5796 `ls -dr ../../../tkimg*[0-9].[0-9] 2>/dev/null` \
5797 `ls -dr ../../../tkimg*[0-9].[0-9]* 2>/dev/null` \
5798 ${srcdir}/../tkimg \
5799 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5800 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5801 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9] 2>/dev/null` \
5802 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]* 2>/dev/null` \
5803 ; do
5804 if test -f "$i/tkimgConfig.sh" ; then
5805 ac_cv_c_tkimgconfig=`(cd $i; pwd)`
5806 break
5807 fi
5808 if test -f "$i/unix/tkimgConfig.sh" ; then
5809 ac_cv_c_tkimgconfig=`(cd $i/unix; pwd)`
5810 break
5811 fi
5812 done
5813 fi
5814
5815 # check in a few common install locations
5816 if test x"${ac_cv_c_tkimgconfig}" = x ; then
5817 for i in `ls -d ${libdir} 2>/dev/null` \
5818 `ls -d ${exec_prefix}/lib 2>/dev/null` \
5819 `ls -d ${prefix}/lib 2>/dev/null` \
5820 `ls -d /usr/local/lib 2>/dev/null` \
5821 `ls -d /usr/contrib/lib 2>/dev/null` \
5822 `ls -d /usr/pkg/lib 2>/dev/null` \
5823 `ls -d /usr/lib 2>/dev/null` \
5824 `ls -d /usr/lib64 2>/dev/null` \
5825 ; do
5826 if test -f "$i/tkimgConfig.sh" ; then
5827 ac_cv_c_tkimgconfig=`(cd $i; pwd)`
5828 break
5829 fi
5830 done
5831 fi
5832 ;;
5833 esac
5834 fi
5835
5836
5837 if test x"${ac_cv_c_tkimgconfig}" = x ; then
5838 tkimg_BIN_DIR="# no tkimg configs found"
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find tkimg configuration definitions" >&5
5840 printf "%s\n" "$as_me: WARNING: Cannot find tkimg configuration definitions" >&2;}
5841 exit 0
5842 else
5843 no_tkimg=
5844 tkimg_BIN_DIR=${ac_cv_c_tkimgconfig}
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $tkimg_BIN_DIR/tkimgConfig.sh" >&5
5846 printf "%s\n" "found $tkimg_BIN_DIR/tkimgConfig.sh" >&6; }
5847 fi
5848 fi
5849
5850
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh" >&5
5852 printf %s "checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh... " >&6; }
5853
5854 if test -f "${tkimg_BIN_DIR}/tkimgConfig.sh" ; then
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
5856 printf "%s\n" "loading" >&6; }
5857 . "${tkimg_BIN_DIR}/tkimgConfig.sh"
5858 else
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
5860 printf "%s\n" "file not found" >&6; }
5861 fi
5862
5863 #
5864 # If the tkimg_BIN_DIR is the build directory (not the install directory),
5865 # then set the common variable name to the value of the build variables.
5866 # For example, the variable tkimg_LIB_SPEC will be set to the value
5867 # of tkimg_BUILD_LIB_SPEC. An extension should make use of tkimg_LIB_SPEC
5868 # instead of tkimg_BUILD_LIB_SPEC since it will work with both an
5869 # installed and uninstalled version of Tcl.
5870 #
5871
5872 if test -f "${tkimg_BIN_DIR}/Makefile" ; then
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for tkimg" >&5
5874 printf "%s\n" "$as_me: WARNING: Found Makefile - using build library specs for tkimg" >&2;}
5875 tkimg_LIB_SPEC=${tkimg_BUILD_LIB_SPEC}
5876 tkimg_STUB_LIB_SPEC=${tkimg_BUILD_STUB_LIB_SPEC}
5877 tkimg_STUB_LIB_PATH=${tkimg_BUILD_STUB_LIB_PATH}
5878 tkimg_INCLUDE_SPEC=${tkimg_BUILD_INCLUDE_SPEC}
5879 tkimg_LIBRARY_PATH=${tkimg_LIBRARY_PATH}
5880 fi
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 # Allow the caller to prevent this auto-check by specifying any 2nd arg
5894 if test "x" = x
5895 then :
5896
5897 # Check both upper and lower-case variants
5898 # If a dev wanted non-stubs libs, this function could take an option
5899 # to not use _STUB in the paths below
5900 if test "x${tkimg_STUB_LIB_SPEC}" = x
5901 then :
5902
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For TKIMG_STUB library for LIBS" >&5
5904 printf %s "checking For TKIMG_STUB library for LIBS... " >&6; }
5905 # This simplifies the use of stub libraries by automatically adding
5906 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
5907 # but this is called before CONFIG_CFLAGS. More importantly, this adds
5908 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
5909 if test "x${TKIMG_STUB_LIB_SPEC}" != "x" ; then
5910 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
5911
5912 vars="\"`${CYGPATH} ${TKIMG_STUB_LIB_PATH}`\""
5913 for i in $vars; do
5914 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5915 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5916 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5917 fi
5918 PKG_LIBS="$PKG_LIBS $i"
5919 done
5920
5921
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&5
5923 printf "%s\n" "using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&6; }
5924 else
5925
5926 vars="${TKIMG_STUB_LIB_SPEC}"
5927 for i in $vars; do
5928 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5929 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5930 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5931 fi
5932 PKG_LIBS="$PKG_LIBS $i"
5933 done
5934
5935
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&5
5937 printf "%s\n" "using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&6; }
5938 fi
5939 else
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
5941 printf "%s\n" "file not found" >&6; }
5942 fi
5943
5944 else case e in #(
5945 e)
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For tkimg_STUB library for LIBS" >&5
5947 printf %s "checking For tkimg_STUB library for LIBS... " >&6; }
5948 # This simplifies the use of stub libraries by automatically adding
5949 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
5950 # but this is called before CONFIG_CFLAGS. More importantly, this adds
5951 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
5952 if test "x${tkimg_STUB_LIB_SPEC}" != "x" ; then
5953 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
5954
5955 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\""
5956 for i in $vars; do
5957 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5958 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5959 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5960 fi
5961 PKG_LIBS="$PKG_LIBS $i"
5962 done
5963
5964
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&5
5966 printf "%s\n" "using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&6; }
5967 else
5968
5969 vars="${tkimg_STUB_LIB_SPEC}"
5970 for i in $vars; do
5971 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5972 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5973 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5974 fi
5975 PKG_LIBS="$PKG_LIBS $i"
5976 done
5977
5978
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&5
5980 printf "%s\n" "using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&6; }
5981 fi
5982 else
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
5984 printf "%s\n" "file not found" >&6; }
5985 fi
5986 ;;
5987 esac
5988 fi
5989
5990 fi
5991
5992
5993
5994 #
5995 # Ok, lets find the pngtcl configuration
5996 # First, look for one uninstalled.
5997 # the alternative search directory is invoked by --with-pngtcl
5998 #
5999
6000 if test x"${no_pngtcl}" = x ; then
6001 # we reset no_pngtcl in case something fails here
6002 no_pngtcl=true
6003
6004 # Check whether --with-pngtcl was given.
6005 if test ${with_pngtcl+y}
6006 then :
6007 withval=$with_pngtcl; with_pngtclconfig=${withval}
6008 fi
6009
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pngtcl configuration" >&5
6011 printf %s "checking for pngtcl configuration... " >&6; }
6012 if test ${ac_cv_c_pngtclconfig+y}
6013 then :
6014 printf %s "(cached) " >&6
6015 else case e in #(
6016 e)
6017
6018 # First check to see if --with-pngtcl was specified.
6019 if test x"${with_pngtclconfig}" != x ; then
6020 case ${with_pngtclconfig} in
6021 */pngtclConfig.sh )
6022 if test -f ${with_pngtclconfig}; then
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-pngtcl argument should refer to directory containing pngtclConfig.sh, not to pngtclConfig.sh itself" >&5
6024 printf "%s\n" "$as_me: WARNING: --with-pngtcl argument should refer to directory containing pngtclConfig.sh, not to pngtclConfig.sh itself" >&2;}
6025 with_pngtclconfig=`echo ${with_pngtclconfig} | sed 's!/pngtclConfig\.sh$!!'`
6026 fi;;
6027 esac
6028 if test -f "${with_pngtclconfig}/pngtclConfig.sh" ; then
6029 ac_cv_c_pngtclconfig=`(cd ${with_pngtclconfig}; pwd)`
6030 else
6031 as_fn_error $? "${with_pngtclconfig} directory doesn't contain pngtclConfig.sh" "$LINENO" 5
6032 fi
6033 fi
6034
6035 # then check for a private pngtcl installation
6036 if test x"${ac_cv_c_pngtclconfig}" = x ; then
6037 for i in \
6038 ../pngtcl \
6039 `ls -dr ../pngtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6040 `ls -dr ../pngtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6041 `ls -dr ../pngtcl*[0-9].[0-9] 2>/dev/null` \
6042 `ls -dr ../pngtcl*[0-9].[0-9]* 2>/dev/null` \
6043 ../../pngtcl \
6044 `ls -dr ../../pngtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6045 `ls -dr ../../pngtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6046 `ls -dr ../../pngtcl*[0-9].[0-9] 2>/dev/null` \
6047 `ls -dr ../../pngtcl*[0-9].[0-9]* 2>/dev/null` \
6048 ../../../pngtcl \
6049 `ls -dr ../../../pngtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6050 `ls -dr ../../../pngtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6051 `ls -dr ../../../pngtcl*[0-9].[0-9] 2>/dev/null` \
6052 `ls -dr ../../../pngtcl*[0-9].[0-9]* 2>/dev/null` \
6053 ${srcdir}/../pngtcl \
6054 `ls -dr ${srcdir}/../pngtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6055 `ls -dr ${srcdir}/../pngtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6056 `ls -dr ${srcdir}/../pngtcl*[0-9].[0-9] 2>/dev/null` \
6057 `ls -dr ${srcdir}/../pngtcl*[0-9].[0-9]* 2>/dev/null` \
6058 ; do
6059 if test -f "$i/pngtclConfig.sh" ; then
6060 ac_cv_c_pngtclconfig=`(cd $i; pwd)`
6061 break
6062 fi
6063 if test -f "$i/unix/pngtclConfig.sh" ; then
6064 ac_cv_c_pngtclconfig=`(cd $i/unix; pwd)`
6065 break
6066 fi
6067 done
6068 fi
6069
6070 # check in a few common install locations
6071 if test x"${ac_cv_c_pngtclconfig}" = x ; then
6072 for i in `ls -d ${libdir} 2>/dev/null` \
6073 `ls -d ${exec_prefix}/lib 2>/dev/null` \
6074 `ls -d ${prefix}/lib 2>/dev/null` \
6075 `ls -d /usr/local/lib 2>/dev/null` \
6076 `ls -d /usr/contrib/lib 2>/dev/null` \
6077 `ls -d /usr/pkg/lib 2>/dev/null` \
6078 `ls -d /usr/lib 2>/dev/null` \
6079 `ls -d /usr/lib64 2>/dev/null` \
6080 ; do
6081 if test -f "$i/pngtclConfig.sh" ; then
6082 ac_cv_c_pngtclconfig=`(cd $i; pwd)`
6083 break
6084 fi
6085 done
6086 fi
6087 ;;
6088 esac
6089 fi
6090
6091
6092 if test x"${ac_cv_c_pngtclconfig}" = x ; then
6093 pngtcl_BIN_DIR="# no pngtcl configs found"
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find pngtcl configuration definitions" >&5
6095 printf "%s\n" "$as_me: WARNING: Cannot find pngtcl configuration definitions" >&2;}
6096 exit 0
6097 else
6098 no_pngtcl=
6099 pngtcl_BIN_DIR=${ac_cv_c_pngtclconfig}
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $pngtcl_BIN_DIR/pngtclConfig.sh" >&5
6101 printf "%s\n" "found $pngtcl_BIN_DIR/pngtclConfig.sh" >&6; }
6102 fi
6103 fi
6104
6105
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${pngtcl_BIN_DIR}/pngtclConfig.sh" >&5
6107 printf %s "checking for existence of ${pngtcl_BIN_DIR}/pngtclConfig.sh... " >&6; }
6108
6109 if test -f "${pngtcl_BIN_DIR}/pngtclConfig.sh" ; then
6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
6111 printf "%s\n" "loading" >&6; }
6112 . "${pngtcl_BIN_DIR}/pngtclConfig.sh"
6113 else
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
6115 printf "%s\n" "file not found" >&6; }
6116 fi
6117
6118 #
6119 # If the pngtcl_BIN_DIR is the build directory (not the install directory),
6120 # then set the common variable name to the value of the build variables.
6121 # For example, the variable pngtcl_LIB_SPEC will be set to the value
6122 # of pngtcl_BUILD_LIB_SPEC. An extension should make use of pngtcl_LIB_SPEC
6123 # instead of pngtcl_BUILD_LIB_SPEC since it will work with both an
6124 # installed and uninstalled version of Tcl.
6125 #
6126
6127 if test -f "${pngtcl_BIN_DIR}/Makefile" ; then
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for pngtcl" >&5
6129 printf "%s\n" "$as_me: WARNING: Found Makefile - using build library specs for pngtcl" >&2;}
6130 pngtcl_LIB_SPEC=${pngtcl_BUILD_LIB_SPEC}
6131 pngtcl_STUB_LIB_SPEC=${pngtcl_BUILD_STUB_LIB_SPEC}
6132 pngtcl_STUB_LIB_PATH=${pngtcl_BUILD_STUB_LIB_PATH}
6133 pngtcl_INCLUDE_SPEC=${pngtcl_BUILD_INCLUDE_SPEC}
6134 pngtcl_LIBRARY_PATH=${pngtcl_LIBRARY_PATH}
6135 fi
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148 # Allow the caller to prevent this auto-check by specifying any 2nd arg
6149 if test "x" = x
6150 then :
6151
6152 # Check both upper and lower-case variants
6153 # If a dev wanted non-stubs libs, this function could take an option
6154 # to not use _STUB in the paths below
6155 if test "x${pngtcl_STUB_LIB_SPEC}" = x
6156 then :
6157
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For PNGTCL_STUB library for LIBS" >&5
6159 printf %s "checking For PNGTCL_STUB library for LIBS... " >&6; }
6160 # This simplifies the use of stub libraries by automatically adding
6161 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
6162 # but this is called before CONFIG_CFLAGS. More importantly, this adds
6163 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
6164 if test "x${PNGTCL_STUB_LIB_SPEC}" != "x" ; then
6165 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
6166
6167 vars="\"`${CYGPATH} ${PNGTCL_STUB_LIB_PATH}`\""
6168 for i in $vars; do
6169 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6170 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6171 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6172 fi
6173 PKG_LIBS="$PKG_LIBS $i"
6174 done
6175
6176
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using PNGTCL_STUB_LIB_PATH ${PNGTCL_STUB_LIB_PATH}" >&5
6178 printf "%s\n" "using PNGTCL_STUB_LIB_PATH ${PNGTCL_STUB_LIB_PATH}" >&6; }
6179 else
6180
6181 vars="${PNGTCL_STUB_LIB_SPEC}"
6182 for i in $vars; do
6183 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6184 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6185 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6186 fi
6187 PKG_LIBS="$PKG_LIBS $i"
6188 done
6189
6190
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using PNGTCL_STUB_LIB_SPEC ${PNGTCL_STUB_LIB_SPEC}" >&5
6192 printf "%s\n" "using PNGTCL_STUB_LIB_SPEC ${PNGTCL_STUB_LIB_SPEC}" >&6; }
6193 fi
6194 else
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
6196 printf "%s\n" "file not found" >&6; }
6197 fi
6198
6199 else case e in #(
6200 e)
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For pngtcl_STUB library for LIBS" >&5
6202 printf %s "checking For pngtcl_STUB library for LIBS... " >&6; }
6203 # This simplifies the use of stub libraries by automatically adding
6204 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
6205 # but this is called before CONFIG_CFLAGS. More importantly, this adds
6206 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
6207 if test "x${pngtcl_STUB_LIB_SPEC}" != "x" ; then
6208 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
6209
6210 vars="\"`${CYGPATH} ${pngtcl_STUB_LIB_PATH}`\""
6211 for i in $vars; do
6212 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6213 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6214 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6215 fi
6216 PKG_LIBS="$PKG_LIBS $i"
6217 done
6218
6219
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using pngtcl_STUB_LIB_PATH ${pngtcl_STUB_LIB_PATH}" >&5
6221 printf "%s\n" "using pngtcl_STUB_LIB_PATH ${pngtcl_STUB_LIB_PATH}" >&6; }
6222 else
6223
6224 vars="${pngtcl_STUB_LIB_SPEC}"
6225 for i in $vars; do
6226 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6227 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6228 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6229 fi
6230 PKG_LIBS="$PKG_LIBS $i"
6231 done
6232
6233
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using pngtcl_STUB_LIB_SPEC ${pngtcl_STUB_LIB_SPEC}" >&5
6235 printf "%s\n" "using pngtcl_STUB_LIB_SPEC ${pngtcl_STUB_LIB_SPEC}" >&6; }
6236 fi
6237 else
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
6239 printf "%s\n" "file not found" >&6; }
6240 fi
6241 ;;
6242 esac
6243 fi
6244
6245 fi
6246
6247
6248
6249
6250 #
6251 # Ok, lets find the zlibtcl configuration
6252 # First, look for one uninstalled.
6253 # the alternative search directory is invoked by --with-zlibtcl
6254 #
6255
6256 if test x"${no_zlibtcl}" = x ; then
6257 # we reset no_zlibtcl in case something fails here
6258 no_zlibtcl=true
6259
6260 # Check whether --with-zlibtcl was given.
6261 if test ${with_zlibtcl+y}
6262 then :
6263 withval=$with_zlibtcl; with_zlibtclconfig=${withval}
6264 fi
6265
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibtcl configuration" >&5
6267 printf %s "checking for zlibtcl configuration... " >&6; }
6268 if test ${ac_cv_c_zlibtclconfig+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else case e in #(
6272 e)
6273
6274 # First check to see if --with-zlibtcl was specified.
6275 if test x"${with_zlibtclconfig}" != x ; then
6276 case ${with_zlibtclconfig} in
6277 */zlibtclConfig.sh )
6278 if test -f ${with_zlibtclconfig}; then
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-zlibtcl argument should refer to directory containing zlibtclConfig.sh, not to zlibtclConfig.sh itself" >&5
6280 printf "%s\n" "$as_me: WARNING: --with-zlibtcl argument should refer to directory containing zlibtclConfig.sh, not to zlibtclConfig.sh itself" >&2;}
6281 with_zlibtclconfig=`echo ${with_zlibtclconfig} | sed 's!/zlibtclConfig\.sh$!!'`
6282 fi;;
6283 esac
6284 if test -f "${with_zlibtclconfig}/zlibtclConfig.sh" ; then
6285 ac_cv_c_zlibtclconfig=`(cd ${with_zlibtclconfig}; pwd)`
6286 else
6287 as_fn_error $? "${with_zlibtclconfig} directory doesn't contain zlibtclConfig.sh" "$LINENO" 5
6288 fi
6289 fi
6290
6291 # then check for a private zlibtcl installation
6292 if test x"${ac_cv_c_zlibtclconfig}" = x ; then
6293 for i in \
6294 ../zlibtcl \
6295 `ls -dr ../zlibtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6296 `ls -dr ../zlibtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6297 `ls -dr ../zlibtcl*[0-9].[0-9] 2>/dev/null` \
6298 `ls -dr ../zlibtcl*[0-9].[0-9]* 2>/dev/null` \
6299 ../../zlibtcl \
6300 `ls -dr ../../zlibtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6301 `ls -dr ../../zlibtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6302 `ls -dr ../../zlibtcl*[0-9].[0-9] 2>/dev/null` \
6303 `ls -dr ../../zlibtcl*[0-9].[0-9]* 2>/dev/null` \
6304 ../../../zlibtcl \
6305 `ls -dr ../../../zlibtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6306 `ls -dr ../../../zlibtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6307 `ls -dr ../../../zlibtcl*[0-9].[0-9] 2>/dev/null` \
6308 `ls -dr ../../../zlibtcl*[0-9].[0-9]* 2>/dev/null` \
6309 ${srcdir}/../zlibtcl \
6310 `ls -dr ${srcdir}/../zlibtcl*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
6311 `ls -dr ${srcdir}/../zlibtcl*[0-9].[0-9][0-9] 2>/dev/null` \
6312 `ls -dr ${srcdir}/../zlibtcl*[0-9].[0-9] 2>/dev/null` \
6313 `ls -dr ${srcdir}/../zlibtcl*[0-9].[0-9]* 2>/dev/null` \
6314 ; do
6315 if test -f "$i/zlibtclConfig.sh" ; then
6316 ac_cv_c_zlibtclconfig=`(cd $i; pwd)`
6317 break
6318 fi
6319 if test -f "$i/unix/zlibtclConfig.sh" ; then
6320 ac_cv_c_zlibtclconfig=`(cd $i/unix; pwd)`
6321 break
6322 fi
6323 done
6324 fi
6325
6326 # check in a few common install locations
6327 if test x"${ac_cv_c_zlibtclconfig}" = x ; then
6328 for i in `ls -d ${libdir} 2>/dev/null` \
6329 `ls -d ${exec_prefix}/lib 2>/dev/null` \
6330 `ls -d ${prefix}/lib 2>/dev/null` \
6331 `ls -d /usr/local/lib 2>/dev/null` \
6332 `ls -d /usr/contrib/lib 2>/dev/null` \
6333 `ls -d /usr/pkg/lib 2>/dev/null` \
6334 `ls -d /usr/lib 2>/dev/null` \
6335 `ls -d /usr/lib64 2>/dev/null` \
6336 ; do
6337 if test -f "$i/zlibtclConfig.sh" ; then
6338 ac_cv_c_zlibtclconfig=`(cd $i; pwd)`
6339 break
6340 fi
6341 done
6342 fi
6343 ;;
6344 esac
6345 fi
6346
6347
6348 if test x"${ac_cv_c_zlibtclconfig}" = x ; then
6349 zlibtcl_BIN_DIR="# no zlibtcl configs found"
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find zlibtcl configuration definitions" >&5
6351 printf "%s\n" "$as_me: WARNING: Cannot find zlibtcl configuration definitions" >&2;}
6352 exit 0
6353 else
6354 no_zlibtcl=
6355 zlibtcl_BIN_DIR=${ac_cv_c_zlibtclconfig}
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $zlibtcl_BIN_DIR/zlibtclConfig.sh" >&5
6357 printf "%s\n" "found $zlibtcl_BIN_DIR/zlibtclConfig.sh" >&6; }
6358 fi
6359 fi
6360
6361
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${zlibtcl_BIN_DIR}/zlibtclConfig.sh" >&5
6363 printf %s "checking for existence of ${zlibtcl_BIN_DIR}/zlibtclConfig.sh... " >&6; }
6364
6365 if test -f "${zlibtcl_BIN_DIR}/zlibtclConfig.sh" ; then
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
6367 printf "%s\n" "loading" >&6; }
6368 . "${zlibtcl_BIN_DIR}/zlibtclConfig.sh"
6369 else
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
6371 printf "%s\n" "file not found" >&6; }
6372 fi
6373
6374 #
6375 # If the zlibtcl_BIN_DIR is the build directory (not the install directory),
6376 # then set the common variable name to the value of the build variables.
6377 # For example, the variable zlibtcl_LIB_SPEC will be set to the value
6378 # of zlibtcl_BUILD_LIB_SPEC. An extension should make use of zlibtcl_LIB_SPEC
6379 # instead of zlibtcl_BUILD_LIB_SPEC since it will work with both an
6380 # installed and uninstalled version of Tcl.
6381 #
6382
6383 if test -f "${zlibtcl_BIN_DIR}/Makefile" ; then
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for zlibtcl" >&5
6385 printf "%s\n" "$as_me: WARNING: Found Makefile - using build library specs for zlibtcl" >&2;}
6386 zlibtcl_LIB_SPEC=${zlibtcl_BUILD_LIB_SPEC}
6387 zlibtcl_STUB_LIB_SPEC=${zlibtcl_BUILD_STUB_LIB_SPEC}
6388 zlibtcl_STUB_LIB_PATH=${zlibtcl_BUILD_STUB_LIB_PATH}
6389 zlibtcl_INCLUDE_SPEC=${zlibtcl_BUILD_INCLUDE_SPEC}
6390 zlibtcl_LIBRARY_PATH=${zlibtcl_LIBRARY_PATH}
6391 fi
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404 # Allow the caller to prevent this auto-check by specifying any 2nd arg
6405 if test "x" = x
6406 then :
6407
6408 # Check both upper and lower-case variants
6409 # If a dev wanted non-stubs libs, this function could take an option
6410 # to not use _STUB in the paths below
6411 if test "x${zlibtcl_STUB_LIB_SPEC}" = x
6412 then :
6413
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For ZLIBTCL_STUB library for LIBS" >&5
6415 printf %s "checking For ZLIBTCL_STUB library for LIBS... " >&6; }
6416 # This simplifies the use of stub libraries by automatically adding
6417 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
6418 # but this is called before CONFIG_CFLAGS. More importantly, this adds
6419 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
6420 if test "x${ZLIBTCL_STUB_LIB_SPEC}" != "x" ; then
6421 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
6422
6423 vars="\"`${CYGPATH} ${ZLIBTCL_STUB_LIB_PATH}`\""
6424 for i in $vars; do
6425 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6426 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6427 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6428 fi
6429 PKG_LIBS="$PKG_LIBS $i"
6430 done
6431
6432
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using ZLIBTCL_STUB_LIB_PATH ${ZLIBTCL_STUB_LIB_PATH}" >&5
6434 printf "%s\n" "using ZLIBTCL_STUB_LIB_PATH ${ZLIBTCL_STUB_LIB_PATH}" >&6; }
6435 else
6436
6437 vars="${ZLIBTCL_STUB_LIB_SPEC}"
6438 for i in $vars; do
6439 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6440 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6441 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6442 fi
6443 PKG_LIBS="$PKG_LIBS $i"
6444 done
6445
6446
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using ZLIBTCL_STUB_LIB_SPEC ${ZLIBTCL_STUB_LIB_SPEC}" >&5
6448 printf "%s\n" "using ZLIBTCL_STUB_LIB_SPEC ${ZLIBTCL_STUB_LIB_SPEC}" >&6; }
6449 fi
6450 else
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
6452 printf "%s\n" "file not found" >&6; }
6453 fi
6454
6455 else case e in #(
6456 e)
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For zlibtcl_STUB library for LIBS" >&5
6458 printf %s "checking For zlibtcl_STUB library for LIBS... " >&6; }
6459 # This simplifies the use of stub libraries by automatically adding
6460 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
6461 # but this is called before CONFIG_CFLAGS. More importantly, this adds
6462 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
6463 if test "x${zlibtcl_STUB_LIB_SPEC}" != "x" ; then
6464 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
6465
6466 vars="\"`${CYGPATH} ${zlibtcl_STUB_LIB_PATH}`\""
6467 for i in $vars; do
6468 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6469 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6470 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6471 fi
6472 PKG_LIBS="$PKG_LIBS $i"
6473 done
6474
6475
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using zlibtcl_STUB_LIB_PATH ${zlibtcl_STUB_LIB_PATH}" >&5
6477 printf "%s\n" "using zlibtcl_STUB_LIB_PATH ${zlibtcl_STUB_LIB_PATH}" >&6; }
6478 else
6479
6480 vars="${zlibtcl_STUB_LIB_SPEC}"
6481 for i in $vars; do
6482 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6483 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6484 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6485 fi
6486 PKG_LIBS="$PKG_LIBS $i"
6487 done
6488
6489
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using zlibtcl_STUB_LIB_SPEC ${zlibtcl_STUB_LIB_SPEC}" >&5
6491 printf "%s\n" "using zlibtcl_STUB_LIB_SPEC ${zlibtcl_STUB_LIB_SPEC}" >&6; }
6492 fi
6493 else
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
6495 printf "%s\n" "file not found" >&6; }
6496 fi
6497 ;;
6498 esac
6499 fi
6500
6501 fi
6502
6503
6504
6505
6506 #--------------------------------------------------------------------
6507 # Compute an absolute path to the src directory of module 'tkimg' so
6508 # that we are able to find its headers even if they are not installed.
6509 #--------------------------------------------------------------------
6510
6511 case $tkimg_SRC_DIR in
6512 /*) tkimg_SRC_PATH=$tkimg_SRC_DIR
6513 ;;
6514 *) # SRC_DIR relative, splice with BUILD_PATH
6515 tkimg_SRC_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`/$tkimg_SRC_DIR"
6516 esac
6517
6518 tkimg_BUILD_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`"
6519
6520 if test "${TEA_PLATFORM}" = "windows" ; then
6521 tkimg_SRC_PATH="`$CYGPATH $tkimg_SRC_PATH`"
6522 tkimg_BUILD_PATH="`$CYGPATH $tkimg_BUILD_PATH`"
6523 fi
6524
6525
6526
6527
6528
6529 #--------------------------------------------------------------------
6530 # Compute an absolute path to the src directory of module 'pngtcl' so
6531 # that we are able to find its headers even if they are not installed.
6532 #--------------------------------------------------------------------
6533
6534 case $pngtcl_SRC_DIR in
6535 /*) pngtcl_SRC_PATH=$pngtcl_SRC_DIR
6536 ;;
6537 *) # SRC_DIR relative, splice with BUILD_PATH
6538 pngtcl_SRC_PATH="`dirname $pngtcl_BUILD_STUB_LIB_PATH`/$pngtcl_SRC_DIR"
6539 esac
6540
6541 pngtcl_BUILD_PATH="`dirname $pngtcl_BUILD_STUB_LIB_PATH`"
6542
6543 if test "${TEA_PLATFORM}" = "windows" ; then
6544 pngtcl_SRC_PATH="`$CYGPATH $pngtcl_SRC_PATH`"
6545 pngtcl_BUILD_PATH="`$CYGPATH $pngtcl_BUILD_PATH`"
6546 fi
6547
6548
6549
6550
6551
6552 #--------------------------------------------------------------------
6553 # Compute an absolute path to the src directory of module 'zlibtcl' so
6554 # that we are able to find its headers even if they are not installed.
6555 #--------------------------------------------------------------------
6556
6557 case $zlibtcl_SRC_DIR in
6558 /*) zlibtcl_SRC_PATH=$zlibtcl_SRC_DIR
6559 ;;
6560 *) # SRC_DIR relative, splice with BUILD_PATH
6561 zlibtcl_SRC_PATH="`dirname $zlibtcl_BUILD_STUB_LIB_PATH`/$zlibtcl_SRC_DIR"
6562 esac
6563
6564 zlibtcl_BUILD_PATH="`dirname $zlibtcl_BUILD_STUB_LIB_PATH`"
6565
6566 if test "${TEA_PLATFORM}" = "windows" ; then
6567 zlibtcl_SRC_PATH="`$CYGPATH $zlibtcl_SRC_PATH`"
6568 zlibtcl_BUILD_PATH="`$CYGPATH $zlibtcl_BUILD_PATH`"
6569 fi
6570
6571
6572
6573
6574
6575 #-----------------------------------------------------------------------
6576 # Specify the C source files to compile in TEA_ADD_SOURCES,
6577 # public headers that need to be installed in TEA_ADD_HEADERS,
6578 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
6579 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
6580 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
6581 # and PKG_TCL_SOURCES.
6582 #-----------------------------------------------------------------------
6583
6584
6585 vars="png.c"
6586 for i in $vars; do
6587 case $i in
6588 \$*)
6589 # allow $-var names
6590 PKG_SOURCES="$PKG_SOURCES $i"
6591 PKG_OBJECTS="$PKG_OBJECTS $i"
6592 ;;
6593 *)
6594 # check for existence - allows for generic/win/unix VPATH
6595 # To add more dirs here (like 'src'), you have to update VPATH
6596 # in Makefile.in as well
6597 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6598 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6599 -a ! -f "${srcdir}/macosx/$i" \
6600 ; then
6601 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
6602 fi
6603 PKG_SOURCES="$PKG_SOURCES $i"
6604 # this assumes it is in a VPATH dir
6605 i=`basename $i`
6606 # handle user calling this before or after TEA_SETUP_COMPILER
6607 if test x"${OBJEXT}" != x ; then
6608 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6609 else
6610 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6611 fi
6612 PKG_OBJECTS="$PKG_OBJECTS $j"
6613 ;;
6614 esac
6615 done
6616
6617
6618
6619
6620 vars=""
6621 for i in $vars; do
6622 # check for existence, be strict because it is installed
6623 if test ! -f "${srcdir}/$i" ; then
6624 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
6625 fi
6626 PKG_HEADERS="$PKG_HEADERS $i"
6627 done
6628
6629
6630
6631 vars="-I\"`\${CYGPATH} \${tkimg_SRC_PATH}`\""
6632 for i in $vars; do
6633 PKG_INCLUDES="$PKG_INCLUDES $i"
6634 done
6635
6636
6637
6638 vars="-I\"`\${CYGPATH} \${pngtcl_SRC_PATH}`\""
6639 for i in $vars; do
6640 PKG_INCLUDES="$PKG_INCLUDES $i"
6641 done
6642
6643
6644
6645 vars="-I\"`\${CYGPATH} \${pngtcl_BUILD_PATH}`\""
6646 for i in $vars; do
6647 PKG_INCLUDES="$PKG_INCLUDES $i"
6648 done
6649
6650
6651
6652 vars="-I\"`\${CYGPATH} \${zlibtcl_SRC_PATH}`\""
6653 for i in $vars; do
6654 PKG_INCLUDES="$PKG_INCLUDES $i"
6655 done
6656
6657
6658
6659 vars="-I\"`\${CYGPATH} \${zlibtcl_BUILD_PATH}`\""
6660 for i in $vars; do
6661 PKG_INCLUDES="$PKG_INCLUDES $i"
6662 done
6663
6664
6665
6666 vars="-I."
6667 for i in $vars; do
6668 PKG_INCLUDES="$PKG_INCLUDES $i"
6669 done
6670
6671
6672
6673 vars=""
6674 for i in $vars; do
6675 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6676 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6677 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6678 fi
6679 PKG_LIBS="$PKG_LIBS $i"
6680 done
6681
6682
6683
6684 PKG_CFLAGS="$PKG_CFLAGS -DTKIMG_VERSION=\\\"\${tkimg_VERSION}\\\""
6685
6686
6687
6688 PKG_CFLAGS="$PKG_CFLAGS -DPNGTCL_VERSION=\\\"\${pngtcl_VERSION}\\\""
6689
6690
6691
6692 PKG_CFLAGS="$PKG_CFLAGS -DZLIBTCL_VERSION=\\\"\${zlibtcl_VERSION}\\\""
6693
6694
6695
6696 vars=""
6697 for i in $vars; do
6698 # check for existence - allows for generic/win/unix VPATH
6699 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6700 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6701 -a ! -f "${srcdir}/macosx/$i" \
6702 ; then
6703 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
6704 fi
6705 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
6706 # this assumes it is in a VPATH dir
6707 i=`basename $i`
6708 # handle user calling this before or after TEA_SETUP_COMPILER
6709 if test x"${OBJEXT}" != x ; then
6710 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6711 else
6712 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6713 fi
6714 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
6715 done
6716
6717
6718
6719
6720 vars=""
6721 for i in $vars; do
6722 # check for existence, be strict because it is installed
6723 if test ! -f "${srcdir}/$i" ; then
6724 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
6725 fi
6726 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
6727 done
6728
6729
6730
6731 PUP="`echo ${PACKAGE_NAME}| tr 'a-z' 'A-Z'`"
6732
6733 sed < "`${CYGPATH} ${srcdir}/../init.c`" > "init.c" \
6734 -e "s/@CPACKAGE@/${CPACKAGE}/" \
6735 -e "s/%PACKAGE%/${PACKAGE_NAME}/" \
6736 -e "s/%PACKAGE_UP%/${PUP}/" \
6737 -e "s/%PHIMGTYPE%/${PHIMGTYPE}/"
6738
6739 # init.c is an included source file, not a source by itself
6740 # FUTURE: Do this through AC_OUTPUT!!
6741
6742 #--------------------------------------------------------------------
6743 # __CHANGE__
6744 # Choose which headers you need. Extension authors should try very
6745 # hard to only rely on the Tcl public header files. Internal headers
6746 # contain private data structures and are subject to change without
6747 # notice.
6748 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
6749 #--------------------------------------------------------------------
6750
6751
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
6753 printf %s "checking for Tcl public headers... " >&6; }
6754
6755
6756 # Check whether --with-tclinclude was given.
6757 if test ${with_tclinclude+y}
6758 then :
6759 withval=$with_tclinclude; with_tclinclude=${withval}
6760 fi
6761
6762
6763 if test ${ac_cv_c_tclh+y}
6764 then :
6765 printf %s "(cached) " >&6
6766 else case e in #(
6767 e)
6768 # Use the value from --with-tclinclude, if it was given
6769
6770 if test x"${with_tclinclude}" != x ; then
6771 if test -f "${with_tclinclude}/tcl.h" ; then
6772 ac_cv_c_tclh=${with_tclinclude}
6773 else
6774 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
6775 fi
6776 else
6777 list=""
6778 if test "`uname -s`" = "Darwin"; then
6779 # If Tcl was built as a framework, attempt to use
6780 # the framework's Headers directory
6781 case ${TCL_DEFS} in
6782 *TCL_FRAMEWORK*)
6783 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
6784 ;;
6785 esac
6786 fi
6787
6788 # Look in the source dir only if Tcl is not installed,
6789 # and in that situation, look there before installed locations.
6790 if test -f "${TCL_BIN_DIR}/Makefile" ; then
6791 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
6792 fi
6793
6794 # Check order: pkg --prefix location, Tcl's --prefix location,
6795 # relative to directory of tclConfig.sh.
6796
6797 eval "temp_includedir=${includedir}"
6798 list="$list \
6799 `ls -d ${temp_includedir} 2>/dev/null` \
6800 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6801 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6802 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6803 list="$list /usr/local/include /usr/include"
6804 if test x"${TCL_INCLUDE_SPEC}" != x ; then
6805 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6806 list="$list `ls -d ${d} 2>/dev/null`"
6807 fi
6808 fi
6809 for i in $list ; do
6810 if test -f "$i/tcl.h" ; then
6811 ac_cv_c_tclh=$i
6812 break
6813 fi
6814 done
6815 fi
6816 ;;
6817 esac
6818 fi
6819
6820
6821 # Print a message based on how we determined the include path
6822
6823 if test x"${ac_cv_c_tclh}" = x ; then
6824 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
6825 else
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
6827 printf "%s\n" "${ac_cv_c_tclh}" >&6; }
6828 fi
6829
6830 # Convert to a native path and substitute into the output files.
6831
6832 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
6833
6834 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6835
6836
6837
6838
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk public headers" >&5
6840 printf %s "checking for Tk public headers... " >&6; }
6841
6842
6843 # Check whether --with-tkinclude was given.
6844 if test ${with_tkinclude+y}
6845 then :
6846 withval=$with_tkinclude; with_tkinclude=${withval}
6847 fi
6848
6849
6850 if test ${ac_cv_c_tkh+y}
6851 then :
6852 printf %s "(cached) " >&6
6853 else case e in #(
6854 e)
6855 # Use the value from --with-tkinclude, if it was given
6856
6857 if test x"${with_tkinclude}" != x ; then
6858 if test -f "${with_tkinclude}/tk.h" ; then
6859 ac_cv_c_tkh=${with_tkinclude}
6860 else
6861 as_fn_error $? "${with_tkinclude} directory does not contain tk.h" "$LINENO" 5
6862 fi
6863 else
6864 list=""
6865 if test "`uname -s`" = "Darwin"; then
6866 # If Tk was built as a framework, attempt to use
6867 # the framework's Headers directory.
6868 case ${TK_DEFS} in
6869 *TK_FRAMEWORK*)
6870 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`"
6871 ;;
6872 esac
6873 fi
6874
6875 # Look in the source dir only if Tk is not installed,
6876 # and in that situation, look there before installed locations.
6877 if test -f "${TK_BIN_DIR}/Makefile" ; then
6878 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`"
6879 fi
6880
6881 # Check order: pkg --prefix location, Tk's --prefix location,
6882 # relative to directory of tkConfig.sh, Tcl's --prefix location,
6883 # relative to directory of tclConfig.sh.
6884
6885 eval "temp_includedir=${includedir}"
6886 list="$list \
6887 `ls -d ${temp_includedir} 2>/dev/null` \
6888 `ls -d ${TK_PREFIX}/include 2>/dev/null` \
6889 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \
6890 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6891 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6892 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6893 list="$list /usr/local/include /usr/include"
6894 if test x"${TK_INCLUDE_SPEC}" != x ; then
6895 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6896 list="$list `ls -d ${d} 2>/dev/null`"
6897 fi
6898 fi
6899 for i in $list ; do
6900 if test -f "$i/tk.h" ; then
6901 ac_cv_c_tkh=$i
6902 break
6903 fi
6904 done
6905 fi
6906 ;;
6907 esac
6908 fi
6909
6910
6911 # Print a message based on how we determined the include path
6912
6913 if test x"${ac_cv_c_tkh}" = x ; then
6914 as_fn_error $? "tk.h not found. Please specify its location with --with-tkinclude" "$LINENO" 5
6915 else
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tkh}" >&5
6917 printf "%s\n" "${ac_cv_c_tkh}" >&6; }
6918 fi
6919
6920 # Convert to a native path and substitute into the output files.
6921
6922 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}`
6923
6924 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6925
6926
6927
6928 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then
6929 # On Windows and Aqua, we need the X compat headers
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
6931 printf %s "checking for X11 header files... " >&6; }
6932 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then
6933 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`"
6934 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6935
6936 fi
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${INCLUDE_DIR_NATIVE}" >&5
6938 printf "%s\n" "${INCLUDE_DIR_NATIVE}" >&6; }
6939 fi
6940
6941
6942 #--------------------------------------------------------------------
6943 # A few miscellaneous platform-specific items:
6944 #
6945 # Windows creates a few extra files that need to be cleaned up.
6946 # We can add more files to clean if our extension creates any extra
6947 # files in the future.
6948 #
6949 # Define any extra compiler flags in the PACKAGE_CFLAGS variable.
6950 # These will be appended to the current set of compiler flags for
6951 # your system.
6952 #--------------------------------------------------------------------
6953
6954 if test "${TEA_PLATFORM}" = "windows" ; then
6955 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6956 fi
6957
6958
6959 #--------------------------------------------------------------------
6960 # Check whether --enable-threads or --disable-threads was given.
6961 # So far only Tcl responds to this one.
6962 #--------------------------------------------------------------------
6963
6964
6965 # Check whether --enable-threads was given.
6966 if test ${enable_threads+y}
6967 then :
6968 enableval=$enable_threads; tcl_ok=$enableval
6969 else case e in #(
6970 e) tcl_ok=yes ;;
6971 esac
6972 fi
6973
6974
6975 if test "${enable_threads+set}" = set; then
6976 enableval="$enable_threads"
6977 tcl_ok=$enableval
6978 else
6979 tcl_ok=yes
6980 fi
6981
6982 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
6983 TCL_THREADS=1
6984
6985 if test "${TEA_PLATFORM}" != "windows" ; then
6986 # We are always OK on Windows, so check what this platform wants:
6987
6988 # USE_THREAD_ALLOC tells us to try the special thread-based
6989 # allocator that significantly reduces lock contention
6990
6991 printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h
6992
6993
6994 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
6995
6996 if test "`uname -s`" = "SunOS" ; then
6997
6998 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6999
7000 fi
7001
7002 printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
7003
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
7005 printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
7006 if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
7007 then :
7008 printf %s "(cached) " >&6
7009 else case e in #(
7010 e) ac_check_lib_save_LIBS=$LIBS
7011 LIBS="-lpthread $LIBS"
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014
7015 /* Override any GCC internal prototype to avoid an error.
7016 Use char because int might match the return type of a GCC
7017 builtin and then its argument prototype would still apply.
7018 The 'extern "C"' is for builds by C++ compilers;
7019 although this is not generally supported in C code supporting it here
7020 has little cost and some practical benefit (sr 110532). */
7021 #ifdef __cplusplus
7022 extern "C"
7023 #endif
7024 char pthread_mutex_init (void);
7025 int
7026 main (void)
7027 {
7028 return pthread_mutex_init ();
7029 ;
7030 return 0;
7031 }
7032 _ACEOF
7033 if ac_fn_c_try_link "$LINENO"
7034 then :
7035 ac_cv_lib_pthread_pthread_mutex_init=yes
7036 else case e in #(
7037 e) ac_cv_lib_pthread_pthread_mutex_init=no ;;
7038 esac
7039 fi
7040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7041 conftest$ac_exeext conftest.$ac_ext
7042 LIBS=$ac_check_lib_save_LIBS ;;
7043 esac
7044 fi
7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
7046 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
7047 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
7048 then :
7049 tcl_ok=yes
7050 else case e in #(
7051 e) tcl_ok=no ;;
7052 esac
7053 fi
7054
7055 if test "$tcl_ok" = "no"; then
7056 # Check a little harder for __pthread_mutex_init in the same
7057 # library, as some systems hide it there until pthread.h is
7058 # defined. We could alternatively do an AC_TRY_COMPILE with
7059 # pthread.h, but that will work with libpthread really doesn't
7060 # exist, like AIX 4.2. [Bug: 4359]
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
7062 printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; }
7063 if test ${ac_cv_lib_pthread___pthread_mutex_init+y}
7064 then :
7065 printf %s "(cached) " >&6
7066 else case e in #(
7067 e) ac_check_lib_save_LIBS=$LIBS
7068 LIBS="-lpthread $LIBS"
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071
7072 /* Override any GCC internal prototype to avoid an error.
7073 Use char because int might match the return type of a GCC
7074 builtin and then its argument prototype would still apply.
7075 The 'extern "C"' is for builds by C++ compilers;
7076 although this is not generally supported in C code supporting it here
7077 has little cost and some practical benefit (sr 110532). */
7078 #ifdef __cplusplus
7079 extern "C"
7080 #endif
7081 char __pthread_mutex_init (void);
7082 int
7083 main (void)
7084 {
7085 return __pthread_mutex_init ();
7086 ;
7087 return 0;
7088 }
7089 _ACEOF
7090 if ac_fn_c_try_link "$LINENO"
7091 then :
7092 ac_cv_lib_pthread___pthread_mutex_init=yes
7093 else case e in #(
7094 e) ac_cv_lib_pthread___pthread_mutex_init=no ;;
7095 esac
7096 fi
7097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7098 conftest$ac_exeext conftest.$ac_ext
7099 LIBS=$ac_check_lib_save_LIBS ;;
7100 esac
7101 fi
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
7103 printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
7104 if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes
7105 then :
7106 tcl_ok=yes
7107 else case e in #(
7108 e) tcl_ok=no ;;
7109 esac
7110 fi
7111
7112 fi
7113
7114 if test "$tcl_ok" = "yes"; then
7115 # The space is needed
7116 THREADS_LIBS=" -lpthread"
7117 else
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
7119 printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; }
7120 if test ${ac_cv_lib_pthreads_pthread_mutex_init+y}
7121 then :
7122 printf %s "(cached) " >&6
7123 else case e in #(
7124 e) ac_check_lib_save_LIBS=$LIBS
7125 LIBS="-lpthreads $LIBS"
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128
7129 /* Override any GCC internal prototype to avoid an error.
7130 Use char because int might match the return type of a GCC
7131 builtin and then its argument prototype would still apply.
7132 The 'extern "C"' is for builds by C++ compilers;
7133 although this is not generally supported in C code supporting it here
7134 has little cost and some practical benefit (sr 110532). */
7135 #ifdef __cplusplus
7136 extern "C"
7137 #endif
7138 char pthread_mutex_init (void);
7139 int
7140 main (void)
7141 {
7142 return pthread_mutex_init ();
7143 ;
7144 return 0;
7145 }
7146 _ACEOF
7147 if ac_fn_c_try_link "$LINENO"
7148 then :
7149 ac_cv_lib_pthreads_pthread_mutex_init=yes
7150 else case e in #(
7151 e) ac_cv_lib_pthreads_pthread_mutex_init=no ;;
7152 esac
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7155 conftest$ac_exeext conftest.$ac_ext
7156 LIBS=$ac_check_lib_save_LIBS ;;
7157 esac
7158 fi
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
7160 printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
7161 if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes
7162 then :
7163 tcl_ok=yes
7164 else case e in #(
7165 e) tcl_ok=no ;;
7166 esac
7167 fi
7168
7169 if test "$tcl_ok" = "yes"; then
7170 # The space is needed
7171 THREADS_LIBS=" -lpthreads"
7172 else
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
7174 printf %s "checking for pthread_mutex_init in -lc... " >&6; }
7175 if test ${ac_cv_lib_c_pthread_mutex_init+y}
7176 then :
7177 printf %s "(cached) " >&6
7178 else case e in #(
7179 e) ac_check_lib_save_LIBS=$LIBS
7180 LIBS="-lc $LIBS"
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183
7184 /* Override any GCC internal prototype to avoid an error.
7185 Use char because int might match the return type of a GCC
7186 builtin and then its argument prototype would still apply.
7187 The 'extern "C"' is for builds by C++ compilers;
7188 although this is not generally supported in C code supporting it here
7189 has little cost and some practical benefit (sr 110532). */
7190 #ifdef __cplusplus
7191 extern "C"
7192 #endif
7193 char pthread_mutex_init (void);
7194 int
7195 main (void)
7196 {
7197 return pthread_mutex_init ();
7198 ;
7199 return 0;
7200 }
7201 _ACEOF
7202 if ac_fn_c_try_link "$LINENO"
7203 then :
7204 ac_cv_lib_c_pthread_mutex_init=yes
7205 else case e in #(
7206 e) ac_cv_lib_c_pthread_mutex_init=no ;;
7207 esac
7208 fi
7209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7210 conftest$ac_exeext conftest.$ac_ext
7211 LIBS=$ac_check_lib_save_LIBS ;;
7212 esac
7213 fi
7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
7215 printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; }
7216 if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes
7217 then :
7218 tcl_ok=yes
7219 else case e in #(
7220 e) tcl_ok=no ;;
7221 esac
7222 fi
7223
7224 if test "$tcl_ok" = "no"; then
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
7226 printf %s "checking for pthread_mutex_init in -lc_r... " >&6; }
7227 if test ${ac_cv_lib_c_r_pthread_mutex_init+y}
7228 then :
7229 printf %s "(cached) " >&6
7230 else case e in #(
7231 e) ac_check_lib_save_LIBS=$LIBS
7232 LIBS="-lc_r $LIBS"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7235
7236 /* Override any GCC internal prototype to avoid an error.
7237 Use char because int might match the return type of a GCC
7238 builtin and then its argument prototype would still apply.
7239 The 'extern "C"' is for builds by C++ compilers;
7240 although this is not generally supported in C code supporting it here
7241 has little cost and some practical benefit (sr 110532). */
7242 #ifdef __cplusplus
7243 extern "C"
7244 #endif
7245 char pthread_mutex_init (void);
7246 int
7247 main (void)
7248 {
7249 return pthread_mutex_init ();
7250 ;
7251 return 0;
7252 }
7253 _ACEOF
7254 if ac_fn_c_try_link "$LINENO"
7255 then :
7256 ac_cv_lib_c_r_pthread_mutex_init=yes
7257 else case e in #(
7258 e) ac_cv_lib_c_r_pthread_mutex_init=no ;;
7259 esac
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7262 conftest$ac_exeext conftest.$ac_ext
7263 LIBS=$ac_check_lib_save_LIBS ;;
7264 esac
7265 fi
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
7267 printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
7268 if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes
7269 then :
7270 tcl_ok=yes
7271 else case e in #(
7272 e) tcl_ok=no ;;
7273 esac
7274 fi
7275
7276 if test "$tcl_ok" = "yes"; then
7277 # The space is needed
7278 THREADS_LIBS=" -pthread"
7279 else
7280 TCL_THREADS=0
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
7282 printf "%s\n" "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
7283 fi
7284 fi
7285 fi
7286 fi
7287 fi
7288 else
7289 TCL_THREADS=0
7290 fi
7291 # Do checking message here to not mess up interleaved configure output
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
7293 printf %s "checking for building with threads... " >&6; }
7294 if test "${TCL_THREADS}" = 1; then
7295
7296 printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h
7297
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
7299 printf "%s\n" "yes (default)" >&6; }
7300 else
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 printf "%s\n" "no" >&6; }
7303 fi
7304 # TCL_THREADS sanity checking. See if our request for building with
7305 # threads is the same as the way Tcl was built. If not, warn the user.
7306 case ${TCL_DEFS} in
7307 *THREADS=1*)
7308 if test "${TCL_THREADS}" = "0"; then
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
7310 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
7311 that IS thread-enabled. It is recommended to use --enable-threads." >&5
7312 printf "%s\n" "$as_me: WARNING:
7313 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
7314 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
7315 fi
7316 ;;
7317 esac
7318
7319
7320
7321 #--------------------------------------------------------------------
7322 # The statement below defines a collection of symbols related to
7323 # building as a shared library instead of a static library.
7324 #--------------------------------------------------------------------
7325
7326
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
7328 printf %s "checking how to build libraries... " >&6; }
7329 # Check whether --enable-shared was given.
7330 if test ${enable_shared+y}
7331 then :
7332 enableval=$enable_shared; shared_ok=$enableval
7333 else case e in #(
7334 e) shared_ok=yes ;;
7335 esac
7336 fi
7337
7338
7339 if test "${enable_shared+set}" = set; then
7340 enableval="$enable_shared"
7341 shared_ok=$enableval
7342 else
7343 shared_ok=yes
7344 fi
7345
7346 # Check whether --enable-stubs was given.
7347 if test ${enable_stubs+y}
7348 then :
7349 enableval=$enable_stubs; stubs_ok=$enableval
7350 else case e in #(
7351 e) stubs_ok=yes ;;
7352 esac
7353 fi
7354
7355
7356 if test "${enable_stubs+set}" = set; then
7357 enableval="$enable_stubs"
7358 stubs_ok=$enableval
7359 else
7360 stubs_ok=yes
7361 fi
7362
7363 # Stubs are always enabled for shared builds
7364 if test "$shared_ok" = "yes" ; then
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
7366 printf "%s\n" "shared" >&6; }
7367 SHARED_BUILD=1
7368 STUBS_BUILD=1
7369 else
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
7371 printf "%s\n" "static" >&6; }
7372 SHARED_BUILD=0
7373
7374 printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h
7375
7376 if test "$stubs_ok" = "yes" ; then
7377 STUBS_BUILD=1
7378 else
7379 STUBS_BUILD=0
7380 fi
7381 fi
7382 if test "${STUBS_BUILD}" = "1" ; then
7383
7384 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
7385
7386
7387 printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h
7388
7389 if test "${TEA_WINDOWINGSYSTEM}" != ""; then
7390
7391 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
7392
7393 fi
7394 fi
7395
7396
7397
7398
7399
7400 #--------------------------------------------------------------------
7401 # This macro figures out what flags to use with the compiler/linker
7402 # when building shared/static debug/optimized objects. This information
7403 # can be taken from the tclConfig.sh file, but this figures it all out.
7404 #--------------------------------------------------------------------
7405
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 printf %s "checking for $ac_word... " >&6; }
7411 if test ${ac_cv_prog_RANLIB+y}
7412 then :
7413 printf %s "(cached) " >&6
7414 else case e in #(
7415 e) if test -n "$RANLIB"; then
7416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421 IFS=$as_save_IFS
7422 case $as_dir in #(((
7423 '') as_dir=./ ;;
7424 */) ;;
7425 *) as_dir=$as_dir/ ;;
7426 esac
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi ;;
7438 esac
7439 fi
7440 RANLIB=$ac_cv_prog_RANLIB
7441 if test -n "$RANLIB"; then
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7443 printf "%s\n" "$RANLIB" >&6; }
7444 else
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 printf "%s\n" "no" >&6; }
7447 fi
7448
7449
7450 fi
7451 if test -z "$ac_cv_prog_RANLIB"; then
7452 ac_ct_RANLIB=$RANLIB
7453 # Extract the first word of "ranlib", so it can be a program name with args.
7454 set dummy ranlib; ac_word=$2
7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 printf %s "checking for $ac_word... " >&6; }
7457 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7458 then :
7459 printf %s "(cached) " >&6
7460 else case e in #(
7461 e) if test -n "$ac_ct_RANLIB"; then
7462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7463 else
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467 IFS=$as_save_IFS
7468 case $as_dir in #(((
7469 '') as_dir=./ ;;
7470 */) ;;
7471 *) as_dir=$as_dir/ ;;
7472 esac
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7475 ac_cv_prog_ac_ct_RANLIB="ranlib"
7476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7477 break 2
7478 fi
7479 done
7480 done
7481 IFS=$as_save_IFS
7482
7483 fi ;;
7484 esac
7485 fi
7486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7487 if test -n "$ac_ct_RANLIB"; then
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7489 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7490 else
7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 printf "%s\n" "no" >&6; }
7493 fi
7494
7495 if test "x$ac_ct_RANLIB" = x; then
7496 RANLIB=":"
7497 else
7498 case $cross_compiling:$ac_tool_warned in
7499 yes:)
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned=yes ;;
7503 esac
7504 RANLIB=$ac_ct_RANLIB
7505 fi
7506 else
7507 RANLIB="$ac_cv_prog_RANLIB"
7508 fi
7509
7510
7511
7512
7513 # Step 0.a: Enable 64 bit support?
7514
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
7516 printf %s "checking if 64bit support is requested... " >&6; }
7517 # Check whether --enable-64bit was given.
7518 if test ${enable_64bit+y}
7519 then :
7520 enableval=$enable_64bit; do64bit=$enableval
7521 else case e in #(
7522 e) do64bit=no ;;
7523 esac
7524 fi
7525
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
7527 printf "%s\n" "$do64bit" >&6; }
7528
7529 # Step 0.b: Enable Solaris 64 bit VIS support?
7530
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
7532 printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
7533 # Check whether --enable-64bit-vis was given.
7534 if test ${enable_64bit_vis+y}
7535 then :
7536 enableval=$enable_64bit_vis; do64bitVIS=$enableval
7537 else case e in #(
7538 e) do64bitVIS=no ;;
7539 esac
7540 fi
7541
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
7543 printf "%s\n" "$do64bitVIS" >&6; }
7544 # Force 64bit on with VIS
7545 if test "$do64bitVIS" = "yes"
7546 then :
7547 do64bit=yes
7548 fi
7549
7550 # Step 0.c: Check if visibility support is available. Do this here so
7551 # that platform specific alternatives can be used below if this fails.
7552
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
7554 printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
7555 if test ${tcl_cv_cc_visibility_hidden+y}
7556 then :
7557 printf %s "(cached) " >&6
7558 else case e in #(
7559 e)
7560 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563
7564 extern __attribute__((__visibility__("hidden"))) void f(void);
7565 void f(void) {}
7566 int
7567 main (void)
7568 {
7569 f();
7570 ;
7571 return 0;
7572 }
7573 _ACEOF
7574 if ac_fn_c_try_link "$LINENO"
7575 then :
7576 tcl_cv_cc_visibility_hidden=yes
7577 else case e in #(
7578 e) tcl_cv_cc_visibility_hidden=no ;;
7579 esac
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7582 conftest$ac_exeext conftest.$ac_ext
7583 CFLAGS=$hold_cflags ;;
7584 esac
7585 fi
7586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
7587 printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
7588 if test $tcl_cv_cc_visibility_hidden = yes
7589 then :
7590
7591
7592 printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
7593
7594
7595 printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
7596
7597
7598 fi
7599
7600 # Step 0.d: Disable -rpath support?
7601
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
7603 printf %s "checking if rpath support is requested... " >&6; }
7604 # Check whether --enable-rpath was given.
7605 if test ${enable_rpath+y}
7606 then :
7607 enableval=$enable_rpath; doRpath=$enableval
7608 else case e in #(
7609 e) doRpath=yes ;;
7610 esac
7611 fi
7612
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
7614 printf "%s\n" "$doRpath" >&6; }
7615
7616 # Set the variable "system" to hold the name and version number
7617 # for the system.
7618
7619
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
7621 printf %s "checking system version... " >&6; }
7622 if test ${tcl_cv_sys_version+y}
7623 then :
7624 printf %s "(cached) " >&6
7625 else case e in #(
7626 e)
7627 # TEA specific:
7628 if test "${TEA_PLATFORM}" = "windows" ; then
7629 tcl_cv_sys_version=windows
7630 else
7631 tcl_cv_sys_version=`uname -s`-`uname -r`
7632 if test "$?" -ne 0 ; then
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
7634 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
7635 tcl_cv_sys_version=unknown
7636 else
7637 if test "`uname -s`" = "AIX" ; then
7638 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
7639 fi
7640 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
7641 tcl_cv_sys_version=NetBSD-Debian
7642 fi
7643 fi
7644 fi
7645 ;;
7646 esac
7647 fi
7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
7649 printf "%s\n" "$tcl_cv_sys_version" >&6; }
7650 system=$tcl_cv_sys_version
7651
7652
7653 # Require ranlib early so we can override it in special cases below.
7654
7655
7656
7657 # Set configuration options based on system name and version.
7658 # This is similar to Tcl's unix/tcl.m4 except that we've added a
7659 # "windows" case and removed some core-only vars.
7660
7661 do64bit_ok=no
7662 # default to '{$LIBS}' and set to "" on per-platform necessary basis
7663 SHLIB_LD_LIBS='${LIBS}'
7664 # When ld needs options to work in 64-bit mode, put them in
7665 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
7666 # is disabled by the user. [Bug 1016796]
7667 LDFLAGS_ARCH=""
7668 UNSHARED_LIB_SUFFIX=""
7669 # TEA specific: use PACKAGE_VERSION instead of VERSION
7670 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
7671 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
7672 TCL_LIB_VERSIONS_OK=ok
7673 CFLAGS_DEBUG=-g
7674 if test "$GCC" = yes
7675 then :
7676
7677 CFLAGS_OPTIMIZE=-O2
7678 CFLAGS_WARNING="-Wall"
7679
7680 else case e in #(
7681 e)
7682 CFLAGS_OPTIMIZE=-O
7683 CFLAGS_WARNING=""
7684 ;;
7685 esac
7686 fi
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}ar; ac_word=$2
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 printf %s "checking for $ac_word... " >&6; }
7692 if test ${ac_cv_prog_AR+y}
7693 then :
7694 printf %s "(cached) " >&6
7695 else case e in #(
7696 e) if test -n "$AR"; then
7697 ac_cv_prog_AR="$AR" # Let the user override the test.
7698 else
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 for as_dir in $PATH
7701 do
7702 IFS=$as_save_IFS
7703 case $as_dir in #(((
7704 '') as_dir=./ ;;
7705 */) ;;
7706 *) as_dir=$as_dir/ ;;
7707 esac
7708 for ac_exec_ext in '' $ac_executable_extensions; do
7709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7710 ac_cv_prog_AR="${ac_tool_prefix}ar"
7711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7712 break 2
7713 fi
7714 done
7715 done
7716 IFS=$as_save_IFS
7717
7718 fi ;;
7719 esac
7720 fi
7721 AR=$ac_cv_prog_AR
7722 if test -n "$AR"; then
7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7724 printf "%s\n" "$AR" >&6; }
7725 else
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 printf "%s\n" "no" >&6; }
7728 fi
7729
7730
7731 fi
7732 if test -z "$ac_cv_prog_AR"; then
7733 ac_ct_AR=$AR
7734 # Extract the first word of "ar", so it can be a program name with args.
7735 set dummy ar; ac_word=$2
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 printf %s "checking for $ac_word... " >&6; }
7738 if test ${ac_cv_prog_ac_ct_AR+y}
7739 then :
7740 printf %s "(cached) " >&6
7741 else case e in #(
7742 e) if test -n "$ac_ct_AR"; then
7743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7747 do
7748 IFS=$as_save_IFS
7749 case $as_dir in #(((
7750 '') as_dir=./ ;;
7751 */) ;;
7752 *) as_dir=$as_dir/ ;;
7753 esac
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7756 ac_cv_prog_ac_ct_AR="ar"
7757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7758 break 2
7759 fi
7760 done
7761 done
7762 IFS=$as_save_IFS
7763
7764 fi ;;
7765 esac
7766 fi
7767 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7768 if test -n "$ac_ct_AR"; then
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7770 printf "%s\n" "$ac_ct_AR" >&6; }
7771 else
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 printf "%s\n" "no" >&6; }
7774 fi
7775
7776 if test "x$ac_ct_AR" = x; then
7777 AR=""
7778 else
7779 case $cross_compiling:$ac_tool_warned in
7780 yes:)
7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7783 ac_tool_warned=yes ;;
7784 esac
7785 AR=$ac_ct_AR
7786 fi
7787 else
7788 AR="$ac_cv_prog_AR"
7789 fi
7790
7791 STLIB_LD='${AR} cr'
7792 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
7793 if test "x$SHLIB_VERSION" = x
7794 then :
7795 SHLIB_VERSION=""
7796 else case e in #(
7797 e) SHLIB_VERSION=".$SHLIB_VERSION" ;;
7798 esac
7799 fi
7800 case $system in
7801 # TEA specific:
7802 windows)
7803 MACHINE="X86"
7804 if test "$do64bit" != "no" ; then
7805 case "$do64bit" in
7806 amd64|x64|yes)
7807 MACHINE="AMD64" ; # default to AMD64 64-bit build
7808 ;;
7809 arm64|aarch64)
7810 MACHINE="ARM64"
7811 ;;
7812 ia64)
7813 MACHINE="IA64"
7814 ;;
7815 esac
7816 fi
7817
7818 if test "$GCC" != "yes" ; then
7819 if test "${SHARED_BUILD}" = "0" ; then
7820 runtime=-MT
7821 else
7822 runtime=-MD
7823 fi
7824 case "x`echo \${VisualStudioVersion}`" in
7825 x1[4-9]*)
7826 lflags="${lflags} -nodefaultlib:libucrt.lib"
7827
7828 vars="ucrt.lib"
7829 for i in $vars; do
7830 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7831 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7832 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
7833 fi
7834 PKG_LIBS="$PKG_LIBS $i"
7835 done
7836
7837
7838 ;;
7839 *)
7840 ;;
7841 esac
7842
7843 if test "$do64bit" != "no" ; then
7844 CC="cl.exe"
7845 RC="rc.exe"
7846 lflags="${lflags} -nologo -MACHINE:${MACHINE} "
7847 LINKBIN="link.exe"
7848 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
7849 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7850 # Avoid 'unresolved external symbol __security_cookie'
7851 # errors, c.f. http://support.microsoft.com/?id=894573
7852
7853 vars="bufferoverflowU.lib"
7854 for i in $vars; do
7855 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7856 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7857 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
7858 fi
7859 PKG_LIBS="$PKG_LIBS $i"
7860 done
7861
7862
7863 else
7864 RC="rc"
7865 lflags="${lflags} -nologo"
7866 LINKBIN="link"
7867 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7868 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7869 fi
7870 fi
7871
7872 if test "$GCC" = "yes"; then
7873 # mingw gcc mode
7874 if test -n "$ac_tool_prefix"; then
7875 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}windres; ac_word=$2
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 printf %s "checking for $ac_word... " >&6; }
7879 if test ${ac_cv_prog_RC+y}
7880 then :
7881 printf %s "(cached) " >&6
7882 else case e in #(
7883 e) if test -n "$RC"; then
7884 ac_cv_prog_RC="$RC" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7888 do
7889 IFS=$as_save_IFS
7890 case $as_dir in #(((
7891 '') as_dir=./ ;;
7892 */) ;;
7893 *) as_dir=$as_dir/ ;;
7894 esac
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7897 ac_cv_prog_RC="${ac_tool_prefix}windres"
7898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7899 break 2
7900 fi
7901 done
7902 done
7903 IFS=$as_save_IFS
7904
7905 fi ;;
7906 esac
7907 fi
7908 RC=$ac_cv_prog_RC
7909 if test -n "$RC"; then
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
7911 printf "%s\n" "$RC" >&6; }
7912 else
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 printf "%s\n" "no" >&6; }
7915 fi
7916
7917
7918 fi
7919 if test -z "$ac_cv_prog_RC"; then
7920 ac_ct_RC=$RC
7921 # Extract the first word of "windres", so it can be a program name with args.
7922 set dummy windres; ac_word=$2
7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 printf %s "checking for $ac_word... " >&6; }
7925 if test ${ac_cv_prog_ac_ct_RC+y}
7926 then :
7927 printf %s "(cached) " >&6
7928 else case e in #(
7929 e) if test -n "$ac_ct_RC"; then
7930 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7934 do
7935 IFS=$as_save_IFS
7936 case $as_dir in #(((
7937 '') as_dir=./ ;;
7938 */) ;;
7939 *) as_dir=$as_dir/ ;;
7940 esac
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7943 ac_cv_prog_ac_ct_RC="windres"
7944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7945 break 2
7946 fi
7947 done
7948 done
7949 IFS=$as_save_IFS
7950
7951 fi ;;
7952 esac
7953 fi
7954 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7955 if test -n "$ac_ct_RC"; then
7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
7957 printf "%s\n" "$ac_ct_RC" >&6; }
7958 else
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 printf "%s\n" "no" >&6; }
7961 fi
7962
7963 if test "x$ac_ct_RC" = x; then
7964 RC=""
7965 else
7966 case $cross_compiling:$ac_tool_warned in
7967 yes:)
7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7970 ac_tool_warned=yes ;;
7971 esac
7972 RC=$ac_ct_RC
7973 fi
7974 else
7975 RC="$ac_cv_prog_RC"
7976 fi
7977
7978 CFLAGS_DEBUG="-g"
7979 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7980 SHLIB_LD='${CC} -shared'
7981 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7982 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7983 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7984
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
7986 printf %s "checking for cross-compile version of gcc... " >&6; }
7987 if test ${ac_cv_cross+y}
7988 then :
7989 printf %s "(cached) " >&6
7990 else case e in #(
7991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993
7994 #ifdef _WIN32
7995 #error cross-compiler
7996 #endif
7997
7998 int
7999 main (void)
8000 {
8001
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 if ac_fn_c_try_compile "$LINENO"
8007 then :
8008 ac_cv_cross=yes
8009 else case e in #(
8010 e) ac_cv_cross=no ;;
8011 esac
8012 fi
8013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8014 ;;
8015 esac
8016 fi
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
8018 printf "%s\n" "$ac_cv_cross" >&6; }
8019 if test "$ac_cv_cross" = "yes"; then
8020 case "$do64bit" in
8021 amd64|x64|yes)
8022 CC="x86_64-w64-mingw32-${CC}"
8023 LD="x86_64-w64-mingw32-ld"
8024 AR="x86_64-w64-mingw32-ar"
8025 RANLIB="x86_64-w64-mingw32-ranlib"
8026 RC="x86_64-w64-mingw32-windres"
8027 ;;
8028 arm64|aarch64)
8029 CC="aarch64-w64-mingw32-clang"
8030 LD="aarch64-w64-mingw32-ld"
8031 AR="aarch64-w64-mingw32-ar"
8032 RANLIB="aarch64-w64-mingw32-ranlib"
8033 RC="aarch64-w64-mingw32-windres"
8034 ;;
8035 *)
8036 CC="i686-w64-mingw32-${CC}"
8037 LD="i686-w64-mingw32-ld"
8038 AR="i686-w64-mingw32-ar"
8039 RANLIB="i686-w64-mingw32-ranlib"
8040 RC="i686-w64-mingw32-windres"
8041 ;;
8042 esac
8043 fi
8044
8045 else
8046 SHLIB_LD="${LINKBIN} -dll ${lflags}"
8047 # link -lib only works when -lib is the first arg
8048 STLIB_LD="${LINKBIN} -lib ${lflags}"
8049 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
8050 PATHTYPE=-w
8051 # For information on what debugtype is most useful, see:
8052 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
8053 # and also
8054 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
8055 # This essentially turns it all on.
8056 LDFLAGS_DEBUG="-debug -debugtype:cv"
8057 LDFLAGS_OPTIMIZE="-release"
8058 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
8059 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
8060 fi
8061
8062 SHLIB_SUFFIX=".dll"
8063 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
8064
8065 TCL_LIB_VERSIONS_OK=nodots
8066 ;;
8067 AIX-*)
8068 if test "$GCC" != "yes"
8069 then :
8070
8071 # AIX requires the _r compiler when gcc isn't being used
8072 case "${CC}" in
8073 *_r|*_r\ *)
8074 # ok ...
8075 ;;
8076 *)
8077 # Make sure only first arg gets _r
8078 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
8079 ;;
8080 esac
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
8082 printf "%s\n" "Using $CC for compiling with threads" >&6; }
8083
8084 fi
8085 LIBS="$LIBS -lc"
8086 SHLIB_CFLAGS=""
8087 SHLIB_SUFFIX=".so"
8088
8089 LD_LIBRARY_PATH_VAR="LIBPATH"
8090
8091 # Check to enable 64-bit flags for compiler/linker
8092 if test "$do64bit" = yes
8093 then :
8094
8095 if test "$GCC" = yes
8096 then :
8097
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
8099 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
8100
8101 else case e in #(
8102 e)
8103 do64bit_ok=yes
8104 CFLAGS="$CFLAGS -q64"
8105 LDFLAGS_ARCH="-q64"
8106 RANLIB="${RANLIB} -X64"
8107 AR="${AR} -X64"
8108 SHLIB_LD_FLAGS="-b64"
8109 ;;
8110 esac
8111 fi
8112
8113 fi
8114
8115 if test "`uname -m`" = ia64
8116 then :
8117
8118 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
8119 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8120 if test "$GCC" = yes
8121 then :
8122
8123 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8124
8125 else case e in #(
8126 e)
8127 CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
8128 ;;
8129 esac
8130 fi
8131 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8132
8133 else case e in #(
8134 e)
8135 if test "$GCC" = yes
8136 then :
8137
8138 SHLIB_LD='${CC} -shared -Wl,-bexpall'
8139
8140 else case e in #(
8141 e)
8142 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
8143 LDFLAGS="$LDFLAGS -brtl"
8144 ;;
8145 esac
8146 fi
8147 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
8148 CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
8149 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8150 ;;
8151 esac
8152 fi
8153 ;;
8154 BeOS*)
8155 SHLIB_CFLAGS="-fPIC"
8156 SHLIB_LD='${CC} -nostart'
8157 SHLIB_SUFFIX=".so"
8158
8159 #-----------------------------------------------------------
8160 # Check for inet_ntoa in -lbind, for BeOS (which also needs
8161 # -lsocket, even if the network functions are in -lnet which
8162 # is always linked to, for compatibility.
8163 #-----------------------------------------------------------
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
8165 printf %s "checking for inet_ntoa in -lbind... " >&6; }
8166 if test ${ac_cv_lib_bind_inet_ntoa+y}
8167 then :
8168 printf %s "(cached) " >&6
8169 else case e in #(
8170 e) ac_check_lib_save_LIBS=$LIBS
8171 LIBS="-lbind $LIBS"
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8174
8175 /* Override any GCC internal prototype to avoid an error.
8176 Use char because int might match the return type of a GCC
8177 builtin and then its argument prototype would still apply.
8178 The 'extern "C"' is for builds by C++ compilers;
8179 although this is not generally supported in C code supporting it here
8180 has little cost and some practical benefit (sr 110532). */
8181 #ifdef __cplusplus
8182 extern "C"
8183 #endif
8184 char inet_ntoa (void);
8185 int
8186 main (void)
8187 {
8188 return inet_ntoa ();
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_link "$LINENO"
8194 then :
8195 ac_cv_lib_bind_inet_ntoa=yes
8196 else case e in #(
8197 e) ac_cv_lib_bind_inet_ntoa=no ;;
8198 esac
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8201 conftest$ac_exeext conftest.$ac_ext
8202 LIBS=$ac_check_lib_save_LIBS ;;
8203 esac
8204 fi
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
8206 printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
8207 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
8208 then :
8209 LIBS="$LIBS -lbind -lsocket"
8210 fi
8211
8212 ;;
8213 BSD/OS-2.1*|BSD/OS-3*)
8214 SHLIB_CFLAGS=""
8215 SHLIB_LD="shlicc -r"
8216 SHLIB_SUFFIX=".so"
8217 CC_SEARCH_FLAGS=""
8218 LD_SEARCH_FLAGS=""
8219 ;;
8220 BSD/OS-4.*)
8221 SHLIB_CFLAGS="-export-dynamic -fPIC"
8222 SHLIB_LD='${CC} -shared'
8223 SHLIB_SUFFIX=".so"
8224 LDFLAGS="$LDFLAGS -export-dynamic"
8225 CC_SEARCH_FLAGS=""
8226 LD_SEARCH_FLAGS=""
8227 ;;
8228 CYGWIN_*)
8229 SHLIB_CFLAGS=""
8230 SHLIB_LD='${CC} -shared'
8231 SHLIB_SUFFIX=".dll"
8232 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\[email protected]"
8233 EXEEXT=".exe"
8234 do64bit_ok=yes
8235 CC_SEARCH_FLAGS=""
8236 LD_SEARCH_FLAGS=""
8237 ;;
8238 dgux*)
8239 SHLIB_CFLAGS="-K PIC"
8240 SHLIB_LD='${CC} -G'
8241 SHLIB_LD_LIBS=""
8242 SHLIB_SUFFIX=".so"
8243 CC_SEARCH_FLAGS=""
8244 LD_SEARCH_FLAGS=""
8245 ;;
8246 Haiku*)
8247 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8248 SHLIB_CFLAGS="-fPIC"
8249 SHLIB_SUFFIX=".so"
8250 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
8252 printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
8253 if test ${ac_cv_lib_network_inet_ntoa+y}
8254 then :
8255 printf %s "(cached) " >&6
8256 else case e in #(
8257 e) ac_check_lib_save_LIBS=$LIBS
8258 LIBS="-lnetwork $LIBS"
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8261
8262 /* Override any GCC internal prototype to avoid an error.
8263 Use char because int might match the return type of a GCC
8264 builtin and then its argument prototype would still apply.
8265 The 'extern "C"' is for builds by C++ compilers;
8266 although this is not generally supported in C code supporting it here
8267 has little cost and some practical benefit (sr 110532). */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 char inet_ntoa (void);
8272 int
8273 main (void)
8274 {
8275 return inet_ntoa ();
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"
8281 then :
8282 ac_cv_lib_network_inet_ntoa=yes
8283 else case e in #(
8284 e) ac_cv_lib_network_inet_ntoa=no ;;
8285 esac
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8288 conftest$ac_exeext conftest.$ac_ext
8289 LIBS=$ac_check_lib_save_LIBS ;;
8290 esac
8291 fi
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
8293 printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
8294 if test "x$ac_cv_lib_network_inet_ntoa" = xyes
8295 then :
8296 LIBS="$LIBS -lnetwork"
8297 fi
8298
8299 ;;
8300 HP-UX-*.11.*)
8301 # Use updated header definitions where possible
8302
8303 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
8304
8305 # TEA specific: Needed by Tcl, but not most extensions
8306 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
8307 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
8308
8309 if test "`uname -m`" = ia64
8310 then :
8311
8312 SHLIB_SUFFIX=".so"
8313
8314 else case e in #(
8315 e)
8316 SHLIB_SUFFIX=".sl"
8317 ;;
8318 esac
8319 fi
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8321 printf %s "checking for shl_load in -ldld... " >&6; }
8322 if test ${ac_cv_lib_dld_shl_load+y}
8323 then :
8324 printf %s "(cached) " >&6
8325 else case e in #(
8326 e) ac_check_lib_save_LIBS=$LIBS
8327 LIBS="-ldld $LIBS"
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330
8331 /* Override any GCC internal prototype to avoid an error.
8332 Use char because int might match the return type of a GCC
8333 builtin and then its argument prototype would still apply.
8334 The 'extern "C"' is for builds by C++ compilers;
8335 although this is not generally supported in C code supporting it here
8336 has little cost and some practical benefit (sr 110532). */
8337 #ifdef __cplusplus
8338 extern "C"
8339 #endif
8340 char shl_load (void);
8341 int
8342 main (void)
8343 {
8344 return shl_load ();
8345 ;
8346 return 0;
8347 }
8348 _ACEOF
8349 if ac_fn_c_try_link "$LINENO"
8350 then :
8351 ac_cv_lib_dld_shl_load=yes
8352 else case e in #(
8353 e) ac_cv_lib_dld_shl_load=no ;;
8354 esac
8355 fi
8356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8357 conftest$ac_exeext conftest.$ac_ext
8358 LIBS=$ac_check_lib_save_LIBS ;;
8359 esac
8360 fi
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8362 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
8363 if test "x$ac_cv_lib_dld_shl_load" = xyes
8364 then :
8365 tcl_ok=yes
8366 else case e in #(
8367 e) tcl_ok=no ;;
8368 esac
8369 fi
8370
8371 if test "$tcl_ok" = yes
8372 then :
8373
8374 SHLIB_CFLAGS="+z"
8375 SHLIB_LD="ld -b"
8376 LDFLAGS="$LDFLAGS -Wl,-E"
8377 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
8378 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
8379 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
8380
8381 fi
8382 if test "$GCC" = yes
8383 then :
8384
8385 SHLIB_LD='${CC} -shared'
8386 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8387
8388 else case e in #(
8389 e)
8390 CFLAGS="$CFLAGS -z"
8391 ;;
8392 esac
8393 fi
8394
8395 # Check to enable 64-bit flags for compiler/linker
8396 if test "$do64bit" = "yes"
8397 then :
8398
8399 if test "$GCC" = yes
8400 then :
8401
8402 case `${CC} -dumpmachine` in
8403 hppa64*)
8404 # 64-bit gcc in use. Fix flags for GNU ld.
8405 do64bit_ok=yes
8406 SHLIB_LD='${CC} -shared'
8407 if test $doRpath = yes
8408 then :
8409
8410 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8411 fi
8412 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8413 ;;
8414 *)
8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
8416 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
8417 ;;
8418 esac
8419
8420 else case e in #(
8421 e)
8422 do64bit_ok=yes
8423 CFLAGS="$CFLAGS +DD64"
8424 LDFLAGS_ARCH="+DD64"
8425 ;;
8426 esac
8427 fi
8428
8429 fi ;;
8430 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
8431 SHLIB_SUFFIX=".sl"
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
8433 printf %s "checking for shl_load in -ldld... " >&6; }
8434 if test ${ac_cv_lib_dld_shl_load+y}
8435 then :
8436 printf %s "(cached) " >&6
8437 else case e in #(
8438 e) ac_check_lib_save_LIBS=$LIBS
8439 LIBS="-ldld $LIBS"
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442
8443 /* Override any GCC internal prototype to avoid an error.
8444 Use char because int might match the return type of a GCC
8445 builtin and then its argument prototype would still apply.
8446 The 'extern "C"' is for builds by C++ compilers;
8447 although this is not generally supported in C code supporting it here
8448 has little cost and some practical benefit (sr 110532). */
8449 #ifdef __cplusplus
8450 extern "C"
8451 #endif
8452 char shl_load (void);
8453 int
8454 main (void)
8455 {
8456 return shl_load ();
8457 ;
8458 return 0;
8459 }
8460 _ACEOF
8461 if ac_fn_c_try_link "$LINENO"
8462 then :
8463 ac_cv_lib_dld_shl_load=yes
8464 else case e in #(
8465 e) ac_cv_lib_dld_shl_load=no ;;
8466 esac
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8469 conftest$ac_exeext conftest.$ac_ext
8470 LIBS=$ac_check_lib_save_LIBS ;;
8471 esac
8472 fi
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
8474 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
8475 if test "x$ac_cv_lib_dld_shl_load" = xyes
8476 then :
8477 tcl_ok=yes
8478 else case e in #(
8479 e) tcl_ok=no ;;
8480 esac
8481 fi
8482
8483 if test "$tcl_ok" = yes
8484 then :
8485
8486 SHLIB_CFLAGS="+z"
8487 SHLIB_LD="ld -b"
8488 SHLIB_LD_LIBS=""
8489 LDFLAGS="$LDFLAGS -Wl,-E"
8490 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
8491 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
8492 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
8493
8494 fi ;;
8495 IRIX-5.*)
8496 SHLIB_CFLAGS=""
8497 SHLIB_LD="ld -shared -rdata_shared"
8498 SHLIB_SUFFIX=".so"
8499 case " $LIBOBJS " in
8500 *" mkstemp.$ac_objext "* ) ;;
8501 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
8502 ;;
8503 esac
8504
8505 if test $doRpath = yes
8506 then :
8507
8508 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8509 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
8510 fi
8511 ;;
8512 IRIX-6.*)
8513 SHLIB_CFLAGS=""
8514 SHLIB_LD="ld -n32 -shared -rdata_shared"
8515 SHLIB_SUFFIX=".so"
8516 if test $doRpath = yes
8517 then :
8518
8519 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8520 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
8521 fi
8522 if test "$GCC" = yes
8523 then :
8524
8525 CFLAGS="$CFLAGS -mabi=n32"
8526 LDFLAGS="$LDFLAGS -mabi=n32"
8527
8528 else case e in #(
8529 e)
8530 case $system in
8531 IRIX-6.3)
8532 # Use to build 6.2 compatible binaries on 6.3.
8533 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
8534 ;;
8535 *)
8536 CFLAGS="$CFLAGS -n32"
8537 ;;
8538 esac
8539 LDFLAGS="$LDFLAGS -n32"
8540 ;;
8541 esac
8542 fi
8543 ;;
8544 IRIX64-6.*)
8545 SHLIB_CFLAGS=""
8546 SHLIB_LD="ld -n32 -shared -rdata_shared"
8547 SHLIB_SUFFIX=".so"
8548 if test $doRpath = yes
8549 then :
8550
8551 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8552 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
8553 fi
8554
8555 # Check to enable 64-bit flags for compiler/linker
8556
8557 if test "$do64bit" = yes
8558 then :
8559
8560 if test "$GCC" = yes
8561 then :
8562
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
8564 printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
8565
8566 else case e in #(
8567 e)
8568 do64bit_ok=yes
8569 SHLIB_LD="ld -64 -shared -rdata_shared"
8570 CFLAGS="$CFLAGS -64"
8571 LDFLAGS_ARCH="-64"
8572 ;;
8573 esac
8574 fi
8575
8576 fi
8577 ;;
8578 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
8579 SHLIB_CFLAGS="-fPIC"
8580 SHLIB_SUFFIX=".so"
8581
8582 # TEA specific:
8583 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
8584
8585 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8586 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
8587 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
8588
8589 case $system in
8590 DragonFly-*|FreeBSD-*)
8591 if test "${TCL_THREADS}" = "1"
8592 then :
8593
8594 # The -pthread needs to go in the LDFLAGS, not LIBS
8595 LIBS=`echo $LIBS | sed s/-pthread//`
8596 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8597 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
8598 fi
8599 ;;
8600 esac
8601
8602 if test $doRpath = yes
8603 then :
8604
8605 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8606 fi
8607 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8608 if test "`uname -m`" = "alpha"
8609 then :
8610 CFLAGS="$CFLAGS -mieee"
8611 fi
8612 if test $do64bit = yes
8613 then :
8614
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
8616 printf %s "checking if compiler accepts -m64 flag... " >&6; }
8617 if test ${tcl_cv_cc_m64+y}
8618 then :
8619 printf %s "(cached) " >&6
8620 else case e in #(
8621 e)
8622 hold_cflags=$CFLAGS
8623 CFLAGS="$CFLAGS -m64"
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626
8627 int
8628 main (void)
8629 {
8630
8631 ;
8632 return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_link "$LINENO"
8636 then :
8637 tcl_cv_cc_m64=yes
8638 else case e in #(
8639 e) tcl_cv_cc_m64=no ;;
8640 esac
8641 fi
8642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8643 conftest$ac_exeext conftest.$ac_ext
8644 CFLAGS=$hold_cflags ;;
8645 esac
8646 fi
8647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
8648 printf "%s\n" "$tcl_cv_cc_m64" >&6; }
8649 if test $tcl_cv_cc_m64 = yes
8650 then :
8651
8652 CFLAGS="$CFLAGS -m64"
8653 do64bit_ok=yes
8654
8655 fi
8656
8657 fi
8658
8659 # The combo of gcc + glibc has a bug related to inlining of
8660 # functions like strtod(). The -fno-builtin flag should address
8661 # this problem but it does not work. The -fno-inline flag is kind
8662 # of overkill but it works. Disable inlining only when one of the
8663 # files in compat/*.c is being linked in.
8664
8665 if test x"${USE_COMPAT}" != x
8666 then :
8667 CFLAGS="$CFLAGS -fno-inline"
8668 fi
8669 ;;
8670 Lynx*)
8671 SHLIB_CFLAGS="-fPIC"
8672 SHLIB_SUFFIX=".so"
8673 CFLAGS_OPTIMIZE=-02
8674 SHLIB_LD='${CC} -shared'
8675 LD_FLAGS="-Wl,--export-dynamic"
8676 if test $doRpath = yes
8677 then :
8678
8679 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8680 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8681 fi
8682 ;;
8683 OpenBSD-*)
8684 arch=`arch -s`
8685 case "$arch" in
8686 alpha|sparc64)
8687 SHLIB_CFLAGS="-fPIC"
8688 ;;
8689 *)
8690 SHLIB_CFLAGS="-fpic"
8691 ;;
8692 esac
8693 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
8694 SHLIB_SUFFIX=".so"
8695 if test $doRpath = yes
8696 then :
8697
8698 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8699 fi
8700 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8701 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
8702 LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
8703 CFLAGS_OPTIMIZE="-O2"
8704 # On OpenBSD: Compile with -pthread
8705 # Don't link with -lpthread
8706 LIBS=`echo $LIBS | sed s/-lpthread//`
8707 CFLAGS="$CFLAGS -pthread"
8708 # OpenBSD doesn't do version numbers with dots.
8709 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8710 TCL_LIB_VERSIONS_OK=nodots
8711 ;;
8712 NetBSD-*)
8713 # NetBSD has ELF and can use 'cc -shared' to build shared libs
8714 SHLIB_CFLAGS="-fPIC"
8715 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
8716 SHLIB_SUFFIX=".so"
8717 LDFLAGS="$LDFLAGS -export-dynamic"
8718 if test $doRpath = yes
8719 then :
8720
8721 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8722 fi
8723 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8724 # The -pthread needs to go in the CFLAGS, not LIBS
8725 LIBS=`echo $LIBS | sed s/-pthread//`
8726 CFLAGS="$CFLAGS -pthread"
8727 LDFLAGS="$LDFLAGS -pthread"
8728 ;;
8729 Darwin-*)
8730 CFLAGS_OPTIMIZE="-Os"
8731 SHLIB_CFLAGS="-fno-common"
8732 # To avoid discrepancies between what headers configure sees during
8733 # preprocessing tests and compiling tests, move any -isysroot and
8734 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
8735 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
8736 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8737 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
8738 CFLAGS="`echo " ${CFLAGS}" | \
8739 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8740 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
8741 if test $do64bit = yes
8742 then :
8743
8744 case `arch` in
8745 ppc)
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
8747 printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
8748 if test ${tcl_cv_cc_arch_ppc64+y}
8749 then :
8750 printf %s "(cached) " >&6
8751 else case e in #(
8752 e)
8753 hold_cflags=$CFLAGS
8754 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757
8758 int
8759 main (void)
8760 {
8761
8762 ;
8763 return 0;
8764 }
8765 _ACEOF
8766 if ac_fn_c_try_link "$LINENO"
8767 then :
8768 tcl_cv_cc_arch_ppc64=yes
8769 else case e in #(
8770 e) tcl_cv_cc_arch_ppc64=no ;;
8771 esac
8772 fi
8773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8774 conftest$ac_exeext conftest.$ac_ext
8775 CFLAGS=$hold_cflags ;;
8776 esac
8777 fi
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
8779 printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
8780 if test $tcl_cv_cc_arch_ppc64 = yes
8781 then :
8782
8783 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8784 do64bit_ok=yes
8785
8786 fi;;
8787 i386)
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
8789 printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
8790 if test ${tcl_cv_cc_arch_x86_64+y}
8791 then :
8792 printf %s "(cached) " >&6
8793 else case e in #(
8794 e)
8795 hold_cflags=$CFLAGS
8796 CFLAGS="$CFLAGS -arch x86_64"
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799
8800 int
8801 main (void)
8802 {
8803
8804 ;
8805 return 0;
8806 }
8807 _ACEOF
8808 if ac_fn_c_try_link "$LINENO"
8809 then :
8810 tcl_cv_cc_arch_x86_64=yes
8811 else case e in #(
8812 e) tcl_cv_cc_arch_x86_64=no ;;
8813 esac
8814 fi
8815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8816 conftest$ac_exeext conftest.$ac_ext
8817 CFLAGS=$hold_cflags ;;
8818 esac
8819 fi
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
8821 printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
8822 if test $tcl_cv_cc_arch_x86_64 = yes
8823 then :
8824
8825 CFLAGS="$CFLAGS -arch x86_64"
8826 do64bit_ok=yes
8827
8828 fi;;
8829 *)
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
8831 printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
8832 esac
8833
8834 else case e in #(
8835 e)
8836 # Check for combined 32-bit and 64-bit fat build
8837 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
8838 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
8839 then :
8840
8841 fat_32_64=yes
8842 fi
8843 ;;
8844 esac
8845 fi
8846 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8847 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
8848 # TEA specific: link shlib with current and compatibility version flags
8849 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
8850 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
8851 SHLIB_SUFFIX=".dylib"
8852 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
8854 printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
8855 if test ${tcl_cv_ld_search_paths_first+y}
8856 then :
8857 printf %s "(cached) " >&6
8858 else case e in #(
8859 e)
8860 hold_ldflags=$LDFLAGS
8861 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864
8865 int
8866 main (void)
8867 {
8868 int i;
8869 ;
8870 return 0;
8871 }
8872 _ACEOF
8873 if ac_fn_c_try_link "$LINENO"
8874 then :
8875 tcl_cv_ld_search_paths_first=yes
8876 else case e in #(
8877 e) tcl_cv_ld_search_paths_first=no ;;
8878 esac
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8881 conftest$ac_exeext conftest.$ac_ext
8882 LDFLAGS=$hold_ldflags ;;
8883 esac
8884 fi
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
8886 printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
8887 if test $tcl_cv_ld_search_paths_first = yes
8888 then :
8889
8890 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8891
8892 fi
8893 if test "$tcl_cv_cc_visibility_hidden" != yes
8894 then :
8895
8896
8897 printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
8898
8899 tcl_cv_cc_visibility_hidden=yes
8900
8901 fi
8902 CC_SEARCH_FLAGS=""
8903 LD_SEARCH_FLAGS=""
8904 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8905 # TEA specific: for combined 32 & 64 bit fat builds of Tk
8906 # extensions, verify that 64-bit build is possible.
8907 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
8908 then :
8909
8910 if test "${TEA_WINDOWINGSYSTEM}" = x11
8911 then :
8912
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
8914 printf %s "checking for 64-bit X11... " >&6; }
8915 if test ${tcl_cv_lib_x11_64+y}
8916 then :
8917 printf %s "(cached) " >&6
8918 else case e in #(
8919 e)
8920 for v in CFLAGS CPPFLAGS LDFLAGS; do
8921 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8922 done
8923 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
8924 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <X11/Xlib.h>
8928 int
8929 main (void)
8930 {
8931 XrmInitialize();
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 if ac_fn_c_try_link "$LINENO"
8937 then :
8938 tcl_cv_lib_x11_64=yes
8939 else case e in #(
8940 e) tcl_cv_lib_x11_64=no ;;
8941 esac
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8944 conftest$ac_exeext conftest.$ac_ext
8945 for v in CFLAGS CPPFLAGS LDFLAGS; do
8946 eval $v'="$hold_'$v'"'
8947 done ;;
8948 esac
8949 fi
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
8951 printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
8952
8953 fi
8954 if test "${TEA_WINDOWINGSYSTEM}" = aqua
8955 then :
8956
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
8958 printf %s "checking for 64-bit Tk... " >&6; }
8959 if test ${tcl_cv_lib_tk_64+y}
8960 then :
8961 printf %s "(cached) " >&6
8962 else case e in #(
8963 e)
8964 for v in CFLAGS CPPFLAGS LDFLAGS; do
8965 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8966 done
8967 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
8968 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 #include <tk.h>
8972 int
8973 main (void)
8974 {
8975 Tk_InitStubs(NULL, "", 0);
8976 ;
8977 return 0;
8978 }
8979 _ACEOF
8980 if ac_fn_c_try_link "$LINENO"
8981 then :
8982 tcl_cv_lib_tk_64=yes
8983 else case e in #(
8984 e) tcl_cv_lib_tk_64=no ;;
8985 esac
8986 fi
8987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8988 conftest$ac_exeext conftest.$ac_ext
8989 for v in CFLAGS CPPFLAGS LDFLAGS; do
8990 eval $v'="$hold_'$v'"'
8991 done ;;
8992 esac
8993 fi
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
8995 printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
8996
8997 fi
8998 # remove 64-bit arch flags from CFLAGS et al. if configuration
8999 # does not support 64-bit.
9000 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
9001 then :
9002
9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
9004 printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
9005 for v in CFLAGS CPPFLAGS LDFLAGS; do
9006 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
9007 done
9008 fi
9009
9010 fi
9011 ;;
9012 OS/390-*)
9013 CFLAGS_OPTIMIZE="" # Optimizer is buggy
9014
9015 printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
9016
9017 ;;
9018 OSF1-V*)
9019 # Digital OSF/1
9020 SHLIB_CFLAGS=""
9021 if test "$SHARED_BUILD" = 1
9022 then :
9023
9024 SHLIB_LD='ld -shared -expect_unresolved "*"'
9025
9026 else case e in #(
9027 e)
9028 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
9029 ;;
9030 esac
9031 fi
9032 SHLIB_SUFFIX=".so"
9033 if test $doRpath = yes
9034 then :
9035
9036 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
9037 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
9038 fi
9039 if test "$GCC" = yes
9040 then :
9041 CFLAGS="$CFLAGS -mieee"
9042 else case e in #(
9043 e)
9044 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" ;;
9045 esac
9046 fi
9047 # see pthread_intro(3) for pthread support on osf1, k.furukawa
9048 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
9049 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
9050 LIBS=`echo $LIBS | sed s/-lpthreads//`
9051 if test "$GCC" = yes
9052 then :
9053
9054 LIBS="$LIBS -lpthread -lmach -lexc"
9055
9056 else case e in #(
9057 e)
9058 CFLAGS="$CFLAGS -pthread"
9059 LDFLAGS="$LDFLAGS -pthread"
9060 ;;
9061 esac
9062 fi
9063 ;;
9064 QNX-6*)
9065 # QNX RTP
9066 # This may work for all QNX, but it was only reported for v6.
9067 SHLIB_CFLAGS="-fPIC"
9068 SHLIB_LD="ld -Bshareable -x"
9069 SHLIB_LD_LIBS=""
9070 SHLIB_SUFFIX=".so"
9071 CC_SEARCH_FLAGS=""
9072 LD_SEARCH_FLAGS=""
9073 ;;
9074 SCO_SV-3.2*)
9075 if test "$GCC" = yes
9076 then :
9077
9078 SHLIB_CFLAGS="-fPIC -melf"
9079 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
9080
9081 else case e in #(
9082 e)
9083 SHLIB_CFLAGS="-Kpic -belf"
9084 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
9085 ;;
9086 esac
9087 fi
9088 SHLIB_LD="ld -G"
9089 SHLIB_LD_LIBS=""
9090 SHLIB_SUFFIX=".so"
9091 CC_SEARCH_FLAGS=""
9092 LD_SEARCH_FLAGS=""
9093 ;;
9094 SunOS-5.[0-6])
9095 # Careful to not let 5.10+ fall into this case
9096
9097 # Note: If _REENTRANT isn't defined, then Solaris
9098 # won't define thread-safe library routines.
9099
9100
9101 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
9102
9103
9104 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
9105
9106
9107 SHLIB_CFLAGS="-KPIC"
9108 SHLIB_SUFFIX=".so"
9109 if test "$GCC" = yes
9110 then :
9111
9112 SHLIB_LD='${CC} -shared'
9113 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
9114 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9115
9116 else case e in #(
9117 e)
9118 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
9119 CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
9120 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9121 ;;
9122 esac
9123 fi
9124 ;;
9125 SunOS-5*)
9126 # Note: If _REENTRANT isn't defined, then Solaris
9127 # won't define thread-safe library routines.
9128
9129
9130 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
9131
9132
9133 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
9134
9135
9136 SHLIB_CFLAGS="-KPIC"
9137
9138 # Check to enable 64-bit flags for compiler/linker
9139 if test "$do64bit" = yes
9140 then :
9141
9142 arch=`isainfo`
9143 if test "$arch" = "sparcv9 sparc"
9144 then :
9145
9146 if test "$GCC" = yes
9147 then :
9148
9149 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
9150 then :
9151
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
9153 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
9154
9155 else case e in #(
9156 e)
9157 do64bit_ok=yes
9158 CFLAGS="$CFLAGS -m64 -mcpu=v9"
9159 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
9160 SHLIB_CFLAGS="-fPIC"
9161 ;;
9162 esac
9163 fi
9164
9165 else case e in #(
9166 e)
9167 do64bit_ok=yes
9168 if test "$do64bitVIS" = yes
9169 then :
9170
9171 CFLAGS="$CFLAGS -xarch=v9a"
9172 LDFLAGS_ARCH="-xarch=v9a"
9173
9174 else case e in #(
9175 e)
9176 CFLAGS="$CFLAGS -xarch=v9"
9177 LDFLAGS_ARCH="-xarch=v9"
9178 ;;
9179 esac
9180 fi
9181 # Solaris 64 uses this as well
9182 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
9183 ;;
9184 esac
9185 fi
9186
9187 else case e in #(
9188 e) if test "$arch" = "amd64 i386"
9189 then :
9190
9191 if test "$GCC" = yes
9192 then :
9193
9194 case $system in
9195 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
9196 do64bit_ok=yes
9197 CFLAGS="$CFLAGS -m64"
9198 LDFLAGS="$LDFLAGS -m64";;
9199 *)
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
9201 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
9202 esac
9203
9204 else case e in #(
9205 e)
9206 do64bit_ok=yes
9207 case $system in
9208 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
9209 CFLAGS="$CFLAGS -m64"
9210 LDFLAGS="$LDFLAGS -m64";;
9211 *)
9212 CFLAGS="$CFLAGS -xarch=amd64"
9213 LDFLAGS="$LDFLAGS -xarch=amd64";;
9214 esac
9215 ;;
9216 esac
9217 fi
9218
9219 else case e in #(
9220 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
9221 printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} ;;
9222 esac
9223 fi ;;
9224 esac
9225 fi
9226
9227 fi
9228
9229 SHLIB_SUFFIX=".so"
9230 if test "$GCC" = yes
9231 then :
9232
9233 SHLIB_LD='${CC} -shared'
9234 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
9235 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
9236 if test "$do64bit_ok" = yes
9237 then :
9238
9239 if test "$arch" = "sparcv9 sparc"
9240 then :
9241
9242 # We need to specify -static-libgcc or we need to
9243 # add the path to the sparv9 libgcc.
9244 # JH: static-libgcc is necessary for core Tcl, but may
9245 # not be necessary for extensions.
9246 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
9247 # for finding sparcv9 libgcc, get the regular libgcc
9248 # path, remove so name and append 'sparcv9'
9249 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
9250 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
9251
9252 else case e in #(
9253 e) if test "$arch" = "amd64 i386"
9254 then :
9255
9256 # JH: static-libgcc is necessary for core Tcl, but may
9257 # not be necessary for extensions.
9258 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
9259
9260 fi ;;
9261 esac
9262 fi
9263
9264 fi
9265
9266 else case e in #(
9267 e)
9268 case $system in
9269 SunOS-5.[1-9][0-9]*)
9270 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
9271 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
9272 *)
9273 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
9274 esac
9275 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
9276 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
9277 ;;
9278 esac
9279 fi
9280 ;;
9281 UNIX_SV* | UnixWare-5*)
9282 SHLIB_CFLAGS="-KPIC"
9283 SHLIB_LD='${CC} -G'
9284 SHLIB_LD_LIBS=""
9285 SHLIB_SUFFIX=".so"
9286 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
9287 # that don't grok the -Bexport option. Test that it does.
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
9289 printf %s "checking for ld accepts -Bexport flag... " >&6; }
9290 if test ${tcl_cv_ld_Bexport+y}
9291 then :
9292 printf %s "(cached) " >&6
9293 else case e in #(
9294 e)
9295 hold_ldflags=$LDFLAGS
9296 LDFLAGS="$LDFLAGS -Wl,-Bexport"
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299
9300 int
9301 main (void)
9302 {
9303 int i;
9304 ;
9305 return 0;
9306 }
9307 _ACEOF
9308 if ac_fn_c_try_link "$LINENO"
9309 then :
9310 tcl_cv_ld_Bexport=yes
9311 else case e in #(
9312 e) tcl_cv_ld_Bexport=no ;;
9313 esac
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9316 conftest$ac_exeext conftest.$ac_ext
9317 LDFLAGS=$hold_ldflags ;;
9318 esac
9319 fi
9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
9321 printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
9322 if test $tcl_cv_ld_Bexport = yes
9323 then :
9324
9325 LDFLAGS="$LDFLAGS -Wl,-Bexport"
9326
9327 fi
9328 CC_SEARCH_FLAGS=""
9329 LD_SEARCH_FLAGS=""
9330 ;;
9331 esac
9332
9333 if test "$do64bit" = yes -a "$do64bit_ok" = no
9334 then :
9335
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
9337 printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
9338
9339 fi
9340
9341
9342
9343 # Add in the arch flags late to ensure it wasn't removed.
9344 # Not necessary in TEA, but this is aligned with core
9345 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
9346
9347 # If we're running gcc, then change the C flags for compiling shared
9348 # libraries to the right flags for gcc, instead of those for the
9349 # standard manufacturer compiler.
9350
9351 if test "$GCC" = yes
9352 then :
9353
9354 case $system in
9355 AIX-*) ;;
9356 BSD/OS*) ;;
9357 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
9358 IRIX*) ;;
9359 NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
9360 Darwin-*) ;;
9361 SCO_SV-3.2*) ;;
9362 windows) ;;
9363 *) SHLIB_CFLAGS="-fPIC" ;;
9364 esac
9365 fi
9366
9367 if test "$tcl_cv_cc_visibility_hidden" != yes
9368 then :
9369
9370
9371 printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
9372
9373
9374 fi
9375
9376 if test "$SHARED_LIB_SUFFIX" = ""
9377 then :
9378
9379 # TEA specific: use PACKAGE_VERSION instead of VERSION
9380 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
9381 fi
9382 if test "$UNSHARED_LIB_SUFFIX" = ""
9383 then :
9384
9385 # TEA specific: use PACKAGE_VERSION instead of VERSION
9386 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
9387 fi
9388
9389 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
9391 printf %s "checking for SEH support in compiler... " >&6; }
9392 if test ${tcl_cv_seh+y}
9393 then :
9394 printf %s "(cached) " >&6
9395 else case e in #(
9396 e) if test "$cross_compiling" = yes
9397 then :
9398 tcl_cv_seh=no
9399 else case e in #(
9400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402
9403 #define WIN32_LEAN_AND_MEAN
9404 #include <windows.h>
9405 #undef WIN32_LEAN_AND_MEAN
9406
9407 int main(int argc, char** argv) {
9408 int a, b = 0;
9409 __try {
9410 a = 666 / b;
9411 }
9412 __except (EXCEPTION_EXECUTE_HANDLER) {
9413 return 0;
9414 }
9415 return 1;
9416 }
9417
9418 _ACEOF
9419 if ac_fn_c_try_run "$LINENO"
9420 then :
9421 tcl_cv_seh=yes
9422 else case e in #(
9423 e) tcl_cv_seh=no ;;
9424 esac
9425 fi
9426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9427 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9428 esac
9429 fi
9430
9431 ;;
9432 esac
9433 fi
9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
9435 printf "%s\n" "$tcl_cv_seh" >&6; }
9436 if test "$tcl_cv_seh" = "no" ; then
9437
9438 printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
9439
9440 fi
9441
9442 #
9443 # Check to see if the excpt.h include file provided contains the
9444 # definition for EXCEPTION_DISPOSITION; if not, which is the case
9445 # with Cygwin's version as of 2002-04-10, define it to be int,
9446 # sufficient for getting the current code to work.
9447 #
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
9449 printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
9450 if test ${tcl_cv_eh_disposition+y}
9451 then :
9452 printf %s "(cached) " >&6
9453 else case e in #(
9454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456
9457 # define WIN32_LEAN_AND_MEAN
9458 # include <windows.h>
9459 # undef WIN32_LEAN_AND_MEAN
9460
9461 int
9462 main (void)
9463 {
9464
9465 EXCEPTION_DISPOSITION x;
9466
9467 ;
9468 return 0;
9469 }
9470 _ACEOF
9471 if ac_fn_c_try_compile "$LINENO"
9472 then :
9473 tcl_cv_eh_disposition=yes
9474 else case e in #(
9475 e) tcl_cv_eh_disposition=no ;;
9476 esac
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9479 ;;
9480 esac
9481 fi
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
9483 printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
9484 if test "$tcl_cv_eh_disposition" = "no" ; then
9485
9486 printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
9487
9488 fi
9489
9490 # Check to see if winnt.h defines CHAR, SHORT, and LONG
9491 # even if VOID has already been #defined. The win32api
9492 # used by mingw and cygwin is known to do this.
9493
9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
9495 printf %s "checking for winnt.h that ignores VOID define... " >&6; }
9496 if test ${tcl_cv_winnt_ignore_void+y}
9497 then :
9498 printf %s "(cached) " >&6
9499 else case e in #(
9500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502
9503 #define VOID void
9504 #define WIN32_LEAN_AND_MEAN
9505 #include <windows.h>
9506 #undef WIN32_LEAN_AND_MEAN
9507
9508 int
9509 main (void)
9510 {
9511
9512 CHAR c;
9513 SHORT s;
9514 LONG l;
9515
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 if ac_fn_c_try_compile "$LINENO"
9521 then :
9522 tcl_cv_winnt_ignore_void=yes
9523 else case e in #(
9524 e) tcl_cv_winnt_ignore_void=no ;;
9525 esac
9526 fi
9527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9528 ;;
9529 esac
9530 fi
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
9532 printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
9533 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
9534
9535 printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
9536
9537 fi
9538 fi
9539
9540 # See if the compiler supports casting to a union type.
9541 # This is used to stop gcc from printing a compiler
9542 # warning when initializing a union member.
9543
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
9545 printf %s "checking for cast to union support... " >&6; }
9546 if test ${tcl_cv_cast_to_union+y}
9547 then :
9548 printf %s "(cached) " >&6
9549 else case e in #(
9550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9552
9553 int
9554 main (void)
9555 {
9556
9557 union foo { int i; double d; };
9558 union foo f = (union foo) (int) 0;
9559
9560 ;
9561 return 0;
9562 }
9563 _ACEOF
9564 if ac_fn_c_try_compile "$LINENO"
9565 then :
9566 tcl_cv_cast_to_union=yes
9567 else case e in #(
9568 e) tcl_cv_cast_to_union=no ;;
9569 esac
9570 fi
9571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9572 ;;
9573 esac
9574 fi
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
9576 printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
9577 if test "$tcl_cv_cast_to_union" = "yes"; then
9578
9579 printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
9580
9581 fi
9582
9583 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
9584 if test "x$ac_cv_header_stdbool_h" = xyes
9585 then :
9586
9587 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
9588
9589 fi
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606 # These must be called after we do the basic CFLAGS checks and
9607 # verify any possible 64-bit or similar switches are necessary
9608
9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
9610 printf %s "checking for required early compiler flags... " >&6; }
9611 tcl_flags=""
9612
9613 if test ${tcl_cv_flag__isoc99_source+y}
9614 then :
9615 printf %s "(cached) " >&6
9616 else case e in #(
9617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619 #include <stdlib.h>
9620 int
9621 main (void)
9622 {
9623 char *p = (char *)strtoll; char *q = (char *)strtoull;
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 if ac_fn_c_try_compile "$LINENO"
9629 then :
9630 tcl_cv_flag__isoc99_source=no
9631 else case e in #(
9632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 #define _ISOC99_SOURCE 1
9635 #include <stdlib.h>
9636 int
9637 main (void)
9638 {
9639 char *p = (char *)strtoll; char *q = (char *)strtoull;
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_compile "$LINENO"
9645 then :
9646 tcl_cv_flag__isoc99_source=yes
9647 else case e in #(
9648 e) tcl_cv_flag__isoc99_source=no ;;
9649 esac
9650 fi
9651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9652 esac
9653 fi
9654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9655 esac
9656 fi
9657
9658 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9659
9660 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
9661
9662 tcl_flags="$tcl_flags _ISOC99_SOURCE"
9663 fi
9664
9665 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
9666
9667 if test ${tcl_cv_flag__file_offset_bits+y}
9668 then :
9669 printf %s "(cached) " >&6
9670 else case e in #(
9671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 #include <sys/stat.h>
9674 int
9675 main (void)
9676 {
9677 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
9678 ;
9679 return 0;
9680 }
9681 _ACEOF
9682 if ac_fn_c_try_compile "$LINENO"
9683 then :
9684 tcl_cv_flag__file_offset_bits=no
9685 else case e in #(
9686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688 #define _FILE_OFFSET_BITS 64
9689 #include <sys/stat.h>
9690 int
9691 main (void)
9692 {
9693 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 if ac_fn_c_try_compile "$LINENO"
9699 then :
9700 tcl_cv_flag__file_offset_bits=yes
9701 else case e in #(
9702 e) tcl_cv_flag__file_offset_bits=no ;;
9703 esac
9704 fi
9705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9706 esac
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9709 esac
9710 fi
9711
9712 if test "x${tcl_cv_flag__file_offset_bits}" = "xyes" ; then
9713
9714 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9715
9716 tcl_flags="$tcl_flags _FILE_OFFSET_BITS"
9717 fi
9718
9719 fi
9720 if test "x${tcl_flags}" = "x" ; then
9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9722 printf "%s\n" "none" >&6; }
9723 else
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
9725 printf "%s\n" "${tcl_flags}" >&6; }
9726 fi
9727
9728
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
9730 printf %s "checking for 64-bit integer type... " >&6; }
9731 if test ${tcl_cv_type_64bit+y}
9732 then :
9733 printf %s "(cached) " >&6
9734 else case e in #(
9735 e)
9736 tcl_cv_type_64bit=none
9737 # See if the compiler knows natively about __int64
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9740
9741 int
9742 main (void)
9743 {
9744 __int64 value = (__int64) 0;
9745 ;
9746 return 0;
9747 }
9748 _ACEOF
9749 if ac_fn_c_try_compile "$LINENO"
9750 then :
9751 tcl_type_64bit=__int64
9752 else case e in #(
9753 e) tcl_type_64bit="long long" ;;
9754 esac
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9757 # See if we could use long anyway Note that we substitute in the
9758 # type that is our current guess for a 64-bit type inside this check
9759 # program, so it should be modified only carefully...
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762
9763 int
9764 main (void)
9765 {
9766 switch (0) {
9767 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9768 }
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 if ac_fn_c_try_compile "$LINENO"
9774 then :
9775 tcl_cv_type_64bit=${tcl_type_64bit}
9776 fi
9777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9778 esac
9779 fi
9780
9781 if test "${tcl_cv_type_64bit}" = none ; then
9782
9783 printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
9784
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9786 printf "%s\n" "yes" >&6; }
9787 elif test "${tcl_cv_type_64bit}" = "__int64" \
9788 -a "${TEA_PLATFORM}" = "windows" ; then
9789 # TEA specific: We actually want to use the default tcl.h checks in
9790 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
9792 printf "%s\n" "using Tcl header defaults" >&6; }
9793 else
9794
9795 printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
9796
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
9798 printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
9799
9800 # Now check for auxiliary declarations
9801 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t" >&5
9803 printf %s "checking for 64-bit time_t... " >&6; }
9804 if test ${tcl_cv_time_t_64+y}
9805 then :
9806 printf %s "(cached) " >&6
9807 else case e in #(
9808 e)
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 #include <sys/types.h>
9812 int
9813 main (void)
9814 {
9815 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
9816 ;
9817 return 0;
9818 }
9819 _ACEOF
9820 if ac_fn_c_try_compile "$LINENO"
9821 then :
9822 tcl_cv_time_t_64=yes
9823 else case e in #(
9824 e) tcl_cv_time_t_64=no ;;
9825 esac
9826 fi
9827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9828 esac
9829 fi
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_time_t_64" >&5
9831 printf "%s\n" "$tcl_cv_time_t_64" >&6; }
9832 if test "x${tcl_cv_time_t_64}" = "xno" ; then
9833 # Note that _TIME_BITS=64 requires _FILE_OFFSET_BITS=64
9834 # which SC_TCL_EARLY_FLAGS has defined if necessary.
9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _TIME_BITS=64 enables 64-bit time_t" >&5
9836 printf %s "checking if _TIME_BITS=64 enables 64-bit time_t... " >&6; }
9837 if test ${tcl_cv__time_bits+y}
9838 then :
9839 printf %s "(cached) " >&6
9840 else case e in #(
9841 e)
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9844 #define _TIME_BITS 64
9845 #include <sys/types.h>
9846 int
9847 main (void)
9848 {
9849 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
9850 ;
9851 return 0;
9852 }
9853 _ACEOF
9854 if ac_fn_c_try_compile "$LINENO"
9855 then :
9856 tcl_cv__time_bits=yes
9857 else case e in #(
9858 e) tcl_cv__time_bits=no ;;
9859 esac
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9862 esac
9863 fi
9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv__time_bits" >&5
9865 printf "%s\n" "$tcl_cv__time_bits" >&6; }
9866 if test "x${tcl_cv__time_bits}" = "xyes" ; then
9867
9868 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
9869
9870 fi
9871 fi
9872 fi
9873
9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
9875 printf %s "checking for struct dirent64... " >&6; }
9876 if test ${tcl_cv_struct_dirent64+y}
9877 then :
9878 printf %s "(cached) " >&6
9879 else case e in #(
9880 e)
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9883 #include <sys/types.h>
9884 #include <dirent.h>
9885 int
9886 main (void)
9887 {
9888 struct dirent64 p;
9889 ;
9890 return 0;
9891 }
9892 _ACEOF
9893 if ac_fn_c_try_compile "$LINENO"
9894 then :
9895 tcl_cv_struct_dirent64=yes
9896 else case e in #(
9897 e) tcl_cv_struct_dirent64=no ;;
9898 esac
9899 fi
9900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9901 esac
9902 fi
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
9904 printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
9905 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9906
9907 printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
9908
9909 fi
9910
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
9912 printf %s "checking for DIR64... " >&6; }
9913 if test ${tcl_cv_DIR64+y}
9914 then :
9915 printf %s "(cached) " >&6
9916 else case e in #(
9917 e)
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920 #include <sys/types.h>
9921 #include <dirent.h>
9922 int
9923 main (void)
9924 {
9925 struct dirent64 *p; DIR64 d = opendir64(".");
9926 p = readdir64(d); rewinddir64(d); closedir64(d);
9927 ;
9928 return 0;
9929 }
9930 _ACEOF
9931 if ac_fn_c_try_compile "$LINENO"
9932 then :
9933 tcl_cv_DIR64=yes
9934 else case e in #(
9935 e) tcl_cv_DIR64=no ;;
9936 esac
9937 fi
9938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9939 esac
9940 fi
9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
9942 printf "%s\n" "$tcl_cv_DIR64" >&6; }
9943 if test "x${tcl_cv_DIR64}" = "xyes" ; then
9944
9945 printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
9946
9947 fi
9948
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
9950 printf %s "checking for struct stat64... " >&6; }
9951 if test ${tcl_cv_struct_stat64+y}
9952 then :
9953 printf %s "(cached) " >&6
9954 else case e in #(
9955 e)
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9958 #include <sys/stat.h>
9959 int
9960 main (void)
9961 {
9962 struct stat64 p;
9963
9964 ;
9965 return 0;
9966 }
9967 _ACEOF
9968 if ac_fn_c_try_compile "$LINENO"
9969 then :
9970 tcl_cv_struct_stat64=yes
9971 else case e in #(
9972 e) tcl_cv_struct_stat64=no ;;
9973 esac
9974 fi
9975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9976 esac
9977 fi
9978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
9979 printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
9980 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9981
9982 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
9983
9984 fi
9985
9986 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
9987 if test "x$ac_cv_func_open64" = xyes
9988 then :
9989 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
9990
9991 fi
9992 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
9993 if test "x$ac_cv_func_lseek64" = xyes
9994 then :
9995 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
9996
9997 fi
9998
9999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
10000 printf %s "checking for off64_t... " >&6; }
10001 if test ${tcl_cv_type_off64_t+y}
10002 then :
10003 printf %s "(cached) " >&6
10004 else case e in #(
10005 e)
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10008 #include <sys/types.h>
10009 int
10010 main (void)
10011 {
10012 off64_t offset;
10013
10014 ;
10015 return 0;
10016 }
10017 _ACEOF
10018 if ac_fn_c_try_compile "$LINENO"
10019 then :
10020 tcl_cv_type_off64_t=yes
10021 else case e in #(
10022 e) tcl_cv_type_off64_t=no ;;
10023 esac
10024 fi
10025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10026 esac
10027 fi
10028
10029 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
10030 test "x${ac_cv_func_lseek64}" = "xyes" && \
10031 test "x${ac_cv_func_open64}" = "xyes" ; then
10032
10033 printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
10034
10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10036 printf "%s\n" "yes" >&6; }
10037 else
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039 printf "%s\n" "no" >&6; }
10040 fi
10041 fi
10042
10043
10044
10045 #--------------------------------------------------------------------
10046 # Set the default compiler switches based on the --enable-symbols option.
10047 #--------------------------------------------------------------------
10048
10049
10050
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
10052 printf %s "checking for build with symbols... " >&6; }
10053 # Check whether --enable-symbols was given.
10054 if test ${enable_symbols+y}
10055 then :
10056 enableval=$enable_symbols; tcl_ok=$enableval
10057 else case e in #(
10058 e) tcl_ok=no ;;
10059 esac
10060 fi
10061
10062 if test "$tcl_ok" = "no"; then
10063 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
10064 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 printf "%s\n" "no" >&6; }
10067
10068 printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
10069
10070 else
10071 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
10072 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
10073 if test "$tcl_ok" = "yes"; then
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
10075 printf "%s\n" "yes (standard debugging)" >&6; }
10076 fi
10077 fi
10078
10079
10080
10081 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
10082
10083 printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
10084
10085 fi
10086
10087 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
10088 if test "$tcl_ok" = "all"; then
10089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
10090 printf "%s\n" "enabled symbols mem debugging" >&6; }
10091 else
10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
10093 printf "%s\n" "enabled $tcl_ok debugging" >&6; }
10094 fi
10095 fi
10096
10097
10098 #--------------------------------------------------------------------
10099 # For Unix/Tk builds, make sure that the X libraries/headers are found.
10100 # This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS.
10101 #--------------------------------------------------------------------
10102
10103
10104
10105 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then
10106
10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10108 printf %s "checking for X... " >&6; }
10109
10110
10111 # Check whether --with-x was given.
10112 if test ${with_x+y}
10113 then :
10114 withval=$with_x;
10115 fi
10116
10117 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
10118 if test "x$with_x" = xno; then
10119 # The user explicitly disabled X.
10120 have_x=disabled
10121 else
10122 case $x_includes,$x_libraries in #(
10123 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
10124 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
10125 then :
10126 printf %s "(cached) " >&6
10127 else case e in #(
10128 e) # One or both of the vars are not set, and there is no cached value.
10129 ac_x_includes=no
10130 ac_x_libraries=no
10131 # Do we need to do anything special at all?
10132 ac_save_LIBS=$LIBS
10133 LIBS="-lX11 $LIBS"
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136 #include <X11/Xlib.h>
10137 int
10138 main (void)
10139 {
10140 XrmInitialize ()
10141 ;
10142 return 0;
10143 }
10144 _ACEOF
10145 if ac_fn_c_try_link "$LINENO"
10146 then :
10147 # We can compile and link X programs with no special options.
10148 ac_x_includes=
10149 ac_x_libraries=
10150 fi
10151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10152 conftest$ac_exeext conftest.$ac_ext
10153 LIBS="$ac_save_LIBS"
10154 # If that didn't work, only try xmkmf and file system searches
10155 # for native compilation.
10156 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
10157 then :
10158 rm -f -r conftest.dir
10159 if mkdir conftest.dir; then
10160 cd conftest.dir
10161 cat >Imakefile <<'_ACEOF'
10162 incroot:
10163 @echo incroot='${INCROOT}'
10164 usrlibdir:
10165 @echo usrlibdir='${USRLIBDIR}'
10166 libdir:
10167 @echo libdir='${LIBDIR}'
10168 _ACEOF
10169 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10170 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10171 for ac_var in incroot usrlibdir libdir; do
10172 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10173 done
10174 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10175 for ac_extension in a so sl dylib la dll; do
10176 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10177 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10178 ac_im_usrlibdir=$ac_im_libdir; break
10179 fi
10180 done
10181 # Screen out bogus values from the imake configuration. They are
10182 # bogus both because they are the default anyway, and because
10183 # using them would break gcc on systems where it needs fixed includes.
10184 case $ac_im_incroot in
10185 /usr/include) ac_x_includes= ;;
10186 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10187 esac
10188 case $ac_im_usrlibdir in
10189 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10190 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10191 esac
10192 fi
10193 cd ..
10194 rm -f -r conftest.dir
10195 fi
10196
10197 # Standard set of common directories for X headers.
10198 # Check X11 before X11Rn because it is often a symlink to the current release.
10199 ac_x_header_dirs='
10200 /usr/X11/include
10201 /usr/X11R7/include
10202 /usr/X11R6/include
10203 /usr/X11R5/include
10204 /usr/X11R4/include
10205
10206 /usr/include/X11
10207 /usr/include/X11R7
10208 /usr/include/X11R6
10209 /usr/include/X11R5
10210 /usr/include/X11R4
10211
10212 /usr/local/X11/include
10213 /usr/local/X11R7/include
10214 /usr/local/X11R6/include
10215 /usr/local/X11R5/include
10216 /usr/local/X11R4/include
10217
10218 /usr/local/include/X11
10219 /usr/local/include/X11R7
10220 /usr/local/include/X11R6
10221 /usr/local/include/X11R5
10222 /usr/local/include/X11R4
10223
10224 /opt/X11/include
10225
10226 /usr/X386/include
10227 /usr/x386/include
10228 /usr/XFree86/include/X11
10229
10230 /usr/include
10231 /usr/local/include
10232 /usr/unsupported/include
10233 /usr/athena/include
10234 /usr/local/x11r5/include
10235 /usr/lpp/Xamples/include
10236
10237 /usr/openwin/include
10238 /usr/openwin/share/include'
10239
10240 if test "$ac_x_includes" = no; then
10241 # Guess where to find include files, by looking for Xlib.h.
10242 # First, try using that file with no special directory specified.
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 #include <X11/Xlib.h>
10246 _ACEOF
10247 if ac_fn_c_try_cpp "$LINENO"
10248 then :
10249 # We can compile using X headers with no special include directory.
10250 ac_x_includes=
10251 else case e in #(
10252 e) for ac_dir in $ac_x_header_dirs; do
10253 if test -r "$ac_dir/X11/Xlib.h"; then
10254 ac_x_includes=$ac_dir
10255 break
10256 fi
10257 done ;;
10258 esac
10259 fi
10260 rm -f conftest.err conftest.i conftest.$ac_ext
10261 fi # $ac_x_includes = no
10262
10263 if test "$ac_x_libraries" = no; then
10264 # Check for the libraries.
10265 # See if we find them without any special options.
10266 # Don't add to $LIBS permanently.
10267 ac_save_LIBS=$LIBS
10268 LIBS="-lX11 $LIBS"
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 #include <X11/Xlib.h>
10272 int
10273 main (void)
10274 {
10275 XrmInitialize ()
10276 ;
10277 return 0;
10278 }
10279 _ACEOF
10280 if ac_fn_c_try_link "$LINENO"
10281 then :
10282 LIBS=$ac_save_LIBS
10283 # We can link X programs with no special library path.
10284 ac_x_libraries=
10285 else case e in #(
10286 e) LIBS=$ac_save_LIBS
10287 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10288 do
10289 # Don't even attempt the hair of trying to link an X program!
10290 for ac_extension in a so sl dylib la dll; do
10291 if test -r "$ac_dir/libX11.$ac_extension"; then
10292 ac_x_libraries=$ac_dir
10293 break 2
10294 fi
10295 done
10296 done ;;
10297 esac
10298 fi
10299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10300 conftest$ac_exeext conftest.$ac_ext
10301 fi # $ac_x_libraries = no
10302
10303 fi
10304 # Record the results.
10305 case $ac_x_includes,$ac_x_libraries in #(
10306 no,* | *,no | *\'*) :
10307 # Didn't find X, or a directory has "'" in its name.
10308 ac_cv_have_x="have_x=no" ;; #(
10309 *) :
10310 # Record where we found X for the cache.
10311 ac_cv_have_x="have_x=yes\
10312 ac_x_includes='$ac_x_includes'\
10313 ac_x_libraries='$ac_x_libraries'" ;;
10314 esac ;;
10315 esac
10316 fi
10317 ;; #(
10318 *) have_x=yes;;
10319 esac
10320 eval "$ac_cv_have_x"
10321 fi # $with_x != no
10322
10323 if test "$have_x" != yes; then
10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10325 printf "%s\n" "$have_x" >&6; }
10326 no_x=yes
10327 else
10328 # If each of the values was on the command line, it overrides each guess.
10329 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10330 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10331 # Update the cache value to reflect the command line values.
10332 ac_cv_have_x="have_x=yes\
10333 ac_x_includes='$x_includes'\
10334 ac_x_libraries='$x_libraries'"
10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10336 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
10337 fi
10338
10339 not_really_there=""
10340 if test "$no_x" = ""; then
10341 if test "$x_includes" = ""; then
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344 #include <X11/Xlib.h>
10345 _ACEOF
10346 if ac_fn_c_try_cpp "$LINENO"
10347 then :
10348
10349 else case e in #(
10350 e) not_really_there="yes" ;;
10351 esac
10352 fi
10353 rm -f conftest.err conftest.i conftest.$ac_ext
10354 else
10355 if test ! -r $x_includes/X11/Xlib.h; then
10356 not_really_there="yes"
10357 fi
10358 fi
10359 fi
10360 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
10361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
10362 printf %s "checking for X11 header files... " >&6; }
10363 found_xincludes="no"
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 #include <X11/Xlib.h>
10367 _ACEOF
10368 if ac_fn_c_try_cpp "$LINENO"
10369 then :
10370 found_xincludes="yes"
10371 else case e in #(
10372 e) found_xincludes="no" ;;
10373 esac
10374 fi
10375 rm -f conftest.err conftest.i conftest.$ac_ext
10376 if test "$found_xincludes" = "no"; then
10377 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include"
10378 for i in $dirs ; do
10379 if test -r $i/X11/Xlib.h; then
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $i" >&5
10381 printf "%s\n" "$i" >&6; }
10382 XINCLUDES=" -I$i"
10383 found_xincludes="yes"
10384 break
10385 fi
10386 done
10387 fi
10388 else
10389 if test "$x_includes" != ""; then
10390 XINCLUDES="-I$x_includes"
10391 found_xincludes="yes"
10392 fi
10393 fi
10394 if test "$found_xincludes" = "no"; then
10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: couldn't find any!" >&5
10396 printf "%s\n" "couldn't find any!" >&6; }
10397 fi
10398
10399 if test "$no_x" = yes; then
10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 libraries" >&5
10401 printf %s "checking for X11 libraries... " >&6; }
10402 XLIBSW=nope
10403 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/X11R6/lib /usr/X11R5/lib /usr/lib/X11R5 /usr/lib/X11R4 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
10404 for i in $dirs ; do
10405 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $i" >&5
10407 printf "%s\n" "$i" >&6; }
10408 XLIBSW="-L$i -lX11"
10409 x_libraries="$i"
10410 break
10411 fi
10412 done
10413 else
10414 if test "$x_libraries" = ""; then
10415 XLIBSW=-lX11
10416 else
10417 XLIBSW="-L$x_libraries -lX11"
10418 fi
10419 fi
10420 if test "$XLIBSW" = nope ; then
10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lXwindow" >&5
10422 printf %s "checking for XCreateWindow in -lXwindow... " >&6; }
10423 if test ${ac_cv_lib_Xwindow_XCreateWindow+y}
10424 then :
10425 printf %s "(cached) " >&6
10426 else case e in #(
10427 e) ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lXwindow $LIBS"
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431
10432 /* Override any GCC internal prototype to avoid an error.
10433 Use char because int might match the return type of a GCC
10434 builtin and then its argument prototype would still apply.
10435 The 'extern "C"' is for builds by C++ compilers;
10436 although this is not generally supported in C code supporting it here
10437 has little cost and some practical benefit (sr 110532). */
10438 #ifdef __cplusplus
10439 extern "C"
10440 #endif
10441 char XCreateWindow (void);
10442 int
10443 main (void)
10444 {
10445 return XCreateWindow ();
10446 ;
10447 return 0;
10448 }
10449 _ACEOF
10450 if ac_fn_c_try_link "$LINENO"
10451 then :
10452 ac_cv_lib_Xwindow_XCreateWindow=yes
10453 else case e in #(
10454 e) ac_cv_lib_Xwindow_XCreateWindow=no ;;
10455 esac
10456 fi
10457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10458 conftest$ac_exeext conftest.$ac_ext
10459 LIBS=$ac_check_lib_save_LIBS ;;
10460 esac
10461 fi
10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5
10463 printf "%s\n" "$ac_cv_lib_Xwindow_XCreateWindow" >&6; }
10464 if test "x$ac_cv_lib_Xwindow_XCreateWindow" = xyes
10465 then :
10466 XLIBSW=-lXwindow
10467 fi
10468
10469 fi
10470 if test "$XLIBSW" = nope ; then
10471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find any! Using -lX11." >&5
10472 printf "%s\n" "could not find any! Using -lX11." >&6; }
10473 XLIBSW=-lX11
10474 fi
10475 # TEA specific:
10476 if test x"${XLIBSW}" != x ; then
10477 PKG_LIBS="${PKG_LIBS} ${XLIBSW}"
10478 fi
10479
10480 fi
10481
10482
10483 #--------------------------------------------------------------------
10484 # Everyone should be linking against the Tcl stub library. If you
10485 # can't for some reason, remove this definition. If you aren't using
10486 # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
10487 # link against the non-stubbed Tcl library.
10488 #--------------------------------------------------------------------
10489
10490 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
10491
10492 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
10493
10494
10495 #--------------------------------------------------------------------
10496 # This macro generates a line to use when building a library. It
10497 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
10498 # and TEA_LOAD_TCLCONFIG macros above.
10499 #--------------------------------------------------------------------
10500
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
10502 printf %s "checking for egrep -e... " >&6; }
10503 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
10504 then :
10505 printf %s "(cached) " >&6
10506 else case e in #(
10507 e) if test -z "$EGREP_TRADITIONAL"; then
10508 ac_path_EGREP_TRADITIONAL_found=false
10509 # Loop through the user's path and test for each of PROGNAME-LIST
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10512 do
10513 IFS=$as_save_IFS
10514 case $as_dir in #(((
10515 '') as_dir=./ ;;
10516 */) ;;
10517 *) as_dir=$as_dir/ ;;
10518 esac
10519 for ac_prog in grep ggrep
10520 do
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
10523 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
10524 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
10525 # Check for GNU $ac_path_EGREP_TRADITIONAL
10526 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
10527 *GNU*)
10528 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
10529 #(
10530 *)
10531 ac_count=0
10532 printf %s 0123456789 >"conftest.in"
10533 while :
10534 do
10535 cat "conftest.in" "conftest.in" >"conftest.tmp"
10536 mv "conftest.tmp" "conftest.in"
10537 cp "conftest.in" "conftest.nl"
10538 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
10539 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10541 as_fn_arith $ac_count + 1 && ac_count=$as_val
10542 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
10543 # Best one so far, save it but keep looking for a better one
10544 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
10545 ac_path_EGREP_TRADITIONAL_max=$ac_count
10546 fi
10547 # 10*(2^10) chars as input seems more than enough
10548 test $ac_count -gt 10 && break
10549 done
10550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10551 esac
10552
10553 $ac_path_EGREP_TRADITIONAL_found && break 3
10554 done
10555 done
10556 done
10557 IFS=$as_save_IFS
10558 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
10559 :
10560 fi
10561 else
10562 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
10563 fi
10564
10565 if test "$ac_cv_path_EGREP_TRADITIONAL"
10566 then :
10567 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
10568 else case e in #(
10569 e) if test -z "$EGREP_TRADITIONAL"; then
10570 ac_path_EGREP_TRADITIONAL_found=false
10571 # Loop through the user's path and test for each of PROGNAME-LIST
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10574 do
10575 IFS=$as_save_IFS
10576 case $as_dir in #(((
10577 '') as_dir=./ ;;
10578 */) ;;
10579 *) as_dir=$as_dir/ ;;
10580 esac
10581 for ac_prog in egrep
10582 do
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
10585 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
10586 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
10587 # Check for GNU $ac_path_EGREP_TRADITIONAL
10588 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
10589 *GNU*)
10590 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
10591 #(
10592 *)
10593 ac_count=0
10594 printf %s 0123456789 >"conftest.in"
10595 while :
10596 do
10597 cat "conftest.in" "conftest.in" >"conftest.tmp"
10598 mv "conftest.tmp" "conftest.in"
10599 cp "conftest.in" "conftest.nl"
10600 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
10601 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10603 as_fn_arith $ac_count + 1 && ac_count=$as_val
10604 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
10605 # Best one so far, save it but keep looking for a better one
10606 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
10607 ac_path_EGREP_TRADITIONAL_max=$ac_count
10608 fi
10609 # 10*(2^10) chars as input seems more than enough
10610 test $ac_count -gt 10 && break
10611 done
10612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10613 esac
10614
10615 $ac_path_EGREP_TRADITIONAL_found && break 3
10616 done
10617 done
10618 done
10619 IFS=$as_save_IFS
10620 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
10621 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10622 fi
10623 else
10624 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
10625 fi
10626 ;;
10627 esac
10628 fi ;;
10629 esac
10630 fi
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
10632 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
10633 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
10634
10635
10636 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
10637 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
10638 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10641
10642 #if defined(_MSC_VER) && _MSC_VER >= 1400
10643 print("manifest needed")
10644 #endif
10645
10646 _ACEOF
10647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10648 $EGREP_TRADITIONAL "manifest needed" >/dev/null 2>&1
10649 then :
10650
10651 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
10652 VC_MANIFEST_EMBED_DLL="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;2 ; fi"
10653 VC_MANIFEST_EMBED_EXE="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;1 ; fi"
10654 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
10655
10656 CLEANFILES="$CLEANFILES *.manifest"
10657
10658
10659 fi
10660 rm -rf conftest*
10661
10662 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
10663 else
10664 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
10665 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
10666 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
10667 fi
10668
10669 if test "${SHARED_BUILD}" = "1" ; then
10670 MAKE_LIB="${MAKE_SHARED_LIB} "
10671 else
10672 MAKE_LIB="${MAKE_STATIC_LIB} "
10673 fi
10674
10675 #--------------------------------------------------------------------
10676 # Shared libraries and static libraries have different names.
10677 # Use the double eval to make sure any variables in the suffix is
10678 # substituted. (@@@ Might not be necessary anymore)
10679 #--------------------------------------------------------------------
10680
10681 PACKAGE_LIB_PREFIX8="${PACKAGE_LIB_PREFIX}"
10682 PACKAGE_LIB_PREFIX9="${PACKAGE_LIB_PREFIX}tcl9"
10683 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
10684 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}"
10685 else
10686 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}"
10687
10688 printf "%s\n" "#define TCL_MAJOR_VERSION 8" >>confdefs.h
10689
10690 fi
10691 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tk8}" != x; then
10692
10693 printf "%s\n" "#define TK_MAJOR_VERSION 8" >>confdefs.h
10694
10695 fi
10696 if test "${TEA_PLATFORM}" = "windows" ; then
10697 if test "${SHARED_BUILD}" = "1" ; then
10698 # We force the unresolved linking of symbols that are really in
10699 # the private libraries of Tcl and Tk.
10700 if test x"${TK_BIN_DIR}" != x ; then
10701 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
10702 fi
10703 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
10704 if test "$GCC" = "yes"; then
10705 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
10706 fi
10707 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10708 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10709 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10710 else
10711 if test "$GCC" = "yes"; then
10712 PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX}
10713 fi
10714 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10715 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10716 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10717 fi
10718 # Some packages build their own stubs libraries
10719 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
10720 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
10721 else
10722 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10723 fi
10724 if test "$GCC" = "yes"; then
10725 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
10726 fi
10727 # These aren't needed on Windows (either MSVC or gcc)
10728 RANLIB=:
10729 RANLIB_STUB=:
10730 else
10731 RANLIB_STUB="${RANLIB}"
10732 if test "${SHARED_BUILD}" = "1" ; then
10733 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
10734 if test x"${TK_BIN_DIR}" != x ; then
10735 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
10736 fi
10737 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10738 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10739 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10740 RANLIB=:
10741 else
10742 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10743 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10744 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10745 fi
10746 # Some packages build their own stubs libraries
10747 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
10748 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
10749 else
10750 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10751 fi
10752 fi
10753
10754 # These are escaped so that only CFLAGS is picked up at configure time.
10755 # The other values will be substituted at make time.
10756 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
10757 if test "${SHARED_BUILD}" = "1" ; then
10758 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
10759 fi
10760
10761
10762
10763
10764
10765 # Substitute STUB_LIB_FILE in case package creates a stub library too.
10766
10767
10768
10769
10770
10771
10772 #--------------------------------------------------------------------
10773 # __CHANGE__
10774 # Add platform libs to LIBS or SHLIB_LD_LIBS as necessary.
10775 #--------------------------------------------------------------------
10776
10777 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
10778
10779 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\""
10780 for i in $vars; do
10781 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
10782 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
10783 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
10784 fi
10785 PKG_LIBS="$PKG_LIBS $i"
10786 done
10787
10788
10789
10790 vars="\"`${CYGPATH} ${pngtcl_STUB_LIB_PATH}`\""
10791 for i in $vars; do
10792 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
10793 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
10794 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
10795 fi
10796 PKG_LIBS="$PKG_LIBS $i"
10797 done
10798
10799
10800 else
10801
10802 vars="${tkimg_STUB_LIB_SPEC}"
10803 for i in $vars; do
10804 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
10805 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
10806 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
10807 fi
10808 PKG_LIBS="$PKG_LIBS $i"
10809 done
10810
10811
10812
10813 vars="${pngtcl_STUB_LIB_SPEC}"
10814 for i in $vars; do
10815 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
10816 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
10817 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
10818 fi
10819 PKG_LIBS="$PKG_LIBS $i"
10820 done
10821
10822
10823 fi
10824
10825 #--------------------------------------------------------------------
10826 # Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
10827 # file during the install process. Don't run the TCLSH_PROG through
10828 # ${CYGPATH} because it's being used directly by make.
10829 # Require that we use a tclsh shell version 8.2 or later since earlier
10830 # versions have bugs in the pkg_mkIndex routine.
10831 # Add WISH as well if this is a Tk extension.
10832 #--------------------------------------------------------------------
10833
10834
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
10836 printf %s "checking for tclsh... " >&6; }
10837 if test -f "${TCL_BIN_DIR}/Makefile" ; then
10838 # tclConfig.sh is in Tcl build directory
10839 if test "${TEA_PLATFORM}" = "windows"; then
10840 if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then
10841 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
10842 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then
10843 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}"
10844 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then
10845 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}"
10846 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then
10847 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}"
10848 fi
10849 else
10850 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
10851 fi
10852 else
10853 # tclConfig.sh is in install location
10854 if test "${TEA_PLATFORM}" = "windows"; then
10855 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
10856 else
10857 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
10858 fi
10859 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
10860 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
10861 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
10862 for i in $list ; do
10863 if test -f "$i/${TCLSH_PROG}" ; then
10864 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
10865 break
10866 fi
10867 done
10868 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
10869 fi
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
10871 printf "%s\n" "${TCLSH_PROG}" >&6; }
10872
10873
10874
10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wish" >&5
10876 printf %s "checking for wish... " >&6; }
10877 if test -f "${TK_BIN_DIR}/Makefile" ; then
10878 # tkConfig.sh is in Tk build directory
10879 if test "${TEA_PLATFORM}" = "windows"; then
10880 if test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}" ; then
10881 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}"
10882 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}s${EXEEXT}" ; then
10883 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}$s{EXEEXT}"
10884 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}t${EXEEXT}" ; then
10885 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}t${EXEEXT}"
10886 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}st${EXEEXT}" ; then
10887 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}st${EXEEXT}"
10888 fi
10889 else
10890 WISH_PROG="${TK_BIN_DIR}/wish"
10891 fi
10892 else
10893 # tkConfig.sh is in install location
10894 if test "${TEA_PLATFORM}" = "windows"; then
10895 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}"
10896 else
10897 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
10898 fi
10899 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \
10900 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \
10901 `ls -d ${TK_PREFIX}/bin 2>/dev/null`"
10902 for i in $list ; do
10903 if test -f "$i/${WISH_PROG}" ; then
10904 REAL_TK_BIN_DIR="`cd "$i"; pwd`/"
10905 break
10906 fi
10907 done
10908 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}"
10909 fi
10910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${WISH_PROG}" >&5
10911 printf "%s\n" "${WISH_PROG}" >&6; }
10912
10913
10914
10915 #--------------------------------------------------------------------
10916 # Finally, substitute all of the various values into the Makefile.
10917 # You may alternatively have a special pkgIndex.tcl.in or other files
10918 # which require substituting th AC variables in. Include these here.
10919 #--------------------------------------------------------------------
10920
10921 ac_config_files="$ac_config_files Makefile"
10922
10923 cat >confcache <<\_ACEOF
10924 # This file is a shell script that caches the results of configure
10925 # tests run on this system so they can be shared between configure
10926 # scripts and configure runs, see configure's option --config-cache.
10927 # It is not useful on other systems. If it contains results you don't
10928 # want to keep, you may remove or edit it.
10929 #
10930 # config.status only pays attention to the cache file if you give it
10931 # the --recheck option to rerun configure.
10932 #
10933 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
10934 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
10935 # following values.
10936
10937 _ACEOF
10938
10939 # The following way of writing the cache mishandles newlines in values,
10940 # but we know of no workaround that is simple, portable, and efficient.
10941 # So, we kill variables containing newlines.
10942 # Ultrix sh set writes to stderr and can't be redirected directly,
10943 # and sets the high bit in the cache file unless we assign to the vars.
10944 (
10945 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10946 eval ac_val=\$$ac_var
10947 case $ac_val in #(
10948 *${as_nl}*)
10949 case $ac_var in #(
10950 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10951 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10952 esac
10953 case $ac_var in #(
10954 _ | IFS | as_nl) ;; #(
10955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10956 *) { eval $ac_var=; unset $ac_var;} ;;
10957 esac ;;
10958 esac
10959 done
10960
10961 (set) 2>&1 |
10962 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10963 *${as_nl}ac_space=\ *)
10964 # 'set' does not quote correctly, so add quotes: double-quote
10965 # substitution turns \\\\ into \\, and sed turns \\ into \.
10966 sed -n \
10967 "s/'/'\\\\''/g;
10968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10969 ;; #(
10970 *)
10971 # 'set' quotes correctly as required by POSIX, so do not add quotes.
10972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10973 ;;
10974 esac |
10975 sort
10976 ) |
10977 sed '
10978 /^ac_cv_env_/b end
10979 t clear
10980 :clear
10981 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
10982 t end
10983 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10984 :end' >>confcache
10985 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10986 if test -w "$cache_file"; then
10987 if test "x$cache_file" != "x/dev/null"; then
10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10989 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
10990 if test ! -f "$cache_file" || test -h "$cache_file"; then
10991 cat confcache >"$cache_file"
10992 else
10993 case $cache_file in #(
10994 */* | ?:*)
10995 mv -f confcache "$cache_file"$$ &&
10996 mv -f "$cache_file"$$ "$cache_file" ;; #(
10997 *)
10998 mv -f confcache "$cache_file" ;;
10999 esac
11000 fi
11001 fi
11002 else
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11004 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11005 fi
11006 fi
11007 rm -f confcache
11008
11009 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11010 # Let make expand exec_prefix.
11011 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11012
11013 # Transform confdefs.h into DEFS.
11014 # Protect against shell expansion while executing Makefile rules.
11015 # Protect against Makefile macro expansion.
11016 #
11017 # If the first sed substitution is executed (which looks for macros that
11018 # take arguments), then branch to the quote section. Otherwise,
11019 # look for a macro that doesn't take arguments.
11020 ac_script='
11021 :mline
11022 /\\$/{
11023 N
11024 s,\\\n,,
11025 b mline
11026 }
11027 t clear
11028 :clear
11029 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11030 t quote
11031 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11032 t quote
11033 b any
11034 :quote
11035 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11036 s/\$/$$/g
11037 H
11038 :any
11039 ${
11040 g
11041 s/^\n//
11042 s/\n/ /g
11043 p
11044 }
11045 '
11046 DEFS=`sed -n "$ac_script" confdefs.h`
11047
11048
11049 ac_libobjs=
11050 ac_ltlibobjs=
11051 U=
11052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11053 # 1. Remove the extension, and $U if already installed.
11054 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11055 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11056 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11057 # will be set to the directory where LIBOBJS objects are built.
11058 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11059 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11060 done
11061 LIBOBJS=$ac_libobjs
11062
11063 LTLIBOBJS=$ac_ltlibobjs
11064
11065
11066 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
11067
11068 : "${CONFIG_STATUS=./config.status}"
11069 ac_write_fail=0
11070 ac_clean_files_save=$ac_clean_files
11071 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11073 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11074 as_write_fail=0
11075 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11076 #! $SHELL
11077 # Generated by $as_me.
11078 # Run this file to recreate the current configuration.
11079 # Compiler output produced by configure, useful for debugging
11080 # configure, is in config.log if it exists.
11081
11082 debug=false
11083 ac_cs_recheck=false
11084 ac_cs_silent=false
11085
11086 SHELL=\${CONFIG_SHELL-$SHELL}
11087 export SHELL
11088 _ASEOF
11089 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11090 ## -------------------- ##
11091 ## M4sh Initialization. ##
11092 ## -------------------- ##
11093
11094 # Be more Bourne compatible
11095 DUALCASE=1; export DUALCASE # for MKS sh
11096 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11097 then :
11098 emulate sh
11099 NULLCMD=:
11100 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11101 # is contrary to our usage. Disable this feature.
11102 alias -g '${1+"$@"}'='"$@"'
11103 setopt NO_GLOB_SUBST
11104 else case e in #(
11105 e) case `(set -o) 2>/dev/null` in #(
11106 *posix*) :
11107 set -o posix ;; #(
11108 *) :
11109 ;;
11110 esac ;;
11111 esac
11112 fi
11113
11114
11115
11116 # Reset variables that may have inherited troublesome values from
11117 # the environment.
11118
11119 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11120 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11121 # side effect of setting IFS to empty, thus disabling word splitting.)
11122 # Quoting is to prevent editors from complaining about space-tab.
11123 as_nl='
11124 '
11125 export as_nl
11126 IFS=" "" $as_nl"
11127
11128 PS1='$ '
11129 PS2='> '
11130 PS4='+ '
11131
11132 # Ensure predictable behavior from utilities with locale-dependent output.
11133 LC_ALL=C
11134 export LC_ALL
11135 LANGUAGE=C
11136 export LANGUAGE
11137
11138 # We cannot yet rely on "unset" to work, but we need these variables
11139 # to be unset--not just set to an empty or harmless value--now, to
11140 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11141 # also avoids known problems related to "unset" and subshell syntax
11142 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11143 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11144 do eval test \${$as_var+y} \
11145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11146 done
11147
11148 # Ensure that fds 0, 1, and 2 are open.
11149 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11150 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11151 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11152
11153 # The user is always right.
11154 if ${PATH_SEPARATOR+false} :; then
11155 PATH_SEPARATOR=:
11156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11158 PATH_SEPARATOR=';'
11159 }
11160 fi
11161
11162
11163 # Find who we are. Look in the path if we contain no directory separator.
11164 as_myself=
11165 case $0 in #((
11166 *[\\/]* ) as_myself=$0 ;;
11167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11169 do
11170 IFS=$as_save_IFS
11171 case $as_dir in #(((
11172 '') as_dir=./ ;;
11173 */) ;;
11174 *) as_dir=$as_dir/ ;;
11175 esac
11176 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11177 done
11178 IFS=$as_save_IFS
11179
11180 ;;
11181 esac
11182 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11183 # in which case we are not to be found in the path.
11184 if test "x$as_myself" = x; then
11185 as_myself=$0
11186 fi
11187 if test ! -f "$as_myself"; then
11188 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11189 exit 1
11190 fi
11191
11192
11193
11194 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11195 # ----------------------------------------
11196 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11197 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11198 # script with STATUS, using 1 if that was 0.
11199 as_fn_error ()
11200 {
11201 as_status=$1; test $as_status -eq 0 && as_status=1
11202 if test "$4"; then
11203 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11205 fi
11206 printf "%s\n" "$as_me: error: $2" >&2
11207 as_fn_exit $as_status
11208 } # as_fn_error
11209
11210
11211 # as_fn_set_status STATUS
11212 # -----------------------
11213 # Set $? to STATUS, without forking.
11214 as_fn_set_status ()
11215 {
11216 return $1
11217 } # as_fn_set_status
11218
11219 # as_fn_exit STATUS
11220 # -----------------
11221 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11222 as_fn_exit ()
11223 {
11224 set +e
11225 as_fn_set_status $1
11226 exit $1
11227 } # as_fn_exit
11228
11229 # as_fn_unset VAR
11230 # ---------------
11231 # Portably unset VAR.
11232 as_fn_unset ()
11233 {
11234 { eval $1=; unset $1;}
11235 }
11236 as_unset=as_fn_unset
11237
11238 # as_fn_append VAR VALUE
11239 # ----------------------
11240 # Append the text in VALUE to the end of the definition contained in VAR. Take
11241 # advantage of any shell optimizations that allow amortized linear growth over
11242 # repeated appends, instead of the typical quadratic growth present in naive
11243 # implementations.
11244 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11245 then :
11246 eval 'as_fn_append ()
11247 {
11248 eval $1+=\$2
11249 }'
11250 else case e in #(
11251 e) as_fn_append ()
11252 {
11253 eval $1=\$$1\$2
11254 } ;;
11255 esac
11256 fi # as_fn_append
11257
11258 # as_fn_arith ARG...
11259 # ------------------
11260 # Perform arithmetic evaluation on the ARGs, and store the result in the
11261 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11262 # must be portable across $(()) and expr.
11263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11264 then :
11265 eval 'as_fn_arith ()
11266 {
11267 as_val=$(( $* ))
11268 }'
11269 else case e in #(
11270 e) as_fn_arith ()
11271 {
11272 as_val=`expr "$@" || test $? -eq 1`
11273 } ;;
11274 esac
11275 fi # as_fn_arith
11276
11277
11278 if expr a : '\(a\)' >/dev/null 2>&1 &&
11279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11280 as_expr=expr
11281 else
11282 as_expr=false
11283 fi
11284
11285 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11286 as_basename=basename
11287 else
11288 as_basename=false
11289 fi
11290
11291 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11292 as_dirname=dirname
11293 else
11294 as_dirname=false
11295 fi
11296
11297 as_me=`$as_basename -- "$0" ||
11298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11299 X"$0" : 'X\(//\)$' \| \
11300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11301 printf "%s\n" X/"$0" |
11302 sed '/^.*\/\([^/][^/]*\)\/*$/{
11303 s//\1/
11304 q
11305 }
11306 /^X\/\(\/\/\)$/{
11307 s//\1/
11308 q
11309 }
11310 /^X\/\(\/\).*/{
11311 s//\1/
11312 q
11313 }
11314 s/.*/./; q'`
11315
11316 # Avoid depending upon Character Ranges.
11317 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11318 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11319 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11320 as_cr_digits='0123456789'
11321 as_cr_alnum=$as_cr_Letters$as_cr_digits
11322
11323
11324 # Determine whether it's possible to make 'echo' print without a newline.
11325 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11326 # for compatibility with existing Makefiles.
11327 ECHO_C= ECHO_N= ECHO_T=
11328 case `echo -n x` in #(((((
11329 -n*)
11330 case `echo 'xy\c'` in
11331 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11332 xy) ECHO_C='\c';;
11333 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11334 ECHO_T=' ';;
11335 esac;;
11336 *)
11337 ECHO_N='-n';;
11338 esac
11339
11340 # For backward compatibility with old third-party macros, we provide
11341 # the shell variables $as_echo and $as_echo_n. New code should use
11342 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11343 as_echo='printf %s\n'
11344 as_echo_n='printf %s'
11345
11346 rm -f conf$$ conf$$.exe conf$$.file
11347 if test -d conf$$.dir; then
11348 rm -f conf$$.dir/conf$$.file
11349 else
11350 rm -f conf$$.dir
11351 mkdir conf$$.dir 2>/dev/null
11352 fi
11353 if (echo >conf$$.file) 2>/dev/null; then
11354 if ln -s conf$$.file conf$$ 2>/dev/null; then
11355 as_ln_s='ln -s'
11356 # ... but there are two gotchas:
11357 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
11358 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
11359 # In both cases, we have to default to 'cp -pR'.
11360 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11361 as_ln_s='cp -pR'
11362 elif ln conf$$.file conf$$ 2>/dev/null; then
11363 as_ln_s=ln
11364 else
11365 as_ln_s='cp -pR'
11366 fi
11367 else
11368 as_ln_s='cp -pR'
11369 fi
11370 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11371 rmdir conf$$.dir 2>/dev/null
11372
11373
11374 # as_fn_mkdir_p
11375 # -------------
11376 # Create "$as_dir" as a directory, including parents if necessary.
11377 as_fn_mkdir_p ()
11378 {
11379
11380 case $as_dir in #(
11381 -*) as_dir=./$as_dir;;
11382 esac
11383 test -d "$as_dir" || eval $as_mkdir_p || {
11384 as_dirs=
11385 while :; do
11386 case $as_dir in #(
11387 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11388 *) as_qdir=$as_dir;;
11389 esac
11390 as_dirs="'$as_qdir' $as_dirs"
11391 as_dir=`$as_dirname -- "$as_dir" ||
11392 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11393 X"$as_dir" : 'X\(//\)[^/]' \| \
11394 X"$as_dir" : 'X\(//\)$' \| \
11395 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11396 printf "%s\n" X"$as_dir" |
11397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11398 s//\1/
11399 q
11400 }
11401 /^X\(\/\/\)[^/].*/{
11402 s//\1/
11403 q
11404 }
11405 /^X\(\/\/\)$/{
11406 s//\1/
11407 q
11408 }
11409 /^X\(\/\).*/{
11410 s//\1/
11411 q
11412 }
11413 s/.*/./; q'`
11414 test -d "$as_dir" && break
11415 done
11416 test -z "$as_dirs" || eval "mkdir $as_dirs"
11417 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11418
11419
11420 } # as_fn_mkdir_p
11421 if mkdir -p . 2>/dev/null; then
11422 as_mkdir_p='mkdir -p "$as_dir"'
11423 else
11424 test -d ./-p && rmdir ./-p
11425 as_mkdir_p=false
11426 fi
11427
11428
11429 # as_fn_executable_p FILE
11430 # -----------------------
11431 # Test if FILE is an executable regular file.
11432 as_fn_executable_p ()
11433 {
11434 test -f "$1" && test -x "$1"
11435 } # as_fn_executable_p
11436 as_test_x='test -x'
11437 as_executable_p=as_fn_executable_p
11438
11439 # Sed expression to map a string onto a valid CPP name.
11440 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11441 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
11442
11443 # Sed expression to map a string onto a valid variable name.
11444 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11445 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
11446
11447
11448 exec 6>&1
11449 ## ----------------------------------- ##
11450 ## Main body of $CONFIG_STATUS script. ##
11451 ## ----------------------------------- ##
11452 _ASEOF
11453 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11454
11455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11456 # Save the log message, to keep $0 and so on meaningful, and to
11457 # report actual input values of CONFIG_FILES etc. instead of their
11458 # values after options handling.
11459 ac_log="
11460 This file was extended by tkimgpng $as_me 2.1.1, which was
11461 generated by GNU Autoconf 2.72. Invocation command line was
11462
11463 CONFIG_FILES = $CONFIG_FILES
11464 CONFIG_HEADERS = $CONFIG_HEADERS
11465 CONFIG_LINKS = $CONFIG_LINKS
11466 CONFIG_COMMANDS = $CONFIG_COMMANDS
11467 $ $0 $@
11468
11469 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11470 "
11471
11472 _ACEOF
11473
11474 case $ac_config_files in *"
11475 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11476 esac
11477
11478
11479
11480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11481 # Files that config.status was made for.
11482 config_files="$ac_config_files"
11483
11484 _ACEOF
11485
11486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11487 ac_cs_usage="\
11488 '$as_me' instantiates files and other configuration actions
11489 from templates according to the current configuration. Unless the files
11490 and actions are specified as TAGs, all are instantiated by default.
11491
11492 Usage: $0 [OPTION]... [TAG]...
11493
11494 -h, --help print this help, then exit
11495 -V, --version print version number and configuration settings, then exit
11496 --config print configuration, then exit
11497 -q, --quiet, --silent
11498 do not print progress messages
11499 -d, --debug don't remove temporary files
11500 --recheck update $as_me by reconfiguring in the same conditions
11501 --file=FILE[:TEMPLATE]
11502 instantiate the configuration file FILE
11503
11504 Configuration files:
11505 $config_files
11506
11507 Report bugs to the package provider."
11508
11509 _ACEOF
11510 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11511 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11513 ac_cs_config='$ac_cs_config_escaped'
11514 ac_cs_version="\\
11515 tkimgpng config.status 2.1.1
11516 configured by $0, generated by GNU Autoconf 2.72,
11517 with options \\"\$ac_cs_config\\"
11518
11519 Copyright (C) 2023 Free Software Foundation, Inc.
11520 This config.status script is free software; the Free Software Foundation
11521 gives unlimited permission to copy, distribute and modify it."
11522
11523 ac_pwd='$ac_pwd'
11524 srcdir='$srcdir'
11525 test -n "\$AWK" || AWK=awk
11526 _ACEOF
11527
11528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11529 # The default lists apply if the user does not specify any file.
11530 ac_need_defaults=:
11531 while test $# != 0
11532 do
11533 case $1 in
11534 --*=?*)
11535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11537 ac_shift=:
11538 ;;
11539 --*=)
11540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11541 ac_optarg=
11542 ac_shift=:
11543 ;;
11544 *)
11545 ac_option=$1
11546 ac_optarg=$2
11547 ac_shift=shift
11548 ;;
11549 esac
11550
11551 case $ac_option in
11552 # Handling of the options.
11553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11554 ac_cs_recheck=: ;;
11555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11556 printf "%s\n" "$ac_cs_version"; exit ;;
11557 --config | --confi | --conf | --con | --co | --c )
11558 printf "%s\n" "$ac_cs_config"; exit ;;
11559 --debug | --debu | --deb | --de | --d | -d )
11560 debug=: ;;
11561 --file | --fil | --fi | --f )
11562 $ac_shift
11563 case $ac_optarg in
11564 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11565 '') as_fn_error $? "missing file argument" ;;
11566 esac
11567 as_fn_append CONFIG_FILES " '$ac_optarg'"
11568 ac_need_defaults=false;;
11569 --he | --h | --help | --hel | -h )
11570 printf "%s\n" "$ac_cs_usage"; exit ;;
11571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11572 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11573 ac_cs_silent=: ;;
11574
11575 # This is an error.
11576 -*) as_fn_error $? "unrecognized option: '$1'
11577 Try '$0 --help' for more information." ;;
11578
11579 *) as_fn_append ac_config_targets " $1"
11580 ac_need_defaults=false ;;
11581
11582 esac
11583 shift
11584 done
11585
11586 ac_configure_extra_args=
11587
11588 if $ac_cs_silent; then
11589 exec 6>/dev/null
11590 ac_configure_extra_args="$ac_configure_extra_args --silent"
11591 fi
11592
11593 _ACEOF
11594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11595 if \$ac_cs_recheck; then
11596 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11597 shift
11598 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11599 CONFIG_SHELL='$SHELL'
11600 export CONFIG_SHELL
11601 exec "\$@"
11602 fi
11603
11604 _ACEOF
11605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11606 exec 5>>config.log
11607 {
11608 echo
11609 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11610 ## Running $as_me. ##
11611 _ASBOX
11612 printf "%s\n" "$ac_log"
11613 } >&5
11614
11615 _ACEOF
11616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11617 _ACEOF
11618
11619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11620
11621 # Handling of arguments.
11622 for ac_config_target in $ac_config_targets
11623 do
11624 case $ac_config_target in
11625 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11626
11627 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
11628 esac
11629 done
11630
11631
11632 # If the user did not use the arguments to specify the items to instantiate,
11633 # then the envvar interface is used. Set only those that are not.
11634 # We use the long form for the default assignment because of an extremely
11635 # bizarre bug on SunOS 4.1.3.
11636 if $ac_need_defaults; then
11637 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11638 fi
11639
11640 # Have a temporary directory for convenience. Make it in the build tree
11641 # simply because there is no reason against having it here, and in addition,
11642 # creating and moving files from /tmp can sometimes cause problems.
11643 # Hook for its removal unless debugging.
11644 # Note that there is a small window in which the directory will not be cleaned:
11645 # after its creation but before its name has been assigned to '$tmp'.
11646 $debug ||
11647 {
11648 tmp= ac_tmp=
11649 trap 'exit_status=$?
11650 : "${ac_tmp:=$tmp}"
11651 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11652 ' 0
11653 trap 'as_fn_exit 1' 1 2 13 15
11654 }
11655 # Create a (secure) tmp directory for tmp files.
11656
11657 {
11658 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11659 test -d "$tmp"
11660 } ||
11661 {
11662 tmp=./conf$$-$RANDOM
11663 (umask 077 && mkdir "$tmp")
11664 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11665 ac_tmp=$tmp
11666
11667 # Set up the scripts for CONFIG_FILES section.
11668 # No need to generate them if there are no CONFIG_FILES.
11669 # This happens for instance with './config.status config.h'.
11670 if test -n "$CONFIG_FILES"; then
11671
11672
11673 ac_cr=`echo X | tr X '\015'`
11674 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11675 # But we know of no other shell where ac_cr would be empty at this
11676 # point, so we can use a bashism as a fallback.
11677 if test "x$ac_cr" = x; then
11678 eval ac_cr=\$\'\\r\'
11679 fi
11680 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11681 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11682 ac_cs_awk_cr='\\r'
11683 else
11684 ac_cs_awk_cr=$ac_cr
11685 fi
11686
11687 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11688 _ACEOF
11689
11690
11691 {
11692 echo "cat >conf$$subs.awk <<_ACEOF" &&
11693 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11694 echo "_ACEOF"
11695 } >conf$$subs.sh ||
11696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11697 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11698 ac_delim='%!_!# '
11699 for ac_last_try in false false false false false :; do
11700 . ./conf$$subs.sh ||
11701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11702
11703 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11704 if test $ac_delim_n = $ac_delim_num; then
11705 break
11706 elif $ac_last_try; then
11707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11708 else
11709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11710 fi
11711 done
11712 rm -f conf$$subs.sh
11713
11714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11715 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11716 _ACEOF
11717 sed -n '
11718 h
11719 s/^/S["/; s/!.*/"]=/
11720 p
11721 g
11722 s/^[^!]*!//
11723 :repl
11724 t repl
11725 s/'"$ac_delim"'$//
11726 t delim
11727 :nl
11728 h
11729 s/\(.\{148\}\)..*/\1/
11730 t more1
11731 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11732 p
11733 n
11734 b repl
11735 :more1
11736 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11737 p
11738 g
11739 s/.\{148\}//
11740 t nl
11741 :delim
11742 h
11743 s/\(.\{148\}\)..*/\1/
11744 t more2
11745 s/["\\]/\\&/g; s/^/"/; s/$/"/
11746 p
11747 b
11748 :more2
11749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11750 p
11751 g
11752 s/.\{148\}//
11753 t delim
11754 ' <conf$$subs.awk | sed '
11755 /^[^""]/{
11756 N
11757 s/\n//
11758 }
11759 ' >>$CONFIG_STATUS || ac_write_fail=1
11760 rm -f conf$$subs.awk
11761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11762 _ACAWK
11763 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11764 for (key in S) S_is_set[key] = 1
11765 FS = ""
11766
11767 }
11768 {
11769 line = $ 0
11770 nfields = split(line, field, "@")
11771 substed = 0
11772 len = length(field[1])
11773 for (i = 2; i < nfields; i++) {
11774 key = field[i]
11775 keylen = length(key)
11776 if (S_is_set[key]) {
11777 value = S[key]
11778 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11779 len += length(value) + length(field[++i])
11780 substed = 1
11781 } else
11782 len += 1 + keylen
11783 }
11784
11785 print line
11786 }
11787
11788 _ACAWK
11789 _ACEOF
11790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11791 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11792 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11793 else
11794 cat
11795 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11796 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11797 _ACEOF
11798
11799 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11800 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11801 # trailing colons and then remove the whole line if VPATH becomes empty
11802 # (actually we leave an empty line to preserve line numbers).
11803 if test "x$srcdir" = x.; then
11804 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11805 h
11806 s///
11807 s/^/:/
11808 s/[ ]*$/:/
11809 s/:\$(srcdir):/:/g
11810 s/:\${srcdir}:/:/g
11811 s/:@srcdir@:/:/g
11812 s/^:*//
11813 s/:*$//
11814 x
11815 s/\(=[ ]*\).*/\1/
11816 G
11817 s/\n//
11818 s/^[^=]*=[ ]*$//
11819 }'
11820 fi
11821
11822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11823 fi # test -n "$CONFIG_FILES"
11824
11825
11826 eval set X " :F $CONFIG_FILES "
11827 shift
11828 for ac_tag
11829 do
11830 case $ac_tag in
11831 :[FHLC]) ac_mode=$ac_tag; continue;;
11832 esac
11833 case $ac_mode$ac_tag in
11834 :[FHL]*:*);;
11835 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
11836 :[FH]-) ac_tag=-:-;;
11837 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11838 esac
11839 ac_save_IFS=$IFS
11840 IFS=:
11841 set x $ac_tag
11842 IFS=$ac_save_IFS
11843 shift
11844 ac_file=$1
11845 shift
11846
11847 case $ac_mode in
11848 :L) ac_source=$1;;
11849 :[FH])
11850 ac_file_inputs=
11851 for ac_f
11852 do
11853 case $ac_f in
11854 -) ac_f="$ac_tmp/stdin";;
11855 *) # Look for the file first in the build tree, then in the source tree
11856 # (if the path is not absolute). The absolute path cannot be DOS-style,
11857 # because $ac_f cannot contain ':'.
11858 test -f "$ac_f" ||
11859 case $ac_f in
11860 [\\/$]*) false;;
11861 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11862 esac ||
11863 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
11864 esac
11865 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11866 as_fn_append ac_file_inputs " '$ac_f'"
11867 done
11868
11869 # Let's still pretend it is 'configure' which instantiates (i.e., don't
11870 # use $as_me), people would be surprised to read:
11871 # /* config.h. Generated by config.status. */
11872 configure_input='Generated from '`
11873 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11874 `' by configure.'
11875 if test x"$ac_file" != x-; then
11876 configure_input="$ac_file. $configure_input"
11877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11878 printf "%s\n" "$as_me: creating $ac_file" >&6;}
11879 fi
11880 # Neutralize special characters interpreted by sed in replacement strings.
11881 case $configure_input in #(
11882 *\&* | *\|* | *\\* )
11883 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
11884 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11885 *) ac_sed_conf_input=$configure_input;;
11886 esac
11887
11888 case $ac_tag in
11889 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11891 esac
11892 ;;
11893 esac
11894
11895 ac_dir=`$as_dirname -- "$ac_file" ||
11896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11897 X"$ac_file" : 'X\(//\)[^/]' \| \
11898 X"$ac_file" : 'X\(//\)$' \| \
11899 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11900 printf "%s\n" X"$ac_file" |
11901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11902 s//\1/
11903 q
11904 }
11905 /^X\(\/\/\)[^/].*/{
11906 s//\1/
11907 q
11908 }
11909 /^X\(\/\/\)$/{
11910 s//\1/
11911 q
11912 }
11913 /^X\(\/\).*/{
11914 s//\1/
11915 q
11916 }
11917 s/.*/./; q'`
11918 as_dir="$ac_dir"; as_fn_mkdir_p
11919 ac_builddir=.
11920
11921 case "$ac_dir" in
11922 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11923 *)
11924 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11925 # A ".." for each directory in $ac_dir_suffix.
11926 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11927 case $ac_top_builddir_sub in
11928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11930 esac ;;
11931 esac
11932 ac_abs_top_builddir=$ac_pwd
11933 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11934 # for backward compatibility:
11935 ac_top_builddir=$ac_top_build_prefix
11936
11937 case $srcdir in
11938 .) # We are building in place.
11939 ac_srcdir=.
11940 ac_top_srcdir=$ac_top_builddir_sub
11941 ac_abs_top_srcdir=$ac_pwd ;;
11942 [\\/]* | ?:[\\/]* ) # Absolute name.
11943 ac_srcdir=$srcdir$ac_dir_suffix;
11944 ac_top_srcdir=$srcdir
11945 ac_abs_top_srcdir=$srcdir ;;
11946 *) # Relative name.
11947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11948 ac_top_srcdir=$ac_top_build_prefix$srcdir
11949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11950 esac
11951 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11952
11953
11954 case $ac_mode in
11955 :F)
11956 #
11957 # CONFIG_FILE
11958 #
11959
11960 _ACEOF
11961
11962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11963 # If the template does not know about datarootdir, expand it.
11964 # FIXME: This hack should be removed a few years after 2.60.
11965 ac_datarootdir_hack=; ac_datarootdir_seen=
11966 ac_sed_dataroot='
11967 /datarootdir/ {
11968 p
11969 q
11970 }
11971 /@datadir@/p
11972 /@docdir@/p
11973 /@infodir@/p
11974 /@localedir@/p
11975 /@mandir@/p'
11976 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11977 *datarootdir*) ac_datarootdir_seen=yes;;
11978 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11980 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11981 _ACEOF
11982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11983 ac_datarootdir_hack='
11984 s&@datadir@&$datadir&g
11985 s&@docdir@&$docdir&g
11986 s&@infodir@&$infodir&g
11987 s&@localedir@&$localedir&g
11988 s&@mandir@&$mandir&g
11989 s&\\\${datarootdir}&$datarootdir&g' ;;
11990 esac
11991 _ACEOF
11992
11993 # Neutralize VPATH when '$srcdir' = '.'.
11994 # Shell code in configure.ac might set extrasub.
11995 # FIXME: do we really want to maintain this feature?
11996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11997 ac_sed_extra="$ac_vpsub
11998 $extrasub
11999 _ACEOF
12000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12001 :t
12002 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12003 s|@configure_input@|$ac_sed_conf_input|;t t
12004 s&@top_builddir@&$ac_top_builddir_sub&;t t
12005 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12006 s&@srcdir@&$ac_srcdir&;t t
12007 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12008 s&@top_srcdir@&$ac_top_srcdir&;t t
12009 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12010 s&@builddir@&$ac_builddir&;t t
12011 s&@abs_builddir@&$ac_abs_builddir&;t t
12012 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12013 $ac_datarootdir_hack
12014 "
12015 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12016 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12017
12018 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12019 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12020 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12021 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12023 which seems to be undefined. Please make sure it is defined" >&5
12024 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12025 which seems to be undefined. Please make sure it is defined" >&2;}
12026
12027 rm -f "$ac_tmp/stdin"
12028 case $ac_file in
12029 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12030 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12031 esac \
12032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12033 ;;
12034
12035
12036
12037 esac
12038
12039 done # for ac_tag
12040
12041
12042 as_fn_exit 0
12043 _ACEOF
12044 ac_clean_files=$ac_clean_files_save
12045
12046 test $ac_write_fail = 0 ||
12047 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12048
12049
12050 # configure is writing to config.log, and then calls config.status.
12051 # config.status does its own redirection, appending to config.log.
12052 # Unfortunately, on DOS this fails, as config.log is still kept open
12053 # by configure, so config.status won't be able to write to it; its
12054 # output is simply discarded. So we exec the FD to /dev/null,
12055 # effectively closing config.log, so it can be properly (re)opened and
12056 # appended to by config.status. When coming back to configure, we
12057 # need to make the FD available again.
12058 if test "$no_create" != yes; then
12059 ac_cs_success=:
12060 ac_config_status_args=
12061 test "$silent" = yes &&
12062 ac_config_status_args="$ac_config_status_args --quiet"
12063 exec 5>/dev/null
12064 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12065 exec 5>>config.log
12066 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12067 # would make configure fail if this is the last instruction.
12068 $ac_cs_success || as_fn_exit 1
12069 fi
12070 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12072 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12073 fi
12074
12075
12076 #--------------------------------------------------------------------
12077