Debian Codegraph @

gif/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for tkimggif 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='tkimggif'
603 PACKAGE_TARNAME='tkimggif'
604 PACKAGE_VERSION='2.1.1'
605 PACKAGE_STRING='tkimggif 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 tkimg_BUILD_PATH
676 tkimg_SRC_PATH
677 tkimg_STUB_LIB_PATH
678 tkimg_STUB_LIB_SPEC
679 tkimg_STUB_LIB_FILE
680 tkimg_LIB_SPEC
681 tkimg_LIB_FILE
682 tkimg_SRC_DIR
683 tkimg_BIN_DIR
684 tkimg_VERSION
685 RANLIB
686 SET_MAKE
687 CPP
688 TK_XINCLUDES
689 TK_LIBS
690 TK_STUB_LIB_SPEC
691 TK_STUB_LIB_FLAG
692 TK_STUB_LIB_FILE
693 TK_LIB_SPEC
694 TK_LIB_FLAG
695 TK_LIB_FILE
696 TK_SRC_DIR
697 TK_BIN_DIR
698 TK_VERSION
699 TCL_SHLIB_LD_LIBS
700 TCL_LD_FLAGS
701 TCL_EXTRA_CFLAGS
702 TCL_DEFS
703 TCL_LIBS
704 CLEANFILES
705 OBJEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 TCL_STUB_LIB_SPEC
712 TCL_STUB_LIB_FLAG
713 TCL_STUB_LIB_FILE
714 TCL_LIB_SPEC
715 TCL_LIB_FLAG
716 TCL_LIB_FILE
717 TCL_SRC_DIR
718 TCL_BIN_DIR
719 TCL_PATCH_LEVEL
720 TCL_VERSION
721 PACKAGE_TCLNAME
722 PHIMGTYPE
723 INSTALL_LIBRARY
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 INSTALL_DATA
727 INSTALL_DATA_DIR
728 INSTALL
729 PKG_CFLAGS
730 PKG_LIBS
731 PKG_INCLUDES
732 PKG_HEADERS
733 PKG_TCL_SOURCES
734 PKG_STUB_OBJECTS
735 PKG_STUB_SOURCES
736 PKG_LIB_FILE9
737 PKG_LIB_FILE8
738 PKG_LIB_FILE
739 EXEEXT
740 CYGPATH
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 runstatedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 with_tcl
784 with_tcl8
785 with_tk
786 with_tk8
787 with_tkimg
788 with_tclinclude
789 with_tkinclude
790 enable_threads
791 enable_shared
792 enable_stubs
793 enable_64bit
794 enable_64bit_vis
795 enable_rpath
796 enable_symbols
797 with_x
798 '
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CPP
808 XMKMF'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 runstatedir='${localstatedir}/run'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
859
860 ac_prev=
861 ac_dashdash=
862 for ac_option
863 do
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
869 fi
870
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
876
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
885
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
900
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
905
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: '$ac_useropt'"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
938
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: '$ac_useropt'"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
974
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
979
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1009
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1083
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -runstatedir | --runstatedir | --runstatedi | --runstated \
1099 | --runstate | --runstat | --runsta | --runst | --runs \
1100 | --run | --ru | --r)
1101 ac_prev=runstatedir ;;
1102 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1103 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1104 | --run=* | --ru=* | --r=*)
1105 runstatedir=$ac_optarg ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: '$ac_useropt'"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1167
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: '$ac_useropt'"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1201
1202 -*) as_fn_error $? "unrecognized option: '$ac_option'
1203 Try '$0 --help' for more information"
1204 ;;
1205
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1215
1216 *)
1217 # FIXME: should be removed in autoconf 3.0.
1218 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 ;;
1223
1224 esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir runstatedir
1245 do
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: '$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275 fi
1276
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280 test "$silent" = yes && exec 6>/dev/null
1281
1282
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error $? "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 printf "%s\n" X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1321 fi
1322 else
1323 ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328 fi
1329 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1356 cat <<_ACEOF
1357 'configure' configures tkimggif 2.1.1 to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print 'checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for '--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or '..']
1376
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 [PREFIX]
1382
1383 By default, 'make install' will install all the files in
1384 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than '$ac_default_prefix' using '--prefix',
1386 for instance '--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/tkimggif]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1411 _ACEOF
1412
1413 cat <<\_ACEOF
1414
1415 X features:
1416 --x-includes=DIR X include files are in DIR
1417 --x-libraries=DIR X library files are in DIR
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of tkimggif 2.1.1:";;
1424 esac
1425 cat <<\_ACEOF
1426
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-threads build with threads (default: on)
1432 --enable-shared build and link with shared libraries (default: on)
1433 --enable-stubs build and link with stub libraries. Always true for
1434 shared builds (default: on)
1435 --enable-64bit enable 64bit support (default: off)
1436 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
1437 --disable-rpath disable rpath support (default: on)
1438 --enable-symbols build with debugging symbols (default: off)
1439
1440 Optional Packages:
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1443 --with-tcl directory containing tcl configuration
1444 (tclConfig.sh)
1445 --with-tcl8 Compile for Tcl8 in Tcl9 environment
1446 --with-tk directory containing tk configuration (tkConfig.sh)
1447 --with-tk8 Compile for Tk8 in Tk9 environment
1448 --with-tkimg directory containing tkimg configuration (tkimgConfig.sh)
1449 --with-tclinclude directory containing the public Tcl header files
1450 --with-tkinclude directory containing the public Tk header files
1451 --with-x use the X Window System
1452
1453 Some influential environment variables:
1454 CC C compiler command
1455 CFLAGS C compiler flags
1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457 nonstandard directory <lib dir>
1458 LIBS libraries to pass to the linker, e.g. -l<library>
1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460 you have headers in a nonstandard directory <include dir>
1461 CPP C preprocessor
1462 XMKMF Path to xmkmf, Makefile generator for X Window System
1463
1464 Use these variables to override the choices made by 'configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to the package provider.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for configure.gnu first; this name is used for a wrapper for
1514 # Metaconfig's "Configure" on case-insensitive file systems.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1521 else
1522 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1525 done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530 cat <<\_ACEOF
1531 tkimggif configure 2.1.1
1532 generated by GNU Autoconf 2.72
1533
1534 Copyright (C) 2023 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538 exit
1539 fi
1540
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1544
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1549 {
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext conftest.beam
1552 if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 printf "%s\n" "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext
1571 then :
1572 ac_retval=0
1573 else case e in #(
1574 e) printf "%s\n" "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1 ;;
1578 esac
1579 fi
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
1582
1583 } # ac_fn_c_try_compile
1584
1585 # ac_fn_c_try_cpp LINENO
1586 # ----------------------
1587 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_cpp ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if { { ac_try="$ac_cpp conftest.$ac_ext"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 printf "%s\n" "$ac_try_echo"; } >&5
1598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } > conftest.i && {
1607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 }
1610 then :
1611 ac_retval=0
1612 else case e in #(
1613 e) printf "%s\n" "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1 ;;
1617 esac
1618 fi
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_cpp
1623
1624 # ac_fn_c_try_link LINENO
1625 # -----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_link ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1631 if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 printf "%s\n" "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest$ac_exeext && {
1650 test "$cross_compiling" = yes ||
1651 test -x conftest$ac_exeext
1652 }
1653 then :
1654 ac_retval=0
1655 else case e in #(
1656 e) printf "%s\n" "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1 ;;
1660 esac
1661 fi
1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664 # interfere with the next link command; also delete a directory that is
1665 # left behind by Apple's compiler. We do this before executing the actions.
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_link
1671
1672 # ac_fn_c_try_run LINENO
1673 # ----------------------
1674 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1675 # executables *can* be run.
1676 ac_fn_c_try_run ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_link"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 printf "%s\n" "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>&5
1687 ac_status=$?
1688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1690 { { case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 printf "%s\n" "$ac_try_echo"; } >&5
1696 (eval "$ac_try") 2>&5
1697 ac_status=$?
1698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; }; }
1700 then :
1701 ac_retval=0
1702 else case e in #(
1703 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1704 printf "%s\n" "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=$ac_status ;;
1708 esac
1709 fi
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_run
1715
1716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717 # -------------------------------------------------------
1718 # Tests whether HEADER exists and can be compiled using the include files in
1719 # INCLUDES, setting the cache variable VAR accordingly.
1720 ac_fn_c_check_header_compile ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 printf %s "checking for $2... " >&6; }
1725 if eval test \${$3+y}
1726 then :
1727 printf %s "(cached) " >&6
1728 else case e in #(
1729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 $4
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"
1735 then :
1736 eval "$3=yes"
1737 else case e in #(
1738 e) eval "$3=no" ;;
1739 esac
1740 fi
1741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1742 esac
1743 fi
1744 eval ac_res=\$$3
1745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 printf "%s\n" "$ac_res" >&6; }
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749 } # ac_fn_c_check_header_compile
1750
1751 # ac_fn_c_check_func LINENO FUNC VAR
1752 # ----------------------------------
1753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1754 ac_fn_c_check_func ()
1755 {
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 printf %s "checking for $2... " >&6; }
1759 if eval test \${$3+y}
1760 then :
1761 printf %s "(cached) " >&6
1762 else case e in #(
1763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1767 #define $2 innocuous_$2
1768
1769 /* System header to define __stub macros and hopefully few prototypes,
1770 which can conflict with char $2 (void); below. */
1771
1772 #include <limits.h>
1773 #undef $2
1774
1775 /* Override any GCC internal prototype to avoid an error.
1776 Use char because int might match the return type of a GCC
1777 builtin and then its argument prototype would still apply. */
1778 #ifdef __cplusplus
1779 extern "C"
1780 #endif
1781 char $2 (void);
1782 /* The GNU C library defines this for functions which it implements
1783 to always fail with ENOSYS. Some functions are actually named
1784 something starting with __ and the normal name is an alias. */
1785 #if defined __stub_$2 || defined __stub___$2
1786 choke me
1787 #endif
1788
1789 int
1790 main (void)
1791 {
1792 return $2 ();
1793 ;
1794 return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_link "$LINENO"
1798 then :
1799 eval "$3=yes"
1800 else case e in #(
1801 e) eval "$3=no" ;;
1802 esac
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1805 conftest$ac_exeext conftest.$ac_ext ;;
1806 esac
1807 fi
1808 eval ac_res=\$$3
1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 printf "%s\n" "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_func
1814 ac_configure_args_raw=
1815 for ac_arg
1816 do
1817 case $ac_arg in
1818 *\'*)
1819 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 esac
1821 as_fn_append ac_configure_args_raw " '$ac_arg'"
1822 done
1823
1824 case $ac_configure_args_raw in
1825 *$as_nl*)
1826 ac_safe_unquote= ;;
1827 *)
1828 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1829 ac_unsafe_a="$ac_unsafe_z#~"
1830 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1831 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1832 esac
1833
1834 cat >config.log <<_ACEOF
1835 This file contains any messages produced by compilers while
1836 running configure, to aid debugging if configure makes a mistake.
1837
1838 It was created by tkimggif $as_me 2.1.1, which was
1839 generated by GNU Autoconf 2.72. Invocation command line was
1840
1841 $ $0$ac_configure_args_raw
1842
1843 _ACEOF
1844 exec 5>>config.log
1845 {
1846 cat <<_ASUNAME
1847 ## --------- ##
1848 ## Platform. ##
1849 ## --------- ##
1850
1851 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1852 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1853 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1854 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1855 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856
1857 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1858 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1859
1860 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1861 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1862 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1863 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1864 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1865 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1866 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1867
1868 _ASUNAME
1869
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1872 do
1873 IFS=$as_save_IFS
1874 case $as_dir in #(((
1875 '') as_dir=./ ;;
1876 */) ;;
1877 *) as_dir=$as_dir/ ;;
1878 esac
1879 printf "%s\n" "PATH: $as_dir"
1880 done
1881 IFS=$as_save_IFS
1882
1883 } >&5
1884
1885 cat >&5 <<_ACEOF
1886
1887
1888 ## ----------- ##
1889 ## Core tests. ##
1890 ## ----------- ##
1891
1892 _ACEOF
1893
1894
1895 # Keep a trace of the command line.
1896 # Strip out --no-create and --no-recursion so they do not pile up.
1897 # Strip out --silent because we don't want to record it for future runs.
1898 # Also quote any args containing shell meta-characters.
1899 # Make two passes to allow for proper duplicate-argument suppression.
1900 ac_configure_args=
1901 ac_configure_args0=
1902 ac_configure_args1=
1903 ac_must_keep_next=false
1904 for ac_pass in 1 2
1905 do
1906 for ac_arg
1907 do
1908 case $ac_arg in
1909 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911 | -silent | --silent | --silen | --sile | --sil)
1912 continue ;;
1913 *\'*)
1914 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 esac
1916 case $ac_pass in
1917 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1918 2)
1919 as_fn_append ac_configure_args1 " '$ac_arg'"
1920 if test $ac_must_keep_next = true; then
1921 ac_must_keep_next=false # Got value, back to normal.
1922 else
1923 case $ac_arg in
1924 *=* | --config-cache | -C | -disable-* | --disable-* \
1925 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927 | -with-* | --with-* | -without-* | --without-* | --x)
1928 case "$ac_configure_args0 " in
1929 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930 esac
1931 ;;
1932 -* ) ac_must_keep_next=true ;;
1933 esac
1934 fi
1935 as_fn_append ac_configure_args " '$ac_arg'"
1936 ;;
1937 esac
1938 done
1939 done
1940 { ac_configure_args0=; unset ac_configure_args0;}
1941 { ac_configure_args1=; unset ac_configure_args1;}
1942
1943 # When interrupted or exit'd, cleanup temporary files, and complete
1944 # config.log. We remove comments because anyway the quotes in there
1945 # would cause problems or look ugly.
1946 # WARNING: Use '\'' to represent an apostrophe within the trap.
1947 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1948 trap 'exit_status=$?
1949 # Sanitize IFS.
1950 IFS=" "" $as_nl"
1951 # Save into config.log some information that might help in debugging.
1952 {
1953 echo
1954
1955 printf "%s\n" "## ---------------- ##
1956 ## Cache variables. ##
1957 ## ---------------- ##"
1958 echo
1959 # The following way of writing the cache mishandles newlines in values,
1960 (
1961 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1962 eval ac_val=\$$ac_var
1963 case $ac_val in #(
1964 *${as_nl}*)
1965 case $ac_var in #(
1966 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1967 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1968 esac
1969 case $ac_var in #(
1970 _ | IFS | as_nl) ;; #(
1971 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1972 *) { eval $ac_var=; unset $ac_var;} ;;
1973 esac ;;
1974 esac
1975 done
1976 (set) 2>&1 |
1977 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1978 *${as_nl}ac_space=\ *)
1979 sed -n \
1980 "s/'\''/'\''\\\\'\'''\''/g;
1981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1982 ;; #(
1983 *)
1984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1985 ;;
1986 esac |
1987 sort
1988 )
1989 echo
1990
1991 printf "%s\n" "## ----------------- ##
1992 ## Output variables. ##
1993 ## ----------------- ##"
1994 echo
1995 for ac_var in $ac_subst_vars
1996 do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in
1999 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 esac
2001 printf "%s\n" "$ac_var='\''$ac_val'\''"
2002 done | sort
2003 echo
2004
2005 if test -n "$ac_subst_files"; then
2006 printf "%s\n" "## ------------------- ##
2007 ## File substitutions. ##
2008 ## ------------------- ##"
2009 echo
2010 for ac_var in $ac_subst_files
2011 do
2012 eval ac_val=\$$ac_var
2013 case $ac_val in
2014 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 esac
2016 printf "%s\n" "$ac_var='\''$ac_val'\''"
2017 done | sort
2018 echo
2019 fi
2020
2021 if test -s confdefs.h; then
2022 printf "%s\n" "## ----------- ##
2023 ## confdefs.h. ##
2024 ## ----------- ##"
2025 echo
2026 cat confdefs.h
2027 echo
2028 fi
2029 test "$ac_signal" != 0 &&
2030 printf "%s\n" "$as_me: caught signal $ac_signal"
2031 printf "%s\n" "$as_me: exit $exit_status"
2032 } >&5
2033 rm -f core *.core core.conftest.* &&
2034 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2035 exit $exit_status
2036 ' 0
2037 for ac_signal in 1 2 13 15; do
2038 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2039 done
2040 ac_signal=0
2041
2042 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2043 rm -f -r conftest* confdefs.h
2044
2045 printf "%s\n" "/* confdefs.h */" > confdefs.h
2046
2047 # Predefined preprocessor variables.
2048
2049 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2050
2051 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2052
2053 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2054
2055 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2056
2057 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2058
2059 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2060
2061
2062 # Let the site file select an alternate cache file if it wants to.
2063 # Prefer an explicitly selected file to automatically selected ones.
2064 if test -n "$CONFIG_SITE"; then
2065 ac_site_files="$CONFIG_SITE"
2066 elif test "x$prefix" != xNONE; then
2067 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2068 else
2069 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2070 fi
2071
2072 for ac_site_file in $ac_site_files
2073 do
2074 case $ac_site_file in #(
2075 */*) :
2076 ;; #(
2077 *) :
2078 ac_site_file=./$ac_site_file ;;
2079 esac
2080 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2082 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2083 sed 's/^/| /' "$ac_site_file" >&5
2084 . "$ac_site_file" \
2085 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2086 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2087 as_fn_error $? "failed to load site script $ac_site_file
2088 See 'config.log' for more details" "$LINENO" 5; }
2089 fi
2090 done
2091
2092 if test -r "$cache_file"; then
2093 # Some versions of bash will fail to source /dev/null (special files
2094 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2095 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2097 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2098 case $cache_file in
2099 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2100 *) . "./$cache_file";;
2101 esac
2102 fi
2103 else
2104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2105 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2106 >$cache_file
2107 fi
2108
2109 # Test code for whether the C compiler supports C89 (global declarations)
2110 ac_c_conftest_c89_globals='
2111 /* Does the compiler advertise C89 conformance?
2112 Do not test the value of __STDC__, because some compilers set it to 0
2113 while being otherwise adequately conformant. */
2114 #if !defined __STDC__
2115 # error "Compiler does not advertise C89 conformance"
2116 #endif
2117
2118 #include <stddef.h>
2119 #include <stdarg.h>
2120 struct stat;
2121 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2122 struct buf { int x; };
2123 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2124 static char *e (char **p, int i)
2125 {
2126 return p[i];
2127 }
2128 static char *f (char * (*g) (char **, int), char **p, ...)
2129 {
2130 char *s;
2131 va_list v;
2132 va_start (v,p);
2133 s = g (p, va_arg (v,int));
2134 va_end (v);
2135 return s;
2136 }
2137
2138 /* C89 style stringification. */
2139 #define noexpand_stringify(a) #a
2140 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2141
2142 /* C89 style token pasting. Exercises some of the corner cases that
2143 e.g. old MSVC gets wrong, but not very hard. */
2144 #define noexpand_concat(a,b) a##b
2145 #define expand_concat(a,b) noexpand_concat(a,b)
2146 extern int vA;
2147 extern int vbee;
2148 #define aye A
2149 #define bee B
2150 int *pvA = &expand_concat(v,aye);
2151 int *pvbee = &noexpand_concat(v,bee);
2152
2153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2154 function prototypes and stuff, but not \xHH hex character constants.
2155 These do not provoke an error unfortunately, instead are silently treated
2156 as an "x". The following induces an error, until -std is added to get
2157 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2158 array size at least. It is necessary to write \x00 == 0 to get something
2159 that is true only with -std. */
2160 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2161
2162 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2163 inside strings and character constants. */
2164 #define FOO(x) '\''x'\''
2165 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2166
2167 int test (int i, double x);
2168 struct s1 {int (*f) (int a);};
2169 struct s2 {int (*f) (double a);};
2170 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2171 int, int);'
2172
2173 # Test code for whether the C compiler supports C89 (body of main).
2174 ac_c_conftest_c89_main='
2175 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2176 '
2177
2178 # Test code for whether the C compiler supports C99 (global declarations)
2179 ac_c_conftest_c99_globals='
2180 /* Does the compiler advertise C99 conformance? */
2181 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2182 # error "Compiler does not advertise C99 conformance"
2183 #endif
2184
2185 // See if C++-style comments work.
2186
2187 #include <stdbool.h>
2188 extern int puts (const char *);
2189 extern int printf (const char *, ...);
2190 extern int dprintf (int, const char *, ...);
2191 extern void *malloc (size_t);
2192 extern void free (void *);
2193
2194 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2195 // dprintf is used instead of fprintf to avoid needing to declare
2196 // FILE and stderr.
2197 #define debug(...) dprintf (2, __VA_ARGS__)
2198 #define showlist(...) puts (#__VA_ARGS__)
2199 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2200 static void
2201 test_varargs_macros (void)
2202 {
2203 int x = 1234;
2204 int y = 5678;
2205 debug ("Flag");
2206 debug ("X = %d\n", x);
2207 showlist (The first, second, and third items.);
2208 report (x>y, "x is %d but y is %d", x, y);
2209 }
2210
2211 // Check long long types.
2212 #define BIG64 18446744073709551615ull
2213 #define BIG32 4294967295ul
2214 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2215 #if !BIG_OK
2216 #error "your preprocessor is broken"
2217 #endif
2218 #if BIG_OK
2219 #else
2220 #error "your preprocessor is broken"
2221 #endif
2222 static long long int bignum = -9223372036854775807LL;
2223 static unsigned long long int ubignum = BIG64;
2224
2225 struct incomplete_array
2226 {
2227 int datasize;
2228 double data[];
2229 };
2230
2231 struct named_init {
2232 int number;
2233 const wchar_t *name;
2234 double average;
2235 };
2236
2237 typedef const char *ccp;
2238
2239 static inline int
2240 test_restrict (ccp restrict text)
2241 {
2242 // Iterate through items via the restricted pointer.
2243 // Also check for declarations in for loops.
2244 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2245 continue;
2246 return 0;
2247 }
2248
2249 // Check varargs and va_copy.
2250 static bool
2251 test_varargs (const char *format, ...)
2252 {
2253 va_list args;
2254 va_start (args, format);
2255 va_list args_copy;
2256 va_copy (args_copy, args);
2257
2258 const char *str = "";
2259 int number = 0;
2260 float fnumber = 0;
2261
2262 while (*format)
2263 {
2264 switch (*format++)
2265 {
2266 case '\''s'\'': // string
2267 str = va_arg (args_copy, const char *);
2268 break;
2269 case '\''d'\'': // int
2270 number = va_arg (args_copy, int);
2271 break;
2272 case '\''f'\'': // float
2273 fnumber = va_arg (args_copy, double);
2274 break;
2275 default:
2276 break;
2277 }
2278 }
2279 va_end (args_copy);
2280 va_end (args);
2281
2282 return *str && number && fnumber;
2283 }
2284 '
2285
2286 # Test code for whether the C compiler supports C99 (body of main).
2287 ac_c_conftest_c99_main='
2288 // Check bool.
2289 _Bool success = false;
2290 success |= (argc != 0);
2291
2292 // Check restrict.
2293 if (test_restrict ("String literal") == 0)
2294 success = true;
2295 char *restrict newvar = "Another string";
2296
2297 // Check varargs.
2298 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2299 test_varargs_macros ();
2300
2301 // Check flexible array members.
2302 struct incomplete_array *ia =
2303 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2304 ia->datasize = 10;
2305 for (int i = 0; i < ia->datasize; ++i)
2306 ia->data[i] = i * 1.234;
2307 // Work around memory leak warnings.
2308 free (ia);
2309
2310 // Check named initializers.
2311 struct named_init ni = {
2312 .number = 34,
2313 .name = L"Test wide string",
2314 .average = 543.34343,
2315 };
2316
2317 ni.number = 58;
2318
2319 int dynamic_array[ni.number];
2320 dynamic_array[0] = argv[0][0];
2321 dynamic_array[ni.number - 1] = 543;
2322
2323 // work around unused variable warnings
2324 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2325 || dynamic_array[ni.number - 1] != 543);
2326 '
2327
2328 # Test code for whether the C compiler supports C11 (global declarations)
2329 ac_c_conftest_c11_globals='
2330 /* Does the compiler advertise C11 conformance? */
2331 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2332 # error "Compiler does not advertise C11 conformance"
2333 #endif
2334
2335 // Check _Alignas.
2336 char _Alignas (double) aligned_as_double;
2337 char _Alignas (0) no_special_alignment;
2338 extern char aligned_as_int;
2339 char _Alignas (0) _Alignas (int) aligned_as_int;
2340
2341 // Check _Alignof.
2342 enum
2343 {
2344 int_alignment = _Alignof (int),
2345 int_array_alignment = _Alignof (int[100]),
2346 char_alignment = _Alignof (char)
2347 };
2348 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2349
2350 // Check _Noreturn.
2351 int _Noreturn does_not_return (void) { for (;;) continue; }
2352
2353 // Check _Static_assert.
2354 struct test_static_assert
2355 {
2356 int x;
2357 _Static_assert (sizeof (int) <= sizeof (long int),
2358 "_Static_assert does not work in struct");
2359 long int y;
2360 };
2361
2362 // Check UTF-8 literals.
2363 #define u8 syntax error!
2364 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2365
2366 // Check duplicate typedefs.
2367 typedef long *long_ptr;
2368 typedef long int *long_ptr;
2369 typedef long_ptr long_ptr;
2370
2371 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2372 struct anonymous
2373 {
2374 union {
2375 struct { int i; int j; };
2376 struct { int k; long int l; } w;
2377 };
2378 int m;
2379 } v1;
2380 '
2381
2382 # Test code for whether the C compiler supports C11 (body of main).
2383 ac_c_conftest_c11_main='
2384 _Static_assert ((offsetof (struct anonymous, i)
2385 == offsetof (struct anonymous, w.k)),
2386 "Anonymous union alignment botch");
2387 v1.i = 2;
2388 v1.w.k = 5;
2389 ok |= v1.i != 5;
2390 '
2391
2392 # Test code for whether the C compiler supports C11 (complete).
2393 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2394 ${ac_c_conftest_c99_globals}
2395 ${ac_c_conftest_c11_globals}
2396
2397 int
2398 main (int argc, char **argv)
2399 {
2400 int ok = 0;
2401 ${ac_c_conftest_c89_main}
2402 ${ac_c_conftest_c99_main}
2403 ${ac_c_conftest_c11_main}
2404 return ok;
2405 }
2406 "
2407
2408 # Test code for whether the C compiler supports C99 (complete).
2409 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2410 ${ac_c_conftest_c99_globals}
2411
2412 int
2413 main (int argc, char **argv)
2414 {
2415 int ok = 0;
2416 ${ac_c_conftest_c89_main}
2417 ${ac_c_conftest_c99_main}
2418 return ok;
2419 }
2420 "
2421
2422 # Test code for whether the C compiler supports C89 (complete).
2423 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2424
2425 int
2426 main (int argc, char **argv)
2427 {
2428 int ok = 0;
2429 ${ac_c_conftest_c89_main}
2430 return ok;
2431 }
2432 "
2433
2434 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2435 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2436 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2437 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2438 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2439 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2440 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2441 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2442 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2443 # Check that the precious variables saved in the cache have kept the same
2444 # value.
2445 ac_cache_corrupted=false
2446 for ac_var in $ac_precious_vars; do
2447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448 eval ac_new_set=\$ac_env_${ac_var}_set
2449 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450 eval ac_new_val=\$ac_env_${ac_var}_value
2451 case $ac_old_set,$ac_new_set in
2452 set,)
2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2454 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2456 ,set)
2457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2458 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2459 ac_cache_corrupted=: ;;
2460 ,);;
2461 *)
2462 if test "x$ac_old_val" != "x$ac_new_val"; then
2463 # differences in whitespace do not lead to failure.
2464 ac_old_val_w=`echo x $ac_old_val`
2465 ac_new_val_w=`echo x $ac_new_val`
2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2468 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2469 ac_cache_corrupted=:
2470 else
2471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2472 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2473 eval $ac_var=\$ac_old_val
2474 fi
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2476 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2478 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2479 fi;;
2480 esac
2481 # Pass precious variables to config.status.
2482 if test "$ac_new_set" = set; then
2483 case $ac_new_val in
2484 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 *) ac_arg=$ac_var=$ac_new_val ;;
2486 esac
2487 case " $ac_configure_args " in
2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2489 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2490 esac
2491 fi
2492 done
2493 if $ac_cache_corrupted; then
2494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2495 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2497 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2499 and start over" "$LINENO" 5
2500 fi
2501 ## -------------------- ##
2502 ## Main body of script. ##
2503 ## -------------------- ##
2504
2505 ac_ext=c
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510
2511
2512
2513
2514 TEA_VERSION="3.13"
2515
2516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5
2517 printf %s "checking TEA configuration... " >&6; }
2518 if test x"${PACKAGE_NAME}" = x ; then
2519 as_fn_error $? "
2520 The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
2521 fi
2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2523 printf "%s\n" "ok (TEA ${TEA_VERSION})" >&6; }
2524
2525 # If the user did not set CFLAGS, set it now to keep macros
2526 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
2527 if test "${CFLAGS+set}" != "set" ; then
2528 CFLAGS=""
2529 fi
2530
2531 case "`uname -s`" in
2532 *win32*|*WIN32*|*MINGW32_*|*MINGW64_*|*MSYS_*)
2533 # Extract the first word of "cygpath", so it can be a program name with args.
2534 set dummy cygpath; ac_word=$2
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 printf %s "checking for $ac_word... " >&6; }
2537 if test ${ac_cv_prog_CYGPATH+y}
2538 then :
2539 printf %s "(cached) " >&6
2540 else case e in #(
2541 e) if test -n "$CYGPATH"; then
2542 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2546 do
2547 IFS=$as_save_IFS
2548 case $as_dir in #(((
2549 '') as_dir=./ ;;
2550 */) ;;
2551 *) as_dir=$as_dir/ ;;
2552 esac
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_CYGPATH="cygpath -m"
2556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2564 fi ;;
2565 esac
2566 fi
2567 CYGPATH=$ac_cv_prog_CYGPATH
2568 if test -n "$CYGPATH"; then
2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2570 printf "%s\n" "$CYGPATH" >&6; }
2571 else
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 printf "%s\n" "no" >&6; }
2574 fi
2575
2576
2577 EXEEXT=".exe"
2578 TEA_PLATFORM="windows"
2579 ;;
2580 *CYGWIN_*)
2581 EXEEXT=".exe"
2582 # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
2583 ;;
2584 *)
2585 CYGPATH=echo
2586 # Maybe we are cross-compiling....
2587 case ${host_alias} in
2588 *mingw32*)
2589 EXEEXT=".exe"
2590 TEA_PLATFORM="windows"
2591 ;;
2592 *)
2593 EXEEXT=""
2594 TEA_PLATFORM="unix"
2595 ;;
2596 esac
2597 ;;
2598 esac
2599
2600 # Check if exec_prefix is set. If not use fall back to prefix.
2601 # Note when adjusted, so that TEA_PREFIX can correct for this.
2602 # This is needed for recursive configures, since autoconf propagates
2603 # $prefix, but not $exec_prefix (doh!).
2604 if test x$exec_prefix = xNONE ; then
2605 exec_prefix_default=yes
2606 exec_prefix=$prefix
2607 fi
2608
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
2610 printf "%s\n" "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
2611
2612
2613
2614
2615 # This package name must be replaced statically for AC_SUBST to work
2616
2617
2618
2619
2620 # We AC_SUBST these here to ensure they are subst'ed,
2621 # in case the user doesn't call TEA_ADD_...
2622
2623
2624
2625
2626
2627
2628
2629
2630 # Configure the installer.
2631
2632 INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
2633 INSTALL_DATA_DIR='${INSTALL} -d -m 755'
2634 INSTALL_DATA='${INSTALL} -m 644'
2635 INSTALL_PROGRAM='${INSTALL} -m 755'
2636 INSTALL_SCRIPT='${INSTALL} -m 755'
2637
2638
2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
2640 printf %s "checking system version... " >&6; }
2641 if test ${tcl_cv_sys_version+y}
2642 then :
2643 printf %s "(cached) " >&6
2644 else case e in #(
2645 e)
2646 # TEA specific:
2647 if test "${TEA_PLATFORM}" = "windows" ; then
2648 tcl_cv_sys_version=windows
2649 else
2650 tcl_cv_sys_version=`uname -s`-`uname -r`
2651 if test "$?" -ne 0 ; then
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
2653 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
2654 tcl_cv_sys_version=unknown
2655 else
2656 if test "`uname -s`" = "AIX" ; then
2657 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
2658 fi
2659 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
2660 tcl_cv_sys_version=NetBSD-Debian
2661 fi
2662 fi
2663 fi
2664 ;;
2665 esac
2666 fi
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
2668 printf "%s\n" "$tcl_cv_sys_version" >&6; }
2669 system=$tcl_cv_sys_version
2670
2671 case $system in
2672 HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;;
2673 *) INSTALL_LIBRARY='${INSTALL} -m 644' ;;
2674 esac
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687 PHIMGTYPE="gif"
2688 CPACKAGE="Tkimggif"
2689 PACKAGE_TCLNAME="img::gif"
2690
2691
2692
2693 #--------------------------------------------------------------------
2694 # Load the tclConfig.sh file
2695 # Load the tkConfig.sh file
2696 #--------------------------------------------------------------------
2697
2698
2699
2700 #
2701 # Ok, lets find the tcl configuration
2702 # First, look for one uninstalled.
2703 # the alternative search directory is invoked by --with-tcl
2704 #
2705
2706 if test x"${no_tcl}" = x ; then
2707 # we reset no_tcl in case something fails here
2708 no_tcl=true
2709
2710 # Check whether --with-tcl was given.
2711 if test ${with_tcl+y}
2712 then :
2713 withval=$with_tcl; with_tclconfig="${withval}"
2714 fi
2715
2716
2717 # Check whether --with-tcl8 was given.
2718 if test ${with_tcl8+y}
2719 then :
2720 withval=$with_tcl8; with_tcl8="${withval}"
2721 fi
2722
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2724 printf %s "checking for Tcl configuration... " >&6; }
2725 if test ${ac_cv_c_tclconfig+y}
2726 then :
2727 printf %s "(cached) " >&6
2728 else case e in #(
2729 e)
2730
2731 # First check to see if --with-tcl was specified.
2732 if test x"${with_tclconfig}" != x ; then
2733 case "${with_tclconfig}" in
2734 */tclConfig.sh )
2735 if test -f "${with_tclconfig}"; then
2736 { 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
2737 printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2738 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2739 fi ;;
2740 esac
2741 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2742 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2743 else
2744 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2745 fi
2746 fi
2747
2748 # then check for a private Tcl installation
2749 if test x"${ac_cv_c_tclconfig}" = x ; then
2750 for i in \
2751 ../tcl \
2752 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2753 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2754 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2755 ../../tcl \
2756 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2757 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2758 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2759 ../../../tcl \
2760 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2761 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2762 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2763 if test "${TEA_PLATFORM}" = "windows" \
2764 -a -f "$i/win/tclConfig.sh" ; then
2765 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2766 break
2767 fi
2768 if test -f "$i/unix/tclConfig.sh" ; then
2769 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2770 break
2771 fi
2772 done
2773 fi
2774
2775 # on Darwin, check in Framework installation locations
2776 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2777 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2778 `ls -d /Library/Frameworks 2>/dev/null` \
2779 `ls -d /Network/Library/Frameworks 2>/dev/null` \
2780 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
2781 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
2782 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
2783 ; do
2784 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2785 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2786 break
2787 fi
2788 done
2789 fi
2790
2791 # TEA specific: on Windows, check in common installation locations
2792 if test "${TEA_PLATFORM}" = "windows" \
2793 -a x"${ac_cv_c_tclconfig}" = x ; then
2794 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2795 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2796 ; do
2797 if test -f "$i/tclConfig.sh" ; then
2798 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2799 break
2800 fi
2801 done
2802 fi
2803
2804 # check in a few common install locations
2805 if test x"${ac_cv_c_tclconfig}" = x ; then
2806 for i in `ls -d ${libdir} 2>/dev/null` \
2807 `ls -d ${exec_prefix}/lib 2>/dev/null` \
2808 `ls -d ${prefix}/lib 2>/dev/null` \
2809 `ls -d /usr/local/lib 2>/dev/null` \
2810 `ls -d /usr/contrib/lib 2>/dev/null` \
2811 `ls -d /usr/pkg/lib 2>/dev/null` \
2812 `ls -d /usr/lib 2>/dev/null` \
2813 `ls -d /usr/lib64 2>/dev/null` \
2814 `ls -d /usr/lib/tcl9.0 2>/dev/null` \
2815 `ls -d /usr/lib/tcl8.7 2>/dev/null` \
2816 `ls -d /usr/lib/tcl8.6 2>/dev/null` \
2817 `ls -d /usr/lib/tcl8.5 2>/dev/null` \
2818 `ls -d /usr/local/lib/tcl9.0 2>/dev/null` \
2819 `ls -d /usr/local/lib/tcl8.7 2>/dev/null` \
2820 `ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
2821 `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
2822 `ls -d /usr/local/lib/tcl/tcl9.0 2>/dev/null` \
2823 `ls -d /usr/local/lib/tcl/tcl8.7 2>/dev/null` \
2824 `ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
2825 `ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \
2826 ; do
2827 if test -f "$i/tclConfig.sh" ; then
2828 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2829 break
2830 fi
2831 done
2832 fi
2833
2834 # check in a few other private locations
2835 if test x"${ac_cv_c_tclconfig}" = x ; then
2836 for i in \
2837 ${srcdir}/../tcl \
2838 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2839 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2840 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2841 if test "${TEA_PLATFORM}" = "windows" \
2842 -a -f "$i/win/tclConfig.sh" ; then
2843 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2844 break
2845 fi
2846 if test -f "$i/unix/tclConfig.sh" ; then
2847 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2848 break
2849 fi
2850 done
2851 fi
2852 ;;
2853 esac
2854 fi
2855
2856
2857 if test x"${ac_cv_c_tclconfig}" = x ; then
2858 TCL_BIN_DIR="# no Tcl configs found"
2859 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2860 else
2861 no_tcl=
2862 TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2864 printf "%s\n" "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2865 fi
2866 fi
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 printf %s "checking for $ac_word... " >&6; }
2887 if test ${ac_cv_prog_CC+y}
2888 then :
2889 printf %s "(cached) " >&6
2890 else case e in #(
2891 e) if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 case $as_dir in #(((
2899 '') as_dir=./ ;;
2900 */) ;;
2901 *) as_dir=$as_dir/ ;;
2902 esac
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 fi ;;
2914 esac
2915 fi
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 printf "%s\n" "$CC" >&6; }
2920 else
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 printf "%s\n" "no" >&6; }
2923 fi
2924
2925
2926 fi
2927 if test -z "$ac_cv_prog_CC"; then
2928 ac_ct_CC=$CC
2929 # Extract the first word of "gcc", so it can be a program name with args.
2930 set dummy gcc; ac_word=$2
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 printf %s "checking for $ac_word... " >&6; }
2933 if test ${ac_cv_prog_ac_ct_CC+y}
2934 then :
2935 printf %s "(cached) " >&6
2936 else case e in #(
2937 e) if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 case $as_dir in #(((
2945 '') as_dir=./ ;;
2946 */) ;;
2947 *) as_dir=$as_dir/ ;;
2948 esac
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_ac_ct_CC="gcc"
2952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi ;;
2960 esac
2961 fi
2962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963 if test -n "$ac_ct_CC"; then
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2965 printf "%s\n" "$ac_ct_CC" >&6; }
2966 else
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 printf "%s\n" "no" >&6; }
2969 fi
2970
2971 if test "x$ac_ct_CC" = x; then
2972 CC=""
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975 yes:)
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978 ac_tool_warned=yes ;;
2979 esac
2980 CC=$ac_ct_CC
2981 fi
2982 else
2983 CC="$ac_cv_prog_CC"
2984 fi
2985
2986 if test -z "$CC"; then
2987 if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}cc; ac_word=$2
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 printf %s "checking for $ac_word... " >&6; }
2992 if test ${ac_cv_prog_CC+y}
2993 then :
2994 printf %s "(cached) " >&6
2995 else case e in #(
2996 e) if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 case $as_dir in #(((
3004 '') as_dir=./ ;;
3005 */) ;;
3006 *) as_dir=$as_dir/ ;;
3007 esac
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_CC="${ac_tool_prefix}cc"
3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi ;;
3019 esac
3020 fi
3021 CC=$ac_cv_prog_CC
3022 if test -n "$CC"; then
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024 printf "%s\n" "$CC" >&6; }
3025 else
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 printf "%s\n" "no" >&6; }
3028 fi
3029
3030
3031 fi
3032 fi
3033 if test -z "$CC"; then
3034 # Extract the first word of "cc", so it can be a program name with args.
3035 set dummy cc; ac_word=$2
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 printf %s "checking for $ac_word... " >&6; }
3038 if test ${ac_cv_prog_CC+y}
3039 then :
3040 printf %s "(cached) " >&6
3041 else case e in #(
3042 e) if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 else
3045 ac_prog_rejected=no
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049 IFS=$as_save_IFS
3050 case $as_dir in #(((
3051 '') as_dir=./ ;;
3052 */) ;;
3053 *) as_dir=$as_dir/ ;;
3054 esac
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3057 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3058 ac_prog_rejected=yes
3059 continue
3060 fi
3061 ac_cv_prog_CC="cc"
3062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 if test $ac_prog_rejected = yes; then
3070 # We found a bogon in the path, so make sure we never use it.
3071 set dummy $ac_cv_prog_CC
3072 shift
3073 if test $# != 0; then
3074 # We chose a different compiler from the bogus one.
3075 # However, it has the same basename, so the bogon will be chosen
3076 # first if we set CC to just the basename; use the full file name.
3077 shift
3078 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3079 fi
3080 fi
3081 fi ;;
3082 esac
3083 fi
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 printf "%s\n" "$CC" >&6; }
3088 else
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 printf "%s\n" "no" >&6; }
3091 fi
3092
3093
3094 fi
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 for ac_prog in cl.exe
3098 do
3099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 printf %s "checking for $ac_word... " >&6; }
3103 if test ${ac_cv_prog_CC+y}
3104 then :
3105 printf %s "(cached) " >&6
3106 else case e in #(
3107 e) if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 case $as_dir in #(((
3115 '') as_dir=./ ;;
3116 */) ;;
3117 *) as_dir=$as_dir/ ;;
3118 esac
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi ;;
3130 esac
3131 fi
3132 CC=$ac_cv_prog_CC
3133 if test -n "$CC"; then
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135 printf "%s\n" "$CC" >&6; }
3136 else
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 printf "%s\n" "no" >&6; }
3139 fi
3140
3141
3142 test -n "$CC" && break
3143 done
3144 fi
3145 if test -z "$CC"; then
3146 ac_ct_CC=$CC
3147 for ac_prog in cl.exe
3148 do
3149 # Extract the first word of "$ac_prog", so it can be a program name with args.
3150 set dummy $ac_prog; ac_word=$2
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 printf %s "checking for $ac_word... " >&6; }
3153 if test ${ac_cv_prog_ac_ct_CC+y}
3154 then :
3155 printf %s "(cached) " >&6
3156 else case e in #(
3157 e) if test -n "$ac_ct_CC"; then
3158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163 IFS=$as_save_IFS
3164 case $as_dir in #(((
3165 '') as_dir=./ ;;
3166 */) ;;
3167 *) as_dir=$as_dir/ ;;
3168 esac
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_CC="$ac_prog"
3172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi ;;
3180 esac
3181 fi
3182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3183 if test -n "$ac_ct_CC"; then
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3185 printf "%s\n" "$ac_ct_CC" >&6; }
3186 else
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 printf "%s\n" "no" >&6; }
3189 fi
3190
3191
3192 test -n "$ac_ct_CC" && break
3193 done
3194
3195 if test "x$ac_ct_CC" = x; then
3196 CC=""
3197 else
3198 case $cross_compiling:$ac_tool_warned in
3199 yes:)
3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3201 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3202 ac_tool_warned=yes ;;
3203 esac
3204 CC=$ac_ct_CC
3205 fi
3206 fi
3207
3208 fi
3209 if test -z "$CC"; then
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}clang; ac_word=$2
3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 printf %s "checking for $ac_word... " >&6; }
3215 if test ${ac_cv_prog_CC+y}
3216 then :
3217 printf %s "(cached) " >&6
3218 else case e in #(
3219 e) if test -n "$CC"; then
3220 ac_cv_prog_CC="$CC" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225 IFS=$as_save_IFS
3226 case $as_dir in #(((
3227 '') as_dir=./ ;;
3228 */) ;;
3229 *) as_dir=$as_dir/ ;;
3230 esac
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3233 ac_cv_prog_CC="${ac_tool_prefix}clang"
3234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237 done
3238 done
3239 IFS=$as_save_IFS
3240
3241 fi ;;
3242 esac
3243 fi
3244 CC=$ac_cv_prog_CC
3245 if test -n "$CC"; then
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 printf "%s\n" "$CC" >&6; }
3248 else
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 printf "%s\n" "no" >&6; }
3251 fi
3252
3253
3254 fi
3255 if test -z "$ac_cv_prog_CC"; then
3256 ac_ct_CC=$CC
3257 # Extract the first word of "clang", so it can be a program name with args.
3258 set dummy clang; ac_word=$2
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 printf %s "checking for $ac_word... " >&6; }
3261 if test ${ac_cv_prog_ac_ct_CC+y}
3262 then :
3263 printf %s "(cached) " >&6
3264 else case e in #(
3265 e) if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 case $as_dir in #(((
3273 '') as_dir=./ ;;
3274 */) ;;
3275 *) as_dir=$as_dir/ ;;
3276 esac
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_ac_ct_CC="clang"
3280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi ;;
3288 esac
3289 fi
3290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3293 printf "%s\n" "$ac_ct_CC" >&6; }
3294 else
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 printf "%s\n" "no" >&6; }
3297 fi
3298
3299 if test "x$ac_ct_CC" = x; then
3300 CC=""
3301 else
3302 case $cross_compiling:$ac_tool_warned in
3303 yes:)
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned=yes ;;
3307 esac
3308 CC=$ac_ct_CC
3309 fi
3310 else
3311 CC="$ac_cv_prog_CC"
3312 fi
3313
3314 fi
3315
3316
3317 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3318 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3319 as_fn_error $? "no acceptable C compiler found in \$PATH
3320 See 'config.log' for more details" "$LINENO" 5; }
3321
3322 # Provide some information about the compiler.
3323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3324 set X $ac_compile
3325 ac_compiler=$2
3326 for ac_option in --version -v -V -qversion -version; do
3327 { { ac_try="$ac_compiler $ac_option >&5"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 printf "%s\n" "$ac_try_echo"; } >&5
3334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3335 ac_status=$?
3336 if test -s conftest.err; then
3337 sed '10a\
3338 ... rest of stderr output deleted ...
3339 10q' conftest.err >conftest.er1
3340 cat conftest.er1 >&5
3341 fi
3342 rm -f conftest.er1 conftest.err
3343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }
3345 done
3346
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3349
3350 int
3351 main (void)
3352 {
3353
3354 ;
3355 return 0;
3356 }
3357 _ACEOF
3358 ac_clean_files_save=$ac_clean_files
3359 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3360 # Try to create an executable without -o first, disregard a.out.
3361 # It will help us diagnose broken compilers, and finding out an intuition
3362 # of exeext.
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3364 printf %s "checking whether the C compiler works... " >&6; }
3365 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3366
3367 # The possible output files:
3368 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3369
3370 ac_rmfiles=
3371 for ac_file in $ac_files
3372 do
3373 case $ac_file in
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3376 esac
3377 done
3378 rm -f $ac_rmfiles
3379
3380 if { { ac_try="$ac_link_default"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 printf "%s\n" "$ac_try_echo"; } >&5
3387 (eval "$ac_link_default") 2>&5
3388 ac_status=$?
3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }
3391 then :
3392 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3393 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3395 # so that the user can short-circuit this test for compilers unknown to
3396 # Autoconf.
3397 for ac_file in $ac_files ''
3398 do
3399 test -f "$ac_file" || continue
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3402 ;;
3403 [ab].out )
3404 # We found the default executable, but exeext='' is most
3405 # certainly right.
3406 break;;
3407 *.* )
3408 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3409 then :; else
3410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411 fi
3412 # We set ac_cv_exeext here because the later test for it is not
3413 # safe: cross compilers may not add the suffix if given an '-o'
3414 # argument, so we may need to know it at that point already.
3415 # Even if this section looks crufty: it has the advantage of
3416 # actually working.
3417 break;;
3418 * )
3419 break;;
3420 esac
3421 done
3422 test "$ac_cv_exeext" = no && ac_cv_exeext=
3423
3424 else case e in #(
3425 e) ac_file='' ;;
3426 esac
3427 fi
3428 if test -z "$ac_file"
3429 then :
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 printf "%s\n" "no" >&6; }
3432 printf "%s\n" "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3436 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3437 as_fn_error 77 "C compiler cannot create executables
3438 See 'config.log' for more details" "$LINENO" 5; }
3439 else case e in #(
3440 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3441 printf "%s\n" "yes" >&6; } ;;
3442 esac
3443 fi
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3445 printf %s "checking for C compiler default output file name... " >&6; }
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3447 printf "%s\n" "$ac_file" >&6; }
3448 ac_exeext=$ac_cv_exeext
3449
3450 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3451 ac_clean_files=$ac_clean_files_save
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3453 printf %s "checking for suffix of executables... " >&6; }
3454 if { { ac_try="$ac_link"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 printf "%s\n" "$ac_try_echo"; } >&5
3461 (eval "$ac_link") 2>&5
3462 ac_status=$?
3463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }
3465 then :
3466 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3467 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3468 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3469 # 'rm'.
3470 for ac_file in conftest.exe conftest conftest.*; do
3471 test -f "$ac_file" || continue
3472 case $ac_file in
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475 break;;
3476 * ) break;;
3477 esac
3478 done
3479 else case e in #(
3480 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3481 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3482 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3483 See 'config.log' for more details" "$LINENO" 5; } ;;
3484 esac
3485 fi
3486 rm -f conftest conftest$ac_cv_exeext
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3488 printf "%s\n" "$ac_cv_exeext" >&6; }
3489
3490 rm -f conftest.$ac_ext
3491 EXEEXT=$ac_cv_exeext
3492 ac_exeext=$EXEEXT
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495 #include <stdio.h>
3496 int
3497 main (void)
3498 {
3499 FILE *f = fopen ("conftest.out", "w");
3500 if (!f)
3501 return 1;
3502 return ferror (f) || fclose (f) != 0;
3503
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 ac_clean_files="$ac_clean_files conftest.out"
3509 # Check that the compiler produces executables we can run. If not, either
3510 # the compiler is broken, or we cross compile.
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3512 printf %s "checking whether we are cross compiling... " >&6; }
3513 if test "$cross_compiling" != yes; then
3514 { { ac_try="$ac_link"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 printf "%s\n" "$ac_try_echo"; } >&5
3521 (eval "$ac_link") 2>&5
3522 ac_status=$?
3523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }
3525 if { ac_try='./conftest$ac_cv_exeext'
3526 { { case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 printf "%s\n" "$ac_try_echo"; } >&5
3532 (eval "$ac_try") 2>&5
3533 ac_status=$?
3534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; }; then
3536 cross_compiling=no
3537 else
3538 if test "$cross_compiling" = maybe; then
3539 cross_compiling=yes
3540 else
3541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3542 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3543 as_fn_error 77 "cannot run C compiled programs.
3544 If you meant to cross compile, use '--host'.
3545 See 'config.log' for more details" "$LINENO" 5; }
3546 fi
3547 fi
3548 fi
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3550 printf "%s\n" "$cross_compiling" >&6; }
3551
3552 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3553 conftest.o conftest.obj conftest.out
3554 ac_clean_files=$ac_clean_files_save
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3556 printf %s "checking for suffix of object files... " >&6; }
3557 if test ${ac_cv_objext+y}
3558 then :
3559 printf %s "(cached) " >&6
3560 else case e in #(
3561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563
3564 int
3565 main (void)
3566 {
3567
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.o conftest.obj
3573 if { { ac_try="$ac_compile"
3574 case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 printf "%s\n" "$ac_try_echo"; } >&5
3580 (eval "$ac_compile") 2>&5
3581 ac_status=$?
3582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }
3584 then :
3585 for ac_file in conftest.o conftest.obj conftest.*; do
3586 test -f "$ac_file" || continue;
3587 case $ac_file in
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3590 break;;
3591 esac
3592 done
3593 else case e in #(
3594 e) printf "%s\n" "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3598 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3599 as_fn_error $? "cannot compute suffix of object files: cannot compile
3600 See 'config.log' for more details" "$LINENO" 5; } ;;
3601 esac
3602 fi
3603 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3604 esac
3605 fi
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3607 printf "%s\n" "$ac_cv_objext" >&6; }
3608 OBJEXT=$ac_cv_objext
3609 ac_objext=$OBJEXT
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3611 printf %s "checking whether the compiler supports GNU C... " >&6; }
3612 if test ${ac_cv_c_compiler_gnu+y}
3613 then :
3614 printf %s "(cached) " >&6
3615 else case e in #(
3616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3618
3619 int
3620 main (void)
3621 {
3622 #ifndef __GNUC__
3623 choke me
3624 #endif
3625
3626 ;
3627 return 0;
3628 }
3629 _ACEOF
3630 if ac_fn_c_try_compile "$LINENO"
3631 then :
3632 ac_compiler_gnu=yes
3633 else case e in #(
3634 e) ac_compiler_gnu=no ;;
3635 esac
3636 fi
3637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3638 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3639 ;;
3640 esac
3641 fi
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3643 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646 if test $ac_compiler_gnu = yes; then
3647 GCC=yes
3648 else
3649 GCC=
3650 fi
3651 ac_test_CFLAGS=${CFLAGS+y}
3652 ac_save_CFLAGS=$CFLAGS
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3654 printf %s "checking whether $CC accepts -g... " >&6; }
3655 if test ${ac_cv_prog_cc_g+y}
3656 then :
3657 printf %s "(cached) " >&6
3658 else case e in #(
3659 e) ac_save_c_werror_flag=$ac_c_werror_flag
3660 ac_c_werror_flag=yes
3661 ac_cv_prog_cc_g=no
3662 CFLAGS="-g"
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main (void)
3668 {
3669
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"
3675 then :
3676 ac_cv_prog_cc_g=yes
3677 else case e in #(
3678 e) CFLAGS=""
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681
3682 int
3683 main (void)
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"
3691 then :
3692
3693 else case e in #(
3694 e) ac_c_werror_flag=$ac_save_c_werror_flag
3695 CFLAGS="-g"
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698
3699 int
3700 main (void)
3701 {
3702
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"
3708 then :
3709 ac_cv_prog_cc_g=yes
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3712 esac
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3715 esac
3716 fi
3717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3718 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3719 esac
3720 fi
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3722 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3723 if test $ac_test_CFLAGS; then
3724 CFLAGS=$ac_save_CFLAGS
3725 elif test $ac_cv_prog_cc_g = yes; then
3726 if test "$GCC" = yes; then
3727 CFLAGS="-g -O2"
3728 else
3729 CFLAGS="-g"
3730 fi
3731 else
3732 if test "$GCC" = yes; then
3733 CFLAGS="-O2"
3734 else
3735 CFLAGS=
3736 fi
3737 fi
3738 ac_prog_cc_stdc=no
3739 if test x$ac_prog_cc_stdc = xno
3740 then :
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3742 printf %s "checking for $CC option to enable C11 features... " >&6; }
3743 if test ${ac_cv_prog_cc_c11+y}
3744 then :
3745 printf %s "(cached) " >&6
3746 else case e in #(
3747 e) ac_cv_prog_cc_c11=no
3748 ac_save_CC=$CC
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 $ac_c_conftest_c11_program
3752 _ACEOF
3753 for ac_arg in '' -std=gnu11
3754 do
3755 CC="$ac_save_CC $ac_arg"
3756 if ac_fn_c_try_compile "$LINENO"
3757 then :
3758 ac_cv_prog_cc_c11=$ac_arg
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.beam
3761 test "x$ac_cv_prog_cc_c11" != "xno" && break
3762 done
3763 rm -f conftest.$ac_ext
3764 CC=$ac_save_CC ;;
3765 esac
3766 fi
3767
3768 if test "x$ac_cv_prog_cc_c11" = xno
3769 then :
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3771 printf "%s\n" "unsupported" >&6; }
3772 else case e in #(
3773 e) if test "x$ac_cv_prog_cc_c11" = x
3774 then :
3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3776 printf "%s\n" "none needed" >&6; }
3777 else case e in #(
3778 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3779 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3780 CC="$CC $ac_cv_prog_cc_c11" ;;
3781 esac
3782 fi
3783 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3784 ac_prog_cc_stdc=c11 ;;
3785 esac
3786 fi
3787 fi
3788 if test x$ac_prog_cc_stdc = xno
3789 then :
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3791 printf %s "checking for $CC option to enable C99 features... " >&6; }
3792 if test ${ac_cv_prog_cc_c99+y}
3793 then :
3794 printf %s "(cached) " >&6
3795 else case e in #(
3796 e) ac_cv_prog_cc_c99=no
3797 ac_save_CC=$CC
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800 $ac_c_conftest_c99_program
3801 _ACEOF
3802 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3803 do
3804 CC="$ac_save_CC $ac_arg"
3805 if ac_fn_c_try_compile "$LINENO"
3806 then :
3807 ac_cv_prog_cc_c99=$ac_arg
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.beam
3810 test "x$ac_cv_prog_cc_c99" != "xno" && break
3811 done
3812 rm -f conftest.$ac_ext
3813 CC=$ac_save_CC ;;
3814 esac
3815 fi
3816
3817 if test "x$ac_cv_prog_cc_c99" = xno
3818 then :
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3820 printf "%s\n" "unsupported" >&6; }
3821 else case e in #(
3822 e) if test "x$ac_cv_prog_cc_c99" = x
3823 then :
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3825 printf "%s\n" "none needed" >&6; }
3826 else case e in #(
3827 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3828 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3829 CC="$CC $ac_cv_prog_cc_c99" ;;
3830 esac
3831 fi
3832 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3833 ac_prog_cc_stdc=c99 ;;
3834 esac
3835 fi
3836 fi
3837 if test x$ac_prog_cc_stdc = xno
3838 then :
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3840 printf %s "checking for $CC option to enable C89 features... " >&6; }
3841 if test ${ac_cv_prog_cc_c89+y}
3842 then :
3843 printf %s "(cached) " >&6
3844 else case e in #(
3845 e) ac_cv_prog_cc_c89=no
3846 ac_save_CC=$CC
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 $ac_c_conftest_c89_program
3850 _ACEOF
3851 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3852 do
3853 CC="$ac_save_CC $ac_arg"
3854 if ac_fn_c_try_compile "$LINENO"
3855 then :
3856 ac_cv_prog_cc_c89=$ac_arg
3857 fi
3858 rm -f core conftest.err conftest.$ac_objext conftest.beam
3859 test "x$ac_cv_prog_cc_c89" != "xno" && break
3860 done
3861 rm -f conftest.$ac_ext
3862 CC=$ac_save_CC ;;
3863 esac
3864 fi
3865
3866 if test "x$ac_cv_prog_cc_c89" = xno
3867 then :
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3869 printf "%s\n" "unsupported" >&6; }
3870 else case e in #(
3871 e) if test "x$ac_cv_prog_cc_c89" = x
3872 then :
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3874 printf "%s\n" "none needed" >&6; }
3875 else case e in #(
3876 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3877 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3878 CC="$CC $ac_cv_prog_cc_c89" ;;
3879 esac
3880 fi
3881 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3882 ac_prog_cc_stdc=c89 ;;
3883 esac
3884 fi
3885 fi
3886
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892
3893
3894
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
3896 printf %s "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
3897
3898 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
3900 printf "%s\n" "loading" >&6; }
3901 . "${TCL_BIN_DIR}/tclConfig.sh"
3902 else
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
3904 printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
3905 fi
3906
3907 # If the TCL_BIN_DIR is the build directory (not the install directory),
3908 # then set the common variable name to the value of the build variables.
3909 # For example, the variable TCL_LIB_SPEC will be set to the value
3910 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
3911 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
3912 # installed and uninstalled version of Tcl.
3913 if test -f "${TCL_BIN_DIR}/Makefile" ; then
3914 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
3915 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
3916 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
3917 elif test "`uname -s`" = "Darwin"; then
3918 # If Tcl was built as a framework, attempt to use the libraries
3919 # from the framework at the given location so that linking works
3920 # against Tcl.framework installed in an arbitrary location.
3921 case ${TCL_DEFS} in
3922 *TCL_FRAMEWORK*)
3923 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
3924 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
3925 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
3926 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
3927 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
3928 break
3929 fi
3930 done
3931 fi
3932 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
3933 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
3934 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
3935 fi
3936 ;;
3937 esac
3938 fi
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
3954 printf %s "checking platform... " >&6; }
3955 hold_cc=$CC; CC="$TCL_CC"
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958
3959 int
3960 main (void)
3961 {
3962
3963 #ifdef _WIN32
3964 #error win32
3965 #endif
3966
3967 ;
3968 return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"
3972 then :
3973
3974 # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
3975 TEA_PLATFORM="${TEA_PLATFORM-unix}"
3976 CYGPATH=echo
3977
3978 else case e in #(
3979 e)
3980 TEA_PLATFORM="windows"
3981 # Extract the first word of "cygpath", so it can be a program name with args.
3982 set dummy cygpath; ac_word=$2
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 printf %s "checking for $ac_word... " >&6; }
3985 if test ${ac_cv_prog_CYGPATH+y}
3986 then :
3987 printf %s "(cached) " >&6
3988 else case e in #(
3989 e) if test -n "$CYGPATH"; then
3990 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995 IFS=$as_save_IFS
3996 case $as_dir in #(((
3997 '') as_dir=./ ;;
3998 */) ;;
3999 *) as_dir=$as_dir/ ;;
4000 esac
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_CYGPATH="cygpath -m"
4004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007 done
4008 done
4009 IFS=$as_save_IFS
4010
4011 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
4012 fi ;;
4013 esac
4014 fi
4015 CYGPATH=$ac_cv_prog_CYGPATH
4016 if test -n "$CYGPATH"; then
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
4018 printf "%s\n" "$CYGPATH" >&6; }
4019 else
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 printf "%s\n" "no" >&6; }
4022 fi
4023
4024
4025 ;;
4026 esac
4027 fi
4028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4029 CC=$hold_cc
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
4031 printf "%s\n" "$TEA_PLATFORM" >&6; }
4032
4033 # The BUILD_$pkg is to define the correct extern storage class
4034 # handling when making this package
4035
4036 printf "%s\n" "#define BUILD_${PACKAGE_NAME} /**/" >>confdefs.h
4037
4038 # Do this here as we have fully defined TEA_PLATFORM now
4039 if test "${TEA_PLATFORM}" = "windows" ; then
4040 EXEEXT=".exe"
4041 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
4042 fi
4043
4044 # TEA specific:
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054 #
4055 # Ok, lets find the tk configuration
4056 # First, look for one uninstalled.
4057 # the alternative search directory is invoked by --with-tk
4058 #
4059
4060 if test x"${no_tk}" = x ; then
4061 # we reset no_tk in case something fails here
4062 no_tk=true
4063
4064 # Check whether --with-tk was given.
4065 if test ${with_tk+y}
4066 then :
4067 withval=$with_tk; with_tkconfig="${withval}"
4068 fi
4069
4070
4071 # Check whether --with-tk8 was given.
4072 if test ${with_tk8+y}
4073 then :
4074 withval=$with_tk8; with_tk8="${withval}"
4075 fi
4076
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
4078 printf %s "checking for Tk configuration... " >&6; }
4079 if test ${ac_cv_c_tkconfig+y}
4080 then :
4081 printf %s "(cached) " >&6
4082 else case e in #(
4083 e)
4084
4085 # First check to see if --with-tkconfig was specified.
4086 if test x"${with_tkconfig}" != x ; then
4087 case "${with_tkconfig}" in
4088 */tkConfig.sh )
4089 if test -f "${with_tkconfig}"; then
4090 { 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
4091 printf "%s\n" "$as_me: WARNING: --with-tk argument should refer to directory containing tkConfig.sh, not to tkConfig.sh itself" >&2;}
4092 with_tkconfig="`echo "${with_tkconfig}" | sed 's!/tkConfig\.sh$!!'`"
4093 fi ;;
4094 esac
4095 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4096 ac_cv_c_tkconfig="`(cd "${with_tkconfig}"; pwd)`"
4097 else
4098 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
4099 fi
4100 fi
4101
4102 # then check for a private Tk library
4103 if test x"${ac_cv_c_tkconfig}" = x ; then
4104 for i in \
4105 ../tk \
4106 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4107 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
4108 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
4109 ../../tk \
4110 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4111 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
4112 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
4113 ../../../tk \
4114 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4115 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
4116 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
4117 if test "${TEA_PLATFORM}" = "windows" \
4118 -a -f "$i/win/tkConfig.sh" ; then
4119 ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
4120 break
4121 fi
4122 if test -f "$i/unix/tkConfig.sh" ; then
4123 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
4124 break
4125 fi
4126 done
4127 fi
4128
4129 # on Darwin, check in Framework installation locations
4130 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
4131 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4132 `ls -d /Library/Frameworks 2>/dev/null` \
4133 `ls -d /Network/Library/Frameworks 2>/dev/null` \
4134 ; do
4135 if test -f "$i/Tk.framework/tkConfig.sh" ; then
4136 ac_cv_c_tkconfig="`(cd $i/Tk.framework; pwd)`"
4137 break
4138 fi
4139 done
4140 fi
4141
4142 # check in a few common install locations
4143 if test x"${ac_cv_c_tkconfig}" = x ; then
4144 for i in `ls -d ${libdir} 2>/dev/null` \
4145 `ls -d ${exec_prefix}/lib 2>/dev/null` \
4146 `ls -d ${prefix}/lib 2>/dev/null` \
4147 `ls -d /usr/local/lib 2>/dev/null` \
4148 `ls -d /usr/contrib/lib 2>/dev/null` \
4149 `ls -d /usr/pkg/lib 2>/dev/null` \
4150 `ls -d /usr/lib/tk9.0 2>/dev/null` \
4151 `ls -d /usr/lib/tk8.7 2>/dev/null` \
4152 `ls -d /usr/lib/tk8.6 2>/dev/null` \
4153 `ls -d /usr/lib/tk8.5 2>/dev/null` \
4154 `ls -d /usr/lib 2>/dev/null` \
4155 `ls -d /usr/lib64 2>/dev/null` \
4156 `ls -d /usr/local/lib/tk9.0 2>/dev/null` \
4157 `ls -d /usr/local/lib/tk8.7 2>/dev/null` \
4158 `ls -d /usr/local/lib/tk8.6 2>/dev/null` \
4159 `ls -d /usr/local/lib/tk8.5 2>/dev/null` \
4160 `ls -d /usr/local/lib/tcl/tk9.0 2>/dev/null` \
4161 `ls -d /usr/local/lib/tcl/tk8.7 2>/dev/null` \
4162 `ls -d /usr/local/lib/tcl/tk8.6 2>/dev/null` \
4163 `ls -d /usr/local/lib/tcl/tk8.5 2>/dev/null` \
4164 ; do
4165 if test -f "$i/tkConfig.sh" ; then
4166 ac_cv_c_tkconfig="`(cd $i; pwd)`"
4167 break
4168 fi
4169 done
4170 fi
4171
4172 # TEA specific: on Windows, check in common installation locations
4173 if test "${TEA_PLATFORM}" = "windows" \
4174 -a x"${ac_cv_c_tkconfig}" = x ; then
4175 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
4176 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
4177 ; do
4178 if test -f "$i/tkConfig.sh" ; then
4179 ac_cv_c_tkconfig="`(cd $i; pwd)`"
4180 break
4181 fi
4182 done
4183 fi
4184
4185 # check in a few other private locations
4186 if test x"${ac_cv_c_tkconfig}" = x ; then
4187 for i in \
4188 ${srcdir}/../tk \
4189 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4190 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
4191 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
4192 if test "${TEA_PLATFORM}" = "windows" \
4193 -a -f "$i/win/tkConfig.sh" ; then
4194 ac_cv_c_tkconfig="`(cd $i/win; pwd)`"
4195 break
4196 fi
4197 if test -f "$i/unix/tkConfig.sh" ; then
4198 ac_cv_c_tkconfig="`(cd $i/unix; pwd)`"
4199 break
4200 fi
4201 done
4202 fi
4203 ;;
4204 esac
4205 fi
4206
4207
4208 if test x"${ac_cv_c_tkconfig}" = x ; then
4209 TK_BIN_DIR="# no Tk configs found"
4210 as_fn_error $? "Can't find Tk configuration definitions. Use --with-tk to specify a directory containing tkConfig.sh" "$LINENO" 5
4211 else
4212 no_tk=
4213 TK_BIN_DIR="${ac_cv_c_tkconfig}"
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
4215 printf "%s\n" "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4216 fi
4217 fi
4218
4219
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
4221 printf %s "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
4222
4223 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4225 printf "%s\n" "loading" >&6; }
4226 . "${TK_BIN_DIR}/tkConfig.sh"
4227 else
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
4229 printf "%s\n" "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4230 fi
4231
4232 # If the TK_BIN_DIR is the build directory (not the install directory),
4233 # then set the common variable name to the value of the build variables.
4234 # For example, the variable TK_LIB_SPEC will be set to the value
4235 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
4236 # instead of TK_BUILD_LIB_SPEC since it will work with both an
4237 # installed and uninstalled version of Tcl.
4238 if test -f "${TK_BIN_DIR}/Makefile" ; then
4239 TK_LIB_SPEC="${TK_BUILD_LIB_SPEC}"
4240 TK_STUB_LIB_SPEC="${TK_BUILD_STUB_LIB_SPEC}"
4241 TK_STUB_LIB_PATH="${TK_BUILD_STUB_LIB_PATH}"
4242 elif test "`uname -s`" = "Darwin"; then
4243 # If Tk was built as a framework, attempt to use the libraries
4244 # from the framework at the given location so that linking works
4245 # against Tk.framework installed in an arbitrary location.
4246 case ${TK_DEFS} in
4247 *TK_FRAMEWORK*)
4248 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
4249 for i in "`cd "${TK_BIN_DIR}"; pwd`" \
4250 "`cd "${TK_BIN_DIR}"/../..; pwd`"; do
4251 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
4252 TK_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TK_LIB_FILE}"
4253 break
4254 fi
4255 done
4256 fi
4257 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
4258 TK_STUB_LIB_SPEC="-L` echo "${TK_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
4259 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
4260 fi
4261 ;;
4262 esac
4263 fi
4264
4265 # TEA specific: Ensure windowingsystem is defined
4266 if test "${TEA_PLATFORM}" = "unix" ; then
4267 case ${TK_DEFS} in
4268 *MAC_OSX_TK*)
4269
4270 printf "%s\n" "#define MAC_OSX_TK 1" >>confdefs.h
4271
4272 TEA_WINDOWINGSYSTEM="aqua"
4273 ;;
4274 *)
4275 TEA_WINDOWINGSYSTEM="x11"
4276 ;;
4277 esac
4278 elif test "${TEA_PLATFORM}" = "windows" ; then
4279 TEA_WINDOWINGSYSTEM="win32"
4280 fi
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294 # TEA specific:
4295
4296
4297
4298
4299 #-----------------------------------------------------------------------
4300 # Handle the --prefix=... option by defaulting to what Tcl gave.
4301 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
4302 #-----------------------------------------------------------------------
4303
4304
4305 if test "${prefix}" = "NONE"; then
4306 prefix_default=yes
4307 if test x"${TCL_PREFIX}" != x; then
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
4309 printf "%s\n" "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
4310 prefix=${TCL_PREFIX}
4311 else
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
4313 printf "%s\n" "$as_me: --prefix defaulting to /usr/local" >&6;}
4314 prefix=/usr/local
4315 fi
4316 fi
4317 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
4318 -o x"${exec_prefix_default}" = x"yes" ; then
4319 if test x"${TCL_EXEC_PREFIX}" != x; then
4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
4321 printf "%s\n" "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
4322 exec_prefix=${TCL_EXEC_PREFIX}
4323 else
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
4325 printf "%s\n" "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
4326 exec_prefix=$prefix
4327 fi
4328 fi
4329
4330
4331 #-----------------------------------------------------------------------
4332 # Standard compiler checks.
4333 # This sets up CC by using the CC env var, or looks for gcc otherwise.
4334 # This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
4335 # the basic setup necessary to compile executables.
4336 #-----------------------------------------------------------------------
4337
4338
4339 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
4340 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
4341
4342 ac_ext=c
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 if test -n "$ac_tool_prefix"; then
4348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 printf %s "checking for $ac_word... " >&6; }
4352 if test ${ac_cv_prog_CC+y}
4353 then :
4354 printf %s "(cached) " >&6
4355 else case e in #(
4356 e) if test -n "$CC"; then
4357 ac_cv_prog_CC="$CC" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362 IFS=$as_save_IFS
4363 case $as_dir in #(((
4364 '') as_dir=./ ;;
4365 */) ;;
4366 *) as_dir=$as_dir/ ;;
4367 esac
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4372 break 2
4373 fi
4374 done
4375 done
4376 IFS=$as_save_IFS
4377
4378 fi ;;
4379 esac
4380 fi
4381 CC=$ac_cv_prog_CC
4382 if test -n "$CC"; then
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4384 printf "%s\n" "$CC" >&6; }
4385 else
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 printf "%s\n" "no" >&6; }
4388 fi
4389
4390
4391 fi
4392 if test -z "$ac_cv_prog_CC"; then
4393 ac_ct_CC=$CC
4394 # Extract the first word of "gcc", so it can be a program name with args.
4395 set dummy gcc; ac_word=$2
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 printf %s "checking for $ac_word... " >&6; }
4398 if test ${ac_cv_prog_ac_ct_CC+y}
4399 then :
4400 printf %s "(cached) " >&6
4401 else case e in #(
4402 e) if test -n "$ac_ct_CC"; then
4403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 case $as_dir in #(((
4410 '') as_dir=./ ;;
4411 */) ;;
4412 *) as_dir=$as_dir/ ;;
4413 esac
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4416 ac_cv_prog_ac_ct_CC="gcc"
4417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4418 break 2
4419 fi
4420 done
4421 done
4422 IFS=$as_save_IFS
4423
4424 fi ;;
4425 esac
4426 fi
4427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4428 if test -n "$ac_ct_CC"; then
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4430 printf "%s\n" "$ac_ct_CC" >&6; }
4431 else
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 printf "%s\n" "no" >&6; }
4434 fi
4435
4436 if test "x$ac_ct_CC" = x; then
4437 CC=""
4438 else
4439 case $cross_compiling:$ac_tool_warned in
4440 yes:)
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4442 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4443 ac_tool_warned=yes ;;
4444 esac
4445 CC=$ac_ct_CC
4446 fi
4447 else
4448 CC="$ac_cv_prog_CC"
4449 fi
4450
4451 if test -z "$CC"; then
4452 if test -n "$ac_tool_prefix"; then
4453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4454 set dummy ${ac_tool_prefix}cc; ac_word=$2
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 printf %s "checking for $ac_word... " >&6; }
4457 if test ${ac_cv_prog_CC+y}
4458 then :
4459 printf %s "(cached) " >&6
4460 else case e in #(
4461 e) if test -n "$CC"; then
4462 ac_cv_prog_CC="$CC" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467 IFS=$as_save_IFS
4468 case $as_dir in #(((
4469 '') as_dir=./ ;;
4470 */) ;;
4471 *) as_dir=$as_dir/ ;;
4472 esac
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4475 ac_cv_prog_CC="${ac_tool_prefix}cc"
4476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4477 break 2
4478 fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483 fi ;;
4484 esac
4485 fi
4486 CC=$ac_cv_prog_CC
4487 if test -n "$CC"; then
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4489 printf "%s\n" "$CC" >&6; }
4490 else
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 printf "%s\n" "no" >&6; }
4493 fi
4494
4495
4496 fi
4497 fi
4498 if test -z "$CC"; then
4499 # Extract the first word of "cc", so it can be a program name with args.
4500 set dummy cc; ac_word=$2
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 printf %s "checking for $ac_word... " >&6; }
4503 if test ${ac_cv_prog_CC+y}
4504 then :
4505 printf %s "(cached) " >&6
4506 else case e in #(
4507 e) if test -n "$CC"; then
4508 ac_cv_prog_CC="$CC" # Let the user override the test.
4509 else
4510 ac_prog_rejected=no
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4513 do
4514 IFS=$as_save_IFS
4515 case $as_dir in #(((
4516 '') as_dir=./ ;;
4517 */) ;;
4518 *) as_dir=$as_dir/ ;;
4519 esac
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4522 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4524 continue
4525 fi
4526 ac_cv_prog_CC="cc"
4527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534 if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_CC
4537 shift
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set CC to just the basename; use the full file name.
4542 shift
4543 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4544 fi
4545 fi
4546 fi ;;
4547 esac
4548 fi
4549 CC=$ac_cv_prog_CC
4550 if test -n "$CC"; then
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4552 printf "%s\n" "$CC" >&6; }
4553 else
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 printf "%s\n" "no" >&6; }
4556 fi
4557
4558
4559 fi
4560 if test -z "$CC"; then
4561 if test -n "$ac_tool_prefix"; then
4562 for ac_prog in cl.exe
4563 do
4564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 printf %s "checking for $ac_word... " >&6; }
4568 if test ${ac_cv_prog_CC+y}
4569 then :
4570 printf %s "(cached) " >&6
4571 else case e in #(
4572 e) if test -n "$CC"; then
4573 ac_cv_prog_CC="$CC" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578 IFS=$as_save_IFS
4579 case $as_dir in #(((
4580 '') as_dir=./ ;;
4581 */) ;;
4582 *) as_dir=$as_dir/ ;;
4583 esac
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4586 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 fi ;;
4595 esac
4596 fi
4597 CC=$ac_cv_prog_CC
4598 if test -n "$CC"; then
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4600 printf "%s\n" "$CC" >&6; }
4601 else
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 printf "%s\n" "no" >&6; }
4604 fi
4605
4606
4607 test -n "$CC" && break
4608 done
4609 fi
4610 if test -z "$CC"; then
4611 ac_ct_CC=$CC
4612 for ac_prog in cl.exe
4613 do
4614 # Extract the first word of "$ac_prog", so it can be a program name with args.
4615 set dummy $ac_prog; ac_word=$2
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 printf %s "checking for $ac_word... " >&6; }
4618 if test ${ac_cv_prog_ac_ct_CC+y}
4619 then :
4620 printf %s "(cached) " >&6
4621 else case e in #(
4622 e) if test -n "$ac_ct_CC"; then
4623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628 IFS=$as_save_IFS
4629 case $as_dir in #(((
4630 '') as_dir=./ ;;
4631 */) ;;
4632 *) as_dir=$as_dir/ ;;
4633 esac
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_ac_ct_CC="$ac_prog"
4637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640 done
4641 done
4642 IFS=$as_save_IFS
4643
4644 fi ;;
4645 esac
4646 fi
4647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4648 if test -n "$ac_ct_CC"; then
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4650 printf "%s\n" "$ac_ct_CC" >&6; }
4651 else
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 printf "%s\n" "no" >&6; }
4654 fi
4655
4656
4657 test -n "$ac_ct_CC" && break
4658 done
4659
4660 if test "x$ac_ct_CC" = x; then
4661 CC=""
4662 else
4663 case $cross_compiling:$ac_tool_warned in
4664 yes:)
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4666 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4667 ac_tool_warned=yes ;;
4668 esac
4669 CC=$ac_ct_CC
4670 fi
4671 fi
4672
4673 fi
4674 if test -z "$CC"; then
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4677 set dummy ${ac_tool_prefix}clang; ac_word=$2
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 printf %s "checking for $ac_word... " >&6; }
4680 if test ${ac_cv_prog_CC+y}
4681 then :
4682 printf %s "(cached) " >&6
4683 else case e in #(
4684 e) if test -n "$CC"; then
4685 ac_cv_prog_CC="$CC" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690 IFS=$as_save_IFS
4691 case $as_dir in #(((
4692 '') as_dir=./ ;;
4693 */) ;;
4694 *) as_dir=$as_dir/ ;;
4695 esac
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4698 ac_cv_prog_CC="${ac_tool_prefix}clang"
4699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702 done
4703 done
4704 IFS=$as_save_IFS
4705
4706 fi ;;
4707 esac
4708 fi
4709 CC=$ac_cv_prog_CC
4710 if test -n "$CC"; then
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4712 printf "%s\n" "$CC" >&6; }
4713 else
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 printf "%s\n" "no" >&6; }
4716 fi
4717
4718
4719 fi
4720 if test -z "$ac_cv_prog_CC"; then
4721 ac_ct_CC=$CC
4722 # Extract the first word of "clang", so it can be a program name with args.
4723 set dummy clang; ac_word=$2
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 printf %s "checking for $ac_word... " >&6; }
4726 if test ${ac_cv_prog_ac_ct_CC+y}
4727 then :
4728 printf %s "(cached) " >&6
4729 else case e in #(
4730 e) if test -n "$ac_ct_CC"; then
4731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736 IFS=$as_save_IFS
4737 case $as_dir in #(((
4738 '') as_dir=./ ;;
4739 */) ;;
4740 *) as_dir=$as_dir/ ;;
4741 esac
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4744 ac_cv_prog_ac_ct_CC="clang"
4745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752 fi ;;
4753 esac
4754 fi
4755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4756 if test -n "$ac_ct_CC"; then
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4758 printf "%s\n" "$ac_ct_CC" >&6; }
4759 else
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 printf "%s\n" "no" >&6; }
4762 fi
4763
4764 if test "x$ac_ct_CC" = x; then
4765 CC=""
4766 else
4767 case $cross_compiling:$ac_tool_warned in
4768 yes:)
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771 ac_tool_warned=yes ;;
4772 esac
4773 CC=$ac_ct_CC
4774 fi
4775 else
4776 CC="$ac_cv_prog_CC"
4777 fi
4778
4779 fi
4780
4781
4782 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4783 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4784 as_fn_error $? "no acceptable C compiler found in \$PATH
4785 See 'config.log' for more details" "$LINENO" 5; }
4786
4787 # Provide some information about the compiler.
4788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4789 set X $ac_compile
4790 ac_compiler=$2
4791 for ac_option in --version -v -V -qversion -version; do
4792 { { ac_try="$ac_compiler $ac_option >&5"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4798 printf "%s\n" "$ac_try_echo"; } >&5
4799 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4800 ac_status=$?
4801 if test -s conftest.err; then
4802 sed '10a\
4803 ... rest of stderr output deleted ...
4804 10q' conftest.err >conftest.er1
4805 cat conftest.er1 >&5
4806 fi
4807 rm -f conftest.er1 conftest.err
4808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4809 test $ac_status = 0; }
4810 done
4811
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4813 printf %s "checking whether the compiler supports GNU C... " >&6; }
4814 if test ${ac_cv_c_compiler_gnu+y}
4815 then :
4816 printf %s "(cached) " >&6
4817 else case e in #(
4818 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820
4821 int
4822 main (void)
4823 {
4824 #ifndef __GNUC__
4825 choke me
4826 #endif
4827
4828 ;
4829 return 0;
4830 }
4831 _ACEOF
4832 if ac_fn_c_try_compile "$LINENO"
4833 then :
4834 ac_compiler_gnu=yes
4835 else case e in #(
4836 e) ac_compiler_gnu=no ;;
4837 esac
4838 fi
4839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4840 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4841 ;;
4842 esac
4843 fi
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4845 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847
4848 if test $ac_compiler_gnu = yes; then
4849 GCC=yes
4850 else
4851 GCC=
4852 fi
4853 ac_test_CFLAGS=${CFLAGS+y}
4854 ac_save_CFLAGS=$CFLAGS
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4856 printf %s "checking whether $CC accepts -g... " >&6; }
4857 if test ${ac_cv_prog_cc_g+y}
4858 then :
4859 printf %s "(cached) " >&6
4860 else case e in #(
4861 e) ac_save_c_werror_flag=$ac_c_werror_flag
4862 ac_c_werror_flag=yes
4863 ac_cv_prog_cc_g=no
4864 CFLAGS="-g"
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867
4868 int
4869 main (void)
4870 {
4871
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 if ac_fn_c_try_compile "$LINENO"
4877 then :
4878 ac_cv_prog_cc_g=yes
4879 else case e in #(
4880 e) CFLAGS=""
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883
4884 int
4885 main (void)
4886 {
4887
4888 ;
4889 return 0;
4890 }
4891 _ACEOF
4892 if ac_fn_c_try_compile "$LINENO"
4893 then :
4894
4895 else case e in #(
4896 e) ac_c_werror_flag=$ac_save_c_werror_flag
4897 CFLAGS="-g"
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900
4901 int
4902 main (void)
4903 {
4904
4905 ;
4906 return 0;
4907 }
4908 _ACEOF
4909 if ac_fn_c_try_compile "$LINENO"
4910 then :
4911 ac_cv_prog_cc_g=yes
4912 fi
4913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4914 esac
4915 fi
4916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4917 esac
4918 fi
4919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4920 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4921 esac
4922 fi
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4924 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4925 if test $ac_test_CFLAGS; then
4926 CFLAGS=$ac_save_CFLAGS
4927 elif test $ac_cv_prog_cc_g = yes; then
4928 if test "$GCC" = yes; then
4929 CFLAGS="-g -O2"
4930 else
4931 CFLAGS="-g"
4932 fi
4933 else
4934 if test "$GCC" = yes; then
4935 CFLAGS="-O2"
4936 else
4937 CFLAGS=
4938 fi
4939 fi
4940 ac_prog_cc_stdc=no
4941 if test x$ac_prog_cc_stdc = xno
4942 then :
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4944 printf %s "checking for $CC option to enable C11 features... " >&6; }
4945 if test ${ac_cv_prog_cc_c11+y}
4946 then :
4947 printf %s "(cached) " >&6
4948 else case e in #(
4949 e) ac_cv_prog_cc_c11=no
4950 ac_save_CC=$CC
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953 $ac_c_conftest_c11_program
4954 _ACEOF
4955 for ac_arg in '' -std=gnu11
4956 do
4957 CC="$ac_save_CC $ac_arg"
4958 if ac_fn_c_try_compile "$LINENO"
4959 then :
4960 ac_cv_prog_cc_c11=$ac_arg
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.beam
4963 test "x$ac_cv_prog_cc_c11" != "xno" && break
4964 done
4965 rm -f conftest.$ac_ext
4966 CC=$ac_save_CC ;;
4967 esac
4968 fi
4969
4970 if test "x$ac_cv_prog_cc_c11" = xno
4971 then :
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4973 printf "%s\n" "unsupported" >&6; }
4974 else case e in #(
4975 e) if test "x$ac_cv_prog_cc_c11" = x
4976 then :
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4978 printf "%s\n" "none needed" >&6; }
4979 else case e in #(
4980 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4981 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4982 CC="$CC $ac_cv_prog_cc_c11" ;;
4983 esac
4984 fi
4985 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4986 ac_prog_cc_stdc=c11 ;;
4987 esac
4988 fi
4989 fi
4990 if test x$ac_prog_cc_stdc = xno
4991 then :
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4993 printf %s "checking for $CC option to enable C99 features... " >&6; }
4994 if test ${ac_cv_prog_cc_c99+y}
4995 then :
4996 printf %s "(cached) " >&6
4997 else case e in #(
4998 e) ac_cv_prog_cc_c99=no
4999 ac_save_CC=$CC
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 $ac_c_conftest_c99_program
5003 _ACEOF
5004 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5005 do
5006 CC="$ac_save_CC $ac_arg"
5007 if ac_fn_c_try_compile "$LINENO"
5008 then :
5009 ac_cv_prog_cc_c99=$ac_arg
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.beam
5012 test "x$ac_cv_prog_cc_c99" != "xno" && break
5013 done
5014 rm -f conftest.$ac_ext
5015 CC=$ac_save_CC ;;
5016 esac
5017 fi
5018
5019 if test "x$ac_cv_prog_cc_c99" = xno
5020 then :
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5022 printf "%s\n" "unsupported" >&6; }
5023 else case e in #(
5024 e) if test "x$ac_cv_prog_cc_c99" = x
5025 then :
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5027 printf "%s\n" "none needed" >&6; }
5028 else case e in #(
5029 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5030 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5031 CC="$CC $ac_cv_prog_cc_c99" ;;
5032 esac
5033 fi
5034 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5035 ac_prog_cc_stdc=c99 ;;
5036 esac
5037 fi
5038 fi
5039 if test x$ac_prog_cc_stdc = xno
5040 then :
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5042 printf %s "checking for $CC option to enable C89 features... " >&6; }
5043 if test ${ac_cv_prog_cc_c89+y}
5044 then :
5045 printf %s "(cached) " >&6
5046 else case e in #(
5047 e) ac_cv_prog_cc_c89=no
5048 ac_save_CC=$CC
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051 $ac_c_conftest_c89_program
5052 _ACEOF
5053 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5054 do
5055 CC="$ac_save_CC $ac_arg"
5056 if ac_fn_c_try_compile "$LINENO"
5057 then :
5058 ac_cv_prog_cc_c89=$ac_arg
5059 fi
5060 rm -f core conftest.err conftest.$ac_objext conftest.beam
5061 test "x$ac_cv_prog_cc_c89" != "xno" && break
5062 done
5063 rm -f conftest.$ac_ext
5064 CC=$ac_save_CC ;;
5065 esac
5066 fi
5067
5068 if test "x$ac_cv_prog_cc_c89" = xno
5069 then :
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5071 printf "%s\n" "unsupported" >&6; }
5072 else case e in #(
5073 e) if test "x$ac_cv_prog_cc_c89" = x
5074 then :
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5076 printf "%s\n" "none needed" >&6; }
5077 else case e in #(
5078 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5079 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5080 CC="$CC $ac_cv_prog_cc_c89" ;;
5081 esac
5082 fi
5083 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5084 ac_prog_cc_stdc=c89 ;;
5085 esac
5086 fi
5087 fi
5088
5089 ac_ext=c
5090 ac_cpp='$CPP $CPPFLAGS'
5091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5101 printf %s "checking how to run the C preprocessor... " >&6; }
5102 # On Suns, sometimes $CPP names a directory.
5103 if test -n "$CPP" && test -d "$CPP"; then
5104 CPP=
5105 fi
5106 if test -z "$CPP"; then
5107 if test ${ac_cv_prog_CPP+y}
5108 then :
5109 printf %s "(cached) " >&6
5110 else case e in #(
5111 e) # Double quotes because $CC needs to be expanded
5112 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5113 do
5114 ac_preproc_ok=false
5115 for ac_c_preproc_warn_flag in '' yes
5116 do
5117 # Use a header file that comes with gcc, so configuring glibc
5118 # with a fresh cross-compiler works.
5119 # On the NeXT, cc -E runs the code through the compiler's parser,
5120 # not just through cpp. "Syntax error" is here to catch this case.
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 #include <limits.h>
5124 Syntax error
5125 _ACEOF
5126 if ac_fn_c_try_cpp "$LINENO"
5127 then :
5128
5129 else case e in #(
5130 e) # Broken: fails on valid input.
5131 continue ;;
5132 esac
5133 fi
5134 rm -f conftest.err conftest.i conftest.$ac_ext
5135
5136 # OK, works on sane cases. Now check whether nonexistent headers
5137 # can be detected and how.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <ac_nonexistent.h>
5141 _ACEOF
5142 if ac_fn_c_try_cpp "$LINENO"
5143 then :
5144 # Broken: success on invalid input.
5145 continue
5146 else case e in #(
5147 e) # Passes both tests.
5148 ac_preproc_ok=:
5149 break ;;
5150 esac
5151 fi
5152 rm -f conftest.err conftest.i conftest.$ac_ext
5153
5154 done
5155 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156 rm -f conftest.i conftest.err conftest.$ac_ext
5157 if $ac_preproc_ok
5158 then :
5159 break
5160 fi
5161
5162 done
5163 ac_cv_prog_CPP=$CPP
5164 ;;
5165 esac
5166 fi
5167 CPP=$ac_cv_prog_CPP
5168 else
5169 ac_cv_prog_CPP=$CPP
5170 fi
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5172 printf "%s\n" "$CPP" >&6; }
5173 ac_preproc_ok=false
5174 for ac_c_preproc_warn_flag in '' yes
5175 do
5176 # Use a header file that comes with gcc, so configuring glibc
5177 # with a fresh cross-compiler works.
5178 # On the NeXT, cc -E runs the code through the compiler's parser,
5179 # not just through cpp. "Syntax error" is here to catch this case.
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182 #include <limits.h>
5183 Syntax error
5184 _ACEOF
5185 if ac_fn_c_try_cpp "$LINENO"
5186 then :
5187
5188 else case e in #(
5189 e) # Broken: fails on valid input.
5190 continue ;;
5191 esac
5192 fi
5193 rm -f conftest.err conftest.i conftest.$ac_ext
5194
5195 # OK, works on sane cases. Now check whether nonexistent headers
5196 # can be detected and how.
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #include <ac_nonexistent.h>
5200 _ACEOF
5201 if ac_fn_c_try_cpp "$LINENO"
5202 then :
5203 # Broken: success on invalid input.
5204 continue
5205 else case e in #(
5206 e) # Passes both tests.
5207 ac_preproc_ok=:
5208 break ;;
5209 esac
5210 fi
5211 rm -f conftest.err conftest.i conftest.$ac_ext
5212
5213 done
5214 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215 rm -f conftest.i conftest.err conftest.$ac_ext
5216 if $ac_preproc_ok
5217 then :
5218
5219 else case e in #(
5220 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5221 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5222 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5223 See 'config.log' for more details" "$LINENO" 5; } ;;
5224 esac
5225 fi
5226
5227 ac_ext=c
5228 ac_cpp='$CPP $CPPFLAGS'
5229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5232
5233
5234 #--------------------------------------------------------------------
5235 # Checks to see if the make program sets the $MAKE variable.
5236 #--------------------------------------------------------------------
5237
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5239 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5240 set x ${MAKE-make}
5241 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5242 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5243 then :
5244 printf %s "(cached) " >&6
5245 else case e in #(
5246 e) cat >conftest.make <<\_ACEOF
5247 SHELL = /bin/sh
5248 all:
5249 @echo '@@@%%%=$(MAKE)=@@@%%%'
5250 _ACEOF
5251 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5253 *@@@%%%=?*=@@@%%%*)
5254 eval ac_cv_prog_make_${ac_make}_set=yes;;
5255 *)
5256 eval ac_cv_prog_make_${ac_make}_set=no;;
5257 esac
5258 rm -f conftest.make ;;
5259 esac
5260 fi
5261 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5263 printf "%s\n" "yes" >&6; }
5264 SET_MAKE=
5265 else
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 printf "%s\n" "no" >&6; }
5268 SET_MAKE="MAKE=${MAKE-make}"
5269 fi
5270
5271
5272 #--------------------------------------------------------------------
5273 # Find ranlib
5274 #--------------------------------------------------------------------
5275
5276 if test -n "$ac_tool_prefix"; then
5277 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5278 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280 printf %s "checking for $ac_word... " >&6; }
5281 if test ${ac_cv_prog_RANLIB+y}
5282 then :
5283 printf %s "(cached) " >&6
5284 else case e in #(
5285 e) if test -n "$RANLIB"; then
5286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291 IFS=$as_save_IFS
5292 case $as_dir in #(((
5293 '') as_dir=./ ;;
5294 */) ;;
5295 *) as_dir=$as_dir/ ;;
5296 esac
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5301 break 2
5302 fi
5303 done
5304 done
5305 IFS=$as_save_IFS
5306
5307 fi ;;
5308 esac
5309 fi
5310 RANLIB=$ac_cv_prog_RANLIB
5311 if test -n "$RANLIB"; then
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5313 printf "%s\n" "$RANLIB" >&6; }
5314 else
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 printf "%s\n" "no" >&6; }
5317 fi
5318
5319
5320 fi
5321 if test -z "$ac_cv_prog_RANLIB"; then
5322 ac_ct_RANLIB=$RANLIB
5323 # Extract the first word of "ranlib", so it can be a program name with args.
5324 set dummy ranlib; ac_word=$2
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 printf %s "checking for $ac_word... " >&6; }
5327 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5328 then :
5329 printf %s "(cached) " >&6
5330 else case e in #(
5331 e) if test -n "$ac_ct_RANLIB"; then
5332 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337 IFS=$as_save_IFS
5338 case $as_dir in #(((
5339 '') as_dir=./ ;;
5340 */) ;;
5341 *) as_dir=$as_dir/ ;;
5342 esac
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5345 ac_cv_prog_ac_ct_RANLIB="ranlib"
5346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5347 break 2
5348 fi
5349 done
5350 done
5351 IFS=$as_save_IFS
5352
5353 fi ;;
5354 esac
5355 fi
5356 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5357 if test -n "$ac_ct_RANLIB"; then
5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5359 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5360 else
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 printf "%s\n" "no" >&6; }
5363 fi
5364
5365 if test "x$ac_ct_RANLIB" = x; then
5366 RANLIB=""
5367 else
5368 case $cross_compiling:$ac_tool_warned in
5369 yes:)
5370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5372 ac_tool_warned=yes ;;
5373 esac
5374 RANLIB=$ac_ct_RANLIB
5375 fi
5376 else
5377 RANLIB="$ac_cv_prog_RANLIB"
5378 fi
5379
5380
5381 #--------------------------------------------------------------------
5382 # Determines the correct binary file extension (.o, .obj, .exe etc.)
5383 #--------------------------------------------------------------------
5384
5385
5386
5387
5388 ac_header= ac_cache=
5389 for ac_item in $ac_header_c_list
5390 do
5391 if test $ac_cache; then
5392 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5393 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5394 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5395 fi
5396 ac_header= ac_cache=
5397 elif test $ac_header; then
5398 ac_cache=$ac_item
5399 else
5400 ac_header=$ac_item
5401 fi
5402 done
5403
5404
5405
5406
5407
5408
5409
5410
5411 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5412 then :
5413
5414 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5415
5416 fi
5417
5418 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
5419
5420
5421 #------------------------------------------------------------------------
5422 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
5423 # It makes compiling go faster. (This is only a performance feature.)
5424 #------------------------------------------------------------------------
5425
5426 if test -z "$no_pipe" -a -n "$GCC"; then
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
5428 printf %s "checking if the compiler understands -pipe... " >&6; }
5429 if test ${tcl_cv_cc_pipe+y}
5430 then :
5431 printf %s "(cached) " >&6
5432 else case e in #(
5433 e)
5434 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437
5438 int
5439 main (void)
5440 {
5441
5442 ;
5443 return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"
5447 then :
5448 tcl_cv_cc_pipe=yes
5449 else case e in #(
5450 e) tcl_cv_cc_pipe=no ;;
5451 esac
5452 fi
5453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5454 CFLAGS=$hold_cflags ;;
5455 esac
5456 fi
5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
5458 printf "%s\n" "$tcl_cv_cc_pipe" >&6; }
5459 if test $tcl_cv_cc_pipe = yes; then
5460 CFLAGS="$CFLAGS -pipe"
5461 fi
5462 fi
5463
5464 if test "${TCL_MAJOR_VERSION}" -lt 9 -a "${TCL_MINOR_VERSION}" -lt 7; then
5465
5466 printf "%s\n" "#define Tcl_Size int" >>confdefs.h
5467
5468 fi
5469
5470 #--------------------------------------------------------------------
5471 # Common compiler flag setup
5472 #--------------------------------------------------------------------
5473
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5475 printf %s "checking whether byte ordering is bigendian... " >&6; }
5476 if test ${ac_cv_c_bigendian+y}
5477 then :
5478 printf %s "(cached) " >&6
5479 else case e in #(
5480 e) ac_cv_c_bigendian=unknown
5481 # See if we're dealing with a universal compiler.
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #ifndef __APPLE_CC__
5485 not a universal capable compiler
5486 #endif
5487 typedef int dummy;
5488
5489 _ACEOF
5490 if ac_fn_c_try_compile "$LINENO"
5491 then :
5492
5493 # Check for potential -arch flags. It is not universal unless
5494 # there are at least two -arch flags with different values.
5495 ac_arch=
5496 ac_prev=
5497 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5498 if test -n "$ac_prev"; then
5499 case $ac_word in
5500 i?86 | x86_64 | ppc | ppc64)
5501 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5502 ac_arch=$ac_word
5503 else
5504 ac_cv_c_bigendian=universal
5505 break
5506 fi
5507 ;;
5508 esac
5509 ac_prev=
5510 elif test "x$ac_word" = "x-arch"; then
5511 ac_prev=arch
5512 fi
5513 done
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5516 if test $ac_cv_c_bigendian = unknown; then
5517 # See if sys/param.h defines the BYTE_ORDER macro.
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520 #include <sys/types.h>
5521 #include <sys/param.h>
5522
5523 int
5524 main (void)
5525 {
5526 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
5527 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
5528 && LITTLE_ENDIAN)
5529 bogus endian macros
5530 #endif
5531
5532 ;
5533 return 0;
5534 }
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"
5537 then :
5538 # It does; now see whether it defined to BIG_ENDIAN or not.
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <sys/types.h>
5542 #include <sys/param.h>
5543
5544 int
5545 main (void)
5546 {
5547 #if BYTE_ORDER != BIG_ENDIAN
5548 not big endian
5549 #endif
5550
5551 ;
5552 return 0;
5553 }
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"
5556 then :
5557 ac_cv_c_bigendian=yes
5558 else case e in #(
5559 e) ac_cv_c_bigendian=no ;;
5560 esac
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5563 fi
5564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5565 fi
5566 if test $ac_cv_c_bigendian = unknown; then
5567 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #include <limits.h>
5571
5572 int
5573 main (void)
5574 {
5575 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5576 bogus endian macros
5577 #endif
5578
5579 ;
5580 return 0;
5581 }
5582 _ACEOF
5583 if ac_fn_c_try_compile "$LINENO"
5584 then :
5585 # It does; now see whether it defined to _BIG_ENDIAN or not.
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588 #include <limits.h>
5589
5590 int
5591 main (void)
5592 {
5593 #ifndef _BIG_ENDIAN
5594 not big endian
5595 #endif
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"
5602 then :
5603 ac_cv_c_bigendian=yes
5604 else case e in #(
5605 e) ac_cv_c_bigendian=no ;;
5606 esac
5607 fi
5608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5609 fi
5610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5611 fi
5612 if test $ac_cv_c_bigendian = unknown; then
5613 # Compile a test program.
5614 if test "$cross_compiling" = yes
5615 then :
5616 # Try to guess by grepping values from an object file.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 unsigned short int ascii_mm[] =
5620 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5621 unsigned short int ascii_ii[] =
5622 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5623 int use_ascii (int i) {
5624 return ascii_mm[i] + ascii_ii[i];
5625 }
5626 unsigned short int ebcdic_ii[] =
5627 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5628 unsigned short int ebcdic_mm[] =
5629 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5630 int use_ebcdic (int i) {
5631 return ebcdic_mm[i] + ebcdic_ii[i];
5632 }
5633 int
5634 main (int argc, char **argv)
5635 {
5636 /* Intimidate the compiler so that it does not
5637 optimize the arrays away. */
5638 char *p = argv[0];
5639 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
5640 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
5641 return use_ascii (argc) == use_ebcdic (*p);
5642 }
5643 _ACEOF
5644 if ac_fn_c_try_link "$LINENO"
5645 then :
5646 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
5647 ac_cv_c_bigendian=yes
5648 fi
5649 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
5650 if test "$ac_cv_c_bigendian" = unknown; then
5651 ac_cv_c_bigendian=no
5652 else
5653 # finding both strings is unlikely to happen, but who knows?
5654 ac_cv_c_bigendian=unknown
5655 fi
5656 fi
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5659 conftest$ac_exeext conftest.$ac_ext
5660 else case e in #(
5661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 $ac_includes_default
5664 int
5665 main (void)
5666 {
5667
5668 /* Are we little or big endian? From Harbison&Steele. */
5669 union
5670 {
5671 long int l;
5672 char c[sizeof (long int)];
5673 } u;
5674 u.l = 1;
5675 return u.c[sizeof (long int) - 1] == 1;
5676
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 if ac_fn_c_try_run "$LINENO"
5682 then :
5683 ac_cv_c_bigendian=no
5684 else case e in #(
5685 e) ac_cv_c_bigendian=yes ;;
5686 esac
5687 fi
5688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5689 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5690 esac
5691 fi
5692
5693 fi ;;
5694 esac
5695 fi
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5697 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5698 case $ac_cv_c_bigendian in #(
5699 yes)
5700 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5701 ;; #(
5702 no)
5703 ;; #(
5704 universal)
5705 #
5706 ;; #(
5707 *)
5708 as_fn_error $? "unknown endianness
5709 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5710 esac
5711
5712
5713
5714
5715 #
5716 # Ok, lets find the tkimg configuration
5717 # First, look for one uninstalled.
5718 # the alternative search directory is invoked by --with-tkimg
5719 #
5720
5721 if test x"${no_tkimg}" = x ; then
5722 # we reset no_tkimg in case something fails here
5723 no_tkimg=true
5724
5725 # Check whether --with-tkimg was given.
5726 if test ${with_tkimg+y}
5727 then :
5728 withval=$with_tkimg; with_tkimgconfig=${withval}
5729 fi
5730
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tkimg configuration" >&5
5732 printf %s "checking for tkimg configuration... " >&6; }
5733 if test ${ac_cv_c_tkimgconfig+y}
5734 then :
5735 printf %s "(cached) " >&6
5736 else case e in #(
5737 e)
5738
5739 # First check to see if --with-tkimg was specified.
5740 if test x"${with_tkimgconfig}" != x ; then
5741 case ${with_tkimgconfig} in
5742 */tkimgConfig.sh )
5743 if test -f ${with_tkimgconfig}; then
5744 { 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
5745 printf "%s\n" "$as_me: WARNING: --with-tkimg argument should refer to directory containing tkimgConfig.sh, not to tkimgConfig.sh itself" >&2;}
5746 with_tkimgconfig=`echo ${with_tkimgconfig} | sed 's!/tkimgConfig\.sh$!!'`
5747 fi;;
5748 esac
5749 if test -f "${with_tkimgconfig}/tkimgConfig.sh" ; then
5750 ac_cv_c_tkimgconfig=`(cd ${with_tkimgconfig}; pwd)`
5751 else
5752 as_fn_error $? "${with_tkimgconfig} directory doesn't contain tkimgConfig.sh" "$LINENO" 5
5753 fi
5754 fi
5755
5756 # then check for a private tkimg installation
5757 if test x"${ac_cv_c_tkimgconfig}" = x ; then
5758 for i in \
5759 ../tkimg \
5760 `ls -dr ../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5761 `ls -dr ../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5762 `ls -dr ../tkimg*[0-9].[0-9] 2>/dev/null` \
5763 `ls -dr ../tkimg*[0-9].[0-9]* 2>/dev/null` \
5764 ../../tkimg \
5765 `ls -dr ../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5766 `ls -dr ../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5767 `ls -dr ../../tkimg*[0-9].[0-9] 2>/dev/null` \
5768 `ls -dr ../../tkimg*[0-9].[0-9]* 2>/dev/null` \
5769 ../../../tkimg \
5770 `ls -dr ../../../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5771 `ls -dr ../../../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5772 `ls -dr ../../../tkimg*[0-9].[0-9] 2>/dev/null` \
5773 `ls -dr ../../../tkimg*[0-9].[0-9]* 2>/dev/null` \
5774 ${srcdir}/../tkimg \
5775 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]*.[0-9]* 2>/dev/null` \
5776 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9][0-9] 2>/dev/null` \
5777 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9] 2>/dev/null` \
5778 `ls -dr ${srcdir}/../tkimg*[0-9].[0-9]* 2>/dev/null` \
5779 ; do
5780 if test -f "$i/tkimgConfig.sh" ; then
5781 ac_cv_c_tkimgconfig=`(cd $i; pwd)`
5782 break
5783 fi
5784 if test -f "$i/unix/tkimgConfig.sh" ; then
5785 ac_cv_c_tkimgconfig=`(cd $i/unix; pwd)`
5786 break
5787 fi
5788 done
5789 fi
5790
5791 # check in a few common install locations
5792 if test x"${ac_cv_c_tkimgconfig}" = x ; then
5793 for i in `ls -d ${libdir} 2>/dev/null` \
5794 `ls -d ${exec_prefix}/lib 2>/dev/null` \
5795 `ls -d ${prefix}/lib 2>/dev/null` \
5796 `ls -d /usr/local/lib 2>/dev/null` \
5797 `ls -d /usr/contrib/lib 2>/dev/null` \
5798 `ls -d /usr/pkg/lib 2>/dev/null` \
5799 `ls -d /usr/lib 2>/dev/null` \
5800 `ls -d /usr/lib64 2>/dev/null` \
5801 ; do
5802 if test -f "$i/tkimgConfig.sh" ; then
5803 ac_cv_c_tkimgconfig=`(cd $i; pwd)`
5804 break
5805 fi
5806 done
5807 fi
5808 ;;
5809 esac
5810 fi
5811
5812
5813 if test x"${ac_cv_c_tkimgconfig}" = x ; then
5814 tkimg_BIN_DIR="# no tkimg configs found"
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find tkimg configuration definitions" >&5
5816 printf "%s\n" "$as_me: WARNING: Cannot find tkimg configuration definitions" >&2;}
5817 exit 0
5818 else
5819 no_tkimg=
5820 tkimg_BIN_DIR=${ac_cv_c_tkimgconfig}
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $tkimg_BIN_DIR/tkimgConfig.sh" >&5
5822 printf "%s\n" "found $tkimg_BIN_DIR/tkimgConfig.sh" >&6; }
5823 fi
5824 fi
5825
5826
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh" >&5
5828 printf %s "checking for existence of ${tkimg_BIN_DIR}/tkimgConfig.sh... " >&6; }
5829
5830 if test -f "${tkimg_BIN_DIR}/tkimgConfig.sh" ; then
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
5832 printf "%s\n" "loading" >&6; }
5833 . "${tkimg_BIN_DIR}/tkimgConfig.sh"
5834 else
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
5836 printf "%s\n" "file not found" >&6; }
5837 fi
5838
5839 #
5840 # If the tkimg_BIN_DIR is the build directory (not the install directory),
5841 # then set the common variable name to the value of the build variables.
5842 # For example, the variable tkimg_LIB_SPEC will be set to the value
5843 # of tkimg_BUILD_LIB_SPEC. An extension should make use of tkimg_LIB_SPEC
5844 # instead of tkimg_BUILD_LIB_SPEC since it will work with both an
5845 # installed and uninstalled version of Tcl.
5846 #
5847
5848 if test -f "${tkimg_BIN_DIR}/Makefile" ; then
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Found Makefile - using build library specs for tkimg" >&5
5850 printf "%s\n" "$as_me: WARNING: Found Makefile - using build library specs for tkimg" >&2;}
5851 tkimg_LIB_SPEC=${tkimg_BUILD_LIB_SPEC}
5852 tkimg_STUB_LIB_SPEC=${tkimg_BUILD_STUB_LIB_SPEC}
5853 tkimg_STUB_LIB_PATH=${tkimg_BUILD_STUB_LIB_PATH}
5854 tkimg_INCLUDE_SPEC=${tkimg_BUILD_INCLUDE_SPEC}
5855 tkimg_LIBRARY_PATH=${tkimg_LIBRARY_PATH}
5856 fi
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869 # Allow the caller to prevent this auto-check by specifying any 2nd arg
5870 if test "x" = x
5871 then :
5872
5873 # Check both upper and lower-case variants
5874 # If a dev wanted non-stubs libs, this function could take an option
5875 # to not use _STUB in the paths below
5876 if test "x${tkimg_STUB_LIB_SPEC}" = x
5877 then :
5878
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For TKIMG_STUB library for LIBS" >&5
5880 printf %s "checking For TKIMG_STUB library for LIBS... " >&6; }
5881 # This simplifies the use of stub libraries by automatically adding
5882 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
5883 # but this is called before CONFIG_CFLAGS. More importantly, this adds
5884 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
5885 if test "x${TKIMG_STUB_LIB_SPEC}" != "x" ; then
5886 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
5887
5888 vars="\"`${CYGPATH} ${TKIMG_STUB_LIB_PATH}`\""
5889 for i in $vars; do
5890 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5891 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5892 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5893 fi
5894 PKG_LIBS="$PKG_LIBS $i"
5895 done
5896
5897
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&5
5899 printf "%s\n" "using TKIMG_STUB_LIB_PATH ${TKIMG_STUB_LIB_PATH}" >&6; }
5900 else
5901
5902 vars="${TKIMG_STUB_LIB_SPEC}"
5903 for i in $vars; do
5904 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5905 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5906 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5907 fi
5908 PKG_LIBS="$PKG_LIBS $i"
5909 done
5910
5911
5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&5
5913 printf "%s\n" "using TKIMG_STUB_LIB_SPEC ${TKIMG_STUB_LIB_SPEC}" >&6; }
5914 fi
5915 else
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
5917 printf "%s\n" "file not found" >&6; }
5918 fi
5919
5920 else case e in #(
5921 e)
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking For tkimg_STUB library for LIBS" >&5
5923 printf %s "checking For tkimg_STUB library for LIBS... " >&6; }
5924 # This simplifies the use of stub libraries by automatically adding
5925 # the stub lib to your path. Normally this would add to SHLIB_LD_LIBS,
5926 # but this is called before CONFIG_CFLAGS. More importantly, this adds
5927 # to PKG_LIBS, which becomes LIBS, and that is only used by SHLIB_LD.
5928 if test "x${tkimg_STUB_LIB_SPEC}" != "x" ; then
5929 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
5930
5931 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\""
5932 for i in $vars; do
5933 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5934 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5935 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5936 fi
5937 PKG_LIBS="$PKG_LIBS $i"
5938 done
5939
5940
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&5
5942 printf "%s\n" "using tkimg_STUB_LIB_PATH ${tkimg_STUB_LIB_PATH}" >&6; }
5943 else
5944
5945 vars="${tkimg_STUB_LIB_SPEC}"
5946 for i in $vars; do
5947 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5948 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5949 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5950 fi
5951 PKG_LIBS="$PKG_LIBS $i"
5952 done
5953
5954
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&5
5956 printf "%s\n" "using tkimg_STUB_LIB_SPEC ${tkimg_STUB_LIB_SPEC}" >&6; }
5957 fi
5958 else
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
5960 printf "%s\n" "file not found" >&6; }
5961 fi
5962 ;;
5963 esac
5964 fi
5965
5966 fi
5967
5968
5969
5970 #--------------------------------------------------------------------
5971 # Compute an absolute path to the src directory of module 'tkimg' so
5972 # that we are able to find its headers even if they are not installed.
5973 #--------------------------------------------------------------------
5974
5975 case $tkimg_SRC_DIR in
5976 /*) tkimg_SRC_PATH=$tkimg_SRC_DIR
5977 ;;
5978 *) # SRC_DIR relative, splice with BUILD_PATH
5979 tkimg_SRC_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`/$tkimg_SRC_DIR"
5980 esac
5981
5982 tkimg_BUILD_PATH="`dirname $tkimg_BUILD_STUB_LIB_PATH`"
5983
5984 if test "${TEA_PLATFORM}" = "windows" ; then
5985 tkimg_SRC_PATH="`$CYGPATH $tkimg_SRC_PATH`"
5986 tkimg_BUILD_PATH="`$CYGPATH $tkimg_BUILD_PATH`"
5987 fi
5988
5989
5990
5991
5992
5993 #-----------------------------------------------------------------------
5994 # Specify the C source files to compile in TEA_ADD_SOURCES,
5995 # public headers that need to be installed in TEA_ADD_HEADERS,
5996 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
5997 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
5998 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
5999 # and PKG_TCL_SOURCES.
6000 #-----------------------------------------------------------------------
6001
6002
6003 vars="gif.c"
6004 for i in $vars; do
6005 case $i in
6006 \$*)
6007 # allow $-var names
6008 PKG_SOURCES="$PKG_SOURCES $i"
6009 PKG_OBJECTS="$PKG_OBJECTS $i"
6010 ;;
6011 *)
6012 # check for existence - allows for generic/win/unix VPATH
6013 # To add more dirs here (like 'src'), you have to update VPATH
6014 # in Makefile.in as well
6015 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6016 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6017 -a ! -f "${srcdir}/macosx/$i" \
6018 ; then
6019 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
6020 fi
6021 PKG_SOURCES="$PKG_SOURCES $i"
6022 # this assumes it is in a VPATH dir
6023 i=`basename $i`
6024 # handle user calling this before or after TEA_SETUP_COMPILER
6025 if test x"${OBJEXT}" != x ; then
6026 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6027 else
6028 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6029 fi
6030 PKG_OBJECTS="$PKG_OBJECTS $j"
6031 ;;
6032 esac
6033 done
6034
6035
6036
6037
6038 vars=""
6039 for i in $vars; do
6040 # check for existence, be strict because it is installed
6041 if test ! -f "${srcdir}/$i" ; then
6042 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
6043 fi
6044 PKG_HEADERS="$PKG_HEADERS $i"
6045 done
6046
6047
6048
6049 vars="-I\"`\${CYGPATH} \${tkimg_SRC_PATH}`\""
6050 for i in $vars; do
6051 PKG_INCLUDES="$PKG_INCLUDES $i"
6052 done
6053
6054
6055
6056 vars="-I."
6057 for i in $vars; do
6058 PKG_INCLUDES="$PKG_INCLUDES $i"
6059 done
6060
6061
6062
6063 vars=""
6064 for i in $vars; do
6065 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6066 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6067 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6068 fi
6069 PKG_LIBS="$PKG_LIBS $i"
6070 done
6071
6072
6073
6074 PKG_CFLAGS="$PKG_CFLAGS "
6075
6076
6077
6078 PKG_CFLAGS="$PKG_CFLAGS -DTKIMG_VERSION=\\\"\${tkimg_VERSION}\\\""
6079
6080
6081
6082 vars=""
6083 for i in $vars; do
6084 # check for existence - allows for generic/win/unix VPATH
6085 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6086 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6087 -a ! -f "${srcdir}/macosx/$i" \
6088 ; then
6089 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
6090 fi
6091 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
6092 # this assumes it is in a VPATH dir
6093 i=`basename $i`
6094 # handle user calling this before or after TEA_SETUP_COMPILER
6095 if test x"${OBJEXT}" != x ; then
6096 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6097 else
6098 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6099 fi
6100 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
6101 done
6102
6103
6104
6105
6106 vars=""
6107 for i in $vars; do
6108 # check for existence, be strict because it is installed
6109 if test ! -f "${srcdir}/$i" ; then
6110 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
6111 fi
6112 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
6113 done
6114
6115
6116
6117 PUP="`echo ${PACKAGE_NAME}| tr 'a-z' 'A-Z'`"
6118
6119 sed < "`${CYGPATH} ${srcdir}/../init.c`" > "init.c" \
6120 -e "s/@CPACKAGE@/${CPACKAGE}/" \
6121 -e "s/%PACKAGE%/${PACKAGE_NAME}/" \
6122 -e "s/%PACKAGE_UP%/${PUP}/" \
6123 -e "s/%PHIMGTYPE%/${PHIMGTYPE}/"
6124
6125 # init.c is an included source file, not a source by itself
6126 # FUTURE: Do this through AC_OUTPUT!!
6127
6128 #--------------------------------------------------------------------
6129 # __CHANGE__
6130 # Choose which headers you need. Extension authors should try very
6131 # hard to only rely on the Tcl public header files. Internal headers
6132 # contain private data structures and are subject to change without
6133 # notice.
6134 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
6135 #--------------------------------------------------------------------
6136
6137
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
6139 printf %s "checking for Tcl public headers... " >&6; }
6140
6141
6142 # Check whether --with-tclinclude was given.
6143 if test ${with_tclinclude+y}
6144 then :
6145 withval=$with_tclinclude; with_tclinclude=${withval}
6146 fi
6147
6148
6149 if test ${ac_cv_c_tclh+y}
6150 then :
6151 printf %s "(cached) " >&6
6152 else case e in #(
6153 e)
6154 # Use the value from --with-tclinclude, if it was given
6155
6156 if test x"${with_tclinclude}" != x ; then
6157 if test -f "${with_tclinclude}/tcl.h" ; then
6158 ac_cv_c_tclh=${with_tclinclude}
6159 else
6160 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
6161 fi
6162 else
6163 list=""
6164 if test "`uname -s`" = "Darwin"; then
6165 # If Tcl was built as a framework, attempt to use
6166 # the framework's Headers directory
6167 case ${TCL_DEFS} in
6168 *TCL_FRAMEWORK*)
6169 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
6170 ;;
6171 esac
6172 fi
6173
6174 # Look in the source dir only if Tcl is not installed,
6175 # and in that situation, look there before installed locations.
6176 if test -f "${TCL_BIN_DIR}/Makefile" ; then
6177 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
6178 fi
6179
6180 # Check order: pkg --prefix location, Tcl's --prefix location,
6181 # relative to directory of tclConfig.sh.
6182
6183 eval "temp_includedir=${includedir}"
6184 list="$list \
6185 `ls -d ${temp_includedir} 2>/dev/null` \
6186 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6187 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6188 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6189 list="$list /usr/local/include /usr/include"
6190 if test x"${TCL_INCLUDE_SPEC}" != x ; then
6191 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6192 list="$list `ls -d ${d} 2>/dev/null`"
6193 fi
6194 fi
6195 for i in $list ; do
6196 if test -f "$i/tcl.h" ; then
6197 ac_cv_c_tclh=$i
6198 break
6199 fi
6200 done
6201 fi
6202 ;;
6203 esac
6204 fi
6205
6206
6207 # Print a message based on how we determined the include path
6208
6209 if test x"${ac_cv_c_tclh}" = x ; then
6210 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
6211 else
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
6213 printf "%s\n" "${ac_cv_c_tclh}" >&6; }
6214 fi
6215
6216 # Convert to a native path and substitute into the output files.
6217
6218 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
6219
6220 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6221
6222
6223
6224
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk public headers" >&5
6226 printf %s "checking for Tk public headers... " >&6; }
6227
6228
6229 # Check whether --with-tkinclude was given.
6230 if test ${with_tkinclude+y}
6231 then :
6232 withval=$with_tkinclude; with_tkinclude=${withval}
6233 fi
6234
6235
6236 if test ${ac_cv_c_tkh+y}
6237 then :
6238 printf %s "(cached) " >&6
6239 else case e in #(
6240 e)
6241 # Use the value from --with-tkinclude, if it was given
6242
6243 if test x"${with_tkinclude}" != x ; then
6244 if test -f "${with_tkinclude}/tk.h" ; then
6245 ac_cv_c_tkh=${with_tkinclude}
6246 else
6247 as_fn_error $? "${with_tkinclude} directory does not contain tk.h" "$LINENO" 5
6248 fi
6249 else
6250 list=""
6251 if test "`uname -s`" = "Darwin"; then
6252 # If Tk was built as a framework, attempt to use
6253 # the framework's Headers directory.
6254 case ${TK_DEFS} in
6255 *TK_FRAMEWORK*)
6256 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`"
6257 ;;
6258 esac
6259 fi
6260
6261 # Look in the source dir only if Tk is not installed,
6262 # and in that situation, look there before installed locations.
6263 if test -f "${TK_BIN_DIR}/Makefile" ; then
6264 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`"
6265 fi
6266
6267 # Check order: pkg --prefix location, Tk's --prefix location,
6268 # relative to directory of tkConfig.sh, Tcl's --prefix location,
6269 # relative to directory of tclConfig.sh.
6270
6271 eval "temp_includedir=${includedir}"
6272 list="$list \
6273 `ls -d ${temp_includedir} 2>/dev/null` \
6274 `ls -d ${TK_PREFIX}/include 2>/dev/null` \
6275 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \
6276 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6277 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6278 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6279 list="$list /usr/local/include /usr/include"
6280 if test x"${TK_INCLUDE_SPEC}" != x ; then
6281 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6282 list="$list `ls -d ${d} 2>/dev/null`"
6283 fi
6284 fi
6285 for i in $list ; do
6286 if test -f "$i/tk.h" ; then
6287 ac_cv_c_tkh=$i
6288 break
6289 fi
6290 done
6291 fi
6292 ;;
6293 esac
6294 fi
6295
6296
6297 # Print a message based on how we determined the include path
6298
6299 if test x"${ac_cv_c_tkh}" = x ; then
6300 as_fn_error $? "tk.h not found. Please specify its location with --with-tkinclude" "$LINENO" 5
6301 else
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tkh}" >&5
6303 printf "%s\n" "${ac_cv_c_tkh}" >&6; }
6304 fi
6305
6306 # Convert to a native path and substitute into the output files.
6307
6308 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}`
6309
6310 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6311
6312
6313
6314 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then
6315 # On Windows and Aqua, we need the X compat headers
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
6317 printf %s "checking for X11 header files... " >&6; }
6318 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then
6319 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`"
6320 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6321
6322 fi
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${INCLUDE_DIR_NATIVE}" >&5
6324 printf "%s\n" "${INCLUDE_DIR_NATIVE}" >&6; }
6325 fi
6326
6327
6328 #--------------------------------------------------------------------
6329 # A few miscellaneous platform-specific items:
6330 #
6331 # Windows creates a few extra files that need to be cleaned up.
6332 # We can add more files to clean if our extension creates any extra
6333 # files in the future.
6334 #
6335 # Define any extra compiler flags in the PACKAGE_CFLAGS variable.
6336 # These will be appended to the current set of compiler flags for
6337 # your system.
6338 #--------------------------------------------------------------------
6339
6340 if test "${TEA_PLATFORM}" = "windows" ; then
6341 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6342 fi
6343
6344
6345 #--------------------------------------------------------------------
6346 # Check whether --enable-threads or --disable-threads was given.
6347 # So far only Tcl responds to this one.
6348 #--------------------------------------------------------------------
6349
6350
6351 # Check whether --enable-threads was given.
6352 if test ${enable_threads+y}
6353 then :
6354 enableval=$enable_threads; tcl_ok=$enableval
6355 else case e in #(
6356 e) tcl_ok=yes ;;
6357 esac
6358 fi
6359
6360
6361 if test "${enable_threads+set}" = set; then
6362 enableval="$enable_threads"
6363 tcl_ok=$enableval
6364 else
6365 tcl_ok=yes
6366 fi
6367
6368 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
6369 TCL_THREADS=1
6370
6371 if test "${TEA_PLATFORM}" != "windows" ; then
6372 # We are always OK on Windows, so check what this platform wants:
6373
6374 # USE_THREAD_ALLOC tells us to try the special thread-based
6375 # allocator that significantly reduces lock contention
6376
6377 printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h
6378
6379
6380 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
6381
6382 if test "`uname -s`" = "SunOS" ; then
6383
6384 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6385
6386 fi
6387
6388 printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
6389
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
6391 printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
6392 if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
6393 then :
6394 printf %s "(cached) " >&6
6395 else case e in #(
6396 e) ac_check_lib_save_LIBS=$LIBS
6397 LIBS="-lpthread $LIBS"
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400
6401 /* Override any GCC internal prototype to avoid an error.
6402 Use char because int might match the return type of a GCC
6403 builtin and then its argument prototype would still apply.
6404 The 'extern "C"' is for builds by C++ compilers;
6405 although this is not generally supported in C code supporting it here
6406 has little cost and some practical benefit (sr 110532). */
6407 #ifdef __cplusplus
6408 extern "C"
6409 #endif
6410 char pthread_mutex_init (void);
6411 int
6412 main (void)
6413 {
6414 return pthread_mutex_init ();
6415 ;
6416 return 0;
6417 }
6418 _ACEOF
6419 if ac_fn_c_try_link "$LINENO"
6420 then :
6421 ac_cv_lib_pthread_pthread_mutex_init=yes
6422 else case e in #(
6423 e) ac_cv_lib_pthread_pthread_mutex_init=no ;;
6424 esac
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6427 conftest$ac_exeext conftest.$ac_ext
6428 LIBS=$ac_check_lib_save_LIBS ;;
6429 esac
6430 fi
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6432 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6433 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
6434 then :
6435 tcl_ok=yes
6436 else case e in #(
6437 e) tcl_ok=no ;;
6438 esac
6439 fi
6440
6441 if test "$tcl_ok" = "no"; then
6442 # Check a little harder for __pthread_mutex_init in the same
6443 # library, as some systems hide it there until pthread.h is
6444 # defined. We could alternatively do an AC_TRY_COMPILE with
6445 # pthread.h, but that will work with libpthread really doesn't
6446 # exist, like AIX 4.2. [Bug: 4359]
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
6448 printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; }
6449 if test ${ac_cv_lib_pthread___pthread_mutex_init+y}
6450 then :
6451 printf %s "(cached) " >&6
6452 else case e in #(
6453 e) ac_check_lib_save_LIBS=$LIBS
6454 LIBS="-lpthread $LIBS"
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457
6458 /* Override any GCC internal prototype to avoid an error.
6459 Use char because int might match the return type of a GCC
6460 builtin and then its argument prototype would still apply.
6461 The 'extern "C"' is for builds by C++ compilers;
6462 although this is not generally supported in C code supporting it here
6463 has little cost and some practical benefit (sr 110532). */
6464 #ifdef __cplusplus
6465 extern "C"
6466 #endif
6467 char __pthread_mutex_init (void);
6468 int
6469 main (void)
6470 {
6471 return __pthread_mutex_init ();
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 if ac_fn_c_try_link "$LINENO"
6477 then :
6478 ac_cv_lib_pthread___pthread_mutex_init=yes
6479 else case e in #(
6480 e) ac_cv_lib_pthread___pthread_mutex_init=no ;;
6481 esac
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6484 conftest$ac_exeext conftest.$ac_ext
6485 LIBS=$ac_check_lib_save_LIBS ;;
6486 esac
6487 fi
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
6489 printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
6490 if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes
6491 then :
6492 tcl_ok=yes
6493 else case e in #(
6494 e) tcl_ok=no ;;
6495 esac
6496 fi
6497
6498 fi
6499
6500 if test "$tcl_ok" = "yes"; then
6501 # The space is needed
6502 THREADS_LIBS=" -lpthread"
6503 else
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
6505 printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; }
6506 if test ${ac_cv_lib_pthreads_pthread_mutex_init+y}
6507 then :
6508 printf %s "(cached) " >&6
6509 else case e in #(
6510 e) ac_check_lib_save_LIBS=$LIBS
6511 LIBS="-lpthreads $LIBS"
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514
6515 /* Override any GCC internal prototype to avoid an error.
6516 Use char because int might match the return type of a GCC
6517 builtin and then its argument prototype would still apply.
6518 The 'extern "C"' is for builds by C++ compilers;
6519 although this is not generally supported in C code supporting it here
6520 has little cost and some practical benefit (sr 110532). */
6521 #ifdef __cplusplus
6522 extern "C"
6523 #endif
6524 char pthread_mutex_init (void);
6525 int
6526 main (void)
6527 {
6528 return pthread_mutex_init ();
6529 ;
6530 return 0;
6531 }
6532 _ACEOF
6533 if ac_fn_c_try_link "$LINENO"
6534 then :
6535 ac_cv_lib_pthreads_pthread_mutex_init=yes
6536 else case e in #(
6537 e) ac_cv_lib_pthreads_pthread_mutex_init=no ;;
6538 esac
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6541 conftest$ac_exeext conftest.$ac_ext
6542 LIBS=$ac_check_lib_save_LIBS ;;
6543 esac
6544 fi
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
6546 printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
6547 if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes
6548 then :
6549 tcl_ok=yes
6550 else case e in #(
6551 e) tcl_ok=no ;;
6552 esac
6553 fi
6554
6555 if test "$tcl_ok" = "yes"; then
6556 # The space is needed
6557 THREADS_LIBS=" -lpthreads"
6558 else
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
6560 printf %s "checking for pthread_mutex_init in -lc... " >&6; }
6561 if test ${ac_cv_lib_c_pthread_mutex_init+y}
6562 then :
6563 printf %s "(cached) " >&6
6564 else case e in #(
6565 e) ac_check_lib_save_LIBS=$LIBS
6566 LIBS="-lc $LIBS"
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569
6570 /* Override any GCC internal prototype to avoid an error.
6571 Use char because int might match the return type of a GCC
6572 builtin and then its argument prototype would still apply.
6573 The 'extern "C"' is for builds by C++ compilers;
6574 although this is not generally supported in C code supporting it here
6575 has little cost and some practical benefit (sr 110532). */
6576 #ifdef __cplusplus
6577 extern "C"
6578 #endif
6579 char pthread_mutex_init (void);
6580 int
6581 main (void)
6582 {
6583 return pthread_mutex_init ();
6584 ;
6585 return 0;
6586 }
6587 _ACEOF
6588 if ac_fn_c_try_link "$LINENO"
6589 then :
6590 ac_cv_lib_c_pthread_mutex_init=yes
6591 else case e in #(
6592 e) ac_cv_lib_c_pthread_mutex_init=no ;;
6593 esac
6594 fi
6595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6596 conftest$ac_exeext conftest.$ac_ext
6597 LIBS=$ac_check_lib_save_LIBS ;;
6598 esac
6599 fi
6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
6601 printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; }
6602 if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes
6603 then :
6604 tcl_ok=yes
6605 else case e in #(
6606 e) tcl_ok=no ;;
6607 esac
6608 fi
6609
6610 if test "$tcl_ok" = "no"; then
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
6612 printf %s "checking for pthread_mutex_init in -lc_r... " >&6; }
6613 if test ${ac_cv_lib_c_r_pthread_mutex_init+y}
6614 then :
6615 printf %s "(cached) " >&6
6616 else case e in #(
6617 e) ac_check_lib_save_LIBS=$LIBS
6618 LIBS="-lc_r $LIBS"
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621
6622 /* Override any GCC internal prototype to avoid an error.
6623 Use char because int might match the return type of a GCC
6624 builtin and then its argument prototype would still apply.
6625 The 'extern "C"' is for builds by C++ compilers;
6626 although this is not generally supported in C code supporting it here
6627 has little cost and some practical benefit (sr 110532). */
6628 #ifdef __cplusplus
6629 extern "C"
6630 #endif
6631 char pthread_mutex_init (void);
6632 int
6633 main (void)
6634 {
6635 return pthread_mutex_init ();
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_c_try_link "$LINENO"
6641 then :
6642 ac_cv_lib_c_r_pthread_mutex_init=yes
6643 else case e in #(
6644 e) ac_cv_lib_c_r_pthread_mutex_init=no ;;
6645 esac
6646 fi
6647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6648 conftest$ac_exeext conftest.$ac_ext
6649 LIBS=$ac_check_lib_save_LIBS ;;
6650 esac
6651 fi
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
6653 printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
6654 if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes
6655 then :
6656 tcl_ok=yes
6657 else case e in #(
6658 e) tcl_ok=no ;;
6659 esac
6660 fi
6661
6662 if test "$tcl_ok" = "yes"; then
6663 # The space is needed
6664 THREADS_LIBS=" -pthread"
6665 else
6666 TCL_THREADS=0
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
6668 printf "%s\n" "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
6669 fi
6670 fi
6671 fi
6672 fi
6673 fi
6674 else
6675 TCL_THREADS=0
6676 fi
6677 # Do checking message here to not mess up interleaved configure output
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
6679 printf %s "checking for building with threads... " >&6; }
6680 if test "${TCL_THREADS}" = 1; then
6681
6682 printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h
6683
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
6685 printf "%s\n" "yes (default)" >&6; }
6686 else
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 printf "%s\n" "no" >&6; }
6689 fi
6690 # TCL_THREADS sanity checking. See if our request for building with
6691 # threads is the same as the way Tcl was built. If not, warn the user.
6692 case ${TCL_DEFS} in
6693 *THREADS=1*)
6694 if test "${TCL_THREADS}" = "0"; then
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
6696 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
6697 that IS thread-enabled. It is recommended to use --enable-threads." >&5
6698 printf "%s\n" "$as_me: WARNING:
6699 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
6700 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
6701 fi
6702 ;;
6703 esac
6704
6705
6706
6707 #--------------------------------------------------------------------
6708 # The statement below defines a collection of symbols related to
6709 # building as a shared library instead of a static library.
6710 #--------------------------------------------------------------------
6711
6712
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
6714 printf %s "checking how to build libraries... " >&6; }
6715 # Check whether --enable-shared was given.
6716 if test ${enable_shared+y}
6717 then :
6718 enableval=$enable_shared; shared_ok=$enableval
6719 else case e in #(
6720 e) shared_ok=yes ;;
6721 esac
6722 fi
6723
6724
6725 if test "${enable_shared+set}" = set; then
6726 enableval="$enable_shared"
6727 shared_ok=$enableval
6728 else
6729 shared_ok=yes
6730 fi
6731
6732 # Check whether --enable-stubs was given.
6733 if test ${enable_stubs+y}
6734 then :
6735 enableval=$enable_stubs; stubs_ok=$enableval
6736 else case e in #(
6737 e) stubs_ok=yes ;;
6738 esac
6739 fi
6740
6741
6742 if test "${enable_stubs+set}" = set; then
6743 enableval="$enable_stubs"
6744 stubs_ok=$enableval
6745 else
6746 stubs_ok=yes
6747 fi
6748
6749 # Stubs are always enabled for shared builds
6750 if test "$shared_ok" = "yes" ; then
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
6752 printf "%s\n" "shared" >&6; }
6753 SHARED_BUILD=1
6754 STUBS_BUILD=1
6755 else
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
6757 printf "%s\n" "static" >&6; }
6758 SHARED_BUILD=0
6759
6760 printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h
6761
6762 if test "$stubs_ok" = "yes" ; then
6763 STUBS_BUILD=1
6764 else
6765 STUBS_BUILD=0
6766 fi
6767 fi
6768 if test "${STUBS_BUILD}" = "1" ; then
6769
6770 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
6771
6772
6773 printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h
6774
6775 if test "${TEA_WINDOWINGSYSTEM}" != ""; then
6776
6777 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
6778
6779 fi
6780 fi
6781
6782
6783
6784
6785
6786 #--------------------------------------------------------------------
6787 # This macro figures out what flags to use with the compiler/linker
6788 # when building shared/static debug/optimized objects. This information
6789 # can be taken from the tclConfig.sh file, but this figures it all out.
6790 #--------------------------------------------------------------------
6791
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 printf %s "checking for $ac_word... " >&6; }
6797 if test ${ac_cv_prog_RANLIB+y}
6798 then :
6799 printf %s "(cached) " >&6
6800 else case e in #(
6801 e) if test -n "$RANLIB"; then
6802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 case $as_dir in #(((
6809 '') as_dir=./ ;;
6810 */) ;;
6811 *) as_dir=$as_dir/ ;;
6812 esac
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi ;;
6824 esac
6825 fi
6826 RANLIB=$ac_cv_prog_RANLIB
6827 if test -n "$RANLIB"; then
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6829 printf "%s\n" "$RANLIB" >&6; }
6830 else
6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 printf "%s\n" "no" >&6; }
6833 fi
6834
6835
6836 fi
6837 if test -z "$ac_cv_prog_RANLIB"; then
6838 ac_ct_RANLIB=$RANLIB
6839 # Extract the first word of "ranlib", so it can be a program name with args.
6840 set dummy ranlib; ac_word=$2
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 printf %s "checking for $ac_word... " >&6; }
6843 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6844 then :
6845 printf %s "(cached) " >&6
6846 else case e in #(
6847 e) if test -n "$ac_ct_RANLIB"; then
6848 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 case $as_dir in #(((
6855 '') as_dir=./ ;;
6856 */) ;;
6857 *) as_dir=$as_dir/ ;;
6858 esac
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6861 ac_cv_prog_ac_ct_RANLIB="ranlib"
6862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi ;;
6870 esac
6871 fi
6872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6873 if test -n "$ac_ct_RANLIB"; then
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6875 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6876 else
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 printf "%s\n" "no" >&6; }
6879 fi
6880
6881 if test "x$ac_ct_RANLIB" = x; then
6882 RANLIB=":"
6883 else
6884 case $cross_compiling:$ac_tool_warned in
6885 yes:)
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888 ac_tool_warned=yes ;;
6889 esac
6890 RANLIB=$ac_ct_RANLIB
6891 fi
6892 else
6893 RANLIB="$ac_cv_prog_RANLIB"
6894 fi
6895
6896
6897
6898
6899 # Step 0.a: Enable 64 bit support?
6900
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
6902 printf %s "checking if 64bit support is requested... " >&6; }
6903 # Check whether --enable-64bit was given.
6904 if test ${enable_64bit+y}
6905 then :
6906 enableval=$enable_64bit; do64bit=$enableval
6907 else case e in #(
6908 e) do64bit=no ;;
6909 esac
6910 fi
6911
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
6913 printf "%s\n" "$do64bit" >&6; }
6914
6915 # Step 0.b: Enable Solaris 64 bit VIS support?
6916
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
6918 printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
6919 # Check whether --enable-64bit-vis was given.
6920 if test ${enable_64bit_vis+y}
6921 then :
6922 enableval=$enable_64bit_vis; do64bitVIS=$enableval
6923 else case e in #(
6924 e) do64bitVIS=no ;;
6925 esac
6926 fi
6927
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
6929 printf "%s\n" "$do64bitVIS" >&6; }
6930 # Force 64bit on with VIS
6931 if test "$do64bitVIS" = "yes"
6932 then :
6933 do64bit=yes
6934 fi
6935
6936 # Step 0.c: Check if visibility support is available. Do this here so
6937 # that platform specific alternatives can be used below if this fails.
6938
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
6940 printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
6941 if test ${tcl_cv_cc_visibility_hidden+y}
6942 then :
6943 printf %s "(cached) " >&6
6944 else case e in #(
6945 e)
6946 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949
6950 extern __attribute__((__visibility__("hidden"))) void f(void);
6951 void f(void) {}
6952 int
6953 main (void)
6954 {
6955 f();
6956 ;
6957 return 0;
6958 }
6959 _ACEOF
6960 if ac_fn_c_try_link "$LINENO"
6961 then :
6962 tcl_cv_cc_visibility_hidden=yes
6963 else case e in #(
6964 e) tcl_cv_cc_visibility_hidden=no ;;
6965 esac
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6968 conftest$ac_exeext conftest.$ac_ext
6969 CFLAGS=$hold_cflags ;;
6970 esac
6971 fi
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
6973 printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
6974 if test $tcl_cv_cc_visibility_hidden = yes
6975 then :
6976
6977
6978 printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
6979
6980
6981 printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
6982
6983
6984 fi
6985
6986 # Step 0.d: Disable -rpath support?
6987
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
6989 printf %s "checking if rpath support is requested... " >&6; }
6990 # Check whether --enable-rpath was given.
6991 if test ${enable_rpath+y}
6992 then :
6993 enableval=$enable_rpath; doRpath=$enableval
6994 else case e in #(
6995 e) doRpath=yes ;;
6996 esac
6997 fi
6998
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
7000 printf "%s\n" "$doRpath" >&6; }
7001
7002 # Set the variable "system" to hold the name and version number
7003 # for the system.
7004
7005
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
7007 printf %s "checking system version... " >&6; }
7008 if test ${tcl_cv_sys_version+y}
7009 then :
7010 printf %s "(cached) " >&6
7011 else case e in #(
7012 e)
7013 # TEA specific:
7014 if test "${TEA_PLATFORM}" = "windows" ; then
7015 tcl_cv_sys_version=windows
7016 else
7017 tcl_cv_sys_version=`uname -s`-`uname -r`
7018 if test "$?" -ne 0 ; then
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
7020 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
7021 tcl_cv_sys_version=unknown
7022 else
7023 if test "`uname -s`" = "AIX" ; then
7024 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
7025 fi
7026 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
7027 tcl_cv_sys_version=NetBSD-Debian
7028 fi
7029 fi
7030 fi
7031 ;;
7032 esac
7033 fi
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
7035 printf "%s\n" "$tcl_cv_sys_version" >&6; }
7036 system=$tcl_cv_sys_version
7037
7038
7039 # Require ranlib early so we can override it in special cases below.
7040
7041
7042
7043 # Set configuration options based on system name and version.
7044 # This is similar to Tcl's unix/tcl.m4 except that we've added a
7045 # "windows" case and removed some core-only vars.
7046
7047 do64bit_ok=no
7048 # default to '{$LIBS}' and set to "" on per-platform necessary basis
7049 SHLIB_LD_LIBS='${LIBS}'
7050 # When ld needs options to work in 64-bit mode, put them in
7051 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
7052 # is disabled by the user. [Bug 1016796]
7053 LDFLAGS_ARCH=""
7054 UNSHARED_LIB_SUFFIX=""
7055 # TEA specific: use PACKAGE_VERSION instead of VERSION
7056 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
7057 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
7058 TCL_LIB_VERSIONS_OK=ok
7059 CFLAGS_DEBUG=-g
7060 if test "$GCC" = yes
7061 then :
7062
7063 CFLAGS_OPTIMIZE=-O2
7064 CFLAGS_WARNING="-Wall"
7065
7066 else case e in #(
7067 e)
7068 CFLAGS_OPTIMIZE=-O
7069 CFLAGS_WARNING=""
7070 ;;
7071 esac
7072 fi
7073 if test -n "$ac_tool_prefix"; then
7074 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7075 set dummy ${ac_tool_prefix}ar; ac_word=$2
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 printf %s "checking for $ac_word... " >&6; }
7078 if test ${ac_cv_prog_AR+y}
7079 then :
7080 printf %s "(cached) " >&6
7081 else case e in #(
7082 e) if test -n "$AR"; then
7083 ac_cv_prog_AR="$AR" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 case $as_dir in #(((
7090 '') as_dir=./ ;;
7091 */) ;;
7092 *) as_dir=$as_dir/ ;;
7093 esac
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_AR="${ac_tool_prefix}ar"
7097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi ;;
7105 esac
7106 fi
7107 AR=$ac_cv_prog_AR
7108 if test -n "$AR"; then
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7110 printf "%s\n" "$AR" >&6; }
7111 else
7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 printf "%s\n" "no" >&6; }
7114 fi
7115
7116
7117 fi
7118 if test -z "$ac_cv_prog_AR"; then
7119 ac_ct_AR=$AR
7120 # Extract the first word of "ar", so it can be a program name with args.
7121 set dummy ar; ac_word=$2
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 printf %s "checking for $ac_word... " >&6; }
7124 if test ${ac_cv_prog_ac_ct_AR+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else case e in #(
7128 e) if test -n "$ac_ct_AR"; then
7129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134 IFS=$as_save_IFS
7135 case $as_dir in #(((
7136 '') as_dir=./ ;;
7137 */) ;;
7138 *) as_dir=$as_dir/ ;;
7139 esac
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_ac_ct_AR="ar"
7143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi ;;
7151 esac
7152 fi
7153 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7154 if test -n "$ac_ct_AR"; then
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7156 printf "%s\n" "$ac_ct_AR" >&6; }
7157 else
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 printf "%s\n" "no" >&6; }
7160 fi
7161
7162 if test "x$ac_ct_AR" = x; then
7163 AR=""
7164 else
7165 case $cross_compiling:$ac_tool_warned in
7166 yes:)
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171 AR=$ac_ct_AR
7172 fi
7173 else
7174 AR="$ac_cv_prog_AR"
7175 fi
7176
7177 STLIB_LD='${AR} cr'
7178 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
7179 if test "x$SHLIB_VERSION" = x
7180 then :
7181 SHLIB_VERSION=""
7182 else case e in #(
7183 e) SHLIB_VERSION=".$SHLIB_VERSION" ;;
7184 esac
7185 fi
7186 case $system in
7187 # TEA specific:
7188 windows)
7189 MACHINE="X86"
7190 if test "$do64bit" != "no" ; then
7191 case "$do64bit" in
7192 amd64|x64|yes)
7193 MACHINE="AMD64" ; # default to AMD64 64-bit build
7194 ;;
7195 arm64|aarch64)
7196 MACHINE="ARM64"
7197 ;;
7198 ia64)
7199 MACHINE="IA64"
7200 ;;
7201 esac
7202 fi
7203
7204 if test "$GCC" != "yes" ; then
7205 if test "${SHARED_BUILD}" = "0" ; then
7206 runtime=-MT
7207 else
7208 runtime=-MD
7209 fi
7210 case "x`echo \${VisualStudioVersion}`" in
7211 x1[4-9]*)
7212 lflags="${lflags} -nodefaultlib:libucrt.lib"
7213
7214 vars="ucrt.lib"
7215 for i in $vars; do
7216 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7217 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7218 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
7219 fi
7220 PKG_LIBS="$PKG_LIBS $i"
7221 done
7222
7223
7224 ;;
7225 *)
7226 ;;
7227 esac
7228
7229 if test "$do64bit" != "no" ; then
7230 CC="cl.exe"
7231 RC="rc.exe"
7232 lflags="${lflags} -nologo -MACHINE:${MACHINE} "
7233 LINKBIN="link.exe"
7234 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
7235 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7236 # Avoid 'unresolved external symbol __security_cookie'
7237 # errors, c.f. http://support.microsoft.com/?id=894573
7238
7239 vars="bufferoverflowU.lib"
7240 for i in $vars; do
7241 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7242 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7243 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
7244 fi
7245 PKG_LIBS="$PKG_LIBS $i"
7246 done
7247
7248
7249 else
7250 RC="rc"
7251 lflags="${lflags} -nologo"
7252 LINKBIN="link"
7253 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7254 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7255 fi
7256 fi
7257
7258 if test "$GCC" = "yes"; then
7259 # mingw gcc mode
7260 if test -n "$ac_tool_prefix"; then
7261 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}windres; ac_word=$2
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 printf %s "checking for $ac_word... " >&6; }
7265 if test ${ac_cv_prog_RC+y}
7266 then :
7267 printf %s "(cached) " >&6
7268 else case e in #(
7269 e) if test -n "$RC"; then
7270 ac_cv_prog_RC="$RC" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275 IFS=$as_save_IFS
7276 case $as_dir in #(((
7277 '') as_dir=./ ;;
7278 */) ;;
7279 *) as_dir=$as_dir/ ;;
7280 esac
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7283 ac_cv_prog_RC="${ac_tool_prefix}windres"
7284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7285 break 2
7286 fi
7287 done
7288 done
7289 IFS=$as_save_IFS
7290
7291 fi ;;
7292 esac
7293 fi
7294 RC=$ac_cv_prog_RC
7295 if test -n "$RC"; then
7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
7297 printf "%s\n" "$RC" >&6; }
7298 else
7299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 printf "%s\n" "no" >&6; }
7301 fi
7302
7303
7304 fi
7305 if test -z "$ac_cv_prog_RC"; then
7306 ac_ct_RC=$RC
7307 # Extract the first word of "windres", so it can be a program name with args.
7308 set dummy windres; ac_word=$2
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 printf %s "checking for $ac_word... " >&6; }
7311 if test ${ac_cv_prog_ac_ct_RC+y}
7312 then :
7313 printf %s "(cached) " >&6
7314 else case e in #(
7315 e) if test -n "$ac_ct_RC"; then
7316 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7320 do
7321 IFS=$as_save_IFS
7322 case $as_dir in #(((
7323 '') as_dir=./ ;;
7324 */) ;;
7325 *) as_dir=$as_dir/ ;;
7326 esac
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_ac_ct_RC="windres"
7330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333 done
7334 done
7335 IFS=$as_save_IFS
7336
7337 fi ;;
7338 esac
7339 fi
7340 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7341 if test -n "$ac_ct_RC"; then
7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
7343 printf "%s\n" "$ac_ct_RC" >&6; }
7344 else
7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 printf "%s\n" "no" >&6; }
7347 fi
7348
7349 if test "x$ac_ct_RC" = x; then
7350 RC=""
7351 else
7352 case $cross_compiling:$ac_tool_warned in
7353 yes:)
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7355 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7356 ac_tool_warned=yes ;;
7357 esac
7358 RC=$ac_ct_RC
7359 fi
7360 else
7361 RC="$ac_cv_prog_RC"
7362 fi
7363
7364 CFLAGS_DEBUG="-g"
7365 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7366 SHLIB_LD='${CC} -shared'
7367 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7368 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7369 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7370
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
7372 printf %s "checking for cross-compile version of gcc... " >&6; }
7373 if test ${ac_cv_cross+y}
7374 then :
7375 printf %s "(cached) " >&6
7376 else case e in #(
7377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379
7380 #ifdef _WIN32
7381 #error cross-compiler
7382 #endif
7383
7384 int
7385 main (void)
7386 {
7387
7388 ;
7389 return 0;
7390 }
7391 _ACEOF
7392 if ac_fn_c_try_compile "$LINENO"
7393 then :
7394 ac_cv_cross=yes
7395 else case e in #(
7396 e) ac_cv_cross=no ;;
7397 esac
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7400 ;;
7401 esac
7402 fi
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
7404 printf "%s\n" "$ac_cv_cross" >&6; }
7405 if test "$ac_cv_cross" = "yes"; then
7406 case "$do64bit" in
7407 amd64|x64|yes)
7408 CC="x86_64-w64-mingw32-${CC}"
7409 LD="x86_64-w64-mingw32-ld"
7410 AR="x86_64-w64-mingw32-ar"
7411 RANLIB="x86_64-w64-mingw32-ranlib"
7412 RC="x86_64-w64-mingw32-windres"
7413 ;;
7414 arm64|aarch64)
7415 CC="aarch64-w64-mingw32-clang"
7416 LD="aarch64-w64-mingw32-ld"
7417 AR="aarch64-w64-mingw32-ar"
7418 RANLIB="aarch64-w64-mingw32-ranlib"
7419 RC="aarch64-w64-mingw32-windres"
7420 ;;
7421 *)
7422 CC="i686-w64-mingw32-${CC}"
7423 LD="i686-w64-mingw32-ld"
7424 AR="i686-w64-mingw32-ar"
7425 RANLIB="i686-w64-mingw32-ranlib"
7426 RC="i686-w64-mingw32-windres"
7427 ;;
7428 esac
7429 fi
7430
7431 else
7432 SHLIB_LD="${LINKBIN} -dll ${lflags}"
7433 # link -lib only works when -lib is the first arg
7434 STLIB_LD="${LINKBIN} -lib ${lflags}"
7435 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
7436 PATHTYPE=-w
7437 # For information on what debugtype is most useful, see:
7438 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
7439 # and also
7440 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
7441 # This essentially turns it all on.
7442 LDFLAGS_DEBUG="-debug -debugtype:cv"
7443 LDFLAGS_OPTIMIZE="-release"
7444 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7445 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7446 fi
7447
7448 SHLIB_SUFFIX=".dll"
7449 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7450
7451 TCL_LIB_VERSIONS_OK=nodots
7452 ;;
7453 AIX-*)
7454 if test "$GCC" != "yes"
7455 then :
7456
7457 # AIX requires the _r compiler when gcc isn't being used
7458 case "${CC}" in
7459 *_r|*_r\ *)
7460 # ok ...
7461 ;;
7462 *)
7463 # Make sure only first arg gets _r
7464 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
7465 ;;
7466 esac
7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
7468 printf "%s\n" "Using $CC for compiling with threads" >&6; }
7469
7470 fi
7471 LIBS="$LIBS -lc"
7472 SHLIB_CFLAGS=""
7473 SHLIB_SUFFIX=".so"
7474
7475 LD_LIBRARY_PATH_VAR="LIBPATH"
7476
7477 # Check to enable 64-bit flags for compiler/linker
7478 if test "$do64bit" = yes
7479 then :
7480
7481 if test "$GCC" = yes
7482 then :
7483
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7485 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7486
7487 else case e in #(
7488 e)
7489 do64bit_ok=yes
7490 CFLAGS="$CFLAGS -q64"
7491 LDFLAGS_ARCH="-q64"
7492 RANLIB="${RANLIB} -X64"
7493 AR="${AR} -X64"
7494 SHLIB_LD_FLAGS="-b64"
7495 ;;
7496 esac
7497 fi
7498
7499 fi
7500
7501 if test "`uname -m`" = ia64
7502 then :
7503
7504 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7505 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7506 if test "$GCC" = yes
7507 then :
7508
7509 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7510
7511 else case e in #(
7512 e)
7513 CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
7514 ;;
7515 esac
7516 fi
7517 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7518
7519 else case e in #(
7520 e)
7521 if test "$GCC" = yes
7522 then :
7523
7524 SHLIB_LD='${CC} -shared -Wl,-bexpall'
7525
7526 else case e in #(
7527 e)
7528 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
7529 LDFLAGS="$LDFLAGS -brtl"
7530 ;;
7531 esac
7532 fi
7533 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7534 CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
7535 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7536 ;;
7537 esac
7538 fi
7539 ;;
7540 BeOS*)
7541 SHLIB_CFLAGS="-fPIC"
7542 SHLIB_LD='${CC} -nostart'
7543 SHLIB_SUFFIX=".so"
7544
7545 #-----------------------------------------------------------
7546 # Check for inet_ntoa in -lbind, for BeOS (which also needs
7547 # -lsocket, even if the network functions are in -lnet which
7548 # is always linked to, for compatibility.
7549 #-----------------------------------------------------------
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
7551 printf %s "checking for inet_ntoa in -lbind... " >&6; }
7552 if test ${ac_cv_lib_bind_inet_ntoa+y}
7553 then :
7554 printf %s "(cached) " >&6
7555 else case e in #(
7556 e) ac_check_lib_save_LIBS=$LIBS
7557 LIBS="-lbind $LIBS"
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560
7561 /* Override any GCC internal prototype to avoid an error.
7562 Use char because int might match the return type of a GCC
7563 builtin and then its argument prototype would still apply.
7564 The 'extern "C"' is for builds by C++ compilers;
7565 although this is not generally supported in C code supporting it here
7566 has little cost and some practical benefit (sr 110532). */
7567 #ifdef __cplusplus
7568 extern "C"
7569 #endif
7570 char inet_ntoa (void);
7571 int
7572 main (void)
7573 {
7574 return inet_ntoa ();
7575 ;
7576 return 0;
7577 }
7578 _ACEOF
7579 if ac_fn_c_try_link "$LINENO"
7580 then :
7581 ac_cv_lib_bind_inet_ntoa=yes
7582 else case e in #(
7583 e) ac_cv_lib_bind_inet_ntoa=no ;;
7584 esac
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7587 conftest$ac_exeext conftest.$ac_ext
7588 LIBS=$ac_check_lib_save_LIBS ;;
7589 esac
7590 fi
7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
7592 printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
7593 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
7594 then :
7595 LIBS="$LIBS -lbind -lsocket"
7596 fi
7597
7598 ;;
7599 BSD/OS-2.1*|BSD/OS-3*)
7600 SHLIB_CFLAGS=""
7601 SHLIB_LD="shlicc -r"
7602 SHLIB_SUFFIX=".so"
7603 CC_SEARCH_FLAGS=""
7604 LD_SEARCH_FLAGS=""
7605 ;;
7606 BSD/OS-4.*)
7607 SHLIB_CFLAGS="-export-dynamic -fPIC"
7608 SHLIB_LD='${CC} -shared'
7609 SHLIB_SUFFIX=".so"
7610 LDFLAGS="$LDFLAGS -export-dynamic"
7611 CC_SEARCH_FLAGS=""
7612 LD_SEARCH_FLAGS=""
7613 ;;
7614 CYGWIN_*)
7615 SHLIB_CFLAGS=""
7616 SHLIB_LD='${CC} -shared'
7617 SHLIB_SUFFIX=".dll"
7618 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\[email protected]"
7619 EXEEXT=".exe"
7620 do64bit_ok=yes
7621 CC_SEARCH_FLAGS=""
7622 LD_SEARCH_FLAGS=""
7623 ;;
7624 dgux*)
7625 SHLIB_CFLAGS="-K PIC"
7626 SHLIB_LD='${CC} -G'
7627 SHLIB_LD_LIBS=""
7628 SHLIB_SUFFIX=".so"
7629 CC_SEARCH_FLAGS=""
7630 LD_SEARCH_FLAGS=""
7631 ;;
7632 Haiku*)
7633 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7634 SHLIB_CFLAGS="-fPIC"
7635 SHLIB_SUFFIX=".so"
7636 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
7638 printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
7639 if test ${ac_cv_lib_network_inet_ntoa+y}
7640 then :
7641 printf %s "(cached) " >&6
7642 else case e in #(
7643 e) ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-lnetwork $LIBS"
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647
7648 /* Override any GCC internal prototype to avoid an error.
7649 Use char because int might match the return type of a GCC
7650 builtin and then its argument prototype would still apply.
7651 The 'extern "C"' is for builds by C++ compilers;
7652 although this is not generally supported in C code supporting it here
7653 has little cost and some practical benefit (sr 110532). */
7654 #ifdef __cplusplus
7655 extern "C"
7656 #endif
7657 char inet_ntoa (void);
7658 int
7659 main (void)
7660 {
7661 return inet_ntoa ();
7662 ;
7663 return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_link "$LINENO"
7667 then :
7668 ac_cv_lib_network_inet_ntoa=yes
7669 else case e in #(
7670 e) ac_cv_lib_network_inet_ntoa=no ;;
7671 esac
7672 fi
7673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7674 conftest$ac_exeext conftest.$ac_ext
7675 LIBS=$ac_check_lib_save_LIBS ;;
7676 esac
7677 fi
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
7679 printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
7680 if test "x$ac_cv_lib_network_inet_ntoa" = xyes
7681 then :
7682 LIBS="$LIBS -lnetwork"
7683 fi
7684
7685 ;;
7686 HP-UX-*.11.*)
7687 # Use updated header definitions where possible
7688
7689 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
7690
7691 # TEA specific: Needed by Tcl, but not most extensions
7692 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
7693 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
7694
7695 if test "`uname -m`" = ia64
7696 then :
7697
7698 SHLIB_SUFFIX=".so"
7699
7700 else case e in #(
7701 e)
7702 SHLIB_SUFFIX=".sl"
7703 ;;
7704 esac
7705 fi
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7707 printf %s "checking for shl_load in -ldld... " >&6; }
7708 if test ${ac_cv_lib_dld_shl_load+y}
7709 then :
7710 printf %s "(cached) " >&6
7711 else case e in #(
7712 e) ac_check_lib_save_LIBS=$LIBS
7713 LIBS="-ldld $LIBS"
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716
7717 /* Override any GCC internal prototype to avoid an error.
7718 Use char because int might match the return type of a GCC
7719 builtin and then its argument prototype would still apply.
7720 The 'extern "C"' is for builds by C++ compilers;
7721 although this is not generally supported in C code supporting it here
7722 has little cost and some practical benefit (sr 110532). */
7723 #ifdef __cplusplus
7724 extern "C"
7725 #endif
7726 char shl_load (void);
7727 int
7728 main (void)
7729 {
7730 return shl_load ();
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_link "$LINENO"
7736 then :
7737 ac_cv_lib_dld_shl_load=yes
7738 else case e in #(
7739 e) ac_cv_lib_dld_shl_load=no ;;
7740 esac
7741 fi
7742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7743 conftest$ac_exeext conftest.$ac_ext
7744 LIBS=$ac_check_lib_save_LIBS ;;
7745 esac
7746 fi
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7748 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7749 if test "x$ac_cv_lib_dld_shl_load" = xyes
7750 then :
7751 tcl_ok=yes
7752 else case e in #(
7753 e) tcl_ok=no ;;
7754 esac
7755 fi
7756
7757 if test "$tcl_ok" = yes
7758 then :
7759
7760 SHLIB_CFLAGS="+z"
7761 SHLIB_LD="ld -b"
7762 LDFLAGS="$LDFLAGS -Wl,-E"
7763 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7764 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7765 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7766
7767 fi
7768 if test "$GCC" = yes
7769 then :
7770
7771 SHLIB_LD='${CC} -shared'
7772 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7773
7774 else case e in #(
7775 e)
7776 CFLAGS="$CFLAGS -z"
7777 ;;
7778 esac
7779 fi
7780
7781 # Check to enable 64-bit flags for compiler/linker
7782 if test "$do64bit" = "yes"
7783 then :
7784
7785 if test "$GCC" = yes
7786 then :
7787
7788 case `${CC} -dumpmachine` in
7789 hppa64*)
7790 # 64-bit gcc in use. Fix flags for GNU ld.
7791 do64bit_ok=yes
7792 SHLIB_LD='${CC} -shared'
7793 if test $doRpath = yes
7794 then :
7795
7796 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7797 fi
7798 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7799 ;;
7800 *)
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7802 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7803 ;;
7804 esac
7805
7806 else case e in #(
7807 e)
7808 do64bit_ok=yes
7809 CFLAGS="$CFLAGS +DD64"
7810 LDFLAGS_ARCH="+DD64"
7811 ;;
7812 esac
7813 fi
7814
7815 fi ;;
7816 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
7817 SHLIB_SUFFIX=".sl"
7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7819 printf %s "checking for shl_load in -ldld... " >&6; }
7820 if test ${ac_cv_lib_dld_shl_load+y}
7821 then :
7822 printf %s "(cached) " >&6
7823 else case e in #(
7824 e) ac_check_lib_save_LIBS=$LIBS
7825 LIBS="-ldld $LIBS"
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828
7829 /* Override any GCC internal prototype to avoid an error.
7830 Use char because int might match the return type of a GCC
7831 builtin and then its argument prototype would still apply.
7832 The 'extern "C"' is for builds by C++ compilers;
7833 although this is not generally supported in C code supporting it here
7834 has little cost and some practical benefit (sr 110532). */
7835 #ifdef __cplusplus
7836 extern "C"
7837 #endif
7838 char shl_load (void);
7839 int
7840 main (void)
7841 {
7842 return shl_load ();
7843 ;
7844 return 0;
7845 }
7846 _ACEOF
7847 if ac_fn_c_try_link "$LINENO"
7848 then :
7849 ac_cv_lib_dld_shl_load=yes
7850 else case e in #(
7851 e) ac_cv_lib_dld_shl_load=no ;;
7852 esac
7853 fi
7854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7855 conftest$ac_exeext conftest.$ac_ext
7856 LIBS=$ac_check_lib_save_LIBS ;;
7857 esac
7858 fi
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7860 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7861 if test "x$ac_cv_lib_dld_shl_load" = xyes
7862 then :
7863 tcl_ok=yes
7864 else case e in #(
7865 e) tcl_ok=no ;;
7866 esac
7867 fi
7868
7869 if test "$tcl_ok" = yes
7870 then :
7871
7872 SHLIB_CFLAGS="+z"
7873 SHLIB_LD="ld -b"
7874 SHLIB_LD_LIBS=""
7875 LDFLAGS="$LDFLAGS -Wl,-E"
7876 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7877 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7878 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7879
7880 fi ;;
7881 IRIX-5.*)
7882 SHLIB_CFLAGS=""
7883 SHLIB_LD="ld -shared -rdata_shared"
7884 SHLIB_SUFFIX=".so"
7885 case " $LIBOBJS " in
7886 *" mkstemp.$ac_objext "* ) ;;
7887 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
7888 ;;
7889 esac
7890
7891 if test $doRpath = yes
7892 then :
7893
7894 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7895 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7896 fi
7897 ;;
7898 IRIX-6.*)
7899 SHLIB_CFLAGS=""
7900 SHLIB_LD="ld -n32 -shared -rdata_shared"
7901 SHLIB_SUFFIX=".so"
7902 if test $doRpath = yes
7903 then :
7904
7905 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7906 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7907 fi
7908 if test "$GCC" = yes
7909 then :
7910
7911 CFLAGS="$CFLAGS -mabi=n32"
7912 LDFLAGS="$LDFLAGS -mabi=n32"
7913
7914 else case e in #(
7915 e)
7916 case $system in
7917 IRIX-6.3)
7918 # Use to build 6.2 compatible binaries on 6.3.
7919 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7920 ;;
7921 *)
7922 CFLAGS="$CFLAGS -n32"
7923 ;;
7924 esac
7925 LDFLAGS="$LDFLAGS -n32"
7926 ;;
7927 esac
7928 fi
7929 ;;
7930 IRIX64-6.*)
7931 SHLIB_CFLAGS=""
7932 SHLIB_LD="ld -n32 -shared -rdata_shared"
7933 SHLIB_SUFFIX=".so"
7934 if test $doRpath = yes
7935 then :
7936
7937 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7938 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7939 fi
7940
7941 # Check to enable 64-bit flags for compiler/linker
7942
7943 if test "$do64bit" = yes
7944 then :
7945
7946 if test "$GCC" = yes
7947 then :
7948
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
7950 printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7951
7952 else case e in #(
7953 e)
7954 do64bit_ok=yes
7955 SHLIB_LD="ld -64 -shared -rdata_shared"
7956 CFLAGS="$CFLAGS -64"
7957 LDFLAGS_ARCH="-64"
7958 ;;
7959 esac
7960 fi
7961
7962 fi
7963 ;;
7964 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
7965 SHLIB_CFLAGS="-fPIC"
7966 SHLIB_SUFFIX=".so"
7967
7968 # TEA specific:
7969 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7970
7971 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7972 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
7973 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7974
7975 case $system in
7976 DragonFly-*|FreeBSD-*)
7977 if test "${TCL_THREADS}" = "1"
7978 then :
7979
7980 # The -pthread needs to go in the LDFLAGS, not LIBS
7981 LIBS=`echo $LIBS | sed s/-pthread//`
7982 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7983 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
7984 fi
7985 ;;
7986 esac
7987
7988 if test $doRpath = yes
7989 then :
7990
7991 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7992 fi
7993 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7994 if test "`uname -m`" = "alpha"
7995 then :
7996 CFLAGS="$CFLAGS -mieee"
7997 fi
7998 if test $do64bit = yes
7999 then :
8000
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
8002 printf %s "checking if compiler accepts -m64 flag... " >&6; }
8003 if test ${tcl_cv_cc_m64+y}
8004 then :
8005 printf %s "(cached) " >&6
8006 else case e in #(
8007 e)
8008 hold_cflags=$CFLAGS
8009 CFLAGS="$CFLAGS -m64"
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012
8013 int
8014 main (void)
8015 {
8016
8017 ;
8018 return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"
8022 then :
8023 tcl_cv_cc_m64=yes
8024 else case e in #(
8025 e) tcl_cv_cc_m64=no ;;
8026 esac
8027 fi
8028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8029 conftest$ac_exeext conftest.$ac_ext
8030 CFLAGS=$hold_cflags ;;
8031 esac
8032 fi
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
8034 printf "%s\n" "$tcl_cv_cc_m64" >&6; }
8035 if test $tcl_cv_cc_m64 = yes
8036 then :
8037
8038 CFLAGS="$CFLAGS -m64"
8039 do64bit_ok=yes
8040
8041 fi
8042
8043 fi
8044
8045 # The combo of gcc + glibc has a bug related to inlining of
8046 # functions like strtod(). The -fno-builtin flag should address
8047 # this problem but it does not work. The -fno-inline flag is kind
8048 # of overkill but it works. Disable inlining only when one of the
8049 # files in compat/*.c is being linked in.
8050
8051 if test x"${USE_COMPAT}" != x
8052 then :
8053 CFLAGS="$CFLAGS -fno-inline"
8054 fi
8055 ;;
8056 Lynx*)
8057 SHLIB_CFLAGS="-fPIC"
8058 SHLIB_SUFFIX=".so"
8059 CFLAGS_OPTIMIZE=-02
8060 SHLIB_LD='${CC} -shared'
8061 LD_FLAGS="-Wl,--export-dynamic"
8062 if test $doRpath = yes
8063 then :
8064
8065 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8066 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8067 fi
8068 ;;
8069 OpenBSD-*)
8070 arch=`arch -s`
8071 case "$arch" in
8072 alpha|sparc64)
8073 SHLIB_CFLAGS="-fPIC"
8074 ;;
8075 *)
8076 SHLIB_CFLAGS="-fpic"
8077 ;;
8078 esac
8079 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
8080 SHLIB_SUFFIX=".so"
8081 if test $doRpath = yes
8082 then :
8083
8084 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8085 fi
8086 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8087 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
8088 LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
8089 CFLAGS_OPTIMIZE="-O2"
8090 # On OpenBSD: Compile with -pthread
8091 # Don't link with -lpthread
8092 LIBS=`echo $LIBS | sed s/-lpthread//`
8093 CFLAGS="$CFLAGS -pthread"
8094 # OpenBSD doesn't do version numbers with dots.
8095 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
8096 TCL_LIB_VERSIONS_OK=nodots
8097 ;;
8098 NetBSD-*)
8099 # NetBSD has ELF and can use 'cc -shared' to build shared libs
8100 SHLIB_CFLAGS="-fPIC"
8101 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
8102 SHLIB_SUFFIX=".so"
8103 LDFLAGS="$LDFLAGS -export-dynamic"
8104 if test $doRpath = yes
8105 then :
8106
8107 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8108 fi
8109 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8110 # The -pthread needs to go in the CFLAGS, not LIBS
8111 LIBS=`echo $LIBS | sed s/-pthread//`
8112 CFLAGS="$CFLAGS -pthread"
8113 LDFLAGS="$LDFLAGS -pthread"
8114 ;;
8115 Darwin-*)
8116 CFLAGS_OPTIMIZE="-Os"
8117 SHLIB_CFLAGS="-fno-common"
8118 # To avoid discrepancies between what headers configure sees during
8119 # preprocessing tests and compiling tests, move any -isysroot and
8120 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
8121 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
8122 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8123 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
8124 CFLAGS="`echo " ${CFLAGS}" | \
8125 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
8126 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
8127 if test $do64bit = yes
8128 then :
8129
8130 case `arch` in
8131 ppc)
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
8133 printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
8134 if test ${tcl_cv_cc_arch_ppc64+y}
8135 then :
8136 printf %s "(cached) " >&6
8137 else case e in #(
8138 e)
8139 hold_cflags=$CFLAGS
8140 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8143
8144 int
8145 main (void)
8146 {
8147
8148 ;
8149 return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"
8153 then :
8154 tcl_cv_cc_arch_ppc64=yes
8155 else case e in #(
8156 e) tcl_cv_cc_arch_ppc64=no ;;
8157 esac
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8160 conftest$ac_exeext conftest.$ac_ext
8161 CFLAGS=$hold_cflags ;;
8162 esac
8163 fi
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
8165 printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
8166 if test $tcl_cv_cc_arch_ppc64 = yes
8167 then :
8168
8169 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8170 do64bit_ok=yes
8171
8172 fi;;
8173 i386)
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
8175 printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
8176 if test ${tcl_cv_cc_arch_x86_64+y}
8177 then :
8178 printf %s "(cached) " >&6
8179 else case e in #(
8180 e)
8181 hold_cflags=$CFLAGS
8182 CFLAGS="$CFLAGS -arch x86_64"
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185
8186 int
8187 main (void)
8188 {
8189
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_link "$LINENO"
8195 then :
8196 tcl_cv_cc_arch_x86_64=yes
8197 else case e in #(
8198 e) tcl_cv_cc_arch_x86_64=no ;;
8199 esac
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8202 conftest$ac_exeext conftest.$ac_ext
8203 CFLAGS=$hold_cflags ;;
8204 esac
8205 fi
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
8207 printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
8208 if test $tcl_cv_cc_arch_x86_64 = yes
8209 then :
8210
8211 CFLAGS="$CFLAGS -arch x86_64"
8212 do64bit_ok=yes
8213
8214 fi;;
8215 *)
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
8217 printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
8218 esac
8219
8220 else case e in #(
8221 e)
8222 # Check for combined 32-bit and 64-bit fat build
8223 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
8224 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
8225 then :
8226
8227 fat_32_64=yes
8228 fi
8229 ;;
8230 esac
8231 fi
8232 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8233 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
8234 # TEA specific: link shlib with current and compatibility version flags
8235 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
8236 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
8237 SHLIB_SUFFIX=".dylib"
8238 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
8240 printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
8241 if test ${tcl_cv_ld_search_paths_first+y}
8242 then :
8243 printf %s "(cached) " >&6
8244 else case e in #(
8245 e)
8246 hold_ldflags=$LDFLAGS
8247 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250
8251 int
8252 main (void)
8253 {
8254 int i;
8255 ;
8256 return 0;
8257 }
8258 _ACEOF
8259 if ac_fn_c_try_link "$LINENO"
8260 then :
8261 tcl_cv_ld_search_paths_first=yes
8262 else case e in #(
8263 e) tcl_cv_ld_search_paths_first=no ;;
8264 esac
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8267 conftest$ac_exeext conftest.$ac_ext
8268 LDFLAGS=$hold_ldflags ;;
8269 esac
8270 fi
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
8272 printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
8273 if test $tcl_cv_ld_search_paths_first = yes
8274 then :
8275
8276 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8277
8278 fi
8279 if test "$tcl_cv_cc_visibility_hidden" != yes
8280 then :
8281
8282
8283 printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
8284
8285 tcl_cv_cc_visibility_hidden=yes
8286
8287 fi
8288 CC_SEARCH_FLAGS=""
8289 LD_SEARCH_FLAGS=""
8290 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8291 # TEA specific: for combined 32 & 64 bit fat builds of Tk
8292 # extensions, verify that 64-bit build is possible.
8293 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
8294 then :
8295
8296 if test "${TEA_WINDOWINGSYSTEM}" = x11
8297 then :
8298
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
8300 printf %s "checking for 64-bit X11... " >&6; }
8301 if test ${tcl_cv_lib_x11_64+y}
8302 then :
8303 printf %s "(cached) " >&6
8304 else case e in #(
8305 e)
8306 for v in CFLAGS CPPFLAGS LDFLAGS; do
8307 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8308 done
8309 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
8310 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8313 #include <X11/Xlib.h>
8314 int
8315 main (void)
8316 {
8317 XrmInitialize();
8318 ;
8319 return 0;
8320 }
8321 _ACEOF
8322 if ac_fn_c_try_link "$LINENO"
8323 then :
8324 tcl_cv_lib_x11_64=yes
8325 else case e in #(
8326 e) tcl_cv_lib_x11_64=no ;;
8327 esac
8328 fi
8329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8330 conftest$ac_exeext conftest.$ac_ext
8331 for v in CFLAGS CPPFLAGS LDFLAGS; do
8332 eval $v'="$hold_'$v'"'
8333 done ;;
8334 esac
8335 fi
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
8337 printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
8338
8339 fi
8340 if test "${TEA_WINDOWINGSYSTEM}" = aqua
8341 then :
8342
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
8344 printf %s "checking for 64-bit Tk... " >&6; }
8345 if test ${tcl_cv_lib_tk_64+y}
8346 then :
8347 printf %s "(cached) " >&6
8348 else case e in #(
8349 e)
8350 for v in CFLAGS CPPFLAGS LDFLAGS; do
8351 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8352 done
8353 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
8354 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 #include <tk.h>
8358 int
8359 main (void)
8360 {
8361 Tk_InitStubs(NULL, "", 0);
8362 ;
8363 return 0;
8364 }
8365 _ACEOF
8366 if ac_fn_c_try_link "$LINENO"
8367 then :
8368 tcl_cv_lib_tk_64=yes
8369 else case e in #(
8370 e) tcl_cv_lib_tk_64=no ;;
8371 esac
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8374 conftest$ac_exeext conftest.$ac_ext
8375 for v in CFLAGS CPPFLAGS LDFLAGS; do
8376 eval $v'="$hold_'$v'"'
8377 done ;;
8378 esac
8379 fi
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
8381 printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
8382
8383 fi
8384 # remove 64-bit arch flags from CFLAGS et al. if configuration
8385 # does not support 64-bit.
8386 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
8387 then :
8388
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
8390 printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
8391 for v in CFLAGS CPPFLAGS LDFLAGS; do
8392 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
8393 done
8394 fi
8395
8396 fi
8397 ;;
8398 OS/390-*)
8399 CFLAGS_OPTIMIZE="" # Optimizer is buggy
8400
8401 printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
8402
8403 ;;
8404 OSF1-V*)
8405 # Digital OSF/1
8406 SHLIB_CFLAGS=""
8407 if test "$SHARED_BUILD" = 1
8408 then :
8409
8410 SHLIB_LD='ld -shared -expect_unresolved "*"'
8411
8412 else case e in #(
8413 e)
8414 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
8415 ;;
8416 esac
8417 fi
8418 SHLIB_SUFFIX=".so"
8419 if test $doRpath = yes
8420 then :
8421
8422 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8423 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8424 fi
8425 if test "$GCC" = yes
8426 then :
8427 CFLAGS="$CFLAGS -mieee"
8428 else case e in #(
8429 e)
8430 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" ;;
8431 esac
8432 fi
8433 # see pthread_intro(3) for pthread support on osf1, k.furukawa
8434 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
8435 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
8436 LIBS=`echo $LIBS | sed s/-lpthreads//`
8437 if test "$GCC" = yes
8438 then :
8439
8440 LIBS="$LIBS -lpthread -lmach -lexc"
8441
8442 else case e in #(
8443 e)
8444 CFLAGS="$CFLAGS -pthread"
8445 LDFLAGS="$LDFLAGS -pthread"
8446 ;;
8447 esac
8448 fi
8449 ;;
8450 QNX-6*)
8451 # QNX RTP
8452 # This may work for all QNX, but it was only reported for v6.
8453 SHLIB_CFLAGS="-fPIC"
8454 SHLIB_LD="ld -Bshareable -x"
8455 SHLIB_LD_LIBS=""
8456 SHLIB_SUFFIX=".so"
8457 CC_SEARCH_FLAGS=""
8458 LD_SEARCH_FLAGS=""
8459 ;;
8460 SCO_SV-3.2*)
8461 if test "$GCC" = yes
8462 then :
8463
8464 SHLIB_CFLAGS="-fPIC -melf"
8465 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
8466
8467 else case e in #(
8468 e)
8469 SHLIB_CFLAGS="-Kpic -belf"
8470 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
8471 ;;
8472 esac
8473 fi
8474 SHLIB_LD="ld -G"
8475 SHLIB_LD_LIBS=""
8476 SHLIB_SUFFIX=".so"
8477 CC_SEARCH_FLAGS=""
8478 LD_SEARCH_FLAGS=""
8479 ;;
8480 SunOS-5.[0-6])
8481 # Careful to not let 5.10+ fall into this case
8482
8483 # Note: If _REENTRANT isn't defined, then Solaris
8484 # won't define thread-safe library routines.
8485
8486
8487 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8488
8489
8490 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8491
8492
8493 SHLIB_CFLAGS="-KPIC"
8494 SHLIB_SUFFIX=".so"
8495 if test "$GCC" = yes
8496 then :
8497
8498 SHLIB_LD='${CC} -shared'
8499 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8500 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8501
8502 else case e in #(
8503 e)
8504 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8505 CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8506 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8507 ;;
8508 esac
8509 fi
8510 ;;
8511 SunOS-5*)
8512 # Note: If _REENTRANT isn't defined, then Solaris
8513 # won't define thread-safe library routines.
8514
8515
8516 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8517
8518
8519 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8520
8521
8522 SHLIB_CFLAGS="-KPIC"
8523
8524 # Check to enable 64-bit flags for compiler/linker
8525 if test "$do64bit" = yes
8526 then :
8527
8528 arch=`isainfo`
8529 if test "$arch" = "sparcv9 sparc"
8530 then :
8531
8532 if test "$GCC" = yes
8533 then :
8534
8535 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
8536 then :
8537
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
8539 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
8540
8541 else case e in #(
8542 e)
8543 do64bit_ok=yes
8544 CFLAGS="$CFLAGS -m64 -mcpu=v9"
8545 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
8546 SHLIB_CFLAGS="-fPIC"
8547 ;;
8548 esac
8549 fi
8550
8551 else case e in #(
8552 e)
8553 do64bit_ok=yes
8554 if test "$do64bitVIS" = yes
8555 then :
8556
8557 CFLAGS="$CFLAGS -xarch=v9a"
8558 LDFLAGS_ARCH="-xarch=v9a"
8559
8560 else case e in #(
8561 e)
8562 CFLAGS="$CFLAGS -xarch=v9"
8563 LDFLAGS_ARCH="-xarch=v9"
8564 ;;
8565 esac
8566 fi
8567 # Solaris 64 uses this as well
8568 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
8569 ;;
8570 esac
8571 fi
8572
8573 else case e in #(
8574 e) if test "$arch" = "amd64 i386"
8575 then :
8576
8577 if test "$GCC" = yes
8578 then :
8579
8580 case $system in
8581 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8582 do64bit_ok=yes
8583 CFLAGS="$CFLAGS -m64"
8584 LDFLAGS="$LDFLAGS -m64";;
8585 *)
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
8587 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
8588 esac
8589
8590 else case e in #(
8591 e)
8592 do64bit_ok=yes
8593 case $system in
8594 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8595 CFLAGS="$CFLAGS -m64"
8596 LDFLAGS="$LDFLAGS -m64";;
8597 *)
8598 CFLAGS="$CFLAGS -xarch=amd64"
8599 LDFLAGS="$LDFLAGS -xarch=amd64";;
8600 esac
8601 ;;
8602 esac
8603 fi
8604
8605 else case e in #(
8606 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
8607 printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} ;;
8608 esac
8609 fi ;;
8610 esac
8611 fi
8612
8613 fi
8614
8615 SHLIB_SUFFIX=".so"
8616 if test "$GCC" = yes
8617 then :
8618
8619 SHLIB_LD='${CC} -shared'
8620 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8621 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8622 if test "$do64bit_ok" = yes
8623 then :
8624
8625 if test "$arch" = "sparcv9 sparc"
8626 then :
8627
8628 # We need to specify -static-libgcc or we need to
8629 # add the path to the sparv9 libgcc.
8630 # JH: static-libgcc is necessary for core Tcl, but may
8631 # not be necessary for extensions.
8632 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
8633 # for finding sparcv9 libgcc, get the regular libgcc
8634 # path, remove so name and append 'sparcv9'
8635 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
8636 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
8637
8638 else case e in #(
8639 e) if test "$arch" = "amd64 i386"
8640 then :
8641
8642 # JH: static-libgcc is necessary for core Tcl, but may
8643 # not be necessary for extensions.
8644 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
8645
8646 fi ;;
8647 esac
8648 fi
8649
8650 fi
8651
8652 else case e in #(
8653 e)
8654 case $system in
8655 SunOS-5.[1-9][0-9]*)
8656 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8657 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
8658 *)
8659 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
8660 esac
8661 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8662 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8663 ;;
8664 esac
8665 fi
8666 ;;
8667 UNIX_SV* | UnixWare-5*)
8668 SHLIB_CFLAGS="-KPIC"
8669 SHLIB_LD='${CC} -G'
8670 SHLIB_LD_LIBS=""
8671 SHLIB_SUFFIX=".so"
8672 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
8673 # that don't grok the -Bexport option. Test that it does.
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
8675 printf %s "checking for ld accepts -Bexport flag... " >&6; }
8676 if test ${tcl_cv_ld_Bexport+y}
8677 then :
8678 printf %s "(cached) " >&6
8679 else case e in #(
8680 e)
8681 hold_ldflags=$LDFLAGS
8682 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685
8686 int
8687 main (void)
8688 {
8689 int i;
8690 ;
8691 return 0;
8692 }
8693 _ACEOF
8694 if ac_fn_c_try_link "$LINENO"
8695 then :
8696 tcl_cv_ld_Bexport=yes
8697 else case e in #(
8698 e) tcl_cv_ld_Bexport=no ;;
8699 esac
8700 fi
8701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8702 conftest$ac_exeext conftest.$ac_ext
8703 LDFLAGS=$hold_ldflags ;;
8704 esac
8705 fi
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
8707 printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
8708 if test $tcl_cv_ld_Bexport = yes
8709 then :
8710
8711 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8712
8713 fi
8714 CC_SEARCH_FLAGS=""
8715 LD_SEARCH_FLAGS=""
8716 ;;
8717 esac
8718
8719 if test "$do64bit" = yes -a "$do64bit_ok" = no
8720 then :
8721
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
8723 printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
8724
8725 fi
8726
8727
8728
8729 # Add in the arch flags late to ensure it wasn't removed.
8730 # Not necessary in TEA, but this is aligned with core
8731 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
8732
8733 # If we're running gcc, then change the C flags for compiling shared
8734 # libraries to the right flags for gcc, instead of those for the
8735 # standard manufacturer compiler.
8736
8737 if test "$GCC" = yes
8738 then :
8739
8740 case $system in
8741 AIX-*) ;;
8742 BSD/OS*) ;;
8743 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
8744 IRIX*) ;;
8745 NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
8746 Darwin-*) ;;
8747 SCO_SV-3.2*) ;;
8748 windows) ;;
8749 *) SHLIB_CFLAGS="-fPIC" ;;
8750 esac
8751 fi
8752
8753 if test "$tcl_cv_cc_visibility_hidden" != yes
8754 then :
8755
8756
8757 printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
8758
8759
8760 fi
8761
8762 if test "$SHARED_LIB_SUFFIX" = ""
8763 then :
8764
8765 # TEA specific: use PACKAGE_VERSION instead of VERSION
8766 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
8767 fi
8768 if test "$UNSHARED_LIB_SUFFIX" = ""
8769 then :
8770
8771 # TEA specific: use PACKAGE_VERSION instead of VERSION
8772 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
8773 fi
8774
8775 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
8777 printf %s "checking for SEH support in compiler... " >&6; }
8778 if test ${tcl_cv_seh+y}
8779 then :
8780 printf %s "(cached) " >&6
8781 else case e in #(
8782 e) if test "$cross_compiling" = yes
8783 then :
8784 tcl_cv_seh=no
8785 else case e in #(
8786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8788
8789 #define WIN32_LEAN_AND_MEAN
8790 #include <windows.h>
8791 #undef WIN32_LEAN_AND_MEAN
8792
8793 int main(int argc, char** argv) {
8794 int a, b = 0;
8795 __try {
8796 a = 666 / b;
8797 }
8798 __except (EXCEPTION_EXECUTE_HANDLER) {
8799 return 0;
8800 }
8801 return 1;
8802 }
8803
8804 _ACEOF
8805 if ac_fn_c_try_run "$LINENO"
8806 then :
8807 tcl_cv_seh=yes
8808 else case e in #(
8809 e) tcl_cv_seh=no ;;
8810 esac
8811 fi
8812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8813 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8814 esac
8815 fi
8816
8817 ;;
8818 esac
8819 fi
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
8821 printf "%s\n" "$tcl_cv_seh" >&6; }
8822 if test "$tcl_cv_seh" = "no" ; then
8823
8824 printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
8825
8826 fi
8827
8828 #
8829 # Check to see if the excpt.h include file provided contains the
8830 # definition for EXCEPTION_DISPOSITION; if not, which is the case
8831 # with Cygwin's version as of 2002-04-10, define it to be int,
8832 # sufficient for getting the current code to work.
8833 #
8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
8835 printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
8836 if test ${tcl_cv_eh_disposition+y}
8837 then :
8838 printf %s "(cached) " >&6
8839 else case e in #(
8840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842
8843 # define WIN32_LEAN_AND_MEAN
8844 # include <windows.h>
8845 # undef WIN32_LEAN_AND_MEAN
8846
8847 int
8848 main (void)
8849 {
8850
8851 EXCEPTION_DISPOSITION x;
8852
8853 ;
8854 return 0;
8855 }
8856 _ACEOF
8857 if ac_fn_c_try_compile "$LINENO"
8858 then :
8859 tcl_cv_eh_disposition=yes
8860 else case e in #(
8861 e) tcl_cv_eh_disposition=no ;;
8862 esac
8863 fi
8864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8865 ;;
8866 esac
8867 fi
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
8869 printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
8870 if test "$tcl_cv_eh_disposition" = "no" ; then
8871
8872 printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
8873
8874 fi
8875
8876 # Check to see if winnt.h defines CHAR, SHORT, and LONG
8877 # even if VOID has already been #defined. The win32api
8878 # used by mingw and cygwin is known to do this.
8879
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
8881 printf %s "checking for winnt.h that ignores VOID define... " >&6; }
8882 if test ${tcl_cv_winnt_ignore_void+y}
8883 then :
8884 printf %s "(cached) " >&6
8885 else case e in #(
8886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888
8889 #define VOID void
8890 #define WIN32_LEAN_AND_MEAN
8891 #include <windows.h>
8892 #undef WIN32_LEAN_AND_MEAN
8893
8894 int
8895 main (void)
8896 {
8897
8898 CHAR c;
8899 SHORT s;
8900 LONG l;
8901
8902 ;
8903 return 0;
8904 }
8905 _ACEOF
8906 if ac_fn_c_try_compile "$LINENO"
8907 then :
8908 tcl_cv_winnt_ignore_void=yes
8909 else case e in #(
8910 e) tcl_cv_winnt_ignore_void=no ;;
8911 esac
8912 fi
8913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8914 ;;
8915 esac
8916 fi
8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
8918 printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
8919 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
8920
8921 printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
8922
8923 fi
8924 fi
8925
8926 # See if the compiler supports casting to a union type.
8927 # This is used to stop gcc from printing a compiler
8928 # warning when initializing a union member.
8929
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
8931 printf %s "checking for cast to union support... " >&6; }
8932 if test ${tcl_cv_cast_to_union+y}
8933 then :
8934 printf %s "(cached) " >&6
8935 else case e in #(
8936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938
8939 int
8940 main (void)
8941 {
8942
8943 union foo { int i; double d; };
8944 union foo f = (union foo) (int) 0;
8945
8946 ;
8947 return 0;
8948 }
8949 _ACEOF
8950 if ac_fn_c_try_compile "$LINENO"
8951 then :
8952 tcl_cv_cast_to_union=yes
8953 else case e in #(
8954 e) tcl_cv_cast_to_union=no ;;
8955 esac
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8958 ;;
8959 esac
8960 fi
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
8962 printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
8963 if test "$tcl_cv_cast_to_union" = "yes"; then
8964
8965 printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
8966
8967 fi
8968
8969 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
8970 if test "x$ac_cv_header_stdbool_h" = xyes
8971 then :
8972
8973 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
8974
8975 fi
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992 # These must be called after we do the basic CFLAGS checks and
8993 # verify any possible 64-bit or similar switches are necessary
8994
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
8996 printf %s "checking for required early compiler flags... " >&6; }
8997 tcl_flags=""
8998
8999 if test ${tcl_cv_flag__isoc99_source+y}
9000 then :
9001 printf %s "(cached) " >&6
9002 else case e in #(
9003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 #include <stdlib.h>
9006 int
9007 main (void)
9008 {
9009 char *p = (char *)strtoll; char *q = (char *)strtoull;
9010 ;
9011 return 0;
9012 }
9013 _ACEOF
9014 if ac_fn_c_try_compile "$LINENO"
9015 then :
9016 tcl_cv_flag__isoc99_source=no
9017 else case e in #(
9018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020 #define _ISOC99_SOURCE 1
9021 #include <stdlib.h>
9022 int
9023 main (void)
9024 {
9025 char *p = (char *)strtoll; char *q = (char *)strtoull;
9026 ;
9027 return 0;
9028 }
9029 _ACEOF
9030 if ac_fn_c_try_compile "$LINENO"
9031 then :
9032 tcl_cv_flag__isoc99_source=yes
9033 else case e in #(
9034 e) tcl_cv_flag__isoc99_source=no ;;
9035 esac
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9038 esac
9039 fi
9040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9041 esac
9042 fi
9043
9044 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
9045
9046 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
9047
9048 tcl_flags="$tcl_flags _ISOC99_SOURCE"
9049 fi
9050
9051 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
9052
9053 if test ${tcl_cv_flag__file_offset_bits+y}
9054 then :
9055 printf %s "(cached) " >&6
9056 else case e in #(
9057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059 #include <sys/stat.h>
9060 int
9061 main (void)
9062 {
9063 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
9064 ;
9065 return 0;
9066 }
9067 _ACEOF
9068 if ac_fn_c_try_compile "$LINENO"
9069 then :
9070 tcl_cv_flag__file_offset_bits=no
9071 else case e in #(
9072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9074 #define _FILE_OFFSET_BITS 64
9075 #include <sys/stat.h>
9076 int
9077 main (void)
9078 {
9079 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
9080 ;
9081 return 0;
9082 }
9083 _ACEOF
9084 if ac_fn_c_try_compile "$LINENO"
9085 then :
9086 tcl_cv_flag__file_offset_bits=yes
9087 else case e in #(
9088 e) tcl_cv_flag__file_offset_bits=no ;;
9089 esac
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9092 esac
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9095 esac
9096 fi
9097
9098 if test "x${tcl_cv_flag__file_offset_bits}" = "xyes" ; then
9099
9100 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9101
9102 tcl_flags="$tcl_flags _FILE_OFFSET_BITS"
9103 fi
9104
9105 fi
9106 if test "x${tcl_flags}" = "x" ; then
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9108 printf "%s\n" "none" >&6; }
9109 else
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
9111 printf "%s\n" "${tcl_flags}" >&6; }
9112 fi
9113
9114
9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
9116 printf %s "checking for 64-bit integer type... " >&6; }
9117 if test ${tcl_cv_type_64bit+y}
9118 then :
9119 printf %s "(cached) " >&6
9120 else case e in #(
9121 e)
9122 tcl_cv_type_64bit=none
9123 # See if the compiler knows natively about __int64
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126
9127 int
9128 main (void)
9129 {
9130 __int64 value = (__int64) 0;
9131 ;
9132 return 0;
9133 }
9134 _ACEOF
9135 if ac_fn_c_try_compile "$LINENO"
9136 then :
9137 tcl_type_64bit=__int64
9138 else case e in #(
9139 e) tcl_type_64bit="long long" ;;
9140 esac
9141 fi
9142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9143 # See if we could use long anyway Note that we substitute in the
9144 # type that is our current guess for a 64-bit type inside this check
9145 # program, so it should be modified only carefully...
9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148
9149 int
9150 main (void)
9151 {
9152 switch (0) {
9153 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9154 }
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_compile "$LINENO"
9160 then :
9161 tcl_cv_type_64bit=${tcl_type_64bit}
9162 fi
9163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9164 esac
9165 fi
9166
9167 if test "${tcl_cv_type_64bit}" = none ; then
9168
9169 printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
9170
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9172 printf "%s\n" "yes" >&6; }
9173 elif test "${tcl_cv_type_64bit}" = "__int64" \
9174 -a "${TEA_PLATFORM}" = "windows" ; then
9175 # TEA specific: We actually want to use the default tcl.h checks in
9176 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
9178 printf "%s\n" "using Tcl header defaults" >&6; }
9179 else
9180
9181 printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
9182
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
9184 printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
9185
9186 # Now check for auxiliary declarations
9187 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t" >&5
9189 printf %s "checking for 64-bit time_t... " >&6; }
9190 if test ${tcl_cv_time_t_64+y}
9191 then :
9192 printf %s "(cached) " >&6
9193 else case e in #(
9194 e)
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include <sys/types.h>
9198 int
9199 main (void)
9200 {
9201 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
9202 ;
9203 return 0;
9204 }
9205 _ACEOF
9206 if ac_fn_c_try_compile "$LINENO"
9207 then :
9208 tcl_cv_time_t_64=yes
9209 else case e in #(
9210 e) tcl_cv_time_t_64=no ;;
9211 esac
9212 fi
9213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9214 esac
9215 fi
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_time_t_64" >&5
9217 printf "%s\n" "$tcl_cv_time_t_64" >&6; }
9218 if test "x${tcl_cv_time_t_64}" = "xno" ; then
9219 # Note that _TIME_BITS=64 requires _FILE_OFFSET_BITS=64
9220 # which SC_TCL_EARLY_FLAGS has defined if necessary.
9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _TIME_BITS=64 enables 64-bit time_t" >&5
9222 printf %s "checking if _TIME_BITS=64 enables 64-bit time_t... " >&6; }
9223 if test ${tcl_cv__time_bits+y}
9224 then :
9225 printf %s "(cached) " >&6
9226 else case e in #(
9227 e)
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #define _TIME_BITS 64
9231 #include <sys/types.h>
9232 int
9233 main (void)
9234 {
9235 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
9236 ;
9237 return 0;
9238 }
9239 _ACEOF
9240 if ac_fn_c_try_compile "$LINENO"
9241 then :
9242 tcl_cv__time_bits=yes
9243 else case e in #(
9244 e) tcl_cv__time_bits=no ;;
9245 esac
9246 fi
9247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9248 esac
9249 fi
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv__time_bits" >&5
9251 printf "%s\n" "$tcl_cv__time_bits" >&6; }
9252 if test "x${tcl_cv__time_bits}" = "xyes" ; then
9253
9254 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
9255
9256 fi
9257 fi
9258 fi
9259
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
9261 printf %s "checking for struct dirent64... " >&6; }
9262 if test ${tcl_cv_struct_dirent64+y}
9263 then :
9264 printf %s "(cached) " >&6
9265 else case e in #(
9266 e)
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 #include <sys/types.h>
9270 #include <dirent.h>
9271 int
9272 main (void)
9273 {
9274 struct dirent64 p;
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 if ac_fn_c_try_compile "$LINENO"
9280 then :
9281 tcl_cv_struct_dirent64=yes
9282 else case e in #(
9283 e) tcl_cv_struct_dirent64=no ;;
9284 esac
9285 fi
9286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9287 esac
9288 fi
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
9290 printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
9291 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9292
9293 printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
9294
9295 fi
9296
9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
9298 printf %s "checking for DIR64... " >&6; }
9299 if test ${tcl_cv_DIR64+y}
9300 then :
9301 printf %s "(cached) " >&6
9302 else case e in #(
9303 e)
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #include <sys/types.h>
9307 #include <dirent.h>
9308 int
9309 main (void)
9310 {
9311 struct dirent64 *p; DIR64 d = opendir64(".");
9312 p = readdir64(d); rewinddir64(d); closedir64(d);
9313 ;
9314 return 0;
9315 }
9316 _ACEOF
9317 if ac_fn_c_try_compile "$LINENO"
9318 then :
9319 tcl_cv_DIR64=yes
9320 else case e in #(
9321 e) tcl_cv_DIR64=no ;;
9322 esac
9323 fi
9324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9325 esac
9326 fi
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
9328 printf "%s\n" "$tcl_cv_DIR64" >&6; }
9329 if test "x${tcl_cv_DIR64}" = "xyes" ; then
9330
9331 printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
9332
9333 fi
9334
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
9336 printf %s "checking for struct stat64... " >&6; }
9337 if test ${tcl_cv_struct_stat64+y}
9338 then :
9339 printf %s "(cached) " >&6
9340 else case e in #(
9341 e)
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 #include <sys/stat.h>
9345 int
9346 main (void)
9347 {
9348 struct stat64 p;
9349
9350 ;
9351 return 0;
9352 }
9353 _ACEOF
9354 if ac_fn_c_try_compile "$LINENO"
9355 then :
9356 tcl_cv_struct_stat64=yes
9357 else case e in #(
9358 e) tcl_cv_struct_stat64=no ;;
9359 esac
9360 fi
9361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9362 esac
9363 fi
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
9365 printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
9366 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9367
9368 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
9369
9370 fi
9371
9372 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
9373 if test "x$ac_cv_func_open64" = xyes
9374 then :
9375 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
9376
9377 fi
9378 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
9379 if test "x$ac_cv_func_lseek64" = xyes
9380 then :
9381 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
9382
9383 fi
9384
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
9386 printf %s "checking for off64_t... " >&6; }
9387 if test ${tcl_cv_type_off64_t+y}
9388 then :
9389 printf %s "(cached) " >&6
9390 else case e in #(
9391 e)
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 #include <sys/types.h>
9395 int
9396 main (void)
9397 {
9398 off64_t offset;
9399
9400 ;
9401 return 0;
9402 }
9403 _ACEOF
9404 if ac_fn_c_try_compile "$LINENO"
9405 then :
9406 tcl_cv_type_off64_t=yes
9407 else case e in #(
9408 e) tcl_cv_type_off64_t=no ;;
9409 esac
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9412 esac
9413 fi
9414
9415 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
9416 test "x${ac_cv_func_lseek64}" = "xyes" && \
9417 test "x${ac_cv_func_open64}" = "xyes" ; then
9418
9419 printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
9420
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9422 printf "%s\n" "yes" >&6; }
9423 else
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 printf "%s\n" "no" >&6; }
9426 fi
9427 fi
9428
9429
9430
9431 #--------------------------------------------------------------------
9432 # Set the default compiler switches based on the --enable-symbols option.
9433 #--------------------------------------------------------------------
9434
9435
9436
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
9438 printf %s "checking for build with symbols... " >&6; }
9439 # Check whether --enable-symbols was given.
9440 if test ${enable_symbols+y}
9441 then :
9442 enableval=$enable_symbols; tcl_ok=$enableval
9443 else case e in #(
9444 e) tcl_ok=no ;;
9445 esac
9446 fi
9447
9448 if test "$tcl_ok" = "no"; then
9449 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
9450 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452 printf "%s\n" "no" >&6; }
9453
9454 printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
9455
9456 else
9457 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
9458 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
9459 if test "$tcl_ok" = "yes"; then
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
9461 printf "%s\n" "yes (standard debugging)" >&6; }
9462 fi
9463 fi
9464
9465
9466
9467 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
9468
9469 printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
9470
9471 fi
9472
9473 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
9474 if test "$tcl_ok" = "all"; then
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
9476 printf "%s\n" "enabled symbols mem debugging" >&6; }
9477 else
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
9479 printf "%s\n" "enabled $tcl_ok debugging" >&6; }
9480 fi
9481 fi
9482
9483
9484 #--------------------------------------------------------------------
9485 # For Unix/Tk builds, make sure that the X libraries/headers are found.
9486 # This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS.
9487 #--------------------------------------------------------------------
9488
9489
9490
9491 if test "${TEA_WINDOWINGSYSTEM}" = "x11" ; then
9492
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9494 printf %s "checking for X... " >&6; }
9495
9496
9497 # Check whether --with-x was given.
9498 if test ${with_x+y}
9499 then :
9500 withval=$with_x;
9501 fi
9502
9503 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
9504 if test "x$with_x" = xno; then
9505 # The user explicitly disabled X.
9506 have_x=disabled
9507 else
9508 case $x_includes,$x_libraries in #(
9509 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
9510 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
9511 then :
9512 printf %s "(cached) " >&6
9513 else case e in #(
9514 e) # One or both of the vars are not set, and there is no cached value.
9515 ac_x_includes=no
9516 ac_x_libraries=no
9517 # Do we need to do anything special at all?
9518 ac_save_LIBS=$LIBS
9519 LIBS="-lX11 $LIBS"
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522 #include <X11/Xlib.h>
9523 int
9524 main (void)
9525 {
9526 XrmInitialize ()
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"
9532 then :
9533 # We can compile and link X programs with no special options.
9534 ac_x_includes=
9535 ac_x_libraries=
9536 fi
9537 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9538 conftest$ac_exeext conftest.$ac_ext
9539 LIBS="$ac_save_LIBS"
9540 # If that didn't work, only try xmkmf and file system searches
9541 # for native compilation.
9542 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
9543 then :
9544 rm -f -r conftest.dir
9545 if mkdir conftest.dir; then
9546 cd conftest.dir
9547 cat >Imakefile <<'_ACEOF'
9548 incroot:
9549 @echo incroot='${INCROOT}'
9550 usrlibdir:
9551 @echo usrlibdir='${USRLIBDIR}'
9552 libdir:
9553 @echo libdir='${LIBDIR}'
9554 _ACEOF
9555 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9556 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9557 for ac_var in incroot usrlibdir libdir; do
9558 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9559 done
9560 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9561 for ac_extension in a so sl dylib la dll; do
9562 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9563 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9564 ac_im_usrlibdir=$ac_im_libdir; break
9565 fi
9566 done
9567 # Screen out bogus values from the imake configuration. They are
9568 # bogus both because they are the default anyway, and because
9569 # using them would break gcc on systems where it needs fixed includes.
9570 case $ac_im_incroot in
9571 /usr/include) ac_x_includes= ;;
9572 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9573 esac
9574 case $ac_im_usrlibdir in
9575 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9576 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9577 esac
9578 fi
9579 cd ..
9580 rm -f -r conftest.dir
9581 fi
9582
9583 # Standard set of common directories for X headers.
9584 # Check X11 before X11Rn because it is often a symlink to the current release.
9585 ac_x_header_dirs='
9586 /usr/X11/include
9587 /usr/X11R7/include
9588 /usr/X11R6/include
9589 /usr/X11R5/include
9590 /usr/X11R4/include
9591
9592 /usr/include/X11
9593 /usr/include/X11R7
9594 /usr/include/X11R6
9595 /usr/include/X11R5
9596 /usr/include/X11R4
9597
9598 /usr/local/X11/include
9599 /usr/local/X11R7/include
9600 /usr/local/X11R6/include
9601 /usr/local/X11R5/include
9602 /usr/local/X11R4/include
9603
9604 /usr/local/include/X11
9605 /usr/local/include/X11R7
9606 /usr/local/include/X11R6
9607 /usr/local/include/X11R5
9608 /usr/local/include/X11R4
9609
9610 /opt/X11/include
9611
9612 /usr/X386/include
9613 /usr/x386/include
9614 /usr/XFree86/include/X11
9615
9616 /usr/include
9617 /usr/local/include
9618 /usr/unsupported/include
9619 /usr/athena/include
9620 /usr/local/x11r5/include
9621 /usr/lpp/Xamples/include
9622
9623 /usr/openwin/include
9624 /usr/openwin/share/include'
9625
9626 if test "$ac_x_includes" = no; then
9627 # Guess where to find include files, by looking for Xlib.h.
9628 # First, try using that file with no special directory specified.
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 #include <X11/Xlib.h>
9632 _ACEOF
9633 if ac_fn_c_try_cpp "$LINENO"
9634 then :
9635 # We can compile using X headers with no special include directory.
9636 ac_x_includes=
9637 else case e in #(
9638 e) for ac_dir in $ac_x_header_dirs; do
9639 if test -r "$ac_dir/X11/Xlib.h"; then
9640 ac_x_includes=$ac_dir
9641 break
9642 fi
9643 done ;;
9644 esac
9645 fi
9646 rm -f conftest.err conftest.i conftest.$ac_ext
9647 fi # $ac_x_includes = no
9648
9649 if test "$ac_x_libraries" = no; then
9650 # Check for the libraries.
9651 # See if we find them without any special options.
9652 # Don't add to $LIBS permanently.
9653 ac_save_LIBS=$LIBS
9654 LIBS="-lX11 $LIBS"
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657 #include <X11/Xlib.h>
9658 int
9659 main (void)
9660 {
9661 XrmInitialize ()
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 if ac_fn_c_try_link "$LINENO"
9667 then :
9668 LIBS=$ac_save_LIBS
9669 # We can link X programs with no special library path.
9670 ac_x_libraries=
9671 else case e in #(
9672 e) LIBS=$ac_save_LIBS
9673 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9674 do
9675 # Don't even attempt the hair of trying to link an X program!
9676 for ac_extension in a so sl dylib la dll; do
9677 if test -r "$ac_dir/libX11.$ac_extension"; then
9678 ac_x_libraries=$ac_dir
9679 break 2
9680 fi
9681 done
9682 done ;;
9683 esac
9684 fi
9685 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9686 conftest$ac_exeext conftest.$ac_ext
9687 fi # $ac_x_libraries = no
9688
9689 fi
9690 # Record the results.
9691 case $ac_x_includes,$ac_x_libraries in #(
9692 no,* | *,no | *\'*) :
9693 # Didn't find X, or a directory has "'" in its name.
9694 ac_cv_have_x="have_x=no" ;; #(
9695 *) :
9696 # Record where we found X for the cache.
9697 ac_cv_have_x="have_x=yes\
9698 ac_x_includes='$ac_x_includes'\
9699 ac_x_libraries='$ac_x_libraries'" ;;
9700 esac ;;
9701 esac
9702 fi
9703 ;; #(
9704 *) have_x=yes;;
9705 esac
9706 eval "$ac_cv_have_x"
9707 fi # $with_x != no
9708
9709 if test "$have_x" != yes; then
9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9711 printf "%s\n" "$have_x" >&6; }
9712 no_x=yes
9713 else
9714 # If each of the values was on the command line, it overrides each guess.
9715 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9716 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9717 # Update the cache value to reflect the command line values.
9718 ac_cv_have_x="have_x=yes\
9719 ac_x_includes='$x_includes'\
9720 ac_x_libraries='$x_libraries'"
9721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9722 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
9723 fi
9724
9725 not_really_there=""
9726 if test "$no_x" = ""; then
9727 if test "$x_includes" = ""; then
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9730 #include <X11/Xlib.h>
9731 _ACEOF
9732 if ac_fn_c_try_cpp "$LINENO"
9733 then :
9734
9735 else case e in #(
9736 e) not_really_there="yes" ;;
9737 esac
9738 fi
9739 rm -f conftest.err conftest.i conftest.$ac_ext
9740 else
9741 if test ! -r $x_includes/X11/Xlib.h; then
9742 not_really_there="yes"
9743 fi
9744 fi
9745 fi
9746 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
9748 printf %s "checking for X11 header files... " >&6; }
9749 found_xincludes="no"
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 #include <X11/Xlib.h>
9753 _ACEOF
9754 if ac_fn_c_try_cpp "$LINENO"
9755 then :
9756 found_xincludes="yes"
9757 else case e in #(
9758 e) found_xincludes="no" ;;
9759 esac
9760 fi
9761 rm -f conftest.err conftest.i conftest.$ac_ext
9762 if test "$found_xincludes" = "no"; then
9763 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"
9764 for i in $dirs ; do
9765 if test -r $i/X11/Xlib.h; then
9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $i" >&5
9767 printf "%s\n" "$i" >&6; }
9768 XINCLUDES=" -I$i"
9769 found_xincludes="yes"
9770 break
9771 fi
9772 done
9773 fi
9774 else
9775 if test "$x_includes" != ""; then
9776 XINCLUDES="-I$x_includes"
9777 found_xincludes="yes"
9778 fi
9779 fi
9780 if test "$found_xincludes" = "no"; then
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: couldn't find any!" >&5
9782 printf "%s\n" "couldn't find any!" >&6; }
9783 fi
9784
9785 if test "$no_x" = yes; then
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 libraries" >&5
9787 printf %s "checking for X11 libraries... " >&6; }
9788 XLIBSW=nope
9789 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"
9790 for i in $dirs ; do
9791 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then
9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $i" >&5
9793 printf "%s\n" "$i" >&6; }
9794 XLIBSW="-L$i -lX11"
9795 x_libraries="$i"
9796 break
9797 fi
9798 done
9799 else
9800 if test "$x_libraries" = ""; then
9801 XLIBSW=-lX11
9802 else
9803 XLIBSW="-L$x_libraries -lX11"
9804 fi
9805 fi
9806 if test "$XLIBSW" = nope ; then
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lXwindow" >&5
9808 printf %s "checking for XCreateWindow in -lXwindow... " >&6; }
9809 if test ${ac_cv_lib_Xwindow_XCreateWindow+y}
9810 then :
9811 printf %s "(cached) " >&6
9812 else case e in #(
9813 e) ac_check_lib_save_LIBS=$LIBS
9814 LIBS="-lXwindow $LIBS"
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817
9818 /* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply.
9821 The 'extern "C"' is for builds by C++ compilers;
9822 although this is not generally supported in C code supporting it here
9823 has little cost and some practical benefit (sr 110532). */
9824 #ifdef __cplusplus
9825 extern "C"
9826 #endif
9827 char XCreateWindow (void);
9828 int
9829 main (void)
9830 {
9831 return XCreateWindow ();
9832 ;
9833 return 0;
9834 }
9835 _ACEOF
9836 if ac_fn_c_try_link "$LINENO"
9837 then :
9838 ac_cv_lib_Xwindow_XCreateWindow=yes
9839 else case e in #(
9840 e) ac_cv_lib_Xwindow_XCreateWindow=no ;;
9841 esac
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9844 conftest$ac_exeext conftest.$ac_ext
9845 LIBS=$ac_check_lib_save_LIBS ;;
9846 esac
9847 fi
9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5
9849 printf "%s\n" "$ac_cv_lib_Xwindow_XCreateWindow" >&6; }
9850 if test "x$ac_cv_lib_Xwindow_XCreateWindow" = xyes
9851 then :
9852 XLIBSW=-lXwindow
9853 fi
9854
9855 fi
9856 if test "$XLIBSW" = nope ; then
9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find any! Using -lX11." >&5
9858 printf "%s\n" "could not find any! Using -lX11." >&6; }
9859 XLIBSW=-lX11
9860 fi
9861 # TEA specific:
9862 if test x"${XLIBSW}" != x ; then
9863 PKG_LIBS="${PKG_LIBS} ${XLIBSW}"
9864 fi
9865
9866 fi
9867
9868
9869 #--------------------------------------------------------------------
9870 # Everyone should be linking against the Tcl stub library. If you
9871 # can't for some reason, remove this definition. If you aren't using
9872 # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
9873 # link against the non-stubbed Tcl library.
9874 #--------------------------------------------------------------------
9875
9876 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
9877
9878 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
9879
9880
9881 #--------------------------------------------------------------------
9882 # This macro generates a line to use when building a library. It
9883 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
9884 # and TEA_LOAD_TCLCONFIG macros above.
9885 #--------------------------------------------------------------------
9886
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
9888 printf %s "checking for egrep -e... " >&6; }
9889 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
9890 then :
9891 printf %s "(cached) " >&6
9892 else case e in #(
9893 e) if test -z "$EGREP_TRADITIONAL"; then
9894 ac_path_EGREP_TRADITIONAL_found=false
9895 # Loop through the user's path and test for each of PROGNAME-LIST
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9898 do
9899 IFS=$as_save_IFS
9900 case $as_dir in #(((
9901 '') as_dir=./ ;;
9902 */) ;;
9903 *) as_dir=$as_dir/ ;;
9904 esac
9905 for ac_prog in grep ggrep
9906 do
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
9909 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
9910 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
9911 # Check for GNU $ac_path_EGREP_TRADITIONAL
9912 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
9913 *GNU*)
9914 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
9915 #(
9916 *)
9917 ac_count=0
9918 printf %s 0123456789 >"conftest.in"
9919 while :
9920 do
9921 cat "conftest.in" "conftest.in" >"conftest.tmp"
9922 mv "conftest.tmp" "conftest.in"
9923 cp "conftest.in" "conftest.nl"
9924 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
9925 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9927 as_fn_arith $ac_count + 1 && ac_count=$as_val
9928 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
9929 # Best one so far, save it but keep looking for a better one
9930 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
9931 ac_path_EGREP_TRADITIONAL_max=$ac_count
9932 fi
9933 # 10*(2^10) chars as input seems more than enough
9934 test $ac_count -gt 10 && break
9935 done
9936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9937 esac
9938
9939 $ac_path_EGREP_TRADITIONAL_found && break 3
9940 done
9941 done
9942 done
9943 IFS=$as_save_IFS
9944 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
9945 :
9946 fi
9947 else
9948 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
9949 fi
9950
9951 if test "$ac_cv_path_EGREP_TRADITIONAL"
9952 then :
9953 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
9954 else case e in #(
9955 e) if test -z "$EGREP_TRADITIONAL"; then
9956 ac_path_EGREP_TRADITIONAL_found=false
9957 # Loop through the user's path and test for each of PROGNAME-LIST
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9960 do
9961 IFS=$as_save_IFS
9962 case $as_dir in #(((
9963 '') as_dir=./ ;;
9964 */) ;;
9965 *) as_dir=$as_dir/ ;;
9966 esac
9967 for ac_prog in egrep
9968 do
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
9971 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
9972 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
9973 # Check for GNU $ac_path_EGREP_TRADITIONAL
9974 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
9975 *GNU*)
9976 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
9977 #(
9978 *)
9979 ac_count=0
9980 printf %s 0123456789 >"conftest.in"
9981 while :
9982 do
9983 cat "conftest.in" "conftest.in" >"conftest.tmp"
9984 mv "conftest.tmp" "conftest.in"
9985 cp "conftest.in" "conftest.nl"
9986 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
9987 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9989 as_fn_arith $ac_count + 1 && ac_count=$as_val
9990 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
9991 # Best one so far, save it but keep looking for a better one
9992 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
9993 ac_path_EGREP_TRADITIONAL_max=$ac_count
9994 fi
9995 # 10*(2^10) chars as input seems more than enough
9996 test $ac_count -gt 10 && break
9997 done
9998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9999 esac
10000
10001 $ac_path_EGREP_TRADITIONAL_found && break 3
10002 done
10003 done
10004 done
10005 IFS=$as_save_IFS
10006 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
10007 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10008 fi
10009 else
10010 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
10011 fi
10012 ;;
10013 esac
10014 fi ;;
10015 esac
10016 fi
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
10018 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
10019 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
10020
10021
10022 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
10023 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
10024 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027
10028 #if defined(_MSC_VER) && _MSC_VER >= 1400
10029 print("manifest needed")
10030 #endif
10031
10032 _ACEOF
10033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10034 $EGREP_TRADITIONAL "manifest needed" >/dev/null 2>&1
10035 then :
10036
10037 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
10038 VC_MANIFEST_EMBED_DLL="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;2 ; fi"
10039 VC_MANIFEST_EMBED_EXE="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;1 ; fi"
10040 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
10041
10042 CLEANFILES="$CLEANFILES *.manifest"
10043
10044
10045 fi
10046 rm -rf conftest*
10047
10048 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
10049 else
10050 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
10051 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
10052 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
10053 fi
10054
10055 if test "${SHARED_BUILD}" = "1" ; then
10056 MAKE_LIB="${MAKE_SHARED_LIB} "
10057 else
10058 MAKE_LIB="${MAKE_STATIC_LIB} "
10059 fi
10060
10061 #--------------------------------------------------------------------
10062 # Shared libraries and static libraries have different names.
10063 # Use the double eval to make sure any variables in the suffix is
10064 # substituted. (@@@ Might not be necessary anymore)
10065 #--------------------------------------------------------------------
10066
10067 PACKAGE_LIB_PREFIX8="${PACKAGE_LIB_PREFIX}"
10068 PACKAGE_LIB_PREFIX9="${PACKAGE_LIB_PREFIX}tcl9"
10069 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
10070 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}"
10071 else
10072 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}"
10073
10074 printf "%s\n" "#define TCL_MAJOR_VERSION 8" >>confdefs.h
10075
10076 fi
10077 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tk8}" != x; then
10078
10079 printf "%s\n" "#define TK_MAJOR_VERSION 8" >>confdefs.h
10080
10081 fi
10082 if test "${TEA_PLATFORM}" = "windows" ; then
10083 if test "${SHARED_BUILD}" = "1" ; then
10084 # We force the unresolved linking of symbols that are really in
10085 # the private libraries of Tcl and Tk.
10086 if test x"${TK_BIN_DIR}" != x ; then
10087 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
10088 fi
10089 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
10090 if test "$GCC" = "yes"; then
10091 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
10092 fi
10093 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10094 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10095 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10096 else
10097 if test "$GCC" = "yes"; then
10098 PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX}
10099 fi
10100 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10101 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10102 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10103 fi
10104 # Some packages build their own stubs libraries
10105 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
10106 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
10107 else
10108 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10109 fi
10110 if test "$GCC" = "yes"; then
10111 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
10112 fi
10113 # These aren't needed on Windows (either MSVC or gcc)
10114 RANLIB=:
10115 RANLIB_STUB=:
10116 else
10117 RANLIB_STUB="${RANLIB}"
10118 if test "${SHARED_BUILD}" = "1" ; then
10119 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
10120 if test x"${TK_BIN_DIR}" != x ; then
10121 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
10122 fi
10123 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10124 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10125 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
10126 RANLIB=:
10127 else
10128 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10129 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10130 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
10131 fi
10132 # Some packages build their own stubs libraries
10133 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
10134 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
10135 else
10136 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
10137 fi
10138 fi
10139
10140 # These are escaped so that only CFLAGS is picked up at configure time.
10141 # The other values will be substituted at make time.
10142 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
10143 if test "${SHARED_BUILD}" = "1" ; then
10144 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
10145 fi
10146
10147
10148
10149
10150
10151 # Substitute STUB_LIB_FILE in case package creates a stub library too.
10152
10153
10154
10155
10156
10157
10158 #--------------------------------------------------------------------
10159 # __CHANGE__
10160 # Add platform libs to LIBS or SHLIB_LD_LIBS as necessary.
10161 #--------------------------------------------------------------------
10162
10163 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
10164
10165 vars="\"`${CYGPATH} ${tkimg_STUB_LIB_PATH}`\""
10166 for i in $vars; do
10167 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
10168 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
10169 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
10170 fi
10171 PKG_LIBS="$PKG_LIBS $i"
10172 done
10173
10174
10175 else
10176
10177 vars="${tkimg_STUB_LIB_SPEC}"
10178 for i in $vars; do
10179 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
10180 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
10181 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
10182 fi
10183 PKG_LIBS="$PKG_LIBS $i"
10184 done
10185
10186
10187 fi
10188
10189 #--------------------------------------------------------------------
10190 # Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
10191 # file during the install process. Don't run the TCLSH_PROG through
10192 # ${CYGPATH} because it's being used directly by make.
10193 # Require that we use a tclsh shell version 8.2 or later since earlier
10194 # versions have bugs in the pkg_mkIndex routine.
10195 # Add WISH as well if this is a Tk extension.
10196 #--------------------------------------------------------------------
10197
10198
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
10200 printf %s "checking for tclsh... " >&6; }
10201 if test -f "${TCL_BIN_DIR}/Makefile" ; then
10202 # tclConfig.sh is in Tcl build directory
10203 if test "${TEA_PLATFORM}" = "windows"; then
10204 if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then
10205 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
10206 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then
10207 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}"
10208 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then
10209 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}"
10210 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then
10211 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}"
10212 fi
10213 else
10214 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
10215 fi
10216 else
10217 # tclConfig.sh is in install location
10218 if test "${TEA_PLATFORM}" = "windows"; then
10219 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
10220 else
10221 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
10222 fi
10223 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
10224 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
10225 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
10226 for i in $list ; do
10227 if test -f "$i/${TCLSH_PROG}" ; then
10228 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
10229 break
10230 fi
10231 done
10232 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
10233 fi
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
10235 printf "%s\n" "${TCLSH_PROG}" >&6; }
10236
10237
10238
10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wish" >&5
10240 printf %s "checking for wish... " >&6; }
10241 if test -f "${TK_BIN_DIR}/Makefile" ; then
10242 # tkConfig.sh is in Tk build directory
10243 if test "${TEA_PLATFORM}" = "windows"; then
10244 if test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}" ; then
10245 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}"
10246 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}s${EXEEXT}" ; then
10247 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}$s{EXEEXT}"
10248 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}t${EXEEXT}" ; then
10249 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}t${EXEEXT}"
10250 elif test -f "${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}st${EXEEXT}" ; then
10251 WISH_PROG="${TK_BIN_DIR}/wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}st${EXEEXT}"
10252 fi
10253 else
10254 WISH_PROG="${TK_BIN_DIR}/wish"
10255 fi
10256 else
10257 # tkConfig.sh is in install location
10258 if test "${TEA_PLATFORM}" = "windows"; then
10259 WISH_PROG="wish${TK_MAJOR_VERSION}${TK_MINOR_VERSION}${EXEEXT}"
10260 else
10261 WISH_PROG="wish${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
10262 fi
10263 list="`ls -d ${TK_BIN_DIR}/../bin 2>/dev/null` \
10264 `ls -d ${TK_BIN_DIR}/.. 2>/dev/null` \
10265 `ls -d ${TK_PREFIX}/bin 2>/dev/null`"
10266 for i in $list ; do
10267 if test -f "$i/${WISH_PROG}" ; then
10268 REAL_TK_BIN_DIR="`cd "$i"; pwd`/"
10269 break
10270 fi
10271 done
10272 WISH_PROG="${REAL_TK_BIN_DIR}${WISH_PROG}"
10273 fi
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${WISH_PROG}" >&5
10275 printf "%s\n" "${WISH_PROG}" >&6; }
10276
10277
10278
10279 #--------------------------------------------------------------------
10280 # Finally, substitute all of the various values into the Makefile.
10281 # You may alternatively have a special pkgIndex.tcl.in or other files
10282 # which require substituting th AC variables in. Include these here.
10283 #--------------------------------------------------------------------
10284
10285 ac_config_files="$ac_config_files Makefile"
10286
10287 cat >confcache <<\_ACEOF
10288 # This file is a shell script that caches the results of configure
10289 # tests run on this system so they can be shared between configure
10290 # scripts and configure runs, see configure's option --config-cache.
10291 # It is not useful on other systems. If it contains results you don't
10292 # want to keep, you may remove or edit it.
10293 #
10294 # config.status only pays attention to the cache file if you give it
10295 # the --recheck option to rerun configure.
10296 #
10297 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
10298 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
10299 # following values.
10300
10301 _ACEOF
10302
10303 # The following way of writing the cache mishandles newlines in values,
10304 # but we know of no workaround that is simple, portable, and efficient.
10305 # So, we kill variables containing newlines.
10306 # Ultrix sh set writes to stderr and can't be redirected directly,
10307 # and sets the high bit in the cache file unless we assign to the vars.
10308 (
10309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10310 eval ac_val=\$$ac_var
10311 case $ac_val in #(
10312 *${as_nl}*)
10313 case $ac_var in #(
10314 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10315 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10316 esac
10317 case $ac_var in #(
10318 _ | IFS | as_nl) ;; #(
10319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10320 *) { eval $ac_var=; unset $ac_var;} ;;
10321 esac ;;
10322 esac
10323 done
10324
10325 (set) 2>&1 |
10326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10327 *${as_nl}ac_space=\ *)
10328 # 'set' does not quote correctly, so add quotes: double-quote
10329 # substitution turns \\\\ into \\, and sed turns \\ into \.
10330 sed -n \
10331 "s/'/'\\\\''/g;
10332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10333 ;; #(
10334 *)
10335 # 'set' quotes correctly as required by POSIX, so do not add quotes.
10336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10337 ;;
10338 esac |
10339 sort
10340 ) |
10341 sed '
10342 /^ac_cv_env_/b end
10343 t clear
10344 :clear
10345 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
10346 t end
10347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10348 :end' >>confcache
10349 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10350 if test -w "$cache_file"; then
10351 if test "x$cache_file" != "x/dev/null"; then
10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10353 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
10354 if test ! -f "$cache_file" || test -h "$cache_file"; then
10355 cat confcache >"$cache_file"
10356 else
10357 case $cache_file in #(
10358 */* | ?:*)
10359 mv -f confcache "$cache_file"$$ &&
10360 mv -f "$cache_file"$$ "$cache_file" ;; #(
10361 *)
10362 mv -f confcache "$cache_file" ;;
10363 esac
10364 fi
10365 fi
10366 else
10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10368 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
10369 fi
10370 fi
10371 rm -f confcache
10372
10373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10374 # Let make expand exec_prefix.
10375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10376
10377 # Transform confdefs.h into DEFS.
10378 # Protect against shell expansion while executing Makefile rules.
10379 # Protect against Makefile macro expansion.
10380 #
10381 # If the first sed substitution is executed (which looks for macros that
10382 # take arguments), then branch to the quote section. Otherwise,
10383 # look for a macro that doesn't take arguments.
10384 ac_script='
10385 :mline
10386 /\\$/{
10387 N
10388 s,\\\n,,
10389 b mline
10390 }
10391 t clear
10392 :clear
10393 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10394 t quote
10395 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10396 t quote
10397 b any
10398 :quote
10399 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10400 s/\$/$$/g
10401 H
10402 :any
10403 ${
10404 g
10405 s/^\n//
10406 s/\n/ /g
10407 p
10408 }
10409 '
10410 DEFS=`sed -n "$ac_script" confdefs.h`
10411
10412
10413 ac_libobjs=
10414 ac_ltlibobjs=
10415 U=
10416 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10417 # 1. Remove the extension, and $U if already installed.
10418 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10419 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
10420 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10421 # will be set to the directory where LIBOBJS objects are built.
10422 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10423 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10424 done
10425 LIBOBJS=$ac_libobjs
10426
10427 LTLIBOBJS=$ac_ltlibobjs
10428
10429
10430 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
10431
10432 : "${CONFIG_STATUS=./config.status}"
10433 ac_write_fail=0
10434 ac_clean_files_save=$ac_clean_files
10435 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10437 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
10438 as_write_fail=0
10439 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10440 #! $SHELL
10441 # Generated by $as_me.
10442 # Run this file to recreate the current configuration.
10443 # Compiler output produced by configure, useful for debugging
10444 # configure, is in config.log if it exists.
10445
10446 debug=false
10447 ac_cs_recheck=false
10448 ac_cs_silent=false
10449
10450 SHELL=\${CONFIG_SHELL-$SHELL}
10451 export SHELL
10452 _ASEOF
10453 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10454 ## -------------------- ##
10455 ## M4sh Initialization. ##
10456 ## -------------------- ##
10457
10458 # Be more Bourne compatible
10459 DUALCASE=1; export DUALCASE # for MKS sh
10460 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10461 then :
10462 emulate sh
10463 NULLCMD=:
10464 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10465 # is contrary to our usage. Disable this feature.
10466 alias -g '${1+"$@"}'='"$@"'
10467 setopt NO_GLOB_SUBST
10468 else case e in #(
10469 e) case `(set -o) 2>/dev/null` in #(
10470 *posix*) :
10471 set -o posix ;; #(
10472 *) :
10473 ;;
10474 esac ;;
10475 esac
10476 fi
10477
10478
10479
10480 # Reset variables that may have inherited troublesome values from
10481 # the environment.
10482
10483 # IFS needs to be set, to space, tab, and newline, in precisely that order.
10484 # (If _AS_PATH_WALK were called with IFS unset, it would have the
10485 # side effect of setting IFS to empty, thus disabling word splitting.)
10486 # Quoting is to prevent editors from complaining about space-tab.
10487 as_nl='
10488 '
10489 export as_nl
10490 IFS=" "" $as_nl"
10491
10492 PS1='$ '
10493 PS2='> '
10494 PS4='+ '
10495
10496 # Ensure predictable behavior from utilities with locale-dependent output.
10497 LC_ALL=C
10498 export LC_ALL
10499 LANGUAGE=C
10500 export LANGUAGE
10501
10502 # We cannot yet rely on "unset" to work, but we need these variables
10503 # to be unset--not just set to an empty or harmless value--now, to
10504 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10505 # also avoids known problems related to "unset" and subshell syntax
10506 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10507 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10508 do eval test \${$as_var+y} \
10509 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10510 done
10511
10512 # Ensure that fds 0, 1, and 2 are open.
10513 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10514 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10515 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
10516
10517 # The user is always right.
10518 if ${PATH_SEPARATOR+false} :; then
10519 PATH_SEPARATOR=:
10520 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10521 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10522 PATH_SEPARATOR=';'
10523 }
10524 fi
10525
10526
10527 # Find who we are. Look in the path if we contain no directory separator.
10528 as_myself=
10529 case $0 in #((
10530 *[\\/]* ) as_myself=$0 ;;
10531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10533 do
10534 IFS=$as_save_IFS
10535 case $as_dir in #(((
10536 '') as_dir=./ ;;
10537 */) ;;
10538 *) as_dir=$as_dir/ ;;
10539 esac
10540 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10541 done
10542 IFS=$as_save_IFS
10543
10544 ;;
10545 esac
10546 # We did not find ourselves, most probably we were run as 'sh COMMAND'
10547 # in which case we are not to be found in the path.
10548 if test "x$as_myself" = x; then
10549 as_myself=$0
10550 fi
10551 if test ! -f "$as_myself"; then
10552 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10553 exit 1
10554 fi
10555
10556
10557
10558 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10559 # ----------------------------------------
10560 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10561 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10562 # script with STATUS, using 1 if that was 0.
10563 as_fn_error ()
10564 {
10565 as_status=$1; test $as_status -eq 0 && as_status=1
10566 if test "$4"; then
10567 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10569 fi
10570 printf "%s\n" "$as_me: error: $2" >&2
10571 as_fn_exit $as_status
10572 } # as_fn_error
10573
10574
10575 # as_fn_set_status STATUS
10576 # -----------------------
10577 # Set $? to STATUS, without forking.
10578 as_fn_set_status ()
10579 {
10580 return $1
10581 } # as_fn_set_status
10582
10583 # as_fn_exit STATUS
10584 # -----------------
10585 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10586 as_fn_exit ()
10587 {
10588 set +e
10589 as_fn_set_status $1
10590 exit $1
10591 } # as_fn_exit
10592
10593 # as_fn_unset VAR
10594 # ---------------
10595 # Portably unset VAR.
10596 as_fn_unset ()
10597 {
10598 { eval $1=; unset $1;}
10599 }
10600 as_unset=as_fn_unset
10601
10602 # as_fn_append VAR VALUE
10603 # ----------------------
10604 # Append the text in VALUE to the end of the definition contained in VAR. Take
10605 # advantage of any shell optimizations that allow amortized linear growth over
10606 # repeated appends, instead of the typical quadratic growth present in naive
10607 # implementations.
10608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10609 then :
10610 eval 'as_fn_append ()
10611 {
10612 eval $1+=\$2
10613 }'
10614 else case e in #(
10615 e) as_fn_append ()
10616 {
10617 eval $1=\$$1\$2
10618 } ;;
10619 esac
10620 fi # as_fn_append
10621
10622 # as_fn_arith ARG...
10623 # ------------------
10624 # Perform arithmetic evaluation on the ARGs, and store the result in the
10625 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10626 # must be portable across $(()) and expr.
10627 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10628 then :
10629 eval 'as_fn_arith ()
10630 {
10631 as_val=$(( $* ))
10632 }'
10633 else case e in #(
10634 e) as_fn_arith ()
10635 {
10636 as_val=`expr "$@" || test $? -eq 1`
10637 } ;;
10638 esac
10639 fi # as_fn_arith
10640
10641
10642 if expr a : '\(a\)' >/dev/null 2>&1 &&
10643 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10644 as_expr=expr
10645 else
10646 as_expr=false
10647 fi
10648
10649 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10650 as_basename=basename
10651 else
10652 as_basename=false
10653 fi
10654
10655 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10656 as_dirname=dirname
10657 else
10658 as_dirname=false
10659 fi
10660
10661 as_me=`$as_basename -- "$0" ||
10662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10663 X"$0" : 'X\(//\)$' \| \
10664 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10665 printf "%s\n" X/"$0" |
10666 sed '/^.*\/\([^/][^/]*\)\/*$/{
10667 s//\1/
10668 q
10669 }
10670 /^X\/\(\/\/\)$/{
10671 s//\1/
10672 q
10673 }
10674 /^X\/\(\/\).*/{
10675 s//\1/
10676 q
10677 }
10678 s/.*/./; q'`
10679
10680 # Avoid depending upon Character Ranges.
10681 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10682 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10683 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10684 as_cr_digits='0123456789'
10685 as_cr_alnum=$as_cr_Letters$as_cr_digits
10686
10687
10688 # Determine whether it's possible to make 'echo' print without a newline.
10689 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10690 # for compatibility with existing Makefiles.
10691 ECHO_C= ECHO_N= ECHO_T=
10692 case `echo -n x` in #(((((
10693 -n*)
10694 case `echo 'xy\c'` in
10695 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10696 xy) ECHO_C='\c';;
10697 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10698 ECHO_T=' ';;
10699 esac;;
10700 *)
10701 ECHO_N='-n';;
10702 esac
10703
10704 # For backward compatibility with old third-party macros, we provide
10705 # the shell variables $as_echo and $as_echo_n. New code should use
10706 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10707 as_echo='printf %s\n'
10708 as_echo_n='printf %s'
10709
10710 rm -f conf$$ conf$$.exe conf$$.file
10711 if test -d conf$$.dir; then
10712 rm -f conf$$.dir/conf$$.file
10713 else
10714 rm -f conf$$.dir
10715 mkdir conf$$.dir 2>/dev/null
10716 fi
10717 if (echo >conf$$.file) 2>/dev/null; then
10718 if ln -s conf$$.file conf$$ 2>/dev/null; then
10719 as_ln_s='ln -s'
10720 # ... but there are two gotchas:
10721 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
10722 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
10723 # In both cases, we have to default to 'cp -pR'.
10724 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10725 as_ln_s='cp -pR'
10726 elif ln conf$$.file conf$$ 2>/dev/null; then
10727 as_ln_s=ln
10728 else
10729 as_ln_s='cp -pR'
10730 fi
10731 else
10732 as_ln_s='cp -pR'
10733 fi
10734 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10735 rmdir conf$$.dir 2>/dev/null
10736
10737
10738 # as_fn_mkdir_p
10739 # -------------
10740 # Create "$as_dir" as a directory, including parents if necessary.
10741 as_fn_mkdir_p ()
10742 {
10743
10744 case $as_dir in #(
10745 -*) as_dir=./$as_dir;;
10746 esac
10747 test -d "$as_dir" || eval $as_mkdir_p || {
10748 as_dirs=
10749 while :; do
10750 case $as_dir in #(
10751 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10752 *) as_qdir=$as_dir;;
10753 esac
10754 as_dirs="'$as_qdir' $as_dirs"
10755 as_dir=`$as_dirname -- "$as_dir" ||
10756 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10757 X"$as_dir" : 'X\(//\)[^/]' \| \
10758 X"$as_dir" : 'X\(//\)$' \| \
10759 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10760 printf "%s\n" X"$as_dir" |
10761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10762 s//\1/
10763 q
10764 }
10765 /^X\(\/\/\)[^/].*/{
10766 s//\1/
10767 q
10768 }
10769 /^X\(\/\/\)$/{
10770 s//\1/
10771 q
10772 }
10773 /^X\(\/\).*/{
10774 s//\1/
10775 q
10776 }
10777 s/.*/./; q'`
10778 test -d "$as_dir" && break
10779 done
10780 test -z "$as_dirs" || eval "mkdir $as_dirs"
10781 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10782
10783
10784 } # as_fn_mkdir_p
10785 if mkdir -p . 2>/dev/null; then
10786 as_mkdir_p='mkdir -p "$as_dir"'
10787 else
10788 test -d ./-p && rmdir ./-p
10789 as_mkdir_p=false
10790 fi
10791
10792
10793 # as_fn_executable_p FILE
10794 # -----------------------
10795 # Test if FILE is an executable regular file.
10796 as_fn_executable_p ()
10797 {
10798 test -f "$1" && test -x "$1"
10799 } # as_fn_executable_p
10800 as_test_x='test -x'
10801 as_executable_p=as_fn_executable_p
10802
10803 # Sed expression to map a string onto a valid CPP name.
10804 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10805 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
10806
10807 # Sed expression to map a string onto a valid variable name.
10808 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10809 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
10810
10811
10812 exec 6>&1
10813 ## ----------------------------------- ##
10814 ## Main body of $CONFIG_STATUS script. ##
10815 ## ----------------------------------- ##
10816 _ASEOF
10817 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10818
10819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10820 # Save the log message, to keep $0 and so on meaningful, and to
10821 # report actual input values of CONFIG_FILES etc. instead of their
10822 # values after options handling.
10823 ac_log="
10824 This file was extended by tkimggif $as_me 2.1.1, which was
10825 generated by GNU Autoconf 2.72. Invocation command line was
10826
10827 CONFIG_FILES = $CONFIG_FILES
10828 CONFIG_HEADERS = $CONFIG_HEADERS
10829 CONFIG_LINKS = $CONFIG_LINKS
10830 CONFIG_COMMANDS = $CONFIG_COMMANDS
10831 $ $0 $@
10832
10833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10834 "
10835
10836 _ACEOF
10837
10838 case $ac_config_files in *"
10839 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10840 esac
10841
10842
10843
10844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10845 # Files that config.status was made for.
10846 config_files="$ac_config_files"
10847
10848 _ACEOF
10849
10850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10851 ac_cs_usage="\
10852 '$as_me' instantiates files and other configuration actions
10853 from templates according to the current configuration. Unless the files
10854 and actions are specified as TAGs, all are instantiated by default.
10855
10856 Usage: $0 [OPTION]... [TAG]...
10857
10858 -h, --help print this help, then exit
10859 -V, --version print version number and configuration settings, then exit
10860 --config print configuration, then exit
10861 -q, --quiet, --silent
10862 do not print progress messages
10863 -d, --debug don't remove temporary files
10864 --recheck update $as_me by reconfiguring in the same conditions
10865 --file=FILE[:TEMPLATE]
10866 instantiate the configuration file FILE
10867
10868 Configuration files:
10869 $config_files
10870
10871 Report bugs to the package provider."
10872
10873 _ACEOF
10874 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10875 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10877 ac_cs_config='$ac_cs_config_escaped'
10878 ac_cs_version="\\
10879 tkimggif config.status 2.1.1
10880 configured by $0, generated by GNU Autoconf 2.72,
10881 with options \\"\$ac_cs_config\\"
10882
10883 Copyright (C) 2023 Free Software Foundation, Inc.
10884 This config.status script is free software; the Free Software Foundation
10885 gives unlimited permission to copy, distribute and modify it."
10886
10887 ac_pwd='$ac_pwd'
10888 srcdir='$srcdir'
10889 test -n "\$AWK" || AWK=awk
10890 _ACEOF
10891
10892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10893 # The default lists apply if the user does not specify any file.
10894 ac_need_defaults=:
10895 while test $# != 0
10896 do
10897 case $1 in
10898 --*=?*)
10899 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10900 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10901 ac_shift=:
10902 ;;
10903 --*=)
10904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10905 ac_optarg=
10906 ac_shift=:
10907 ;;
10908 *)
10909 ac_option=$1
10910 ac_optarg=$2
10911 ac_shift=shift
10912 ;;
10913 esac
10914
10915 case $ac_option in
10916 # Handling of the options.
10917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10918 ac_cs_recheck=: ;;
10919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10920 printf "%s\n" "$ac_cs_version"; exit ;;
10921 --config | --confi | --conf | --con | --co | --c )
10922 printf "%s\n" "$ac_cs_config"; exit ;;
10923 --debug | --debu | --deb | --de | --d | -d )
10924 debug=: ;;
10925 --file | --fil | --fi | --f )
10926 $ac_shift
10927 case $ac_optarg in
10928 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10929 '') as_fn_error $? "missing file argument" ;;
10930 esac
10931 as_fn_append CONFIG_FILES " '$ac_optarg'"
10932 ac_need_defaults=false;;
10933 --he | --h | --help | --hel | -h )
10934 printf "%s\n" "$ac_cs_usage"; exit ;;
10935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10937 ac_cs_silent=: ;;
10938
10939 # This is an error.
10940 -*) as_fn_error $? "unrecognized option: '$1'
10941 Try '$0 --help' for more information." ;;
10942
10943 *) as_fn_append ac_config_targets " $1"
10944 ac_need_defaults=false ;;
10945
10946 esac
10947 shift
10948 done
10949
10950 ac_configure_extra_args=
10951
10952 if $ac_cs_silent; then
10953 exec 6>/dev/null
10954 ac_configure_extra_args="$ac_configure_extra_args --silent"
10955 fi
10956
10957 _ACEOF
10958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10959 if \$ac_cs_recheck; then
10960 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10961 shift
10962 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10963 CONFIG_SHELL='$SHELL'
10964 export CONFIG_SHELL
10965 exec "\$@"
10966 fi
10967
10968 _ACEOF
10969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10970 exec 5>>config.log
10971 {
10972 echo
10973 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10974 ## Running $as_me. ##
10975 _ASBOX
10976 printf "%s\n" "$ac_log"
10977 } >&5
10978
10979 _ACEOF
10980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10981 _ACEOF
10982
10983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10984
10985 # Handling of arguments.
10986 for ac_config_target in $ac_config_targets
10987 do
10988 case $ac_config_target in
10989 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10990
10991 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
10992 esac
10993 done
10994
10995
10996 # If the user did not use the arguments to specify the items to instantiate,
10997 # then the envvar interface is used. Set only those that are not.
10998 # We use the long form for the default assignment because of an extremely
10999 # bizarre bug on SunOS 4.1.3.
11000 if $ac_need_defaults; then
11001 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11002 fi
11003
11004 # Have a temporary directory for convenience. Make it in the build tree
11005 # simply because there is no reason against having it here, and in addition,
11006 # creating and moving files from /tmp can sometimes cause problems.
11007 # Hook for its removal unless debugging.
11008 # Note that there is a small window in which the directory will not be cleaned:
11009 # after its creation but before its name has been assigned to '$tmp'.
11010 $debug ||
11011 {
11012 tmp= ac_tmp=
11013 trap 'exit_status=$?
11014 : "${ac_tmp:=$tmp}"
11015 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11016 ' 0
11017 trap 'as_fn_exit 1' 1 2 13 15
11018 }
11019 # Create a (secure) tmp directory for tmp files.
11020
11021 {
11022 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11023 test -d "$tmp"
11024 } ||
11025 {
11026 tmp=./conf$$-$RANDOM
11027 (umask 077 && mkdir "$tmp")
11028 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11029 ac_tmp=$tmp
11030
11031 # Set up the scripts for CONFIG_FILES section.
11032 # No need to generate them if there are no CONFIG_FILES.
11033 # This happens for instance with './config.status config.h'.
11034 if test -n "$CONFIG_FILES"; then
11035
11036
11037 ac_cr=`echo X | tr X '\015'`
11038 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11039 # But we know of no other shell where ac_cr would be empty at this
11040 # point, so we can use a bashism as a fallback.
11041 if test "x$ac_cr" = x; then
11042 eval ac_cr=\$\'\\r\'
11043 fi
11044 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11045 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11046 ac_cs_awk_cr='\\r'
11047 else
11048 ac_cs_awk_cr=$ac_cr
11049 fi
11050
11051 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11052 _ACEOF
11053
11054
11055 {
11056 echo "cat >conf$$subs.awk <<_ACEOF" &&
11057 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11058 echo "_ACEOF"
11059 } >conf$$subs.sh ||
11060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11061 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11062 ac_delim='%!_!# '
11063 for ac_last_try in false false false false false :; do
11064 . ./conf$$subs.sh ||
11065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11066
11067 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11068 if test $ac_delim_n = $ac_delim_num; then
11069 break
11070 elif $ac_last_try; then
11071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11072 else
11073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11074 fi
11075 done
11076 rm -f conf$$subs.sh
11077
11078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11079 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11080 _ACEOF
11081 sed -n '
11082 h
11083 s/^/S["/; s/!.*/"]=/
11084 p
11085 g
11086 s/^[^!]*!//
11087 :repl
11088 t repl
11089 s/'"$ac_delim"'$//
11090 t delim
11091 :nl
11092 h
11093 s/\(.\{148\}\)..*/\1/
11094 t more1
11095 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11096 p
11097 n
11098 b repl
11099 :more1
11100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11101 p
11102 g
11103 s/.\{148\}//
11104 t nl
11105 :delim
11106 h
11107 s/\(.\{148\}\)..*/\1/
11108 t more2
11109 s/["\\]/\\&/g; s/^/"/; s/$/"/
11110 p
11111 b
11112 :more2
11113 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11114 p
11115 g
11116 s/.\{148\}//
11117 t delim
11118 ' <conf$$subs.awk | sed '
11119 /^[^""]/{
11120 N
11121 s/\n//
11122 }
11123 ' >>$CONFIG_STATUS || ac_write_fail=1
11124 rm -f conf$$subs.awk
11125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11126 _ACAWK
11127 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11128 for (key in S) S_is_set[key] = 1
11129 FS = ""
11130
11131 }
11132 {
11133 line = $ 0
11134 nfields = split(line, field, "@")
11135 substed = 0
11136 len = length(field[1])
11137 for (i = 2; i < nfields; i++) {
11138 key = field[i]
11139 keylen = length(key)
11140 if (S_is_set[key]) {
11141 value = S[key]
11142 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11143 len += length(value) + length(field[++i])
11144 substed = 1
11145 } else
11146 len += 1 + keylen
11147 }
11148
11149 print line
11150 }
11151
11152 _ACAWK
11153 _ACEOF
11154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11155 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11156 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11157 else
11158 cat
11159 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11160 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11161 _ACEOF
11162
11163 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11164 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11165 # trailing colons and then remove the whole line if VPATH becomes empty
11166 # (actually we leave an empty line to preserve line numbers).
11167 if test "x$srcdir" = x.; then
11168 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11169 h
11170 s///
11171 s/^/:/
11172 s/[ ]*$/:/
11173 s/:\$(srcdir):/:/g
11174 s/:\${srcdir}:/:/g
11175 s/:@srcdir@:/:/g
11176 s/^:*//
11177 s/:*$//
11178 x
11179 s/\(=[ ]*\).*/\1/
11180 G
11181 s/\n//
11182 s/^[^=]*=[ ]*$//
11183 }'
11184 fi
11185
11186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11187 fi # test -n "$CONFIG_FILES"
11188
11189
11190 eval set X " :F $CONFIG_FILES "
11191 shift
11192 for ac_tag
11193 do
11194 case $ac_tag in
11195 :[FHLC]) ac_mode=$ac_tag; continue;;
11196 esac
11197 case $ac_mode$ac_tag in
11198 :[FHL]*:*);;
11199 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
11200 :[FH]-) ac_tag=-:-;;
11201 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11202 esac
11203 ac_save_IFS=$IFS
11204 IFS=:
11205 set x $ac_tag
11206 IFS=$ac_save_IFS
11207 shift
11208 ac_file=$1
11209 shift
11210
11211 case $ac_mode in
11212 :L) ac_source=$1;;
11213 :[FH])
11214 ac_file_inputs=
11215 for ac_f
11216 do
11217 case $ac_f in
11218 -) ac_f="$ac_tmp/stdin";;
11219 *) # Look for the file first in the build tree, then in the source tree
11220 # (if the path is not absolute). The absolute path cannot be DOS-style,
11221 # because $ac_f cannot contain ':'.
11222 test -f "$ac_f" ||
11223 case $ac_f in
11224 [\\/$]*) false;;
11225 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11226 esac ||
11227 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
11228 esac
11229 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11230 as_fn_append ac_file_inputs " '$ac_f'"
11231 done
11232
11233 # Let's still pretend it is 'configure' which instantiates (i.e., don't
11234 # use $as_me), people would be surprised to read:
11235 # /* config.h. Generated by config.status. */
11236 configure_input='Generated from '`
11237 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11238 `' by configure.'
11239 if test x"$ac_file" != x-; then
11240 configure_input="$ac_file. $configure_input"
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11242 printf "%s\n" "$as_me: creating $ac_file" >&6;}
11243 fi
11244 # Neutralize special characters interpreted by sed in replacement strings.
11245 case $configure_input in #(
11246 *\&* | *\|* | *\\* )
11247 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
11248 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11249 *) ac_sed_conf_input=$configure_input;;
11250 esac
11251
11252 case $ac_tag in
11253 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11255 esac
11256 ;;
11257 esac
11258
11259 ac_dir=`$as_dirname -- "$ac_file" ||
11260 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11261 X"$ac_file" : 'X\(//\)[^/]' \| \
11262 X"$ac_file" : 'X\(//\)$' \| \
11263 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11264 printf "%s\n" X"$ac_file" |
11265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11266 s//\1/
11267 q
11268 }
11269 /^X\(\/\/\)[^/].*/{
11270 s//\1/
11271 q
11272 }
11273 /^X\(\/\/\)$/{
11274 s//\1/
11275 q
11276 }
11277 /^X\(\/\).*/{
11278 s//\1/
11279 q
11280 }
11281 s/.*/./; q'`
11282 as_dir="$ac_dir"; as_fn_mkdir_p
11283 ac_builddir=.
11284
11285 case "$ac_dir" in
11286 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11287 *)
11288 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11289 # A ".." for each directory in $ac_dir_suffix.
11290 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11291 case $ac_top_builddir_sub in
11292 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11293 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11294 esac ;;
11295 esac
11296 ac_abs_top_builddir=$ac_pwd
11297 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11298 # for backward compatibility:
11299 ac_top_builddir=$ac_top_build_prefix
11300
11301 case $srcdir in
11302 .) # We are building in place.
11303 ac_srcdir=.
11304 ac_top_srcdir=$ac_top_builddir_sub
11305 ac_abs_top_srcdir=$ac_pwd ;;
11306 [\\/]* | ?:[\\/]* ) # Absolute name.
11307 ac_srcdir=$srcdir$ac_dir_suffix;
11308 ac_top_srcdir=$srcdir
11309 ac_abs_top_srcdir=$srcdir ;;
11310 *) # Relative name.
11311 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11312 ac_top_srcdir=$ac_top_build_prefix$srcdir
11313 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11314 esac
11315 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11316
11317
11318 case $ac_mode in
11319 :F)
11320 #
11321 # CONFIG_FILE
11322 #
11323
11324 _ACEOF
11325
11326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11327 # If the template does not know about datarootdir, expand it.
11328 # FIXME: This hack should be removed a few years after 2.60.
11329 ac_datarootdir_hack=; ac_datarootdir_seen=
11330 ac_sed_dataroot='
11331 /datarootdir/ {
11332 p
11333 q
11334 }
11335 /@datadir@/p
11336 /@docdir@/p
11337 /@infodir@/p
11338 /@localedir@/p
11339 /@mandir@/p'
11340 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11341 *datarootdir*) ac_datarootdir_seen=yes;;
11342 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11344 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11345 _ACEOF
11346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11347 ac_datarootdir_hack='
11348 s&@datadir@&$datadir&g
11349 s&@docdir@&$docdir&g
11350 s&@infodir@&$infodir&g
11351 s&@localedir@&$localedir&g
11352 s&@mandir@&$mandir&g
11353 s&\\\${datarootdir}&$datarootdir&g' ;;
11354 esac
11355 _ACEOF
11356
11357 # Neutralize VPATH when '$srcdir' = '.'.
11358 # Shell code in configure.ac might set extrasub.
11359 # FIXME: do we really want to maintain this feature?
11360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11361 ac_sed_extra="$ac_vpsub
11362 $extrasub
11363 _ACEOF
11364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11365 :t
11366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11367 s|@configure_input@|$ac_sed_conf_input|;t t
11368 s&@top_builddir@&$ac_top_builddir_sub&;t t
11369 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11370 s&@srcdir@&$ac_srcdir&;t t
11371 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11372 s&@top_srcdir@&$ac_top_srcdir&;t t
11373 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11374 s&@builddir@&$ac_builddir&;t t
11375 s&@abs_builddir@&$ac_abs_builddir&;t t
11376 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11377 $ac_datarootdir_hack
11378 "
11379 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11380 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11381
11382 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11383 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11385 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
11387 which seems to be undefined. Please make sure it is defined" >&5
11388 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
11389 which seems to be undefined. Please make sure it is defined" >&2;}
11390
11391 rm -f "$ac_tmp/stdin"
11392 case $ac_file in
11393 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11394 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11395 esac \
11396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11397 ;;
11398
11399
11400
11401 esac
11402
11403 done # for ac_tag
11404
11405
11406 as_fn_exit 0
11407 _ACEOF
11408 ac_clean_files=$ac_clean_files_save
11409
11410 test $ac_write_fail = 0 ||
11411 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11412
11413
11414 # configure is writing to config.log, and then calls config.status.
11415 # config.status does its own redirection, appending to config.log.
11416 # Unfortunately, on DOS this fails, as config.log is still kept open
11417 # by configure, so config.status won't be able to write to it; its
11418 # output is simply discarded. So we exec the FD to /dev/null,
11419 # effectively closing config.log, so it can be properly (re)opened and
11420 # appended to by config.status. When coming back to configure, we
11421 # need to make the FD available again.
11422 if test "$no_create" != yes; then
11423 ac_cs_success=:
11424 ac_config_status_args=
11425 test "$silent" = yes &&
11426 ac_config_status_args="$ac_config_status_args --quiet"
11427 exec 5>/dev/null
11428 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11429 exec 5>>config.log
11430 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11431 # would make configure fail if this is the last instruction.
11432 $ac_cs_success || as_fn_exit 1
11433 fi
11434 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11436 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11437 fi
11438
11439
11440 #--------------------------------------------------------------------
11441