Debian Codegraph @

libtiff/configure

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
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 # Run the configuration of TIFF itself, and do some special checks
5701 # to if the configuration agrees with the sources of tiff itself.
5702 # F.e. tiff is hardwired to use "stdarg.h". If the chosen compiler
5703 # does not support this we have to bail out.
5704 #--------------------------------------------------------------------
5705
5706 if test `grep STDC_HEADERS confdefs.h | wc -l` -eq 0
5707 then
5708 as_fn_error $? "Compiler does not use stdarg.h, required for TIFF" "$LINENO" 5
5709 fi
5710
5711 mv -f confdefs.h tifftcl_confdefs.h
5712 if test "X$host" = X -o "X$host" = XNONE
5713 then
5714 TIFFHOST=""
5715 else
5716 TIFFHOST="$host"
5717 fi
5718 ${srcdir}/../compat/libtiff/configure --disable-zlib --disable-zstd --disable-lzma \
5719 --disable-pixarlog --disable-jpeg --disable-jbig --disable-webp --disable-lerc \
5720 "--with-CC=$TIFFCC" $TIFFHOST
5721 mv -f tifftcl_confdefs.h confdefs.h
5722
5723 #-----------------------------------------------------------------------
5724 # Specify the C source files to compile in TEA_ADD_SOURCES,
5725 # public headers that need to be installed in TEA_ADD_HEADERS,
5726 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
5727 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
5728 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
5729 # and PKG_TCL_SOURCES.
5730 #-----------------------------------------------------------------------
5731
5732
5733 vars="tifftcl.c tifftclStubInit.c"
5734 for i in $vars; do
5735 case $i in
5736 \$*)
5737 # allow $-var names
5738 PKG_SOURCES="$PKG_SOURCES $i"
5739 PKG_OBJECTS="$PKG_OBJECTS $i"
5740 ;;
5741 *)
5742 # check for existence - allows for generic/win/unix VPATH
5743 # To add more dirs here (like 'src'), you have to update VPATH
5744 # in Makefile.in as well
5745 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5746 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5747 -a ! -f "${srcdir}/macosx/$i" \
5748 ; then
5749 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
5750 fi
5751 PKG_SOURCES="$PKG_SOURCES $i"
5752 # this assumes it is in a VPATH dir
5753 i=`basename $i`
5754 # handle user calling this before or after TEA_SETUP_COMPILER
5755 if test x"${OBJEXT}" != x ; then
5756 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5757 else
5758 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5759 fi
5760 PKG_OBJECTS="$PKG_OBJECTS $j"
5761 ;;
5762 esac
5763 done
5764
5765
5766
5767
5768
5769 vars="
5770 ../compat/libtiff/libtiff/tif_aux.c ../compat/libtiff/libtiff/tif_close.c ../compat/libtiff/libtiff/tif_codec.c
5771 ../compat/libtiff/libtiff/tif_compress.c ../compat/libtiff/libtiff/tif_dir.c ../compat/libtiff/libtiff/tif_dirinfo.c
5772 ../compat/libtiff/libtiff/tif_dirread.c ../compat/libtiff/libtiff/tif_dirwrite.c ../compat/libtiff/libtiff/tif_dumpmode.c
5773 ../compat/libtiff/libtiff/tif_error.c ../compat/libtiff/libtiff/tif_fax3.c ../compat/libtiff/libtiff/tif_hash_set.c
5774 ../compat/libtiff/libtiff/tif_getimage.c ../compat/libtiff/libtiff/tif_flush.c ../compat/libtiff/libtiff/tif_luv.c
5775 ../compat/libtiff/libtiff/tif_lzw.c ../compat/libtiff/libtiff/tif_next.c ../compat/libtiff/libtiff/tif_open.c
5776 ../compat/libtiff/libtiff/tif_packbits.c ../compat/libtiff/libtiff/tif_predict.c ../compat/libtiff/libtiff/tif_print.c
5777 ../compat/libtiff/libtiff/tif_read.c ../compat/libtiff/libtiff/tif_swab.c ../compat/libtiff/libtiff/tif_strip.c
5778 ../compat/libtiff/libtiff/tif_thunder.c ../compat/libtiff/libtiff/tif_tile.c ../compat/libtiff/libtiff/tif_version.c
5779 ../compat/libtiff/libtiff/tif_warning.c ../compat/libtiff/libtiff/tif_write.c
5780 ../compat/libtiff/libtiff/tif_color.c ../compat/libtiff/libtiff/tif_extension.c ../compat/libtiff/libtiff/tif_fax3sm.c
5781 "
5782 for i in $vars; do
5783 case $i in
5784 \$*)
5785 # allow $-var names
5786 PKG_SOURCES="$PKG_SOURCES $i"
5787 PKG_OBJECTS="$PKG_OBJECTS $i"
5788 ;;
5789 *)
5790 # check for existence - allows for generic/win/unix VPATH
5791 # To add more dirs here (like 'src'), you have to update VPATH
5792 # in Makefile.in as well
5793 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5794 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5795 -a ! -f "${srcdir}/macosx/$i" \
5796 ; then
5797 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
5798 fi
5799 PKG_SOURCES="$PKG_SOURCES $i"
5800 # this assumes it is in a VPATH dir
5801 i=`basename $i`
5802 # handle user calling this before or after TEA_SETUP_COMPILER
5803 if test x"${OBJEXT}" != x ; then
5804 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5805 else
5806 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5807 fi
5808 PKG_OBJECTS="$PKG_OBJECTS $j"
5809 ;;
5810 esac
5811 done
5812
5813
5814
5815
5816
5817 vars="tifftcl.h tifftclDecls.h"
5818 for i in $vars; do
5819 # check for existence, be strict because it is installed
5820 if test ! -f "${srcdir}/$i" ; then
5821 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
5822 fi
5823 PKG_HEADERS="$PKG_HEADERS $i"
5824 done
5825
5826
5827
5828 vars="-I\"`\${CYGPATH} \${srcdir}`\""
5829 for i in $vars; do
5830 PKG_INCLUDES="$PKG_INCLUDES $i"
5831 done
5832
5833
5834
5835 vars="-I\"./libtiff\""
5836 for i in $vars; do
5837 PKG_INCLUDES="$PKG_INCLUDES $i"
5838 done
5839
5840
5841
5842 vars="-I\"`\${CYGPATH} \${srcdir}/../compat/libtiff/libtiff`\""
5843 for i in $vars; do
5844 PKG_INCLUDES="$PKG_INCLUDES $i"
5845 done
5846
5847
5848
5849 vars="tifftclStubLib.c"
5850 for i in $vars; do
5851 # check for existence - allows for generic/win/unix VPATH
5852 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5853 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5854 -a ! -f "${srcdir}/macosx/$i" \
5855 ; then
5856 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
5857 fi
5858 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
5859 # this assumes it is in a VPATH dir
5860 i=`basename $i`
5861 # handle user calling this before or after TEA_SETUP_COMPILER
5862 if test x"${OBJEXT}" != x ; then
5863 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5864 else
5865 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5866 fi
5867 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
5868 done
5869
5870
5871
5872
5873 vars="tifftclStubLib.c"
5874 for i in $vars; do
5875 case $i in
5876 \$*)
5877 # allow $-var names
5878 PKG_SOURCES="$PKG_SOURCES $i"
5879 PKG_OBJECTS="$PKG_OBJECTS $i"
5880 ;;
5881 *)
5882 # check for existence - allows for generic/win/unix VPATH
5883 # To add more dirs here (like 'src'), you have to update VPATH
5884 # in Makefile.in as well
5885 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5886 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5887 -a ! -f "${srcdir}/macosx/$i" \
5888 ; then
5889 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
5890 fi
5891 PKG_SOURCES="$PKG_SOURCES $i"
5892 # this assumes it is in a VPATH dir
5893 i=`basename $i`
5894 # handle user calling this before or after TEA_SETUP_COMPILER
5895 if test x"${OBJEXT}" != x ; then
5896 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5897 else
5898 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5899 fi
5900 PKG_OBJECTS="$PKG_OBJECTS $j"
5901 ;;
5902 esac
5903 done
5904
5905
5906
5907
5908 vars=""
5909 for i in $vars; do
5910 # check for existence, be strict because it is installed
5911 if test ! -f "${srcdir}/$i" ; then
5912 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
5913 fi
5914 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
5915 done
5916
5917
5918
5919 #--------------------------------------------------------------------
5920 # __CHANGE__
5921 # Choose which headers you need. Extension authors should try very
5922 # hard to only rely on the Tcl public header files. Internal headers
5923 # contain private data structures and are subject to change without
5924 # notice.
5925 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
5926 #--------------------------------------------------------------------
5927
5928
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
5930 printf %s "checking for Tcl public headers... " >&6; }
5931
5932
5933 # Check whether --with-tclinclude was given.
5934 if test ${with_tclinclude+y}
5935 then :
5936 withval=$with_tclinclude; with_tclinclude=${withval}
5937 fi
5938
5939
5940 if test ${ac_cv_c_tclh+y}
5941 then :
5942 printf %s "(cached) " >&6
5943 else case e in #(
5944 e)
5945 # Use the value from --with-tclinclude, if it was given
5946
5947 if test x"${with_tclinclude}" != x ; then
5948 if test -f "${with_tclinclude}/tcl.h" ; then
5949 ac_cv_c_tclh=${with_tclinclude}
5950 else
5951 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
5952 fi
5953 else
5954 list=""
5955 if test "`uname -s`" = "Darwin"; then
5956 # If Tcl was built as a framework, attempt to use
5957 # the framework's Headers directory
5958 case ${TCL_DEFS} in
5959 *TCL_FRAMEWORK*)
5960 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
5961 ;;
5962 esac
5963 fi
5964
5965 # Look in the source dir only if Tcl is not installed,
5966 # and in that situation, look there before installed locations.
5967 if test -f "${TCL_BIN_DIR}/Makefile" ; then
5968 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
5969 fi
5970
5971 # Check order: pkg --prefix location, Tcl's --prefix location,
5972 # relative to directory of tclConfig.sh.
5973
5974 eval "temp_includedir=${includedir}"
5975 list="$list \
5976 `ls -d ${temp_includedir} 2>/dev/null` \
5977 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
5978 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
5979 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
5980 list="$list /usr/local/include /usr/include"
5981 if test x"${TCL_INCLUDE_SPEC}" != x ; then
5982 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
5983 list="$list `ls -d ${d} 2>/dev/null`"
5984 fi
5985 fi
5986 for i in $list ; do
5987 if test -f "$i/tcl.h" ; then
5988 ac_cv_c_tclh=$i
5989 break
5990 fi
5991 done
5992 fi
5993 ;;
5994 esac
5995 fi
5996
5997
5998 # Print a message based on how we determined the include path
5999
6000 if test x"${ac_cv_c_tclh}" = x ; then
6001 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
6002 else
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
6004 printf "%s\n" "${ac_cv_c_tclh}" >&6; }
6005 fi
6006
6007 # Convert to a native path and substitute into the output files.
6008
6009 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
6010
6011 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6012
6013
6014
6015
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk public headers" >&5
6017 printf %s "checking for Tk public headers... " >&6; }
6018
6019
6020 # Check whether --with-tkinclude was given.
6021 if test ${with_tkinclude+y}
6022 then :
6023 withval=$with_tkinclude; with_tkinclude=${withval}
6024 fi
6025
6026
6027 if test ${ac_cv_c_tkh+y}
6028 then :
6029 printf %s "(cached) " >&6
6030 else case e in #(
6031 e)
6032 # Use the value from --with-tkinclude, if it was given
6033
6034 if test x"${with_tkinclude}" != x ; then
6035 if test -f "${with_tkinclude}/tk.h" ; then
6036 ac_cv_c_tkh=${with_tkinclude}
6037 else
6038 as_fn_error $? "${with_tkinclude} directory does not contain tk.h" "$LINENO" 5
6039 fi
6040 else
6041 list=""
6042 if test "`uname -s`" = "Darwin"; then
6043 # If Tk was built as a framework, attempt to use
6044 # the framework's Headers directory.
6045 case ${TK_DEFS} in
6046 *TK_FRAMEWORK*)
6047 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`"
6048 ;;
6049 esac
6050 fi
6051
6052 # Look in the source dir only if Tk is not installed,
6053 # and in that situation, look there before installed locations.
6054 if test -f "${TK_BIN_DIR}/Makefile" ; then
6055 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`"
6056 fi
6057
6058 # Check order: pkg --prefix location, Tk's --prefix location,
6059 # relative to directory of tkConfig.sh, Tcl's --prefix location,
6060 # relative to directory of tclConfig.sh.
6061
6062 eval "temp_includedir=${includedir}"
6063 list="$list \
6064 `ls -d ${temp_includedir} 2>/dev/null` \
6065 `ls -d ${TK_PREFIX}/include 2>/dev/null` \
6066 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \
6067 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6068 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6069 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6070 list="$list /usr/local/include /usr/include"
6071 if test x"${TK_INCLUDE_SPEC}" != x ; then
6072 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6073 list="$list `ls -d ${d} 2>/dev/null`"
6074 fi
6075 fi
6076 for i in $list ; do
6077 if test -f "$i/tk.h" ; then
6078 ac_cv_c_tkh=$i
6079 break
6080 fi
6081 done
6082 fi
6083 ;;
6084 esac
6085 fi
6086
6087
6088 # Print a message based on how we determined the include path
6089
6090 if test x"${ac_cv_c_tkh}" = x ; then
6091 as_fn_error $? "tk.h not found. Please specify its location with --with-tkinclude" "$LINENO" 5
6092 else
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tkh}" >&5
6094 printf "%s\n" "${ac_cv_c_tkh}" >&6; }
6095 fi
6096
6097 # Convert to a native path and substitute into the output files.
6098
6099 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}`
6100
6101 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6102
6103
6104
6105 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then
6106 # On Windows and Aqua, we need the X compat headers
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
6108 printf %s "checking for X11 header files... " >&6; }
6109 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then
6110 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`"
6111 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6112
6113 fi
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${INCLUDE_DIR_NATIVE}" >&5
6115 printf "%s\n" "${INCLUDE_DIR_NATIVE}" >&6; }
6116 fi
6117
6118
6119 #--------------------------------------------------------------------
6120 # A few miscellaneous platform-specific items:
6121 #
6122 # Windows creates a few extra files that need to be cleaned up.
6123 # We can add more files to clean if our extension creates any extra
6124 # files in the future.
6125 #
6126 # Define any extra compiler flags in the PACKAGE_CFLAGS variable.
6127 # These will be appended to the current set of compiler flags for
6128 # your system.
6129 #--------------------------------------------------------------------
6130
6131 if test "${TEA_PLATFORM}" = "windows" ; then
6132 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6133
6134 vars="../compat/libtiff/libtiff/tif_win32.c"
6135 for i in $vars; do
6136 case $i in
6137 \$*)
6138 # allow $-var names
6139 PKG_SOURCES="$PKG_SOURCES $i"
6140 PKG_OBJECTS="$PKG_OBJECTS $i"
6141 ;;
6142 *)
6143 # check for existence - allows for generic/win/unix VPATH
6144 # To add more dirs here (like 'src'), you have to update VPATH
6145 # in Makefile.in as well
6146 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6147 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6148 -a ! -f "${srcdir}/macosx/$i" \
6149 ; then
6150 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
6151 fi
6152 PKG_SOURCES="$PKG_SOURCES $i"
6153 # this assumes it is in a VPATH dir
6154 i=`basename $i`
6155 # handle user calling this before or after TEA_SETUP_COMPILER
6156 if test x"${OBJEXT}" != x ; then
6157 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6158 else
6159 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6160 fi
6161 PKG_OBJECTS="$PKG_OBJECTS $j"
6162 ;;
6163 esac
6164 done
6165
6166
6167
6168 else
6169 CLEANFILES=""
6170
6171 vars="../compat/libtiff/libtiff/tif_unix.c"
6172 for i in $vars; do
6173 case $i in
6174 \$*)
6175 # allow $-var names
6176 PKG_SOURCES="$PKG_SOURCES $i"
6177 PKG_OBJECTS="$PKG_OBJECTS $i"
6178 ;;
6179 *)
6180 # check for existence - allows for generic/win/unix VPATH
6181 # To add more dirs here (like 'src'), you have to update VPATH
6182 # in Makefile.in as well
6183 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
6184 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
6185 -a ! -f "${srcdir}/macosx/$i" \
6186 ; then
6187 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
6188 fi
6189 PKG_SOURCES="$PKG_SOURCES $i"
6190 # this assumes it is in a VPATH dir
6191 i=`basename $i`
6192 # handle user calling this before or after TEA_SETUP_COMPILER
6193 if test x"${OBJEXT}" != x ; then
6194 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
6195 else
6196 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
6197 fi
6198 PKG_OBJECTS="$PKG_OBJECTS $j"
6199 ;;
6200 esac
6201 done
6202
6203
6204
6205 fi
6206
6207
6208 #--------------------------------------------------------------------
6209 # Check whether --enable-threads or --disable-threads was given.
6210 # So far only Tcl responds to this one.
6211 #--------------------------------------------------------------------
6212
6213
6214 # Check whether --enable-threads was given.
6215 if test ${enable_threads+y}
6216 then :
6217 enableval=$enable_threads; tcl_ok=$enableval
6218 else case e in #(
6219 e) tcl_ok=yes ;;
6220 esac
6221 fi
6222
6223
6224 if test "${enable_threads+set}" = set; then
6225 enableval="$enable_threads"
6226 tcl_ok=$enableval
6227 else
6228 tcl_ok=yes
6229 fi
6230
6231 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
6232 TCL_THREADS=1
6233
6234 if test "${TEA_PLATFORM}" != "windows" ; then
6235 # We are always OK on Windows, so check what this platform wants:
6236
6237 # USE_THREAD_ALLOC tells us to try the special thread-based
6238 # allocator that significantly reduces lock contention
6239
6240 printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h
6241
6242
6243 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
6244
6245 if test "`uname -s`" = "SunOS" ; then
6246
6247 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6248
6249 fi
6250
6251 printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
6252
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
6254 printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
6255 if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
6256 then :
6257 printf %s "(cached) " >&6
6258 else case e in #(
6259 e) ac_check_lib_save_LIBS=$LIBS
6260 LIBS="-lpthread $LIBS"
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263
6264 /* Override any GCC internal prototype to avoid an error.
6265 Use char because int might match the return type of a GCC
6266 builtin and then its argument prototype would still apply.
6267 The 'extern "C"' is for builds by C++ compilers;
6268 although this is not generally supported in C code supporting it here
6269 has little cost and some practical benefit (sr 110532). */
6270 #ifdef __cplusplus
6271 extern "C"
6272 #endif
6273 char pthread_mutex_init (void);
6274 int
6275 main (void)
6276 {
6277 return pthread_mutex_init ();
6278 ;
6279 return 0;
6280 }
6281 _ACEOF
6282 if ac_fn_c_try_link "$LINENO"
6283 then :
6284 ac_cv_lib_pthread_pthread_mutex_init=yes
6285 else case e in #(
6286 e) ac_cv_lib_pthread_pthread_mutex_init=no ;;
6287 esac
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6290 conftest$ac_exeext conftest.$ac_ext
6291 LIBS=$ac_check_lib_save_LIBS ;;
6292 esac
6293 fi
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6295 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6296 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
6297 then :
6298 tcl_ok=yes
6299 else case e in #(
6300 e) tcl_ok=no ;;
6301 esac
6302 fi
6303
6304 if test "$tcl_ok" = "no"; then
6305 # Check a little harder for __pthread_mutex_init in the same
6306 # library, as some systems hide it there until pthread.h is
6307 # defined. We could alternatively do an AC_TRY_COMPILE with
6308 # pthread.h, but that will work with libpthread really doesn't
6309 # exist, like AIX 4.2. [Bug: 4359]
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
6311 printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; }
6312 if test ${ac_cv_lib_pthread___pthread_mutex_init+y}
6313 then :
6314 printf %s "(cached) " >&6
6315 else case e in #(
6316 e) ac_check_lib_save_LIBS=$LIBS
6317 LIBS="-lpthread $LIBS"
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320
6321 /* Override any GCC internal prototype to avoid an error.
6322 Use char because int might match the return type of a GCC
6323 builtin and then its argument prototype would still apply.
6324 The 'extern "C"' is for builds by C++ compilers;
6325 although this is not generally supported in C code supporting it here
6326 has little cost and some practical benefit (sr 110532). */
6327 #ifdef __cplusplus
6328 extern "C"
6329 #endif
6330 char __pthread_mutex_init (void);
6331 int
6332 main (void)
6333 {
6334 return __pthread_mutex_init ();
6335 ;
6336 return 0;
6337 }
6338 _ACEOF
6339 if ac_fn_c_try_link "$LINENO"
6340 then :
6341 ac_cv_lib_pthread___pthread_mutex_init=yes
6342 else case e in #(
6343 e) ac_cv_lib_pthread___pthread_mutex_init=no ;;
6344 esac
6345 fi
6346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6347 conftest$ac_exeext conftest.$ac_ext
6348 LIBS=$ac_check_lib_save_LIBS ;;
6349 esac
6350 fi
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
6352 printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
6353 if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes
6354 then :
6355 tcl_ok=yes
6356 else case e in #(
6357 e) tcl_ok=no ;;
6358 esac
6359 fi
6360
6361 fi
6362
6363 if test "$tcl_ok" = "yes"; then
6364 # The space is needed
6365 THREADS_LIBS=" -lpthread"
6366 else
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
6368 printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; }
6369 if test ${ac_cv_lib_pthreads_pthread_mutex_init+y}
6370 then :
6371 printf %s "(cached) " >&6
6372 else case e in #(
6373 e) ac_check_lib_save_LIBS=$LIBS
6374 LIBS="-lpthreads $LIBS"
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6377
6378 /* Override any GCC internal prototype to avoid an error.
6379 Use char because int might match the return type of a GCC
6380 builtin and then its argument prototype would still apply.
6381 The 'extern "C"' is for builds by C++ compilers;
6382 although this is not generally supported in C code supporting it here
6383 has little cost and some practical benefit (sr 110532). */
6384 #ifdef __cplusplus
6385 extern "C"
6386 #endif
6387 char pthread_mutex_init (void);
6388 int
6389 main (void)
6390 {
6391 return pthread_mutex_init ();
6392 ;
6393 return 0;
6394 }
6395 _ACEOF
6396 if ac_fn_c_try_link "$LINENO"
6397 then :
6398 ac_cv_lib_pthreads_pthread_mutex_init=yes
6399 else case e in #(
6400 e) ac_cv_lib_pthreads_pthread_mutex_init=no ;;
6401 esac
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6404 conftest$ac_exeext conftest.$ac_ext
6405 LIBS=$ac_check_lib_save_LIBS ;;
6406 esac
6407 fi
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
6409 printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
6410 if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes
6411 then :
6412 tcl_ok=yes
6413 else case e in #(
6414 e) tcl_ok=no ;;
6415 esac
6416 fi
6417
6418 if test "$tcl_ok" = "yes"; then
6419 # The space is needed
6420 THREADS_LIBS=" -lpthreads"
6421 else
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
6423 printf %s "checking for pthread_mutex_init in -lc... " >&6; }
6424 if test ${ac_cv_lib_c_pthread_mutex_init+y}
6425 then :
6426 printf %s "(cached) " >&6
6427 else case e in #(
6428 e) ac_check_lib_save_LIBS=$LIBS
6429 LIBS="-lc $LIBS"
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432
6433 /* Override any GCC internal prototype to avoid an error.
6434 Use char because int might match the return type of a GCC
6435 builtin and then its argument prototype would still apply.
6436 The 'extern "C"' is for builds by C++ compilers;
6437 although this is not generally supported in C code supporting it here
6438 has little cost and some practical benefit (sr 110532). */
6439 #ifdef __cplusplus
6440 extern "C"
6441 #endif
6442 char pthread_mutex_init (void);
6443 int
6444 main (void)
6445 {
6446 return pthread_mutex_init ();
6447 ;
6448 return 0;
6449 }
6450 _ACEOF
6451 if ac_fn_c_try_link "$LINENO"
6452 then :
6453 ac_cv_lib_c_pthread_mutex_init=yes
6454 else case e in #(
6455 e) ac_cv_lib_c_pthread_mutex_init=no ;;
6456 esac
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6459 conftest$ac_exeext conftest.$ac_ext
6460 LIBS=$ac_check_lib_save_LIBS ;;
6461 esac
6462 fi
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
6464 printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; }
6465 if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes
6466 then :
6467 tcl_ok=yes
6468 else case e in #(
6469 e) tcl_ok=no ;;
6470 esac
6471 fi
6472
6473 if test "$tcl_ok" = "no"; then
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
6475 printf %s "checking for pthread_mutex_init in -lc_r... " >&6; }
6476 if test ${ac_cv_lib_c_r_pthread_mutex_init+y}
6477 then :
6478 printf %s "(cached) " >&6
6479 else case e in #(
6480 e) ac_check_lib_save_LIBS=$LIBS
6481 LIBS="-lc_r $LIBS"
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484
6485 /* Override any GCC internal prototype to avoid an error.
6486 Use char because int might match the return type of a GCC
6487 builtin and then its argument prototype would still apply.
6488 The 'extern "C"' is for builds by C++ compilers;
6489 although this is not generally supported in C code supporting it here
6490 has little cost and some practical benefit (sr 110532). */
6491 #ifdef __cplusplus
6492 extern "C"
6493 #endif
6494 char pthread_mutex_init (void);
6495 int
6496 main (void)
6497 {
6498 return pthread_mutex_init ();
6499 ;
6500 return 0;
6501 }
6502 _ACEOF
6503 if ac_fn_c_try_link "$LINENO"
6504 then :
6505 ac_cv_lib_c_r_pthread_mutex_init=yes
6506 else case e in #(
6507 e) ac_cv_lib_c_r_pthread_mutex_init=no ;;
6508 esac
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6511 conftest$ac_exeext conftest.$ac_ext
6512 LIBS=$ac_check_lib_save_LIBS ;;
6513 esac
6514 fi
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
6516 printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
6517 if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes
6518 then :
6519 tcl_ok=yes
6520 else case e in #(
6521 e) tcl_ok=no ;;
6522 esac
6523 fi
6524
6525 if test "$tcl_ok" = "yes"; then
6526 # The space is needed
6527 THREADS_LIBS=" -pthread"
6528 else
6529 TCL_THREADS=0
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
6531 printf "%s\n" "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
6532 fi
6533 fi
6534 fi
6535 fi
6536 fi
6537 else
6538 TCL_THREADS=0
6539 fi
6540 # Do checking message here to not mess up interleaved configure output
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
6542 printf %s "checking for building with threads... " >&6; }
6543 if test "${TCL_THREADS}" = 1; then
6544
6545 printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h
6546
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
6548 printf "%s\n" "yes (default)" >&6; }
6549 else
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 printf "%s\n" "no" >&6; }
6552 fi
6553 # TCL_THREADS sanity checking. See if our request for building with
6554 # threads is the same as the way Tcl was built. If not, warn the user.
6555 case ${TCL_DEFS} in
6556 *THREADS=1*)
6557 if test "${TCL_THREADS}" = "0"; then
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
6559 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
6560 that IS thread-enabled. It is recommended to use --enable-threads." >&5
6561 printf "%s\n" "$as_me: WARNING:
6562 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
6563 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
6564 fi
6565 ;;
6566 esac
6567
6568
6569
6570 #--------------------------------------------------------------------
6571 # The statement below defines a collection of symbols related to
6572 # building as a shared library instead of a static library.
6573 #--------------------------------------------------------------------
6574
6575
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
6577 printf %s "checking how to build libraries... " >&6; }
6578 # Check whether --enable-shared was given.
6579 if test ${enable_shared+y}
6580 then :
6581 enableval=$enable_shared; shared_ok=$enableval
6582 else case e in #(
6583 e) shared_ok=yes ;;
6584 esac
6585 fi
6586
6587
6588 if test "${enable_shared+set}" = set; then
6589 enableval="$enable_shared"
6590 shared_ok=$enableval
6591 else
6592 shared_ok=yes
6593 fi
6594
6595 # Check whether --enable-stubs was given.
6596 if test ${enable_stubs+y}
6597 then :
6598 enableval=$enable_stubs; stubs_ok=$enableval
6599 else case e in #(
6600 e) stubs_ok=yes ;;
6601 esac
6602 fi
6603
6604
6605 if test "${enable_stubs+set}" = set; then
6606 enableval="$enable_stubs"
6607 stubs_ok=$enableval
6608 else
6609 stubs_ok=yes
6610 fi
6611
6612 # Stubs are always enabled for shared builds
6613 if test "$shared_ok" = "yes" ; then
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
6615 printf "%s\n" "shared" >&6; }
6616 SHARED_BUILD=1
6617 STUBS_BUILD=1
6618 else
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
6620 printf "%s\n" "static" >&6; }
6621 SHARED_BUILD=0
6622
6623 printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h
6624
6625 if test "$stubs_ok" = "yes" ; then
6626 STUBS_BUILD=1
6627 else
6628 STUBS_BUILD=0
6629 fi
6630 fi
6631 if test "${STUBS_BUILD}" = "1" ; then
6632
6633 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
6634
6635
6636 printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h
6637
6638 if test "${TEA_WINDOWINGSYSTEM}" != ""; then
6639
6640 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
6641
6642 fi
6643 fi
6644
6645
6646
6647
6648
6649 #--------------------------------------------------------------------
6650 # This macro figures out what flags to use with the compiler/linker
6651 # when building shared/static debug/optimized objects. This information
6652 # can be taken from the tclConfig.sh file, but this figures it all out.
6653 #--------------------------------------------------------------------
6654
6655 if test -n "$ac_tool_prefix"; then
6656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 printf %s "checking for $ac_word... " >&6; }
6660 if test ${ac_cv_prog_RANLIB+y}
6661 then :
6662 printf %s "(cached) " >&6
6663 else case e in #(
6664 e) if test -n "$RANLIB"; then
6665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6666 else
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670 IFS=$as_save_IFS
6671 case $as_dir in #(((
6672 '') as_dir=./ ;;
6673 */) ;;
6674 *) as_dir=$as_dir/ ;;
6675 esac
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6678 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi ;;
6687 esac
6688 fi
6689 RANLIB=$ac_cv_prog_RANLIB
6690 if test -n "$RANLIB"; then
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6692 printf "%s\n" "$RANLIB" >&6; }
6693 else
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 printf "%s\n" "no" >&6; }
6696 fi
6697
6698
6699 fi
6700 if test -z "$ac_cv_prog_RANLIB"; then
6701 ac_ct_RANLIB=$RANLIB
6702 # Extract the first word of "ranlib", so it can be a program name with args.
6703 set dummy ranlib; ac_word=$2
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 printf %s "checking for $ac_word... " >&6; }
6706 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6707 then :
6708 printf %s "(cached) " >&6
6709 else case e in #(
6710 e) if test -n "$ac_ct_RANLIB"; then
6711 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6712 else
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716 IFS=$as_save_IFS
6717 case $as_dir in #(((
6718 '') as_dir=./ ;;
6719 */) ;;
6720 *) as_dir=$as_dir/ ;;
6721 esac
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_ac_ct_RANLIB="ranlib"
6725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728 done
6729 done
6730 IFS=$as_save_IFS
6731
6732 fi ;;
6733 esac
6734 fi
6735 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6736 if test -n "$ac_ct_RANLIB"; then
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6738 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6739 else
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 printf "%s\n" "no" >&6; }
6742 fi
6743
6744 if test "x$ac_ct_RANLIB" = x; then
6745 RANLIB=":"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 RANLIB=$ac_ct_RANLIB
6754 fi
6755 else
6756 RANLIB="$ac_cv_prog_RANLIB"
6757 fi
6758
6759
6760
6761
6762 # Step 0.a: Enable 64 bit support?
6763
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
6765 printf %s "checking if 64bit support is requested... " >&6; }
6766 # Check whether --enable-64bit was given.
6767 if test ${enable_64bit+y}
6768 then :
6769 enableval=$enable_64bit; do64bit=$enableval
6770 else case e in #(
6771 e) do64bit=no ;;
6772 esac
6773 fi
6774
6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
6776 printf "%s\n" "$do64bit" >&6; }
6777
6778 # Step 0.b: Enable Solaris 64 bit VIS support?
6779
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
6781 printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
6782 # Check whether --enable-64bit-vis was given.
6783 if test ${enable_64bit_vis+y}
6784 then :
6785 enableval=$enable_64bit_vis; do64bitVIS=$enableval
6786 else case e in #(
6787 e) do64bitVIS=no ;;
6788 esac
6789 fi
6790
6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
6792 printf "%s\n" "$do64bitVIS" >&6; }
6793 # Force 64bit on with VIS
6794 if test "$do64bitVIS" = "yes"
6795 then :
6796 do64bit=yes
6797 fi
6798
6799 # Step 0.c: Check if visibility support is available. Do this here so
6800 # that platform specific alternatives can be used below if this fails.
6801
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
6803 printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
6804 if test ${tcl_cv_cc_visibility_hidden+y}
6805 then :
6806 printf %s "(cached) " >&6
6807 else case e in #(
6808 e)
6809 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812
6813 extern __attribute__((__visibility__("hidden"))) void f(void);
6814 void f(void) {}
6815 int
6816 main (void)
6817 {
6818 f();
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 if ac_fn_c_try_link "$LINENO"
6824 then :
6825 tcl_cv_cc_visibility_hidden=yes
6826 else case e in #(
6827 e) tcl_cv_cc_visibility_hidden=no ;;
6828 esac
6829 fi
6830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6831 conftest$ac_exeext conftest.$ac_ext
6832 CFLAGS=$hold_cflags ;;
6833 esac
6834 fi
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
6836 printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
6837 if test $tcl_cv_cc_visibility_hidden = yes
6838 then :
6839
6840
6841 printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
6842
6843
6844 printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
6845
6846
6847 fi
6848
6849 # Step 0.d: Disable -rpath support?
6850
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
6852 printf %s "checking if rpath support is requested... " >&6; }
6853 # Check whether --enable-rpath was given.
6854 if test ${enable_rpath+y}
6855 then :
6856 enableval=$enable_rpath; doRpath=$enableval
6857 else case e in #(
6858 e) doRpath=yes ;;
6859 esac
6860 fi
6861
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
6863 printf "%s\n" "$doRpath" >&6; }
6864
6865 # Set the variable "system" to hold the name and version number
6866 # for the system.
6867
6868
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
6870 printf %s "checking system version... " >&6; }
6871 if test ${tcl_cv_sys_version+y}
6872 then :
6873 printf %s "(cached) " >&6
6874 else case e in #(
6875 e)
6876 # TEA specific:
6877 if test "${TEA_PLATFORM}" = "windows" ; then
6878 tcl_cv_sys_version=windows
6879 else
6880 tcl_cv_sys_version=`uname -s`-`uname -r`
6881 if test "$?" -ne 0 ; then
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
6883 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
6884 tcl_cv_sys_version=unknown
6885 else
6886 if test "`uname -s`" = "AIX" ; then
6887 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
6888 fi
6889 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
6890 tcl_cv_sys_version=NetBSD-Debian
6891 fi
6892 fi
6893 fi
6894 ;;
6895 esac
6896 fi
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
6898 printf "%s\n" "$tcl_cv_sys_version" >&6; }
6899 system=$tcl_cv_sys_version
6900
6901
6902 # Require ranlib early so we can override it in special cases below.
6903
6904
6905
6906 # Set configuration options based on system name and version.
6907 # This is similar to Tcl's unix/tcl.m4 except that we've added a
6908 # "windows" case and removed some core-only vars.
6909
6910 do64bit_ok=no
6911 # default to '{$LIBS}' and set to "" on per-platform necessary basis
6912 SHLIB_LD_LIBS='${LIBS}'
6913 # When ld needs options to work in 64-bit mode, put them in
6914 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
6915 # is disabled by the user. [Bug 1016796]
6916 LDFLAGS_ARCH=""
6917 UNSHARED_LIB_SUFFIX=""
6918 # TEA specific: use PACKAGE_VERSION instead of VERSION
6919 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
6920 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
6921 TCL_LIB_VERSIONS_OK=ok
6922 CFLAGS_DEBUG=-g
6923 if test "$GCC" = yes
6924 then :
6925
6926 CFLAGS_OPTIMIZE=-O2
6927 CFLAGS_WARNING="-Wall"
6928
6929 else case e in #(
6930 e)
6931 CFLAGS_OPTIMIZE=-O
6932 CFLAGS_WARNING=""
6933 ;;
6934 esac
6935 fi
6936 if test -n "$ac_tool_prefix"; then
6937 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6938 set dummy ${ac_tool_prefix}ar; ac_word=$2
6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 printf %s "checking for $ac_word... " >&6; }
6941 if test ${ac_cv_prog_AR+y}
6942 then :
6943 printf %s "(cached) " >&6
6944 else case e in #(
6945 e) if test -n "$AR"; then
6946 ac_cv_prog_AR="$AR" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 case $as_dir in #(((
6953 '') as_dir=./ ;;
6954 */) ;;
6955 *) as_dir=$as_dir/ ;;
6956 esac
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_AR="${ac_tool_prefix}ar"
6960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967 fi ;;
6968 esac
6969 fi
6970 AR=$ac_cv_prog_AR
6971 if test -n "$AR"; then
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6973 printf "%s\n" "$AR" >&6; }
6974 else
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 printf "%s\n" "no" >&6; }
6977 fi
6978
6979
6980 fi
6981 if test -z "$ac_cv_prog_AR"; then
6982 ac_ct_AR=$AR
6983 # Extract the first word of "ar", so it can be a program name with args.
6984 set dummy ar; ac_word=$2
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 printf %s "checking for $ac_word... " >&6; }
6987 if test ${ac_cv_prog_ac_ct_AR+y}
6988 then :
6989 printf %s "(cached) " >&6
6990 else case e in #(
6991 e) if test -n "$ac_ct_AR"; then
6992 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997 IFS=$as_save_IFS
6998 case $as_dir in #(((
6999 '') as_dir=./ ;;
7000 */) ;;
7001 *) as_dir=$as_dir/ ;;
7002 esac
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7005 ac_cv_prog_ac_ct_AR="ar"
7006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013 fi ;;
7014 esac
7015 fi
7016 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7017 if test -n "$ac_ct_AR"; then
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7019 printf "%s\n" "$ac_ct_AR" >&6; }
7020 else
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 printf "%s\n" "no" >&6; }
7023 fi
7024
7025 if test "x$ac_ct_AR" = x; then
7026 AR=""
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034 AR=$ac_ct_AR
7035 fi
7036 else
7037 AR="$ac_cv_prog_AR"
7038 fi
7039
7040 STLIB_LD='${AR} cr'
7041 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
7042 if test "x$SHLIB_VERSION" = x
7043 then :
7044 SHLIB_VERSION=""
7045 else case e in #(
7046 e) SHLIB_VERSION=".$SHLIB_VERSION" ;;
7047 esac
7048 fi
7049 case $system in
7050 # TEA specific:
7051 windows)
7052 MACHINE="X86"
7053 if test "$do64bit" != "no" ; then
7054 case "$do64bit" in
7055 amd64|x64|yes)
7056 MACHINE="AMD64" ; # default to AMD64 64-bit build
7057 ;;
7058 arm64|aarch64)
7059 MACHINE="ARM64"
7060 ;;
7061 ia64)
7062 MACHINE="IA64"
7063 ;;
7064 esac
7065 fi
7066
7067 if test "$GCC" != "yes" ; then
7068 if test "${SHARED_BUILD}" = "0" ; then
7069 runtime=-MT
7070 else
7071 runtime=-MD
7072 fi
7073 case "x`echo \${VisualStudioVersion}`" in
7074 x1[4-9]*)
7075 lflags="${lflags} -nodefaultlib:libucrt.lib"
7076
7077 vars="ucrt.lib"
7078 for i in $vars; do
7079 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7080 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7081 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
7082 fi
7083 PKG_LIBS="$PKG_LIBS $i"
7084 done
7085
7086
7087 ;;
7088 *)
7089 ;;
7090 esac
7091
7092 if test "$do64bit" != "no" ; then
7093 CC="cl.exe"
7094 RC="rc.exe"
7095 lflags="${lflags} -nologo -MACHINE:${MACHINE} "
7096 LINKBIN="link.exe"
7097 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
7098 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7099 # Avoid 'unresolved external symbol __security_cookie'
7100 # errors, c.f. http://support.microsoft.com/?id=894573
7101
7102 vars="bufferoverflowU.lib"
7103 for i in $vars; do
7104 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
7105 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
7106 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
7107 fi
7108 PKG_LIBS="$PKG_LIBS $i"
7109 done
7110
7111
7112 else
7113 RC="rc"
7114 lflags="${lflags} -nologo"
7115 LINKBIN="link"
7116 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
7117 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
7118 fi
7119 fi
7120
7121 if test "$GCC" = "yes"; then
7122 # mingw gcc mode
7123 if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7125 set dummy ${ac_tool_prefix}windres; ac_word=$2
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 printf %s "checking for $ac_word... " >&6; }
7128 if test ${ac_cv_prog_RC+y}
7129 then :
7130 printf %s "(cached) " >&6
7131 else case e in #(
7132 e) if test -n "$RC"; then
7133 ac_cv_prog_RC="$RC" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 case $as_dir in #(((
7140 '') as_dir=./ ;;
7141 */) ;;
7142 *) as_dir=$as_dir/ ;;
7143 esac
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_RC="${ac_tool_prefix}windres"
7147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150 done
7151 done
7152 IFS=$as_save_IFS
7153
7154 fi ;;
7155 esac
7156 fi
7157 RC=$ac_cv_prog_RC
7158 if test -n "$RC"; then
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
7160 printf "%s\n" "$RC" >&6; }
7161 else
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 printf "%s\n" "no" >&6; }
7164 fi
7165
7166
7167 fi
7168 if test -z "$ac_cv_prog_RC"; then
7169 ac_ct_RC=$RC
7170 # Extract the first word of "windres", so it can be a program name with args.
7171 set dummy windres; ac_word=$2
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 printf %s "checking for $ac_word... " >&6; }
7174 if test ${ac_cv_prog_ac_ct_RC+y}
7175 then :
7176 printf %s "(cached) " >&6
7177 else case e in #(
7178 e) if test -n "$ac_ct_RC"; then
7179 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184 IFS=$as_save_IFS
7185 case $as_dir in #(((
7186 '') as_dir=./ ;;
7187 */) ;;
7188 *) as_dir=$as_dir/ ;;
7189 esac
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_ac_ct_RC="windres"
7193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200 fi ;;
7201 esac
7202 fi
7203 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7204 if test -n "$ac_ct_RC"; then
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
7206 printf "%s\n" "$ac_ct_RC" >&6; }
7207 else
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 printf "%s\n" "no" >&6; }
7210 fi
7211
7212 if test "x$ac_ct_RC" = x; then
7213 RC=""
7214 else
7215 case $cross_compiling:$ac_tool_warned in
7216 yes:)
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7218 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219 ac_tool_warned=yes ;;
7220 esac
7221 RC=$ac_ct_RC
7222 fi
7223 else
7224 RC="$ac_cv_prog_RC"
7225 fi
7226
7227 CFLAGS_DEBUG="-g"
7228 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7229 SHLIB_LD='${CC} -shared'
7230 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7231 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7232 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7233
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
7235 printf %s "checking for cross-compile version of gcc... " >&6; }
7236 if test ${ac_cv_cross+y}
7237 then :
7238 printf %s "(cached) " >&6
7239 else case e in #(
7240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242
7243 #ifdef _WIN32
7244 #error cross-compiler
7245 #endif
7246
7247 int
7248 main (void)
7249 {
7250
7251 ;
7252 return 0;
7253 }
7254 _ACEOF
7255 if ac_fn_c_try_compile "$LINENO"
7256 then :
7257 ac_cv_cross=yes
7258 else case e in #(
7259 e) ac_cv_cross=no ;;
7260 esac
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7263 ;;
7264 esac
7265 fi
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
7267 printf "%s\n" "$ac_cv_cross" >&6; }
7268 if test "$ac_cv_cross" = "yes"; then
7269 case "$do64bit" in
7270 amd64|x64|yes)
7271 CC="x86_64-w64-mingw32-${CC}"
7272 LD="x86_64-w64-mingw32-ld"
7273 AR="x86_64-w64-mingw32-ar"
7274 RANLIB="x86_64-w64-mingw32-ranlib"
7275 RC="x86_64-w64-mingw32-windres"
7276 ;;
7277 arm64|aarch64)
7278 CC="aarch64-w64-mingw32-clang"
7279 LD="aarch64-w64-mingw32-ld"
7280 AR="aarch64-w64-mingw32-ar"
7281 RANLIB="aarch64-w64-mingw32-ranlib"
7282 RC="aarch64-w64-mingw32-windres"
7283 ;;
7284 *)
7285 CC="i686-w64-mingw32-${CC}"
7286 LD="i686-w64-mingw32-ld"
7287 AR="i686-w64-mingw32-ar"
7288 RANLIB="i686-w64-mingw32-ranlib"
7289 RC="i686-w64-mingw32-windres"
7290 ;;
7291 esac
7292 fi
7293
7294 else
7295 SHLIB_LD="${LINKBIN} -dll ${lflags}"
7296 # link -lib only works when -lib is the first arg
7297 STLIB_LD="${LINKBIN} -lib ${lflags}"
7298 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
7299 PATHTYPE=-w
7300 # For information on what debugtype is most useful, see:
7301 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
7302 # and also
7303 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
7304 # This essentially turns it all on.
7305 LDFLAGS_DEBUG="-debug -debugtype:cv"
7306 LDFLAGS_OPTIMIZE="-release"
7307 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7308 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7309 fi
7310
7311 SHLIB_SUFFIX=".dll"
7312 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7313
7314 TCL_LIB_VERSIONS_OK=nodots
7315 ;;
7316 AIX-*)
7317 if test "$GCC" != "yes"
7318 then :
7319
7320 # AIX requires the _r compiler when gcc isn't being used
7321 case "${CC}" in
7322 *_r|*_r\ *)
7323 # ok ...
7324 ;;
7325 *)
7326 # Make sure only first arg gets _r
7327 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
7328 ;;
7329 esac
7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
7331 printf "%s\n" "Using $CC for compiling with threads" >&6; }
7332
7333 fi
7334 LIBS="$LIBS -lc"
7335 SHLIB_CFLAGS=""
7336 SHLIB_SUFFIX=".so"
7337
7338 LD_LIBRARY_PATH_VAR="LIBPATH"
7339
7340 # Check to enable 64-bit flags for compiler/linker
7341 if test "$do64bit" = yes
7342 then :
7343
7344 if test "$GCC" = yes
7345 then :
7346
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7348 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7349
7350 else case e in #(
7351 e)
7352 do64bit_ok=yes
7353 CFLAGS="$CFLAGS -q64"
7354 LDFLAGS_ARCH="-q64"
7355 RANLIB="${RANLIB} -X64"
7356 AR="${AR} -X64"
7357 SHLIB_LD_FLAGS="-b64"
7358 ;;
7359 esac
7360 fi
7361
7362 fi
7363
7364 if test "`uname -m`" = ia64
7365 then :
7366
7367 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7368 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7369 if test "$GCC" = yes
7370 then :
7371
7372 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7373
7374 else case e in #(
7375 e)
7376 CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
7377 ;;
7378 esac
7379 fi
7380 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7381
7382 else case e in #(
7383 e)
7384 if test "$GCC" = yes
7385 then :
7386
7387 SHLIB_LD='${CC} -shared -Wl,-bexpall'
7388
7389 else case e in #(
7390 e)
7391 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
7392 LDFLAGS="$LDFLAGS -brtl"
7393 ;;
7394 esac
7395 fi
7396 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7397 CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
7398 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7399 ;;
7400 esac
7401 fi
7402 ;;
7403 BeOS*)
7404 SHLIB_CFLAGS="-fPIC"
7405 SHLIB_LD='${CC} -nostart'
7406 SHLIB_SUFFIX=".so"
7407
7408 #-----------------------------------------------------------
7409 # Check for inet_ntoa in -lbind, for BeOS (which also needs
7410 # -lsocket, even if the network functions are in -lnet which
7411 # is always linked to, for compatibility.
7412 #-----------------------------------------------------------
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
7414 printf %s "checking for inet_ntoa in -lbind... " >&6; }
7415 if test ${ac_cv_lib_bind_inet_ntoa+y}
7416 then :
7417 printf %s "(cached) " >&6
7418 else case e in #(
7419 e) ac_check_lib_save_LIBS=$LIBS
7420 LIBS="-lbind $LIBS"
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423
7424 /* Override any GCC internal prototype to avoid an error.
7425 Use char because int might match the return type of a GCC
7426 builtin and then its argument prototype would still apply.
7427 The 'extern "C"' is for builds by C++ compilers;
7428 although this is not generally supported in C code supporting it here
7429 has little cost and some practical benefit (sr 110532). */
7430 #ifdef __cplusplus
7431 extern "C"
7432 #endif
7433 char inet_ntoa (void);
7434 int
7435 main (void)
7436 {
7437 return inet_ntoa ();
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 if ac_fn_c_try_link "$LINENO"
7443 then :
7444 ac_cv_lib_bind_inet_ntoa=yes
7445 else case e in #(
7446 e) ac_cv_lib_bind_inet_ntoa=no ;;
7447 esac
7448 fi
7449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7450 conftest$ac_exeext conftest.$ac_ext
7451 LIBS=$ac_check_lib_save_LIBS ;;
7452 esac
7453 fi
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
7455 printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
7456 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
7457 then :
7458 LIBS="$LIBS -lbind -lsocket"
7459 fi
7460
7461 ;;
7462 BSD/OS-2.1*|BSD/OS-3*)
7463 SHLIB_CFLAGS=""
7464 SHLIB_LD="shlicc -r"
7465 SHLIB_SUFFIX=".so"
7466 CC_SEARCH_FLAGS=""
7467 LD_SEARCH_FLAGS=""
7468 ;;
7469 BSD/OS-4.*)
7470 SHLIB_CFLAGS="-export-dynamic -fPIC"
7471 SHLIB_LD='${CC} -shared'
7472 SHLIB_SUFFIX=".so"
7473 LDFLAGS="$LDFLAGS -export-dynamic"
7474 CC_SEARCH_FLAGS=""
7475 LD_SEARCH_FLAGS=""
7476 ;;
7477 CYGWIN_*)
7478 SHLIB_CFLAGS=""
7479 SHLIB_LD='${CC} -shared'
7480 SHLIB_SUFFIX=".dll"
7481 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\[email protected]"
7482 EXEEXT=".exe"
7483 do64bit_ok=yes
7484 CC_SEARCH_FLAGS=""
7485 LD_SEARCH_FLAGS=""
7486 ;;
7487 dgux*)
7488 SHLIB_CFLAGS="-K PIC"
7489 SHLIB_LD='${CC} -G'
7490 SHLIB_LD_LIBS=""
7491 SHLIB_SUFFIX=".so"
7492 CC_SEARCH_FLAGS=""
7493 LD_SEARCH_FLAGS=""
7494 ;;
7495 Haiku*)
7496 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7497 SHLIB_CFLAGS="-fPIC"
7498 SHLIB_SUFFIX=".so"
7499 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
7501 printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
7502 if test ${ac_cv_lib_network_inet_ntoa+y}
7503 then :
7504 printf %s "(cached) " >&6
7505 else case e in #(
7506 e) ac_check_lib_save_LIBS=$LIBS
7507 LIBS="-lnetwork $LIBS"
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7510
7511 /* Override any GCC internal prototype to avoid an error.
7512 Use char because int might match the return type of a GCC
7513 builtin and then its argument prototype would still apply.
7514 The 'extern "C"' is for builds by C++ compilers;
7515 although this is not generally supported in C code supporting it here
7516 has little cost and some practical benefit (sr 110532). */
7517 #ifdef __cplusplus
7518 extern "C"
7519 #endif
7520 char inet_ntoa (void);
7521 int
7522 main (void)
7523 {
7524 return inet_ntoa ();
7525 ;
7526 return 0;
7527 }
7528 _ACEOF
7529 if ac_fn_c_try_link "$LINENO"
7530 then :
7531 ac_cv_lib_network_inet_ntoa=yes
7532 else case e in #(
7533 e) ac_cv_lib_network_inet_ntoa=no ;;
7534 esac
7535 fi
7536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7537 conftest$ac_exeext conftest.$ac_ext
7538 LIBS=$ac_check_lib_save_LIBS ;;
7539 esac
7540 fi
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
7542 printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
7543 if test "x$ac_cv_lib_network_inet_ntoa" = xyes
7544 then :
7545 LIBS="$LIBS -lnetwork"
7546 fi
7547
7548 ;;
7549 HP-UX-*.11.*)
7550 # Use updated header definitions where possible
7551
7552 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
7553
7554 # TEA specific: Needed by Tcl, but not most extensions
7555 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
7556 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
7557
7558 if test "`uname -m`" = ia64
7559 then :
7560
7561 SHLIB_SUFFIX=".so"
7562
7563 else case e in #(
7564 e)
7565 SHLIB_SUFFIX=".sl"
7566 ;;
7567 esac
7568 fi
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7570 printf %s "checking for shl_load in -ldld... " >&6; }
7571 if test ${ac_cv_lib_dld_shl_load+y}
7572 then :
7573 printf %s "(cached) " >&6
7574 else case e in #(
7575 e) ac_check_lib_save_LIBS=$LIBS
7576 LIBS="-ldld $LIBS"
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579
7580 /* Override any GCC internal prototype to avoid an error.
7581 Use char because int might match the return type of a GCC
7582 builtin and then its argument prototype would still apply.
7583 The 'extern "C"' is for builds by C++ compilers;
7584 although this is not generally supported in C code supporting it here
7585 has little cost and some practical benefit (sr 110532). */
7586 #ifdef __cplusplus
7587 extern "C"
7588 #endif
7589 char shl_load (void);
7590 int
7591 main (void)
7592 {
7593 return shl_load ();
7594 ;
7595 return 0;
7596 }
7597 _ACEOF
7598 if ac_fn_c_try_link "$LINENO"
7599 then :
7600 ac_cv_lib_dld_shl_load=yes
7601 else case e in #(
7602 e) ac_cv_lib_dld_shl_load=no ;;
7603 esac
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7606 conftest$ac_exeext conftest.$ac_ext
7607 LIBS=$ac_check_lib_save_LIBS ;;
7608 esac
7609 fi
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7611 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7612 if test "x$ac_cv_lib_dld_shl_load" = xyes
7613 then :
7614 tcl_ok=yes
7615 else case e in #(
7616 e) tcl_ok=no ;;
7617 esac
7618 fi
7619
7620 if test "$tcl_ok" = yes
7621 then :
7622
7623 SHLIB_CFLAGS="+z"
7624 SHLIB_LD="ld -b"
7625 LDFLAGS="$LDFLAGS -Wl,-E"
7626 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7627 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7628 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7629
7630 fi
7631 if test "$GCC" = yes
7632 then :
7633
7634 SHLIB_LD='${CC} -shared'
7635 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7636
7637 else case e in #(
7638 e)
7639 CFLAGS="$CFLAGS -z"
7640 ;;
7641 esac
7642 fi
7643
7644 # Check to enable 64-bit flags for compiler/linker
7645 if test "$do64bit" = "yes"
7646 then :
7647
7648 if test "$GCC" = yes
7649 then :
7650
7651 case `${CC} -dumpmachine` in
7652 hppa64*)
7653 # 64-bit gcc in use. Fix flags for GNU ld.
7654 do64bit_ok=yes
7655 SHLIB_LD='${CC} -shared'
7656 if test $doRpath = yes
7657 then :
7658
7659 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7660 fi
7661 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7662 ;;
7663 *)
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7665 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7666 ;;
7667 esac
7668
7669 else case e in #(
7670 e)
7671 do64bit_ok=yes
7672 CFLAGS="$CFLAGS +DD64"
7673 LDFLAGS_ARCH="+DD64"
7674 ;;
7675 esac
7676 fi
7677
7678 fi ;;
7679 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
7680 SHLIB_SUFFIX=".sl"
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7682 printf %s "checking for shl_load in -ldld... " >&6; }
7683 if test ${ac_cv_lib_dld_shl_load+y}
7684 then :
7685 printf %s "(cached) " >&6
7686 else case e in #(
7687 e) ac_check_lib_save_LIBS=$LIBS
7688 LIBS="-ldld $LIBS"
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7691
7692 /* Override any GCC internal prototype to avoid an error.
7693 Use char because int might match the return type of a GCC
7694 builtin and then its argument prototype would still apply.
7695 The 'extern "C"' is for builds by C++ compilers;
7696 although this is not generally supported in C code supporting it here
7697 has little cost and some practical benefit (sr 110532). */
7698 #ifdef __cplusplus
7699 extern "C"
7700 #endif
7701 char shl_load (void);
7702 int
7703 main (void)
7704 {
7705 return shl_load ();
7706 ;
7707 return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_link "$LINENO"
7711 then :
7712 ac_cv_lib_dld_shl_load=yes
7713 else case e in #(
7714 e) ac_cv_lib_dld_shl_load=no ;;
7715 esac
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7718 conftest$ac_exeext conftest.$ac_ext
7719 LIBS=$ac_check_lib_save_LIBS ;;
7720 esac
7721 fi
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7723 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7724 if test "x$ac_cv_lib_dld_shl_load" = xyes
7725 then :
7726 tcl_ok=yes
7727 else case e in #(
7728 e) tcl_ok=no ;;
7729 esac
7730 fi
7731
7732 if test "$tcl_ok" = yes
7733 then :
7734
7735 SHLIB_CFLAGS="+z"
7736 SHLIB_LD="ld -b"
7737 SHLIB_LD_LIBS=""
7738 LDFLAGS="$LDFLAGS -Wl,-E"
7739 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7740 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7741 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7742
7743 fi ;;
7744 IRIX-5.*)
7745 SHLIB_CFLAGS=""
7746 SHLIB_LD="ld -shared -rdata_shared"
7747 SHLIB_SUFFIX=".so"
7748 case " $LIBOBJS " in
7749 *" mkstemp.$ac_objext "* ) ;;
7750 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
7751 ;;
7752 esac
7753
7754 if test $doRpath = yes
7755 then :
7756
7757 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7758 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7759 fi
7760 ;;
7761 IRIX-6.*)
7762 SHLIB_CFLAGS=""
7763 SHLIB_LD="ld -n32 -shared -rdata_shared"
7764 SHLIB_SUFFIX=".so"
7765 if test $doRpath = yes
7766 then :
7767
7768 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7769 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7770 fi
7771 if test "$GCC" = yes
7772 then :
7773
7774 CFLAGS="$CFLAGS -mabi=n32"
7775 LDFLAGS="$LDFLAGS -mabi=n32"
7776
7777 else case e in #(
7778 e)
7779 case $system in
7780 IRIX-6.3)
7781 # Use to build 6.2 compatible binaries on 6.3.
7782 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7783 ;;
7784 *)
7785 CFLAGS="$CFLAGS -n32"
7786 ;;
7787 esac
7788 LDFLAGS="$LDFLAGS -n32"
7789 ;;
7790 esac
7791 fi
7792 ;;
7793 IRIX64-6.*)
7794 SHLIB_CFLAGS=""
7795 SHLIB_LD="ld -n32 -shared -rdata_shared"
7796 SHLIB_SUFFIX=".so"
7797 if test $doRpath = yes
7798 then :
7799
7800 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7801 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7802 fi
7803
7804 # Check to enable 64-bit flags for compiler/linker
7805
7806 if test "$do64bit" = yes
7807 then :
7808
7809 if test "$GCC" = yes
7810 then :
7811
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
7813 printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7814
7815 else case e in #(
7816 e)
7817 do64bit_ok=yes
7818 SHLIB_LD="ld -64 -shared -rdata_shared"
7819 CFLAGS="$CFLAGS -64"
7820 LDFLAGS_ARCH="-64"
7821 ;;
7822 esac
7823 fi
7824
7825 fi
7826 ;;
7827 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
7828 SHLIB_CFLAGS="-fPIC"
7829 SHLIB_SUFFIX=".so"
7830
7831 # TEA specific:
7832 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7833
7834 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7835 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
7836 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7837
7838 case $system in
7839 DragonFly-*|FreeBSD-*)
7840 if test "${TCL_THREADS}" = "1"
7841 then :
7842
7843 # The -pthread needs to go in the LDFLAGS, not LIBS
7844 LIBS=`echo $LIBS | sed s/-pthread//`
7845 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7846 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
7847 fi
7848 ;;
7849 esac
7850
7851 if test $doRpath = yes
7852 then :
7853
7854 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7855 fi
7856 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7857 if test "`uname -m`" = "alpha"
7858 then :
7859 CFLAGS="$CFLAGS -mieee"
7860 fi
7861 if test $do64bit = yes
7862 then :
7863
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
7865 printf %s "checking if compiler accepts -m64 flag... " >&6; }
7866 if test ${tcl_cv_cc_m64+y}
7867 then :
7868 printf %s "(cached) " >&6
7869 else case e in #(
7870 e)
7871 hold_cflags=$CFLAGS
7872 CFLAGS="$CFLAGS -m64"
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875
7876 int
7877 main (void)
7878 {
7879
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"
7885 then :
7886 tcl_cv_cc_m64=yes
7887 else case e in #(
7888 e) tcl_cv_cc_m64=no ;;
7889 esac
7890 fi
7891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7892 conftest$ac_exeext conftest.$ac_ext
7893 CFLAGS=$hold_cflags ;;
7894 esac
7895 fi
7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
7897 printf "%s\n" "$tcl_cv_cc_m64" >&6; }
7898 if test $tcl_cv_cc_m64 = yes
7899 then :
7900
7901 CFLAGS="$CFLAGS -m64"
7902 do64bit_ok=yes
7903
7904 fi
7905
7906 fi
7907
7908 # The combo of gcc + glibc has a bug related to inlining of
7909 # functions like strtod(). The -fno-builtin flag should address
7910 # this problem but it does not work. The -fno-inline flag is kind
7911 # of overkill but it works. Disable inlining only when one of the
7912 # files in compat/*.c is being linked in.
7913
7914 if test x"${USE_COMPAT}" != x
7915 then :
7916 CFLAGS="$CFLAGS -fno-inline"
7917 fi
7918 ;;
7919 Lynx*)
7920 SHLIB_CFLAGS="-fPIC"
7921 SHLIB_SUFFIX=".so"
7922 CFLAGS_OPTIMIZE=-02
7923 SHLIB_LD='${CC} -shared'
7924 LD_FLAGS="-Wl,--export-dynamic"
7925 if test $doRpath = yes
7926 then :
7927
7928 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7929 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7930 fi
7931 ;;
7932 OpenBSD-*)
7933 arch=`arch -s`
7934 case "$arch" in
7935 alpha|sparc64)
7936 SHLIB_CFLAGS="-fPIC"
7937 ;;
7938 *)
7939 SHLIB_CFLAGS="-fpic"
7940 ;;
7941 esac
7942 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7943 SHLIB_SUFFIX=".so"
7944 if test $doRpath = yes
7945 then :
7946
7947 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7948 fi
7949 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7950 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
7951 LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
7952 CFLAGS_OPTIMIZE="-O2"
7953 # On OpenBSD: Compile with -pthread
7954 # Don't link with -lpthread
7955 LIBS=`echo $LIBS | sed s/-lpthread//`
7956 CFLAGS="$CFLAGS -pthread"
7957 # OpenBSD doesn't do version numbers with dots.
7958 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7959 TCL_LIB_VERSIONS_OK=nodots
7960 ;;
7961 NetBSD-*)
7962 # NetBSD has ELF and can use 'cc -shared' to build shared libs
7963 SHLIB_CFLAGS="-fPIC"
7964 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7965 SHLIB_SUFFIX=".so"
7966 LDFLAGS="$LDFLAGS -export-dynamic"
7967 if test $doRpath = yes
7968 then :
7969
7970 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7971 fi
7972 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7973 # The -pthread needs to go in the CFLAGS, not LIBS
7974 LIBS=`echo $LIBS | sed s/-pthread//`
7975 CFLAGS="$CFLAGS -pthread"
7976 LDFLAGS="$LDFLAGS -pthread"
7977 ;;
7978 Darwin-*)
7979 CFLAGS_OPTIMIZE="-Os"
7980 SHLIB_CFLAGS="-fno-common"
7981 # To avoid discrepancies between what headers configure sees during
7982 # preprocessing tests and compiling tests, move any -isysroot and
7983 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
7984 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
7985 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7986 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
7987 CFLAGS="`echo " ${CFLAGS}" | \
7988 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7989 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
7990 if test $do64bit = yes
7991 then :
7992
7993 case `arch` in
7994 ppc)
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
7996 printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
7997 if test ${tcl_cv_cc_arch_ppc64+y}
7998 then :
7999 printf %s "(cached) " >&6
8000 else case e in #(
8001 e)
8002 hold_cflags=$CFLAGS
8003 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006
8007 int
8008 main (void)
8009 {
8010
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 if ac_fn_c_try_link "$LINENO"
8016 then :
8017 tcl_cv_cc_arch_ppc64=yes
8018 else case e in #(
8019 e) tcl_cv_cc_arch_ppc64=no ;;
8020 esac
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8023 conftest$ac_exeext conftest.$ac_ext
8024 CFLAGS=$hold_cflags ;;
8025 esac
8026 fi
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
8028 printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
8029 if test $tcl_cv_cc_arch_ppc64 = yes
8030 then :
8031
8032 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
8033 do64bit_ok=yes
8034
8035 fi;;
8036 i386)
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
8038 printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
8039 if test ${tcl_cv_cc_arch_x86_64+y}
8040 then :
8041 printf %s "(cached) " >&6
8042 else case e in #(
8043 e)
8044 hold_cflags=$CFLAGS
8045 CFLAGS="$CFLAGS -arch x86_64"
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048
8049 int
8050 main (void)
8051 {
8052
8053 ;
8054 return 0;
8055 }
8056 _ACEOF
8057 if ac_fn_c_try_link "$LINENO"
8058 then :
8059 tcl_cv_cc_arch_x86_64=yes
8060 else case e in #(
8061 e) tcl_cv_cc_arch_x86_64=no ;;
8062 esac
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8065 conftest$ac_exeext conftest.$ac_ext
8066 CFLAGS=$hold_cflags ;;
8067 esac
8068 fi
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
8070 printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
8071 if test $tcl_cv_cc_arch_x86_64 = yes
8072 then :
8073
8074 CFLAGS="$CFLAGS -arch x86_64"
8075 do64bit_ok=yes
8076
8077 fi;;
8078 *)
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
8080 printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
8081 esac
8082
8083 else case e in #(
8084 e)
8085 # Check for combined 32-bit and 64-bit fat build
8086 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
8087 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
8088 then :
8089
8090 fat_32_64=yes
8091 fi
8092 ;;
8093 esac
8094 fi
8095 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8096 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
8097 # TEA specific: link shlib with current and compatibility version flags
8098 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
8099 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
8100 SHLIB_SUFFIX=".dylib"
8101 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
8103 printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
8104 if test ${tcl_cv_ld_search_paths_first+y}
8105 then :
8106 printf %s "(cached) " >&6
8107 else case e in #(
8108 e)
8109 hold_ldflags=$LDFLAGS
8110 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113
8114 int
8115 main (void)
8116 {
8117 int i;
8118 ;
8119 return 0;
8120 }
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"
8123 then :
8124 tcl_cv_ld_search_paths_first=yes
8125 else case e in #(
8126 e) tcl_cv_ld_search_paths_first=no ;;
8127 esac
8128 fi
8129 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8130 conftest$ac_exeext conftest.$ac_ext
8131 LDFLAGS=$hold_ldflags ;;
8132 esac
8133 fi
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
8135 printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
8136 if test $tcl_cv_ld_search_paths_first = yes
8137 then :
8138
8139 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8140
8141 fi
8142 if test "$tcl_cv_cc_visibility_hidden" != yes
8143 then :
8144
8145
8146 printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
8147
8148 tcl_cv_cc_visibility_hidden=yes
8149
8150 fi
8151 CC_SEARCH_FLAGS=""
8152 LD_SEARCH_FLAGS=""
8153 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8154 # TEA specific: for combined 32 & 64 bit fat builds of Tk
8155 # extensions, verify that 64-bit build is possible.
8156 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
8157 then :
8158
8159 if test "${TEA_WINDOWINGSYSTEM}" = x11
8160 then :
8161
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
8163 printf %s "checking for 64-bit X11... " >&6; }
8164 if test ${tcl_cv_lib_x11_64+y}
8165 then :
8166 printf %s "(cached) " >&6
8167 else case e in #(
8168 e)
8169 for v in CFLAGS CPPFLAGS LDFLAGS; do
8170 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8171 done
8172 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
8173 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #include <X11/Xlib.h>
8177 int
8178 main (void)
8179 {
8180 XrmInitialize();
8181 ;
8182 return 0;
8183 }
8184 _ACEOF
8185 if ac_fn_c_try_link "$LINENO"
8186 then :
8187 tcl_cv_lib_x11_64=yes
8188 else case e in #(
8189 e) tcl_cv_lib_x11_64=no ;;
8190 esac
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8193 conftest$ac_exeext conftest.$ac_ext
8194 for v in CFLAGS CPPFLAGS LDFLAGS; do
8195 eval $v'="$hold_'$v'"'
8196 done ;;
8197 esac
8198 fi
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
8200 printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
8201
8202 fi
8203 if test "${TEA_WINDOWINGSYSTEM}" = aqua
8204 then :
8205
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
8207 printf %s "checking for 64-bit Tk... " >&6; }
8208 if test ${tcl_cv_lib_tk_64+y}
8209 then :
8210 printf %s "(cached) " >&6
8211 else case e in #(
8212 e)
8213 for v in CFLAGS CPPFLAGS LDFLAGS; do
8214 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8215 done
8216 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
8217 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 #include <tk.h>
8221 int
8222 main (void)
8223 {
8224 Tk_InitStubs(NULL, "", 0);
8225 ;
8226 return 0;
8227 }
8228 _ACEOF
8229 if ac_fn_c_try_link "$LINENO"
8230 then :
8231 tcl_cv_lib_tk_64=yes
8232 else case e in #(
8233 e) tcl_cv_lib_tk_64=no ;;
8234 esac
8235 fi
8236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8237 conftest$ac_exeext conftest.$ac_ext
8238 for v in CFLAGS CPPFLAGS LDFLAGS; do
8239 eval $v'="$hold_'$v'"'
8240 done ;;
8241 esac
8242 fi
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
8244 printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
8245
8246 fi
8247 # remove 64-bit arch flags from CFLAGS et al. if configuration
8248 # does not support 64-bit.
8249 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
8250 then :
8251
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
8253 printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
8254 for v in CFLAGS CPPFLAGS LDFLAGS; do
8255 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
8256 done
8257 fi
8258
8259 fi
8260 ;;
8261 OS/390-*)
8262 CFLAGS_OPTIMIZE="" # Optimizer is buggy
8263
8264 printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
8265
8266 ;;
8267 OSF1-V*)
8268 # Digital OSF/1
8269 SHLIB_CFLAGS=""
8270 if test "$SHARED_BUILD" = 1
8271 then :
8272
8273 SHLIB_LD='ld -shared -expect_unresolved "*"'
8274
8275 else case e in #(
8276 e)
8277 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
8278 ;;
8279 esac
8280 fi
8281 SHLIB_SUFFIX=".so"
8282 if test $doRpath = yes
8283 then :
8284
8285 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8286 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8287 fi
8288 if test "$GCC" = yes
8289 then :
8290 CFLAGS="$CFLAGS -mieee"
8291 else case e in #(
8292 e)
8293 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" ;;
8294 esac
8295 fi
8296 # see pthread_intro(3) for pthread support on osf1, k.furukawa
8297 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
8298 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
8299 LIBS=`echo $LIBS | sed s/-lpthreads//`
8300 if test "$GCC" = yes
8301 then :
8302
8303 LIBS="$LIBS -lpthread -lmach -lexc"
8304
8305 else case e in #(
8306 e)
8307 CFLAGS="$CFLAGS -pthread"
8308 LDFLAGS="$LDFLAGS -pthread"
8309 ;;
8310 esac
8311 fi
8312 ;;
8313 QNX-6*)
8314 # QNX RTP
8315 # This may work for all QNX, but it was only reported for v6.
8316 SHLIB_CFLAGS="-fPIC"
8317 SHLIB_LD="ld -Bshareable -x"
8318 SHLIB_LD_LIBS=""
8319 SHLIB_SUFFIX=".so"
8320 CC_SEARCH_FLAGS=""
8321 LD_SEARCH_FLAGS=""
8322 ;;
8323 SCO_SV-3.2*)
8324 if test "$GCC" = yes
8325 then :
8326
8327 SHLIB_CFLAGS="-fPIC -melf"
8328 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
8329
8330 else case e in #(
8331 e)
8332 SHLIB_CFLAGS="-Kpic -belf"
8333 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
8334 ;;
8335 esac
8336 fi
8337 SHLIB_LD="ld -G"
8338 SHLIB_LD_LIBS=""
8339 SHLIB_SUFFIX=".so"
8340 CC_SEARCH_FLAGS=""
8341 LD_SEARCH_FLAGS=""
8342 ;;
8343 SunOS-5.[0-6])
8344 # Careful to not let 5.10+ fall into this case
8345
8346 # Note: If _REENTRANT isn't defined, then Solaris
8347 # won't define thread-safe library routines.
8348
8349
8350 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8351
8352
8353 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8354
8355
8356 SHLIB_CFLAGS="-KPIC"
8357 SHLIB_SUFFIX=".so"
8358 if test "$GCC" = yes
8359 then :
8360
8361 SHLIB_LD='${CC} -shared'
8362 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8363 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8364
8365 else case e in #(
8366 e)
8367 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8368 CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8369 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8370 ;;
8371 esac
8372 fi
8373 ;;
8374 SunOS-5*)
8375 # Note: If _REENTRANT isn't defined, then Solaris
8376 # won't define thread-safe library routines.
8377
8378
8379 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8380
8381
8382 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8383
8384
8385 SHLIB_CFLAGS="-KPIC"
8386
8387 # Check to enable 64-bit flags for compiler/linker
8388 if test "$do64bit" = yes
8389 then :
8390
8391 arch=`isainfo`
8392 if test "$arch" = "sparcv9 sparc"
8393 then :
8394
8395 if test "$GCC" = yes
8396 then :
8397
8398 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
8399 then :
8400
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
8402 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
8403
8404 else case e in #(
8405 e)
8406 do64bit_ok=yes
8407 CFLAGS="$CFLAGS -m64 -mcpu=v9"
8408 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
8409 SHLIB_CFLAGS="-fPIC"
8410 ;;
8411 esac
8412 fi
8413
8414 else case e in #(
8415 e)
8416 do64bit_ok=yes
8417 if test "$do64bitVIS" = yes
8418 then :
8419
8420 CFLAGS="$CFLAGS -xarch=v9a"
8421 LDFLAGS_ARCH="-xarch=v9a"
8422
8423 else case e in #(
8424 e)
8425 CFLAGS="$CFLAGS -xarch=v9"
8426 LDFLAGS_ARCH="-xarch=v9"
8427 ;;
8428 esac
8429 fi
8430 # Solaris 64 uses this as well
8431 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
8432 ;;
8433 esac
8434 fi
8435
8436 else case e in #(
8437 e) if test "$arch" = "amd64 i386"
8438 then :
8439
8440 if test "$GCC" = yes
8441 then :
8442
8443 case $system in
8444 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8445 do64bit_ok=yes
8446 CFLAGS="$CFLAGS -m64"
8447 LDFLAGS="$LDFLAGS -m64";;
8448 *)
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
8450 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
8451 esac
8452
8453 else case e in #(
8454 e)
8455 do64bit_ok=yes
8456 case $system in
8457 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8458 CFLAGS="$CFLAGS -m64"
8459 LDFLAGS="$LDFLAGS -m64";;
8460 *)
8461 CFLAGS="$CFLAGS -xarch=amd64"
8462 LDFLAGS="$LDFLAGS -xarch=amd64";;
8463 esac
8464 ;;
8465 esac
8466 fi
8467
8468 else case e in #(
8469 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
8470 printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} ;;
8471 esac
8472 fi ;;
8473 esac
8474 fi
8475
8476 fi
8477
8478 SHLIB_SUFFIX=".so"
8479 if test "$GCC" = yes
8480 then :
8481
8482 SHLIB_LD='${CC} -shared'
8483 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8484 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8485 if test "$do64bit_ok" = yes
8486 then :
8487
8488 if test "$arch" = "sparcv9 sparc"
8489 then :
8490
8491 # We need to specify -static-libgcc or we need to
8492 # add the path to the sparv9 libgcc.
8493 # JH: static-libgcc is necessary for core Tcl, but may
8494 # not be necessary for extensions.
8495 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
8496 # for finding sparcv9 libgcc, get the regular libgcc
8497 # path, remove so name and append 'sparcv9'
8498 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
8499 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
8500
8501 else case e in #(
8502 e) if test "$arch" = "amd64 i386"
8503 then :
8504
8505 # JH: static-libgcc is necessary for core Tcl, but may
8506 # not be necessary for extensions.
8507 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
8508
8509 fi ;;
8510 esac
8511 fi
8512
8513 fi
8514
8515 else case e in #(
8516 e)
8517 case $system in
8518 SunOS-5.[1-9][0-9]*)
8519 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8520 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
8521 *)
8522 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
8523 esac
8524 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8525 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8526 ;;
8527 esac
8528 fi
8529 ;;
8530 UNIX_SV* | UnixWare-5*)
8531 SHLIB_CFLAGS="-KPIC"
8532 SHLIB_LD='${CC} -G'
8533 SHLIB_LD_LIBS=""
8534 SHLIB_SUFFIX=".so"
8535 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
8536 # that don't grok the -Bexport option. Test that it does.
8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
8538 printf %s "checking for ld accepts -Bexport flag... " >&6; }
8539 if test ${tcl_cv_ld_Bexport+y}
8540 then :
8541 printf %s "(cached) " >&6
8542 else case e in #(
8543 e)
8544 hold_ldflags=$LDFLAGS
8545 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548
8549 int
8550 main (void)
8551 {
8552 int i;
8553 ;
8554 return 0;
8555 }
8556 _ACEOF
8557 if ac_fn_c_try_link "$LINENO"
8558 then :
8559 tcl_cv_ld_Bexport=yes
8560 else case e in #(
8561 e) tcl_cv_ld_Bexport=no ;;
8562 esac
8563 fi
8564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8565 conftest$ac_exeext conftest.$ac_ext
8566 LDFLAGS=$hold_ldflags ;;
8567 esac
8568 fi
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
8570 printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
8571 if test $tcl_cv_ld_Bexport = yes
8572 then :
8573
8574 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8575
8576 fi
8577 CC_SEARCH_FLAGS=""
8578 LD_SEARCH_FLAGS=""
8579 ;;
8580 esac
8581
8582 if test "$do64bit" = yes -a "$do64bit_ok" = no
8583 then :
8584
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
8586 printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
8587
8588 fi
8589
8590
8591
8592 # Add in the arch flags late to ensure it wasn't removed.
8593 # Not necessary in TEA, but this is aligned with core
8594 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
8595
8596 # If we're running gcc, then change the C flags for compiling shared
8597 # libraries to the right flags for gcc, instead of those for the
8598 # standard manufacturer compiler.
8599
8600 if test "$GCC" = yes
8601 then :
8602
8603 case $system in
8604 AIX-*) ;;
8605 BSD/OS*) ;;
8606 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
8607 IRIX*) ;;
8608 NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
8609 Darwin-*) ;;
8610 SCO_SV-3.2*) ;;
8611 windows) ;;
8612 *) SHLIB_CFLAGS="-fPIC" ;;
8613 esac
8614 fi
8615
8616 if test "$tcl_cv_cc_visibility_hidden" != yes
8617 then :
8618
8619
8620 printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
8621
8622
8623 fi
8624
8625 if test "$SHARED_LIB_SUFFIX" = ""
8626 then :
8627
8628 # TEA specific: use PACKAGE_VERSION instead of VERSION
8629 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
8630 fi
8631 if test "$UNSHARED_LIB_SUFFIX" = ""
8632 then :
8633
8634 # TEA specific: use PACKAGE_VERSION instead of VERSION
8635 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
8636 fi
8637
8638 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
8640 printf %s "checking for SEH support in compiler... " >&6; }
8641 if test ${tcl_cv_seh+y}
8642 then :
8643 printf %s "(cached) " >&6
8644 else case e in #(
8645 e) if test "$cross_compiling" = yes
8646 then :
8647 tcl_cv_seh=no
8648 else case e in #(
8649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651
8652 #define WIN32_LEAN_AND_MEAN
8653 #include <windows.h>
8654 #undef WIN32_LEAN_AND_MEAN
8655
8656 int main(int argc, char** argv) {
8657 int a, b = 0;
8658 __try {
8659 a = 666 / b;
8660 }
8661 __except (EXCEPTION_EXECUTE_HANDLER) {
8662 return 0;
8663 }
8664 return 1;
8665 }
8666
8667 _ACEOF
8668 if ac_fn_c_try_run "$LINENO"
8669 then :
8670 tcl_cv_seh=yes
8671 else case e in #(
8672 e) tcl_cv_seh=no ;;
8673 esac
8674 fi
8675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8676 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8677 esac
8678 fi
8679
8680 ;;
8681 esac
8682 fi
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
8684 printf "%s\n" "$tcl_cv_seh" >&6; }
8685 if test "$tcl_cv_seh" = "no" ; then
8686
8687 printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
8688
8689 fi
8690
8691 #
8692 # Check to see if the excpt.h include file provided contains the
8693 # definition for EXCEPTION_DISPOSITION; if not, which is the case
8694 # with Cygwin's version as of 2002-04-10, define it to be int,
8695 # sufficient for getting the current code to work.
8696 #
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
8698 printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
8699 if test ${tcl_cv_eh_disposition+y}
8700 then :
8701 printf %s "(cached) " >&6
8702 else case e in #(
8703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705
8706 # define WIN32_LEAN_AND_MEAN
8707 # include <windows.h>
8708 # undef WIN32_LEAN_AND_MEAN
8709
8710 int
8711 main (void)
8712 {
8713
8714 EXCEPTION_DISPOSITION x;
8715
8716 ;
8717 return 0;
8718 }
8719 _ACEOF
8720 if ac_fn_c_try_compile "$LINENO"
8721 then :
8722 tcl_cv_eh_disposition=yes
8723 else case e in #(
8724 e) tcl_cv_eh_disposition=no ;;
8725 esac
8726 fi
8727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8728 ;;
8729 esac
8730 fi
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
8732 printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
8733 if test "$tcl_cv_eh_disposition" = "no" ; then
8734
8735 printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
8736
8737 fi
8738
8739 # Check to see if winnt.h defines CHAR, SHORT, and LONG
8740 # even if VOID has already been #defined. The win32api
8741 # used by mingw and cygwin is known to do this.
8742
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
8744 printf %s "checking for winnt.h that ignores VOID define... " >&6; }
8745 if test ${tcl_cv_winnt_ignore_void+y}
8746 then :
8747 printf %s "(cached) " >&6
8748 else case e in #(
8749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751
8752 #define VOID void
8753 #define WIN32_LEAN_AND_MEAN
8754 #include <windows.h>
8755 #undef WIN32_LEAN_AND_MEAN
8756
8757 int
8758 main (void)
8759 {
8760
8761 CHAR c;
8762 SHORT s;
8763 LONG l;
8764
8765 ;
8766 return 0;
8767 }
8768 _ACEOF
8769 if ac_fn_c_try_compile "$LINENO"
8770 then :
8771 tcl_cv_winnt_ignore_void=yes
8772 else case e in #(
8773 e) tcl_cv_winnt_ignore_void=no ;;
8774 esac
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8777 ;;
8778 esac
8779 fi
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
8781 printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
8782 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
8783
8784 printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
8785
8786 fi
8787 fi
8788
8789 # See if the compiler supports casting to a union type.
8790 # This is used to stop gcc from printing a compiler
8791 # warning when initializing a union member.
8792
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
8794 printf %s "checking for cast to union support... " >&6; }
8795 if test ${tcl_cv_cast_to_union+y}
8796 then :
8797 printf %s "(cached) " >&6
8798 else case e in #(
8799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8801
8802 int
8803 main (void)
8804 {
8805
8806 union foo { int i; double d; };
8807 union foo f = (union foo) (int) 0;
8808
8809 ;
8810 return 0;
8811 }
8812 _ACEOF
8813 if ac_fn_c_try_compile "$LINENO"
8814 then :
8815 tcl_cv_cast_to_union=yes
8816 else case e in #(
8817 e) tcl_cv_cast_to_union=no ;;
8818 esac
8819 fi
8820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8821 ;;
8822 esac
8823 fi
8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
8825 printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
8826 if test "$tcl_cv_cast_to_union" = "yes"; then
8827
8828 printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
8829
8830 fi
8831
8832 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
8833 if test "x$ac_cv_header_stdbool_h" = xyes
8834 then :
8835
8836 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
8837
8838 fi
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855 # These must be called after we do the basic CFLAGS checks and
8856 # verify any possible 64-bit or similar switches are necessary
8857
8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
8859 printf %s "checking for required early compiler flags... " >&6; }
8860 tcl_flags=""
8861
8862 if test ${tcl_cv_flag__isoc99_source+y}
8863 then :
8864 printf %s "(cached) " >&6
8865 else case e in #(
8866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 #include <stdlib.h>
8869 int
8870 main (void)
8871 {
8872 char *p = (char *)strtoll; char *q = (char *)strtoull;
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_c_try_compile "$LINENO"
8878 then :
8879 tcl_cv_flag__isoc99_source=no
8880 else case e in #(
8881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883 #define _ISOC99_SOURCE 1
8884 #include <stdlib.h>
8885 int
8886 main (void)
8887 {
8888 char *p = (char *)strtoll; char *q = (char *)strtoull;
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 if ac_fn_c_try_compile "$LINENO"
8894 then :
8895 tcl_cv_flag__isoc99_source=yes
8896 else case e in #(
8897 e) tcl_cv_flag__isoc99_source=no ;;
8898 esac
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8901 esac
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8904 esac
8905 fi
8906
8907 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
8908
8909 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
8910
8911 tcl_flags="$tcl_flags _ISOC99_SOURCE"
8912 fi
8913
8914 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
8915
8916 if test ${tcl_cv_flag__file_offset_bits+y}
8917 then :
8918 printf %s "(cached) " >&6
8919 else case e in #(
8920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 #include <sys/stat.h>
8923 int
8924 main (void)
8925 {
8926 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
8927 ;
8928 return 0;
8929 }
8930 _ACEOF
8931 if ac_fn_c_try_compile "$LINENO"
8932 then :
8933 tcl_cv_flag__file_offset_bits=no
8934 else case e in #(
8935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8937 #define _FILE_OFFSET_BITS 64
8938 #include <sys/stat.h>
8939 int
8940 main (void)
8941 {
8942 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
8943 ;
8944 return 0;
8945 }
8946 _ACEOF
8947 if ac_fn_c_try_compile "$LINENO"
8948 then :
8949 tcl_cv_flag__file_offset_bits=yes
8950 else case e in #(
8951 e) tcl_cv_flag__file_offset_bits=no ;;
8952 esac
8953 fi
8954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8955 esac
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8958 esac
8959 fi
8960
8961 if test "x${tcl_cv_flag__file_offset_bits}" = "xyes" ; then
8962
8963 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8964
8965 tcl_flags="$tcl_flags _FILE_OFFSET_BITS"
8966 fi
8967
8968 fi
8969 if test "x${tcl_flags}" = "x" ; then
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8971 printf "%s\n" "none" >&6; }
8972 else
8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
8974 printf "%s\n" "${tcl_flags}" >&6; }
8975 fi
8976
8977
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
8979 printf %s "checking for 64-bit integer type... " >&6; }
8980 if test ${tcl_cv_type_64bit+y}
8981 then :
8982 printf %s "(cached) " >&6
8983 else case e in #(
8984 e)
8985 tcl_cv_type_64bit=none
8986 # See if the compiler knows natively about __int64
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8989
8990 int
8991 main (void)
8992 {
8993 __int64 value = (__int64) 0;
8994 ;
8995 return 0;
8996 }
8997 _ACEOF
8998 if ac_fn_c_try_compile "$LINENO"
8999 then :
9000 tcl_type_64bit=__int64
9001 else case e in #(
9002 e) tcl_type_64bit="long long" ;;
9003 esac
9004 fi
9005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9006 # See if we could use long anyway Note that we substitute in the
9007 # type that is our current guess for a 64-bit type inside this check
9008 # program, so it should be modified only carefully...
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011
9012 int
9013 main (void)
9014 {
9015 switch (0) {
9016 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
9017 }
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 if ac_fn_c_try_compile "$LINENO"
9023 then :
9024 tcl_cv_type_64bit=${tcl_type_64bit}
9025 fi
9026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9027 esac
9028 fi
9029
9030 if test "${tcl_cv_type_64bit}" = none ; then
9031
9032 printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
9033
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9035 printf "%s\n" "yes" >&6; }
9036 elif test "${tcl_cv_type_64bit}" = "__int64" \
9037 -a "${TEA_PLATFORM}" = "windows" ; then
9038 # TEA specific: We actually want to use the default tcl.h checks in
9039 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
9041 printf "%s\n" "using Tcl header defaults" >&6; }
9042 else
9043
9044 printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
9045
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
9047 printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
9048
9049 # Now check for auxiliary declarations
9050 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t" >&5
9052 printf %s "checking for 64-bit time_t... " >&6; }
9053 if test ${tcl_cv_time_t_64+y}
9054 then :
9055 printf %s "(cached) " >&6
9056 else case e in #(
9057 e)
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 #include <sys/types.h>
9061 int
9062 main (void)
9063 {
9064 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
9065 ;
9066 return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_compile "$LINENO"
9070 then :
9071 tcl_cv_time_t_64=yes
9072 else case e in #(
9073 e) tcl_cv_time_t_64=no ;;
9074 esac
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9077 esac
9078 fi
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_time_t_64" >&5
9080 printf "%s\n" "$tcl_cv_time_t_64" >&6; }
9081 if test "x${tcl_cv_time_t_64}" = "xno" ; then
9082 # Note that _TIME_BITS=64 requires _FILE_OFFSET_BITS=64
9083 # which SC_TCL_EARLY_FLAGS has defined if necessary.
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _TIME_BITS=64 enables 64-bit time_t" >&5
9085 printf %s "checking if _TIME_BITS=64 enables 64-bit time_t... " >&6; }
9086 if test ${tcl_cv__time_bits+y}
9087 then :
9088 printf %s "(cached) " >&6
9089 else case e in #(
9090 e)
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 #define _TIME_BITS 64
9094 #include <sys/types.h>
9095 int
9096 main (void)
9097 {
9098 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
9099 ;
9100 return 0;
9101 }
9102 _ACEOF
9103 if ac_fn_c_try_compile "$LINENO"
9104 then :
9105 tcl_cv__time_bits=yes
9106 else case e in #(
9107 e) tcl_cv__time_bits=no ;;
9108 esac
9109 fi
9110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9111 esac
9112 fi
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv__time_bits" >&5
9114 printf "%s\n" "$tcl_cv__time_bits" >&6; }
9115 if test "x${tcl_cv__time_bits}" = "xyes" ; then
9116
9117 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
9118
9119 fi
9120 fi
9121 fi
9122
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
9124 printf %s "checking for struct dirent64... " >&6; }
9125 if test ${tcl_cv_struct_dirent64+y}
9126 then :
9127 printf %s "(cached) " >&6
9128 else case e in #(
9129 e)
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 #include <sys/types.h>
9133 #include <dirent.h>
9134 int
9135 main (void)
9136 {
9137 struct dirent64 p;
9138 ;
9139 return 0;
9140 }
9141 _ACEOF
9142 if ac_fn_c_try_compile "$LINENO"
9143 then :
9144 tcl_cv_struct_dirent64=yes
9145 else case e in #(
9146 e) tcl_cv_struct_dirent64=no ;;
9147 esac
9148 fi
9149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9150 esac
9151 fi
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
9153 printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
9154 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9155
9156 printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
9157
9158 fi
9159
9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
9161 printf %s "checking for DIR64... " >&6; }
9162 if test ${tcl_cv_DIR64+y}
9163 then :
9164 printf %s "(cached) " >&6
9165 else case e in #(
9166 e)
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 #include <sys/types.h>
9170 #include <dirent.h>
9171 int
9172 main (void)
9173 {
9174 struct dirent64 *p; DIR64 d = opendir64(".");
9175 p = readdir64(d); rewinddir64(d); closedir64(d);
9176 ;
9177 return 0;
9178 }
9179 _ACEOF
9180 if ac_fn_c_try_compile "$LINENO"
9181 then :
9182 tcl_cv_DIR64=yes
9183 else case e in #(
9184 e) tcl_cv_DIR64=no ;;
9185 esac
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9188 esac
9189 fi
9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
9191 printf "%s\n" "$tcl_cv_DIR64" >&6; }
9192 if test "x${tcl_cv_DIR64}" = "xyes" ; then
9193
9194 printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
9195
9196 fi
9197
9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
9199 printf %s "checking for struct stat64... " >&6; }
9200 if test ${tcl_cv_struct_stat64+y}
9201 then :
9202 printf %s "(cached) " >&6
9203 else case e in #(
9204 e)
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 #include <sys/stat.h>
9208 int
9209 main (void)
9210 {
9211 struct stat64 p;
9212
9213 ;
9214 return 0;
9215 }
9216 _ACEOF
9217 if ac_fn_c_try_compile "$LINENO"
9218 then :
9219 tcl_cv_struct_stat64=yes
9220 else case e in #(
9221 e) tcl_cv_struct_stat64=no ;;
9222 esac
9223 fi
9224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9225 esac
9226 fi
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
9228 printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
9229 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9230
9231 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
9232
9233 fi
9234
9235 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
9236 if test "x$ac_cv_func_open64" = xyes
9237 then :
9238 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
9239
9240 fi
9241 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
9242 if test "x$ac_cv_func_lseek64" = xyes
9243 then :
9244 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
9245
9246 fi
9247
9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
9249 printf %s "checking for off64_t... " >&6; }
9250 if test ${tcl_cv_type_off64_t+y}
9251 then :
9252 printf %s "(cached) " >&6
9253 else case e in #(
9254 e)
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257 #include <sys/types.h>
9258 int
9259 main (void)
9260 {
9261 off64_t offset;
9262
9263 ;
9264 return 0;
9265 }
9266 _ACEOF
9267 if ac_fn_c_try_compile "$LINENO"
9268 then :
9269 tcl_cv_type_off64_t=yes
9270 else case e in #(
9271 e) tcl_cv_type_off64_t=no ;;
9272 esac
9273 fi
9274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9275 esac
9276 fi
9277
9278 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
9279 test "x${ac_cv_func_lseek64}" = "xyes" && \
9280 test "x${ac_cv_func_open64}" = "xyes" ; then
9281
9282 printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
9283
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9285 printf "%s\n" "yes" >&6; }
9286 else
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9288 printf "%s\n" "no" >&6; }
9289 fi
9290 fi
9291
9292
9293
9294 #--------------------------------------------------------------------
9295 # Set the default compiler switches based on the --enable-symbols option.
9296 #--------------------------------------------------------------------
9297
9298
9299
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
9301 printf %s "checking for build with symbols... " >&6; }
9302 # Check whether --enable-symbols was given.
9303 if test ${enable_symbols+y}
9304 then :
9305 enableval=$enable_symbols; tcl_ok=$enableval
9306 else case e in #(
9307 e) tcl_ok=no ;;
9308 esac
9309 fi
9310
9311 if test "$tcl_ok" = "no"; then
9312 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
9313 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 printf "%s\n" "no" >&6; }
9316
9317 printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
9318
9319 else
9320 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
9321 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
9322 if test "$tcl_ok" = "yes"; then
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
9324 printf "%s\n" "yes (standard debugging)" >&6; }
9325 fi
9326 fi
9327
9328
9329
9330 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
9331
9332 printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
9333
9334 fi
9335
9336 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
9337 if test "$tcl_ok" = "all"; then
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
9339 printf "%s\n" "enabled symbols mem debugging" >&6; }
9340 else
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
9342 printf "%s\n" "enabled $tcl_ok debugging" >&6; }
9343 fi
9344 fi
9345
9346
9347 #--------------------------------------------------------------------
9348 # For Unix/Tk builds, make sure that the X libraries/headers are found.
9349 # This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS.
9350 #--------------------------------------------------------------------
9351
9352 # See [Bug #82910]
9353 #TEA_PATH_X
9354
9355 #--------------------------------------------------------------------
9356 # Everyone should be linking against the Tcl stub library. If you
9357 # can't for some reason, remove this definition. If you aren't using
9358 # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
9359 # link against the non-stubbed Tcl library.
9360 #--------------------------------------------------------------------
9361
9362 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
9363
9364
9365 #--------------------------------------------------------------------
9366 # This macro generates a line to use when building a library. It
9367 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
9368 # and TEA_LOAD_TCLCONFIG macros above.
9369 #--------------------------------------------------------------------
9370
9371
9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
9373 printf %s "checking for egrep -e... " >&6; }
9374 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
9375 then :
9376 printf %s "(cached) " >&6
9377 else case e in #(
9378 e) if test -z "$EGREP_TRADITIONAL"; then
9379 ac_path_EGREP_TRADITIONAL_found=false
9380 # Loop through the user's path and test for each of PROGNAME-LIST
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9383 do
9384 IFS=$as_save_IFS
9385 case $as_dir in #(((
9386 '') as_dir=./ ;;
9387 */) ;;
9388 *) as_dir=$as_dir/ ;;
9389 esac
9390 for ac_prog in grep ggrep
9391 do
9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
9394 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
9395 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
9396 # Check for GNU $ac_path_EGREP_TRADITIONAL
9397 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
9398 *GNU*)
9399 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
9400 #(
9401 *)
9402 ac_count=0
9403 printf %s 0123456789 >"conftest.in"
9404 while :
9405 do
9406 cat "conftest.in" "conftest.in" >"conftest.tmp"
9407 mv "conftest.tmp" "conftest.in"
9408 cp "conftest.in" "conftest.nl"
9409 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
9410 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9412 as_fn_arith $ac_count + 1 && ac_count=$as_val
9413 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
9414 # Best one so far, save it but keep looking for a better one
9415 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
9416 ac_path_EGREP_TRADITIONAL_max=$ac_count
9417 fi
9418 # 10*(2^10) chars as input seems more than enough
9419 test $ac_count -gt 10 && break
9420 done
9421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9422 esac
9423
9424 $ac_path_EGREP_TRADITIONAL_found && break 3
9425 done
9426 done
9427 done
9428 IFS=$as_save_IFS
9429 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
9430 :
9431 fi
9432 else
9433 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
9434 fi
9435
9436 if test "$ac_cv_path_EGREP_TRADITIONAL"
9437 then :
9438 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
9439 else case e in #(
9440 e) if test -z "$EGREP_TRADITIONAL"; then
9441 ac_path_EGREP_TRADITIONAL_found=false
9442 # Loop through the user's path and test for each of PROGNAME-LIST
9443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9445 do
9446 IFS=$as_save_IFS
9447 case $as_dir in #(((
9448 '') as_dir=./ ;;
9449 */) ;;
9450 *) as_dir=$as_dir/ ;;
9451 esac
9452 for ac_prog in egrep
9453 do
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
9456 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
9457 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
9458 # Check for GNU $ac_path_EGREP_TRADITIONAL
9459 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
9460 *GNU*)
9461 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
9462 #(
9463 *)
9464 ac_count=0
9465 printf %s 0123456789 >"conftest.in"
9466 while :
9467 do
9468 cat "conftest.in" "conftest.in" >"conftest.tmp"
9469 mv "conftest.tmp" "conftest.in"
9470 cp "conftest.in" "conftest.nl"
9471 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
9472 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9474 as_fn_arith $ac_count + 1 && ac_count=$as_val
9475 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
9476 # Best one so far, save it but keep looking for a better one
9477 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
9478 ac_path_EGREP_TRADITIONAL_max=$ac_count
9479 fi
9480 # 10*(2^10) chars as input seems more than enough
9481 test $ac_count -gt 10 && break
9482 done
9483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9484 esac
9485
9486 $ac_path_EGREP_TRADITIONAL_found && break 3
9487 done
9488 done
9489 done
9490 IFS=$as_save_IFS
9491 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
9492 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9493 fi
9494 else
9495 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
9496 fi
9497 ;;
9498 esac
9499 fi ;;
9500 esac
9501 fi
9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
9503 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
9504 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
9505
9506
9507 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
9508 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
9509 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512
9513 #if defined(_MSC_VER) && _MSC_VER >= 1400
9514 print("manifest needed")
9515 #endif
9516
9517 _ACEOF
9518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9519 $EGREP_TRADITIONAL "manifest needed" >/dev/null 2>&1
9520 then :
9521
9522 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
9523 VC_MANIFEST_EMBED_DLL="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;2 ; fi"
9524 VC_MANIFEST_EMBED_EXE="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;1 ; fi"
9525 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
9526
9527 CLEANFILES="$CLEANFILES *.manifest"
9528
9529
9530 fi
9531 rm -rf conftest*
9532
9533 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
9534 else
9535 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
9536 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
9537 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
9538 fi
9539
9540 if test "${SHARED_BUILD}" = "1" ; then
9541 MAKE_LIB="${MAKE_SHARED_LIB} "
9542 else
9543 MAKE_LIB="${MAKE_STATIC_LIB} "
9544 fi
9545
9546 #--------------------------------------------------------------------
9547 # Shared libraries and static libraries have different names.
9548 # Use the double eval to make sure any variables in the suffix is
9549 # substituted. (@@@ Might not be necessary anymore)
9550 #--------------------------------------------------------------------
9551
9552 PACKAGE_LIB_PREFIX8="${PACKAGE_LIB_PREFIX}"
9553 PACKAGE_LIB_PREFIX9="${PACKAGE_LIB_PREFIX}tcl9"
9554 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9555 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}"
9556 else
9557 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}"
9558
9559 printf "%s\n" "#define TCL_MAJOR_VERSION 8" >>confdefs.h
9560
9561 fi
9562 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tk8}" != x; then
9563
9564 printf "%s\n" "#define TK_MAJOR_VERSION 8" >>confdefs.h
9565
9566 fi
9567 if test "${TEA_PLATFORM}" = "windows" ; then
9568 if test "${SHARED_BUILD}" = "1" ; then
9569 # We force the unresolved linking of symbols that are really in
9570 # the private libraries of Tcl and Tk.
9571 if test x"${TK_BIN_DIR}" != x ; then
9572 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
9573 fi
9574 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
9575 if test "$GCC" = "yes"; then
9576 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
9577 fi
9578 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9579 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9580 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9581 else
9582 if test "$GCC" = "yes"; then
9583 PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX}
9584 fi
9585 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9586 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9587 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9588 fi
9589 # Some packages build their own stubs libraries
9590 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9591 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
9592 else
9593 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9594 fi
9595 if test "$GCC" = "yes"; then
9596 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
9597 fi
9598 # These aren't needed on Windows (either MSVC or gcc)
9599 RANLIB=:
9600 RANLIB_STUB=:
9601 else
9602 RANLIB_STUB="${RANLIB}"
9603 if test "${SHARED_BUILD}" = "1" ; then
9604 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
9605 if test x"${TK_BIN_DIR}" != x ; then
9606 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
9607 fi
9608 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9609 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9610 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9611 RANLIB=:
9612 else
9613 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9614 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9615 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9616 fi
9617 # Some packages build their own stubs libraries
9618 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9619 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
9620 else
9621 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9622 fi
9623 fi
9624
9625 # These are escaped so that only CFLAGS is picked up at configure time.
9626 # The other values will be substituted at make time.
9627 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
9628 if test "${SHARED_BUILD}" = "1" ; then
9629 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
9630 fi
9631
9632
9633
9634
9635
9636 # Substitute STUB_LIB_FILE in case package creates a stub library too.
9637
9638
9639
9640
9641
9642
9643 #--------------------------------------------------------------------
9644 # __CHANGE__
9645 # Add platform libs to LIBS or SHLIB_LD_LIBS as necessary.
9646 #--------------------------------------------------------------------
9647
9648 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes" ; then
9649
9650 vars="user32.lib"
9651 for i in $vars; do
9652 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
9653 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
9654 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
9655 fi
9656 PKG_LIBS="$PKG_LIBS $i"
9657 done
9658
9659
9660 else
9661
9662 vars="-lm"
9663 for i in $vars; do
9664 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
9665 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
9666 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
9667 fi
9668 PKG_LIBS="$PKG_LIBS $i"
9669 done
9670
9671
9672 fi
9673
9674 #--------------------------------------------------------------------
9675 # Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
9676 # file during the install process. Don't run the TCLSH_PROG through
9677 # ${CYGPATH} because it's being used directly by make.
9678 # Require that we use a tclsh shell version 8.2 or later since earlier
9679 # versions have bugs in the pkg_mkIndex routine.
9680 # Add WISH as well if this is a Tk extension.
9681 #--------------------------------------------------------------------
9682
9683
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
9685 printf %s "checking for tclsh... " >&6; }
9686 if test -f "${TCL_BIN_DIR}/Makefile" ; then
9687 # tclConfig.sh is in Tcl build directory
9688 if test "${TEA_PLATFORM}" = "windows"; then
9689 if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then
9690 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
9691 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then
9692 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}"
9693 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then
9694 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}"
9695 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then
9696 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}"
9697 fi
9698 else
9699 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
9700 fi
9701 else
9702 # tclConfig.sh is in install location
9703 if test "${TEA_PLATFORM}" = "windows"; then
9704 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
9705 else
9706 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
9707 fi
9708 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
9709 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
9710 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
9711 for i in $list ; do
9712 if test -f "$i/${TCLSH_PROG}" ; then
9713 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
9714 break
9715 fi
9716 done
9717 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
9718 fi
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
9720 printf "%s\n" "${TCLSH_PROG}" >&6; }
9721
9722
9723
9724 #--------------------------------------------------------------------
9725 # These are for tifftclConfig.sh
9726 #--------------------------------------------------------------------
9727
9728 # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib)
9729 eval pkglibdir="${libdir}/tifftcl${PACKAGE_VERSION}"
9730 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
9731 eval tifftcl_LIB_FLAG="-ltifftcl${PACKAGE_VERSION}"
9732 eval tifftcl_STUB_LIB_FLAG="-ltifftclstub${PACKAGE_VERSION}"
9733 else
9734 eval tifftcl_LIB_FLAG="-ltifftcl`echo ${PACKAGE_VERSION} | tr -d .`"
9735 eval tifftcl_STUB_LIB_FLAG="-ltifftclstub`echo ${PACKAGE_VERSION} | tr -d .`"
9736 fi
9737 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9738 eval tifftcl_STUB_LIB_FLAG="-ltifftclstub"
9739 fi
9740
9741 tifftcl_BUILD_LIB_SPEC="-L`$CYGPATH $(pwd)` ${tifftcl_LIB_FLAG}"
9742 tifftcl_LIB_SPEC="-L`$CYGPATH ${pkglibdir}` ${tifftcl_LIB_FLAG}"
9743 tifftcl_BUILD_STUB_LIB_SPEC="-L`$CYGPATH $(pwd)` ${tifftcl_STUB_LIB_FLAG}"
9744 tifftcl_STUB_LIB_SPEC="-L`$CYGPATH ${pkglibdir}` ${tifftcl_STUB_LIB_FLAG}"
9745 tifftcl_BUILD_STUB_LIB_PATH="`$CYGPATH $(pwd)`/${PKG_STUB_LIB_FILE}"
9746 tifftcl_STUB_LIB_PATH="`$CYGPATH ${pkglibdir}`/${PKG_STUB_LIB_FILE}"
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760 #--------------------------------------------------------------------
9761 # Finally, substitute all of the various values into the Makefile.
9762 # You may alternatively have a special pkgIndex.tcl.in or other files
9763 # which require substituting th AC variables in. Include these here.
9764 #--------------------------------------------------------------------
9765
9766 ac_config_files="$ac_config_files Makefile tifftclConfig.sh"
9767
9768 cat >confcache <<\_ACEOF
9769 # This file is a shell script that caches the results of configure
9770 # tests run on this system so they can be shared between configure
9771 # scripts and configure runs, see configure's option --config-cache.
9772 # It is not useful on other systems. If it contains results you don't
9773 # want to keep, you may remove or edit it.
9774 #
9775 # config.status only pays attention to the cache file if you give it
9776 # the --recheck option to rerun configure.
9777 #
9778 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
9779 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
9780 # following values.
9781
9782 _ACEOF
9783
9784 # The following way of writing the cache mishandles newlines in values,
9785 # but we know of no workaround that is simple, portable, and efficient.
9786 # So, we kill variables containing newlines.
9787 # Ultrix sh set writes to stderr and can't be redirected directly,
9788 # and sets the high bit in the cache file unless we assign to the vars.
9789 (
9790 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9791 eval ac_val=\$$ac_var
9792 case $ac_val in #(
9793 *${as_nl}*)
9794 case $ac_var in #(
9795 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9796 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9797 esac
9798 case $ac_var in #(
9799 _ | IFS | as_nl) ;; #(
9800 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9801 *) { eval $ac_var=; unset $ac_var;} ;;
9802 esac ;;
9803 esac
9804 done
9805
9806 (set) 2>&1 |
9807 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9808 *${as_nl}ac_space=\ *)
9809 # 'set' does not quote correctly, so add quotes: double-quote
9810 # substitution turns \\\\ into \\, and sed turns \\ into \.
9811 sed -n \
9812 "s/'/'\\\\''/g;
9813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9814 ;; #(
9815 *)
9816 # 'set' quotes correctly as required by POSIX, so do not add quotes.
9817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9818 ;;
9819 esac |
9820 sort
9821 ) |
9822 sed '
9823 /^ac_cv_env_/b end
9824 t clear
9825 :clear
9826 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9827 t end
9828 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9829 :end' >>confcache
9830 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9831 if test -w "$cache_file"; then
9832 if test "x$cache_file" != "x/dev/null"; then
9833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9834 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9835 if test ! -f "$cache_file" || test -h "$cache_file"; then
9836 cat confcache >"$cache_file"
9837 else
9838 case $cache_file in #(
9839 */* | ?:*)
9840 mv -f confcache "$cache_file"$$ &&
9841 mv -f "$cache_file"$$ "$cache_file" ;; #(
9842 *)
9843 mv -f confcache "$cache_file" ;;
9844 esac
9845 fi
9846 fi
9847 else
9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9849 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9850 fi
9851 fi
9852 rm -f confcache
9853
9854 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9855 # Let make expand exec_prefix.
9856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9857
9858 # Transform confdefs.h into DEFS.
9859 # Protect against shell expansion while executing Makefile rules.
9860 # Protect against Makefile macro expansion.
9861 #
9862 # If the first sed substitution is executed (which looks for macros that
9863 # take arguments), then branch to the quote section. Otherwise,
9864 # look for a macro that doesn't take arguments.
9865 ac_script='
9866 :mline
9867 /\\$/{
9868 N
9869 s,\\\n,,
9870 b mline
9871 }
9872 t clear
9873 :clear
9874 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
9875 t quote
9876 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
9877 t quote
9878 b any
9879 :quote
9880 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
9881 s/\$/$$/g
9882 H
9883 :any
9884 ${
9885 g
9886 s/^\n//
9887 s/\n/ /g
9888 p
9889 }
9890 '
9891 DEFS=`sed -n "$ac_script" confdefs.h`
9892
9893
9894 ac_libobjs=
9895 ac_ltlibobjs=
9896 U=
9897 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9898 # 1. Remove the extension, and $U if already installed.
9899 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9900 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9901 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9902 # will be set to the directory where LIBOBJS objects are built.
9903 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9904 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9905 done
9906 LIBOBJS=$ac_libobjs
9907
9908 LTLIBOBJS=$ac_ltlibobjs
9909
9910
9911 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
9912
9913 : "${CONFIG_STATUS=./config.status}"
9914 ac_write_fail=0
9915 ac_clean_files_save=$ac_clean_files
9916 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9918 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9919 as_write_fail=0
9920 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9921 #! $SHELL
9922 # Generated by $as_me.
9923 # Run this file to recreate the current configuration.
9924 # Compiler output produced by configure, useful for debugging
9925 # configure, is in config.log if it exists.
9926
9927 debug=false
9928 ac_cs_recheck=false
9929 ac_cs_silent=false
9930
9931 SHELL=\${CONFIG_SHELL-$SHELL}
9932 export SHELL
9933 _ASEOF
9934 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9935 ## -------------------- ##
9936 ## M4sh Initialization. ##
9937 ## -------------------- ##
9938
9939 # Be more Bourne compatible
9940 DUALCASE=1; export DUALCASE # for MKS sh
9941 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9942 then :
9943 emulate sh
9944 NULLCMD=:
9945 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9946 # is contrary to our usage. Disable this feature.
9947 alias -g '${1+"$@"}'='"$@"'
9948 setopt NO_GLOB_SUBST
9949 else case e in #(
9950 e) case `(set -o) 2>/dev/null` in #(
9951 *posix*) :
9952 set -o posix ;; #(
9953 *) :
9954 ;;
9955 esac ;;
9956 esac
9957 fi
9958
9959
9960
9961 # Reset variables that may have inherited troublesome values from
9962 # the environment.
9963
9964 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9965 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9966 # side effect of setting IFS to empty, thus disabling word splitting.)
9967 # Quoting is to prevent editors from complaining about space-tab.
9968 as_nl='
9969 '
9970 export as_nl
9971 IFS=" "" $as_nl"
9972
9973 PS1='$ '
9974 PS2='> '
9975 PS4='+ '
9976
9977 # Ensure predictable behavior from utilities with locale-dependent output.
9978 LC_ALL=C
9979 export LC_ALL
9980 LANGUAGE=C
9981 export LANGUAGE
9982
9983 # We cannot yet rely on "unset" to work, but we need these variables
9984 # to be unset--not just set to an empty or harmless value--now, to
9985 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9986 # also avoids known problems related to "unset" and subshell syntax
9987 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9988 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9989 do eval test \${$as_var+y} \
9990 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9991 done
9992
9993 # Ensure that fds 0, 1, and 2 are open.
9994 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9995 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9996 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9997
9998 # The user is always right.
9999 if ${PATH_SEPARATOR+false} :; then
10000 PATH_SEPARATOR=:
10001 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10002 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10003 PATH_SEPARATOR=';'
10004 }
10005 fi
10006
10007
10008 # Find who we are. Look in the path if we contain no directory separator.
10009 as_myself=
10010 case $0 in #((
10011 *[\\/]* ) as_myself=$0 ;;
10012 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10013 for as_dir in $PATH
10014 do
10015 IFS=$as_save_IFS
10016 case $as_dir in #(((
10017 '') as_dir=./ ;;
10018 */) ;;
10019 *) as_dir=$as_dir/ ;;
10020 esac
10021 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10022 done
10023 IFS=$as_save_IFS
10024
10025 ;;
10026 esac
10027 # We did not find ourselves, most probably we were run as 'sh COMMAND'
10028 # in which case we are not to be found in the path.
10029 if test "x$as_myself" = x; then
10030 as_myself=$0
10031 fi
10032 if test ! -f "$as_myself"; then
10033 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10034 exit 1
10035 fi
10036
10037
10038
10039 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10040 # ----------------------------------------
10041 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10042 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10043 # script with STATUS, using 1 if that was 0.
10044 as_fn_error ()
10045 {
10046 as_status=$1; test $as_status -eq 0 && as_status=1
10047 if test "$4"; then
10048 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10050 fi
10051 printf "%s\n" "$as_me: error: $2" >&2
10052 as_fn_exit $as_status
10053 } # as_fn_error
10054
10055
10056 # as_fn_set_status STATUS
10057 # -----------------------
10058 # Set $? to STATUS, without forking.
10059 as_fn_set_status ()
10060 {
10061 return $1
10062 } # as_fn_set_status
10063
10064 # as_fn_exit STATUS
10065 # -----------------
10066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10067 as_fn_exit ()
10068 {
10069 set +e
10070 as_fn_set_status $1
10071 exit $1
10072 } # as_fn_exit
10073
10074 # as_fn_unset VAR
10075 # ---------------
10076 # Portably unset VAR.
10077 as_fn_unset ()
10078 {
10079 { eval $1=; unset $1;}
10080 }
10081 as_unset=as_fn_unset
10082
10083 # as_fn_append VAR VALUE
10084 # ----------------------
10085 # Append the text in VALUE to the end of the definition contained in VAR. Take
10086 # advantage of any shell optimizations that allow amortized linear growth over
10087 # repeated appends, instead of the typical quadratic growth present in naive
10088 # implementations.
10089 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10090 then :
10091 eval 'as_fn_append ()
10092 {
10093 eval $1+=\$2
10094 }'
10095 else case e in #(
10096 e) as_fn_append ()
10097 {
10098 eval $1=\$$1\$2
10099 } ;;
10100 esac
10101 fi # as_fn_append
10102
10103 # as_fn_arith ARG...
10104 # ------------------
10105 # Perform arithmetic evaluation on the ARGs, and store the result in the
10106 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10107 # must be portable across $(()) and expr.
10108 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10109 then :
10110 eval 'as_fn_arith ()
10111 {
10112 as_val=$(( $* ))
10113 }'
10114 else case e in #(
10115 e) as_fn_arith ()
10116 {
10117 as_val=`expr "$@" || test $? -eq 1`
10118 } ;;
10119 esac
10120 fi # as_fn_arith
10121
10122
10123 if expr a : '\(a\)' >/dev/null 2>&1 &&
10124 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10125 as_expr=expr
10126 else
10127 as_expr=false
10128 fi
10129
10130 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10131 as_basename=basename
10132 else
10133 as_basename=false
10134 fi
10135
10136 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10137 as_dirname=dirname
10138 else
10139 as_dirname=false
10140 fi
10141
10142 as_me=`$as_basename -- "$0" ||
10143 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10144 X"$0" : 'X\(//\)$' \| \
10145 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10146 printf "%s\n" X/"$0" |
10147 sed '/^.*\/\([^/][^/]*\)\/*$/{
10148 s//\1/
10149 q
10150 }
10151 /^X\/\(\/\/\)$/{
10152 s//\1/
10153 q
10154 }
10155 /^X\/\(\/\).*/{
10156 s//\1/
10157 q
10158 }
10159 s/.*/./; q'`
10160
10161 # Avoid depending upon Character Ranges.
10162 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10163 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10164 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10165 as_cr_digits='0123456789'
10166 as_cr_alnum=$as_cr_Letters$as_cr_digits
10167
10168
10169 # Determine whether it's possible to make 'echo' print without a newline.
10170 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10171 # for compatibility with existing Makefiles.
10172 ECHO_C= ECHO_N= ECHO_T=
10173 case `echo -n x` in #(((((
10174 -n*)
10175 case `echo 'xy\c'` in
10176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10177 xy) ECHO_C='\c';;
10178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10179 ECHO_T=' ';;
10180 esac;;
10181 *)
10182 ECHO_N='-n';;
10183 esac
10184
10185 # For backward compatibility with old third-party macros, we provide
10186 # the shell variables $as_echo and $as_echo_n. New code should use
10187 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10188 as_echo='printf %s\n'
10189 as_echo_n='printf %s'
10190
10191 rm -f conf$$ conf$$.exe conf$$.file
10192 if test -d conf$$.dir; then
10193 rm -f conf$$.dir/conf$$.file
10194 else
10195 rm -f conf$$.dir
10196 mkdir conf$$.dir 2>/dev/null
10197 fi
10198 if (echo >conf$$.file) 2>/dev/null; then
10199 if ln -s conf$$.file conf$$ 2>/dev/null; then
10200 as_ln_s='ln -s'
10201 # ... but there are two gotchas:
10202 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
10203 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
10204 # In both cases, we have to default to 'cp -pR'.
10205 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10206 as_ln_s='cp -pR'
10207 elif ln conf$$.file conf$$ 2>/dev/null; then
10208 as_ln_s=ln
10209 else
10210 as_ln_s='cp -pR'
10211 fi
10212 else
10213 as_ln_s='cp -pR'
10214 fi
10215 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10216 rmdir conf$$.dir 2>/dev/null
10217
10218
10219 # as_fn_mkdir_p
10220 # -------------
10221 # Create "$as_dir" as a directory, including parents if necessary.
10222 as_fn_mkdir_p ()
10223 {
10224
10225 case $as_dir in #(
10226 -*) as_dir=./$as_dir;;
10227 esac
10228 test -d "$as_dir" || eval $as_mkdir_p || {
10229 as_dirs=
10230 while :; do
10231 case $as_dir in #(
10232 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10233 *) as_qdir=$as_dir;;
10234 esac
10235 as_dirs="'$as_qdir' $as_dirs"
10236 as_dir=`$as_dirname -- "$as_dir" ||
10237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10238 X"$as_dir" : 'X\(//\)[^/]' \| \
10239 X"$as_dir" : 'X\(//\)$' \| \
10240 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10241 printf "%s\n" X"$as_dir" |
10242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10243 s//\1/
10244 q
10245 }
10246 /^X\(\/\/\)[^/].*/{
10247 s//\1/
10248 q
10249 }
10250 /^X\(\/\/\)$/{
10251 s//\1/
10252 q
10253 }
10254 /^X\(\/\).*/{
10255 s//\1/
10256 q
10257 }
10258 s/.*/./; q'`
10259 test -d "$as_dir" && break
10260 done
10261 test -z "$as_dirs" || eval "mkdir $as_dirs"
10262 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10263
10264
10265 } # as_fn_mkdir_p
10266 if mkdir -p . 2>/dev/null; then
10267 as_mkdir_p='mkdir -p "$as_dir"'
10268 else
10269 test -d ./-p && rmdir ./-p
10270 as_mkdir_p=false
10271 fi
10272
10273
10274 # as_fn_executable_p FILE
10275 # -----------------------
10276 # Test if FILE is an executable regular file.
10277 as_fn_executable_p ()
10278 {
10279 test -f "$1" && test -x "$1"
10280 } # as_fn_executable_p
10281 as_test_x='test -x'
10282 as_executable_p=as_fn_executable_p
10283
10284 # Sed expression to map a string onto a valid CPP name.
10285 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10286 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
10287
10288 # Sed expression to map a string onto a valid variable name.
10289 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10290 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
10291
10292
10293 exec 6>&1
10294 ## ----------------------------------- ##
10295 ## Main body of $CONFIG_STATUS script. ##
10296 ## ----------------------------------- ##
10297 _ASEOF
10298 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10299
10300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10301 # Save the log message, to keep $0 and so on meaningful, and to
10302 # report actual input values of CONFIG_FILES etc. instead of their
10303 # values after options handling.
10304 ac_log="
10305 This file was extended by tifftcl $as_me 4.7.1, which was
10306 generated by GNU Autoconf 2.72. Invocation command line was
10307
10308 CONFIG_FILES = $CONFIG_FILES
10309 CONFIG_HEADERS = $CONFIG_HEADERS
10310 CONFIG_LINKS = $CONFIG_LINKS
10311 CONFIG_COMMANDS = $CONFIG_COMMANDS
10312 $ $0 $@
10313
10314 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10315 "
10316
10317 _ACEOF
10318
10319 case $ac_config_files in *"
10320 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10321 esac
10322
10323
10324
10325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10326 # Files that config.status was made for.
10327 config_files="$ac_config_files"
10328
10329 _ACEOF
10330
10331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10332 ac_cs_usage="\
10333 '$as_me' instantiates files and other configuration actions
10334 from templates according to the current configuration. Unless the files
10335 and actions are specified as TAGs, all are instantiated by default.
10336
10337 Usage: $0 [OPTION]... [TAG]...
10338
10339 -h, --help print this help, then exit
10340 -V, --version print version number and configuration settings, then exit
10341 --config print configuration, then exit
10342 -q, --quiet, --silent
10343 do not print progress messages
10344 -d, --debug don't remove temporary files
10345 --recheck update $as_me by reconfiguring in the same conditions
10346 --file=FILE[:TEMPLATE]
10347 instantiate the configuration file FILE
10348
10349 Configuration files:
10350 $config_files
10351
10352 Report bugs to the package provider."
10353
10354 _ACEOF
10355 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10356 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10358 ac_cs_config='$ac_cs_config_escaped'
10359 ac_cs_version="\\
10360 tifftcl config.status 4.7.1
10361 configured by $0, generated by GNU Autoconf 2.72,
10362 with options \\"\$ac_cs_config\\"
10363
10364 Copyright (C) 2023 Free Software Foundation, Inc.
10365 This config.status script is free software; the Free Software Foundation
10366 gives unlimited permission to copy, distribute and modify it."
10367
10368 ac_pwd='$ac_pwd'
10369 srcdir='$srcdir'
10370 test -n "\$AWK" || AWK=awk
10371 _ACEOF
10372
10373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10374 # The default lists apply if the user does not specify any file.
10375 ac_need_defaults=:
10376 while test $# != 0
10377 do
10378 case $1 in
10379 --*=?*)
10380 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10381 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10382 ac_shift=:
10383 ;;
10384 --*=)
10385 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10386 ac_optarg=
10387 ac_shift=:
10388 ;;
10389 *)
10390 ac_option=$1
10391 ac_optarg=$2
10392 ac_shift=shift
10393 ;;
10394 esac
10395
10396 case $ac_option in
10397 # Handling of the options.
10398 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10399 ac_cs_recheck=: ;;
10400 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10401 printf "%s\n" "$ac_cs_version"; exit ;;
10402 --config | --confi | --conf | --con | --co | --c )
10403 printf "%s\n" "$ac_cs_config"; exit ;;
10404 --debug | --debu | --deb | --de | --d | -d )
10405 debug=: ;;
10406 --file | --fil | --fi | --f )
10407 $ac_shift
10408 case $ac_optarg in
10409 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10410 '') as_fn_error $? "missing file argument" ;;
10411 esac
10412 as_fn_append CONFIG_FILES " '$ac_optarg'"
10413 ac_need_defaults=false;;
10414 --he | --h | --help | --hel | -h )
10415 printf "%s\n" "$ac_cs_usage"; exit ;;
10416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10417 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10418 ac_cs_silent=: ;;
10419
10420 # This is an error.
10421 -*) as_fn_error $? "unrecognized option: '$1'
10422 Try '$0 --help' for more information." ;;
10423
10424 *) as_fn_append ac_config_targets " $1"
10425 ac_need_defaults=false ;;
10426
10427 esac
10428 shift
10429 done
10430
10431 ac_configure_extra_args=
10432
10433 if $ac_cs_silent; then
10434 exec 6>/dev/null
10435 ac_configure_extra_args="$ac_configure_extra_args --silent"
10436 fi
10437
10438 _ACEOF
10439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10440 if \$ac_cs_recheck; then
10441 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10442 shift
10443 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10444 CONFIG_SHELL='$SHELL'
10445 export CONFIG_SHELL
10446 exec "\$@"
10447 fi
10448
10449 _ACEOF
10450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10451 exec 5>>config.log
10452 {
10453 echo
10454 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10455 ## Running $as_me. ##
10456 _ASBOX
10457 printf "%s\n" "$ac_log"
10458 } >&5
10459
10460 _ACEOF
10461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10462 _ACEOF
10463
10464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10465
10466 # Handling of arguments.
10467 for ac_config_target in $ac_config_targets
10468 do
10469 case $ac_config_target in
10470 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10471 "tifftclConfig.sh") CONFIG_FILES="$CONFIG_FILES tifftclConfig.sh" ;;
10472
10473 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
10474 esac
10475 done
10476
10477
10478 # If the user did not use the arguments to specify the items to instantiate,
10479 # then the envvar interface is used. Set only those that are not.
10480 # We use the long form for the default assignment because of an extremely
10481 # bizarre bug on SunOS 4.1.3.
10482 if $ac_need_defaults; then
10483 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10484 fi
10485
10486 # Have a temporary directory for convenience. Make it in the build tree
10487 # simply because there is no reason against having it here, and in addition,
10488 # creating and moving files from /tmp can sometimes cause problems.
10489 # Hook for its removal unless debugging.
10490 # Note that there is a small window in which the directory will not be cleaned:
10491 # after its creation but before its name has been assigned to '$tmp'.
10492 $debug ||
10493 {
10494 tmp= ac_tmp=
10495 trap 'exit_status=$?
10496 : "${ac_tmp:=$tmp}"
10497 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10498 ' 0
10499 trap 'as_fn_exit 1' 1 2 13 15
10500 }
10501 # Create a (secure) tmp directory for tmp files.
10502
10503 {
10504 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10505 test -d "$tmp"
10506 } ||
10507 {
10508 tmp=./conf$$-$RANDOM
10509 (umask 077 && mkdir "$tmp")
10510 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10511 ac_tmp=$tmp
10512
10513 # Set up the scripts for CONFIG_FILES section.
10514 # No need to generate them if there are no CONFIG_FILES.
10515 # This happens for instance with './config.status config.h'.
10516 if test -n "$CONFIG_FILES"; then
10517
10518
10519 ac_cr=`echo X | tr X '\015'`
10520 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10521 # But we know of no other shell where ac_cr would be empty at this
10522 # point, so we can use a bashism as a fallback.
10523 if test "x$ac_cr" = x; then
10524 eval ac_cr=\$\'\\r\'
10525 fi
10526 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10527 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10528 ac_cs_awk_cr='\\r'
10529 else
10530 ac_cs_awk_cr=$ac_cr
10531 fi
10532
10533 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10534 _ACEOF
10535
10536
10537 {
10538 echo "cat >conf$$subs.awk <<_ACEOF" &&
10539 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10540 echo "_ACEOF"
10541 } >conf$$subs.sh ||
10542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10543 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10544 ac_delim='%!_!# '
10545 for ac_last_try in false false false false false :; do
10546 . ./conf$$subs.sh ||
10547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10548
10549 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10550 if test $ac_delim_n = $ac_delim_num; then
10551 break
10552 elif $ac_last_try; then
10553 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10554 else
10555 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10556 fi
10557 done
10558 rm -f conf$$subs.sh
10559
10560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10561 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10562 _ACEOF
10563 sed -n '
10564 h
10565 s/^/S["/; s/!.*/"]=/
10566 p
10567 g
10568 s/^[^!]*!//
10569 :repl
10570 t repl
10571 s/'"$ac_delim"'$//
10572 t delim
10573 :nl
10574 h
10575 s/\(.\{148\}\)..*/\1/
10576 t more1
10577 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10578 p
10579 n
10580 b repl
10581 :more1
10582 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10583 p
10584 g
10585 s/.\{148\}//
10586 t nl
10587 :delim
10588 h
10589 s/\(.\{148\}\)..*/\1/
10590 t more2
10591 s/["\\]/\\&/g; s/^/"/; s/$/"/
10592 p
10593 b
10594 :more2
10595 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10596 p
10597 g
10598 s/.\{148\}//
10599 t delim
10600 ' <conf$$subs.awk | sed '
10601 /^[^""]/{
10602 N
10603 s/\n//
10604 }
10605 ' >>$CONFIG_STATUS || ac_write_fail=1
10606 rm -f conf$$subs.awk
10607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10608 _ACAWK
10609 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10610 for (key in S) S_is_set[key] = 1
10611 FS = ""
10612
10613 }
10614 {
10615 line = $ 0
10616 nfields = split(line, field, "@")
10617 substed = 0
10618 len = length(field[1])
10619 for (i = 2; i < nfields; i++) {
10620 key = field[i]
10621 keylen = length(key)
10622 if (S_is_set[key]) {
10623 value = S[key]
10624 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10625 len += length(value) + length(field[++i])
10626 substed = 1
10627 } else
10628 len += 1 + keylen
10629 }
10630
10631 print line
10632 }
10633
10634 _ACAWK
10635 _ACEOF
10636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10637 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10638 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10639 else
10640 cat
10641 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10642 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10643 _ACEOF
10644
10645 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10646 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10647 # trailing colons and then remove the whole line if VPATH becomes empty
10648 # (actually we leave an empty line to preserve line numbers).
10649 if test "x$srcdir" = x.; then
10650 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10651 h
10652 s///
10653 s/^/:/
10654 s/[ ]*$/:/
10655 s/:\$(srcdir):/:/g
10656 s/:\${srcdir}:/:/g
10657 s/:@srcdir@:/:/g
10658 s/^:*//
10659 s/:*$//
10660 x
10661 s/\(=[ ]*\).*/\1/
10662 G
10663 s/\n//
10664 s/^[^=]*=[ ]*$//
10665 }'
10666 fi
10667
10668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10669 fi # test -n "$CONFIG_FILES"
10670
10671
10672 eval set X " :F $CONFIG_FILES "
10673 shift
10674 for ac_tag
10675 do
10676 case $ac_tag in
10677 :[FHLC]) ac_mode=$ac_tag; continue;;
10678 esac
10679 case $ac_mode$ac_tag in
10680 :[FHL]*:*);;
10681 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
10682 :[FH]-) ac_tag=-:-;;
10683 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10684 esac
10685 ac_save_IFS=$IFS
10686 IFS=:
10687 set x $ac_tag
10688 IFS=$ac_save_IFS
10689 shift
10690 ac_file=$1
10691 shift
10692
10693 case $ac_mode in
10694 :L) ac_source=$1;;
10695 :[FH])
10696 ac_file_inputs=
10697 for ac_f
10698 do
10699 case $ac_f in
10700 -) ac_f="$ac_tmp/stdin";;
10701 *) # Look for the file first in the build tree, then in the source tree
10702 # (if the path is not absolute). The absolute path cannot be DOS-style,
10703 # because $ac_f cannot contain ':'.
10704 test -f "$ac_f" ||
10705 case $ac_f in
10706 [\\/$]*) false;;
10707 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10708 esac ||
10709 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
10710 esac
10711 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10712 as_fn_append ac_file_inputs " '$ac_f'"
10713 done
10714
10715 # Let's still pretend it is 'configure' which instantiates (i.e., don't
10716 # use $as_me), people would be surprised to read:
10717 # /* config.h. Generated by config.status. */
10718 configure_input='Generated from '`
10719 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10720 `' by configure.'
10721 if test x"$ac_file" != x-; then
10722 configure_input="$ac_file. $configure_input"
10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10724 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10725 fi
10726 # Neutralize special characters interpreted by sed in replacement strings.
10727 case $configure_input in #(
10728 *\&* | *\|* | *\\* )
10729 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10730 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10731 *) ac_sed_conf_input=$configure_input;;
10732 esac
10733
10734 case $ac_tag in
10735 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10737 esac
10738 ;;
10739 esac
10740
10741 ac_dir=`$as_dirname -- "$ac_file" ||
10742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10743 X"$ac_file" : 'X\(//\)[^/]' \| \
10744 X"$ac_file" : 'X\(//\)$' \| \
10745 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10746 printf "%s\n" X"$ac_file" |
10747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10748 s//\1/
10749 q
10750 }
10751 /^X\(\/\/\)[^/].*/{
10752 s//\1/
10753 q
10754 }
10755 /^X\(\/\/\)$/{
10756 s//\1/
10757 q
10758 }
10759 /^X\(\/\).*/{
10760 s//\1/
10761 q
10762 }
10763 s/.*/./; q'`
10764 as_dir="$ac_dir"; as_fn_mkdir_p
10765 ac_builddir=.
10766
10767 case "$ac_dir" in
10768 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10769 *)
10770 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10771 # A ".." for each directory in $ac_dir_suffix.
10772 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10773 case $ac_top_builddir_sub in
10774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10776 esac ;;
10777 esac
10778 ac_abs_top_builddir=$ac_pwd
10779 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10780 # for backward compatibility:
10781 ac_top_builddir=$ac_top_build_prefix
10782
10783 case $srcdir in
10784 .) # We are building in place.
10785 ac_srcdir=.
10786 ac_top_srcdir=$ac_top_builddir_sub
10787 ac_abs_top_srcdir=$ac_pwd ;;
10788 [\\/]* | ?:[\\/]* ) # Absolute name.
10789 ac_srcdir=$srcdir$ac_dir_suffix;
10790 ac_top_srcdir=$srcdir
10791 ac_abs_top_srcdir=$srcdir ;;
10792 *) # Relative name.
10793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10794 ac_top_srcdir=$ac_top_build_prefix$srcdir
10795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10796 esac
10797 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10798
10799
10800 case $ac_mode in
10801 :F)
10802 #
10803 # CONFIG_FILE
10804 #
10805
10806 _ACEOF
10807
10808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10809 # If the template does not know about datarootdir, expand it.
10810 # FIXME: This hack should be removed a few years after 2.60.
10811 ac_datarootdir_hack=; ac_datarootdir_seen=
10812 ac_sed_dataroot='
10813 /datarootdir/ {
10814 p
10815 q
10816 }
10817 /@datadir@/p
10818 /@docdir@/p
10819 /@infodir@/p
10820 /@localedir@/p
10821 /@mandir@/p'
10822 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10823 *datarootdir*) ac_datarootdir_seen=yes;;
10824 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10826 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10827 _ACEOF
10828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10829 ac_datarootdir_hack='
10830 s&@datadir@&$datadir&g
10831 s&@docdir@&$docdir&g
10832 s&@infodir@&$infodir&g
10833 s&@localedir@&$localedir&g
10834 s&@mandir@&$mandir&g
10835 s&\\\${datarootdir}&$datarootdir&g' ;;
10836 esac
10837 _ACEOF
10838
10839 # Neutralize VPATH when '$srcdir' = '.'.
10840 # Shell code in configure.ac might set extrasub.
10841 # FIXME: do we really want to maintain this feature?
10842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10843 ac_sed_extra="$ac_vpsub
10844 $extrasub
10845 _ACEOF
10846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10847 :t
10848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10849 s|@configure_input@|$ac_sed_conf_input|;t t
10850 s&@top_builddir@&$ac_top_builddir_sub&;t t
10851 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10852 s&@srcdir@&$ac_srcdir&;t t
10853 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10854 s&@top_srcdir@&$ac_top_srcdir&;t t
10855 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10856 s&@builddir@&$ac_builddir&;t t
10857 s&@abs_builddir@&$ac_abs_builddir&;t t
10858 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10859 $ac_datarootdir_hack
10860 "
10861 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10862 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10863
10864 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10865 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10866 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10867 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10869 which seems to be undefined. Please make sure it is defined" >&5
10870 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10871 which seems to be undefined. Please make sure it is defined" >&2;}
10872
10873 rm -f "$ac_tmp/stdin"
10874 case $ac_file in
10875 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10876 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10877 esac \
10878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10879 ;;
10880
10881
10882
10883 esac
10884
10885 done # for ac_tag
10886
10887
10888 as_fn_exit 0
10889 _ACEOF
10890 ac_clean_files=$ac_clean_files_save
10891
10892 test $ac_write_fail = 0 ||
10893 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10894
10895
10896 # configure is writing to config.log, and then calls config.status.
10897 # config.status does its own redirection, appending to config.log.
10898 # Unfortunately, on DOS this fails, as config.log is still kept open
10899 # by configure, so config.status won't be able to write to it; its
10900 # output is simply discarded. So we exec the FD to /dev/null,
10901 # effectively closing config.log, so it can be properly (re)opened and
10902 # appended to by config.status. When coming back to configure, we
10903 # need to make the FD available again.
10904 if test "$no_create" != yes; then
10905 ac_cs_success=:
10906 ac_config_status_args=
10907 test "$silent" = yes &&
10908 ac_config_status_args="$ac_config_status_args --quiet"
10909 exec 5>/dev/null
10910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10911 exec 5>>config.log
10912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10913 # would make configure fail if this is the last instruction.
10914 $ac_cs_success || as_fn_exit 1
10915 fi
10916 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10918 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10919 fi
10920
10921
10922 #--------------------------------------------------------------------
10923