2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for sqlite 3.44.0.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
38 # Reset variables that may have inherited troublesome values from
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
54 # Ensure predictable behavior from utilities with locale-dependent output.
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 *v*x* | *x*v* ) as_opts=-vx ;;
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
203 *) as_dir=$as_dir/ ;;
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 CONFIG_SHELL=$SHELL as_have_required=yes
237 if test "x$CONFIG_SHELL" != x
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
277 SHELL=${CONFIG_SHELL-/bin/sh}
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
288 # Portably unset VAR.
291 { eval $1=; unset $1;}
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 # Do nothing but, unlike ":", preserve the value of $?.
324 # Create "$as_dir" as a directory, including parents if necessary.
329 -*) as_dir=./$as_dir;;
331 test -d "$as_dir" || eval $as_mkdir_p || {
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
362 test -d "$as_dir" && break
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
385 eval 'as_fn_append ()
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
410 as_val=`expr "$@" || test $? -eq 1`
416 # Do nothing but, unlike ":", preserve the value of $?.
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
430 as_status=$1; test $as_status -eq 0 && as_status=1
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
516 # Exit status is that of the last command.
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
549 mkdir conf$$.dir 2>/dev/null
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
560 elif ln conf$$.file conf$$ 2>/dev/null; then
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
574 test -d ./-p && rmdir ./-p
579 as_executable_p=as_fn_executable_p
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588 test -n "$DJDIR" || exec 7<&0 </dev/null
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599 ac_default_prefix=/usr/local
601 ac_config_libobj_dir=.
608 # Identity of this package.
609 PACKAGE_NAME='sqlite'
610 PACKAGE_TARNAME='sqlite'
611 PACKAGE_VERSION='3.44.0'
612 PACKAGE_STRING='sqlite 3.44.0'
616 # Factoring default headers for most tests.
617 ac_includes_default="\
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
637 #ifdef HAVE_SYS_TYPES_H
638 # include <sys/types.h>
640 #ifdef HAVE_SYS_STAT_H
641 # include <sys/stat.h>
648 ac_subst_vars='LTLIBOBJS
650 VC_MANIFEST_EMBED_EXE
651 VC_MANIFEST_EMBED_DLL
752 program_transform_name
765 enable_option_checking
777 ac_precious_vars='build_alias
788 # Initialize some variables set by options.
790 ac_init_version=false
791 ac_unrecognized_opts=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
802 program_transform_name=s,x,x,
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 runstatedir='${localstatedir}/run'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 case $ac_dashdash$ac_option in
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
876 cache_file=config.cache ;;
878 -datadir | --datadir | --datadi | --datad)
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: \`$ac_useropt'"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
904 eval enable_$ac_useropt=no ;;
906 -docdir | --docdir | --docdi | --doc | --do)
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: \`$ac_useropt'"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
930 eval enable_$ac_useropt=\$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
945 -help | --help | --hel | --he | -h)
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 htmldir=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1075 -runstatedir | --runstatedir | --runstatedi | --runstated \
1076 | --runstate | --runstat | --runsta | --runst | --runs \
1077 | --run | --ru | --r)
1078 ac_prev=runstatedir ;;
1079 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1080 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1081 | --run=* | --ru=* | --r=*)
1082 runstatedir=$ac_optarg ;;
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 sbindir=$ac_optarg ;;
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 sharedstatedir=$ac_optarg ;;
1101 -site | --site | --sit)
1103 -site=* | --site=* | --sit=*)
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: \`$ac_useropt'"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval with_$ac_useropt=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: \`$ac_useropt'"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1159 eval with_$ac_useropt=no ;;
1162 # Obsolete; use --with-x.
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir runstatedir
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1230 # Be sure to have absolute directory names.
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1243 target=$target_alias
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257 test "$silent" = yes && exec 6>/dev/null
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 printf "%s\n" X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures sqlite 3.44.0 to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1375 --libdir=DIR object code libraries [EPREFIX/lib]
1376 --includedir=DIR C header files [PREFIX/include]
1377 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1380 --infodir=DIR info documentation [DATAROOTDIR/info]
1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1382 --mandir=DIR man documentation [DATAROOTDIR/man]
1383 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1384 --htmldir=DIR html documentation [DOCDIR]
1385 --dvidir=DIR dvi documentation [DOCDIR]
1386 --pdfdir=DIR pdf documentation [DOCDIR]
1387 --psdir=DIR ps documentation [DOCDIR]
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of sqlite 3.44.0:";;
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-threads build with threads (default: on)
1405 --enable-shared build and link with shared libraries (default: on)
1406 --enable-stubs build and link with stub libraries. Always true for
1407 shared builds (default: on)
1408 --enable-64bit enable 64bit support (default: off)
1409 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
1410 --disable-rpath disable rpath support (default: on)
1411 --enable-symbols build with debugging symbols (default: off)
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-tcl directory containing tcl configuration
1418 --with-system-sqlite use a system-supplied libsqlite3 instead of the
1420 --with-tclinclude directory containing the public Tcl header files
1422 Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1435 Report bugs to the package provider.
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1465 .) # We are building in place.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for configure.gnu first; this name is used for a wrapper for
1482 # Metaconfig's "Configure" on case-insensitive file systems.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1490 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1499 sqlite configure 3.44.0
1500 generated by GNU Autoconf 2.71
1502 Copyright (C) 2021 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1509 ## ------------------------ ##
1510 ## Autoconf initialization. ##
1511 ## ------------------------ ##
1513 # ac_fn_c_try_compile LINENO
1514 # --------------------------
1515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_compile ()
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext conftest.beam
1520 if { { ac_try="$ac_compile"
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 printf "%s\n" "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.$ac_objext
1542 printf "%s\n" "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1550 } # ac_fn_c_try_compile
1552 # ac_fn_c_try_cpp LINENO
1553 # ----------------------
1554 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 if { { ac_try="$ac_cpp conftest.$ac_ext"
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 printf "%s\n" "$ac_try_echo"; } >&5
1565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } > conftest.i && {
1574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1580 printf "%s\n" "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1590 # ac_fn_c_try_run LINENO
1591 # ----------------------
1592 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1593 # executables *can* be run.
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_link"
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 printf "%s\n" "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>&5
1606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1608 { { case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 printf "%s\n" "$ac_try_echo"; } >&5
1614 (eval "$ac_try") 2>&5
1616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; }; }
1621 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1622 printf "%s\n" "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1625 ac_retval=$ac_status
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1633 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists and can be compiled using the include files in
1636 # INCLUDES, setting the cache variable VAR accordingly.
1637 ac_fn_c_check_header_compile ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 printf %s "checking for $2... " >&6; }
1642 if eval test \${$3+y}
1644 printf %s "(cached) " >&6
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1651 if ac_fn_c_try_compile "$LINENO"
1657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 printf "%s\n" "$ac_res" >&6; }
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 } # ac_fn_c_check_header_compile
1666 # ac_fn_c_try_link LINENO
1667 # -----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1673 if { { ac_try="$ac_link"
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 printf "%s\n" "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>conftest.err
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && {
1689 test -z "$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 } && test -s conftest$ac_exeext && {
1692 test "$cross_compiling" = yes ||
1693 test -x conftest$ac_exeext
1698 printf "%s\n" "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_link
1713 # ac_fn_c_check_func LINENO FUNC VAR
1714 # ----------------------------------
1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1716 ac_fn_c_check_func ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 printf %s "checking for $2... " >&6; }
1721 if eval test \${$3+y}
1723 printf %s "(cached) " >&6
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1729 #define $2 innocuous_$2
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $2 (); below. */
1737 /* Override any GCC internal prototype to avoid an error.
1738 Use char because int might match the return type of a GCC
1739 builtin and then its argument prototype would still apply. */
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined __stub_$2 || defined __stub___$2
1759 if ac_fn_c_try_link "$LINENO"
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1766 conftest$ac_exeext conftest.$ac_ext
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 printf "%s\n" "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 } # ac_fn_c_check_func
1774 ac_configure_args_raw=
1779 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 as_fn_append ac_configure_args_raw " '$ac_arg'"
1784 case $ac_configure_args_raw in
1788 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1789 ac_unsafe_a="$ac_unsafe_z#~"
1790 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1791 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1794 cat >config.log <<_ACEOF
1795 This file contains any messages produced by compilers while
1796 running configure, to aid debugging if configure makes a mistake.
1798 It was created by sqlite $as_me 3.44.0, which was
1799 generated by GNU Autoconf 2.71. Invocation command line was
1801 $ $0$ac_configure_args_raw
1811 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1812 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1813 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1814 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1815 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1817 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1818 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1820 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1821 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1822 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1823 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1824 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1825 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1826 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 case $as_dir in #(((
1837 *) as_dir=$as_dir/ ;;
1839 printf "%s\n" "PATH: $as_dir"
1855 # Keep a trace of the command line.
1856 # Strip out --no-create and --no-recursion so they do not pile up.
1857 # Strip out --silent because we don't want to record it for future runs.
1858 # Also quote any args containing shell meta-characters.
1859 # Make two passes to allow for proper duplicate-argument suppression.
1863 ac_must_keep_next=false
1869 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1871 | -silent | --silent | --silen | --sile | --sil)
1874 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1877 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1879 as_fn_append ac_configure_args1 " '$ac_arg'"
1880 if test $ac_must_keep_next = true; then
1881 ac_must_keep_next=false # Got value, back to normal.
1884 *=* | --config-cache | -C | -disable-* | --disable-* \
1885 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1886 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1887 | -with-* | --with-* | -without-* | --without-* | --x)
1888 case "$ac_configure_args0 " in
1889 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1892 -* ) ac_must_keep_next=true ;;
1895 as_fn_append ac_configure_args " '$ac_arg'"
1900 { ac_configure_args0=; unset ac_configure_args0;}
1901 { ac_configure_args1=; unset ac_configure_args1;}
1903 # When interrupted or exit'd, cleanup temporary files, and complete
1904 # config.log. We remove comments because anyway the quotes in there
1905 # would cause problems or look ugly.
1906 # WARNING: Use '\'' to represent an apostrophe within the trap.
1907 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1908 trap 'exit_status=$?
1911 # Save into config.log some information that might help in debugging.
1915 printf "%s\n" "## ---------------- ##
1916 ## Cache variables. ##
1917 ## ---------------- ##"
1919 # The following way of writing the cache mishandles newlines in values,
1921 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1922 eval ac_val=\$$ac_var
1926 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1927 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1930 _ | IFS | as_nl) ;; #(
1931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1932 *) { eval $ac_var=; unset $ac_var;} ;;
1937 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1938 *${as_nl}ac_space=\ *)
1940 "s/'\''/'\''\\\\'\'''\''/g;
1941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 printf "%s\n" "## ----------------- ##
1952 ## Output variables. ##
1953 ## ----------------- ##"
1955 for ac_var in $ac_subst_vars
1957 eval ac_val=\$$ac_var
1959 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961 printf "%s\n" "$ac_var='\''$ac_val'\''"
1965 if test -n "$ac_subst_files"; then
1966 printf "%s\n" "## ------------------- ##
1967 ## File substitutions. ##
1968 ## ------------------- ##"
1970 for ac_var in $ac_subst_files
1972 eval ac_val=\$$ac_var
1974 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 printf "%s\n" "$ac_var='\''$ac_val'\''"
1981 if test -s confdefs.h; then
1982 printf "%s\n" "## ----------- ##
1989 test "$ac_signal" != 0 &&
1990 printf "%s\n" "$as_me: caught signal $ac_signal"
1991 printf "%s\n" "$as_me: exit $exit_status"
1993 rm -f core *.core core.conftest.* &&
1994 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1997 for ac_signal in 1 2 13 15; do
1998 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2002 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2003 rm -f -r conftest* confdefs.h
2005 printf "%s\n" "/* confdefs.h */" > confdefs.h
2007 # Predefined preprocessor variables.
2009 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2011 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2013 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2015 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2017 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2019 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2022 # Let the site file select an alternate cache file if it wants to.
2023 # Prefer an explicitly selected file to automatically selected ones.
2024 if test -n "$CONFIG_SITE"; then
2025 ac_site_files="$CONFIG_SITE"
2026 elif test "x$prefix" != xNONE; then
2027 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2029 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2032 for ac_site_file in $ac_site_files
2034 case $ac_site_file in #(
2038 ac_site_file=./$ac_site_file ;;
2040 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2042 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2043 sed 's/^/| /' "$ac_site_file" >&5
2045 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2046 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2047 as_fn_error $? "failed to load site script $ac_site_file
2048 See \`config.log' for more details" "$LINENO" 5; }
2052 if test -r "$cache_file"; then
2053 # Some versions of bash will fail to source /dev/null (special files
2054 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2055 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2057 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2059 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2060 *) . "./$cache_file";;
2064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2065 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2069 # Test code for whether the C compiler supports C89 (global declarations)
2070 ac_c_conftest_c89_globals='
2071 /* Does the compiler advertise C89 conformance?
2072 Do not test the value of __STDC__, because some compilers set it to 0
2073 while being otherwise adequately conformant. */
2074 #if !defined __STDC__
2075 # error "Compiler does not advertise C89 conformance"
2081 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2082 struct buf { int x; };
2083 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2084 static char *e (p, i)
2090 static char *f (char * (*g) (char **, int), char **p, ...)
2095 s = g (p, va_arg (v,int));
2100 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2101 function prototypes and stuff, but not \xHH hex character constants.
2102 These do not provoke an error unfortunately, instead are silently treated
2103 as an "x". The following induces an error, until -std is added to get
2104 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2105 array size at least. It is necessary to write \x00 == 0 to get something
2106 that is true only with -std. */
2107 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2109 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2110 inside strings and character constants. */
2111 #define FOO(x) '\''x'\''
2112 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2114 int test (int i, double x);
2115 struct s1 {int (*f) (int a);};
2116 struct s2 {int (*f) (double a);};
2117 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2120 # Test code for whether the C compiler supports C89 (body of main).
2121 ac_c_conftest_c89_main='
2122 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2125 # Test code for whether the C compiler supports C99 (global declarations)
2126 ac_c_conftest_c99_globals='
2127 // Does the compiler advertise C99 conformance?
2128 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2129 # error "Compiler does not advertise C99 conformance"
2132 #include <stdbool.h>
2133 extern int puts (const char *);
2134 extern int printf (const char *, ...);
2135 extern int dprintf (int, const char *, ...);
2136 extern void *malloc (size_t);
2138 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2139 // dprintf is used instead of fprintf to avoid needing to declare
2141 #define debug(...) dprintf (2, __VA_ARGS__)
2142 #define showlist(...) puts (#__VA_ARGS__)
2143 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2145 test_varargs_macros (void)
2150 debug ("X = %d\n", x);
2151 showlist (The first, second, and third items.);
2152 report (x>y, "x is %d but y is %d", x, y);
2155 // Check long long types.
2156 #define BIG64 18446744073709551615ull
2157 #define BIG32 4294967295ul
2158 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2160 #error "your preprocessor is broken"
2164 #error "your preprocessor is broken"
2166 static long long int bignum = -9223372036854775807LL;
2167 static unsigned long long int ubignum = BIG64;
2169 struct incomplete_array
2177 const wchar_t *name;
2181 typedef const char *ccp;
2184 test_restrict (ccp restrict text)
2186 // See if C++-style comments work.
2187 // Iterate through items via the restricted pointer.
2188 // Also check for declarations in for loops.
2189 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2194 // Check varargs and va_copy.
2196 test_varargs (const char *format, ...)
2199 va_start (args, format);
2201 va_copy (args_copy, args);
2203 const char *str = "";
2211 case '\''s'\'': // string
2212 str = va_arg (args_copy, const char *);
2214 case '\''d'\'': // int
2215 number = va_arg (args_copy, int);
2217 case '\''f'\'': // float
2218 fnumber = va_arg (args_copy, double);
2227 return *str && number && fnumber;
2231 # Test code for whether the C compiler supports C99 (body of main).
2232 ac_c_conftest_c99_main='
2234 _Bool success = false;
2235 success |= (argc != 0);
2238 if (test_restrict ("String literal") == 0)
2240 char *restrict newvar = "Another string";
2243 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2244 test_varargs_macros ();
2246 // Check flexible array members.
2247 struct incomplete_array *ia =
2248 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2250 for (int i = 0; i < ia->datasize; ++i)
2251 ia->data[i] = i * 1.234;
2253 // Check named initializers.
2254 struct named_init ni = {
2256 .name = L"Test wide string",
2257 .average = 543.34343,
2262 int dynamic_array[ni.number];
2263 dynamic_array[0] = argv[0][0];
2264 dynamic_array[ni.number - 1] = 543;
2266 // work around unused variable warnings
2267 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2268 || dynamic_array[ni.number - 1] != 543);
2271 # Test code for whether the C compiler supports C11 (global declarations)
2272 ac_c_conftest_c11_globals='
2273 // Does the compiler advertise C11 conformance?
2274 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2275 # error "Compiler does not advertise C11 conformance"
2279 char _Alignas (double) aligned_as_double;
2280 char _Alignas (0) no_special_alignment;
2281 extern char aligned_as_int;
2282 char _Alignas (0) _Alignas (int) aligned_as_int;
2287 int_alignment = _Alignof (int),
2288 int_array_alignment = _Alignof (int[100]),
2289 char_alignment = _Alignof (char)
2291 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2294 int _Noreturn does_not_return (void) { for (;;) continue; }
2296 // Check _Static_assert.
2297 struct test_static_assert
2300 _Static_assert (sizeof (int) <= sizeof (long int),
2301 "_Static_assert does not work in struct");
2305 // Check UTF-8 literals.
2306 #define u8 syntax error!
2307 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2309 // Check duplicate typedefs.
2310 typedef long *long_ptr;
2311 typedef long int *long_ptr;
2312 typedef long_ptr long_ptr;
2314 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2318 struct { int i; int j; };
2319 struct { int k; long int l; } w;
2325 # Test code for whether the C compiler supports C11 (body of main).
2326 ac_c_conftest_c11_main='
2327 _Static_assert ((offsetof (struct anonymous, i)
2328 == offsetof (struct anonymous, w.k)),
2329 "Anonymous union alignment botch");
2335 # Test code for whether the C compiler supports C11 (complete).
2336 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2337 ${ac_c_conftest_c99_globals}
2338 ${ac_c_conftest_c11_globals}
2341 main (int argc, char **argv)
2344 ${ac_c_conftest_c89_main}
2345 ${ac_c_conftest_c99_main}
2346 ${ac_c_conftest_c11_main}
2351 # Test code for whether the C compiler supports C99 (complete).
2352 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2353 ${ac_c_conftest_c99_globals}
2356 main (int argc, char **argv)
2359 ${ac_c_conftest_c89_main}
2360 ${ac_c_conftest_c99_main}
2365 # Test code for whether the C compiler supports C89 (complete).
2366 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2369 main (int argc, char **argv)
2372 ${ac_c_conftest_c89_main}
2377 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2378 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2379 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2380 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2381 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2382 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2383 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2384 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2385 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2386 # Check that the precious variables saved in the cache have kept the same
2388 ac_cache_corrupted=false
2389 for ac_var in $ac_precious_vars; do
2390 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2391 eval ac_new_set=\$ac_env_${ac_var}_set
2392 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2393 eval ac_new_val=\$ac_env_${ac_var}_value
2394 case $ac_old_set,$ac_new_set in
2396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2397 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2401 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2405 if test "x$ac_old_val" != "x$ac_new_val"; then
2406 # differences in whitespace do not lead to failure.
2407 ac_old_val_w=`echo x $ac_old_val`
2408 ac_new_val_w=`echo x $ac_new_val`
2409 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2411 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2412 ac_cache_corrupted=:
2414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2415 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2416 eval $ac_var=\$ac_old_val
2418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2419 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2421 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2424 # Pass precious variables to config.status.
2425 if test "$ac_new_set" = set; then
2427 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428 *) ac_arg=$ac_var=$ac_new_val ;;
2430 case " $ac_configure_args " in
2431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2432 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 if $ac_cache_corrupted; then
2437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2440 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2441 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2442 and start over" "$LINENO" 5
2444 ## -------------------- ##
2445 ## Main body of script. ##
2446 ## -------------------- ##
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 #--------------------------------------------------------------------
2457 # Call TEA_INIT as the first TEA_ macro to set up initial vars.
2458 # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
2459 # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
2460 #--------------------------------------------------------------------
2465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TEA configuration" >&5
2466 printf %s "checking TEA configuration... " >&6; }
2467 if test x"${PACKAGE_NAME}" = x ; then
2469 The PACKAGE_NAME variable must be defined by your TEA configure.ac" "$LINENO" 5
2471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2472 printf "%s\n" "ok (TEA ${TEA_VERSION})" >&6; }
2474 # If the user did not set CFLAGS, set it now to keep macros
2475 # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2".
2476 if test "${CFLAGS+set}" != "set" ; then
2480 case "`uname -s`" in
2481 *win32*|*WIN32*|*MINGW32_*|*MINGW64_*|*MSYS_*)
2482 # Extract the first word of "cygpath", so it can be a program name with args.
2483 set dummy cygpath; ac_word=$2
2484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 printf %s "checking for $ac_word... " >&6; }
2486 if test ${ac_cv_prog_CYGPATH+y}
2488 printf %s "(cached) " >&6
2490 if test -n "$CYGPATH"; then
2491 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 case $as_dir in #(((
2500 *) as_dir=$as_dir/ ;;
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2504 ac_cv_prog_CYGPATH="cygpath -m"
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2512 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2515 CYGPATH=$ac_cv_prog_CYGPATH
2516 if test -n "$CYGPATH"; then
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2518 printf "%s\n" "$CYGPATH" >&6; }
2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2521 printf "%s\n" "no" >&6; }
2526 TEA_PLATFORM="windows"
2530 # CYGPATH and TEA_PLATFORM are determined later in LOAD_TCLCONFIG
2534 # Maybe we are cross-compiling....
2535 case ${host_alias} in
2538 TEA_PLATFORM="windows"
2548 # Check if exec_prefix is set. If not use fall back to prefix.
2549 # Note when adjusted, so that TEA_PREFIX can correct for this.
2550 # This is needed for recursive configures, since autoconf propagates
2551 # $prefix, but not $exec_prefix (doh!).
2552 if test x$exec_prefix = xNONE ; then
2553 exec_prefix_default=yes
2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5
2558 printf "%s\n" "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;}
2563 # This package name must be replaced statically for AC_SUBST to work
2567 # Substitute STUB_LIB_FILE in case package creates a stub library too.
2570 # We AC_SUBST these here to ensure they are subst'ed,
2571 # in case the user doesn't call TEA_ADD_...
2580 # Configure the installer.
2582 INSTALL='$(SHELL) $(srcdir)/tclconfig/install-sh -c'
2583 INSTALL_DATA_DIR='${INSTALL} -d -m 755'
2584 INSTALL_DATA='${INSTALL} -m 644'
2585 INSTALL_PROGRAM='${INSTALL} -m 755'
2586 INSTALL_SCRIPT='${INSTALL} -m 755'
2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
2590 printf %s "checking system version... " >&6; }
2591 if test ${tcl_cv_sys_version+y}
2593 printf %s "(cached) " >&6
2597 if test "${TEA_PLATFORM}" = "windows" ; then
2598 tcl_cv_sys_version=windows
2600 tcl_cv_sys_version=`uname -s`-`uname -r`
2601 if test "$?" -ne 0 ; then
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
2603 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
2604 tcl_cv_sys_version=unknown
2606 if test "`uname -s`" = "AIX" ; then
2607 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
2609 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
2610 tcl_cv_sys_version=NetBSD-Debian
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
2617 printf "%s\n" "$tcl_cv_sys_version" >&6; }
2618 system=$tcl_cv_sys_version
2621 HP-UX-*) INSTALL_LIBRARY='${INSTALL} -m 755' ;;
2622 *) INSTALL_LIBRARY='${INSTALL} -m 644' ;;
2636 #--------------------------------------------------------------------
2637 # Load the tclConfig.sh file
2638 #--------------------------------------------------------------------
2643 # Ok, lets find the tcl configuration
2644 # First, look for one uninstalled.
2645 # the alternative search directory is invoked by --with-tcl
2648 if test x"${no_tcl}" = x ; then
2649 # we reset no_tcl in case something fails here
2652 # Check whether --with-tcl was given.
2653 if test ${with_tcl+y}
2655 withval=$with_tcl; with_tclconfig="${withval}"
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2659 printf %s "checking for Tcl configuration... " >&6; }
2660 if test ${ac_cv_c_tclconfig+y}
2662 printf %s "(cached) " >&6
2666 # First check to see if --with-tcl was specified.
2667 if test x"${with_tclconfig}" != x ; then
2668 case "${with_tclconfig}" in
2670 if test -f "${with_tclconfig}"; then
2671 { 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
2672 printf "%s\n" "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2673 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`"
2676 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2677 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`"
2679 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2683 # then check for a private Tcl installation
2684 if test x"${ac_cv_c_tclconfig}" = x ; then
2687 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2688 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2689 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2691 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2692 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2693 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2695 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2696 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2697 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2698 if test "${TEA_PLATFORM}" = "windows" \
2699 -a -f "$i/win/tclConfig.sh" ; then
2700 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2703 if test -f "$i/unix/tclConfig.sh" ; then
2704 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2710 # on Darwin, check in Framework installation locations
2711 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2712 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2713 `ls -d /Library/Frameworks 2>/dev/null` \
2714 `ls -d /Network/Library/Frameworks 2>/dev/null` \
2715 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks/Tcl.framework 2>/dev/null` \
2716 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Network/Library/Frameworks/Tcl.framework 2>/dev/null` \
2717 `ls -d /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework 2>/dev/null` \
2719 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2720 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`"
2726 # TEA specific: on Windows, check in common installation locations
2727 if test "${TEA_PLATFORM}" = "windows" \
2728 -a x"${ac_cv_c_tclconfig}" = x ; then
2729 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2730 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2732 if test -f "$i/tclConfig.sh" ; then
2733 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2739 # check in a few common install locations
2740 if test x"${ac_cv_c_tclconfig}" = x ; then
2741 for i in `ls -d ${libdir} 2>/dev/null` \
2742 `ls -d ${exec_prefix}/lib 2>/dev/null` \
2743 `ls -d ${prefix}/lib 2>/dev/null` \
2744 `ls -d /usr/local/lib 2>/dev/null` \
2745 `ls -d /usr/contrib/lib 2>/dev/null` \
2746 `ls -d /usr/pkg/lib 2>/dev/null` \
2747 `ls -d /usr/lib 2>/dev/null` \
2748 `ls -d /usr/lib64 2>/dev/null` \
2749 `ls -d /usr/lib/tcl8.6 2>/dev/null` \
2750 `ls -d /usr/lib/tcl8.5 2>/dev/null` \
2751 `ls -d /usr/local/lib/tcl8.6 2>/dev/null` \
2752 `ls -d /usr/local/lib/tcl8.5 2>/dev/null` \
2753 `ls -d /usr/local/lib/tcl/tcl8.6 2>/dev/null` \
2754 `ls -d /usr/local/lib/tcl/tcl8.5 2>/dev/null` \
2756 if test -f "$i/tclConfig.sh" ; then
2757 ac_cv_c_tclconfig="`(cd $i; pwd)`"
2763 # check in a few other private locations
2764 if test x"${ac_cv_c_tclconfig}" = x ; then
2767 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2768 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2769 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2770 if test "${TEA_PLATFORM}" = "windows" \
2771 -a -f "$i/win/tclConfig.sh" ; then
2772 ac_cv_c_tclconfig="`(cd $i/win; pwd)`"
2775 if test -f "$i/unix/tclConfig.sh" ; then
2776 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`"
2785 if test x"${ac_cv_c_tclconfig}" = x ; then
2786 TCL_BIN_DIR="# no Tcl configs found"
2787 as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5
2790 TCL_BIN_DIR="${ac_cv_c_tclconfig}"
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2792 printf "%s\n" "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 printf %s "checking for $ac_word... " >&6; }
2815 if test ${ac_cv_prog_CC+y}
2817 printf %s "(cached) " >&6
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 case $as_dir in #(((
2829 *) as_dir=$as_dir/ ;;
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2844 if test -n "$CC"; then
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2846 printf "%s\n" "$CC" >&6; }
2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 printf "%s\n" "no" >&6; }
2854 if test -z "$ac_cv_prog_CC"; then
2856 # Extract the first word of "gcc", so it can be a program name with args.
2857 set dummy gcc; ac_word=$2
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 printf %s "checking for $ac_word... " >&6; }
2860 if test ${ac_cv_prog_ac_ct_CC+y}
2862 printf %s "(cached) " >&6
2864 if test -n "$ac_ct_CC"; then
2865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 case $as_dir in #(((
2874 *) as_dir=$as_dir/ ;;
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2878 ac_cv_prog_ac_ct_CC="gcc"
2879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2889 if test -n "$ac_ct_CC"; then
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2891 printf "%s\n" "$ac_ct_CC" >&6; }
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 printf "%s\n" "no" >&6; }
2897 if test "x$ac_ct_CC" = x; then
2900 case $cross_compiling:$ac_tool_warned in
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2904 ac_tool_warned=yes ;;
2912 if test -z "$CC"; then
2913 if test -n "$ac_tool_prefix"; then
2914 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2915 set dummy ${ac_tool_prefix}cc; ac_word=$2
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 printf %s "checking for $ac_word... " >&6; }
2918 if test ${ac_cv_prog_CC+y}
2920 printf %s "(cached) " >&6
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 case $as_dir in #(((
2932 *) as_dir=$as_dir/ ;;
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2936 ac_cv_prog_CC="${ac_tool_prefix}cc"
2937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2947 if test -n "$CC"; then
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 printf "%s\n" "$CC" >&6; }
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 printf "%s\n" "no" >&6; }
2958 if test -z "$CC"; then
2959 # Extract the first word of "cc", so it can be a program name with args.
2960 set dummy cc; ac_word=$2
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 printf %s "checking for $ac_word... " >&6; }
2963 if test ${ac_cv_prog_CC+y}
2965 printf %s "(cached) " >&6
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 case $as_dir in #(((
2978 *) as_dir=$as_dir/ ;;
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2982 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2983 ac_prog_rejected=yes
2987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2994 if test $ac_prog_rejected = yes; then
2995 # We found a bogon in the path, so make sure we never use it.
2996 set dummy $ac_cv_prog_CC
2998 if test $# != 0; then
2999 # We chose a different compiler from the bogus one.
3000 # However, it has the same basename, so the bogon will be chosen
3001 # first if we set CC to just the basename; use the full file name.
3003 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3009 if test -n "$CC"; then
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 printf "%s\n" "$CC" >&6; }
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 printf "%s\n" "no" >&6; }
3019 if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 for ac_prog in cl.exe
3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 printf %s "checking for $ac_word... " >&6; }
3027 if test ${ac_cv_prog_CC+y}
3029 printf %s "(cached) " >&6
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 case $as_dir in #(((
3041 *) as_dir=$as_dir/ ;;
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3056 if test -n "$CC"; then
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058 printf "%s\n" "$CC" >&6; }
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 printf "%s\n" "no" >&6; }
3065 test -n "$CC" && break
3068 if test -z "$CC"; then
3070 for ac_prog in cl.exe
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 printf %s "checking for $ac_word... " >&6; }
3076 if test ${ac_cv_prog_ac_ct_CC+y}
3078 printf %s "(cached) " >&6
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 case $as_dir in #(((
3090 *) as_dir=$as_dir/ ;;
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_ac_ct_CC="$ac_prog"
3095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3107 printf "%s\n" "$ac_ct_CC" >&6; }
3109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 printf "%s\n" "no" >&6; }
3114 test -n "$ac_ct_CC" && break
3117 if test "x$ac_ct_CC" = x; then
3120 case $cross_compiling:$ac_tool_warned in
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned=yes ;;
3131 if test -z "$CC"; then
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}clang; ac_word=$2
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 printf %s "checking for $ac_word... " >&6; }
3137 if test ${ac_cv_prog_CC+y}
3139 printf %s "(cached) " >&6
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 case $as_dir in #(((
3151 *) as_dir=$as_dir/ ;;
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_CC="${ac_tool_prefix}clang"
3156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3166 if test -n "$CC"; then
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 printf "%s\n" "$CC" >&6; }
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 printf "%s\n" "no" >&6; }
3176 if test -z "$ac_cv_prog_CC"; then
3178 # Extract the first word of "clang", so it can be a program name with args.
3179 set dummy clang; ac_word=$2
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 printf %s "checking for $ac_word... " >&6; }
3182 if test ${ac_cv_prog_ac_ct_CC+y}
3184 printf %s "(cached) " >&6
3186 if test -n "$ac_ct_CC"; then
3187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 case $as_dir in #(((
3196 *) as_dir=$as_dir/ ;;
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_ac_ct_CC="clang"
3201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211 if test -n "$ac_ct_CC"; then
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3213 printf "%s\n" "$ac_ct_CC" >&6; }
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 printf "%s\n" "no" >&6; }
3219 if test "x$ac_ct_CC" = x; then
3222 case $cross_compiling:$ac_tool_warned in
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3225 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3226 ac_tool_warned=yes ;;
3237 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 # Provide some information about the compiler.
3243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3246 for ac_option in --version -v -V -qversion -version; do
3247 { { ac_try="$ac_compiler $ac_option >&5"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 printf "%s\n" "$ac_try_echo"; } >&5
3254 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3256 if test -s conftest.err; then
3258 ... rest of stderr output deleted ...
3259 10q' conftest.err >conftest.er1
3260 cat conftest.er1 >&5
3262 rm -f conftest.er1 conftest.err
3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3278 ac_clean_files_save=$ac_clean_files
3279 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3280 # Try to create an executable without -o first, disregard a.out.
3281 # It will help us diagnose broken compilers, and finding out an intuition
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3284 printf %s "checking whether the C compiler works... " >&6; }
3285 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3287 # The possible output files:
3288 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291 for ac_file in $ac_files
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3300 if { { ac_try="$ac_link_default"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 printf "%s\n" "$ac_try_echo"; } >&5
3307 (eval "$ac_link_default") 2>&5
3309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }
3312 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3313 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3314 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3315 # so that the user can short-circuit this test for compilers unknown to
3317 for ac_file in $ac_files ''
3319 test -f "$ac_file" || continue
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3324 # We found the default executable, but exeext='' is most
3328 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3330 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 # We set ac_cv_exeext here because the later test for it is not
3333 # safe: cross compilers may not add the suffix if given an `-o'
3334 # argument, so we may need to know it at that point already.
3335 # Even if this section looks crufty: it has the advantage of
3342 test "$ac_cv_exeext" = no && ac_cv_exeext=
3347 if test -z "$ac_file"
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 printf "%s\n" "no" >&6; }
3351 printf "%s\n" "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error 77 "C compiler cannot create executables
3357 See \`config.log' for more details" "$LINENO" 5; }
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 printf "%s\n" "yes" >&6; }
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3363 printf %s "checking for C compiler default output file name... " >&6; }
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365 printf "%s\n" "$ac_file" >&6; }
3366 ac_exeext=$ac_cv_exeext
3368 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3369 ac_clean_files=$ac_clean_files_save
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3371 printf %s "checking for suffix of executables... " >&6; }
3372 if { { ac_try="$ac_link"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 printf "%s\n" "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3384 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3385 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3386 # work properly (i.e., refer to `conftest.exe'), while it won't with
3388 for ac_file in conftest.exe conftest conftest.*; do
3389 test -f "$ac_file" || continue
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3392 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3401 See \`config.log' for more details" "$LINENO" 5; }
3403 rm -f conftest conftest$ac_cv_exeext
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3405 printf "%s\n" "$ac_cv_exeext" >&6; }
3407 rm -f conftest.$ac_ext
3408 EXEEXT=$ac_cv_exeext
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3416 FILE *f = fopen ("conftest.out", "w");
3417 return ferror (f) || fclose (f) != 0;
3423 ac_clean_files="$ac_clean_files conftest.out"
3424 # Check that the compiler produces executables we can run. If not, either
3425 # the compiler is broken, or we cross compile.
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3427 printf %s "checking whether we are cross compiling... " >&6; }
3428 if test "$cross_compiling" != yes; then
3429 { { ac_try="$ac_link"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 printf "%s\n" "$ac_try_echo"; } >&5
3436 (eval "$ac_link") 2>&5
3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }
3440 if { ac_try='./conftest$ac_cv_exeext'
3441 { { case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 printf "%s\n" "$ac_try_echo"; } >&5
3447 (eval "$ac_try") 2>&5
3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; }; then
3453 if test "$cross_compiling" = maybe; then
3456 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3458 as_fn_error 77 "cannot run C compiled programs.
3459 If you meant to cross compile, use \`--host'.
3460 See \`config.log' for more details" "$LINENO" 5; }
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3465 printf "%s\n" "$cross_compiling" >&6; }
3467 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3468 ac_clean_files=$ac_clean_files_save
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3470 printf %s "checking for suffix of object files... " >&6; }
3471 if test ${ac_cv_objext+y}
3473 printf %s "(cached) " >&6
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3486 rm -f conftest.o conftest.obj
3487 if { { ac_try="$ac_compile"
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 printf "%s\n" "$ac_try_echo"; } >&5
3494 (eval "$ac_compile") 2>&5
3496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }
3499 for ac_file in conftest.o conftest.obj conftest.*; do
3500 test -f "$ac_file" || continue;
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3503 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3508 printf "%s\n" "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error $? "cannot compute suffix of object files: cannot compile
3514 See \`config.log' for more details" "$LINENO" 5; }
3516 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3519 printf "%s\n" "$ac_cv_objext" >&6; }
3520 OBJEXT=$ac_cv_objext
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3523 printf %s "checking whether the compiler supports GNU C... " >&6; }
3524 if test ${ac_cv_c_compiler_gnu+y}
3526 printf %s "(cached) " >&6
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3542 if ac_fn_c_try_compile "$LINENO"
3548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3549 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3553 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3556 if test $ac_compiler_gnu = yes; then
3561 ac_test_CFLAGS=${CFLAGS+y}
3562 ac_save_CFLAGS=$CFLAGS
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3564 printf %s "checking whether $CC accepts -g... " >&6; }
3565 if test ${ac_cv_prog_cc_g+y}
3567 printf %s "(cached) " >&6
3569 ac_save_c_werror_flag=$ac_c_werror_flag
3570 ac_c_werror_flag=yes
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3584 if ac_fn_c_try_compile "$LINENO"
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3617 if ac_fn_c_try_compile "$LINENO"
3621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3626 ac_c_werror_flag=$ac_save_c_werror_flag
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3629 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3630 if test $ac_test_CFLAGS; then
3631 CFLAGS=$ac_save_CFLAGS
3632 elif test $ac_cv_prog_cc_g = yes; then
3633 if test "$GCC" = yes; then
3639 if test "$GCC" = yes; then
3646 if test x$ac_prog_cc_stdc = xno
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3649 printf %s "checking for $CC option to enable C11 features... " >&6; }
3650 if test ${ac_cv_prog_cc_c11+y}
3652 printf %s "(cached) " >&6
3654 ac_cv_prog_cc_c11=no
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658 $ac_c_conftest_c11_program
3660 for ac_arg in '' -std=gnu11
3662 CC="$ac_save_CC $ac_arg"
3663 if ac_fn_c_try_compile "$LINENO"
3665 ac_cv_prog_cc_c11=$ac_arg
3667 rm -f core conftest.err conftest.$ac_objext conftest.beam
3668 test "x$ac_cv_prog_cc_c11" != "xno" && break
3670 rm -f conftest.$ac_ext
3674 if test "x$ac_cv_prog_cc_c11" = xno
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3677 printf "%s\n" "unsupported" >&6; }
3679 if test "x$ac_cv_prog_cc_c11" = x
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3682 printf "%s\n" "none needed" >&6; }
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3685 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3686 CC="$CC $ac_cv_prog_cc_c11"
3688 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3692 if test x$ac_prog_cc_stdc = xno
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3695 printf %s "checking for $CC option to enable C99 features... " >&6; }
3696 if test ${ac_cv_prog_cc_c99+y}
3698 printf %s "(cached) " >&6
3700 ac_cv_prog_cc_c99=no
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704 $ac_c_conftest_c99_program
3706 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3708 CC="$ac_save_CC $ac_arg"
3709 if ac_fn_c_try_compile "$LINENO"
3711 ac_cv_prog_cc_c99=$ac_arg
3713 rm -f core conftest.err conftest.$ac_objext conftest.beam
3714 test "x$ac_cv_prog_cc_c99" != "xno" && break
3716 rm -f conftest.$ac_ext
3720 if test "x$ac_cv_prog_cc_c99" = xno
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3723 printf "%s\n" "unsupported" >&6; }
3725 if test "x$ac_cv_prog_cc_c99" = x
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3728 printf "%s\n" "none needed" >&6; }
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3731 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3732 CC="$CC $ac_cv_prog_cc_c99"
3734 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3738 if test x$ac_prog_cc_stdc = xno
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3741 printf %s "checking for $CC option to enable C89 features... " >&6; }
3742 if test ${ac_cv_prog_cc_c89+y}
3744 printf %s "(cached) " >&6
3746 ac_cv_prog_cc_c89=no
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750 $ac_c_conftest_c89_program
3752 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3754 CC="$ac_save_CC $ac_arg"
3755 if ac_fn_c_try_compile "$LINENO"
3757 ac_cv_prog_cc_c89=$ac_arg
3759 rm -f core conftest.err conftest.$ac_objext conftest.beam
3760 test "x$ac_cv_prog_cc_c89" != "xno" && break
3762 rm -f conftest.$ac_ext
3766 if test "x$ac_cv_prog_cc_c89" = xno
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3769 printf "%s\n" "unsupported" >&6; }
3771 if test "x$ac_cv_prog_cc_c89" = x
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3774 printf "%s\n" "none needed" >&6; }
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3777 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3778 CC="$CC $ac_cv_prog_cc_c89"
3780 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
3794 printf %s "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
3796 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: loading" >&5
3798 printf "%s\n" "loading" >&6; }
3799 . "${TCL_BIN_DIR}/tclConfig.sh"
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
3802 printf "%s\n" "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
3805 # If the TCL_BIN_DIR is the build directory (not the install directory),
3806 # then set the common variable name to the value of the build variables.
3807 # For example, the variable TCL_LIB_SPEC will be set to the value
3808 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
3809 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
3810 # installed and uninstalled version of Tcl.
3811 if test -f "${TCL_BIN_DIR}/Makefile" ; then
3812 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}"
3813 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}"
3814 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}"
3815 elif test "`uname -s`" = "Darwin"; then
3816 # If Tcl was built as a framework, attempt to use the libraries
3817 # from the framework at the given location so that linking works
3818 # against Tcl.framework installed in an arbitrary location.
3821 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
3822 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \
3823 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do
3824 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
3825 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}"
3830 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
3831 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}"
3832 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
3852 printf %s "checking platform... " >&6; }
3853 hold_cc=$CC; CC="$TCL_CC"
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3869 if ac_fn_c_try_compile "$LINENO"
3872 # first test we've already retrieved platform (cross-compile), fallback to unix otherwise:
3873 TEA_PLATFORM="${TEA_PLATFORM-unix}"
3878 TEA_PLATFORM="windows"
3879 # Extract the first word of "cygpath", so it can be a program name with args.
3880 set dummy cygpath; ac_word=$2
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 printf %s "checking for $ac_word... " >&6; }
3883 if test ${ac_cv_prog_CYGPATH+y}
3885 printf %s "(cached) " >&6
3887 if test -n "$CYGPATH"; then
3888 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 case $as_dir in #(((
3897 *) as_dir=$as_dir/ ;;
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3901 ac_cv_prog_CYGPATH="cygpath -m"
3902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3909 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
3912 CYGPATH=$ac_cv_prog_CYGPATH
3913 if test -n "$CYGPATH"; then
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
3915 printf "%s\n" "$CYGPATH" >&6; }
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 printf "%s\n" "no" >&6; }
3924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5
3927 printf "%s\n" "$TEA_PLATFORM" >&6; }
3929 # The BUILD_$pkg is to define the correct extern storage class
3930 # handling when making this package
3932 printf "%s\n" "#define BUILD_${PACKAGE_NAME} /**/" >>confdefs.h
3934 # Do this here as we have fully defined TEA_PLATFORM now
3935 if test "${TEA_PLATFORM}" = "windows" ; then
3937 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp"
3949 #--------------------------------------------------------------------
3950 # Load the tkConfig.sh file if necessary (Tk extension)
3951 #--------------------------------------------------------------------
3956 #-----------------------------------------------------------------------
3957 # Handle the --prefix=... option by defaulting to what Tcl gave.
3958 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
3959 #-----------------------------------------------------------------------
3962 if test "${prefix}" = "NONE"; then
3964 if test x"${TCL_PREFIX}" != x; then
3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
3966 printf "%s\n" "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
3967 prefix=${TCL_PREFIX}
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
3970 printf "%s\n" "$as_me: --prefix defaulting to /usr/local" >&6;}
3974 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
3975 -o x"${exec_prefix_default}" = x"yes" ; then
3976 if test x"${TCL_EXEC_PREFIX}" != x; then
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
3978 printf "%s\n" "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
3979 exec_prefix=${TCL_EXEC_PREFIX}
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
3982 printf "%s\n" "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
3988 #-----------------------------------------------------------------------
3989 # Standard compiler checks.
3990 # This sets up CC by using the CC env var, or looks for gcc otherwise.
3991 # This also calls AC_PROG_CC and a few others to create the basic setup
3992 # necessary to compile executables.
3993 #-----------------------------------------------------------------------
3996 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
3997 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
4000 ac_cpp='$CPP $CPPFLAGS'
4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004 if test -n "$ac_tool_prefix"; then
4005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4006 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 printf %s "checking for $ac_word... " >&6; }
4009 if test ${ac_cv_prog_CC+y}
4011 printf %s "(cached) " >&6
4013 if test -n "$CC"; then
4014 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 case $as_dir in #(((
4023 *) as_dir=$as_dir/ ;;
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4027 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4038 if test -n "$CC"; then
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4040 printf "%s\n" "$CC" >&6; }
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 printf "%s\n" "no" >&6; }
4048 if test -z "$ac_cv_prog_CC"; then
4050 # Extract the first word of "gcc", so it can be a program name with args.
4051 set dummy gcc; ac_word=$2
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053 printf %s "checking for $ac_word... " >&6; }
4054 if test ${ac_cv_prog_ac_ct_CC+y}
4056 printf %s "(cached) " >&6
4058 if test -n "$ac_ct_CC"; then
4059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 case $as_dir in #(((
4068 *) as_dir=$as_dir/ ;;
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_ac_ct_CC="gcc"
4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4083 if test -n "$ac_ct_CC"; then
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4085 printf "%s\n" "$ac_ct_CC" >&6; }
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 printf "%s\n" "no" >&6; }
4091 if test "x$ac_ct_CC" = x; then
4094 case $cross_compiling:$ac_tool_warned in
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4097 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4098 ac_tool_warned=yes ;;
4106 if test -z "$CC"; then
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}cc; ac_word=$2
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 printf %s "checking for $ac_word... " >&6; }
4112 if test ${ac_cv_prog_CC+y}
4114 printf %s "(cached) " >&6
4116 if test -n "$CC"; then
4117 ac_cv_prog_CC="$CC" # Let the user override the test.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 case $as_dir in #(((
4126 *) as_dir=$as_dir/ ;;
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_CC="${ac_tool_prefix}cc"
4131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4141 if test -n "$CC"; then
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4143 printf "%s\n" "$CC" >&6; }
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 printf "%s\n" "no" >&6; }
4152 if test -z "$CC"; then
4153 # Extract the first word of "cc", so it can be a program name with args.
4154 set dummy cc; ac_word=$2
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 printf %s "checking for $ac_word... " >&6; }
4157 if test ${ac_cv_prog_CC+y}
4159 printf %s "(cached) " >&6
4161 if test -n "$CC"; then
4162 ac_cv_prog_CC="$CC" # Let the user override the test.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 case $as_dir in #(((
4172 *) as_dir=$as_dir/ ;;
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4176 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4177 ac_prog_rejected=yes
4181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4188 if test $ac_prog_rejected = yes; then
4189 # We found a bogon in the path, so make sure we never use it.
4190 set dummy $ac_cv_prog_CC
4192 if test $# != 0; then
4193 # We chose a different compiler from the bogus one.
4194 # However, it has the same basename, so the bogon will be chosen
4195 # first if we set CC to just the basename; use the full file name.
4197 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4203 if test -n "$CC"; then
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4205 printf "%s\n" "$CC" >&6; }
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 printf "%s\n" "no" >&6; }
4213 if test -z "$CC"; then
4214 if test -n "$ac_tool_prefix"; then
4215 for ac_prog in cl.exe
4217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 printf %s "checking for $ac_word... " >&6; }
4221 if test ${ac_cv_prog_CC+y}
4223 printf %s "(cached) " >&6
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC="$CC" # Let the user override the test.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 case $as_dir in #(((
4235 *) as_dir=$as_dir/ ;;
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4250 if test -n "$CC"; then
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4252 printf "%s\n" "$CC" >&6; }
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 printf "%s\n" "no" >&6; }
4259 test -n "$CC" && break
4262 if test -z "$CC"; then
4264 for ac_prog in cl.exe
4266 # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 printf %s "checking for $ac_word... " >&6; }
4270 if test ${ac_cv_prog_ac_ct_CC+y}
4272 printf %s "(cached) " >&6
4274 if test -n "$ac_ct_CC"; then
4275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 case $as_dir in #(((
4284 *) as_dir=$as_dir/ ;;
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4288 ac_cv_prog_ac_ct_CC="$ac_prog"
4289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4299 if test -n "$ac_ct_CC"; then
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4301 printf "%s\n" "$ac_ct_CC" >&6; }
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 printf "%s\n" "no" >&6; }
4308 test -n "$ac_ct_CC" && break
4311 if test "x$ac_ct_CC" = x; then
4314 case $cross_compiling:$ac_tool_warned in
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4317 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4318 ac_tool_warned=yes ;;
4325 if test -z "$CC"; then
4326 if test -n "$ac_tool_prefix"; then
4327 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}clang; ac_word=$2
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4330 printf %s "checking for $ac_word... " >&6; }
4331 if test ${ac_cv_prog_CC+y}
4333 printf %s "(cached) " >&6
4335 if test -n "$CC"; then
4336 ac_cv_prog_CC="$CC" # Let the user override the test.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 case $as_dir in #(((
4345 *) as_dir=$as_dir/ ;;
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_CC="${ac_tool_prefix}clang"
4350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4360 if test -n "$CC"; then
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4362 printf "%s\n" "$CC" >&6; }
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 printf "%s\n" "no" >&6; }
4370 if test -z "$ac_cv_prog_CC"; then
4372 # Extract the first word of "clang", so it can be a program name with args.
4373 set dummy clang; ac_word=$2
4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 printf %s "checking for $ac_word... " >&6; }
4376 if test ${ac_cv_prog_ac_ct_CC+y}
4378 printf %s "(cached) " >&6
4380 if test -n "$ac_ct_CC"; then
4381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 case $as_dir in #(((
4390 *) as_dir=$as_dir/ ;;
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_CC="clang"
4395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 printf "%s\n" "$ac_ct_CC" >&6; }
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 printf "%s\n" "no" >&6; }
4413 if test "x$ac_ct_CC" = x; then
4416 case $cross_compiling:$ac_tool_warned in
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4419 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420 ac_tool_warned=yes ;;
4431 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4433 as_fn_error $? "no acceptable C compiler found in \$PATH
4434 See \`config.log' for more details" "$LINENO" 5; }
4436 # Provide some information about the compiler.
4437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4440 for ac_option in --version -v -V -qversion -version; do
4441 { { ac_try="$ac_compiler $ac_option >&5"
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447 printf "%s\n" "$ac_try_echo"; } >&5
4448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4450 if test -s conftest.err; then
4452 ... rest of stderr output deleted ...
4453 10q' conftest.err >conftest.er1
4454 cat conftest.er1 >&5
4456 rm -f conftest.er1 conftest.err
4457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4462 printf %s "checking whether the compiler supports GNU C... " >&6; }
4463 if test ${ac_cv_c_compiler_gnu+y}
4465 printf %s "(cached) " >&6
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4481 if ac_fn_c_try_compile "$LINENO"
4487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4492 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495 if test $ac_compiler_gnu = yes; then
4500 ac_test_CFLAGS=${CFLAGS+y}
4501 ac_save_CFLAGS=$CFLAGS
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4503 printf %s "checking whether $CC accepts -g... " >&6; }
4504 if test ${ac_cv_prog_cc_g+y}
4506 printf %s "(cached) " >&6
4508 ac_save_c_werror_flag=$ac_c_werror_flag
4509 ac_c_werror_flag=yes
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4523 if ac_fn_c_try_compile "$LINENO"
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 if ac_fn_c_try_compile "$LINENO"
4543 ac_c_werror_flag=$ac_save_c_werror_flag
4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4556 if ac_fn_c_try_compile "$LINENO"
4560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4565 ac_c_werror_flag=$ac_save_c_werror_flag
4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4568 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4569 if test $ac_test_CFLAGS; then
4570 CFLAGS=$ac_save_CFLAGS
4571 elif test $ac_cv_prog_cc_g = yes; then
4572 if test "$GCC" = yes; then
4578 if test "$GCC" = yes; then
4585 if test x$ac_prog_cc_stdc = xno
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4588 printf %s "checking for $CC option to enable C11 features... " >&6; }
4589 if test ${ac_cv_prog_cc_c11+y}
4591 printf %s "(cached) " >&6
4593 ac_cv_prog_cc_c11=no
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597 $ac_c_conftest_c11_program
4599 for ac_arg in '' -std=gnu11
4601 CC="$ac_save_CC $ac_arg"
4602 if ac_fn_c_try_compile "$LINENO"
4604 ac_cv_prog_cc_c11=$ac_arg
4606 rm -f core conftest.err conftest.$ac_objext conftest.beam
4607 test "x$ac_cv_prog_cc_c11" != "xno" && break
4609 rm -f conftest.$ac_ext
4613 if test "x$ac_cv_prog_cc_c11" = xno
4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4616 printf "%s\n" "unsupported" >&6; }
4618 if test "x$ac_cv_prog_cc_c11" = x
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4621 printf "%s\n" "none needed" >&6; }
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4624 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4625 CC="$CC $ac_cv_prog_cc_c11"
4627 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4631 if test x$ac_prog_cc_stdc = xno
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4634 printf %s "checking for $CC option to enable C99 features... " >&6; }
4635 if test ${ac_cv_prog_cc_c99+y}
4637 printf %s "(cached) " >&6
4639 ac_cv_prog_cc_c99=no
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 $ac_c_conftest_c99_program
4645 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4647 CC="$ac_save_CC $ac_arg"
4648 if ac_fn_c_try_compile "$LINENO"
4650 ac_cv_prog_cc_c99=$ac_arg
4652 rm -f core conftest.err conftest.$ac_objext conftest.beam
4653 test "x$ac_cv_prog_cc_c99" != "xno" && break
4655 rm -f conftest.$ac_ext
4659 if test "x$ac_cv_prog_cc_c99" = xno
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4662 printf "%s\n" "unsupported" >&6; }
4664 if test "x$ac_cv_prog_cc_c99" = x
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4667 printf "%s\n" "none needed" >&6; }
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4670 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4671 CC="$CC $ac_cv_prog_cc_c99"
4673 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4677 if test x$ac_prog_cc_stdc = xno
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4680 printf %s "checking for $CC option to enable C89 features... " >&6; }
4681 if test ${ac_cv_prog_cc_c89+y}
4683 printf %s "(cached) " >&6
4685 ac_cv_prog_cc_c89=no
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 $ac_c_conftest_c89_program
4691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4693 CC="$ac_save_CC $ac_arg"
4694 if ac_fn_c_try_compile "$LINENO"
4696 ac_cv_prog_cc_c89=$ac_arg
4698 rm -f core conftest.err conftest.$ac_objext conftest.beam
4699 test "x$ac_cv_prog_cc_c89" != "xno" && break
4701 rm -f conftest.$ac_ext
4705 if test "x$ac_cv_prog_cc_c89" = xno
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4708 printf "%s\n" "unsupported" >&6; }
4710 if test "x$ac_cv_prog_cc_c89" = x
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4713 printf "%s\n" "none needed" >&6; }
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4716 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4717 CC="$CC $ac_cv_prog_cc_c89"
4719 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4725 ac_cpp='$CPP $CPPFLAGS'
4726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731 ac_cpp='$CPP $CPPFLAGS'
4732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4736 printf %s "checking how to run the C preprocessor... " >&6; }
4737 # On Suns, sometimes $CPP names a directory.
4738 if test -n "$CPP" && test -d "$CPP"; then
4741 if test -z "$CPP"; then
4742 if test ${ac_cv_prog_CPP+y}
4744 printf %s "(cached) " >&6
4746 # Double quotes because $CC needs to be expanded
4747 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4750 for ac_c_preproc_warn_flag in '' yes
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
4754 # On the NeXT, cc -E runs the code through the compiler's parser,
4755 # not just through cpp. "Syntax error" is here to catch this case.
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4761 if ac_fn_c_try_cpp "$LINENO"
4765 # Broken: fails on valid input.
4768 rm -f conftest.err conftest.i conftest.$ac_ext
4770 # OK, works on sane cases. Now check whether nonexistent headers
4771 # can be detected and how.
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <ac_nonexistent.h>
4776 if ac_fn_c_try_cpp "$LINENO"
4778 # Broken: success on invalid input.
4781 # Passes both tests.
4785 rm -f conftest.err conftest.i conftest.$ac_ext
4788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4789 rm -f conftest.i conftest.err conftest.$ac_ext
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4804 printf "%s\n" "$CPP" >&6; }
4806 for ac_c_preproc_warn_flag in '' yes
4808 # Use a header file that comes with gcc, so configuring glibc
4809 # with a fresh cross-compiler works.
4810 # On the NeXT, cc -E runs the code through the compiler's parser,
4811 # not just through cpp. "Syntax error" is here to catch this case.
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4817 if ac_fn_c_try_cpp "$LINENO"
4821 # Broken: fails on valid input.
4824 rm -f conftest.err conftest.i conftest.$ac_ext
4826 # OK, works on sane cases. Now check whether nonexistent headers
4827 # can be detected and how.
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 #include <ac_nonexistent.h>
4832 if ac_fn_c_try_cpp "$LINENO"
4834 # Broken: success on invalid input.
4837 # Passes both tests.
4841 rm -f conftest.err conftest.i conftest.$ac_ext
4844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4845 rm -f conftest.i conftest.err conftest.$ac_ext
4850 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4851 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4852 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4853 See \`config.log' for more details" "$LINENO" 5; }
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863 #--------------------------------------------------------------------
4864 # Checks to see if the make program sets the $MAKE variable.
4865 #--------------------------------------------------------------------
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4868 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4870 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4871 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4873 printf %s "(cached) " >&6
4875 cat >conftest.make <<\_ACEOF
4878 @echo '@@@%%%=$(MAKE)=@@@%%%'
4880 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4881 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4883 eval ac_cv_prog_make_${ac_make}_set=yes;;
4885 eval ac_cv_prog_make_${ac_make}_set=no;;
4889 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4891 printf "%s\n" "yes" >&6; }
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 printf "%s\n" "no" >&6; }
4896 SET_MAKE="MAKE=${MAKE-make}"
4900 #--------------------------------------------------------------------
4902 #--------------------------------------------------------------------
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 printf %s "checking for $ac_word... " >&6; }
4909 if test ${ac_cv_prog_RANLIB+y}
4911 printf %s "(cached) " >&6
4913 if test -n "$RANLIB"; then
4914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 case $as_dir in #(((
4923 *) as_dir=$as_dir/ ;;
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4937 RANLIB=$ac_cv_prog_RANLIB
4938 if test -n "$RANLIB"; then
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4940 printf "%s\n" "$RANLIB" >&6; }
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 printf "%s\n" "no" >&6; }
4948 if test -z "$ac_cv_prog_RANLIB"; then
4949 ac_ct_RANLIB=$RANLIB
4950 # Extract the first word of "ranlib", so it can be a program name with args.
4951 set dummy ranlib; ac_word=$2
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 printf %s "checking for $ac_word... " >&6; }
4954 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4956 printf %s "(cached) " >&6
4958 if test -n "$ac_ct_RANLIB"; then
4959 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 case $as_dir in #(((
4968 *) as_dir=$as_dir/ ;;
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_ac_ct_RANLIB="ranlib"
4973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4982 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4983 if test -n "$ac_ct_RANLIB"; then
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4985 printf "%s\n" "$ac_ct_RANLIB" >&6; }
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 printf "%s\n" "no" >&6; }
4991 if test "x$ac_ct_RANLIB" = x; then
4994 case $cross_compiling:$ac_tool_warned in
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998 ac_tool_warned=yes ;;
5000 RANLIB=$ac_ct_RANLIB
5003 RANLIB="$ac_cv_prog_RANLIB"
5007 #--------------------------------------------------------------------
5008 # Determines the correct binary file extension (.o, .obj, .exe etc.)
5009 #--------------------------------------------------------------------
5014 ac_header= ac_cache=
5015 for ac_item in $ac_header_c_list
5017 if test $ac_cache; then
5018 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5019 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5020 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5022 ac_header= ac_cache=
5023 elif test $ac_header; then
5037 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5040 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5044 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
5047 #------------------------------------------------------------------------
5048 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
5049 # It makes compiling go faster. (This is only a performance feature.)
5050 #------------------------------------------------------------------------
5052 if test -z "$no_pipe" -a -n "$GCC"; then
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
5054 printf %s "checking if the compiler understands -pipe... " >&6; }
5055 if test ${tcl_cv_cc_pipe+y}
5057 printf %s "(cached) " >&6
5060 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe"
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5072 if ac_fn_c_try_compile "$LINENO"
5078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5
5082 printf "%s\n" "$tcl_cv_cc_pipe" >&6; }
5083 if test $tcl_cv_cc_pipe = yes; then
5084 CFLAGS="$CFLAGS -pipe"
5088 #--------------------------------------------------------------------
5089 # Common compiler flag setup
5090 #--------------------------------------------------------------------
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5093 printf %s "checking whether byte ordering is bigendian... " >&6; }
5094 if test ${ac_cv_c_bigendian+y}
5096 printf %s "(cached) " >&6
5098 ac_cv_c_bigendian=unknown
5099 # See if we're dealing with a universal compiler.
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 #ifndef __APPLE_CC__
5103 not a universal capable compiler
5108 if ac_fn_c_try_compile "$LINENO"
5111 # Check for potential -arch flags. It is not universal unless
5112 # there are at least two -arch flags with different values.
5115 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5116 if test -n "$ac_prev"; then
5118 i?86 | x86_64 | ppc | ppc64)
5119 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5122 ac_cv_c_bigendian=universal
5128 elif test "x$ac_word" = "x-arch"; then
5133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5134 if test $ac_cv_c_bigendian = unknown; then
5135 # See if sys/param.h defines the BYTE_ORDER macro.
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 #include <sys/types.h>
5139 #include <sys/param.h>
5144 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5145 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5154 if ac_fn_c_try_compile "$LINENO"
5156 # It does; now see whether it defined to BIG_ENDIAN or not.
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 #include <sys/types.h>
5160 #include <sys/param.h>
5165 #if BYTE_ORDER != BIG_ENDIAN
5173 if ac_fn_c_try_compile "$LINENO"
5175 ac_cv_c_bigendian=yes
5177 ac_cv_c_bigendian=no
5179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5183 if test $ac_cv_c_bigendian = unknown; then
5184 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5192 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5200 if ac_fn_c_try_compile "$LINENO"
5202 # It does; now see whether it defined to _BIG_ENDIAN or not.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5218 if ac_fn_c_try_compile "$LINENO"
5220 ac_cv_c_bigendian=yes
5222 ac_cv_c_bigendian=no
5224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5228 if test $ac_cv_c_bigendian = unknown; then
5229 # Compile a test program.
5230 if test "$cross_compiling" = yes
5232 # Try to guess by grepping values from an object file.
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 unsigned short int ascii_mm[] =
5236 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5237 unsigned short int ascii_ii[] =
5238 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5239 int use_ascii (int i) {
5240 return ascii_mm[i] + ascii_ii[i];
5242 unsigned short int ebcdic_ii[] =
5243 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5244 unsigned short int ebcdic_mm[] =
5245 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5246 int use_ebcdic (int i) {
5247 return ebcdic_mm[i] + ebcdic_ii[i];
5254 return use_ascii (foo) == use_ebcdic (foo);
5259 if ac_fn_c_try_compile "$LINENO"
5261 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5262 ac_cv_c_bigendian=yes
5264 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5265 if test "$ac_cv_c_bigendian" = unknown; then
5266 ac_cv_c_bigendian=no
5268 # finding both strings is unlikely to happen, but who knows?
5269 ac_cv_c_bigendian=unknown
5273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 $ac_includes_default
5282 /* Are we little or big endian? From Harbison&Steele. */
5286 char c[sizeof (long int)];
5289 return u.c[sizeof (long int) - 1] == 1;
5295 if ac_fn_c_try_run "$LINENO"
5297 ac_cv_c_bigendian=no
5299 ac_cv_c_bigendian=yes
5301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5302 conftest.$ac_objext conftest.beam conftest.$ac_ext
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5308 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5309 case $ac_cv_c_bigendian in #(
5311 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5317 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5321 as_fn_error $? "unknown endianness
5322 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5327 #-----------------------------------------------------------------------
5329 # Specify the C source files to compile in TEA_ADD_SOURCES,
5330 # public headers that need to be installed in TEA_ADD_HEADERS,
5331 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
5332 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
5333 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
5334 # and PKG_TCL_SOURCES.
5335 #-----------------------------------------------------------------------
5343 PKG_SOURCES="$PKG_SOURCES $i"
5344 PKG_OBJECTS="$PKG_OBJECTS $i"
5347 # check for existence - allows for generic/win/unix VPATH
5348 # To add more dirs here (like 'src'), you have to update VPATH
5349 # in Makefile.in as well
5350 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5351 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5352 -a ! -f "${srcdir}/macosx/$i" \
5354 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
5356 PKG_SOURCES="$PKG_SOURCES $i"
5357 # this assumes it is in a VPATH dir
5359 # handle user calling this before or after TEA_SETUP_COMPILER
5360 if test x"${OBJEXT}" != x ; then
5361 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5363 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5365 PKG_OBJECTS="$PKG_OBJECTS $j"
5375 # check for existence, be strict because it is installed
5376 if test ! -f "${srcdir}/$i" ; then
5377 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
5379 PKG_HEADERS="$PKG_HEADERS $i"
5386 PKG_INCLUDES="$PKG_INCLUDES $i"
5393 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5394 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5395 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
5397 PKG_LIBS="$PKG_LIBS $i"
5402 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_FTS3=1"
5406 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_FTS4=1"
5410 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_FTS5=1"
5414 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_3_SUFFIX_ONLY=1"
5418 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_RTREE=1"
5422 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_GEOPOLY=1"
5426 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_MATH_FUNCTIONS=1"
5430 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_DESERIALIZE=1"
5434 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_DBPAGE_VTAB=1"
5438 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_BYTECODE_VTAB=1"
5442 PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_DBSTAT_VTAB=1"
5448 # check for existence - allows for generic/win/unix VPATH
5449 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
5450 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
5451 -a ! -f "${srcdir}/macosx/$i" \
5453 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
5455 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
5456 # this assumes it is in a VPATH dir
5458 # handle user calling this before or after TEA_SETUP_COMPILER
5459 if test x"${OBJEXT}" != x ; then
5460 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
5462 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
5464 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
5472 # check for existence, be strict because it is installed
5473 if test ! -f "${srcdir}/$i" ; then
5474 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
5476 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
5481 #--------------------------------------------------------------------
5482 # The --with-system-sqlite causes the TCL bindings to SQLite to use
5483 # the system shared library for SQLite rather than statically linking
5484 # against its own private copy. This is dangerous and leads to
5485 # undersirable dependences and is not recommended.
5487 #--------------------------------------------------------------------
5489 # Check whether --with-system-sqlite was given.
5490 if test ${with_system_sqlite+y}
5492 withval=$with_system_sqlite;
5494 with_system_sqlite=no
5497 if test x$with_system_sqlite != xno; then
5498 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
5499 if test "x$ac_cv_header_sqlite3_h" = xyes
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5
5502 printf %s "checking for sqlite3_initialize in -lsqlite3... " >&6; }
5503 if test ${ac_cv_lib_sqlite3_sqlite3_initialize+y}
5505 printf %s "(cached) " >&6
5507 ac_check_lib_save_LIBS=$LIBS
5508 LIBS="-lsqlite3 $LIBS"
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5512 /* Override any GCC internal prototype to avoid an error.
5513 Use char because int might match the return type of a GCC
5514 builtin and then its argument prototype would still apply. */
5515 char sqlite3_initialize ();
5519 return sqlite3_initialize ();
5524 if ac_fn_c_try_link "$LINENO"
5526 ac_cv_lib_sqlite3_sqlite3_initialize=yes
5528 ac_cv_lib_sqlite3_sqlite3_initialize=no
5530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5531 conftest$ac_exeext conftest.$ac_ext
5532 LIBS=$ac_check_lib_save_LIBS
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5
5535 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; }
5536 if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = xyes
5538 printf "%s\n" "#define USE_SYSTEM_SQLITE 1" >>confdefs.h
5540 LIBS="$LIBS -lsqlite3"
5547 #--------------------------------------------------------------------
5550 # You can add more files to clean if your extension creates any extra
5551 # files by extending CLEANFILES.
5552 # Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
5553 # and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
5555 # A few miscellaneous platform-specific items:
5556 # TEA_ADD_* any platform specific compiler/build info here.
5557 #--------------------------------------------------------------------
5559 #CLEANFILES="$CLEANFILES pkgIndex.tcl"
5560 if test "${TEA_PLATFORM}" = "windows" ; then
5561 # Ensure no empty if clauses
5563 #TEA_ADD_SOURCES([win/winFile.c])
5564 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
5566 # Ensure no empty else clauses
5568 #TEA_ADD_SOURCES([unix/unixFile.c])
5569 #TEA_ADD_LIBS([-lsuperfly])
5572 #--------------------------------------------------------------------
5574 # Choose which headers you need. Extension authors should try very
5575 # hard to only rely on the Tcl public header files. Internal headers
5576 # contain private data structures and are subject to change without
5578 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
5579 #--------------------------------------------------------------------
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
5583 printf %s "checking for Tcl public headers... " >&6; }
5586 # Check whether --with-tclinclude was given.
5587 if test ${with_tclinclude+y}
5589 withval=$with_tclinclude; with_tclinclude=${withval}
5593 if test ${ac_cv_c_tclh+y}
5595 printf %s "(cached) " >&6
5598 # Use the value from --with-tclinclude, if it was given
5600 if test x"${with_tclinclude}" != x ; then
5601 if test -f "${with_tclinclude}/tcl.h" ; then
5602 ac_cv_c_tclh=${with_tclinclude}
5604 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
5608 if test "`uname -s`" = "Darwin"; then
5609 # If Tcl was built as a framework, attempt to use
5610 # the framework's Headers directory
5613 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
5618 # Look in the source dir only if Tcl is not installed,
5619 # and in that situation, look there before installed locations.
5620 if test -f "${TCL_BIN_DIR}/Makefile" ; then
5621 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
5624 # Check order: pkg --prefix location, Tcl's --prefix location,
5625 # relative to directory of tclConfig.sh.
5627 eval "temp_includedir=${includedir}"
5629 `ls -d ${temp_includedir} 2>/dev/null` \
5630 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
5631 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
5632 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
5633 list="$list /usr/local/include /usr/include"
5634 if test x"${TCL_INCLUDE_SPEC}" != x ; then
5635 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
5636 list="$list `ls -d ${d} 2>/dev/null`"
5640 if test -f "$i/tcl.h" ; then
5650 # Print a message based on how we determined the include path
5652 if test x"${ac_cv_c_tclh}" = x ; then
5653 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
5656 printf "%s\n" "${ac_cv_c_tclh}" >&6; }
5659 # Convert to a native path and substitute into the output files.
5661 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
5663 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
5667 #TEA_PRIVATE_TCL_HEADERS
5669 #TEA_PUBLIC_TK_HEADERS
5670 #TEA_PRIVATE_TK_HEADERS
5673 #--------------------------------------------------------------------
5674 # Check whether --enable-threads or --disable-threads was given.
5675 # This auto-enables if Tcl was compiled threaded.
5676 #--------------------------------------------------------------------
5679 # Check whether --enable-threads was given.
5680 if test ${enable_threads+y}
5682 enableval=$enable_threads; tcl_ok=$enableval
5688 if test "${enable_threads+set}" = set; then
5689 enableval="$enable_threads"
5695 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
5698 if test "${TEA_PLATFORM}" != "windows" ; then
5699 # We are always OK on Windows, so check what this platform wants:
5701 # USE_THREAD_ALLOC tells us to try the special thread-based
5702 # allocator that significantly reduces lock contention
5704 printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h
5707 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
5709 if test "`uname -s`" = "SunOS" ; then
5711 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5715 printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
5718 printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
5719 if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
5721 printf %s "(cached) " >&6
5723 ac_check_lib_save_LIBS=$LIBS
5724 LIBS="-lpthread $LIBS"
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5728 /* Override any GCC internal prototype to avoid an error.
5729 Use char because int might match the return type of a GCC
5730 builtin and then its argument prototype would still apply. */
5731 char pthread_mutex_init ();
5735 return pthread_mutex_init ();
5740 if ac_fn_c_try_link "$LINENO"
5742 ac_cv_lib_pthread_pthread_mutex_init=yes
5744 ac_cv_lib_pthread_pthread_mutex_init=no
5746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5747 conftest$ac_exeext conftest.$ac_ext
5748 LIBS=$ac_check_lib_save_LIBS
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
5751 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
5752 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
5759 if test "$tcl_ok" = "no"; then
5760 # Check a little harder for __pthread_mutex_init in the same
5761 # library, as some systems hide it there until pthread.h is
5762 # defined. We could alternatively do an AC_TRY_COMPILE with
5763 # pthread.h, but that will work with libpthread really doesn't
5764 # exist, like AIX 4.2. [Bug: 4359]
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
5766 printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; }
5767 if test ${ac_cv_lib_pthread___pthread_mutex_init+y}
5769 printf %s "(cached) " >&6
5771 ac_check_lib_save_LIBS=$LIBS
5772 LIBS="-lpthread $LIBS"
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5776 /* Override any GCC internal prototype to avoid an error.
5777 Use char because int might match the return type of a GCC
5778 builtin and then its argument prototype would still apply. */
5779 char __pthread_mutex_init ();
5783 return __pthread_mutex_init ();
5788 if ac_fn_c_try_link "$LINENO"
5790 ac_cv_lib_pthread___pthread_mutex_init=yes
5792 ac_cv_lib_pthread___pthread_mutex_init=no
5794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5795 conftest$ac_exeext conftest.$ac_ext
5796 LIBS=$ac_check_lib_save_LIBS
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
5799 printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
5800 if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes
5809 if test "$tcl_ok" = "yes"; then
5810 # The space is needed
5811 THREADS_LIBS=" -lpthread"
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
5814 printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; }
5815 if test ${ac_cv_lib_pthreads_pthread_mutex_init+y}
5817 printf %s "(cached) " >&6
5819 ac_check_lib_save_LIBS=$LIBS
5820 LIBS="-lpthreads $LIBS"
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5824 /* Override any GCC internal prototype to avoid an error.
5825 Use char because int might match the return type of a GCC
5826 builtin and then its argument prototype would still apply. */
5827 char pthread_mutex_init ();
5831 return pthread_mutex_init ();
5836 if ac_fn_c_try_link "$LINENO"
5838 ac_cv_lib_pthreads_pthread_mutex_init=yes
5840 ac_cv_lib_pthreads_pthread_mutex_init=no
5842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5843 conftest$ac_exeext conftest.$ac_ext
5844 LIBS=$ac_check_lib_save_LIBS
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
5847 printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
5848 if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes
5855 if test "$tcl_ok" = "yes"; then
5856 # The space is needed
5857 THREADS_LIBS=" -lpthreads"
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
5860 printf %s "checking for pthread_mutex_init in -lc... " >&6; }
5861 if test ${ac_cv_lib_c_pthread_mutex_init+y}
5863 printf %s "(cached) " >&6
5865 ac_check_lib_save_LIBS=$LIBS
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5870 /* Override any GCC internal prototype to avoid an error.
5871 Use char because int might match the return type of a GCC
5872 builtin and then its argument prototype would still apply. */
5873 char pthread_mutex_init ();
5877 return pthread_mutex_init ();
5882 if ac_fn_c_try_link "$LINENO"
5884 ac_cv_lib_c_pthread_mutex_init=yes
5886 ac_cv_lib_c_pthread_mutex_init=no
5888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5889 conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
5893 printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; }
5894 if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes
5901 if test "$tcl_ok" = "no"; then
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
5903 printf %s "checking for pthread_mutex_init in -lc_r... " >&6; }
5904 if test ${ac_cv_lib_c_r_pthread_mutex_init+y}
5906 printf %s "(cached) " >&6
5908 ac_check_lib_save_LIBS=$LIBS
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5913 /* Override any GCC internal prototype to avoid an error.
5914 Use char because int might match the return type of a GCC
5915 builtin and then its argument prototype would still apply. */
5916 char pthread_mutex_init ();
5920 return pthread_mutex_init ();
5925 if ac_fn_c_try_link "$LINENO"
5927 ac_cv_lib_c_r_pthread_mutex_init=yes
5929 ac_cv_lib_c_r_pthread_mutex_init=no
5931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5932 conftest$ac_exeext conftest.$ac_ext
5933 LIBS=$ac_check_lib_save_LIBS
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
5936 printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
5937 if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes
5944 if test "$tcl_ok" = "yes"; then
5945 # The space is needed
5946 THREADS_LIBS=" -pthread"
5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
5950 printf "%s\n" "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
5959 # Do checking message here to not mess up interleaved configure output
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
5961 printf %s "checking for building with threads... " >&6; }
5962 if test "${TCL_THREADS}" = 1; then
5964 printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
5967 printf "%s\n" "yes (default)" >&6; }
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 printf "%s\n" "no" >&6; }
5972 # TCL_THREADS sanity checking. See if our request for building with
5973 # threads is the same as the way Tcl was built. If not, warn the user.
5976 if test "${TCL_THREADS}" = "0"; then
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
5978 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
5979 that IS thread-enabled. It is recommended to use --enable-threads." >&5
5980 printf "%s\n" "$as_me: WARNING:
5981 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
5982 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
5988 if test "${TCL_THREADS}" = "1" ; then
5990 printf "%s\n" "#define SQLITE_THREADSAFE 1" >>confdefs.h
5992 # Not automatically added by Tcl because its assumed Tcl links to them,
5993 # but it may not if it isn't really a threaded build.
5995 vars="$THREADS_LIBS"
5997 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5998 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5999 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6001 PKG_LIBS="$PKG_LIBS $i"
6007 printf "%s\n" "#define SQLITE_THREADSAFE 0" >>confdefs.h
6011 #--------------------------------------------------------------------
6012 # The statement below defines a collection of symbols related to
6013 # building as a shared library instead of a static library.
6014 #--------------------------------------------------------------------
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
6018 printf %s "checking how to build libraries... " >&6; }
6019 # Check whether --enable-shared was given.
6020 if test ${enable_shared+y}
6022 enableval=$enable_shared; shared_ok=$enableval
6028 if test "${enable_shared+set}" = set; then
6029 enableval="$enable_shared"
6030 shared_ok=$enableval
6035 # Check whether --enable-stubs was given.
6036 if test ${enable_stubs+y}
6038 enableval=$enable_stubs; stubs_ok=$enableval
6044 if test "${enable_stubs+set}" = set; then
6045 enableval="$enable_stubs"
6051 # Stubs are always enabled for shared builds
6052 if test "$shared_ok" = "yes" ; then
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5
6054 printf "%s\n" "shared" >&6; }
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
6059 printf "%s\n" "static" >&6; }
6062 printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h
6064 if test "$stubs_ok" = "yes" ; then
6070 if test "${STUBS_BUILD}" = "1" ; then
6072 printf "%s\n" "#define USE_TCL_STUBS 1" >>confdefs.h
6075 printf "%s\n" "#define USE_TCLOO_STUBS 1" >>confdefs.h
6077 if test "${TEA_WINDOWINGSYSTEM}" != ""; then
6079 printf "%s\n" "#define USE_TK_STUBS 1" >>confdefs.h
6088 #--------------------------------------------------------------------
6089 # This macro figures out what flags to use with the compiler/linker
6090 # when building shared/static debug/optimized objects. This information
6091 # can be taken from the tclConfig.sh file, but this figures it all out.
6092 #--------------------------------------------------------------------
6094 if test -n "$ac_tool_prefix"; then
6095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 printf %s "checking for $ac_word... " >&6; }
6099 if test ${ac_cv_prog_RANLIB+y}
6101 printf %s "(cached) " >&6
6103 if test -n "$RANLIB"; then
6104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 case $as_dir in #(((
6113 *) as_dir=$as_dir/ ;;
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6127 RANLIB=$ac_cv_prog_RANLIB
6128 if test -n "$RANLIB"; then
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6130 printf "%s\n" "$RANLIB" >&6; }
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 printf "%s\n" "no" >&6; }
6138 if test -z "$ac_cv_prog_RANLIB"; then
6139 ac_ct_RANLIB=$RANLIB
6140 # Extract the first word of "ranlib", so it can be a program name with args.
6141 set dummy ranlib; ac_word=$2
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 printf %s "checking for $ac_word... " >&6; }
6144 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6146 printf %s "(cached) " >&6
6148 if test -n "$ac_ct_RANLIB"; then
6149 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 case $as_dir in #(((
6158 *) as_dir=$as_dir/ ;;
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6162 ac_cv_prog_ac_ct_RANLIB="ranlib"
6163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6173 if test -n "$ac_ct_RANLIB"; then
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6175 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 printf "%s\n" "no" >&6; }
6181 if test "x$ac_ct_RANLIB" = x; then
6184 case $cross_compiling:$ac_tool_warned in
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6190 RANLIB=$ac_ct_RANLIB
6193 RANLIB="$ac_cv_prog_RANLIB"
6199 # Step 0.a: Enable 64 bit support?
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
6202 printf %s "checking if 64bit support is requested... " >&6; }
6203 # Check whether --enable-64bit was given.
6204 if test ${enable_64bit+y}
6206 enableval=$enable_64bit; do64bit=$enableval
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
6212 printf "%s\n" "$do64bit" >&6; }
6214 # Step 0.b: Enable Solaris 64 bit VIS support?
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
6217 printf %s "checking if 64bit Sparc VIS support is requested... " >&6; }
6218 # Check whether --enable-64bit-vis was given.
6219 if test ${enable_64bit_vis+y}
6221 enableval=$enable_64bit_vis; do64bitVIS=$enableval
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
6227 printf "%s\n" "$do64bitVIS" >&6; }
6228 # Force 64bit on with VIS
6229 if test "$do64bitVIS" = "yes"
6234 # Step 0.c: Check if visibility support is available. Do this here so
6235 # that platform specific alternatives can be used below if this fails.
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5
6238 printf %s "checking if compiler supports visibility \"hidden\"... " >&6; }
6239 if test ${tcl_cv_cc_visibility_hidden+y}
6241 printf %s "(cached) " >&6
6244 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror"
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6248 extern __attribute__((__visibility__("hidden"))) void f(void);
6258 if ac_fn_c_try_link "$LINENO"
6260 tcl_cv_cc_visibility_hidden=yes
6262 tcl_cv_cc_visibility_hidden=no
6264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6265 conftest$ac_exeext conftest.$ac_ext
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5
6269 printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; }
6270 if test $tcl_cv_cc_visibility_hidden = yes
6274 printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h
6277 printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h
6282 # Step 0.d: Disable -rpath support?
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5
6285 printf %s "checking if rpath support is requested... " >&6; }
6286 # Check whether --enable-rpath was given.
6287 if test ${enable_rpath+y}
6289 enableval=$enable_rpath; doRpath=$enableval
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5
6295 printf "%s\n" "$doRpath" >&6; }
6297 # Set the variable "system" to hold the name and version number
6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5
6302 printf %s "checking system version... " >&6; }
6303 if test ${tcl_cv_sys_version+y}
6305 printf %s "(cached) " >&6
6309 if test "${TEA_PLATFORM}" = "windows" ; then
6310 tcl_cv_sys_version=windows
6312 tcl_cv_sys_version=`uname -s`-`uname -r`
6313 if test "$?" -ne 0 ; then
6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
6315 printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;}
6316 tcl_cv_sys_version=unknown
6318 if test "`uname -s`" = "AIX" ; then
6319 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
6321 if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
6322 tcl_cv_sys_version=NetBSD-Debian
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
6329 printf "%s\n" "$tcl_cv_sys_version" >&6; }
6330 system=$tcl_cv_sys_version
6333 # Require ranlib early so we can override it in special cases below.
6337 # Set configuration options based on system name and version.
6338 # This is similar to Tcl's unix/tcl.m4 except that we've added a
6339 # "windows" case and removed some core-only vars.
6342 # default to '{$LIBS}' and set to "" on per-platform necessary basis
6343 SHLIB_LD_LIBS='${LIBS}'
6344 # When ld needs options to work in 64-bit mode, put them in
6345 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
6346 # is disabled by the user. [Bug 1016796]
6348 UNSHARED_LIB_SUFFIX=""
6349 # TEA specific: use PACKAGE_VERSION instead of VERSION
6350 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
6351 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
6352 TCL_LIB_VERSIONS_OK=ok
6354 if test "$GCC" = yes
6358 CFLAGS_WARNING="-Wall"
6366 if test -n "$ac_tool_prefix"; then
6367 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6368 set dummy ${ac_tool_prefix}ar; ac_word=$2
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 printf %s "checking for $ac_word... " >&6; }
6371 if test ${ac_cv_prog_AR+y}
6373 printf %s "(cached) " >&6
6375 if test -n "$AR"; then
6376 ac_cv_prog_AR="$AR" # Let the user override the test.
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 case $as_dir in #(((
6385 *) as_dir=$as_dir/ ;;
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_AR="${ac_tool_prefix}ar"
6390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6400 if test -n "$AR"; then
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6402 printf "%s\n" "$AR" >&6; }
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 printf "%s\n" "no" >&6; }
6410 if test -z "$ac_cv_prog_AR"; then
6412 # Extract the first word of "ar", so it can be a program name with args.
6413 set dummy ar; ac_word=$2
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 printf %s "checking for $ac_word... " >&6; }
6416 if test ${ac_cv_prog_ac_ct_AR+y}
6418 printf %s "(cached) " >&6
6420 if test -n "$ac_ct_AR"; then
6421 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 case $as_dir in #(((
6430 *) as_dir=$as_dir/ ;;
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6434 ac_cv_prog_ac_ct_AR="ar"
6435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6444 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6445 if test -n "$ac_ct_AR"; then
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6447 printf "%s\n" "$ac_ct_AR" >&6; }
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 printf "%s\n" "no" >&6; }
6453 if test "x$ac_ct_AR" = x; then
6456 case $cross_compiling:$ac_tool_warned in
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6469 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
6470 if test "x$SHLIB_VERSION" = x
6474 SHLIB_VERSION=".$SHLIB_VERSION"
6480 if test "$do64bit" != "no" ; then
6483 MACHINE="AMD64" ; # default to AMD64 64-bit build
6494 if test "$GCC" != "yes" ; then
6495 if test "${SHARED_BUILD}" = "0" ; then
6500 case "x`echo \${VisualStudioVersion}`" in
6502 lflags="${lflags} -nodefaultlib:libucrt.lib"
6506 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6507 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6508 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6510 PKG_LIBS="$PKG_LIBS $i"
6519 if test "$do64bit" != "no" ; then
6522 lflags="${lflags} -nologo -MACHINE:${MACHINE} "
6524 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
6525 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6526 # Avoid 'unresolved external symbol __security_cookie'
6527 # errors, c.f. http://support.microsoft.com/?id=894573
6529 vars="bufferoverflowU.lib"
6531 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
6532 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
6533 i=`echo "$i" | sed -e 's/^\([^-].*\)\.[lL][iI][bB]$/-l\1/'`
6535 PKG_LIBS="$PKG_LIBS $i"
6541 lflags="${lflags} -nologo"
6543 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
6544 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
6548 if test "$GCC" = "yes"; then
6550 if test -n "$ac_tool_prefix"; then
6551 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}windres; ac_word=$2
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 printf %s "checking for $ac_word... " >&6; }
6555 if test ${ac_cv_prog_RC+y}
6557 printf %s "(cached) " >&6
6559 if test -n "$RC"; then
6560 ac_cv_prog_RC="$RC" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 case $as_dir in #(((
6569 *) as_dir=$as_dir/ ;;
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6573 ac_cv_prog_RC="${ac_tool_prefix}windres"
6574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6584 if test -n "$RC"; then
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
6586 printf "%s\n" "$RC" >&6; }
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 printf "%s\n" "no" >&6; }
6594 if test -z "$ac_cv_prog_RC"; then
6596 # Extract the first word of "windres", so it can be a program name with args.
6597 set dummy windres; ac_word=$2
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599 printf %s "checking for $ac_word... " >&6; }
6600 if test ${ac_cv_prog_ac_ct_RC+y}
6602 printf %s "(cached) " >&6
6604 if test -n "$ac_ct_RC"; then
6605 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 case $as_dir in #(((
6614 *) as_dir=$as_dir/ ;;
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_ac_ct_RC="windres"
6619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6628 ac_ct_RC=$ac_cv_prog_ac_ct_RC
6629 if test -n "$ac_ct_RC"; then
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
6631 printf "%s\n" "$ac_ct_RC" >&6; }
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 printf "%s\n" "no" >&6; }
6637 if test "x$ac_ct_RC" = x; then
6640 case $cross_compiling:$ac_tool_warned in
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6653 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
6654 SHLIB_LD='${CC} -shared'
6655 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
6656 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
6657 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5
6660 printf %s "checking for cross-compile version of gcc... " >&6; }
6661 if test ${ac_cv_cross+y}
6663 printf %s "(cached) " >&6
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6669 #error cross-compiler
6680 if ac_fn_c_try_compile "$LINENO"
6686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5
6690 printf "%s\n" "$ac_cv_cross" >&6; }
6691 if test "$ac_cv_cross" = "yes"; then
6694 CC="x86_64-w64-mingw32-${CC}"
6695 LD="x86_64-w64-mingw32-ld"
6696 AR="x86_64-w64-mingw32-ar"
6697 RANLIB="x86_64-w64-mingw32-ranlib"
6698 RC="x86_64-w64-mingw32-windres"
6701 CC="aarch64-w64-mingw32-clang"
6702 LD="aarch64-w64-mingw32-ld"
6703 AR="aarch64-w64-mingw32-ar"
6704 RANLIB="aarch64-w64-mingw32-ranlib"
6705 RC="aarch64-w64-mingw32-windres"
6708 CC="i686-w64-mingw32-${CC}"
6709 LD="i686-w64-mingw32-ld"
6710 AR="i686-w64-mingw32-ar"
6711 RANLIB="i686-w64-mingw32-ranlib"
6712 RC="i686-w64-mingw32-windres"
6718 SHLIB_LD="${LINKBIN} -dll ${lflags}"
6719 # link -lib only works when -lib is the first arg
6720 STLIB_LD="${LINKBIN} -lib ${lflags}"
6721 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
6723 # For information on what debugtype is most useful, see:
6724 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
6726 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx
6727 # This essentially turns it all on.
6728 LDFLAGS_DEBUG="-debug -debugtype:cv"
6729 LDFLAGS_OPTIMIZE="-release"
6730 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
6731 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
6735 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
6737 TCL_LIB_VERSIONS_OK=nodots
6740 if test "$GCC" != "yes"
6743 # AIX requires the _r compiler when gcc isn't being used
6749 # Make sure only first arg gets _r
6750 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
6754 printf "%s\n" "Using $CC for compiling with threads" >&6; }
6761 LD_LIBRARY_PATH_VAR="LIBPATH"
6763 # Check to enable 64-bit flags for compiler/linker
6764 if test "$do64bit" = yes
6767 if test "$GCC" = yes
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6771 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6776 CFLAGS="$CFLAGS -q64"
6778 RANLIB="${RANLIB} -X64"
6780 SHLIB_LD_FLAGS="-b64"
6786 if test "`uname -m`" = ia64
6789 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
6790 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
6791 if test "$GCC" = yes
6794 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
6798 CC_SEARCH_FLAGS='"-R${LIB_RUNTIME_DIR}"'
6801 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
6805 if test "$GCC" = yes
6808 SHLIB_LD='${CC} -shared -Wl,-bexpall'
6812 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry"
6813 LDFLAGS="$LDFLAGS -brtl"
6816 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}"
6817 CC_SEARCH_FLAGS='"-L${LIB_RUNTIME_DIR}"'
6818 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6823 SHLIB_CFLAGS="-fPIC"
6824 SHLIB_LD='${CC} -nostart'
6827 #-----------------------------------------------------------
6828 # Check for inet_ntoa in -lbind, for BeOS (which also needs
6829 # -lsocket, even if the network functions are in -lnet which
6830 # is always linked to, for compatibility.
6831 #-----------------------------------------------------------
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
6833 printf %s "checking for inet_ntoa in -lbind... " >&6; }
6834 if test ${ac_cv_lib_bind_inet_ntoa+y}
6836 printf %s "(cached) " >&6
6838 ac_check_lib_save_LIBS=$LIBS
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6843 /* Override any GCC internal prototype to avoid an error.
6844 Use char because int might match the return type of a GCC
6845 builtin and then its argument prototype would still apply. */
6850 return inet_ntoa ();
6855 if ac_fn_c_try_link "$LINENO"
6857 ac_cv_lib_bind_inet_ntoa=yes
6859 ac_cv_lib_bind_inet_ntoa=no
6861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6862 conftest$ac_exeext conftest.$ac_ext
6863 LIBS=$ac_check_lib_save_LIBS
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
6866 printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; }
6867 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes
6869 LIBS="$LIBS -lbind -lsocket"
6873 BSD/OS-2.1*|BSD/OS-3*)
6875 SHLIB_LD="shlicc -r"
6881 SHLIB_CFLAGS="-export-dynamic -fPIC"
6882 SHLIB_LD='${CC} -shared'
6884 LDFLAGS="$LDFLAGS -export-dynamic"
6890 SHLIB_LD='${CC} -shared'
6892 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -Wl,--out-implib,\$@.a"
6899 SHLIB_CFLAGS="-K PIC"
6907 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6908 SHLIB_CFLAGS="-fPIC"
6910 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5
6912 printf %s "checking for inet_ntoa in -lnetwork... " >&6; }
6913 if test ${ac_cv_lib_network_inet_ntoa+y}
6915 printf %s "(cached) " >&6
6917 ac_check_lib_save_LIBS=$LIBS
6918 LIBS="-lnetwork $LIBS"
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6922 /* Override any GCC internal prototype to avoid an error.
6923 Use char because int might match the return type of a GCC
6924 builtin and then its argument prototype would still apply. */
6929 return inet_ntoa ();
6934 if ac_fn_c_try_link "$LINENO"
6936 ac_cv_lib_network_inet_ntoa=yes
6938 ac_cv_lib_network_inet_ntoa=no
6940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6941 conftest$ac_exeext conftest.$ac_ext
6942 LIBS=$ac_check_lib_save_LIBS
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5
6945 printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; }
6946 if test "x$ac_cv_lib_network_inet_ntoa" = xyes
6948 LIBS="$LIBS -lnetwork"
6953 # Use updated header definitions where possible
6955 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
6957 # TEA specific: Needed by Tcl, but not most extensions
6958 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
6959 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
6961 if test "`uname -m`" = ia64
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6972 printf %s "checking for shl_load in -ldld... " >&6; }
6973 if test ${ac_cv_lib_dld_shl_load+y}
6975 printf %s "(cached) " >&6
6977 ac_check_lib_save_LIBS=$LIBS
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6982 /* Override any GCC internal prototype to avoid an error.
6983 Use char because int might match the return type of a GCC
6984 builtin and then its argument prototype would still apply. */
6994 if ac_fn_c_try_link "$LINENO"
6996 ac_cv_lib_dld_shl_load=yes
6998 ac_cv_lib_dld_shl_load=no
7000 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7001 conftest$ac_exeext conftest.$ac_ext
7002 LIBS=$ac_check_lib_save_LIBS
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7005 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7006 if test "x$ac_cv_lib_dld_shl_load" = xyes
7013 if test "$tcl_ok" = yes
7018 LDFLAGS="$LDFLAGS -Wl,-E"
7019 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7020 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7021 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7024 if test "$GCC" = yes
7027 SHLIB_LD='${CC} -shared'
7028 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7036 # Check to enable 64-bit flags for compiler/linker
7037 if test "$do64bit" = "yes"
7040 if test "$GCC" = yes
7043 case `${CC} -dumpmachine` in
7045 # 64-bit gcc in use. Fix flags for GNU ld.
7047 SHLIB_LD='${CC} -shared'
7048 if test $doRpath = yes
7051 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7053 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7057 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
7064 CFLAGS="$CFLAGS +DD64"
7065 LDFLAGS_ARCH="+DD64"
7070 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7073 printf %s "checking for shl_load in -ldld... " >&6; }
7074 if test ${ac_cv_lib_dld_shl_load+y}
7076 printf %s "(cached) " >&6
7078 ac_check_lib_save_LIBS=$LIBS
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7083 /* Override any GCC internal prototype to avoid an error.
7084 Use char because int might match the return type of a GCC
7085 builtin and then its argument prototype would still apply. */
7095 if ac_fn_c_try_link "$LINENO"
7097 ac_cv_lib_dld_shl_load=yes
7099 ac_cv_lib_dld_shl_load=no
7101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7102 conftest$ac_exeext conftest.$ac_ext
7103 LIBS=$ac_check_lib_save_LIBS
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7106 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
7107 if test "x$ac_cv_lib_dld_shl_load" = xyes
7114 if test "$tcl_ok" = yes
7120 LDFLAGS="$LDFLAGS -Wl,-E"
7121 CC_SEARCH_FLAGS='"-Wl,+s,+b,${LIB_RUNTIME_DIR}:."'
7122 LD_SEARCH_FLAGS='+s +b "${LIB_RUNTIME_DIR}:."'
7123 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
7128 SHLIB_LD="ld -shared -rdata_shared"
7130 case " $LIBOBJS " in
7131 *" mkstemp.$ac_objext "* ) ;;
7132 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
7136 if test $doRpath = yes
7139 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7140 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7145 SHLIB_LD="ld -n32 -shared -rdata_shared"
7147 if test $doRpath = yes
7150 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7151 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7153 if test "$GCC" = yes
7156 CFLAGS="$CFLAGS -mabi=n32"
7157 LDFLAGS="$LDFLAGS -mabi=n32"
7163 # Use to build 6.2 compatible binaries on 6.3.
7164 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
7167 CFLAGS="$CFLAGS -n32"
7170 LDFLAGS="$LDFLAGS -n32"
7176 SHLIB_LD="ld -n32 -shared -rdata_shared"
7178 if test $doRpath = yes
7181 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7182 LD_SEARCH_FLAGS='-rpath "${LIB_RUNTIME_DIR}"'
7185 # Check to enable 64-bit flags for compiler/linker
7187 if test "$do64bit" = yes
7190 if test "$GCC" = yes
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
7194 printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
7199 SHLIB_LD="ld -64 -shared -rdata_shared"
7200 CFLAGS="$CFLAGS -64"
7207 Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*)
7208 SHLIB_CFLAGS="-fPIC"
7212 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
7214 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7215 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS_DEFAULT} -shared'
7216 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
7219 DragonFly-*|FreeBSD-*)
7220 if test "${TCL_THREADS}" = "1"
7223 # The -pthread needs to go in the LDFLAGS, not LIBS
7224 LIBS=`echo $LIBS | sed s/-pthread//`
7225 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7226 LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
7231 if test $doRpath = yes
7234 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7236 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7237 if test "`uname -m`" = "alpha"
7239 CFLAGS="$CFLAGS -mieee"
7241 if test $do64bit = yes
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
7245 printf %s "checking if compiler accepts -m64 flag... " >&6; }
7246 if test ${tcl_cv_cc_m64+y}
7248 printf %s "(cached) " >&6
7252 CFLAGS="$CFLAGS -m64"
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7264 if ac_fn_c_try_link "$LINENO"
7270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7271 conftest$ac_exeext conftest.$ac_ext
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
7275 printf "%s\n" "$tcl_cv_cc_m64" >&6; }
7276 if test $tcl_cv_cc_m64 = yes
7279 CFLAGS="$CFLAGS -m64"
7286 # The combo of gcc + glibc has a bug related to inlining of
7287 # functions like strtod(). The -fno-builtin flag should address
7288 # this problem but it does not work. The -fno-inline flag is kind
7289 # of overkill but it works. Disable inlining only when one of the
7290 # files in compat/*.c is being linked in.
7292 if test x"${USE_COMPAT}" != x
7294 CFLAGS="$CFLAGS -fno-inline"
7298 SHLIB_CFLAGS="-fPIC"
7301 SHLIB_LD='${CC} -shared'
7302 LD_FLAGS="-Wl,--export-dynamic"
7303 if test $doRpath = yes
7306 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7307 LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7314 SHLIB_CFLAGS="-fPIC"
7317 SHLIB_CFLAGS="-fpic"
7320 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7322 if test $doRpath = yes
7325 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7327 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7328 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
7329 LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
7330 CFLAGS_OPTIMIZE="-O2"
7331 # On OpenBSD: Compile with -pthread
7332 # Don't link with -lpthread
7333 LIBS=`echo $LIBS | sed s/-lpthread//`
7334 CFLAGS="$CFLAGS -pthread"
7335 # OpenBSD doesn't do version numbers with dots.
7336 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
7337 TCL_LIB_VERSIONS_OK=nodots
7340 # NetBSD has ELF and can use 'cc -shared' to build shared libs
7341 SHLIB_CFLAGS="-fPIC"
7342 SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
7344 LDFLAGS="$LDFLAGS -export-dynamic"
7345 if test $doRpath = yes
7348 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7350 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7351 # The -pthread needs to go in the CFLAGS, not LIBS
7352 LIBS=`echo $LIBS | sed s/-pthread//`
7353 CFLAGS="$CFLAGS -pthread"
7354 LDFLAGS="$LDFLAGS -pthread"
7357 CFLAGS_OPTIMIZE="-Os"
7358 SHLIB_CFLAGS="-fno-common"
7359 # To avoid discrepancies between what headers configure sees during
7360 # preprocessing tests and compiling tests, move any -isysroot and
7361 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
7362 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
7363 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7364 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
7365 CFLAGS="`echo " ${CFLAGS}" | \
7366 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
7367 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
7368 if test $do64bit = yes
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
7374 printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; }
7375 if test ${tcl_cv_cc_arch_ppc64+y}
7377 printf %s "(cached) " >&6
7381 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7393 if ac_fn_c_try_link "$LINENO"
7395 tcl_cv_cc_arch_ppc64=yes
7397 tcl_cv_cc_arch_ppc64=no
7399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7400 conftest$ac_exeext conftest.$ac_ext
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
7404 printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; }
7405 if test $tcl_cv_cc_arch_ppc64 = yes
7408 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
7414 printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; }
7415 if test ${tcl_cv_cc_arch_x86_64+y}
7417 printf %s "(cached) " >&6
7421 CFLAGS="$CFLAGS -arch x86_64"
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7433 if ac_fn_c_try_link "$LINENO"
7435 tcl_cv_cc_arch_x86_64=yes
7437 tcl_cv_cc_arch_x86_64=no
7439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7440 conftest$ac_exeext conftest.$ac_ext
7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
7444 printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; }
7445 if test $tcl_cv_cc_arch_x86_64 = yes
7448 CFLAGS="$CFLAGS -arch x86_64"
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
7454 printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
7459 # Check for combined 32-bit and 64-bit fat build
7460 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \
7461 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '
7468 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7469 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
7471 printf %s "checking if ld accepts -single_module flag... " >&6; }
7472 if test ${tcl_cv_ld_single_module+y}
7474 printf %s "(cached) " >&6
7477 hold_ldflags=$LDFLAGS
7478 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7490 if ac_fn_c_try_link "$LINENO"
7492 tcl_cv_ld_single_module=yes
7494 tcl_cv_ld_single_module=no
7496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7497 conftest$ac_exeext conftest.$ac_ext
7498 LDFLAGS=$hold_ldflags
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
7501 printf "%s\n" "$tcl_cv_ld_single_module" >&6; }
7502 if test $tcl_cv_ld_single_module = yes
7505 SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
7508 # TEA specific: link shlib with current and compatibility version flags
7509 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
7510 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
7511 SHLIB_SUFFIX=".dylib"
7512 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
7514 printf %s "checking if ld accepts -search_paths_first flag... " >&6; }
7515 if test ${tcl_cv_ld_search_paths_first+y}
7517 printf %s "(cached) " >&6
7520 hold_ldflags=$LDFLAGS
7521 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7533 if ac_fn_c_try_link "$LINENO"
7535 tcl_cv_ld_search_paths_first=yes
7537 tcl_cv_ld_search_paths_first=no
7539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7540 conftest$ac_exeext conftest.$ac_ext
7541 LDFLAGS=$hold_ldflags
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
7544 printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; }
7545 if test $tcl_cv_ld_search_paths_first = yes
7548 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7551 if test "$tcl_cv_cc_visibility_hidden" != yes
7555 printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h
7557 tcl_cv_cc_visibility_hidden=yes
7562 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
7563 # TEA specific: for combined 32 & 64 bit fat builds of Tk
7564 # extensions, verify that 64-bit build is possible.
7565 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"
7568 if test "${TEA_WINDOWINGSYSTEM}" = x11
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5
7572 printf %s "checking for 64-bit X11... " >&6; }
7573 if test ${tcl_cv_lib_x11_64+y}
7575 printf %s "(cached) " >&6
7578 for v in CFLAGS CPPFLAGS LDFLAGS; do
7579 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7581 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
7582 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11"
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 #include <X11/Xlib.h>
7594 if ac_fn_c_try_link "$LINENO"
7596 tcl_cv_lib_x11_64=yes
7598 tcl_cv_lib_x11_64=no
7600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7601 conftest$ac_exeext conftest.$ac_ext
7602 for v in CFLAGS CPPFLAGS LDFLAGS; do
7603 eval $v'="$hold_'$v'"'
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5
7607 printf "%s\n" "$tcl_cv_lib_x11_64" >&6; }
7610 if test "${TEA_WINDOWINGSYSTEM}" = aqua
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5
7614 printf %s "checking for 64-bit Tk... " >&6; }
7615 if test ${tcl_cv_lib_tk_64+y}
7617 printf %s "(cached) " >&6
7620 for v in CFLAGS CPPFLAGS LDFLAGS; do
7621 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
7623 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}"
7624 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}"
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7631 Tk_InitStubs(NULL, "", 0);
7636 if ac_fn_c_try_link "$LINENO"
7638 tcl_cv_lib_tk_64=yes
7642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7643 conftest$ac_exeext conftest.$ac_ext
7644 for v in CFLAGS CPPFLAGS LDFLAGS; do
7645 eval $v'="$hold_'$v'"'
7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5
7649 printf "%s\n" "$tcl_cv_lib_tk_64" >&6; }
7652 # remove 64-bit arch flags from CFLAGS et al. if configuration
7653 # does not support 64-bit.
7654 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5
7658 printf "%s\n" "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;}
7659 for v in CFLAGS CPPFLAGS LDFLAGS; do
7660 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
7667 CFLAGS_OPTIMIZE="" # Optimizer is buggy
7669 printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h
7675 if test "$SHARED_BUILD" = 1
7678 SHLIB_LD='ld -shared -expect_unresolved "*"'
7682 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
7686 if test $doRpath = yes
7689 CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
7690 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
7692 if test "$GCC" = yes
7694 CFLAGS="$CFLAGS -mieee"
7697 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
7699 # see pthread_intro(3) for pthread support on osf1, k.furukawa
7700 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
7701 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
7702 LIBS=`echo $LIBS | sed s/-lpthreads//`
7703 if test "$GCC" = yes
7706 LIBS="$LIBS -lpthread -lmach -lexc"
7710 CFLAGS="$CFLAGS -pthread"
7711 LDFLAGS="$LDFLAGS -pthread"
7717 # This may work for all QNX, but it was only reported for v6.
7718 SHLIB_CFLAGS="-fPIC"
7719 SHLIB_LD="ld -Bshareable -x"
7726 if test "$GCC" = yes
7729 SHLIB_CFLAGS="-fPIC -melf"
7730 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
7734 SHLIB_CFLAGS="-Kpic -belf"
7735 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
7745 # Careful to not let 5.10+ fall into this case
7747 # Note: If _REENTRANT isn't defined, then Solaris
7748 # won't define thread-safe library routines.
7751 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
7754 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7757 SHLIB_CFLAGS="-KPIC"
7759 if test "$GCC" = yes
7762 SHLIB_LD='${CC} -shared'
7763 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7764 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7768 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7769 CC_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7770 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7775 # Note: If _REENTRANT isn't defined, then Solaris
7776 # won't define thread-safe library routines.
7779 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
7782 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7785 SHLIB_CFLAGS="-KPIC"
7787 # Check to enable 64-bit flags for compiler/linker
7788 if test "$do64bit" = yes
7792 if test "$arch" = "sparcv9 sparc"
7795 if test "$GCC" = yes
7798 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
7802 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
7807 CFLAGS="$CFLAGS -m64 -mcpu=v9"
7808 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
7809 SHLIB_CFLAGS="-fPIC"
7816 if test "$do64bitVIS" = yes
7819 CFLAGS="$CFLAGS -xarch=v9a"
7820 LDFLAGS_ARCH="-xarch=v9a"
7824 CFLAGS="$CFLAGS -xarch=v9"
7825 LDFLAGS_ARCH="-xarch=v9"
7828 # Solaris 64 uses this as well
7829 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
7834 if test "$arch" = "amd64 i386"
7837 if test "$GCC" = yes
7841 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
7843 CFLAGS="$CFLAGS -m64"
7844 LDFLAGS="$LDFLAGS -m64";;
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
7847 printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};;
7854 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*)
7855 CFLAGS="$CFLAGS -m64"
7856 LDFLAGS="$LDFLAGS -m64";;
7858 CFLAGS="$CFLAGS -xarch=amd64"
7859 LDFLAGS="$LDFLAGS -xarch=amd64";;
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
7866 printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
7873 if test "$GCC" = yes
7876 SHLIB_LD='${CC} -shared'
7877 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7878 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
7879 if test "$do64bit_ok" = yes
7882 if test "$arch" = "sparcv9 sparc"
7885 # We need to specify -static-libgcc or we need to
7886 # add the path to the sparv9 libgcc.
7887 # JH: static-libgcc is necessary for core Tcl, but may
7888 # not be necessary for extensions.
7889 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
7890 # for finding sparcv9 libgcc, get the regular libgcc
7891 # path, remove so name and append 'sparcv9'
7892 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
7893 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
7896 if test "$arch" = "amd64 i386"
7899 # JH: static-libgcc is necessary for core Tcl, but may
7900 # not be necessary for extensions.
7901 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc"
7911 SunOS-5.[1-9][0-9]*)
7912 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
7913 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';;
7915 SHLIB_LD='/usr/ccs/bin/ld -G -z text';;
7917 CC_SEARCH_FLAGS='"-Wl,-R,${LIB_RUNTIME_DIR}"'
7918 LD_SEARCH_FLAGS='-R "${LIB_RUNTIME_DIR}"'
7922 UNIX_SV* | UnixWare-5*)
7923 SHLIB_CFLAGS="-KPIC"
7927 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
7928 # that don't grok the -Bexport option. Test that it does.
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
7930 printf %s "checking for ld accepts -Bexport flag... " >&6; }
7931 if test ${tcl_cv_ld_Bexport+y}
7933 printf %s "(cached) " >&6
7936 hold_ldflags=$LDFLAGS
7937 LDFLAGS="$LDFLAGS -Wl,-Bexport"
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7949 if ac_fn_c_try_link "$LINENO"
7951 tcl_cv_ld_Bexport=yes
7953 tcl_cv_ld_Bexport=no
7955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7956 conftest$ac_exeext conftest.$ac_ext
7957 LDFLAGS=$hold_ldflags
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
7960 printf "%s\n" "$tcl_cv_ld_Bexport" >&6; }
7961 if test $tcl_cv_ld_Bexport = yes
7964 LDFLAGS="$LDFLAGS -Wl,-Bexport"
7972 if test "$do64bit" = yes -a "$do64bit_ok" = no
7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
7976 printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
7982 # Add in the arch flags late to ensure it wasn't removed.
7983 # Not necessary in TEA, but this is aligned with core
7984 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
7986 # If we're running gcc, then change the C flags for compiling shared
7987 # libraries to the right flags for gcc, instead of those for the
7988 # standard manufacturer compiler.
7990 if test "$GCC" = yes
7996 CYGWIN_*|MINGW32_*|MINGW64_*|MSYS_*) ;;
7998 NetBSD-*|DragonFly-*|FreeBSD-*|OpenBSD-*) ;;
8002 *) SHLIB_CFLAGS="-fPIC" ;;
8006 if test "$tcl_cv_cc_visibility_hidden" != yes
8010 printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h
8015 if test "$SHARED_LIB_SUFFIX" = ""
8018 # TEA specific: use PACKAGE_VERSION instead of VERSION
8019 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
8021 if test "$UNSHARED_LIB_SUFFIX" = ""
8024 # TEA specific: use PACKAGE_VERSION instead of VERSION
8025 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
8028 if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5
8030 printf %s "checking for SEH support in compiler... " >&6; }
8031 if test ${tcl_cv_seh+y}
8033 printf %s "(cached) " >&6
8035 if test "$cross_compiling" = yes
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8042 #define WIN32_LEAN_AND_MEAN
8043 #include <windows.h>
8044 #undef WIN32_LEAN_AND_MEAN
8046 int main(int argc, char** argv) {
8051 __except (EXCEPTION_EXECUTE_HANDLER) {
8058 if ac_fn_c_try_run "$LINENO"
8064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8065 conftest.$ac_objext conftest.beam conftest.$ac_ext
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5
8071 printf "%s\n" "$tcl_cv_seh" >&6; }
8072 if test "$tcl_cv_seh" = "no" ; then
8074 printf "%s\n" "#define HAVE_NO_SEH 1" >>confdefs.h
8079 # Check to see if the excpt.h include file provided contains the
8080 # definition for EXCEPTION_DISPOSITION; if not, which is the case
8081 # with Cygwin's version as of 2002-04-10, define it to be int,
8082 # sufficient for getting the current code to work.
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5
8085 printf %s "checking for EXCEPTION_DISPOSITION support in include files... " >&6; }
8086 if test ${tcl_cv_eh_disposition+y}
8088 printf %s "(cached) " >&6
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8093 # define WIN32_LEAN_AND_MEAN
8094 # include <windows.h>
8095 # undef WIN32_LEAN_AND_MEAN
8101 EXCEPTION_DISPOSITION x;
8107 if ac_fn_c_try_compile "$LINENO"
8109 tcl_cv_eh_disposition=yes
8111 tcl_cv_eh_disposition=no
8113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5
8117 printf "%s\n" "$tcl_cv_eh_disposition" >&6; }
8118 if test "$tcl_cv_eh_disposition" = "no" ; then
8120 printf "%s\n" "#define EXCEPTION_DISPOSITION int" >>confdefs.h
8124 # Check to see if winnt.h defines CHAR, SHORT, and LONG
8125 # even if VOID has already been #defined. The win32api
8126 # used by mingw and cygwin is known to do this.
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5
8129 printf %s "checking for winnt.h that ignores VOID define... " >&6; }
8130 if test ${tcl_cv_winnt_ignore_void+y}
8132 printf %s "(cached) " >&6
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8138 #define WIN32_LEAN_AND_MEAN
8139 #include <windows.h>
8140 #undef WIN32_LEAN_AND_MEAN
8154 if ac_fn_c_try_compile "$LINENO"
8156 tcl_cv_winnt_ignore_void=yes
8158 tcl_cv_winnt_ignore_void=no
8160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5
8164 printf "%s\n" "$tcl_cv_winnt_ignore_void" >&6; }
8165 if test "$tcl_cv_winnt_ignore_void" = "yes" ; then
8167 printf "%s\n" "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h
8172 # See if the compiler supports casting to a union type.
8173 # This is used to stop gcc from printing a compiler
8174 # warning when initializing a union member.
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5
8177 printf %s "checking for cast to union support... " >&6; }
8178 if test ${tcl_cv_cast_to_union+y}
8180 printf %s "(cached) " >&6
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8189 union foo { int i; double d; };
8190 union foo f = (union foo) (int) 0;
8196 if ac_fn_c_try_compile "$LINENO"
8198 tcl_cv_cast_to_union=yes
8200 tcl_cv_cast_to_union=no
8202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5
8206 printf "%s\n" "$tcl_cv_cast_to_union" >&6; }
8207 if test "$tcl_cv_cast_to_union" = "yes"; then
8209 printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h
8213 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
8214 if test "x$ac_cv_header_stdbool_h" = xyes
8217 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
8236 # These must be called after we do the basic CFLAGS checks and
8237 # verify any possible 64-bit or similar switches are necessary
8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
8240 printf %s "checking for required early compiler flags... " >&6; }
8243 if test ${tcl_cv_flag__isoc99_source+y}
8245 printf %s "(cached) " >&6
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8253 char *p = (char *)strtoll; char *q = (char *)strtoull;
8258 if ac_fn_c_try_compile "$LINENO"
8260 tcl_cv_flag__isoc99_source=no
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8264 #define _ISOC99_SOURCE 1
8269 char *p = (char *)strtoll; char *q = (char *)strtoull;
8274 if ac_fn_c_try_compile "$LINENO"
8276 tcl_cv_flag__isoc99_source=yes
8278 tcl_cv_flag__isoc99_source=no
8280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8285 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
8287 printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h
8289 tcl_flags="$tcl_flags _ISOC99_SOURCE"
8293 if test ${tcl_cv_flag__largefile64_source+y}
8295 printf %s "(cached) " >&6
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 #include <sys/stat.h>
8303 struct stat64 buf; int i = stat64("/", &buf);
8308 if ac_fn_c_try_compile "$LINENO"
8310 tcl_cv_flag__largefile64_source=no
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314 #define _LARGEFILE64_SOURCE 1
8315 #include <sys/stat.h>
8319 struct stat64 buf; int i = stat64("/", &buf);
8324 if ac_fn_c_try_compile "$LINENO"
8326 tcl_cv_flag__largefile64_source=yes
8328 tcl_cv_flag__largefile64_source=no
8330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8335 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
8337 printf "%s\n" "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
8339 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
8343 if test ${tcl_cv_flag__largefile_source64+y}
8345 printf %s "(cached) " >&6
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 #include <sys/stat.h>
8353 char *p = (char *)open64;
8358 if ac_fn_c_try_compile "$LINENO"
8360 tcl_cv_flag__largefile_source64=no
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 #define _LARGEFILE_SOURCE64 1
8365 #include <sys/stat.h>
8369 char *p = (char *)open64;
8374 if ac_fn_c_try_compile "$LINENO"
8376 tcl_cv_flag__largefile_source64=yes
8378 tcl_cv_flag__largefile_source64=no
8380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8385 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
8387 printf "%s\n" "#define _LARGEFILE_SOURCE64 1" >>confdefs.h
8389 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
8392 if test "x${tcl_flags}" = "x" ; then
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8394 printf "%s\n" "none" >&6; }
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
8397 printf "%s\n" "${tcl_flags}" >&6; }
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
8402 printf %s "checking for 64-bit integer type... " >&6; }
8403 if test ${tcl_cv_type_64bit+y}
8405 printf %s "(cached) " >&6
8408 tcl_cv_type_64bit=none
8409 # See if the compiler knows natively about __int64
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8416 __int64 value = (__int64) 0;
8421 if ac_fn_c_try_compile "$LINENO"
8423 tcl_type_64bit=__int64
8425 tcl_type_64bit="long long"
8427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8428 # See if we could use long anyway Note that we substitute in the
8429 # type that is our current guess for a 64-bit type inside this check
8430 # program, so it should be modified only carefully...
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8438 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
8444 if ac_fn_c_try_compile "$LINENO"
8446 tcl_cv_type_64bit=${tcl_type_64bit}
8448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8451 if test "${tcl_cv_type_64bit}" = none ; then
8453 printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8456 printf "%s\n" "yes" >&6; }
8457 elif test "${tcl_cv_type_64bit}" = "__int64" \
8458 -a "${TEA_PLATFORM}" = "windows" ; then
8459 # TEA specific: We actually want to use the default tcl.h checks in
8460 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
8462 printf "%s\n" "using Tcl header defaults" >&6; }
8465 printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
8468 printf "%s\n" "${tcl_cv_type_64bit}" >&6; }
8470 # Now check for auxiliary declarations
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
8472 printf %s "checking for struct dirent64... " >&6; }
8473 if test ${tcl_cv_struct_dirent64+y}
8475 printf %s "(cached) " >&6
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 #include <sys/types.h>
8490 if ac_fn_c_try_compile "$LINENO"
8492 tcl_cv_struct_dirent64=yes
8494 tcl_cv_struct_dirent64=no
8496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
8499 printf "%s\n" "$tcl_cv_struct_dirent64" >&6; }
8500 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
8502 printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5
8507 printf %s "checking for DIR64... " >&6; }
8508 if test ${tcl_cv_DIR64+y}
8510 printf %s "(cached) " >&6
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 #include <sys/types.h>
8520 struct dirent64 *p; DIR64 d = opendir64(".");
8521 p = readdir64(d); rewinddir64(d); closedir64(d);
8526 if ac_fn_c_try_compile "$LINENO"
8532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5
8535 printf "%s\n" "$tcl_cv_DIR64" >&6; }
8536 if test "x${tcl_cv_DIR64}" = "xyes" ; then
8538 printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h
8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
8543 printf %s "checking for struct stat64... " >&6; }
8544 if test ${tcl_cv_struct_stat64+y}
8546 printf %s "(cached) " >&6
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <sys/stat.h>
8561 if ac_fn_c_try_compile "$LINENO"
8563 tcl_cv_struct_stat64=yes
8565 tcl_cv_struct_stat64=no
8567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
8570 printf "%s\n" "$tcl_cv_struct_stat64" >&6; }
8571 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
8573 printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
8577 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
8578 if test "x$ac_cv_func_open64" = xyes
8580 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
8583 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
8584 if test "x$ac_cv_func_lseek64" = xyes
8586 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
8591 printf %s "checking for off64_t... " >&6; }
8592 if test ${tcl_cv_type_off64_t+y}
8594 printf %s "(cached) " >&6
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 #include <sys/types.h>
8609 if ac_fn_c_try_compile "$LINENO"
8611 tcl_cv_type_off64_t=yes
8613 tcl_cv_type_off64_t=no
8615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8618 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
8619 test "x${ac_cv_func_lseek64}" = "xyes" && \
8620 test "x${ac_cv_func_open64}" = "xyes" ; then
8622 printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8625 printf "%s\n" "yes" >&6; }
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 printf "%s\n" "no" >&6; }
8634 #--------------------------------------------------------------------
8635 # Set the default compiler switches based on the --enable-symbols option.
8636 #--------------------------------------------------------------------
8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
8641 printf %s "checking for build with symbols... " >&6; }
8642 # Check whether --enable-symbols was given.
8643 if test ${enable_symbols+y}
8645 enableval=$enable_symbols; tcl_ok=$enableval
8650 if test "$tcl_ok" = "no"; then
8651 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG"
8652 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 printf "%s\n" "no" >&6; }
8656 printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h
8659 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
8660 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
8661 if test "$tcl_ok" = "yes"; then
8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
8663 printf "%s\n" "yes (standard debugging)" >&6; }
8669 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
8671 printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h
8675 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
8676 if test "$tcl_ok" = "all"; then
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
8678 printf "%s\n" "enabled symbols mem debugging" >&6; }
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
8681 printf "%s\n" "enabled $tcl_ok debugging" >&6; }
8686 #--------------------------------------------------------------------
8687 # This macro generates a line to use when building a library. It
8688 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
8689 # and TEA_LOAD_TCLCONFIG macros above.
8690 #--------------------------------------------------------------------
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8694 printf %s "checking for grep that handles long lines and -e... " >&6; }
8695 if test ${ac_cv_path_GREP+y}
8697 printf %s "(cached) " >&6
8699 if test -z "$GREP"; then
8700 ac_path_GREP_found=false
8701 # Loop through the user's path and test for each of PROGNAME-LIST
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8706 case $as_dir in #(((
8709 *) as_dir=$as_dir/ ;;
8711 for ac_prog in grep ggrep
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8715 as_fn_executable_p "$ac_path_GREP" || continue
8716 # Check for GNU ac_path_GREP and select it if it is found.
8717 # Check for GNU $ac_path_GREP
8718 case `"$ac_path_GREP" --version 2>&1` in
8720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8723 printf %s 0123456789 >"conftest.in"
8726 cat "conftest.in" "conftest.in" >"conftest.tmp"
8727 mv "conftest.tmp" "conftest.in"
8728 cp "conftest.in" "conftest.nl"
8729 printf "%s\n" 'GREP' >> "conftest.nl"
8730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8732 as_fn_arith $ac_count + 1 && ac_count=$as_val
8733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8734 # Best one so far, save it but keep looking for a better one
8735 ac_cv_path_GREP="$ac_path_GREP"
8736 ac_path_GREP_max=$ac_count
8738 # 10*(2^10) chars as input seems more than enough
8739 test $ac_count -gt 10 && break
8741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8744 $ac_path_GREP_found && break 3
8749 if test -z "$ac_cv_path_GREP"; then
8750 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8753 ac_cv_path_GREP=$GREP
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8758 printf "%s\n" "$ac_cv_path_GREP" >&6; }
8759 GREP="$ac_cv_path_GREP"
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8763 printf %s "checking for egrep... " >&6; }
8764 if test ${ac_cv_path_EGREP+y}
8766 printf %s "(cached) " >&6
8768 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8769 then ac_cv_path_EGREP="$GREP -E"
8771 if test -z "$EGREP"; then
8772 ac_path_EGREP_found=false
8773 # Loop through the user's path and test for each of PROGNAME-LIST
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8778 case $as_dir in #(((
8781 *) as_dir=$as_dir/ ;;
8783 for ac_prog in egrep
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8787 as_fn_executable_p "$ac_path_EGREP" || continue
8788 # Check for GNU ac_path_EGREP and select it if it is found.
8789 # Check for GNU $ac_path_EGREP
8790 case `"$ac_path_EGREP" --version 2>&1` in
8792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8795 printf %s 0123456789 >"conftest.in"
8798 cat "conftest.in" "conftest.in" >"conftest.tmp"
8799 mv "conftest.tmp" "conftest.in"
8800 cp "conftest.in" "conftest.nl"
8801 printf "%s\n" 'EGREP' >> "conftest.nl"
8802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8804 as_fn_arith $ac_count + 1 && ac_count=$as_val
8805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8806 # Best one so far, save it but keep looking for a better one
8807 ac_cv_path_EGREP="$ac_path_EGREP"
8808 ac_path_EGREP_max=$ac_count
8810 # 10*(2^10) chars as input seems more than enough
8811 test $ac_count -gt 10 && break
8813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8816 $ac_path_EGREP_found && break 3
8821 if test -z "$ac_cv_path_EGREP"; then
8822 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8825 ac_cv_path_EGREP=$EGREP
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8831 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8832 EGREP="$ac_cv_path_EGREP"
8836 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
8837 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
8838 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8842 #if defined(_MSC_VER) && _MSC_VER >= 1400
8843 print("manifest needed")
8847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8848 $EGREP "manifest needed" >/dev/null 2>&1
8851 # Could do a CHECK_PROG for mt, but should always be with MSVC8+
8852 VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi"
8853 VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi"
8854 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}"
8856 CLEANFILES="$CLEANFILES *.manifest"
8862 MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)"
8864 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
8865 MAKE_SHARED_LIB="\${SHLIB_LD} \${LDFLAGS} \${LDFLAGS_DEFAULT} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
8866 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
8869 if test "${SHARED_BUILD}" = "1" ; then
8870 MAKE_LIB="${MAKE_SHARED_LIB} "
8872 MAKE_LIB="${MAKE_STATIC_LIB} "
8875 #--------------------------------------------------------------------
8876 # Shared libraries and static libraries have different names.
8877 # Use the double eval to make sure any variables in the suffix is
8878 # substituted. (@@@ Might not be necessary anymore)
8879 #--------------------------------------------------------------------
8881 PACKAGE_LIB_PREFIX8="${PACKAGE_LIB_PREFIX}"
8882 PACKAGE_LIB_PREFIX9="${PACKAGE_LIB_PREFIX}tcl9"
8883 if test "${TCL_MAJOR_VERSION}" -gt 8 ; then
8884 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX9}"
8886 PACKAGE_LIB_PREFIX="${PACKAGE_LIB_PREFIX8}"
8888 if test "${TEA_PLATFORM}" = "windows" ; then
8889 if test "${SHARED_BUILD}" = "1" ; then
8890 # We force the unresolved linking of symbols that are really in
8891 # the private libraries of Tcl and Tk.
8892 if test x"${TK_BIN_DIR}" != x ; then
8893 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
8895 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
8896 if test "$GCC" = "yes"; then
8897 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc"
8899 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8900 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8901 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8903 if test "$GCC" = "yes"; then
8904 PACKAGE_LIB_PREFIX=lib${PACKAGE_LIB_PREFIX}
8906 eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8907 eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8908 eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8910 # Some packages build their own stubs libraries
8911 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
8912 if test "$GCC" = "yes"; then
8913 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
8915 # These aren't needed on Windows (either MSVC or gcc)
8919 RANLIB_STUB="${RANLIB}"
8920 if test "${SHARED_BUILD}" = "1" ; then
8921 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
8922 if test x"${TK_BIN_DIR}" != x ; then
8923 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
8925 eval eval "PKG_LIB_FILE8=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8926 eval eval "PKG_LIB_FILE9=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8927 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
8930 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8931 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8932 eval eval "PKG_LIB_FILE=lib${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
8934 # Some packages build their own stubs libraries
8935 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
8938 # These are escaped so that only CFLAGS is picked up at configure time.
8939 # The other values will be substituted at make time.
8940 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
8941 if test "${SHARED_BUILD}" = "1" ; then
8942 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
8954 #--------------------------------------------------------------------
8955 # Determine the name of the tclsh and/or wish executables in the
8956 # Tcl and Tk build directories or the location they were installed
8957 # into. These paths are used to support running test cases only,
8958 # the Makefile should not be making use of these paths to generate
8959 # a pkgIndex.tcl file or anything else at extension build time.
8960 #--------------------------------------------------------------------
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
8964 printf %s "checking for tclsh... " >&6; }
8965 if test -f "${TCL_BIN_DIR}/Makefile" ; then
8966 # tclConfig.sh is in Tcl build directory
8967 if test "${TEA_PLATFORM}" = "windows"; then
8968 if test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}" ; then
8969 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
8970 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}" ; then
8971 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}s${EXEEXT}"
8972 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}" ; then
8973 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}t${EXEEXT}"
8974 elif test -f "${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}" ; then
8975 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}st${EXEEXT}"
8978 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
8981 # tclConfig.sh is in install location
8982 if test "${TEA_PLATFORM}" = "windows"; then
8983 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${EXEEXT}"
8985 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
8987 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
8988 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
8989 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
8991 if test -f "$i/${TCLSH_PROG}" ; then
8992 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/"
8996 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}"
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
8999 printf "%s\n" "${TCLSH_PROG}" >&6; }
9004 #--------------------------------------------------------------------
9005 # Setup a *Config.sh.in configuration file.
9006 #--------------------------------------------------------------------
9008 #TEA_EXPORT_CONFIG([sample])
9009 #AC_SUBST(SAMPLE_VAR)
9011 #--------------------------------------------------------------------
9012 # Specify files to substitute AC variables in. You may alternatively
9013 # have a special pkgIndex.tcl.in or other files which require
9014 # substituting the AC variables in. Include these here.
9015 #--------------------------------------------------------------------
9017 ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
9019 #AC_CONFIG_FILES([sampleConfig.sh])
9021 #--------------------------------------------------------------------
9022 # Finally, substitute all of the various values into the files
9023 # specified with AC_CONFIG_FILES.
9024 #--------------------------------------------------------------------
9026 cat >confcache <<\_ACEOF
9027 # This file is a shell script that caches the results of configure
9028 # tests run on this system so they can be shared between configure
9029 # scripts and configure runs, see configure's option --config-cache.
9030 # It is not useful on other systems. If it contains results you don't
9031 # want to keep, you may remove or edit it.
9033 # config.status only pays attention to the cache file if you give it
9034 # the --recheck option to rerun configure.
9036 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9037 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9042 # The following way of writing the cache mishandles newlines in values,
9043 # but we know of no workaround that is simple, portable, and efficient.
9044 # So, we kill variables containing newlines.
9045 # Ultrix sh set writes to stderr and can't be redirected directly,
9046 # and sets the high bit in the cache file unless we assign to the vars.
9048 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9049 eval ac_val=\$$ac_var
9053 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9054 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9057 _ | IFS | as_nl) ;; #(
9058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9059 *) { eval $ac_var=; unset $ac_var;} ;;
9065 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9066 *${as_nl}ac_space=\ *)
9067 # `set' does not quote correctly, so add quotes: double-quote
9068 # substitution turns \\\\ into \\, and sed turns \\ into \.
9071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9074 # `set' quotes correctly as required by POSIX, so do not add quotes.
9075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9084 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9086 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9088 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9089 if test -w "$cache_file"; then
9090 if test "x$cache_file" != "x/dev/null"; then
9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9092 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9093 if test ! -f "$cache_file" || test -h "$cache_file"; then
9094 cat confcache >"$cache_file"
9096 case $cache_file in #(
9098 mv -f confcache "$cache_file"$$ &&
9099 mv -f "$cache_file"$$ "$cache_file" ;; #(
9101 mv -f confcache "$cache_file" ;;
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9107 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9113 # Let make expand exec_prefix.
9114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9116 # Transform confdefs.h into DEFS.
9117 # Protect against shell expansion while executing Makefile rules.
9118 # Protect against Makefile macro expansion.
9120 # If the first sed substitution is executed (which looks for macros that
9121 # take arguments), then branch to the quote section. Otherwise,
9122 # look for a macro that doesn't take arguments.
9132 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
9134 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
9138 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
9151 DEFS=`sed -n "$ac_script" confdefs.h`
9157 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9158 # 1. Remove the extension, and $U if already installed.
9159 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9160 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9161 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9162 # will be set to the directory where LIBOBJS objects are built.
9163 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9164 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9168 LTLIBOBJS=$ac_ltlibobjs
9172 CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS=""
9174 : "${CONFIG_STATUS=./config.status}"
9176 ac_clean_files_save=$ac_clean_files
9177 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9179 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9181 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9183 # Generated by $as_me.
9184 # Run this file to recreate the current configuration.
9185 # Compiler output produced by configure, useful for debugging
9186 # configure, is in config.log if it exists.
9192 SHELL=\${CONFIG_SHELL-$SHELL}
9195 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9196 ## -------------------- ##
9197 ## M4sh Initialization. ##
9198 ## -------------------- ##
9200 # Be more Bourne compatible
9201 DUALCASE=1; export DUALCASE # for MKS sh
9203 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9207 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9208 # is contrary to our usage. Disable this feature.
9209 alias -g '${1+"$@"}'='"$@"'
9210 setopt NO_GLOB_SUBST
9212 case `(set -o) 2>/dev/null` in #(
9222 # Reset variables that may have inherited troublesome values from
9225 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9226 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9227 # side effect of setting IFS to empty, thus disabling word splitting.)
9228 # Quoting is to prevent editors from complaining about space-tab.
9238 # Ensure predictable behavior from utilities with locale-dependent output.
9244 # We cannot yet rely on "unset" to work, but we need these variables
9245 # to be unset--not just set to an empty or harmless value--now, to
9246 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9247 # also avoids known problems related to "unset" and subshell syntax
9248 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9249 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9250 do eval test \${$as_var+y} \
9251 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9254 # Ensure that fds 0, 1, and 2 are open.
9255 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9256 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9257 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9259 # The user is always right.
9260 if ${PATH_SEPARATOR+false} :; then
9262 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9263 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9269 # Find who we are. Look in the path if we contain no directory separator.
9272 *[\\/]* ) as_myself=$0 ;;
9273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277 case $as_dir in #(((
9280 *) as_dir=$as_dir/ ;;
9282 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9288 # We did not find ourselves, most probably we were run as `sh COMMAND'
9289 # in which case we are not to be found in the path.
9290 if test "x$as_myself" = x; then
9293 if test ! -f "$as_myself"; then
9294 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9300 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9301 # ----------------------------------------
9302 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9303 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9304 # script with STATUS, using 1 if that was 0.
9307 as_status=$1; test $as_status -eq 0 && as_status=1
9309 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9312 printf "%s\n" "$as_me: error: $2" >&2
9313 as_fn_exit $as_status
9318 # as_fn_set_status STATUS
9319 # -----------------------
9320 # Set $? to STATUS, without forking.
9324 } # as_fn_set_status
9328 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9338 # Portably unset VAR.
9341 { eval $1=; unset $1;}
9343 as_unset=as_fn_unset
9345 # as_fn_append VAR VALUE
9346 # ----------------------
9347 # Append the text in VALUE to the end of the definition contained in VAR. Take
9348 # advantage of any shell optimizations that allow amortized linear growth over
9349 # repeated appends, instead of the typical quadratic growth present in naive
9351 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9353 eval 'as_fn_append ()
9364 # as_fn_arith ARG...
9365 # ------------------
9366 # Perform arithmetic evaluation on the ARGs, and store the result in the
9367 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9368 # must be portable across $(()) and expr.
9369 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9371 eval 'as_fn_arith ()
9378 as_val=`expr "$@" || test $? -eq 1`
9383 if expr a : '\(a\)' >/dev/null 2>&1 &&
9384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9391 as_basename=basename
9396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9402 as_me=`$as_basename -- "$0" ||
9403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9404 X"$0" : 'X\(//\)$' \| \
9405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9406 printf "%s\n" X/"$0" |
9407 sed '/^.*\/\([^/][^/]*\)\/*$/{
9421 # Avoid depending upon Character Ranges.
9422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9425 as_cr_digits='0123456789'
9426 as_cr_alnum=$as_cr_Letters$as_cr_digits
9429 # Determine whether it's possible to make 'echo' print without a newline.
9430 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9431 # for compatibility with existing Makefiles.
9432 ECHO_C= ECHO_N= ECHO_T=
9433 case `echo -n x` in #(((((
9435 case `echo 'xy\c'` in
9436 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9438 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9445 # For backward compatibility with old third-party macros, we provide
9446 # the shell variables $as_echo and $as_echo_n. New code should use
9447 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9448 as_echo='printf %s\n'
9449 as_echo_n='printf %s'
9451 rm -f conf$$ conf$$.exe conf$$.file
9452 if test -d conf$$.dir; then
9453 rm -f conf$$.dir/conf$$.file
9456 mkdir conf$$.dir 2>/dev/null
9458 if (echo >conf$$.file) 2>/dev/null; then
9459 if ln -s conf$$.file conf$$ 2>/dev/null; then
9461 # ... but there are two gotchas:
9462 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9463 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9464 # In both cases, we have to default to `cp -pR'.
9465 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9467 elif ln conf$$.file conf$$ 2>/dev/null; then
9475 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9476 rmdir conf$$.dir 2>/dev/null
9481 # Create "$as_dir" as a directory, including parents if necessary.
9486 -*) as_dir=./$as_dir;;
9488 test -d "$as_dir" || eval $as_mkdir_p || {
9492 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9493 *) as_qdir=$as_dir;;
9495 as_dirs="'$as_qdir' $as_dirs"
9496 as_dir=`$as_dirname -- "$as_dir" ||
9497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9498 X"$as_dir" : 'X\(//\)[^/]' \| \
9499 X"$as_dir" : 'X\(//\)$' \| \
9500 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9501 printf "%s\n" X"$as_dir" |
9502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9519 test -d "$as_dir" && break
9521 test -z "$as_dirs" || eval "mkdir $as_dirs"
9522 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9526 if mkdir -p . 2>/dev/null; then
9527 as_mkdir_p='mkdir -p "$as_dir"'
9529 test -d ./-p && rmdir ./-p
9534 # as_fn_executable_p FILE
9535 # -----------------------
9536 # Test if FILE is an executable regular file.
9537 as_fn_executable_p ()
9539 test -f "$1" && test -x "$1"
9540 } # as_fn_executable_p
9542 as_executable_p=as_fn_executable_p
9544 # Sed expression to map a string onto a valid CPP name.
9545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9547 # Sed expression to map a string onto a valid variable name.
9548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9552 ## ----------------------------------- ##
9553 ## Main body of $CONFIG_STATUS script. ##
9554 ## ----------------------------------- ##
9556 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9559 # Save the log message, to keep $0 and so on meaningful, and to
9560 # report actual input values of CONFIG_FILES etc. instead of their
9561 # values after options handling.
9563 This file was extended by sqlite $as_me 3.44.0, which was
9564 generated by GNU Autoconf 2.71. Invocation command line was
9566 CONFIG_FILES = $CONFIG_FILES
9567 CONFIG_HEADERS = $CONFIG_HEADERS
9568 CONFIG_LINKS = $CONFIG_LINKS
9569 CONFIG_COMMANDS = $CONFIG_COMMANDS
9572 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9577 case $ac_config_files in *"
9578 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9584 # Files that config.status was made for.
9585 config_files="$ac_config_files"
9589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9591 \`$as_me' instantiates files and other configuration actions
9592 from templates according to the current configuration. Unless the files
9593 and actions are specified as TAGs, all are instantiated by default.
9595 Usage: $0 [OPTION]... [TAG]...
9597 -h, --help print this help, then exit
9598 -V, --version print version number and configuration settings, then exit
9599 --config print configuration, then exit
9600 -q, --quiet, --silent
9601 do not print progress messages
9602 -d, --debug don't remove temporary files
9603 --recheck update $as_me by reconfiguring in the same conditions
9604 --file=FILE[:TEMPLATE]
9605 instantiate the configuration file FILE
9607 Configuration files:
9610 Report bugs to the package provider."
9613 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9614 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9616 ac_cs_config='$ac_cs_config_escaped'
9618 sqlite config.status 3.44.0
9619 configured by $0, generated by GNU Autoconf 2.71,
9620 with options \\"\$ac_cs_config\\"
9622 Copyright (C) 2021 Free Software Foundation, Inc.
9623 This config.status script is free software; the Free Software Foundation
9624 gives unlimited permission to copy, distribute and modify it."
9628 test -n "\$AWK" || AWK=awk
9631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9632 # The default lists apply if the user does not specify any file.
9638 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9639 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9655 # Handling of the options.
9656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9658 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9659 printf "%s\n" "$ac_cs_version"; exit ;;
9660 --config | --confi | --conf | --con | --co | --c )
9661 printf "%s\n" "$ac_cs_config"; exit ;;
9662 --debug | --debu | --deb | --de | --d | -d )
9664 --file | --fil | --fi | --f )
9667 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9668 '') as_fn_error $? "missing file argument" ;;
9670 as_fn_append CONFIG_FILES " '$ac_optarg'"
9671 ac_need_defaults=false;;
9672 --he | --h | --help | --hel | -h )
9673 printf "%s\n" "$ac_cs_usage"; exit ;;
9674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9679 -*) as_fn_error $? "unrecognized option: \`$1'
9680 Try \`$0 --help' for more information." ;;
9682 *) as_fn_append ac_config_targets " $1"
9683 ac_need_defaults=false ;;
9689 ac_configure_extra_args=
9691 if $ac_cs_silent; then
9693 ac_configure_extra_args="$ac_configure_extra_args --silent"
9697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9698 if \$ac_cs_recheck; then
9699 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9701 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9702 CONFIG_SHELL='$SHELL'
9708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9713 ## Running $as_me. ##
9715 printf "%s\n" "$ac_log"
9719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9724 # Handling of arguments.
9725 for ac_config_target in $ac_config_targets
9727 case $ac_config_target in
9728 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9729 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
9731 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9736 # If the user did not use the arguments to specify the items to instantiate,
9737 # then the envvar interface is used. Set only those that are not.
9738 # We use the long form for the default assignment because of an extremely
9739 # bizarre bug on SunOS 4.1.3.
9740 if $ac_need_defaults; then
9741 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9744 # Have a temporary directory for convenience. Make it in the build tree
9745 # simply because there is no reason against having it here, and in addition,
9746 # creating and moving files from /tmp can sometimes cause problems.
9747 # Hook for its removal unless debugging.
9748 # Note that there is a small window in which the directory will not be cleaned:
9749 # after its creation but before its name has been assigned to `$tmp'.
9753 trap 'exit_status=$?
9755 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9757 trap 'as_fn_exit 1' 1 2 13 15
9759 # Create a (secure) tmp directory for tmp files.
9762 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9766 tmp=./conf$$-$RANDOM
9767 (umask 077 && mkdir "$tmp")
9768 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9771 # Set up the scripts for CONFIG_FILES section.
9772 # No need to generate them if there are no CONFIG_FILES.
9773 # This happens for instance with `./config.status config.h'.
9774 if test -n "$CONFIG_FILES"; then
9777 ac_cr=`echo X | tr X '\015'`
9778 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9779 # But we know of no other shell where ac_cr would be empty at this
9780 # point, so we can use a bashism as a fallback.
9781 if test "x$ac_cr" = x; then
9782 eval ac_cr=\$\'\\r\'
9784 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9785 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9791 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9796 echo "cat >conf$$subs.awk <<_ACEOF" &&
9797 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9801 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9803 for ac_last_try in false false false false false :; do
9804 . ./conf$$subs.sh ||
9805 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9807 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9808 if test $ac_delim_n = $ac_delim_num; then
9810 elif $ac_last_try; then
9811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9813 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9819 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9823 s/^/S["/; s/!.*/"]=/
9833 s/\(.\{148\}\)..*/\1/
9835 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9840 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9847 s/\(.\{148\}\)..*/\1/
9849 s/["\\]/\\&/g; s/^/"/; s/$/"/
9853 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9858 ' <conf$$subs.awk | sed '
9863 ' >>$CONFIG_STATUS || ac_write_fail=1
9864 rm -f conf$$subs.awk
9865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9867 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9868 for (key in S) S_is_set[key] = 1
9874 nfields = split(line, field, "@")
9876 len = length(field[1])
9877 for (i = 2; i < nfields; i++) {
9879 keylen = length(key)
9880 if (S_is_set[key]) {
9882 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9883 len += length(value) + length(field[++i])
9894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9895 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9896 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9899 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9900 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9903 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9904 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9905 # trailing colons and then remove the whole line if VPATH becomes empty
9906 # (actually we leave an empty line to preserve line numbers).
9907 if test "x$srcdir" = x.; then
9908 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9927 fi # test -n "$CONFIG_FILES"
9930 eval set X " :F $CONFIG_FILES "
9935 :[FHLC]) ac_mode=$ac_tag; continue;;
9937 case $ac_mode$ac_tag in
9939 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9940 :[FH]-) ac_tag=-:-;;
9941 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9958 -) ac_f="$ac_tmp/stdin";;
9959 *) # Look for the file first in the build tree, then in the source tree
9960 # (if the path is not absolute). The absolute path cannot be DOS-style,
9961 # because $ac_f cannot contain `:'.
9965 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9967 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9969 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9970 as_fn_append ac_file_inputs " '$ac_f'"
9973 # Let's still pretend it is `configure' which instantiates (i.e., don't
9974 # use $as_me), people would be surprised to read:
9975 # /* config.h. Generated by config.status. */
9976 configure_input='Generated from '`
9977 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9979 if test x"$ac_file" != x-; then
9980 configure_input="$ac_file. $configure_input"
9981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9982 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9984 # Neutralize special characters interpreted by sed in replacement strings.
9985 case $configure_input in #(
9986 *\&* | *\|* | *\\* )
9987 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9988 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9989 *) ac_sed_conf_input=$configure_input;;
9993 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9994 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9999 ac_dir=`$as_dirname -- "$ac_file" ||
10000 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10001 X"$ac_file" : 'X\(//\)[^/]' \| \
10002 X"$ac_file" : 'X\(//\)$' \| \
10003 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10004 printf "%s\n" X"$ac_file" |
10005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10009 /^X\(\/\/\)[^/].*/{
10022 as_dir="$ac_dir"; as_fn_mkdir_p
10026 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10028 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10029 # A ".." for each directory in $ac_dir_suffix.
10030 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10031 case $ac_top_builddir_sub in
10032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10036 ac_abs_top_builddir=$ac_pwd
10037 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10038 # for backward compatibility:
10039 ac_top_builddir=$ac_top_build_prefix
10042 .) # We are building in place.
10044 ac_top_srcdir=$ac_top_builddir_sub
10045 ac_abs_top_srcdir=$ac_pwd ;;
10046 [\\/]* | ?:[\\/]* ) # Absolute name.
10047 ac_srcdir=$srcdir$ac_dir_suffix;
10048 ac_top_srcdir=$srcdir
10049 ac_abs_top_srcdir=$srcdir ;;
10050 *) # Relative name.
10051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10052 ac_top_srcdir=$ac_top_build_prefix$srcdir
10053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10055 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10067 # If the template does not know about datarootdir, expand it.
10068 # FIXME: This hack should be removed a few years after 2.60.
10069 ac_datarootdir_hack=; ac_datarootdir_seen=
10080 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10081 *datarootdir*) ac_datarootdir_seen=yes;;
10082 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10084 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10087 ac_datarootdir_hack='
10088 s&@datadir@&$datadir&g
10089 s&@docdir@&$docdir&g
10090 s&@infodir@&$infodir&g
10091 s&@localedir@&$localedir&g
10092 s&@mandir@&$mandir&g
10093 s&\\\${datarootdir}&$datarootdir&g' ;;
10097 # Neutralize VPATH when `$srcdir' = `.'.
10098 # Shell code in configure.ac might set extrasub.
10099 # FIXME: do we really want to maintain this feature?
10100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10101 ac_sed_extra="$ac_vpsub
10104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10107 s|@configure_input@|$ac_sed_conf_input|;t t
10108 s&@top_builddir@&$ac_top_builddir_sub&;t t
10109 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10110 s&@srcdir@&$ac_srcdir&;t t
10111 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10112 s&@top_srcdir@&$ac_top_srcdir&;t t
10113 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10114 s&@builddir@&$ac_builddir&;t t
10115 s&@abs_builddir@&$ac_abs_builddir&;t t
10116 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10117 $ac_datarootdir_hack
10119 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10120 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10122 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10123 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10124 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10125 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10127 which seems to be undefined. Please make sure it is defined" >&5
10128 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10129 which seems to be undefined. Please make sure it is defined" >&2;}
10131 rm -f "$ac_tmp/stdin"
10133 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10134 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10148 ac_clean_files=$ac_clean_files_save
10150 test $ac_write_fail = 0 ||
10151 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10154 # configure is writing to config.log, and then calls config.status.
10155 # config.status does its own redirection, appending to config.log.
10156 # Unfortunately, on DOS this fails, as config.log is still kept open
10157 # by configure, so config.status won't be able to write to it; its
10158 # output is simply discarded. So we exec the FD to /dev/null,
10159 # effectively closing config.log, so it can be properly (re)opened and
10160 # appended to by config.status. When coming back to configure, we
10161 # need to make the FD available again.
10162 if test "$no_create" != yes; then
10164 ac_config_status_args=
10165 test "$silent" = yes &&
10166 ac_config_status_args="$ac_config_status_args --quiet"
10168 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10170 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10171 # would make configure fail if this is the last instruction.
10172 $ac_cs_success || as_fn_exit 1
10174 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10176 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}