Debian Codegraph @

libtiff/configure

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