Debian Codegraph @

lib/configure

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