Debian Codegraph @

libjpeg/configure

raw ◀ ▶
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for jpegtcl 10.0.0.
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='jpegtcl'
603 PACKAGE_TARNAME='jpegtcl'
604 PACKAGE_VERSION='10.0.0'
605 PACKAGE_STRING='jpegtcl 10.0.0'
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 jpegtcl_STUB_LIB_PATH
646 jpegtcl_BUILD_STUB_LIB_PATH
647 jpegtcl_STUB_LIB_SPEC
648 jpegtcl_BUILD_STUB_LIB_SPEC
649 jpegtcl_LIB_SPEC
650 jpegtcl_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 jpegtcl 10.0.0 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/jpegtcl]
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 jpegtcl 10.0.0:";;
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 jpegtcl configure 10.0.0
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 jpegtcl $as_me 10.0.0, 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 JPEG_CFLAGS="$CFLAGS"
4318
4319 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
4320 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
4321
4322 ac_ext=c
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 if test -n "$ac_tool_prefix"; then
4328 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4329 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 printf %s "checking for $ac_word... " >&6; }
4332 if test ${ac_cv_prog_CC+y}
4333 then :
4334 printf %s "(cached) " >&6
4335 else case e in #(
4336 e) if test -n "$CC"; then
4337 ac_cv_prog_CC="$CC" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342 IFS=$as_save_IFS
4343 case $as_dir in #(((
4344 '') as_dir=./ ;;
4345 */) ;;
4346 *) as_dir=$as_dir/ ;;
4347 esac
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354 done
4355 done
4356 IFS=$as_save_IFS
4357
4358 fi ;;
4359 esac
4360 fi
4361 CC=$ac_cv_prog_CC
4362 if test -n "$CC"; then
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4364 printf "%s\n" "$CC" >&6; }
4365 else
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 printf "%s\n" "no" >&6; }
4368 fi
4369
4370
4371 fi
4372 if test -z "$ac_cv_prog_CC"; then
4373 ac_ct_CC=$CC
4374 # Extract the first word of "gcc", so it can be a program name with args.
4375 set dummy gcc; ac_word=$2
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 printf %s "checking for $ac_word... " >&6; }
4378 if test ${ac_cv_prog_ac_ct_CC+y}
4379 then :
4380 printf %s "(cached) " >&6
4381 else case e in #(
4382 e) if test -n "$ac_ct_CC"; then
4383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388 IFS=$as_save_IFS
4389 case $as_dir in #(((
4390 '') as_dir=./ ;;
4391 */) ;;
4392 *) as_dir=$as_dir/ ;;
4393 esac
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_ac_ct_CC="gcc"
4397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4398 break 2
4399 fi
4400 done
4401 done
4402 IFS=$as_save_IFS
4403
4404 fi ;;
4405 esac
4406 fi
4407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4408 if test -n "$ac_ct_CC"; then
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4410 printf "%s\n" "$ac_ct_CC" >&6; }
4411 else
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 printf "%s\n" "no" >&6; }
4414 fi
4415
4416 if test "x$ac_ct_CC" = x; then
4417 CC=""
4418 else
4419 case $cross_compiling:$ac_tool_warned in
4420 yes:)
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423 ac_tool_warned=yes ;;
4424 esac
4425 CC=$ac_ct_CC
4426 fi
4427 else
4428 CC="$ac_cv_prog_CC"
4429 fi
4430
4431 if test -z "$CC"; then
4432 if test -n "$ac_tool_prefix"; then
4433 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4434 set dummy ${ac_tool_prefix}cc; ac_word=$2
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 printf %s "checking for $ac_word... " >&6; }
4437 if test ${ac_cv_prog_CC+y}
4438 then :
4439 printf %s "(cached) " >&6
4440 else case e in #(
4441 e) if test -n "$CC"; then
4442 ac_cv_prog_CC="$CC" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447 IFS=$as_save_IFS
4448 case $as_dir in #(((
4449 '') as_dir=./ ;;
4450 */) ;;
4451 *) as_dir=$as_dir/ ;;
4452 esac
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_CC="${ac_tool_prefix}cc"
4456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi ;;
4464 esac
4465 fi
4466 CC=$ac_cv_prog_CC
4467 if test -n "$CC"; then
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4469 printf "%s\n" "$CC" >&6; }
4470 else
4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 printf "%s\n" "no" >&6; }
4473 fi
4474
4475
4476 fi
4477 fi
4478 if test -z "$CC"; then
4479 # Extract the first word of "cc", so it can be a program name with args.
4480 set dummy cc; ac_word=$2
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 printf %s "checking for $ac_word... " >&6; }
4483 if test ${ac_cv_prog_CC+y}
4484 then :
4485 printf %s "(cached) " >&6
4486 else case e in #(
4487 e) if test -n "$CC"; then
4488 ac_cv_prog_CC="$CC" # Let the user override the test.
4489 else
4490 ac_prog_rejected=no
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494 IFS=$as_save_IFS
4495 case $as_dir in #(((
4496 '') as_dir=./ ;;
4497 */) ;;
4498 *) as_dir=$as_dir/ ;;
4499 esac
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4502 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4503 ac_prog_rejected=yes
4504 continue
4505 fi
4506 ac_cv_prog_CC="cc"
4507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510 done
4511 done
4512 IFS=$as_save_IFS
4513
4514 if test $ac_prog_rejected = yes; then
4515 # We found a bogon in the path, so make sure we never use it.
4516 set dummy $ac_cv_prog_CC
4517 shift
4518 if test $# != 0; then
4519 # We chose a different compiler from the bogus one.
4520 # However, it has the same basename, so the bogon will be chosen
4521 # first if we set CC to just the basename; use the full file name.
4522 shift
4523 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4524 fi
4525 fi
4526 fi ;;
4527 esac
4528 fi
4529 CC=$ac_cv_prog_CC
4530 if test -n "$CC"; then
4531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4532 printf "%s\n" "$CC" >&6; }
4533 else
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 printf "%s\n" "no" >&6; }
4536 fi
4537
4538
4539 fi
4540 if test -z "$CC"; then
4541 if test -n "$ac_tool_prefix"; then
4542 for ac_prog in cl.exe
4543 do
4544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 printf %s "checking for $ac_word... " >&6; }
4548 if test ${ac_cv_prog_CC+y}
4549 then :
4550 printf %s "(cached) " >&6
4551 else case e in #(
4552 e) if test -n "$CC"; then
4553 ac_cv_prog_CC="$CC" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558 IFS=$as_save_IFS
4559 case $as_dir in #(((
4560 '') as_dir=./ ;;
4561 */) ;;
4562 *) as_dir=$as_dir/ ;;
4563 esac
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4566 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4568 break 2
4569 fi
4570 done
4571 done
4572 IFS=$as_save_IFS
4573
4574 fi ;;
4575 esac
4576 fi
4577 CC=$ac_cv_prog_CC
4578 if test -n "$CC"; then
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4580 printf "%s\n" "$CC" >&6; }
4581 else
4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 printf "%s\n" "no" >&6; }
4584 fi
4585
4586
4587 test -n "$CC" && break
4588 done
4589 fi
4590 if test -z "$CC"; then
4591 ac_ct_CC=$CC
4592 for ac_prog in cl.exe
4593 do
4594 # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 set dummy $ac_prog; ac_word=$2
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 printf %s "checking for $ac_word... " >&6; }
4598 if test ${ac_cv_prog_ac_ct_CC+y}
4599 then :
4600 printf %s "(cached) " >&6
4601 else case e in #(
4602 e) if test -n "$ac_ct_CC"; then
4603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608 IFS=$as_save_IFS
4609 case $as_dir in #(((
4610 '') as_dir=./ ;;
4611 */) ;;
4612 *) as_dir=$as_dir/ ;;
4613 esac
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_ac_ct_CC="$ac_prog"
4617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4618 break 2
4619 fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 fi ;;
4625 esac
4626 fi
4627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4628 if test -n "$ac_ct_CC"; then
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4630 printf "%s\n" "$ac_ct_CC" >&6; }
4631 else
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 printf "%s\n" "no" >&6; }
4634 fi
4635
4636
4637 test -n "$ac_ct_CC" && break
4638 done
4639
4640 if test "x$ac_ct_CC" = x; then
4641 CC=""
4642 else
4643 case $cross_compiling:$ac_tool_warned in
4644 yes:)
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647 ac_tool_warned=yes ;;
4648 esac
4649 CC=$ac_ct_CC
4650 fi
4651 fi
4652
4653 fi
4654 if test -z "$CC"; then
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}clang; ac_word=$2
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 printf %s "checking for $ac_word... " >&6; }
4660 if test ${ac_cv_prog_CC+y}
4661 then :
4662 printf %s "(cached) " >&6
4663 else case e in #(
4664 e) if test -n "$CC"; then
4665 ac_cv_prog_CC="$CC" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670 IFS=$as_save_IFS
4671 case $as_dir in #(((
4672 '') as_dir=./ ;;
4673 */) ;;
4674 *) as_dir=$as_dir/ ;;
4675 esac
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_CC="${ac_tool_prefix}clang"
4679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi ;;
4687 esac
4688 fi
4689 CC=$ac_cv_prog_CC
4690 if test -n "$CC"; then
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4692 printf "%s\n" "$CC" >&6; }
4693 else
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 printf "%s\n" "no" >&6; }
4696 fi
4697
4698
4699 fi
4700 if test -z "$ac_cv_prog_CC"; then
4701 ac_ct_CC=$CC
4702 # Extract the first word of "clang", so it can be a program name with args.
4703 set dummy clang; ac_word=$2
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 printf %s "checking for $ac_word... " >&6; }
4706 if test ${ac_cv_prog_ac_ct_CC+y}
4707 then :
4708 printf %s "(cached) " >&6
4709 else case e in #(
4710 e) if test -n "$ac_ct_CC"; then
4711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716 IFS=$as_save_IFS
4717 case $as_dir in #(((
4718 '') as_dir=./ ;;
4719 */) ;;
4720 *) as_dir=$as_dir/ ;;
4721 esac
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4724 ac_cv_prog_ac_ct_CC="clang"
4725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732 fi ;;
4733 esac
4734 fi
4735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4736 if test -n "$ac_ct_CC"; then
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4738 printf "%s\n" "$ac_ct_CC" >&6; }
4739 else
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 printf "%s\n" "no" >&6; }
4742 fi
4743
4744 if test "x$ac_ct_CC" = x; then
4745 CC=""
4746 else
4747 case $cross_compiling:$ac_tool_warned in
4748 yes:)
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751 ac_tool_warned=yes ;;
4752 esac
4753 CC=$ac_ct_CC
4754 fi
4755 else
4756 CC="$ac_cv_prog_CC"
4757 fi
4758
4759 fi
4760
4761
4762 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4763 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4764 as_fn_error $? "no acceptable C compiler found in \$PATH
4765 See 'config.log' for more details" "$LINENO" 5; }
4766
4767 # Provide some information about the compiler.
4768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4769 set X $ac_compile
4770 ac_compiler=$2
4771 for ac_option in --version -v -V -qversion -version; do
4772 { { ac_try="$ac_compiler $ac_option >&5"
4773 case "(($ac_try" in
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4776 esac
4777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4778 printf "%s\n" "$ac_try_echo"; } >&5
4779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4780 ac_status=$?
4781 if test -s conftest.err; then
4782 sed '10a\
4783 ... rest of stderr output deleted ...
4784 10q' conftest.err >conftest.er1
4785 cat conftest.er1 >&5
4786 fi
4787 rm -f conftest.er1 conftest.err
4788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4789 test $ac_status = 0; }
4790 done
4791
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4793 printf %s "checking whether the compiler supports GNU C... " >&6; }
4794 if test ${ac_cv_c_compiler_gnu+y}
4795 then :
4796 printf %s "(cached) " >&6
4797 else case e in #(
4798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800
4801 int
4802 main (void)
4803 {
4804 #ifndef __GNUC__
4805 choke me
4806 #endif
4807
4808 ;
4809 return 0;
4810 }
4811 _ACEOF
4812 if ac_fn_c_try_compile "$LINENO"
4813 then :
4814 ac_compiler_gnu=yes
4815 else case e in #(
4816 e) ac_compiler_gnu=no ;;
4817 esac
4818 fi
4819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4821 ;;
4822 esac
4823 fi
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4825 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4827
4828 if test $ac_compiler_gnu = yes; then
4829 GCC=yes
4830 else
4831 GCC=
4832 fi
4833 ac_test_CFLAGS=${CFLAGS+y}
4834 ac_save_CFLAGS=$CFLAGS
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4836 printf %s "checking whether $CC accepts -g... " >&6; }
4837 if test ${ac_cv_prog_cc_g+y}
4838 then :
4839 printf %s "(cached) " >&6
4840 else case e in #(
4841 e) ac_save_c_werror_flag=$ac_c_werror_flag
4842 ac_c_werror_flag=yes
4843 ac_cv_prog_cc_g=no
4844 CFLAGS="-g"
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847
4848 int
4849 main (void)
4850 {
4851
4852 ;
4853 return 0;
4854 }
4855 _ACEOF
4856 if ac_fn_c_try_compile "$LINENO"
4857 then :
4858 ac_cv_prog_cc_g=yes
4859 else case e in #(
4860 e) CFLAGS=""
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863
4864 int
4865 main (void)
4866 {
4867
4868 ;
4869 return 0;
4870 }
4871 _ACEOF
4872 if ac_fn_c_try_compile "$LINENO"
4873 then :
4874
4875 else case e in #(
4876 e) ac_c_werror_flag=$ac_save_c_werror_flag
4877 CFLAGS="-g"
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880
4881 int
4882 main (void)
4883 {
4884
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 if ac_fn_c_try_compile "$LINENO"
4890 then :
4891 ac_cv_prog_cc_g=yes
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4894 esac
4895 fi
4896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4897 esac
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4900 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4901 esac
4902 fi
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4904 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4905 if test $ac_test_CFLAGS; then
4906 CFLAGS=$ac_save_CFLAGS
4907 elif test $ac_cv_prog_cc_g = yes; then
4908 if test "$GCC" = yes; then
4909 CFLAGS="-g -O2"
4910 else
4911 CFLAGS="-g"
4912 fi
4913 else
4914 if test "$GCC" = yes; then
4915 CFLAGS="-O2"
4916 else
4917 CFLAGS=
4918 fi
4919 fi
4920 ac_prog_cc_stdc=no
4921 if test x$ac_prog_cc_stdc = xno
4922 then :
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4924 printf %s "checking for $CC option to enable C11 features... " >&6; }
4925 if test ${ac_cv_prog_cc_c11+y}
4926 then :
4927 printf %s "(cached) " >&6
4928 else case e in #(
4929 e) ac_cv_prog_cc_c11=no
4930 ac_save_CC=$CC
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933 $ac_c_conftest_c11_program
4934 _ACEOF
4935 for ac_arg in '' -std=gnu11
4936 do
4937 CC="$ac_save_CC $ac_arg"
4938 if ac_fn_c_try_compile "$LINENO"
4939 then :
4940 ac_cv_prog_cc_c11=$ac_arg
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.beam
4943 test "x$ac_cv_prog_cc_c11" != "xno" && break
4944 done
4945 rm -f conftest.$ac_ext
4946 CC=$ac_save_CC ;;
4947 esac
4948 fi
4949
4950 if test "x$ac_cv_prog_cc_c11" = xno
4951 then :
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4953 printf "%s\n" "unsupported" >&6; }
4954 else case e in #(
4955 e) if test "x$ac_cv_prog_cc_c11" = x
4956 then :
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4958 printf "%s\n" "none needed" >&6; }
4959 else case e in #(
4960 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4961 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4962 CC="$CC $ac_cv_prog_cc_c11" ;;
4963 esac
4964 fi
4965 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4966 ac_prog_cc_stdc=c11 ;;
4967 esac
4968 fi
4969 fi
4970 if test x$ac_prog_cc_stdc = xno
4971 then :
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4973 printf %s "checking for $CC option to enable C99 features... " >&6; }
4974 if test ${ac_cv_prog_cc_c99+y}
4975 then :
4976 printf %s "(cached) " >&6
4977 else case e in #(
4978 e) ac_cv_prog_cc_c99=no
4979 ac_save_CC=$CC
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982 $ac_c_conftest_c99_program
4983 _ACEOF
4984 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4985 do
4986 CC="$ac_save_CC $ac_arg"
4987 if ac_fn_c_try_compile "$LINENO"
4988 then :
4989 ac_cv_prog_cc_c99=$ac_arg
4990 fi
4991 rm -f core conftest.err conftest.$ac_objext conftest.beam
4992 test "x$ac_cv_prog_cc_c99" != "xno" && break
4993 done
4994 rm -f conftest.$ac_ext
4995 CC=$ac_save_CC ;;
4996 esac
4997 fi
4998
4999 if test "x$ac_cv_prog_cc_c99" = xno
5000 then :
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5002 printf "%s\n" "unsupported" >&6; }
5003 else case e in #(
5004 e) if test "x$ac_cv_prog_cc_c99" = x
5005 then :
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5007 printf "%s\n" "none needed" >&6; }
5008 else case e in #(
5009 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5010 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5011 CC="$CC $ac_cv_prog_cc_c99" ;;
5012 esac
5013 fi
5014 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5015 ac_prog_cc_stdc=c99 ;;
5016 esac
5017 fi
5018 fi
5019 if test x$ac_prog_cc_stdc = xno
5020 then :
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5022 printf %s "checking for $CC option to enable C89 features... " >&6; }
5023 if test ${ac_cv_prog_cc_c89+y}
5024 then :
5025 printf %s "(cached) " >&6
5026 else case e in #(
5027 e) ac_cv_prog_cc_c89=no
5028 ac_save_CC=$CC
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5031 $ac_c_conftest_c89_program
5032 _ACEOF
5033 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5034 do
5035 CC="$ac_save_CC $ac_arg"
5036 if ac_fn_c_try_compile "$LINENO"
5037 then :
5038 ac_cv_prog_cc_c89=$ac_arg
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext conftest.beam
5041 test "x$ac_cv_prog_cc_c89" != "xno" && break
5042 done
5043 rm -f conftest.$ac_ext
5044 CC=$ac_save_CC ;;
5045 esac
5046 fi
5047
5048 if test "x$ac_cv_prog_cc_c89" = xno
5049 then :
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5051 printf "%s\n" "unsupported" >&6; }
5052 else case e in #(
5053 e) if test "x$ac_cv_prog_cc_c89" = x
5054 then :
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5056 printf "%s\n" "none needed" >&6; }
5057 else case e in #(
5058 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5059 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5060 CC="$CC $ac_cv_prog_cc_c89" ;;
5061 esac
5062 fi
5063 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5064 ac_prog_cc_stdc=c89 ;;
5065 esac
5066 fi
5067 fi
5068
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075 ac_ext=c
5076 ac_cpp='$CPP $CPPFLAGS'
5077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5081 printf %s "checking how to run the C preprocessor... " >&6; }
5082 # On Suns, sometimes $CPP names a directory.
5083 if test -n "$CPP" && test -d "$CPP"; then
5084 CPP=
5085 fi
5086 if test -z "$CPP"; then
5087 if test ${ac_cv_prog_CPP+y}
5088 then :
5089 printf %s "(cached) " >&6
5090 else case e in #(
5091 e) # Double quotes because $CC needs to be expanded
5092 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5093 do
5094 ac_preproc_ok=false
5095 for ac_c_preproc_warn_flag in '' yes
5096 do
5097 # Use a header file that comes with gcc, so configuring glibc
5098 # with a fresh cross-compiler works.
5099 # On the NeXT, cc -E runs the code through the compiler's parser,
5100 # not just through cpp. "Syntax error" is here to catch this case.
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 #include <limits.h>
5104 Syntax error
5105 _ACEOF
5106 if ac_fn_c_try_cpp "$LINENO"
5107 then :
5108
5109 else case e in #(
5110 e) # Broken: fails on valid input.
5111 continue ;;
5112 esac
5113 fi
5114 rm -f conftest.err conftest.i conftest.$ac_ext
5115
5116 # OK, works on sane cases. Now check whether nonexistent headers
5117 # can be detected and how.
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120 #include <ac_nonexistent.h>
5121 _ACEOF
5122 if ac_fn_c_try_cpp "$LINENO"
5123 then :
5124 # Broken: success on invalid input.
5125 continue
5126 else case e in #(
5127 e) # Passes both tests.
5128 ac_preproc_ok=:
5129 break ;;
5130 esac
5131 fi
5132 rm -f conftest.err conftest.i conftest.$ac_ext
5133
5134 done
5135 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5136 rm -f conftest.i conftest.err conftest.$ac_ext
5137 if $ac_preproc_ok
5138 then :
5139 break
5140 fi
5141
5142 done
5143 ac_cv_prog_CPP=$CPP
5144 ;;
5145 esac
5146 fi
5147 CPP=$ac_cv_prog_CPP
5148 else
5149 ac_cv_prog_CPP=$CPP
5150 fi
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5152 printf "%s\n" "$CPP" >&6; }
5153 ac_preproc_ok=false
5154 for ac_c_preproc_warn_flag in '' yes
5155 do
5156 # Use a header file that comes with gcc, so configuring glibc
5157 # with a fresh cross-compiler works.
5158 # On the NeXT, cc -E runs the code through the compiler's parser,
5159 # not just through cpp. "Syntax error" is here to catch this case.
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 #include <limits.h>
5163 Syntax error
5164 _ACEOF
5165 if ac_fn_c_try_cpp "$LINENO"
5166 then :
5167
5168 else case e in #(
5169 e) # Broken: fails on valid input.
5170 continue ;;
5171 esac
5172 fi
5173 rm -f conftest.err conftest.i conftest.$ac_ext
5174
5175 # OK, works on sane cases. Now check whether nonexistent headers
5176 # can be detected and how.
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <ac_nonexistent.h>
5180 _ACEOF
5181 if ac_fn_c_try_cpp "$LINENO"
5182 then :
5183 # Broken: success on invalid input.
5184 continue
5185 else case e in #(
5186 e) # Passes both tests.
5187 ac_preproc_ok=:
5188 break ;;
5189 esac
5190 fi
5191 rm -f conftest.err conftest.i conftest.$ac_ext
5192
5193 done
5194 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5195 rm -f conftest.i conftest.err conftest.$ac_ext
5196 if $ac_preproc_ok
5197 then :
5198
5199 else case e in #(
5200 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5201 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5202 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5203 See 'config.log' for more details" "$LINENO" 5; } ;;
5204 esac
5205 fi
5206
5207 ac_ext=c
5208 ac_cpp='$CPP $CPPFLAGS'
5209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212
5213
5214 #--------------------------------------------------------------------
5215 # Checks to see if the make program sets the $MAKE variable.
5216 #--------------------------------------------------------------------
5217
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5219 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5220 set x ${MAKE-make}
5221 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5222 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5223 then :
5224 printf %s "(cached) " >&6
5225 else case e in #(
5226 e) cat >conftest.make <<\_ACEOF
5227 SHELL = /bin/sh
5228 all:
5229 @echo '@@@%%%=$(MAKE)=@@@%%%'
5230 _ACEOF
5231 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5232 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5233 *@@@%%%=?*=@@@%%%*)
5234 eval ac_cv_prog_make_${ac_make}_set=yes;;
5235 *)
5236 eval ac_cv_prog_make_${ac_make}_set=no;;
5237 esac
5238 rm -f conftest.make ;;
5239 esac
5240 fi
5241 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5243 printf "%s\n" "yes" >&6; }
5244 SET_MAKE=
5245 else
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 printf "%s\n" "no" >&6; }
5248 SET_MAKE="MAKE=${MAKE-make}"
5249 fi
5250
5251
5252 #--------------------------------------------------------------------
5253 # Find ranlib
5254 #--------------------------------------------------------------------
5255
5256 if test -n "$ac_tool_prefix"; then
5257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 printf %s "checking for $ac_word... " >&6; }
5261 if test ${ac_cv_prog_RANLIB+y}
5262 then :
5263 printf %s "(cached) " >&6
5264 else case e in #(
5265 e) if test -n "$RANLIB"; then
5266 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271 IFS=$as_save_IFS
5272 case $as_dir in #(((
5273 '') as_dir=./ ;;
5274 */) ;;
5275 *) as_dir=$as_dir/ ;;
5276 esac
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5281 break 2
5282 fi
5283 done
5284 done
5285 IFS=$as_save_IFS
5286
5287 fi ;;
5288 esac
5289 fi
5290 RANLIB=$ac_cv_prog_RANLIB
5291 if test -n "$RANLIB"; then
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5293 printf "%s\n" "$RANLIB" >&6; }
5294 else
5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 printf "%s\n" "no" >&6; }
5297 fi
5298
5299
5300 fi
5301 if test -z "$ac_cv_prog_RANLIB"; then
5302 ac_ct_RANLIB=$RANLIB
5303 # Extract the first word of "ranlib", so it can be a program name with args.
5304 set dummy ranlib; ac_word=$2
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 printf %s "checking for $ac_word... " >&6; }
5307 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5308 then :
5309 printf %s "(cached) " >&6
5310 else case e in #(
5311 e) if test -n "$ac_ct_RANLIB"; then
5312 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 case $as_dir in #(((
5319 '') as_dir=./ ;;
5320 */) ;;
5321 *) as_dir=$as_dir/ ;;
5322 esac
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_RANLIB="ranlib"
5326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329 done
5330 done
5331 IFS=$as_save_IFS
5332
5333 fi ;;
5334 esac
5335 fi
5336 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5337 if test -n "$ac_ct_RANLIB"; then
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5339 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5340 else
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 printf "%s\n" "no" >&6; }
5343 fi
5344
5345 if test "x$ac_ct_RANLIB" = x; then
5346 RANLIB=""
5347 else
5348 case $cross_compiling:$ac_tool_warned in
5349 yes:)
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5351 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5352 ac_tool_warned=yes ;;
5353 esac
5354 RANLIB=$ac_ct_RANLIB
5355 fi
5356 else
5357 RANLIB="$ac_cv_prog_RANLIB"
5358 fi
5359
5360
5361 #--------------------------------------------------------------------
5362 # Determines the correct binary file extension (.o, .obj, .exe etc.)
5363 #--------------------------------------------------------------------
5364
5365
5366
5367
5368 ac_header= ac_cache=
5369 for ac_item in $ac_header_c_list
5370 do
5371 if test $ac_cache; then
5372 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5373 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5374 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5375 fi
5376 ac_header= ac_cache=
5377 elif test $ac_header; then
5378 ac_cache=$ac_item
5379 else
5380 ac_header=$ac_item
5381 fi
5382 done
5383
5384
5385
5386
5387
5388
5389
5390
5391 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5392 then :
5393
5394 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5395
5396 fi
5397
5398 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
5399
5400
5401 #------------------------------------------------------------------------
5402 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
5403 # It makes compiling go faster. (This is only a performance feature.)
5404 #------------------------------------------------------------------------
5405
5406 if test -z "$no_pipe" -a -n "$GCC"; then
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
5408 printf %s "checking if the compiler understands -pipe... " >&6; }
5409 if test ${tcl_cv_cc_pipe+y}
5410 then :
5411 printf %s "(cached) " >&6
5412 else case e in #(
5413 e)
5414 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417
5418 int
5419 main (void)
5420 {
5421
5422 ;
5423 return 0;
5424 }
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"
5427 then :
5428 tcl_cv_cc_pipe=yes
5429 else case e in #(
5430 e) tcl_cv_cc_pipe=no ;;
5431 esac
5432 fi
5433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5434 CFLAGS=$hold_cflags ;;
5435 esac
5436 fi
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
5438 printf "%s\n" "$tcl_cv_cc_pipe" >&6; }
5439 if test $tcl_cv_cc_pipe = yes; then
5440 CFLAGS="$CFLAGS -pipe"
5441 fi
5442 fi
5443
5444 if test "${TCL_MAJOR_VERSION}" -lt 9 -a "${TCL_MINOR_VERSION}" -lt 7; then
5445
5446 printf "%s\n" "#define Tcl_Size int" >>confdefs.h
5447
5448 fi
5449
5450 #--------------------------------------------------------------------
5451 # Common compiler flag setup
5452 #--------------------------------------------------------------------
5453
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5455 printf %s "checking whether byte ordering is bigendian... " >&6; }
5456 if test ${ac_cv_c_bigendian+y}
5457 then :
5458 printf %s "(cached) " >&6
5459 else case e in #(
5460 e) ac_cv_c_bigendian=unknown
5461 # See if we're dealing with a universal compiler.
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 #ifndef __APPLE_CC__
5465 not a universal capable compiler
5466 #endif
5467 typedef int dummy;
5468
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"
5471 then :
5472
5473 # Check for potential -arch flags. It is not universal unless
5474 # there are at least two -arch flags with different values.
5475 ac_arch=
5476 ac_prev=
5477 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5478 if test -n "$ac_prev"; then
5479 case $ac_word in
5480 i?86 | x86_64 | ppc | ppc64)
5481 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5482 ac_arch=$ac_word
5483 else
5484 ac_cv_c_bigendian=universal
5485 break
5486 fi
5487 ;;
5488 esac
5489 ac_prev=
5490 elif test "x$ac_word" = "x-arch"; then
5491 ac_prev=arch
5492 fi
5493 done
5494 fi
5495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5496 if test $ac_cv_c_bigendian = unknown; then
5497 # See if sys/param.h defines the BYTE_ORDER macro.
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 #include <sys/types.h>
5501 #include <sys/param.h>
5502
5503 int
5504 main (void)
5505 {
5506 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
5507 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
5508 && LITTLE_ENDIAN)
5509 bogus endian macros
5510 #endif
5511
5512 ;
5513 return 0;
5514 }
5515 _ACEOF
5516 if ac_fn_c_try_compile "$LINENO"
5517 then :
5518 # It does; now see whether it defined to BIG_ENDIAN or not.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <sys/types.h>
5522 #include <sys/param.h>
5523
5524 int
5525 main (void)
5526 {
5527 #if BYTE_ORDER != BIG_ENDIAN
5528 not big endian
5529 #endif
5530
5531 ;
5532 return 0;
5533 }
5534 _ACEOF
5535 if ac_fn_c_try_compile "$LINENO"
5536 then :
5537 ac_cv_c_bigendian=yes
5538 else case e in #(
5539 e) ac_cv_c_bigendian=no ;;
5540 esac
5541 fi
5542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5543 fi
5544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5545 fi
5546 if test $ac_cv_c_bigendian = unknown; then
5547 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550 #include <limits.h>
5551
5552 int
5553 main (void)
5554 {
5555 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5556 bogus endian macros
5557 #endif
5558
5559 ;
5560 return 0;
5561 }
5562 _ACEOF
5563 if ac_fn_c_try_compile "$LINENO"
5564 then :
5565 # It does; now see whether it defined to _BIG_ENDIAN or not.
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #include <limits.h>
5569
5570 int
5571 main (void)
5572 {
5573 #ifndef _BIG_ENDIAN
5574 not big endian
5575 #endif
5576
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"
5582 then :
5583 ac_cv_c_bigendian=yes
5584 else case e in #(
5585 e) ac_cv_c_bigendian=no ;;
5586 esac
5587 fi
5588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5591 fi
5592 if test $ac_cv_c_bigendian = unknown; then
5593 # Compile a test program.
5594 if test "$cross_compiling" = yes
5595 then :
5596 # Try to guess by grepping values from an object file.
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 unsigned short int ascii_mm[] =
5600 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5601 unsigned short int ascii_ii[] =
5602 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5603 int use_ascii (int i) {
5604 return ascii_mm[i] + ascii_ii[i];
5605 }
5606 unsigned short int ebcdic_ii[] =
5607 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5608 unsigned short int ebcdic_mm[] =
5609 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5610 int use_ebcdic (int i) {
5611 return ebcdic_mm[i] + ebcdic_ii[i];
5612 }
5613 int
5614 main (int argc, char **argv)
5615 {
5616 /* Intimidate the compiler so that it does not
5617 optimize the arrays away. */
5618 char *p = argv[0];
5619 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
5620 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
5621 return use_ascii (argc) == use_ebcdic (*p);
5622 }
5623 _ACEOF
5624 if ac_fn_c_try_link "$LINENO"
5625 then :
5626 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
5627 ac_cv_c_bigendian=yes
5628 fi
5629 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
5630 if test "$ac_cv_c_bigendian" = unknown; then
5631 ac_cv_c_bigendian=no
5632 else
5633 # finding both strings is unlikely to happen, but who knows?
5634 ac_cv_c_bigendian=unknown
5635 fi
5636 fi
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5639 conftest$ac_exeext conftest.$ac_ext
5640 else case e in #(
5641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 $ac_includes_default
5644 int
5645 main (void)
5646 {
5647
5648 /* Are we little or big endian? From Harbison&Steele. */
5649 union
5650 {
5651 long int l;
5652 char c[sizeof (long int)];
5653 } u;
5654 u.l = 1;
5655 return u.c[sizeof (long int) - 1] == 1;
5656
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 if ac_fn_c_try_run "$LINENO"
5662 then :
5663 ac_cv_c_bigendian=no
5664 else case e in #(
5665 e) ac_cv_c_bigendian=yes ;;
5666 esac
5667 fi
5668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5669 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5670 esac
5671 fi
5672
5673 fi ;;
5674 esac
5675 fi
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5677 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5678 case $ac_cv_c_bigendian in #(
5679 yes)
5680 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5681 ;; #(
5682 no)
5683 ;; #(
5684 universal)
5685 #
5686 ;; #(
5687 *)
5688 as_fn_error $? "unknown endianness
5689 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5690 esac
5691
5692
5693 JPEG_CC=$CC
5694
5695 #-----------------------------------------------------------------------
5696 # Specify the C source files to compile in TEA_ADD_SOURCES,
5697 # public headers that need to be installed in TEA_ADD_HEADERS,
5698 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
5699 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
5700 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
5701 # and PKG_TCL_SOURCES.
5702 #-----------------------------------------------------------------------
5703
5704
5705 vars="jpegtcl.c jpegtclStubInit.c"
5706 for i in $vars; do
5707 case $i in
5708 \$*)
5709 # allow $-var names
5710 PKG_SOURCES="$PKG_SOURCES $i"
5711 PKG_OBJECTS="$PKG_OBJECTS $i"
5712 ;;
5713 *)
5714 # check for existence - allows for generic/win/unix VPATH
5715 # To add more dirs here (like 'src'), you have to update VPATH
5716 # in Makefile.in as well
5717 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5718 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5719 -a ! -f "${srcdir}/macosx/$i" \
5720 ; then
5721 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
5722 fi
5723 PKG_SOURCES="$PKG_SOURCES $i"
5724 # this assumes it is in a VPATH dir
5725 i=`basename $i`
5726 # handle user calling this before or after TEA_SETUP_COMPILER
5727 if test x"${OBJEXT}" != x ; then
5728 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5729 else
5730 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5731 fi
5732 PKG_OBJECTS="$PKG_OBJECTS $j"
5733 ;;
5734 esac
5735 done
5736
5737
5738
5739
5740 vars="jpegtcl.h jpegtclDecls.h"
5741 for i in $vars; do
5742 # check for existence, be strict because it is installed
5743 if test ! -f "${srcdir}/$i" ; then
5744 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
5745 fi
5746 PKG_HEADERS="$PKG_HEADERS $i"
5747 done
5748
5749
5750
5751
5752 vars="-I\"`\${CYGPATH} \${srcdir}`\""
5753 for i in $vars; do
5754 PKG_INCLUDES="$PKG_INCLUDES $i"
5755 done
5756
5757
5758
5759 vars="-I\"./libjpeg\""
5760 for i in $vars; do
5761 PKG_INCLUDES="$PKG_INCLUDES $i"
5762 done
5763
5764
5765
5766 vars=""
5767 for i in $vars; do
5768 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5769 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5770 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5771 fi
5772 PKG_LIBS="$PKG_LIBS $i"
5773 done
5774
5775
5776
5777 PKG_CFLAGS="$PKG_CFLAGS "
5778
5779
5780
5781 vars="jpegtclStubLib.c"
5782 for i in $vars; do
5783 # check for existence - allows for generic/win/unix VPATH
5784 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5785 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5786 -a ! -f "${srcdir}/macosx/$i" \
5787 ; then
5788 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
5789 fi
5790 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
5791 # this assumes it is in a VPATH dir
5792 i=`basename $i`
5793 # handle user calling this before or after TEA_SETUP_COMPILER
5794 if test x"${OBJEXT}" != x ; then
5795 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5796 else
5797 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5798 fi
5799 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
5800 done
5801
5802
5803
5804
5805 vars="jpegtclStubLib.c"
5806 for i in $vars; do
5807 case $i in
5808 \$*)
5809 # allow $-var names
5810 PKG_SOURCES="$PKG_SOURCES $i"
5811 PKG_OBJECTS="$PKG_OBJECTS $i"
5812 ;;
5813 *)
5814 # check for existence - allows for generic/win/unix VPATH
5815 # To add more dirs here (like 'src'), you have to update VPATH
5816 # in Makefile.in as well
5817 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5818 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5819 -a ! -f "${srcdir}/macosx/$i" \
5820 ; then
5821 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
5822 fi
5823 PKG_SOURCES="$PKG_SOURCES $i"
5824 # this assumes it is in a VPATH dir
5825 i=`basename $i`
5826 # handle user calling this before or after TEA_SETUP_COMPILER
5827 if test x"${OBJEXT}" != x ; then
5828 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5829 else
5830 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5831 fi
5832 PKG_OBJECTS="$PKG_OBJECTS $j"
5833 ;;
5834 esac
5835 done
5836
5837
5838
5839
5840 vars=""
5841 for i in $vars; do
5842 # check for existence, be strict because it is installed
5843 if test ! -f "${srcdir}/$i" ; then
5844 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
5845 fi
5846 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
5847 done
5848
5849
5850
5851 #--------------------------------------------------------------------
5852 # __CHANGE__
5853 # Choose which headers you need. Extension authors should try very
5854 # hard to only rely on the Tcl public header files. Internal headers
5855 # contain private data structures and are subject to change without
5856 # notice.
5857 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
5858 #--------------------------------------------------------------------
5859
5860
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
5862 printf %s "checking for Tcl public headers... " >&6; }
5863
5864
5865 # Check whether --with-tclinclude was given.
5866 if test ${with_tclinclude+y}
5867 then :
5868 withval=$with_tclinclude; with_tclinclude=${withval}
5869 fi
5870
5871
5872 if test ${ac_cv_c_tclh+y}
5873 then :
5874 printf %s "(cached) " >&6
5875 else case e in #(
5876 e)
5877 # Use the value from --with-tclinclude, if it was given
5878
5879 if test x"${with_tclinclude}" != x ; then
5880 if test -f "${with_tclinclude}/tcl.h" ; then
5881 ac_cv_c_tclh=${with_tclinclude}
5882 else
5883 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
5884 fi
5885 else
5886 list=""
5887 if test "`uname -s`" = "Darwin"; then
5888 # If Tcl was built as a framework, attempt to use
5889 # the framework's Headers directory
5890 case ${TCL_DEFS} in
5891 *TCL_FRAMEWORK*)
5892 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
5893 ;;
5894 esac
5895 fi
5896
5897 # Look in the source dir only if Tcl is not installed,
5898 # and in that situation, look there before installed locations.
5899 if test -f "${TCL_BIN_DIR}/Makefile" ; then
5900 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
5901 fi
5902
5903 # Check order: pkg --prefix location, Tcl's --prefix location,
5904 # relative to directory of tclConfig.sh.
5905
5906 eval "temp_includedir=${includedir}"
5907 list="$list \
5908 `ls -d ${temp_includedir} 2>/dev/null` \
5909 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
5910 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
5911 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
5912 list="$list /usr/local/include /usr/include"
5913 if test x"${TCL_INCLUDE_SPEC}" != x ; then
5914 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
5915 list="$list `ls -d ${d} 2>/dev/null`"
5916 fi
5917 fi
5918 for i in $list ; do
5919 if test -f "$i/tcl.h" ; then
5920 ac_cv_c_tclh=$i
5921 break
5922 fi
5923 done
5924 fi
5925 ;;
5926 esac
5927 fi
5928
5929
5930 # Print a message based on how we determined the include path
5931
5932 if test x"${ac_cv_c_tclh}" = x ; then
5933 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
5934 else
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
5936 printf "%s\n" "${ac_cv_c_tclh}" >&6; }
5937 fi
5938
5939 # Convert to a native path and substitute into the output files.
5940
5941 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
5942
5943 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
5944
5945
5946
5947
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk public headers" >&5
5949 printf %s "checking for Tk public headers... " >&6; }
5950
5951
5952 # Check whether --with-tkinclude was given.
5953 if test ${with_tkinclude+y}
5954 then :
5955 withval=$with_tkinclude; with_tkinclude=${withval}
5956 fi
5957
5958
5959 if test ${ac_cv_c_tkh+y}
5960 then :
5961 printf %s "(cached) " >&6
5962 else case e in #(
5963 e)
5964 # Use the value from --with-tkinclude, if it was given
5965
5966 if test x"${with_tkinclude}" != x ; then
5967 if test -f "${with_tkinclude}/tk.h" ; then
5968 ac_cv_c_tkh=${with_tkinclude}
5969 else
5970 as_fn_error $? "${with_tkinclude} directory does not contain tk.h" "$LINENO" 5
5971 fi
5972 else
5973 list=""
5974 if test "`uname -s`" = "Darwin"; then
5975 # If Tk was built as a framework, attempt to use
5976 # the framework's Headers directory.
5977 case ${TK_DEFS} in
5978 *TK_FRAMEWORK*)
5979 list="`ls -d ${TK_BIN_DIR}/Headers 2>/dev/null`"
5980 ;;
5981 esac
5982 fi
5983
5984 # Look in the source dir only if Tk is not installed,
5985 # and in that situation, look there before installed locations.
5986 if test -f "${TK_BIN_DIR}/Makefile" ; then
5987 list="$list `ls -d ${TK_SRC_DIR}/generic 2>/dev/null`"
5988 fi
5989
5990 # Check order: pkg --prefix location, Tk's --prefix location,
5991 # relative to directory of tkConfig.sh, Tcl's --prefix location,
5992 # relative to directory of tclConfig.sh.
5993
5994 eval "temp_includedir=${includedir}"
5995 list="$list \
5996 `ls -d ${temp_includedir} 2>/dev/null` \
5997 `ls -d ${TK_PREFIX}/include 2>/dev/null` \
5998 `ls -d ${TK_BIN_DIR}/../include 2>/dev/null` \
5999 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
6000 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
6001 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
6002 list="$list /usr/local/include /usr/include"
6003 if test x"${TK_INCLUDE_SPEC}" != x ; then
6004 d=`echo "${TK_INCLUDE_SPEC}" | sed -e 's/^-I//'`
6005 list="$list `ls -d ${d} 2>/dev/null`"
6006 fi
6007 fi
6008 for i in $list ; do
6009 if test -f "$i/tk.h" ; then
6010 ac_cv_c_tkh=$i
6011 break
6012 fi
6013 done
6014 fi
6015 ;;
6016 esac
6017 fi
6018
6019
6020 # Print a message based on how we determined the include path
6021
6022 if test x"${ac_cv_c_tkh}" = x ; then
6023 as_fn_error $? "tk.h not found. Please specify its location with --with-tkinclude" "$LINENO" 5
6024 else
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tkh}" >&5
6026 printf "%s\n" "${ac_cv_c_tkh}" >&6; }
6027 fi
6028
6029 # Convert to a native path and substitute into the output files.
6030
6031 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tkh}`
6032
6033 TK_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6034
6035
6036
6037 if test "${TEA_WINDOWINGSYSTEM}" != "x11"; then
6038 # On Windows and Aqua, we need the X compat headers
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11 header files" >&5
6040 printf %s "checking for X11 header files... " >&6; }
6041 if test ! -r "${INCLUDE_DIR_NATIVE}/X11/Xlib.h"; then
6042 INCLUDE_DIR_NATIVE="`${CYGPATH} ${TK_SRC_DIR}/xlib`"
6043 TK_XINCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
6044
6045 fi
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${INCLUDE_DIR_NATIVE}" >&5
6047 printf "%s\n" "${INCLUDE_DIR_NATIVE}" >&6; }
6048 fi
6049
6050
6051 #--------------------------------------------------------------------
6052 # A few miscellaneous platform-specific items:
6053 #
6054 # Windows creates a few extra files that need to be cleaned up.
6055 # We can add more files to clean if our extension creates any extra
6056 # files in the future.
6057 #
6058 # Define any extra compiler flags in the PACKAGE_CFLAGS variable.
6059 # These will be appended to the current set of compiler flags for
6060 # your system.
6061 #--------------------------------------------------------------------
6062
6063 if test "${TEA_PLATFORM}" = "windows" ; then
6064 CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc*.pch"
6065 else
6066 CLEANFILES=""
6067 fi
6068
6069
6070 #--------------------------------------------------------------------
6071 # Check whether --enable-threads or --disable-threads was given.
6072 # So far only Tcl responds to this one.
6073 #--------------------------------------------------------------------
6074
6075
6076 # Check whether --enable-threads was given.
6077 if test ${enable_threads+y}
6078 then :
6079 enableval=$enable_threads; tcl_ok=$enableval
6080 else case e in #(
6081 e) tcl_ok=yes ;;
6082 esac
6083 fi
6084
6085
6086 if test "${enable_threads+set}" = set; then
6087 enableval="$enable_threads"
6088 tcl_ok=$enableval
6089 else
6090 tcl_ok=yes
6091 fi
6092
6093 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
6094 TCL_THREADS=1
6095
6096 if test "${TEA_PLATFORM}" != "windows" ; then
6097 # We are always OK on Windows, so check what this platform wants:
6098
6099 # USE_THREAD_ALLOC tells us to try the special thread-based
6100 # allocator that significantly reduces lock contention
6101
6102 printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h
6103
6104
6105 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
6106
6107 if test "`uname -s`" = "SunOS" ; then
6108
6109 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6110
6111 fi
6112
6113 printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
6114
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
6116 printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
6117 if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
6118 then :
6119 printf %s "(cached) " >&6
6120 else case e in #(
6121 e) ac_check_lib_save_LIBS=$LIBS
6122 LIBS="-lpthread $LIBS"
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125
6126 /* Override any GCC internal prototype to avoid an error.
6127 Use char because int might match the return type of a GCC
6128 builtin and then its argument prototype would still apply.
6129 The 'extern "C"' is for builds by C++ compilers;
6130 although this is not generally supported in C code supporting it here
6131 has little cost and some practical benefit (sr 110532). */
6132 #ifdef __cplusplus
6133 extern "C"
6134 #endif
6135 char pthread_mutex_init (void);
6136 int
6137 main (void)
6138 {
6139 return pthread_mutex_init ();
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_link "$LINENO"
6145 then :
6146 ac_cv_lib_pthread_pthread_mutex_init=yes
6147 else case e in #(
6148 e) ac_cv_lib_pthread_pthread_mutex_init=no ;;
6149 esac
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6152 conftest$ac_exeext conftest.$ac_ext
6153 LIBS=$ac_check_lib_save_LIBS ;;
6154 esac
6155 fi
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6157 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6158 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
6159 then :
6160 tcl_ok=yes
6161 else case e in #(
6162 e) tcl_ok=no ;;
6163 esac
6164 fi
6165
6166 if test "$tcl_ok" = "no"; then
6167 # Check a little harder for __pthread_mutex_init in the same
6168 # library, as some systems hide it there until pthread.h is
6169 # defined. We could alternatively do an AC_TRY_COMPILE with
6170 # pthread.h, but that will work with libpthread really doesn't
6171 # exist, like AIX 4.2. [Bug: 4359]
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
6173 printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; }
6174 if test ${ac_cv_lib_pthread___pthread_mutex_init+y}
6175 then :
6176 printf %s "(cached) " >&6
6177 else case e in #(
6178 e) ac_check_lib_save_LIBS=$LIBS
6179 LIBS="-lpthread $LIBS"
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182
6183 /* Override any GCC internal prototype to avoid an error.
6184 Use char because int might match the return type of a GCC
6185 builtin and then its argument prototype would still apply.
6186 The 'extern "C"' is for builds by C++ compilers;
6187 although this is not generally supported in C code supporting it here
6188 has little cost and some practical benefit (sr 110532). */
6189 #ifdef __cplusplus
6190 extern "C"
6191 #endif
6192 char __pthread_mutex_init (void);
6193 int
6194 main (void)
6195 {
6196 return __pthread_mutex_init ();
6197 ;
6198 return 0;
6199 }
6200 _ACEOF
6201 if ac_fn_c_try_link "$LINENO"
6202 then :
6203 ac_cv_lib_pthread___pthread_mutex_init=yes
6204 else case e in #(
6205 e) ac_cv_lib_pthread___pthread_mutex_init=no ;;
6206 esac
6207 fi
6208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6209 conftest$ac_exeext conftest.$ac_ext
6210 LIBS=$ac_check_lib_save_LIBS ;;
6211 esac
6212 fi
6213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
6214 printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
6215 if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes
6216 then :
6217 tcl_ok=yes
6218 else case e in #(
6219 e) tcl_ok=no ;;
6220 esac
6221 fi
6222
6223 fi
6224
6225 if test "$tcl_ok" = "yes"; then
6226 # The space is needed
6227 THREADS_LIBS=" -lpthread"
6228 else
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
6230 printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; }
6231 if test ${ac_cv_lib_pthreads_pthread_mutex_init+y}
6232 then :
6233 printf %s "(cached) " >&6
6234 else case e in #(
6235 e) ac_check_lib_save_LIBS=$LIBS
6236 LIBS="-lpthreads $LIBS"
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239
6240 /* Override any GCC internal prototype to avoid an error.
6241 Use char because int might match the return type of a GCC
6242 builtin and then its argument prototype would still apply.
6243 The 'extern "C"' is for builds by C++ compilers;
6244 although this is not generally supported in C code supporting it here
6245 has little cost and some practical benefit (sr 110532). */
6246 #ifdef __cplusplus
6247 extern "C"
6248 #endif
6249 char pthread_mutex_init (void);
6250 int
6251 main (void)
6252 {
6253 return pthread_mutex_init ();
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_link "$LINENO"
6259 then :
6260 ac_cv_lib_pthreads_pthread_mutex_init=yes
6261 else case e in #(
6262 e) ac_cv_lib_pthreads_pthread_mutex_init=no ;;
6263 esac
6264 fi
6265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6266 conftest$ac_exeext conftest.$ac_ext
6267 LIBS=$ac_check_lib_save_LIBS ;;
6268 esac
6269 fi
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
6271 printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
6272 if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes
6273 then :
6274 tcl_ok=yes
6275 else case e in #(
6276 e) tcl_ok=no ;;
6277 esac
6278 fi
6279
6280 if test "$tcl_ok" = "yes"; then
6281 # The space is needed
6282 THREADS_LIBS=" -lpthreads"
6283 else
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
6285 printf %s "checking for pthread_mutex_init in -lc... " >&6; }
6286 if test ${ac_cv_lib_c_pthread_mutex_init+y}
6287 then :
6288 printf %s "(cached) " >&6
6289 else case e in #(
6290 e) ac_check_lib_save_LIBS=$LIBS
6291 LIBS="-lc $LIBS"
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294
6295 /* Override any GCC internal prototype to avoid an error.
6296 Use char because int might match the return type of a GCC
6297 builtin and then its argument prototype would still apply.
6298 The 'extern "C"' is for builds by C++ compilers;
6299 although this is not generally supported in C code supporting it here
6300 has little cost and some practical benefit (sr 110532). */
6301 #ifdef __cplusplus
6302 extern "C"
6303 #endif
6304 char pthread_mutex_init (void);
6305 int
6306 main (void)
6307 {
6308 return pthread_mutex_init ();
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 if ac_fn_c_try_link "$LINENO"
6314 then :
6315 ac_cv_lib_c_pthread_mutex_init=yes
6316 else case e in #(
6317 e) ac_cv_lib_c_pthread_mutex_init=no ;;
6318 esac
6319 fi
6320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6321 conftest$ac_exeext conftest.$ac_ext
6322 LIBS=$ac_check_lib_save_LIBS ;;
6323 esac
6324 fi
6325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
6326 printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; }
6327 if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes
6328 then :
6329 tcl_ok=yes
6330 else case e in #(
6331 e) tcl_ok=no ;;
6332 esac
6333 fi
6334
6335 if test "$tcl_ok" = "no"; then
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
6337 printf %s "checking for pthread_mutex_init in -lc_r... " >&6; }
6338 if test ${ac_cv_lib_c_r_pthread_mutex_init+y}
6339 then :
6340 printf %s "(cached) " >&6
6341 else case e in #(
6342 e) ac_check_lib_save_LIBS=$LIBS
6343 LIBS="-lc_r $LIBS"
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6346
6347 /* Override any GCC internal prototype to avoid an error.
6348 Use char because int might match the return type of a GCC
6349 builtin and then its argument prototype would still apply.
6350 The 'extern "C"' is for builds by C++ compilers;
6351 although this is not generally supported in C code supporting it here
6352 has little cost and some practical benefit (sr 110532). */
6353 #ifdef __cplusplus
6354 extern "C"
6355 #endif
6356 char pthread_mutex_init (void);
6357 int
6358 main (void)
6359 {
6360 return pthread_mutex_init ();
6361 ;
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_link "$LINENO"
6366 then :
6367 ac_cv_lib_c_r_pthread_mutex_init=yes
6368 else case e in #(
6369 e) ac_cv_lib_c_r_pthread_mutex_init=no ;;
6370 esac
6371 fi
6372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6373 conftest$ac_exeext conftest.$ac_ext
6374 LIBS=$ac_check_lib_save_LIBS ;;
6375 esac
6376 fi
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
6378 printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
6379 if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes
6380 then :
6381 tcl_ok=yes
6382 else case e in #(
6383 e) tcl_ok=no ;;
6384 esac
6385 fi
6386
6387 if test "$tcl_ok" = "yes"; then
6388 # The space is needed
6389 THREADS_LIBS=" -pthread"
6390 else
6391 TCL_THREADS=0
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
6393 printf "%s\n" "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
6394 fi
6395 fi
6396 fi
6397 fi
6398 fi
6399 else
6400 TCL_THREADS=0
6401 fi
6402 # Do checking message here to not mess up interleaved configure output
6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
6404 printf %s "checking for building with threads... " >&6; }
6405 if test "${TCL_THREADS}" = 1; then
6406
6407 printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h
6408
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
6410 printf "%s\n" "yes (default)" >&6; }
6411 else
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 printf "%s\n" "no" >&6; }
6414 fi
6415 # TCL_THREADS sanity checking. See if our request for building with
6416 # threads is the same as the way Tcl was built. If not, warn the user.
6417 case ${TCL_DEFS} in
6418 *THREADS=1*)
6419 if test "${TCL_THREADS}" = "0"; then
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
6421 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
6422 that IS thread-enabled. It is recommended to use --enable-threads." >&5
6423 printf "%s\n" "$as_me: WARNING:
6424 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
6425 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
6426 fi
6427 ;;
6428 esac
6429
6430
6431
6432 #--------------------------------------------------------------------
6433 # The statement below defines a collection of symbols related to
6434 # building as a shared library instead of a static library.
6435 #--------------------------------------------------------------------
6436
6437
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
6439 printf %s "checking how to build libraries... " >&6; }
6440 # Check whether --enable-shared was given.
6441 if test ${enable_shared+y}
6442 then :
6443 enableval=$enable_shared; shared_ok=$enableval
6444 else case e in #(
6445 e) shared_ok=yes ;;
6446 esac
6447 fi
6448
6449
6450 if test "${enable_shared+set}" = set; then
6451 enableval="$enable_shared"
6452 shared_ok=$enableval
6453 else
6454 shared_ok=yes
6455 fi
6456
6457 # Check whether --enable-stubs was given.
6458 if test ${enable_stubs+y}
6459 then :
6460 enableval=$enable_stubs; stubs_ok=$enableval
6461 else case e in #(
6462 e) stubs_ok=yes ;;
6463 esac
6464 fi
6465
6466
6467 if test "${enable_stubs+set}" = set; then
6468 enableval="$enable_stubs"
6469 stubs_ok=$enableval
6470 else
6471 stubs_ok=yes
6472 fi
6473
6474 # Stubs are always enabled for shared builds
6475 if test "$shared_ok" = "yes" ; then
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
6477 printf "%s\n" "shared" >&6; }
6478 SHARED_BUILD=1
6479 STUBS_BUILD=1
6480 else
6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
6482 printf "%s\n" "static" >&6; }
6483 SHARED_BUILD=0
6484
6485 printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h
6486
6487 if test "$stubs_ok" = "yes" ; then
6488 STUBS_BUILD=1
6489 else
6490 STUBS_BUILD=0
6491 fi
6492 fi
6493 if test "${STUBS_BUILD}" = "1" ; then
6494
6495 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
6496
6497
6498 printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h
6499
6500 if test "${TEA_WINDOWINGSYSTEM}" != ""; then
6501
6502 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
6503
6504 fi
6505 fi
6506
6507
6508
6509
6510
6511 #--------------------------------------------------------------------
6512 # This macro figures out what flags to use with the compiler/linker
6513 # when building shared/static debug/optimized objects. This information
6514 # can be taken from the tclConfig.sh file, but this figures it all out.
6515 #--------------------------------------------------------------------
6516
6517 if test -n "$ac_tool_prefix"; then
6518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 printf %s "checking for $ac_word... " >&6; }
6522 if test ${ac_cv_prog_RANLIB+y}
6523 then :
6524 printf %s "(cached) " >&6
6525 else case e in #(
6526 e) if test -n "$RANLIB"; then
6527 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532 IFS=$as_save_IFS
6533 case $as_dir in #(((
6534 '') as_dir=./ ;;
6535 */) ;;
6536 *) as_dir=$as_dir/ ;;
6537 esac
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6540 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6542 break 2
6543 fi
6544 done
6545 done
6546 IFS=$as_save_IFS
6547
6548 fi ;;
6549 esac
6550 fi
6551 RANLIB=$ac_cv_prog_RANLIB
6552 if test -n "$RANLIB"; then
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6554 printf "%s\n" "$RANLIB" >&6; }
6555 else
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 printf "%s\n" "no" >&6; }
6558 fi
6559
6560
6561 fi
6562 if test -z "$ac_cv_prog_RANLIB"; then
6563 ac_ct_RANLIB=$RANLIB
6564 # Extract the first word of "ranlib", so it can be a program name with args.
6565 set dummy ranlib; ac_word=$2
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 printf %s "checking for $ac_word... " >&6; }
6568 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6569 then :
6570 printf %s "(cached) " >&6
6571 else case e in #(
6572 e) if test -n "$ac_ct_RANLIB"; then
6573 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578 IFS=$as_save_IFS
6579 case $as_dir in #(((
6580 '') as_dir=./ ;;
6581 */) ;;
6582 *) as_dir=$as_dir/ ;;
6583 esac
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_ac_ct_RANLIB="ranlib"
6587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590 done
6591 done
6592 IFS=$as_save_IFS
6593
6594 fi ;;
6595 esac
6596 fi
6597 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6598 if test -n "$ac_ct_RANLIB"; then
6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6600 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6601 else
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 printf "%s\n" "no" >&6; }
6604 fi
6605
6606 if test "x$ac_ct_RANLIB" = x; then
6607 RANLIB=":"
6608 else
6609 case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615 RANLIB=$ac_ct_RANLIB
6616 fi
6617 else
6618 RANLIB="$ac_cv_prog_RANLIB"
6619 fi
6620
6621
6622
6623
6624 # Step 0.a: Enable 64 bit support?
6625
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
6627 printf %s "checking if 64bit support is requested... " >&6; }
6628 # Check whether --enable-64bit was given.
6629 if test ${enable_64bit+y}
6630 then :
6631 enableval=$enable_64bit; do64bit=$enableval
6632 else case e in #(
6633 e) do64bit=no ;;
6634 esac
6635 fi
6636
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
6638 printf "%s\n" "$do64bit" >&6; }
6639
6640 # Step 0.b: Enable Solaris 64 bit VIS support?
6641
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
6643 printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
6644 # Check whether --enable-64bit-vis was given.
6645 if test ${enable_64bit_vis+y}
6646 then :
6647 enableval=$enable_64bit_vis; do64bitVIS=$enableval
6648 else case e in #(
6649 e) do64bitVIS=no ;;
6650 esac
6651 fi
6652
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
6654 printf "%s\n" "$do64bitVIS" >&6; }
6655 # Force 64bit on with VIS
6656 if test "$do64bitVIS" = "yes"
6657 then :
6658 do64bit=yes
6659 fi
6660
6661 # Step 0.c: Check if visibility support is available. Do this here so
6662 # that platform specific alternatives can be used below if this fails.
6663
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
6665 printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
6666 if test ${tcl_cv_cc_visibility_hidden+y}
6667 then :
6668 printf %s "(cached) " >&6
6669 else case e in #(
6670 e)
6671 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674
6675 extern __attribute__((__visibility__("hidden"))) void f(void);
6676 void f(void) {}
6677 int
6678 main (void)
6679 {
6680 f();
6681 ;
6682 return 0;
6683 }
6684 _ACEOF
6685 if ac_fn_c_try_link "$LINENO"
6686 then :
6687 tcl_cv_cc_visibility_hidden=yes
6688 else case e in #(
6689 e) tcl_cv_cc_visibility_hidden=no ;;
6690 esac
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6693 conftest$ac_exeext conftest.$ac_ext
6694 CFLAGS=$hold_cflags ;;
6695 esac
6696 fi
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
6698 printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
6699 if test $tcl_cv_cc_visibility_hidden = yes
6700 then :
6701
6702
6703 printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
6704
6705
6706 printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
6707
6708
6709 fi
6710
6711 # Step 0.d: Disable -rpath support?
6712
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
6714 printf %s "checking if rpath support is requested... " >&6; }
6715 # Check whether --enable-rpath was given.
6716 if test ${enable_rpath+y}
6717 then :
6718 enableval=$enable_rpath; doRpath=$enableval
6719 else case e in #(
6720 e) doRpath=yes ;;
6721 esac
6722 fi
6723
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
6725 printf "%s\n" "$doRpath" >&6; }
6726
6727 # Set the variable "system" to hold the name and version number
6728 # for the system.
6729
6730
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
6732 printf %s "checking system version... " >&6; }
6733 if test ${tcl_cv_sys_version+y}
6734 then :
6735 printf %s "(cached) " >&6
6736 else case e in #(
6737 e)
6738 # TEA specific:
6739 if test "${TEA_PLATFORM}" = "windows" ; then
6740 tcl_cv_sys_version=windows
6741 else
6742 tcl_cv_sys_version=`uname -s`-`uname -r`
6743 if test "$?" -ne 0 ; then
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
6745 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
6746 tcl_cv_sys_version=unknown
6747 else
6748 if test "`uname -s`" = "AIX" ; then
6749 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
6750 fi
6751 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
6752 tcl_cv_sys_version=NetBSD-Debian
6753 fi
6754 fi
6755 fi
6756 ;;
6757 esac
6758 fi
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
6760 printf "%s\n" "$tcl_cv_sys_version" >&6; }
6761 system=$tcl_cv_sys_version
6762
6763
6764 # Require ranlib early so we can override it in special cases below.
6765
6766
6767
6768 # Set configuration options based on system name and version.
6769 # This is similar to Tcl's unix/tcl.m4 except that we've added a
6770 # "windows" case and removed some core-only vars.
6771
6772 do64bit_ok=no
6773 # default to '{$LIBS}' and set to "" on per-platform necessary basis
6774 SHLIB_LD_LIBS='${LIBS}'
6775 # When ld needs options to work in 64-bit mode, put them in
6776 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
6777 # is disabled by the user. [Bug 1016796]
6778 LDFLAGS_ARCH=""
6779 UNSHARED_LIB_SUFFIX=""
6780 # TEA specific: use PACKAGE_VERSION instead of VERSION
6781 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
6782 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
6783 TCL_LIB_VERSIONS_OK=ok
6784 CFLAGS_DEBUG=-g
6785 if test "$GCC" = yes
6786 then :
6787
6788 CFLAGS_OPTIMIZE=-O2
6789 CFLAGS_WARNING="-Wall"
6790
6791 else case e in #(
6792 e)
6793 CFLAGS_OPTIMIZE=-O
6794 CFLAGS_WARNING=""
6795 ;;
6796 esac
6797 fi
6798 if test -n "$ac_tool_prefix"; then
6799 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}ar; ac_word=$2
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 printf %s "checking for $ac_word... " >&6; }
6803 if test ${ac_cv_prog_AR+y}
6804 then :
6805 printf %s "(cached) " >&6
6806 else case e in #(
6807 e) if test -n "$AR"; then
6808 ac_cv_prog_AR="$AR" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 case $as_dir in #(((
6815 '') as_dir=./ ;;
6816 */) ;;
6817 *) as_dir=$as_dir/ ;;
6818 esac
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6821 ac_cv_prog_AR="${ac_tool_prefix}ar"
6822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829 fi ;;
6830 esac
6831 fi
6832 AR=$ac_cv_prog_AR
6833 if test -n "$AR"; then
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6835 printf "%s\n" "$AR" >&6; }
6836 else
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 printf "%s\n" "no" >&6; }
6839 fi
6840
6841
6842 fi
6843 if test -z "$ac_cv_prog_AR"; then
6844 ac_ct_AR=$AR
6845 # Extract the first word of "ar", so it can be a program name with args.
6846 set dummy ar; ac_word=$2
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 printf %s "checking for $ac_word... " >&6; }
6849 if test ${ac_cv_prog_ac_ct_AR+y}
6850 then :
6851 printf %s "(cached) " >&6
6852 else case e in #(
6853 e) if test -n "$ac_ct_AR"; then
6854 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 case $as_dir in #(((
6861 '') as_dir=./ ;;
6862 */) ;;
6863 *) as_dir=$as_dir/ ;;
6864 esac
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_ac_ct_AR="ar"
6868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875 fi ;;
6876 esac
6877 fi
6878 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6879 if test -n "$ac_ct_AR"; then
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6881 printf "%s\n" "$ac_ct_AR" >&6; }
6882 else
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 printf "%s\n" "no" >&6; }
6885 fi
6886
6887 if test "x$ac_ct_AR" = x; then
6888 AR=""
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896 AR=$ac_ct_AR
6897 fi
6898 else
6899 AR="$ac_cv_prog_AR"
6900 fi
6901
6902 STLIB_LD='${AR} cr'
6903 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
6904 if test "x$SHLIB_VERSION" = x
6905 then :
6906 SHLIB_VERSION=""
6907 else case e in #(
6908 e) SHLIB_VERSION=".$SHLIB_VERSION" ;;
6909 esac
6910 fi
6911 case $system in
6912 # TEA specific:
6913 windows)
6914 MACHINE="X86"
6915 if test "$do64bit" != "no" ; then
6916 case "$do64bit" in
6917 amd64|x64|yes)
6918 MACHINE="AMD64" ; # default to AMD64 64-bit build
6919 ;;
6920 arm64|aarch64)
6921 MACHINE="ARM64"
6922 ;;
6923 ia64)
6924 MACHINE="IA64"
6925 ;;
6926 esac
6927 fi
6928
6929 if test "$GCC" != "yes" ; then
6930 if test "${SHARED_BUILD}" = "0" ; then
6931 runtime=-MT
6932 else
6933 runtime=-MD
6934 fi
6935 case "x`echo \${VisualStudioVersion}`" in
6936 x1[4-9]*)
6937 lflags="${lflags} -nodefaultlib:libucrt.lib"
6938
6939 vars="ucrt.lib"
6940 for i in $vars; do
6941 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6942 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6943 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6944 fi
6945 PKG_LIBS="$PKG_LIBS $i"
6946 done
6947
6948
6949 ;;
6950 *)
6951 ;;
6952 esac
6953
6954 if test "$do64bit" != "no" ; then
6955 CC="cl.exe"
6956 RC="rc.exe"
6957 lflags="${lflags} -nologo -MACHINE:${MACHINE} "
6958 LINKBIN="link.exe"
6959 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
6960 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6961 # Avoid 'unresolved external symbol __security_cookie'
6962 # errors, c.f. http://support.microsoft.com/?id=894573
6963
6964 vars="bufferoverflowU.lib"
6965 for i in $vars; do
6966 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6967 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6968 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6969 fi
6970 PKG_LIBS="$PKG_LIBS $i"
6971 done
6972
6973
6974 else
6975 RC="rc"
6976 lflags="${lflags} -nologo"
6977 LINKBIN="link"
6978 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
6979 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6980 fi
6981 fi
6982
6983 if test "$GCC" = "yes"; then
6984 # mingw gcc mode
6985 if test -n "$ac_tool_prefix"; then
6986 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6987 set dummy ${ac_tool_prefix}windres; ac_word=$2
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 printf %s "checking for $ac_word... " >&6; }
6990 if test ${ac_cv_prog_RC+y}
6991 then :
6992 printf %s "(cached) " >&6
6993 else case e in #(
6994 e) if test -n "$RC"; then
6995 ac_cv_prog_RC="$RC" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000 IFS=$as_save_IFS
7001 case $as_dir in #(((
7002 '') as_dir=./ ;;
7003 */) ;;
7004 *) as_dir=$as_dir/ ;;
7005 esac
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7008 ac_cv_prog_RC="${ac_tool_prefix}windres"
7009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi ;;
7017 esac
7018 fi
7019 RC=$ac_cv_prog_RC
7020 if test -n "$RC"; then
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
7022 printf "%s\n" "$RC" >&6; }
7023 else
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 printf "%s\n" "no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_RC"; then
7031 ac_ct_RC=$RC
7032 # Extract the first word of "windres", so it can be a program name with args.
7033 set dummy windres; ac_word=$2
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 printf %s "checking for $ac_word... " >&6; }
7036 if test ${ac_cv_prog_ac_ct_RC+y}
7037 then :
7038 printf %s "(cached) " >&6
7039 else case e in #(
7040 e) if test -n "$ac_ct_RC"; then
7041 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 case $as_dir in #(((
7048 '') as_dir=./ ;;
7049 */) ;;
7050 *) as_dir=$as_dir/ ;;
7051 esac
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7054 ac_cv_prog_ac_ct_RC="windres"
7055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058 done
7059 done
7060 IFS=$as_save_IFS
7061
7062 fi ;;
7063 esac
7064 fi
7065 ac_ct_RC=$ac_cv_prog_ac_ct_RC
7066 if test -n "$ac_ct_RC"; then
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
7068 printf "%s\n" "$ac_ct_RC" >&6; }
7069 else
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 printf "%s\n" "no" >&6; }
7072 fi
7073
7074 if test "x$ac_ct_RC" = x; then
7075 RC=""
7076 else
7077 case $cross_compiling:$ac_tool_warned in
7078 yes:)
7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7080 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081 ac_tool_warned=yes ;;
7082 esac
7083 RC=$ac_ct_RC
7084 fi
7085 else
7086 RC="$ac_cv_prog_RC"
7087 fi
7088
7089 CFLAGS_DEBUG="-g"
7090 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7091 SHLIB_LD='${CC} -shared'
7092 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7093 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
7094 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
7095
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
7097 printf %s "checking for cross-compile version of gcc... " >&6; }
7098 if test ${ac_cv_cross+y}
7099 then :
7100 printf %s "(cached) " >&6
7101 else case e in #(
7102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104
7105 #ifdef _WIN32
7106 #error cross-compiler
7107 #endif
7108
7109 int
7110 main (void)
7111 {
7112
7113 ;
7114 return 0;
7115 }
7116 _ACEOF
7117 if ac_fn_c_try_compile "$LINENO"
7118 then :
7119 ac_cv_cross=yes
7120 else case e in #(
7121 e) ac_cv_cross=no ;;
7122 esac
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7125 ;;
7126 esac
7127 fi
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
7129 printf "%s\n" "$ac_cv_cross" >&6; }
7130 if test "$ac_cv_cross" = "yes"; then
7131 case "$do64bit" in
7132 amd64|x64|yes)
7133 CC="x86_64-w64-mingw32-${CC}"
7134 LD="x86_64-w64-mingw32-ld"
7135 AR="x86_64-w64-mingw32-ar"
7136 RANLIB="x86_64-w64-mingw32-ranlib"
7137 RC="x86_64-w64-mingw32-windres"
7138 ;;
7139 arm64|aarch64)
7140 CC="aarch64-w64-mingw32-clang"
7141 LD="aarch64-w64-mingw32-ld"
7142 AR="aarch64-w64-mingw32-ar"
7143 RANLIB="aarch64-w64-mingw32-ranlib"
7144 RC="aarch64-w64-mingw32-windres"
7145 ;;
7146 *)
7147 CC="i686-w64-mingw32-${CC}"
7148 LD="i686-w64-mingw32-ld"
7149 AR="i686-w64-mingw32-ar"
7150 RANLIB="i686-w64-mingw32-ranlib"
7151 RC="i686-w64-mingw32-windres"
7152 ;;
7153 esac
7154 fi
7155
7156 else
7157 SHLIB_LD="${LINKBIN} -dll ${lflags}"
7158 # link -lib only works when -lib is the first arg
7159 STLIB_LD="${LINKBIN} -lib ${lflags}"
7160 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
7161 PATHTYPE=-w
7162 # For information on what debugtype is most useful, see:
7163 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
7164 # and also
7165 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
7166 # This essentially turns it all on.
7167 LDFLAGS_DEBUG="-debug -debugtype:cv"
7168 LDFLAGS_OPTIMIZE="-release"
7169 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
7170 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
7171 fi
7172
7173 SHLIB_SUFFIX=".dll"
7174 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
7175
7176 TCL_LIB_VERSIONS_OK=nodots
7177 ;;
7178 AIX-*)
7179 if test "$GCC" != "yes"
7180 then :
7181
7182 # AIX requires the _r compiler when gcc isn't being used
7183 case "${CC}" in
7184 *_r|*_r\ *)
7185 # ok ...
7186 ;;
7187 *)
7188 # Make sure only first arg gets _r
7189 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
7190 ;;
7191 esac
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
7193 printf "%s\n" "Using $CC for compiling with threads" >&6; }
7194
7195 fi
7196 LIBS="$LIBS -lc"
7197 SHLIB_CFLAGS=""
7198 SHLIB_SUFFIX=".so"
7199
7200 LD_LIBRARY_PATH_VAR="LIBPATH"
7201
7202 # Check to enable 64-bit flags for compiler/linker
7203 if test "$do64bit" = yes
7204 then :
7205
7206 if test "$GCC" = yes
7207 then :
7208
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7210 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7211
7212 else case e in #(
7213 e)
7214 do64bit_ok=yes
7215 CFLAGS="$CFLAGS -q64"
7216 LDFLAGS_ARCH="-q64"
7217 RANLIB="${RANLIB} -X64"
7218 AR="${AR} -X64"
7219 SHLIB_LD_FLAGS="-b64"
7220 ;;
7221 esac
7222 fi
7223
7224 fi
7225
7226 if test "`uname -m`" = ia64
7227 then :
7228
7229 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
7230 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7231 if test "$GCC" = yes
7232 then :
7233
7234 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7235
7236 else case e in #(
7237 e)
7238 CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
7239 ;;
7240 esac
7241 fi
7242 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7243
7244 else case e in #(
7245 e)
7246 if test "$GCC" = yes
7247 then :
7248
7249 SHLIB_LD='${CC} -shared -Wl,-bexpall'
7250
7251 else case e in #(
7252 e)
7253 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
7254 LDFLAGS="$LDFLAGS -brtl"
7255 ;;
7256 esac
7257 fi
7258 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
7259 CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
7260 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7261 ;;
7262 esac
7263 fi
7264 ;;
7265 BeOS*)
7266 SHLIB_CFLAGS="-fPIC"
7267 SHLIB_LD='${CC} -nostart'
7268 SHLIB_SUFFIX=".so"
7269
7270 #-----------------------------------------------------------
7271 # Check for inet_ntoa in -lbind, for BeOS (which also needs
7272 # -lsocket, even if the network functions are in -lnet which
7273 # is always linked to, for compatibility.
7274 #-----------------------------------------------------------
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
7276 printf %s "checking for inet_ntoa in -lbind... " >&6; }
7277 if test ${ac_cv_lib_bind_inet_ntoa+y}
7278 then :
7279 printf %s "(cached) " >&6
7280 else case e in #(
7281 e) ac_check_lib_save_LIBS=$LIBS
7282 LIBS="-lbind $LIBS"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285
7286 /* Override any GCC internal prototype to avoid an error.
7287 Use char because int might match the return type of a GCC
7288 builtin and then its argument prototype would still apply.
7289 The 'extern "C"' is for builds by C++ compilers;
7290 although this is not generally supported in C code supporting it here
7291 has little cost and some practical benefit (sr 110532). */
7292 #ifdef __cplusplus
7293 extern "C"
7294 #endif
7295 char inet_ntoa (void);
7296 int
7297 main (void)
7298 {
7299 return inet_ntoa ();
7300 ;
7301 return 0;
7302 }
7303 _ACEOF
7304 if ac_fn_c_try_link "$LINENO"
7305 then :
7306 ac_cv_lib_bind_inet_ntoa=yes
7307 else case e in #(
7308 e) ac_cv_lib_bind_inet_ntoa=no ;;
7309 esac
7310 fi
7311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7312 conftest$ac_exeext conftest.$ac_ext
7313 LIBS=$ac_check_lib_save_LIBS ;;
7314 esac
7315 fi
7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
7317 printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
7318 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
7319 then :
7320 LIBS="$LIBS -lbind -lsocket"
7321 fi
7322
7323 ;;
7324 BSD/OS-2.1*|BSD/OS-3*)
7325 SHLIB_CFLAGS=""
7326 SHLIB_LD="shlicc -r"
7327 SHLIB_SUFFIX=".so"
7328 CC_SEARCH_FLAGS=""
7329 LD_SEARCH_FLAGS=""
7330 ;;
7331 BSD/OS-4.*)
7332 SHLIB_CFLAGS="-export-dynamic -fPIC"
7333 SHLIB_LD='${CC} -shared'
7334 SHLIB_SUFFIX=".so"
7335 LDFLAGS="$LDFLAGS -export-dynamic"
7336 CC_SEARCH_FLAGS=""
7337 LD_SEARCH_FLAGS=""
7338 ;;
7339 CYGWIN_*)
7340 SHLIB_CFLAGS=""
7341 SHLIB_LD='${CC} -shared'
7342 SHLIB_SUFFIX=".dll"
7343 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\[email protected]"
7344 EXEEXT=".exe"
7345 do64bit_ok=yes
7346 CC_SEARCH_FLAGS=""
7347 LD_SEARCH_FLAGS=""
7348 ;;
7349 dgux*)
7350 SHLIB_CFLAGS="-K PIC"
7351 SHLIB_LD='${CC} -G'
7352 SHLIB_LD_LIBS=""
7353 SHLIB_SUFFIX=".so"
7354 CC_SEARCH_FLAGS=""
7355 LD_SEARCH_FLAGS=""
7356 ;;
7357 Haiku*)
7358 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7359 SHLIB_CFLAGS="-fPIC"
7360 SHLIB_SUFFIX=".so"
7361 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
7363 printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
7364 if test ${ac_cv_lib_network_inet_ntoa+y}
7365 then :
7366 printf %s "(cached) " >&6
7367 else case e in #(
7368 e) ac_check_lib_save_LIBS=$LIBS
7369 LIBS="-lnetwork $LIBS"
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7372
7373 /* Override any GCC internal prototype to avoid an error.
7374 Use char because int might match the return type of a GCC
7375 builtin and then its argument prototype would still apply.
7376 The 'extern "C"' is for builds by C++ compilers;
7377 although this is not generally supported in C code supporting it here
7378 has little cost and some practical benefit (sr 110532). */
7379 #ifdef __cplusplus
7380 extern "C"
7381 #endif
7382 char inet_ntoa (void);
7383 int
7384 main (void)
7385 {
7386 return inet_ntoa ();
7387 ;
7388 return 0;
7389 }
7390 _ACEOF
7391 if ac_fn_c_try_link "$LINENO"
7392 then :
7393 ac_cv_lib_network_inet_ntoa=yes
7394 else case e in #(
7395 e) ac_cv_lib_network_inet_ntoa=no ;;
7396 esac
7397 fi
7398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7399 conftest$ac_exeext conftest.$ac_ext
7400 LIBS=$ac_check_lib_save_LIBS ;;
7401 esac
7402 fi
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
7404 printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
7405 if test "x$ac_cv_lib_network_inet_ntoa" = xyes
7406 then :
7407 LIBS="$LIBS -lnetwork"
7408 fi
7409
7410 ;;
7411 HP-UX-*.11.*)
7412 # Use updated header definitions where possible
7413
7414 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
7415
7416 # TEA specific: Needed by Tcl, but not most extensions
7417 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
7418 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
7419
7420 if test "`uname -m`" = ia64
7421 then :
7422
7423 SHLIB_SUFFIX=".so"
7424
7425 else case e in #(
7426 e)
7427 SHLIB_SUFFIX=".sl"
7428 ;;
7429 esac
7430 fi
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7432 printf %s "checking for shl_load in -ldld... " >&6; }
7433 if test ${ac_cv_lib_dld_shl_load+y}
7434 then :
7435 printf %s "(cached) " >&6
7436 else case e in #(
7437 e) ac_check_lib_save_LIBS=$LIBS
7438 LIBS="-ldld $LIBS"
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441
7442 /* Override any GCC internal prototype to avoid an error.
7443 Use char because int might match the return type of a GCC
7444 builtin and then its argument prototype would still apply.
7445 The 'extern "C"' is for builds by C++ compilers;
7446 although this is not generally supported in C code supporting it here
7447 has little cost and some practical benefit (sr 110532). */
7448 #ifdef __cplusplus
7449 extern "C"
7450 #endif
7451 char shl_load (void);
7452 int
7453 main (void)
7454 {
7455 return shl_load ();
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 if ac_fn_c_try_link "$LINENO"
7461 then :
7462 ac_cv_lib_dld_shl_load=yes
7463 else case e in #(
7464 e) ac_cv_lib_dld_shl_load=no ;;
7465 esac
7466 fi
7467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7468 conftest$ac_exeext conftest.$ac_ext
7469 LIBS=$ac_check_lib_save_LIBS ;;
7470 esac
7471 fi
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7473 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7474 if test "x$ac_cv_lib_dld_shl_load" = xyes
7475 then :
7476 tcl_ok=yes
7477 else case e in #(
7478 e) tcl_ok=no ;;
7479 esac
7480 fi
7481
7482 if test "$tcl_ok" = yes
7483 then :
7484
7485 SHLIB_CFLAGS="+z"
7486 SHLIB_LD="ld -b"
7487 LDFLAGS="$LDFLAGS -Wl,-E"
7488 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7489 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7490 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7491
7492 fi
7493 if test "$GCC" = yes
7494 then :
7495
7496 SHLIB_LD='${CC} -shared'
7497 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7498
7499 else case e in #(
7500 e)
7501 CFLAGS="$CFLAGS -z"
7502 ;;
7503 esac
7504 fi
7505
7506 # Check to enable 64-bit flags for compiler/linker
7507 if test "$do64bit" = "yes"
7508 then :
7509
7510 if test "$GCC" = yes
7511 then :
7512
7513 case `${CC} -dumpmachine` in
7514 hppa64*)
7515 # 64-bit gcc in use. Fix flags for GNU ld.
7516 do64bit_ok=yes
7517 SHLIB_LD='${CC} -shared'
7518 if test $doRpath = yes
7519 then :
7520
7521 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7522 fi
7523 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7524 ;;
7525 *)
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7527 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7528 ;;
7529 esac
7530
7531 else case e in #(
7532 e)
7533 do64bit_ok=yes
7534 CFLAGS="$CFLAGS +DD64"
7535 LDFLAGS_ARCH="+DD64"
7536 ;;
7537 esac
7538 fi
7539
7540 fi ;;
7541 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
7542 SHLIB_SUFFIX=".sl"
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7544 printf %s "checking for shl_load in -ldld... " >&6; }
7545 if test ${ac_cv_lib_dld_shl_load+y}
7546 then :
7547 printf %s "(cached) " >&6
7548 else case e in #(
7549 e) ac_check_lib_save_LIBS=$LIBS
7550 LIBS="-ldld $LIBS"
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553
7554 /* Override any GCC internal prototype to avoid an error.
7555 Use char because int might match the return type of a GCC
7556 builtin and then its argument prototype would still apply.
7557 The 'extern "C"' is for builds by C++ compilers;
7558 although this is not generally supported in C code supporting it here
7559 has little cost and some practical benefit (sr 110532). */
7560 #ifdef __cplusplus
7561 extern "C"
7562 #endif
7563 char shl_load (void);
7564 int
7565 main (void)
7566 {
7567 return shl_load ();
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 if ac_fn_c_try_link "$LINENO"
7573 then :
7574 ac_cv_lib_dld_shl_load=yes
7575 else case e in #(
7576 e) ac_cv_lib_dld_shl_load=no ;;
7577 esac
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7580 conftest$ac_exeext conftest.$ac_ext
7581 LIBS=$ac_check_lib_save_LIBS ;;
7582 esac
7583 fi
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7585 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7586 if test "x$ac_cv_lib_dld_shl_load" = xyes
7587 then :
7588 tcl_ok=yes
7589 else case e in #(
7590 e) tcl_ok=no ;;
7591 esac
7592 fi
7593
7594 if test "$tcl_ok" = yes
7595 then :
7596
7597 SHLIB_CFLAGS="+z"
7598 SHLIB_LD="ld -b"
7599 SHLIB_LD_LIBS=""
7600 LDFLAGS="$LDFLAGS -Wl,-E"
7601 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7602 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7603 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7604
7605 fi ;;
7606 IRIX-5.*)
7607 SHLIB_CFLAGS=""
7608 SHLIB_LD="ld -shared -rdata_shared"
7609 SHLIB_SUFFIX=".so"
7610 case " $LIBOBJS " in
7611 *" mkstemp.$ac_objext "* ) ;;
7612 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
7613 ;;
7614 esac
7615
7616 if test $doRpath = yes
7617 then :
7618
7619 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7620 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7621 fi
7622 ;;
7623 IRIX-6.*)
7624 SHLIB_CFLAGS=""
7625 SHLIB_LD="ld -n32 -shared -rdata_shared"
7626 SHLIB_SUFFIX=".so"
7627 if test $doRpath = yes
7628 then :
7629
7630 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7631 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7632 fi
7633 if test "$GCC" = yes
7634 then :
7635
7636 CFLAGS="$CFLAGS -mabi=n32"
7637 LDFLAGS="$LDFLAGS -mabi=n32"
7638
7639 else case e in #(
7640 e)
7641 case $system in
7642 IRIX-6.3)
7643 # Use to build 6.2 compatible binaries on 6.3.
7644 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7645 ;;
7646 *)
7647 CFLAGS="$CFLAGS -n32"
7648 ;;
7649 esac
7650 LDFLAGS="$LDFLAGS -n32"
7651 ;;
7652 esac
7653 fi
7654 ;;
7655 IRIX64-6.*)
7656 SHLIB_CFLAGS=""
7657 SHLIB_LD="ld -n32 -shared -rdata_shared"
7658 SHLIB_SUFFIX=".so"
7659 if test $doRpath = yes
7660 then :
7661
7662 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7663 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7664 fi
7665
7666 # Check to enable 64-bit flags for compiler/linker
7667
7668 if test "$do64bit" = yes
7669 then :
7670
7671 if test "$GCC" = yes
7672 then :
7673
7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
7675 printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7676
7677 else case e in #(
7678 e)
7679 do64bit_ok=yes
7680 SHLIB_LD="ld -64 -shared -rdata_shared"
7681 CFLAGS="$CFLAGS -64"
7682 LDFLAGS_ARCH="-64"
7683 ;;
7684 esac
7685 fi
7686
7687 fi
7688 ;;
7689 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
7690 SHLIB_CFLAGS="-fPIC"
7691 SHLIB_SUFFIX=".so"
7692
7693 # TEA specific:
7694 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7695
7696 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7697 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
7698 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7699
7700 case $system in
7701 DragonFly-*|FreeBSD-*)
7702 if test "${TCL_THREADS}" = "1"
7703 then :
7704
7705 # The -pthread needs to go in the LDFLAGS, not LIBS
7706 LIBS=`echo $LIBS | sed s/-pthread//`
7707 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7708 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
7709 fi
7710 ;;
7711 esac
7712
7713 if test $doRpath = yes
7714 then :
7715
7716 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7717 fi
7718 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7719 if test "`uname -m`" = "alpha"
7720 then :
7721 CFLAGS="$CFLAGS -mieee"
7722 fi
7723 if test $do64bit = yes
7724 then :
7725
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
7727 printf %s "checking if compiler accepts -m64 flag... " >&6; }
7728 if test ${tcl_cv_cc_m64+y}
7729 then :
7730 printf %s "(cached) " >&6
7731 else case e in #(
7732 e)
7733 hold_cflags=$CFLAGS
7734 CFLAGS="$CFLAGS -m64"
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737
7738 int
7739 main (void)
7740 {
7741
7742 ;
7743 return 0;
7744 }
7745 _ACEOF
7746 if ac_fn_c_try_link "$LINENO"
7747 then :
7748 tcl_cv_cc_m64=yes
7749 else case e in #(
7750 e) tcl_cv_cc_m64=no ;;
7751 esac
7752 fi
7753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7754 conftest$ac_exeext conftest.$ac_ext
7755 CFLAGS=$hold_cflags ;;
7756 esac
7757 fi
7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
7759 printf "%s\n" "$tcl_cv_cc_m64" >&6; }
7760 if test $tcl_cv_cc_m64 = yes
7761 then :
7762
7763 CFLAGS="$CFLAGS -m64"
7764 do64bit_ok=yes
7765
7766 fi
7767
7768 fi
7769
7770 # The combo of gcc + glibc has a bug related to inlining of
7771 # functions like strtod(). The -fno-builtin flag should address
7772 # this problem but it does not work. The -fno-inline flag is kind
7773 # of overkill but it works. Disable inlining only when one of the
7774 # files in compat/*.c is being linked in.
7775
7776 if test x"${USE_COMPAT}" != x
7777 then :
7778 CFLAGS="$CFLAGS -fno-inline"
7779 fi
7780 ;;
7781 Lynx*)
7782 SHLIB_CFLAGS="-fPIC"
7783 SHLIB_SUFFIX=".so"
7784 CFLAGS_OPTIMIZE=-02
7785 SHLIB_LD='${CC} -shared'
7786 LD_FLAGS="-Wl,--export-dynamic"
7787 if test $doRpath = yes
7788 then :
7789
7790 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7791 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7792 fi
7793 ;;
7794 OpenBSD-*)
7795 arch=`arch -s`
7796 case "$arch" in
7797 alpha|sparc64)
7798 SHLIB_CFLAGS="-fPIC"
7799 ;;
7800 *)
7801 SHLIB_CFLAGS="-fpic"
7802 ;;
7803 esac
7804 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7805 SHLIB_SUFFIX=".so"
7806 if test $doRpath = yes
7807 then :
7808
7809 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7810 fi
7811 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7812 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
7813 LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
7814 CFLAGS_OPTIMIZE="-O2"
7815 # On OpenBSD: Compile with -pthread
7816 # Don't link with -lpthread
7817 LIBS=`echo $LIBS | sed s/-lpthread//`
7818 CFLAGS="$CFLAGS -pthread"
7819 # OpenBSD doesn't do version numbers with dots.
7820 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7821 TCL_LIB_VERSIONS_OK=nodots
7822 ;;
7823 NetBSD-*)
7824 # NetBSD has ELF and can use 'cc -shared' to build shared libs
7825 SHLIB_CFLAGS="-fPIC"
7826 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7827 SHLIB_SUFFIX=".so"
7828 LDFLAGS="$LDFLAGS -export-dynamic"
7829 if test $doRpath = yes
7830 then :
7831
7832 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7833 fi
7834 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7835 # The -pthread needs to go in the CFLAGS, not LIBS
7836 LIBS=`echo $LIBS | sed s/-pthread//`
7837 CFLAGS="$CFLAGS -pthread"
7838 LDFLAGS="$LDFLAGS -pthread"
7839 ;;
7840 Darwin-*)
7841 CFLAGS_OPTIMIZE="-Os"
7842 SHLIB_CFLAGS="-fno-common"
7843 # To avoid discrepancies between what headers configure sees during
7844 # preprocessing tests and compiling tests, move any -isysroot and
7845 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
7846 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
7847 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7848 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
7849 CFLAGS="`echo " ${CFLAGS}" | \
7850 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7851 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
7852 if test $do64bit = yes
7853 then :
7854
7855 case `arch` in
7856 ppc)
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
7858 printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
7859 if test ${tcl_cv_cc_arch_ppc64+y}
7860 then :
7861 printf %s "(cached) " >&6
7862 else case e in #(
7863 e)
7864 hold_cflags=$CFLAGS
7865 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868
7869 int
7870 main (void)
7871 {
7872
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_link "$LINENO"
7878 then :
7879 tcl_cv_cc_arch_ppc64=yes
7880 else case e in #(
7881 e) tcl_cv_cc_arch_ppc64=no ;;
7882 esac
7883 fi
7884 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7885 conftest$ac_exeext conftest.$ac_ext
7886 CFLAGS=$hold_cflags ;;
7887 esac
7888 fi
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
7890 printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
7891 if test $tcl_cv_cc_arch_ppc64 = yes
7892 then :
7893
7894 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7895 do64bit_ok=yes
7896
7897 fi;;
7898 i386)
7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
7900 printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
7901 if test ${tcl_cv_cc_arch_x86_64+y}
7902 then :
7903 printf %s "(cached) " >&6
7904 else case e in #(
7905 e)
7906 hold_cflags=$CFLAGS
7907 CFLAGS="$CFLAGS -arch x86_64"
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910
7911 int
7912 main (void)
7913 {
7914
7915 ;
7916 return 0;
7917 }
7918 _ACEOF
7919 if ac_fn_c_try_link "$LINENO"
7920 then :
7921 tcl_cv_cc_arch_x86_64=yes
7922 else case e in #(
7923 e) tcl_cv_cc_arch_x86_64=no ;;
7924 esac
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7927 conftest$ac_exeext conftest.$ac_ext
7928 CFLAGS=$hold_cflags ;;
7929 esac
7930 fi
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
7932 printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
7933 if test $tcl_cv_cc_arch_x86_64 = yes
7934 then :
7935
7936 CFLAGS="$CFLAGS -arch x86_64"
7937 do64bit_ok=yes
7938
7939 fi;;
7940 *)
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
7942 printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
7943 esac
7944
7945 else case e in #(
7946 e)
7947 # Check for combined 32-bit and 64-bit fat build
7948 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
7949 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
7950 then :
7951
7952 fat_32_64=yes
7953 fi
7954 ;;
7955 esac
7956 fi
7957 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7958 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
7959 # TEA specific: link shlib with current and compatibility version flags
7960 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
7961 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
7962 SHLIB_SUFFIX=".dylib"
7963 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
7965 printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
7966 if test ${tcl_cv_ld_search_paths_first+y}
7967 then :
7968 printf %s "(cached) " >&6
7969 else case e in #(
7970 e)
7971 hold_ldflags=$LDFLAGS
7972 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975
7976 int
7977 main (void)
7978 {
7979 int i;
7980 ;
7981 return 0;
7982 }
7983 _ACEOF
7984 if ac_fn_c_try_link "$LINENO"
7985 then :
7986 tcl_cv_ld_search_paths_first=yes
7987 else case e in #(
7988 e) tcl_cv_ld_search_paths_first=no ;;
7989 esac
7990 fi
7991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LDFLAGS=$hold_ldflags ;;
7994 esac
7995 fi
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
7997 printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
7998 if test $tcl_cv_ld_search_paths_first = yes
7999 then :
8000
8001 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
8002
8003 fi
8004 if test "$tcl_cv_cc_visibility_hidden" != yes
8005 then :
8006
8007
8008 printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
8009
8010 tcl_cv_cc_visibility_hidden=yes
8011
8012 fi
8013 CC_SEARCH_FLAGS=""
8014 LD_SEARCH_FLAGS=""
8015 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
8016 # TEA specific: for combined 32 & 64 bit fat builds of Tk
8017 # extensions, verify that 64-bit build is possible.
8018 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
8019 then :
8020
8021 if test "${TEA_WINDOWINGSYSTEM}" = x11
8022 then :
8023
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
8025 printf %s "checking for 64-bit X11... " >&6; }
8026 if test ${tcl_cv_lib_x11_64+y}
8027 then :
8028 printf %s "(cached) " >&6
8029 else case e in #(
8030 e)
8031 for v in CFLAGS CPPFLAGS LDFLAGS; do
8032 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8033 done
8034 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
8035 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 #include <X11/Xlib.h>
8039 int
8040 main (void)
8041 {
8042 XrmInitialize();
8043 ;
8044 return 0;
8045 }
8046 _ACEOF
8047 if ac_fn_c_try_link "$LINENO"
8048 then :
8049 tcl_cv_lib_x11_64=yes
8050 else case e in #(
8051 e) tcl_cv_lib_x11_64=no ;;
8052 esac
8053 fi
8054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8055 conftest$ac_exeext conftest.$ac_ext
8056 for v in CFLAGS CPPFLAGS LDFLAGS; do
8057 eval $v'="$hold_'$v'"'
8058 done ;;
8059 esac
8060 fi
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
8062 printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
8063
8064 fi
8065 if test "${TEA_WINDOWINGSYSTEM}" = aqua
8066 then :
8067
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
8069 printf %s "checking for 64-bit Tk... " >&6; }
8070 if test ${tcl_cv_lib_tk_64+y}
8071 then :
8072 printf %s "(cached) " >&6
8073 else case e in #(
8074 e)
8075 for v in CFLAGS CPPFLAGS LDFLAGS; do
8076 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
8077 done
8078 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
8079 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 #include <tk.h>
8083 int
8084 main (void)
8085 {
8086 Tk_InitStubs(NULL, "", 0);
8087 ;
8088 return 0;
8089 }
8090 _ACEOF
8091 if ac_fn_c_try_link "$LINENO"
8092 then :
8093 tcl_cv_lib_tk_64=yes
8094 else case e in #(
8095 e) tcl_cv_lib_tk_64=no ;;
8096 esac
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8099 conftest$ac_exeext conftest.$ac_ext
8100 for v in CFLAGS CPPFLAGS LDFLAGS; do
8101 eval $v'="$hold_'$v'"'
8102 done ;;
8103 esac
8104 fi
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
8106 printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
8107
8108 fi
8109 # remove 64-bit arch flags from CFLAGS et al. if configuration
8110 # does not support 64-bit.
8111 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
8112 then :
8113
8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
8115 printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
8116 for v in CFLAGS CPPFLAGS LDFLAGS; do
8117 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
8118 done
8119 fi
8120
8121 fi
8122 ;;
8123 OS/390-*)
8124 CFLAGS_OPTIMIZE="" # Optimizer is buggy
8125
8126 printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
8127
8128 ;;
8129 OSF1-V*)
8130 # Digital OSF/1
8131 SHLIB_CFLAGS=""
8132 if test "$SHARED_BUILD" = 1
8133 then :
8134
8135 SHLIB_LD='ld -shared -expect_unresolved "*"'
8136
8137 else case e in #(
8138 e)
8139 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
8140 ;;
8141 esac
8142 fi
8143 SHLIB_SUFFIX=".so"
8144 if test $doRpath = yes
8145 then :
8146
8147 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
8148 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
8149 fi
8150 if test "$GCC" = yes
8151 then :
8152 CFLAGS="$CFLAGS -mieee"
8153 else case e in #(
8154 e)
8155 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" ;;
8156 esac
8157 fi
8158 # see pthread_intro(3) for pthread support on osf1, k.furukawa
8159 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
8160 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
8161 LIBS=`echo $LIBS | sed s/-lpthreads//`
8162 if test "$GCC" = yes
8163 then :
8164
8165 LIBS="$LIBS -lpthread -lmach -lexc"
8166
8167 else case e in #(
8168 e)
8169 CFLAGS="$CFLAGS -pthread"
8170 LDFLAGS="$LDFLAGS -pthread"
8171 ;;
8172 esac
8173 fi
8174 ;;
8175 QNX-6*)
8176 # QNX RTP
8177 # This may work for all QNX, but it was only reported for v6.
8178 SHLIB_CFLAGS="-fPIC"
8179 SHLIB_LD="ld -Bshareable -x"
8180 SHLIB_LD_LIBS=""
8181 SHLIB_SUFFIX=".so"
8182 CC_SEARCH_FLAGS=""
8183 LD_SEARCH_FLAGS=""
8184 ;;
8185 SCO_SV-3.2*)
8186 if test "$GCC" = yes
8187 then :
8188
8189 SHLIB_CFLAGS="-fPIC -melf"
8190 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
8191
8192 else case e in #(
8193 e)
8194 SHLIB_CFLAGS="-Kpic -belf"
8195 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
8196 ;;
8197 esac
8198 fi
8199 SHLIB_LD="ld -G"
8200 SHLIB_LD_LIBS=""
8201 SHLIB_SUFFIX=".so"
8202 CC_SEARCH_FLAGS=""
8203 LD_SEARCH_FLAGS=""
8204 ;;
8205 SunOS-5.[0-6])
8206 # Careful to not let 5.10+ fall into this case
8207
8208 # Note: If _REENTRANT isn't defined, then Solaris
8209 # won't define thread-safe library routines.
8210
8211
8212 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8213
8214
8215 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8216
8217
8218 SHLIB_CFLAGS="-KPIC"
8219 SHLIB_SUFFIX=".so"
8220 if test "$GCC" = yes
8221 then :
8222
8223 SHLIB_LD='${CC} -shared'
8224 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8225 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8226
8227 else case e in #(
8228 e)
8229 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
8230 CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8231 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8232 ;;
8233 esac
8234 fi
8235 ;;
8236 SunOS-5*)
8237 # Note: If _REENTRANT isn't defined, then Solaris
8238 # won't define thread-safe library routines.
8239
8240
8241 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
8242
8243
8244 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
8245
8246
8247 SHLIB_CFLAGS="-KPIC"
8248
8249 # Check to enable 64-bit flags for compiler/linker
8250 if test "$do64bit" = yes
8251 then :
8252
8253 arch=`isainfo`
8254 if test "$arch" = "sparcv9 sparc"
8255 then :
8256
8257 if test "$GCC" = yes
8258 then :
8259
8260 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
8261 then :
8262
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
8264 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
8265
8266 else case e in #(
8267 e)
8268 do64bit_ok=yes
8269 CFLAGS="$CFLAGS -m64 -mcpu=v9"
8270 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
8271 SHLIB_CFLAGS="-fPIC"
8272 ;;
8273 esac
8274 fi
8275
8276 else case e in #(
8277 e)
8278 do64bit_ok=yes
8279 if test "$do64bitVIS" = yes
8280 then :
8281
8282 CFLAGS="$CFLAGS -xarch=v9a"
8283 LDFLAGS_ARCH="-xarch=v9a"
8284
8285 else case e in #(
8286 e)
8287 CFLAGS="$CFLAGS -xarch=v9"
8288 LDFLAGS_ARCH="-xarch=v9"
8289 ;;
8290 esac
8291 fi
8292 # Solaris 64 uses this as well
8293 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
8294 ;;
8295 esac
8296 fi
8297
8298 else case e in #(
8299 e) if test "$arch" = "amd64 i386"
8300 then :
8301
8302 if test "$GCC" = yes
8303 then :
8304
8305 case $system in
8306 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8307 do64bit_ok=yes
8308 CFLAGS="$CFLAGS -m64"
8309 LDFLAGS="$LDFLAGS -m64";;
8310 *)
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
8312 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
8313 esac
8314
8315 else case e in #(
8316 e)
8317 do64bit_ok=yes
8318 case $system in
8319 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
8320 CFLAGS="$CFLAGS -m64"
8321 LDFLAGS="$LDFLAGS -m64";;
8322 *)
8323 CFLAGS="$CFLAGS -xarch=amd64"
8324 LDFLAGS="$LDFLAGS -xarch=amd64";;
8325 esac
8326 ;;
8327 esac
8328 fi
8329
8330 else case e in #(
8331 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
8332 printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} ;;
8333 esac
8334 fi ;;
8335 esac
8336 fi
8337
8338 fi
8339
8340 SHLIB_SUFFIX=".so"
8341 if test "$GCC" = yes
8342 then :
8343
8344 SHLIB_LD='${CC} -shared'
8345 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8346 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
8347 if test "$do64bit_ok" = yes
8348 then :
8349
8350 if test "$arch" = "sparcv9 sparc"
8351 then :
8352
8353 # We need to specify -static-libgcc or we need to
8354 # add the path to the sparv9 libgcc.
8355 # JH: static-libgcc is necessary for core Tcl, but may
8356 # not be necessary for extensions.
8357 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
8358 # for finding sparcv9 libgcc, get the regular libgcc
8359 # path, remove so name and append 'sparcv9'
8360 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
8361 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
8362
8363 else case e in #(
8364 e) if test "$arch" = "amd64 i386"
8365 then :
8366
8367 # JH: static-libgcc is necessary for core Tcl, but may
8368 # not be necessary for extensions.
8369 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
8370
8371 fi ;;
8372 esac
8373 fi
8374
8375 fi
8376
8377 else case e in #(
8378 e)
8379 case $system in
8380 SunOS-5.[1-9][0-9]*)
8381 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
8382 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
8383 *)
8384 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
8385 esac
8386 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
8387 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
8388 ;;
8389 esac
8390 fi
8391 ;;
8392 UNIX_SV* | UnixWare-5*)
8393 SHLIB_CFLAGS="-KPIC"
8394 SHLIB_LD='${CC} -G'
8395 SHLIB_LD_LIBS=""
8396 SHLIB_SUFFIX=".so"
8397 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
8398 # that don't grok the -Bexport option. Test that it does.
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
8400 printf %s "checking for ld accepts -Bexport flag... " >&6; }
8401 if test ${tcl_cv_ld_Bexport+y}
8402 then :
8403 printf %s "(cached) " >&6
8404 else case e in #(
8405 e)
8406 hold_ldflags=$LDFLAGS
8407 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410
8411 int
8412 main (void)
8413 {
8414 int i;
8415 ;
8416 return 0;
8417 }
8418 _ACEOF
8419 if ac_fn_c_try_link "$LINENO"
8420 then :
8421 tcl_cv_ld_Bexport=yes
8422 else case e in #(
8423 e) tcl_cv_ld_Bexport=no ;;
8424 esac
8425 fi
8426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8427 conftest$ac_exeext conftest.$ac_ext
8428 LDFLAGS=$hold_ldflags ;;
8429 esac
8430 fi
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
8432 printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
8433 if test $tcl_cv_ld_Bexport = yes
8434 then :
8435
8436 LDFLAGS="$LDFLAGS -Wl,-Bexport"
8437
8438 fi
8439 CC_SEARCH_FLAGS=""
8440 LD_SEARCH_FLAGS=""
8441 ;;
8442 esac
8443
8444 if test "$do64bit" = yes -a "$do64bit_ok" = no
8445 then :
8446
8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
8448 printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
8449
8450 fi
8451
8452
8453
8454 # Add in the arch flags late to ensure it wasn't removed.
8455 # Not necessary in TEA, but this is aligned with core
8456 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
8457
8458 # If we're running gcc, then change the C flags for compiling shared
8459 # libraries to the right flags for gcc, instead of those for the
8460 # standard manufacturer compiler.
8461
8462 if test "$GCC" = yes
8463 then :
8464
8465 case $system in
8466 AIX-*) ;;
8467 BSD/OS*) ;;
8468 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
8469 IRIX*) ;;
8470 NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
8471 Darwin-*) ;;
8472 SCO_SV-3.2*) ;;
8473 windows) ;;
8474 *) SHLIB_CFLAGS="-fPIC" ;;
8475 esac
8476 fi
8477
8478 if test "$tcl_cv_cc_visibility_hidden" != yes
8479 then :
8480
8481
8482 printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
8483
8484
8485 fi
8486
8487 if test "$SHARED_LIB_SUFFIX" = ""
8488 then :
8489
8490 # TEA specific: use PACKAGE_VERSION instead of VERSION
8491 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
8492 fi
8493 if test "$UNSHARED_LIB_SUFFIX" = ""
8494 then :
8495
8496 # TEA specific: use PACKAGE_VERSION instead of VERSION
8497 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
8498 fi
8499
8500 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
8502 printf %s "checking for SEH support in compiler... " >&6; }
8503 if test ${tcl_cv_seh+y}
8504 then :
8505 printf %s "(cached) " >&6
8506 else case e in #(
8507 e) if test "$cross_compiling" = yes
8508 then :
8509 tcl_cv_seh=no
8510 else case e in #(
8511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513
8514 #define WIN32_LEAN_AND_MEAN
8515 #include <windows.h>
8516 #undef WIN32_LEAN_AND_MEAN
8517
8518 int main(int argc, char** argv) {
8519 int a, b = 0;
8520 __try {
8521 a = 666 / b;
8522 }
8523 __except (EXCEPTION_EXECUTE_HANDLER) {
8524 return 0;
8525 }
8526 return 1;
8527 }
8528
8529 _ACEOF
8530 if ac_fn_c_try_run "$LINENO"
8531 then :
8532 tcl_cv_seh=yes
8533 else case e in #(
8534 e) tcl_cv_seh=no ;;
8535 esac
8536 fi
8537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8538 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8539 esac
8540 fi
8541
8542 ;;
8543 esac
8544 fi
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
8546 printf "%s\n" "$tcl_cv_seh" >&6; }
8547 if test "$tcl_cv_seh" = "no" ; then
8548
8549 printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
8550
8551 fi
8552
8553 #
8554 # Check to see if the excpt.h include file provided contains the
8555 # definition for EXCEPTION_DISPOSITION; if not, which is the case
8556 # with Cygwin's version as of 2002-04-10, define it to be int,
8557 # sufficient for getting the current code to work.
8558 #
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
8560 printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
8561 if test ${tcl_cv_eh_disposition+y}
8562 then :
8563 printf %s "(cached) " >&6
8564 else case e in #(
8565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567
8568 # define WIN32_LEAN_AND_MEAN
8569 # include <windows.h>
8570 # undef WIN32_LEAN_AND_MEAN
8571
8572 int
8573 main (void)
8574 {
8575
8576 EXCEPTION_DISPOSITION x;
8577
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_compile "$LINENO"
8583 then :
8584 tcl_cv_eh_disposition=yes
8585 else case e in #(
8586 e) tcl_cv_eh_disposition=no ;;
8587 esac
8588 fi
8589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8590 ;;
8591 esac
8592 fi
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
8594 printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
8595 if test "$tcl_cv_eh_disposition" = "no" ; then
8596
8597 printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
8598
8599 fi
8600
8601 # Check to see if winnt.h defines CHAR, SHORT, and LONG
8602 # even if VOID has already been #defined. The win32api
8603 # used by mingw and cygwin is known to do this.
8604
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
8606 printf %s "checking for winnt.h that ignores VOID define... " >&6; }
8607 if test ${tcl_cv_winnt_ignore_void+y}
8608 then :
8609 printf %s "(cached) " >&6
8610 else case e in #(
8611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613
8614 #define VOID void
8615 #define WIN32_LEAN_AND_MEAN
8616 #include <windows.h>
8617 #undef WIN32_LEAN_AND_MEAN
8618
8619 int
8620 main (void)
8621 {
8622
8623 CHAR c;
8624 SHORT s;
8625 LONG l;
8626
8627 ;
8628 return 0;
8629 }
8630 _ACEOF
8631 if ac_fn_c_try_compile "$LINENO"
8632 then :
8633 tcl_cv_winnt_ignore_void=yes
8634 else case e in #(
8635 e) tcl_cv_winnt_ignore_void=no ;;
8636 esac
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8639 ;;
8640 esac
8641 fi
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
8643 printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
8644 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
8645
8646 printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
8647
8648 fi
8649 fi
8650
8651 # See if the compiler supports casting to a union type.
8652 # This is used to stop gcc from printing a compiler
8653 # warning when initializing a union member.
8654
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
8656 printf %s "checking for cast to union support... " >&6; }
8657 if test ${tcl_cv_cast_to_union+y}
8658 then :
8659 printf %s "(cached) " >&6
8660 else case e in #(
8661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663
8664 int
8665 main (void)
8666 {
8667
8668 union foo { int i; double d; };
8669 union foo f = (union foo) (int) 0;
8670
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 if ac_fn_c_try_compile "$LINENO"
8676 then :
8677 tcl_cv_cast_to_union=yes
8678 else case e in #(
8679 e) tcl_cv_cast_to_union=no ;;
8680 esac
8681 fi
8682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8683 ;;
8684 esac
8685 fi
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
8687 printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
8688 if test "$tcl_cv_cast_to_union" = "yes"; then
8689
8690 printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
8691
8692 fi
8693
8694 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
8695 if test "x$ac_cv_header_stdbool_h" = xyes
8696 then :
8697
8698 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
8699
8700 fi
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717 # These must be called after we do the basic CFLAGS checks and
8718 # verify any possible 64-bit or similar switches are necessary
8719
8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
8721 printf %s "checking for required early compiler flags... " >&6; }
8722 tcl_flags=""
8723
8724 if test ${tcl_cv_flag__isoc99_source+y}
8725 then :
8726 printf %s "(cached) " >&6
8727 else case e in #(
8728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #include <stdlib.h>
8731 int
8732 main (void)
8733 {
8734 char *p = (char *)strtoll; char *q = (char *)strtoull;
8735 ;
8736 return 0;
8737 }
8738 _ACEOF
8739 if ac_fn_c_try_compile "$LINENO"
8740 then :
8741 tcl_cv_flag__isoc99_source=no
8742 else case e in #(
8743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 #define _ISOC99_SOURCE 1
8746 #include <stdlib.h>
8747 int
8748 main (void)
8749 {
8750 char *p = (char *)strtoll; char *q = (char *)strtoull;
8751 ;
8752 return 0;
8753 }
8754 _ACEOF
8755 if ac_fn_c_try_compile "$LINENO"
8756 then :
8757 tcl_cv_flag__isoc99_source=yes
8758 else case e in #(
8759 e) tcl_cv_flag__isoc99_source=no ;;
8760 esac
8761 fi
8762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8763 esac
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8766 esac
8767 fi
8768
8769 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
8770
8771 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
8772
8773 tcl_flags="$tcl_flags _ISOC99_SOURCE"
8774 fi
8775
8776 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
8777
8778 if test ${tcl_cv_flag__file_offset_bits+y}
8779 then :
8780 printf %s "(cached) " >&6
8781 else case e in #(
8782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 #include <sys/stat.h>
8785 int
8786 main (void)
8787 {
8788 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
8789 ;
8790 return 0;
8791 }
8792 _ACEOF
8793 if ac_fn_c_try_compile "$LINENO"
8794 then :
8795 tcl_cv_flag__file_offset_bits=no
8796 else case e in #(
8797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799 #define _FILE_OFFSET_BITS 64
8800 #include <sys/stat.h>
8801 int
8802 main (void)
8803 {
8804 switch (0) { case 0: case (sizeof(off_t)==sizeof(long long)): ; }
8805 ;
8806 return 0;
8807 }
8808 _ACEOF
8809 if ac_fn_c_try_compile "$LINENO"
8810 then :
8811 tcl_cv_flag__file_offset_bits=yes
8812 else case e in #(
8813 e) tcl_cv_flag__file_offset_bits=no ;;
8814 esac
8815 fi
8816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8817 esac
8818 fi
8819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8820 esac
8821 fi
8822
8823 if test "x${tcl_cv_flag__file_offset_bits}" = "xyes" ; then
8824
8825 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8826
8827 tcl_flags="$tcl_flags _FILE_OFFSET_BITS"
8828 fi
8829
8830 fi
8831 if test "x${tcl_flags}" = "x" ; then
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8833 printf "%s\n" "none" >&6; }
8834 else
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
8836 printf "%s\n" "${tcl_flags}" >&6; }
8837 fi
8838
8839
8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
8841 printf %s "checking for 64-bit integer type... " >&6; }
8842 if test ${tcl_cv_type_64bit+y}
8843 then :
8844 printf %s "(cached) " >&6
8845 else case e in #(
8846 e)
8847 tcl_cv_type_64bit=none
8848 # See if the compiler knows natively about __int64
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851
8852 int
8853 main (void)
8854 {
8855 __int64 value = (__int64) 0;
8856 ;
8857 return 0;
8858 }
8859 _ACEOF
8860 if ac_fn_c_try_compile "$LINENO"
8861 then :
8862 tcl_type_64bit=__int64
8863 else case e in #(
8864 e) tcl_type_64bit="long long" ;;
8865 esac
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8868 # See if we could use long anyway Note that we substitute in the
8869 # type that is our current guess for a 64-bit type inside this check
8870 # program, so it should be modified only carefully...
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873
8874 int
8875 main (void)
8876 {
8877 switch (0) {
8878 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
8879 }
8880 ;
8881 return 0;
8882 }
8883 _ACEOF
8884 if ac_fn_c_try_compile "$LINENO"
8885 then :
8886 tcl_cv_type_64bit=${tcl_type_64bit}
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8889 esac
8890 fi
8891
8892 if test "${tcl_cv_type_64bit}" = none ; then
8893
8894 printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
8895
8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8897 printf "%s\n" "yes" >&6; }
8898 elif test "${tcl_cv_type_64bit}" = "__int64" \
8899 -a "${TEA_PLATFORM}" = "windows" ; then
8900 # TEA specific: We actually want to use the default tcl.h checks in
8901 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
8903 printf "%s\n" "using Tcl header defaults" >&6; }
8904 else
8905
8906 printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
8907
8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
8909 printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
8910
8911 # Now check for auxiliary declarations
8912 if test "${TCL_MAJOR_VERSION}" -ne 8 ; then
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t" >&5
8914 printf %s "checking for 64-bit time_t... " >&6; }
8915 if test ${tcl_cv_time_t_64+y}
8916 then :
8917 printf %s "(cached) " >&6
8918 else case e in #(
8919 e)
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 #include <sys/types.h>
8923 int
8924 main (void)
8925 {
8926 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
8927 ;
8928 return 0;
8929 }
8930 _ACEOF
8931 if ac_fn_c_try_compile "$LINENO"
8932 then :
8933 tcl_cv_time_t_64=yes
8934 else case e in #(
8935 e) tcl_cv_time_t_64=no ;;
8936 esac
8937 fi
8938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8939 esac
8940 fi
8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_time_t_64" >&5
8942 printf "%s\n" "$tcl_cv_time_t_64" >&6; }
8943 if test "x${tcl_cv_time_t_64}" = "xno" ; then
8944 # Note that _TIME_BITS=64 requires _FILE_OFFSET_BITS=64
8945 # which SC_TCL_EARLY_FLAGS has defined if necessary.
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _TIME_BITS=64 enables 64-bit time_t" >&5
8947 printf %s "checking if _TIME_BITS=64 enables 64-bit time_t... " >&6; }
8948 if test ${tcl_cv__time_bits+y}
8949 then :
8950 printf %s "(cached) " >&6
8951 else case e in #(
8952 e)
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 #define _TIME_BITS 64
8956 #include <sys/types.h>
8957 int
8958 main (void)
8959 {
8960 switch (0) {case 0: case (sizeof(time_t)==sizeof(long long)): ;}
8961 ;
8962 return 0;
8963 }
8964 _ACEOF
8965 if ac_fn_c_try_compile "$LINENO"
8966 then :
8967 tcl_cv__time_bits=yes
8968 else case e in #(
8969 e) tcl_cv__time_bits=no ;;
8970 esac
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8973 esac
8974 fi
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv__time_bits" >&5
8976 printf "%s\n" "$tcl_cv__time_bits" >&6; }
8977 if test "x${tcl_cv__time_bits}" = "xyes" ; then
8978
8979 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
8980
8981 fi
8982 fi
8983 fi
8984
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
8986 printf %s "checking for struct dirent64... " >&6; }
8987 if test ${tcl_cv_struct_dirent64+y}
8988 then :
8989 printf %s "(cached) " >&6
8990 else case e in #(
8991 e)
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 #include <sys/types.h>
8995 #include <dirent.h>
8996 int
8997 main (void)
8998 {
8999 struct dirent64 p;
9000 ;
9001 return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"
9005 then :
9006 tcl_cv_struct_dirent64=yes
9007 else case e in #(
9008 e) tcl_cv_struct_dirent64=no ;;
9009 esac
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9012 esac
9013 fi
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
9015 printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
9016 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
9017
9018 printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
9019
9020 fi
9021
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
9023 printf %s "checking for DIR64... " >&6; }
9024 if test ${tcl_cv_DIR64+y}
9025 then :
9026 printf %s "(cached) " >&6
9027 else case e in #(
9028 e)
9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9031 #include <sys/types.h>
9032 #include <dirent.h>
9033 int
9034 main (void)
9035 {
9036 struct dirent64 *p; DIR64 d = opendir64(".");
9037 p = readdir64(d); rewinddir64(d); closedir64(d);
9038 ;
9039 return 0;
9040 }
9041 _ACEOF
9042 if ac_fn_c_try_compile "$LINENO"
9043 then :
9044 tcl_cv_DIR64=yes
9045 else case e in #(
9046 e) tcl_cv_DIR64=no ;;
9047 esac
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9050 esac
9051 fi
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
9053 printf "%s\n" "$tcl_cv_DIR64" >&6; }
9054 if test "x${tcl_cv_DIR64}" = "xyes" ; then
9055
9056 printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
9057
9058 fi
9059
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
9061 printf %s "checking for struct stat64... " >&6; }
9062 if test ${tcl_cv_struct_stat64+y}
9063 then :
9064 printf %s "(cached) " >&6
9065 else case e in #(
9066 e)
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 #include <sys/stat.h>
9070 int
9071 main (void)
9072 {
9073 struct stat64 p;
9074
9075 ;
9076 return 0;
9077 }
9078 _ACEOF
9079 if ac_fn_c_try_compile "$LINENO"
9080 then :
9081 tcl_cv_struct_stat64=yes
9082 else case e in #(
9083 e) tcl_cv_struct_stat64=no ;;
9084 esac
9085 fi
9086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9087 esac
9088 fi
9089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
9090 printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
9091 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
9092
9093 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
9094
9095 fi
9096
9097 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
9098 if test "x$ac_cv_func_open64" = xyes
9099 then :
9100 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
9101
9102 fi
9103 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
9104 if test "x$ac_cv_func_lseek64" = xyes
9105 then :
9106 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
9107
9108 fi
9109
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
9111 printf %s "checking for off64_t... " >&6; }
9112 if test ${tcl_cv_type_off64_t+y}
9113 then :
9114 printf %s "(cached) " >&6
9115 else case e in #(
9116 e)
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 #include <sys/types.h>
9120 int
9121 main (void)
9122 {
9123 off64_t offset;
9124
9125 ;
9126 return 0;
9127 }
9128 _ACEOF
9129 if ac_fn_c_try_compile "$LINENO"
9130 then :
9131 tcl_cv_type_off64_t=yes
9132 else case e in #(
9133 e) tcl_cv_type_off64_t=no ;;
9134 esac
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9137 esac
9138 fi
9139
9140 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
9141 test "x${ac_cv_func_lseek64}" = "xyes" && \
9142 test "x${ac_cv_func_open64}" = "xyes" ; then
9143
9144 printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
9145
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9147 printf "%s\n" "yes" >&6; }
9148 else
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 printf "%s\n" "no" >&6; }
9151 fi
9152 fi
9153
9154
9155
9156 #--------------------------------------------------------------------
9157 # Set the default compiler switches based on the --enable-symbols option.
9158 #--------------------------------------------------------------------
9159
9160
9161
9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
9163 printf %s "checking for build with symbols... " >&6; }
9164 # Check whether --enable-symbols was given.
9165 if test ${enable_symbols+y}
9166 then :
9167 enableval=$enable_symbols; tcl_ok=$enableval
9168 else case e in #(
9169 e) tcl_ok=no ;;
9170 esac
9171 fi
9172
9173 if test "$tcl_ok" = "no"; then
9174 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
9175 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177 printf "%s\n" "no" >&6; }
9178
9179 printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
9180
9181 else
9182 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
9183 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
9184 if test "$tcl_ok" = "yes"; then
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
9186 printf "%s\n" "yes (standard debugging)" >&6; }
9187 fi
9188 fi
9189
9190
9191
9192 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
9193
9194 printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
9195
9196 fi
9197
9198 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
9199 if test "$tcl_ok" = "all"; then
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
9201 printf "%s\n" "enabled symbols mem debugging" >&6; }
9202 else
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
9204 printf "%s\n" "enabled $tcl_ok debugging" >&6; }
9205 fi
9206 fi
9207
9208
9209 #--------------------------------------------------------------------
9210 # For Unix/Tk builds, make sure that the X libraries/headers are found.
9211 # This must be called after TEA_CONFIG_CFLAGS as it adjusts LIBS.
9212 #--------------------------------------------------------------------
9213
9214 # See [Bug #82910]
9215 #TEA_PATH_X
9216
9217 #--------------------------------------------------------------------
9218 # Everyone should be linking against the Tcl stub library. If you
9219 # can't for some reason, remove this definition. If you aren't using
9220 # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
9221 # link against the non-stubbed Tcl library.
9222 #--------------------------------------------------------------------
9223
9224 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
9225
9226
9227 #--------------------------------------------------------------------
9228 # This macro generates a line to use when building a library. It
9229 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
9230 # and TEA_LOAD_TCLCONFIG macros above.
9231 #--------------------------------------------------------------------
9232
9233
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
9235 printf %s "checking for egrep -e... " >&6; }
9236 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
9237 then :
9238 printf %s "(cached) " >&6
9239 else case e in #(
9240 e) if test -z "$EGREP_TRADITIONAL"; then
9241 ac_path_EGREP_TRADITIONAL_found=false
9242 # Loop through the user's path and test for each of PROGNAME-LIST
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9245 do
9246 IFS=$as_save_IFS
9247 case $as_dir in #(((
9248 '') as_dir=./ ;;
9249 */) ;;
9250 *) as_dir=$as_dir/ ;;
9251 esac
9252 for ac_prog in grep ggrep
9253 do
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
9256 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
9257 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
9258 # Check for GNU $ac_path_EGREP_TRADITIONAL
9259 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
9260 *GNU*)
9261 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
9262 #(
9263 *)
9264 ac_count=0
9265 printf %s 0123456789 >"conftest.in"
9266 while :
9267 do
9268 cat "conftest.in" "conftest.in" >"conftest.tmp"
9269 mv "conftest.tmp" "conftest.in"
9270 cp "conftest.in" "conftest.nl"
9271 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
9272 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9274 as_fn_arith $ac_count + 1 && ac_count=$as_val
9275 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
9276 # Best one so far, save it but keep looking for a better one
9277 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
9278 ac_path_EGREP_TRADITIONAL_max=$ac_count
9279 fi
9280 # 10*(2^10) chars as input seems more than enough
9281 test $ac_count -gt 10 && break
9282 done
9283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9284 esac
9285
9286 $ac_path_EGREP_TRADITIONAL_found && break 3
9287 done
9288 done
9289 done
9290 IFS=$as_save_IFS
9291 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
9292 :
9293 fi
9294 else
9295 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
9296 fi
9297
9298 if test "$ac_cv_path_EGREP_TRADITIONAL"
9299 then :
9300 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
9301 else case e in #(
9302 e) if test -z "$EGREP_TRADITIONAL"; then
9303 ac_path_EGREP_TRADITIONAL_found=false
9304 # Loop through the user's path and test for each of PROGNAME-LIST
9305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9307 do
9308 IFS=$as_save_IFS
9309 case $as_dir in #(((
9310 '') as_dir=./ ;;
9311 */) ;;
9312 *) as_dir=$as_dir/ ;;
9313 esac
9314 for ac_prog in egrep
9315 do
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
9318 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
9319 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
9320 # Check for GNU $ac_path_EGREP_TRADITIONAL
9321 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
9322 *GNU*)
9323 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
9324 #(
9325 *)
9326 ac_count=0
9327 printf %s 0123456789 >"conftest.in"
9328 while :
9329 do
9330 cat "conftest.in" "conftest.in" >"conftest.tmp"
9331 mv "conftest.tmp" "conftest.in"
9332 cp "conftest.in" "conftest.nl"
9333 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
9334 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9336 as_fn_arith $ac_count + 1 && ac_count=$as_val
9337 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
9338 # Best one so far, save it but keep looking for a better one
9339 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
9340 ac_path_EGREP_TRADITIONAL_max=$ac_count
9341 fi
9342 # 10*(2^10) chars as input seems more than enough
9343 test $ac_count -gt 10 && break
9344 done
9345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9346 esac
9347
9348 $ac_path_EGREP_TRADITIONAL_found && break 3
9349 done
9350 done
9351 done
9352 IFS=$as_save_IFS
9353 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
9354 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9355 fi
9356 else
9357 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
9358 fi
9359 ;;
9360 esac
9361 fi ;;
9362 esac
9363 fi
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
9365 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
9366 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
9367
9368
9369 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
9370 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
9371 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374
9375 #if defined(_MSC_VER) && _MSC_VER >= 1400
9376 print("manifest needed")
9377 #endif
9378
9379 _ACEOF
9380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9381 $EGREP_TRADITIONAL "manifest needed" >/dev/null 2>&1
9382 then :
9383
9384 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
9385 VC_MANIFEST_EMBED_DLL="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;2 ; fi"
9386 VC_MANIFEST_EMBED_EXE="if test -f \[email protected] ; then mt.exe -nologo -manifest \[email protected] -outputresource:\$@\;1 ; fi"
9387 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
9388
9389 CLEANFILES="$CLEANFILES *.manifest"
9390
9391
9392 fi
9393 rm -rf conftest*
9394
9395 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
9396 else
9397 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
9398 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
9399 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
9400 fi
9401
9402 if test "${SHARED_BUILD}" = "1" ; then
9403 MAKE_LIB="${MAKE_SHARED_LIB} "
9404 else
9405 MAKE_LIB="${MAKE_STATIC_LIB} "
9406 fi
9407
9408 #--------------------------------------------------------------------
9409 # Shared libraries and static libraries have different names.
9410 # Use the double eval to make sure any variables in the suffix is
9411 # substituted. (@@@ Might not be necessary anymore)
9412 #--------------------------------------------------------------------
9413
9414 PACKAGE_LIB_PREFIX8="${PACKAGE_LIB_PREFIX}"
9415 PACKAGE_LIB_PREFIX9="${PACKAGE_LIB_PREFIX}tcl9"
9416 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9417 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}"
9418 else
9419 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}"
9420
9421 printf "%s\n" "#define TCL_MAJOR_VERSION 8" >>confdefs.h
9422
9423 fi
9424 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tk8}" != x; then
9425
9426 printf "%s\n" "#define TK_MAJOR_VERSION 8" >>confdefs.h
9427
9428 fi
9429 if test "${TEA_PLATFORM}" = "windows" ; then
9430 if test "${SHARED_BUILD}" = "1" ; then
9431 # We force the unresolved linking of symbols that are really in
9432 # the private libraries of Tcl and Tk.
9433 if test x"${TK_BIN_DIR}" != x ; then
9434 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
9435 fi
9436 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
9437 if test "$GCC" = "yes"; then
9438 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
9439 fi
9440 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9441 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9442 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9443 else
9444 if test "$GCC" = "yes"; then
9445 PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX}
9446 fi
9447 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9448 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9449 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9450 fi
9451 # Some packages build their own stubs libraries
9452 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9453 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
9454 else
9455 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9456 fi
9457 if test "$GCC" = "yes"; then
9458 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
9459 fi
9460 # These aren't needed on Windows (either MSVC or gcc)
9461 RANLIB=:
9462 RANLIB_STUB=:
9463 else
9464 RANLIB_STUB="${RANLIB}"
9465 if test "${SHARED_BUILD}" = "1" ; then
9466 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
9467 if test x"${TK_BIN_DIR}" != x ; then
9468 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
9469 fi
9470 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9471 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9472 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
9473 RANLIB=:
9474 else
9475 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9476 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9477 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
9478 fi
9479 # Some packages build their own stubs libraries
9480 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9481 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub.a"
9482 else
9483 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
9484 fi
9485 fi
9486
9487 # These are escaped so that only CFLAGS is picked up at configure time.
9488 # The other values will be substituted at make time.
9489 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
9490 if test "${SHARED_BUILD}" = "1" ; then
9491 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
9492 fi
9493
9494
9495
9496
9497
9498 # Substitute STUB_LIB_FILE in case package creates a stub library too.
9499
9500
9501
9502
9503
9504
9505 #--------------------------------------------------------------------
9506 # __CHANGE__
9507 # Add platform libs to LIBS or SHLIB_LD_LIBS as necessary.
9508 #--------------------------------------------------------------------
9509
9510 #--------------------------------------------------------------------
9511 # Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl
9512 # file during the install process. Don't run the TCLSH_PROG through
9513 # ${CYGPATH} because it's being used directly by make.
9514 # Require that we use a tclsh shell version 8.2 or later since earlier
9515 # versions have bugs in the pkg_mkIndex routine.
9516 # Add WISH as well if this is a Tk extension.
9517 #--------------------------------------------------------------------
9518
9519
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
9521 printf %s "checking for tclsh... " >&6; }
9522 if test -f "${TCL_BIN_DIR}/Makefile" ; then
9523 # tclConfig.sh is in Tcl build directory
9524 if test "${TEA_PLATFORM}" = "windows"; then
9525 if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then
9526 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
9527 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then
9528 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}"
9529 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then
9530 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}"
9531 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then
9532 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}"
9533 fi
9534 else
9535 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
9536 fi
9537 else
9538 # tclConfig.sh is in install location
9539 if test "${TEA_PLATFORM}" = "windows"; then
9540 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
9541 else
9542 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
9543 fi
9544 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
9545 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
9546 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
9547 for i in $list ; do
9548 if test -f "$i/${TCLSH_PROG}" ; then
9549 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
9550 break
9551 fi
9552 done
9553 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
9554 fi
9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
9556 printf "%s\n" "${TCLSH_PROG}" >&6; }
9557
9558
9559
9560 #--------------------------------------------------------------------
9561 # These are for jpegtclConfig.sh
9562 #--------------------------------------------------------------------
9563
9564 # pkglibdir must be a fully qualified path and (not ${exec_prefix}/lib)
9565 eval pkglibdir="${libdir}/jpegtcl${PACKAGE_VERSION}"
9566 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
9567 eval jpegtcl_LIB_FLAG="-ljpegtcl${PACKAGE_VERSION}"
9568 eval jpegtcl_STUB_LIB_FLAG="-ljpegtclstub${PACKAGE_VERSION}"
9569 else
9570 eval jpegtcl_LIB_FLAG="-ljpegtcl`echo ${PACKAGE_VERSION} | tr -d .`"
9571 eval jpegtcl_STUB_LIB_FLAG="-ljpegtclstub`echo ${PACKAGE_VERSION} | tr -d .`"
9572 fi
9573 if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" = x; then
9574 eval jpegtcl_STUB_LIB_FLAG="-ljpegtclstub"
9575 fi
9576
9577 jpegtcl_BUILD_LIB_SPEC="-L`$CYGPATH $(pwd)` ${jpegtcl_LIB_FLAG}"
9578 jpegtcl_LIB_SPEC="-L`$CYGPATH ${pkglibdir}` ${jpegtcl_LIB_FLAG}"
9579 jpegtcl_BUILD_STUB_LIB_SPEC="-L`$CYGPATH $(pwd)` ${jpegtcl_STUB_LIB_FLAG}"
9580 jpegtcl_STUB_LIB_SPEC="-L`$CYGPATH ${pkglibdir}` ${jpegtcl_STUB_LIB_FLAG}"
9581 jpegtcl_BUILD_STUB_LIB_PATH="`$CYGPATH $(pwd)`/${PKG_STUB_LIB_FILE}"
9582 jpegtcl_STUB_LIB_PATH="`$CYGPATH ${pkglibdir}`/${PKG_STUB_LIB_FILE}"
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596 #--------------------------------------------------------------------
9597 # Finally, substitute all of the various values into the Makefile.
9598 # You may alternatively have a special pkgIndex.tcl.in or other files
9599 # which require substituting th AC variables in. Include these here.
9600 #--------------------------------------------------------------------
9601
9602 ac_config_files="$ac_config_files Makefile jpegtclConfig.sh"
9603
9604 cat >confcache <<\_ACEOF
9605 # This file is a shell script that caches the results of configure
9606 # tests run on this system so they can be shared between configure
9607 # scripts and configure runs, see configure's option --config-cache.
9608 # It is not useful on other systems. If it contains results you don't
9609 # want to keep, you may remove or edit it.
9610 #
9611 # config.status only pays attention to the cache file if you give it
9612 # the --recheck option to rerun configure.
9613 #
9614 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
9615 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
9616 # following values.
9617
9618 _ACEOF
9619
9620 # The following way of writing the cache mishandles newlines in values,
9621 # but we know of no workaround that is simple, portable, and efficient.
9622 # So, we kill variables containing newlines.
9623 # Ultrix sh set writes to stderr and can't be redirected directly,
9624 # and sets the high bit in the cache file unless we assign to the vars.
9625 (
9626 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9627 eval ac_val=\$$ac_var
9628 case $ac_val in #(
9629 *${as_nl}*)
9630 case $ac_var in #(
9631 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9632 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9633 esac
9634 case $ac_var in #(
9635 _ | IFS | as_nl) ;; #(
9636 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9637 *) { eval $ac_var=; unset $ac_var;} ;;
9638 esac ;;
9639 esac
9640 done
9641
9642 (set) 2>&1 |
9643 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9644 *${as_nl}ac_space=\ *)
9645 # 'set' does not quote correctly, so add quotes: double-quote
9646 # substitution turns \\\\ into \\, and sed turns \\ into \.
9647 sed -n \
9648 "s/'/'\\\\''/g;
9649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9650 ;; #(
9651 *)
9652 # 'set' quotes correctly as required by POSIX, so do not add quotes.
9653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9654 ;;
9655 esac |
9656 sort
9657 ) |
9658 sed '
9659 /^ac_cv_env_/b end
9660 t clear
9661 :clear
9662 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9663 t end
9664 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9665 :end' >>confcache
9666 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9667 if test -w "$cache_file"; then
9668 if test "x$cache_file" != "x/dev/null"; then
9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9670 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9671 if test ! -f "$cache_file" || test -h "$cache_file"; then
9672 cat confcache >"$cache_file"
9673 else
9674 case $cache_file in #(
9675 */* | ?:*)
9676 mv -f confcache "$cache_file"$$ &&
9677 mv -f "$cache_file"$$ "$cache_file" ;; #(
9678 *)
9679 mv -f confcache "$cache_file" ;;
9680 esac
9681 fi
9682 fi
9683 else
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9685 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9686 fi
9687 fi
9688 rm -f confcache
9689
9690 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9691 # Let make expand exec_prefix.
9692 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9693
9694 # Transform confdefs.h into DEFS.
9695 # Protect against shell expansion while executing Makefile rules.
9696 # Protect against Makefile macro expansion.
9697 #
9698 # If the first sed substitution is executed (which looks for macros that
9699 # take arguments), then branch to the quote section. Otherwise,
9700 # look for a macro that doesn't take arguments.
9701 ac_script='
9702 :mline
9703 /\\$/{
9704 N
9705 s,\\\n,,
9706 b mline
9707 }
9708 t clear
9709 :clear
9710 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
9711 t quote
9712 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
9713 t quote
9714 b any
9715 :quote
9716 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
9717 s/\$/$$/g
9718 H
9719 :any
9720 ${
9721 g
9722 s/^\n//
9723 s/\n/ /g
9724 p
9725 }
9726 '
9727 DEFS=`sed -n "$ac_script" confdefs.h`
9728
9729
9730 ac_libobjs=
9731 ac_ltlibobjs=
9732 U=
9733 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9734 # 1. Remove the extension, and $U if already installed.
9735 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9736 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9738 # will be set to the directory where LIBOBJS objects are built.
9739 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9740 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9741 done
9742 LIBOBJS=$ac_libobjs
9743
9744 LTLIBOBJS=$ac_ltlibobjs
9745
9746
9747 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
9748
9749 : "${CONFIG_STATUS=./config.status}"
9750 ac_write_fail=0
9751 ac_clean_files_save=$ac_clean_files
9752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9754 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9755 as_write_fail=0
9756 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9757 #! $SHELL
9758 # Generated by $as_me.
9759 # Run this file to recreate the current configuration.
9760 # Compiler output produced by configure, useful for debugging
9761 # configure, is in config.log if it exists.
9762
9763 debug=false
9764 ac_cs_recheck=false
9765 ac_cs_silent=false
9766
9767 SHELL=\${CONFIG_SHELL-$SHELL}
9768 export SHELL
9769 _ASEOF
9770 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9771 ## -------------------- ##
9772 ## M4sh Initialization. ##
9773 ## -------------------- ##
9774
9775 # Be more Bourne compatible
9776 DUALCASE=1; export DUALCASE # for MKS sh
9777 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9778 then :
9779 emulate sh
9780 NULLCMD=:
9781 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9782 # is contrary to our usage. Disable this feature.
9783 alias -g '${1+"$@"}'='"$@"'
9784 setopt NO_GLOB_SUBST
9785 else case e in #(
9786 e) case `(set -o) 2>/dev/null` in #(
9787 *posix*) :
9788 set -o posix ;; #(
9789 *) :
9790 ;;
9791 esac ;;
9792 esac
9793 fi
9794
9795
9796
9797 # Reset variables that may have inherited troublesome values from
9798 # the environment.
9799
9800 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9801 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9802 # side effect of setting IFS to empty, thus disabling word splitting.)
9803 # Quoting is to prevent editors from complaining about space-tab.
9804 as_nl='
9805 '
9806 export as_nl
9807 IFS=" "" $as_nl"
9808
9809 PS1='$ '
9810 PS2='> '
9811 PS4='+ '
9812
9813 # Ensure predictable behavior from utilities with locale-dependent output.
9814 LC_ALL=C
9815 export LC_ALL
9816 LANGUAGE=C
9817 export LANGUAGE
9818
9819 # We cannot yet rely on "unset" to work, but we need these variables
9820 # to be unset--not just set to an empty or harmless value--now, to
9821 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9822 # also avoids known problems related to "unset" and subshell syntax
9823 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9824 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9825 do eval test \${$as_var+y} \
9826 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9827 done
9828
9829 # Ensure that fds 0, 1, and 2 are open.
9830 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9831 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9832 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9833
9834 # The user is always right.
9835 if ${PATH_SEPARATOR+false} :; then
9836 PATH_SEPARATOR=:
9837 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9838 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9839 PATH_SEPARATOR=';'
9840 }
9841 fi
9842
9843
9844 # Find who we are. Look in the path if we contain no directory separator.
9845 as_myself=
9846 case $0 in #((
9847 *[\\/]* ) as_myself=$0 ;;
9848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849 for as_dir in $PATH
9850 do
9851 IFS=$as_save_IFS
9852 case $as_dir in #(((
9853 '') as_dir=./ ;;
9854 */) ;;
9855 *) as_dir=$as_dir/ ;;
9856 esac
9857 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9858 done
9859 IFS=$as_save_IFS
9860
9861 ;;
9862 esac
9863 # We did not find ourselves, most probably we were run as 'sh COMMAND'
9864 # in which case we are not to be found in the path.
9865 if test "x$as_myself" = x; then
9866 as_myself=$0
9867 fi
9868 if test ! -f "$as_myself"; then
9869 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9870 exit 1
9871 fi
9872
9873
9874
9875 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9876 # ----------------------------------------
9877 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9878 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9879 # script with STATUS, using 1 if that was 0.
9880 as_fn_error ()
9881 {
9882 as_status=$1; test $as_status -eq 0 && as_status=1
9883 if test "$4"; then
9884 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9886 fi
9887 printf "%s\n" "$as_me: error: $2" >&2
9888 as_fn_exit $as_status
9889 } # as_fn_error
9890
9891
9892 # as_fn_set_status STATUS
9893 # -----------------------
9894 # Set $? to STATUS, without forking.
9895 as_fn_set_status ()
9896 {
9897 return $1
9898 } # as_fn_set_status
9899
9900 # as_fn_exit STATUS
9901 # -----------------
9902 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9903 as_fn_exit ()
9904 {
9905 set +e
9906 as_fn_set_status $1
9907 exit $1
9908 } # as_fn_exit
9909
9910 # as_fn_unset VAR
9911 # ---------------
9912 # Portably unset VAR.
9913 as_fn_unset ()
9914 {
9915 { eval $1=; unset $1;}
9916 }
9917 as_unset=as_fn_unset
9918
9919 # as_fn_append VAR VALUE
9920 # ----------------------
9921 # Append the text in VALUE to the end of the definition contained in VAR. Take
9922 # advantage of any shell optimizations that allow amortized linear growth over
9923 # repeated appends, instead of the typical quadratic growth present in naive
9924 # implementations.
9925 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9926 then :
9927 eval 'as_fn_append ()
9928 {
9929 eval $1+=\$2
9930 }'
9931 else case e in #(
9932 e) as_fn_append ()
9933 {
9934 eval $1=\$$1\$2
9935 } ;;
9936 esac
9937 fi # as_fn_append
9938
9939 # as_fn_arith ARG...
9940 # ------------------
9941 # Perform arithmetic evaluation on the ARGs, and store the result in the
9942 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9943 # must be portable across $(()) and expr.
9944 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9945 then :
9946 eval 'as_fn_arith ()
9947 {
9948 as_val=$(( $* ))
9949 }'
9950 else case e in #(
9951 e) as_fn_arith ()
9952 {
9953 as_val=`expr "$@" || test $? -eq 1`
9954 } ;;
9955 esac
9956 fi # as_fn_arith
9957
9958
9959 if expr a : '\(a\)' >/dev/null 2>&1 &&
9960 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9961 as_expr=expr
9962 else
9963 as_expr=false
9964 fi
9965
9966 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9967 as_basename=basename
9968 else
9969 as_basename=false
9970 fi
9971
9972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9973 as_dirname=dirname
9974 else
9975 as_dirname=false
9976 fi
9977
9978 as_me=`$as_basename -- "$0" ||
9979 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9980 X"$0" : 'X\(//\)$' \| \
9981 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9982 printf "%s\n" X/"$0" |
9983 sed '/^.*\/\([^/][^/]*\)\/*$/{
9984 s//\1/
9985 q
9986 }
9987 /^X\/\(\/\/\)$/{
9988 s//\1/
9989 q
9990 }
9991 /^X\/\(\/\).*/{
9992 s//\1/
9993 q
9994 }
9995 s/.*/./; q'`
9996
9997 # Avoid depending upon Character Ranges.
9998 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9999 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10000 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10001 as_cr_digits='0123456789'
10002 as_cr_alnum=$as_cr_Letters$as_cr_digits
10003
10004
10005 # Determine whether it's possible to make 'echo' print without a newline.
10006 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
10007 # for compatibility with existing Makefiles.
10008 ECHO_C= ECHO_N= ECHO_T=
10009 case `echo -n x` in #(((((
10010 -n*)
10011 case `echo 'xy\c'` in
10012 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10013 xy) ECHO_C='\c';;
10014 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10015 ECHO_T=' ';;
10016 esac;;
10017 *)
10018 ECHO_N='-n';;
10019 esac
10020
10021 # For backward compatibility with old third-party macros, we provide
10022 # the shell variables $as_echo and $as_echo_n. New code should use
10023 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
10024 as_echo='printf %s\n'
10025 as_echo_n='printf %s'
10026
10027 rm -f conf$$ conf$$.exe conf$$.file
10028 if test -d conf$$.dir; then
10029 rm -f conf$$.dir/conf$$.file
10030 else
10031 rm -f conf$$.dir
10032 mkdir conf$$.dir 2>/dev/null
10033 fi
10034 if (echo >conf$$.file) 2>/dev/null; then
10035 if ln -s conf$$.file conf$$ 2>/dev/null; then
10036 as_ln_s='ln -s'
10037 # ... but there are two gotchas:
10038 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
10039 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
10040 # In both cases, we have to default to 'cp -pR'.
10041 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10042 as_ln_s='cp -pR'
10043 elif ln conf$$.file conf$$ 2>/dev/null; then
10044 as_ln_s=ln
10045 else
10046 as_ln_s='cp -pR'
10047 fi
10048 else
10049 as_ln_s='cp -pR'
10050 fi
10051 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10052 rmdir conf$$.dir 2>/dev/null
10053
10054
10055 # as_fn_mkdir_p
10056 # -------------
10057 # Create "$as_dir" as a directory, including parents if necessary.
10058 as_fn_mkdir_p ()
10059 {
10060
10061 case $as_dir in #(
10062 -*) as_dir=./$as_dir;;
10063 esac
10064 test -d "$as_dir" || eval $as_mkdir_p || {
10065 as_dirs=
10066 while :; do
10067 case $as_dir in #(
10068 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10069 *) as_qdir=$as_dir;;
10070 esac
10071 as_dirs="'$as_qdir' $as_dirs"
10072 as_dir=`$as_dirname -- "$as_dir" ||
10073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10074 X"$as_dir" : 'X\(//\)[^/]' \| \
10075 X"$as_dir" : 'X\(//\)$' \| \
10076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10077 printf "%s\n" X"$as_dir" |
10078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10079 s//\1/
10080 q
10081 }
10082 /^X\(\/\/\)[^/].*/{
10083 s//\1/
10084 q
10085 }
10086 /^X\(\/\/\)$/{
10087 s//\1/
10088 q
10089 }
10090 /^X\(\/\).*/{
10091 s//\1/
10092 q
10093 }
10094 s/.*/./; q'`
10095 test -d "$as_dir" && break
10096 done
10097 test -z "$as_dirs" || eval "mkdir $as_dirs"
10098 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10099
10100
10101 } # as_fn_mkdir_p
10102 if mkdir -p . 2>/dev/null; then
10103 as_mkdir_p='mkdir -p "$as_dir"'
10104 else
10105 test -d ./-p && rmdir ./-p
10106 as_mkdir_p=false
10107 fi
10108
10109
10110 # as_fn_executable_p FILE
10111 # -----------------------
10112 # Test if FILE is an executable regular file.
10113 as_fn_executable_p ()
10114 {
10115 test -f "$1" && test -x "$1"
10116 } # as_fn_executable_p
10117 as_test_x='test -x'
10118 as_executable_p=as_fn_executable_p
10119
10120 # Sed expression to map a string onto a valid CPP name.
10121 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10122 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
10123
10124 # Sed expression to map a string onto a valid variable name.
10125 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10126 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
10127
10128
10129 exec 6>&1
10130 ## ----------------------------------- ##
10131 ## Main body of $CONFIG_STATUS script. ##
10132 ## ----------------------------------- ##
10133 _ASEOF
10134 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10135
10136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10137 # Save the log message, to keep $0 and so on meaningful, and to
10138 # report actual input values of CONFIG_FILES etc. instead of their
10139 # values after options handling.
10140 ac_log="
10141 This file was extended by jpegtcl $as_me 10.0.0, which was
10142 generated by GNU Autoconf 2.72. Invocation command line was
10143
10144 CONFIG_FILES = $CONFIG_FILES
10145 CONFIG_HEADERS = $CONFIG_HEADERS
10146 CONFIG_LINKS = $CONFIG_LINKS
10147 CONFIG_COMMANDS = $CONFIG_COMMANDS
10148 $ $0 $@
10149
10150 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10151 "
10152
10153 _ACEOF
10154
10155 case $ac_config_files in *"
10156 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10157 esac
10158
10159
10160
10161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10162 # Files that config.status was made for.
10163 config_files="$ac_config_files"
10164
10165 _ACEOF
10166
10167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10168 ac_cs_usage="\
10169 '$as_me' instantiates files and other configuration actions
10170 from templates according to the current configuration. Unless the files
10171 and actions are specified as TAGs, all are instantiated by default.
10172
10173 Usage: $0 [OPTION]... [TAG]...
10174
10175 -h, --help print this help, then exit
10176 -V, --version print version number and configuration settings, then exit
10177 --config print configuration, then exit
10178 -q, --quiet, --silent
10179 do not print progress messages
10180 -d, --debug don't remove temporary files
10181 --recheck update $as_me by reconfiguring in the same conditions
10182 --file=FILE[:TEMPLATE]
10183 instantiate the configuration file FILE
10184
10185 Configuration files:
10186 $config_files
10187
10188 Report bugs to the package provider."
10189
10190 _ACEOF
10191 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
10192 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
10193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10194 ac_cs_config='$ac_cs_config_escaped'
10195 ac_cs_version="\\
10196 jpegtcl config.status 10.0.0
10197 configured by $0, generated by GNU Autoconf 2.72,
10198 with options \\"\$ac_cs_config\\"
10199
10200 Copyright (C) 2023 Free Software Foundation, Inc.
10201 This config.status script is free software; the Free Software Foundation
10202 gives unlimited permission to copy, distribute and modify it."
10203
10204 ac_pwd='$ac_pwd'
10205 srcdir='$srcdir'
10206 test -n "\$AWK" || AWK=awk
10207 _ACEOF
10208
10209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10210 # The default lists apply if the user does not specify any file.
10211 ac_need_defaults=:
10212 while test $# != 0
10213 do
10214 case $1 in
10215 --*=?*)
10216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10217 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10218 ac_shift=:
10219 ;;
10220 --*=)
10221 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10222 ac_optarg=
10223 ac_shift=:
10224 ;;
10225 *)
10226 ac_option=$1
10227 ac_optarg=$2
10228 ac_shift=shift
10229 ;;
10230 esac
10231
10232 case $ac_option in
10233 # Handling of the options.
10234 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10235 ac_cs_recheck=: ;;
10236 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10237 printf "%s\n" "$ac_cs_version"; exit ;;
10238 --config | --confi | --conf | --con | --co | --c )
10239 printf "%s\n" "$ac_cs_config"; exit ;;
10240 --debug | --debu | --deb | --de | --d | -d )
10241 debug=: ;;
10242 --file | --fil | --fi | --f )
10243 $ac_shift
10244 case $ac_optarg in
10245 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10246 '') as_fn_error $? "missing file argument" ;;
10247 esac
10248 as_fn_append CONFIG_FILES " '$ac_optarg'"
10249 ac_need_defaults=false;;
10250 --he | --h | --help | --hel | -h )
10251 printf "%s\n" "$ac_cs_usage"; exit ;;
10252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10253 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10254 ac_cs_silent=: ;;
10255
10256 # This is an error.
10257 -*) as_fn_error $? "unrecognized option: '$1'
10258 Try '$0 --help' for more information." ;;
10259
10260 *) as_fn_append ac_config_targets " $1"
10261 ac_need_defaults=false ;;
10262
10263 esac
10264 shift
10265 done
10266
10267 ac_configure_extra_args=
10268
10269 if $ac_cs_silent; then
10270 exec 6>/dev/null
10271 ac_configure_extra_args="$ac_configure_extra_args --silent"
10272 fi
10273
10274 _ACEOF
10275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10276 if \$ac_cs_recheck; then
10277 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10278 shift
10279 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10280 CONFIG_SHELL='$SHELL'
10281 export CONFIG_SHELL
10282 exec "\$@"
10283 fi
10284
10285 _ACEOF
10286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10287 exec 5>>config.log
10288 {
10289 echo
10290 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10291 ## Running $as_me. ##
10292 _ASBOX
10293 printf "%s\n" "$ac_log"
10294 } >&5
10295
10296 _ACEOF
10297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10298 _ACEOF
10299
10300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10301
10302 # Handling of arguments.
10303 for ac_config_target in $ac_config_targets
10304 do
10305 case $ac_config_target in
10306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10307 "jpegtclConfig.sh") CONFIG_FILES="$CONFIG_FILES jpegtclConfig.sh" ;;
10308
10309 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
10310 esac
10311 done
10312
10313
10314 # If the user did not use the arguments to specify the items to instantiate,
10315 # then the envvar interface is used. Set only those that are not.
10316 # We use the long form for the default assignment because of an extremely
10317 # bizarre bug on SunOS 4.1.3.
10318 if $ac_need_defaults; then
10319 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10320 fi
10321
10322 # Have a temporary directory for convenience. Make it in the build tree
10323 # simply because there is no reason against having it here, and in addition,
10324 # creating and moving files from /tmp can sometimes cause problems.
10325 # Hook for its removal unless debugging.
10326 # Note that there is a small window in which the directory will not be cleaned:
10327 # after its creation but before its name has been assigned to '$tmp'.
10328 $debug ||
10329 {
10330 tmp= ac_tmp=
10331 trap 'exit_status=$?
10332 : "${ac_tmp:=$tmp}"
10333 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10334 ' 0
10335 trap 'as_fn_exit 1' 1 2 13 15
10336 }
10337 # Create a (secure) tmp directory for tmp files.
10338
10339 {
10340 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10341 test -d "$tmp"
10342 } ||
10343 {
10344 tmp=./conf$$-$RANDOM
10345 (umask 077 && mkdir "$tmp")
10346 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10347 ac_tmp=$tmp
10348
10349 # Set up the scripts for CONFIG_FILES section.
10350 # No need to generate them if there are no CONFIG_FILES.
10351 # This happens for instance with './config.status config.h'.
10352 if test -n "$CONFIG_FILES"; then
10353
10354
10355 ac_cr=`echo X | tr X '\015'`
10356 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10357 # But we know of no other shell where ac_cr would be empty at this
10358 # point, so we can use a bashism as a fallback.
10359 if test "x$ac_cr" = x; then
10360 eval ac_cr=\$\'\\r\'
10361 fi
10362 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10363 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10364 ac_cs_awk_cr='\\r'
10365 else
10366 ac_cs_awk_cr=$ac_cr
10367 fi
10368
10369 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10370 _ACEOF
10371
10372
10373 {
10374 echo "cat >conf$$subs.awk <<_ACEOF" &&
10375 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10376 echo "_ACEOF"
10377 } >conf$$subs.sh ||
10378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10379 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10380 ac_delim='%!_!# '
10381 for ac_last_try in false false false false false :; do
10382 . ./conf$$subs.sh ||
10383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10384
10385 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10386 if test $ac_delim_n = $ac_delim_num; then
10387 break
10388 elif $ac_last_try; then
10389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10390 else
10391 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10392 fi
10393 done
10394 rm -f conf$$subs.sh
10395
10396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10397 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10398 _ACEOF
10399 sed -n '
10400 h
10401 s/^/S["/; s/!.*/"]=/
10402 p
10403 g
10404 s/^[^!]*!//
10405 :repl
10406 t repl
10407 s/'"$ac_delim"'$//
10408 t delim
10409 :nl
10410 h
10411 s/\(.\{148\}\)..*/\1/
10412 t more1
10413 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10414 p
10415 n
10416 b repl
10417 :more1
10418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10419 p
10420 g
10421 s/.\{148\}//
10422 t nl
10423 :delim
10424 h
10425 s/\(.\{148\}\)..*/\1/
10426 t more2
10427 s/["\\]/\\&/g; s/^/"/; s/$/"/
10428 p
10429 b
10430 :more2
10431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10432 p
10433 g
10434 s/.\{148\}//
10435 t delim
10436 ' <conf$$subs.awk | sed '
10437 /^[^""]/{
10438 N
10439 s/\n//
10440 }
10441 ' >>$CONFIG_STATUS || ac_write_fail=1
10442 rm -f conf$$subs.awk
10443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10444 _ACAWK
10445 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10446 for (key in S) S_is_set[key] = 1
10447 FS = ""
10448
10449 }
10450 {
10451 line = $ 0
10452 nfields = split(line, field, "@")
10453 substed = 0
10454 len = length(field[1])
10455 for (i = 2; i < nfields; i++) {
10456 key = field[i]
10457 keylen = length(key)
10458 if (S_is_set[key]) {
10459 value = S[key]
10460 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10461 len += length(value) + length(field[++i])
10462 substed = 1
10463 } else
10464 len += 1 + keylen
10465 }
10466
10467 print line
10468 }
10469
10470 _ACAWK
10471 _ACEOF
10472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10473 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10474 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10475 else
10476 cat
10477 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10478 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10479 _ACEOF
10480
10481 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10482 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10483 # trailing colons and then remove the whole line if VPATH becomes empty
10484 # (actually we leave an empty line to preserve line numbers).
10485 if test "x$srcdir" = x.; then
10486 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10487 h
10488 s///
10489 s/^/:/
10490 s/[ ]*$/:/
10491 s/:\$(srcdir):/:/g
10492 s/:\${srcdir}:/:/g
10493 s/:@srcdir@:/:/g
10494 s/^:*//
10495 s/:*$//
10496 x
10497 s/\(=[ ]*\).*/\1/
10498 G
10499 s/\n//
10500 s/^[^=]*=[ ]*$//
10501 }'
10502 fi
10503
10504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10505 fi # test -n "$CONFIG_FILES"
10506
10507
10508 eval set X " :F $CONFIG_FILES "
10509 shift
10510 for ac_tag
10511 do
10512 case $ac_tag in
10513 :[FHLC]) ac_mode=$ac_tag; continue;;
10514 esac
10515 case $ac_mode$ac_tag in
10516 :[FHL]*:*);;
10517 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
10518 :[FH]-) ac_tag=-:-;;
10519 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10520 esac
10521 ac_save_IFS=$IFS
10522 IFS=:
10523 set x $ac_tag
10524 IFS=$ac_save_IFS
10525 shift
10526 ac_file=$1
10527 shift
10528
10529 case $ac_mode in
10530 :L) ac_source=$1;;
10531 :[FH])
10532 ac_file_inputs=
10533 for ac_f
10534 do
10535 case $ac_f in
10536 -) ac_f="$ac_tmp/stdin";;
10537 *) # Look for the file first in the build tree, then in the source tree
10538 # (if the path is not absolute). The absolute path cannot be DOS-style,
10539 # because $ac_f cannot contain ':'.
10540 test -f "$ac_f" ||
10541 case $ac_f in
10542 [\\/$]*) false;;
10543 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10544 esac ||
10545 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
10546 esac
10547 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10548 as_fn_append ac_file_inputs " '$ac_f'"
10549 done
10550
10551 # Let's still pretend it is 'configure' which instantiates (i.e., don't
10552 # use $as_me), people would be surprised to read:
10553 # /* config.h. Generated by config.status. */
10554 configure_input='Generated from '`
10555 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10556 `' by configure.'
10557 if test x"$ac_file" != x-; then
10558 configure_input="$ac_file. $configure_input"
10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10560 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10561 fi
10562 # Neutralize special characters interpreted by sed in replacement strings.
10563 case $configure_input in #(
10564 *\&* | *\|* | *\\* )
10565 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10566 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10567 *) ac_sed_conf_input=$configure_input;;
10568 esac
10569
10570 case $ac_tag in
10571 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10572 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10573 esac
10574 ;;
10575 esac
10576
10577 ac_dir=`$as_dirname -- "$ac_file" ||
10578 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10579 X"$ac_file" : 'X\(//\)[^/]' \| \
10580 X"$ac_file" : 'X\(//\)$' \| \
10581 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10582 printf "%s\n" X"$ac_file" |
10583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10584 s//\1/
10585 q
10586 }
10587 /^X\(\/\/\)[^/].*/{
10588 s//\1/
10589 q
10590 }
10591 /^X\(\/\/\)$/{
10592 s//\1/
10593 q
10594 }
10595 /^X\(\/\).*/{
10596 s//\1/
10597 q
10598 }
10599 s/.*/./; q'`
10600 as_dir="$ac_dir"; as_fn_mkdir_p
10601 ac_builddir=.
10602
10603 case "$ac_dir" in
10604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10605 *)
10606 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10607 # A ".." for each directory in $ac_dir_suffix.
10608 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10609 case $ac_top_builddir_sub in
10610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10612 esac ;;
10613 esac
10614 ac_abs_top_builddir=$ac_pwd
10615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10616 # for backward compatibility:
10617 ac_top_builddir=$ac_top_build_prefix
10618
10619 case $srcdir in
10620 .) # We are building in place.
10621 ac_srcdir=.
10622 ac_top_srcdir=$ac_top_builddir_sub
10623 ac_abs_top_srcdir=$ac_pwd ;;
10624 [\\/]* | ?:[\\/]* ) # Absolute name.
10625 ac_srcdir=$srcdir$ac_dir_suffix;
10626 ac_top_srcdir=$srcdir
10627 ac_abs_top_srcdir=$srcdir ;;
10628 *) # Relative name.
10629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10630 ac_top_srcdir=$ac_top_build_prefix$srcdir
10631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10632 esac
10633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10634
10635
10636 case $ac_mode in
10637 :F)
10638 #
10639 # CONFIG_FILE
10640 #
10641
10642 _ACEOF
10643
10644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10645 # If the template does not know about datarootdir, expand it.
10646 # FIXME: This hack should be removed a few years after 2.60.
10647 ac_datarootdir_hack=; ac_datarootdir_seen=
10648 ac_sed_dataroot='
10649 /datarootdir/ {
10650 p
10651 q
10652 }
10653 /@datadir@/p
10654 /@docdir@/p
10655 /@infodir@/p
10656 /@localedir@/p
10657 /@mandir@/p'
10658 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10659 *datarootdir*) ac_datarootdir_seen=yes;;
10660 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10662 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10663 _ACEOF
10664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10665 ac_datarootdir_hack='
10666 s&@datadir@&$datadir&g
10667 s&@docdir@&$docdir&g
10668 s&@infodir@&$infodir&g
10669 s&@localedir@&$localedir&g
10670 s&@mandir@&$mandir&g
10671 s&\\\${datarootdir}&$datarootdir&g' ;;
10672 esac
10673 _ACEOF
10674
10675 # Neutralize VPATH when '$srcdir' = '.'.
10676 # Shell code in configure.ac might set extrasub.
10677 # FIXME: do we really want to maintain this feature?
10678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10679 ac_sed_extra="$ac_vpsub
10680 $extrasub
10681 _ACEOF
10682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10683 :t
10684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10685 s|@configure_input@|$ac_sed_conf_input|;t t
10686 s&@top_builddir@&$ac_top_builddir_sub&;t t
10687 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10688 s&@srcdir@&$ac_srcdir&;t t
10689 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10690 s&@top_srcdir@&$ac_top_srcdir&;t t
10691 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10692 s&@builddir@&$ac_builddir&;t t
10693 s&@abs_builddir@&$ac_abs_builddir&;t t
10694 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10695 $ac_datarootdir_hack
10696 "
10697 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10698 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10699
10700 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10701 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10703 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10705 which seems to be undefined. Please make sure it is defined" >&5
10706 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
10707 which seems to be undefined. Please make sure it is defined" >&2;}
10708
10709 rm -f "$ac_tmp/stdin"
10710 case $ac_file in
10711 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10712 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10713 esac \
10714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10715 ;;
10716
10717
10718
10719 esac
10720
10721 done # for ac_tag
10722
10723
10724 as_fn_exit 0
10725 _ACEOF
10726 ac_clean_files=$ac_clean_files_save
10727
10728 test $ac_write_fail = 0 ||
10729 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10730
10731
10732 # configure is writing to config.log, and then calls config.status.
10733 # config.status does its own redirection, appending to config.log.
10734 # Unfortunately, on DOS this fails, as config.log is still kept open
10735 # by configure, so config.status won't be able to write to it; its
10736 # output is simply discarded. So we exec the FD to /dev/null,
10737 # effectively closing config.log, so it can be properly (re)opened and
10738 # appended to by config.status. When coming back to configure, we
10739 # need to make the FD available again.
10740 if test "$no_create" != yes; then
10741 ac_cs_success=:
10742 ac_config_status_args=
10743 test "$silent" = yes &&
10744 ac_config_status_args="$ac_config_status_args --quiet"
10745 exec 5>/dev/null
10746 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10747 exec 5>>config.log
10748 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10749 # would make configure fail if this is the last instruction.
10750 $ac_cs_success || as_fn_exit 1
10751 fi
10752 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10754 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10755 fi
10756
10757
10758 #--------------------------------------------------------------------
10759