2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mysqltcl 3.052.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
558 PACKAGE_NAME='mysqltcl'
559 PACKAGE_TARNAME='mysqltcl'
560 PACKAGE_VERSION='3.052'
561 PACKAGE_STRING='mysqltcl 3.052'
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='LTLIBOBJS
700 program_transform_name
713 enable_option_checking
728 ac_precious_vars='build_alias
739 # Initialize some variables set by options.
741 ac_init_version=false
742 ac_unrecognized_opts=
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
753 program_transform_name=s,x,x,
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778 infodir='${datarootdir}/info'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
799 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 # Accept the important Cygnus configure options, so we can diagnose typos.
806 case $ac_dashdash$ac_option in
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
828 cache_file=config.cache ;;
830 -datadir | --datadir | --datadi | --datad)
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir=$ac_optarg ;;
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
842 -disable-* | --disable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error $? "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
856 eval enable_$ac_useropt=no ;;
858 -docdir | --docdir | --docdi | --doc | --do)
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 -enable-* | --enable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error $? "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
882 eval enable_$ac_useropt=\$ac_optarg ;;
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
891 exec_prefix=$ac_optarg ;;
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
897 -help | --help | --hel | --he | -h)
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
904 -host | --host | --hos | --ho)
905 ac_prev=host_alias ;;
906 -host=* | --host=* | --hos=* | --ho=*)
907 host_alias=$ac_optarg ;;
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913 htmldir=$ac_optarg ;;
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
920 includedir=$ac_optarg ;;
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925 infodir=$ac_optarg ;;
927 -libdir | --libdir | --libdi | --libd)
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
937 libexecdir=$ac_optarg ;;
939 -localedir | --localedir | --localedi | --localed | --locale)
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
944 -localstatedir | --localstatedir | --localstatedi | --localstated \
945 | --localstate | --localstat | --localsta | --localst | --locals)
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
949 localstatedir=$ac_optarg ;;
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 # Obsolete; use --without-fp.
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961 | --no-cr | --no-c | -n)
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975 oldincludedir=$ac_optarg ;;
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987 program_prefix=$ac_optarg ;;
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994 program_suffix=$ac_optarg ;;
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
1011 program_transform_name=$ac_optarg ;;
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1018 -psdir | --psdir | --psdi | --psd | --ps)
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1031 sbindir=$ac_optarg ;;
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1042 sharedstatedir=$ac_optarg ;;
1044 -site | --site | --sit)
1046 -site=* | --site=* | --sit=*)
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir=$ac_optarg ;;
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir=$ac_optarg ;;
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev=target_alias ;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias=$ac_optarg ;;
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval with_$ac_useropt=\$ac_optarg ;;
1088 -without-* | --without-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval with_$ac_useropt=no ;;
1105 # Obsolete; use --with-x.
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1122 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1123 Try \`$0 --help' for more information"
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1133 eval $ac_envvar=\$ac_optarg
1134 export $ac_envvar ;;
1137 # FIXME: should be removed in autoconf 3.0.
1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1147 if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1149 as_fn_error $? "missing argument to $ac_option"
1152 if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1155 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160 # Check all directory arguments for consistency.
1161 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1166 eval ac_val=\$$ac_var
1167 # Remove trailing slashes.
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
1173 # Be sure to have absolute directory names.
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1186 target=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used" >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202 test "$silent" = yes && exec 6>/dev/null
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error $? "working directory cannot be determined"
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error $? "pwd does not report name of working directory"
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$as_myself" ||
1218 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222 $as_echo X"$as_myself" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1245 ac_srcdir_defaulted=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1263 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273 # Report the --help message.
1275 if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1279 \`configure' configures mysqltcl 3.052 to adapt to many kinds of systems.
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1286 Defaults for the options are specified in brackets.
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking ...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1310 For better control, use the options below.
1312 Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/mysqltcl]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
1338 if test -n "$ac_init_help"; then
1339 case $ac_init_help in
1340 short | recursive ) echo "Configuration of mysqltcl 3.052:";;
1345 --disable-option-checking ignore unrecognized --enable/--with options
1346 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1347 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1348 --enable-threads build with threads
1349 --enable-shared build and link with shared libraries (default: on)
1350 --enable-64bit enable 64bit support (default: off)
1351 --enable-64bit-vis enable 64bit Sparc VIS support (default: off)
1352 --enable-wince enable Win/CE support (where applicable)
1353 --disable-load disallow dynamic loading and "load" command
1355 --enable-symbols build with debugging symbols (default: off)
1356 --enable-mysqlstatic link static with libmysqlclient.a
1359 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1360 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1361 --with-tcl directory containing tcl configuration
1363 --with-tclinclude directory containing the public Tcl header files
1364 --with-celib=DIR use Windows/CE support library from DIR
1365 --with-mysql-include=DIR Mysql includes are in DIR
1366 --with-mysql-lib=DIR Mysql libraries are in DIR
1368 Some influential environment variables:
1369 CC C compiler command
1370 CFLAGS C compiler flags
1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1372 nonstandard directory <lib dir>
1373 LIBS libraries to pass to the linker, e.g. -l<library>
1374 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
1378 Use these variables to override the choices made by `configure' or to help
1379 it to find libraries and programs with nonstandard names/locations.
1381 Report bugs to the package provider.
1386 if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389 test -d "$ac_dir" ||
1390 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1411 .) # We are building in place.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1435 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1444 mysqltcl configure 3.052
1445 generated by GNU Autoconf 2.68
1447 Copyright (C) 2010 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1454 ## ------------------------ ##
1455 ## Autoconf initialization. ##
1456 ## ------------------------ ##
1458 # ac_fn_c_try_compile LINENO
1459 # --------------------------
1460 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1461 ac_fn_c_try_compile ()
1463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464 rm -f conftest.$ac_objext
1465 if { { ac_try="$ac_compile"
1467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1468 *) ac_try_echo=$ac_try;;
1470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1471 $as_echo "$ac_try_echo"; } >&5
1472 (eval "$ac_compile") 2>conftest.err
1474 if test -s conftest.err; then
1475 grep -v '^ *+' conftest.err >conftest.er1
1476 cat conftest.er1 >&5
1477 mv -f conftest.er1 conftest.err
1479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1480 test $ac_status = 0; } && {
1481 test -z "$ac_c_werror_flag" ||
1482 test ! -s conftest.err
1483 } && test -s conftest.$ac_objext; then :
1486 $as_echo "$as_me: failed program was:" >&5
1487 sed 's/^/| /' conftest.$ac_ext >&5
1491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1492 as_fn_set_status $ac_retval
1494 } # ac_fn_c_try_compile
1496 # ac_fn_c_try_cpp LINENO
1497 # ----------------------
1498 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502 if { { ac_try="$ac_cpp conftest.$ac_ext"
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } > conftest.i && {
1518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1533 # ac_fn_c_try_run LINENO
1534 # ----------------------
1535 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1536 # that executables *can* be run.
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 if { { ac_try="$ac_link"
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_link") 2>&5
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1551 { { case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_try") 2>&5
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; }; }; then :
1563 $as_echo "$as_me: program exited with status $ac_status" >&5
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1567 ac_retval=$ac_status
1569 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1575 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1576 # -------------------------------------------------------
1577 # Tests whether HEADER exists and can be compiled using the include files in
1578 # INCLUDES, setting the cache variable VAR accordingly.
1579 ac_fn_c_check_header_compile ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583 $as_echo_n "checking for $2... " >&6; }
1584 if eval \${$3+:} false; then :
1585 $as_echo_n "(cached) " >&6
1587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1588 /* end confdefs.h. */
1592 if ac_fn_c_try_compile "$LINENO"; then :
1597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601 $as_echo "$ac_res" >&6; }
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 } # ac_fn_c_check_header_compile
1606 # ac_fn_c_try_link LINENO
1607 # -----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded.
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest$ac_exeext
1613 if { { ac_try="$ac_link"
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest$ac_exeext && {
1632 test "$cross_compiling" = yes ||
1633 $as_test_x conftest$ac_exeext
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644 # interfere with the next link command; also delete a directory that is
1645 # left behind by Apple's compiler. We do this before executing the actions.
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_link
1652 # ac_fn_c_check_func LINENO FUNC VAR
1653 # ----------------------------------
1654 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1655 ac_fn_c_check_func ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659 $as_echo_n "checking for $2... " >&6; }
1660 if eval \${$3+:} false; then :
1661 $as_echo_n "(cached) " >&6
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1665 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1667 #define $2 innocuous_$2
1669 /* System header to define __stub macros and hopefully few prototypes,
1670 which can conflict with char $2 (); below.
1671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1672 <limits.h> exists even on freestanding compilers. */
1675 # include <limits.h>
1677 # include <assert.h>
1682 /* Override any GCC internal prototype to avoid an error.
1683 Use char because int might match the return type of a GCC
1684 builtin and then its argument prototype would still apply. */
1689 /* The GNU C library defines this for functions which it implements
1690 to always fail with ENOSYS. Some functions are actually named
1691 something starting with __ and the normal name is an alias. */
1692 #if defined __stub_$2 || defined __stub___$2
1704 if ac_fn_c_try_link "$LINENO"; then :
1709 rm -f core conftest.err conftest.$ac_objext \
1710 conftest$ac_exeext conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 } # ac_fn_c_check_func
1719 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1720 # -------------------------------------------------------
1721 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1722 # the include files in INCLUDES and setting the cache variable VAR
1724 ac_fn_c_check_header_mongrel ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if eval \${$3+:} false; then :
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1737 # Is the header compilable?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1739 $as_echo_n "checking $2 usability... " >&6; }
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746 ac_header_compiler=yes
1748 ac_header_compiler=no
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1752 $as_echo "$ac_header_compiler" >&6; }
1754 # Is the header present?
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1756 $as_echo_n "checking $2 presence... " >&6; }
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1761 if ac_fn_c_try_cpp "$LINENO"; then :
1762 ac_header_preproc=yes
1764 ac_header_preproc=no
1766 rm -f conftest.err conftest.i conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1768 $as_echo "$ac_header_preproc" >&6; }
1770 # So? What about this header?
1771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1774 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1780 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1782 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1784 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1786 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1796 eval "$3=\$ac_header_compiler"
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 } # ac_fn_c_check_header_mongrel
1805 cat >config.log <<_ACEOF
1806 This file contains any messages produced by compilers while
1807 running configure, to aid debugging if configure makes a mistake.
1809 It was created by mysqltcl $as_me 3.052, which was
1810 generated by GNU Autoconf 2.68. Invocation command line was
1822 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1823 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1824 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1825 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1826 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1828 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1829 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1831 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1832 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1833 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1834 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1835 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1836 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1837 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir=.
1846 $as_echo "PATH: $as_dir"
1862 # Keep a trace of the command line.
1863 # Strip out --no-create and --no-recursion so they do not pile up.
1864 # Strip out --silent because we don't want to record it for future runs.
1865 # Also quote any args containing shell meta-characters.
1866 # Make two passes to allow for proper duplicate-argument suppression.
1870 ac_must_keep_next=false
1876 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1878 | -silent | --silent | --silen | --sile | --sil)
1881 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1886 as_fn_append ac_configure_args1 " '$ac_arg'"
1887 if test $ac_must_keep_next = true; then
1888 ac_must_keep_next=false # Got value, back to normal.
1891 *=* | --config-cache | -C | -disable-* | --disable-* \
1892 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1893 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1894 | -with-* | --with-* | -without-* | --without-* | --x)
1895 case "$ac_configure_args0 " in
1896 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899 -* ) ac_must_keep_next=true ;;
1902 as_fn_append ac_configure_args " '$ac_arg'"
1907 { ac_configure_args0=; unset ac_configure_args0;}
1908 { ac_configure_args1=; unset ac_configure_args1;}
1910 # When interrupted or exit'd, cleanup temporary files, and complete
1911 # config.log. We remove comments because anyway the quotes in there
1912 # would cause problems or look ugly.
1913 # WARNING: Use '\'' to represent an apostrophe within the trap.
1914 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1915 trap 'exit_status=$?
1916 # Save into config.log some information that might help in debugging.
1920 $as_echo "## ---------------- ##
1921 ## Cache variables. ##
1922 ## ---------------- ##"
1924 # The following way of writing the cache mishandles newlines in values,
1926 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1927 eval ac_val=\$$ac_var
1931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1935 _ | IFS | as_nl) ;; #(
1936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1937 *) { eval $ac_var=; unset $ac_var;} ;;
1942 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1943 *${as_nl}ac_space=\ *)
1945 "s/'\''/'\''\\\\'\'''\''/g;
1946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1956 $as_echo "## ----------------- ##
1957 ## Output variables. ##
1958 ## ----------------- ##"
1960 for ac_var in $ac_subst_vars
1962 eval ac_val=\$$ac_var
1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 $as_echo "$ac_var='\''$ac_val'\''"
1970 if test -n "$ac_subst_files"; then
1971 $as_echo "## ------------------- ##
1972 ## File substitutions. ##
1973 ## ------------------- ##"
1975 for ac_var in $ac_subst_files
1977 eval ac_val=\$$ac_var
1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 $as_echo "$ac_var='\''$ac_val'\''"
1986 if test -s confdefs.h; then
1987 $as_echo "## ----------- ##
1994 test "$ac_signal" != 0 &&
1995 $as_echo "$as_me: caught signal $ac_signal"
1996 $as_echo "$as_me: exit $exit_status"
1998 rm -f core *.core core.conftest.* &&
1999 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2002 for ac_signal in 1 2 13 15; do
2003 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2007 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2008 rm -f -r conftest* confdefs.h
2010 $as_echo "/* confdefs.h */" > confdefs.h
2012 # Predefined preprocessor variables.
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_NAME "$PACKAGE_NAME"
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_STRING "$PACKAGE_STRING"
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_URL "$PACKAGE_URL"
2039 # Let the site file select an alternate cache file if it wants to.
2040 # Prefer an explicitly selected file to automatically selected ones.
2043 if test -n "$CONFIG_SITE"; then
2044 # We do not want a PATH search for config.site.
2045 case $CONFIG_SITE in #((
2046 -*) ac_site_file1=./$CONFIG_SITE;;
2047 */*) ac_site_file1=$CONFIG_SITE;;
2048 *) ac_site_file1=./$CONFIG_SITE;;
2050 elif test "x$prefix" != xNONE; then
2051 ac_site_file1=$prefix/share/config.site
2052 ac_site_file2=$prefix/etc/config.site
2054 ac_site_file1=$ac_default_prefix/share/config.site
2055 ac_site_file2=$ac_default_prefix/etc/config.site
2057 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2059 test "x$ac_site_file" = xNONE && continue
2060 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2062 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2063 sed 's/^/| /' "$ac_site_file" >&5
2065 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 as_fn_error $? "failed to load site script $ac_site_file
2068 See \`config.log' for more details" "$LINENO" 5; }
2072 if test -r "$cache_file"; then
2073 # Some versions of bash will fail to source /dev/null (special files
2074 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2075 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2077 $as_echo "$as_me: loading cache $cache_file" >&6;}
2079 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2080 *) . "./$cache_file";;
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2085 $as_echo "$as_me: creating cache $cache_file" >&6;}
2089 # Check that the precious variables saved in the cache have kept the same
2091 ac_cache_corrupted=false
2092 for ac_var in $ac_precious_vars; do
2093 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2094 eval ac_new_set=\$ac_env_${ac_var}_set
2095 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2096 eval ac_new_val=\$ac_env_${ac_var}_value
2097 case $ac_old_set,$ac_new_set in
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2104 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2105 ac_cache_corrupted=: ;;
2108 if test "x$ac_old_val" != "x$ac_new_val"; then
2109 # differences in whitespace do not lead to failure.
2110 ac_old_val_w=`echo x $ac_old_val`
2111 ac_new_val_w=`echo x $ac_new_val`
2112 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2114 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2115 ac_cache_corrupted=:
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2118 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2119 eval $ac_var=\$ac_old_val
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2122 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2124 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2127 # Pass precious variables to config.status.
2128 if test "$ac_new_set" = set; then
2130 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2131 *) ac_arg=$ac_var=$ac_new_val ;;
2133 case " $ac_configure_args " in
2134 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2135 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2139 if $ac_cache_corrupted; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2143 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2144 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2146 ## -------------------- ##
2147 ## Main body of script. ##
2148 ## -------------------- ##
2151 ac_cpp='$CPP $CPPFLAGS'
2152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158 #--------------------------------------------------------------------
2159 # Call TEA_INIT as the first TEA_ macro to set up initial vars.
2160 # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
2161 # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
2162 #--------------------------------------------------------------------
2165 # TEA extensions pass this us the version of TEA they think they
2166 # are compatible with.
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5
2170 $as_echo_n "checking for correct TEA configuration... " >&6; }
2171 if test x"${PACKAGE_NAME}" = x ; then
2173 The PACKAGE_NAME variable must be defined by your TEA configure.in" "$LINENO" 5
2175 if test x"3.5" = x ; then
2177 TEA version not specified." "$LINENO" 5
2178 elif test "3.5" != "${TEA_VERSION}" ; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.5\", have \"${TEA_VERSION}\"" >&5
2180 $as_echo "warning: requested TEA version \"3.5\", have \"${TEA_VERSION}\"" >&6; }
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5
2183 $as_echo "ok (TEA ${TEA_VERSION})" >&6; }
2185 case "`uname -s`" in
2186 *win32*|*WIN32*|*CYGWIN_NT*|*CYGWIN_9*|*CYGWIN_ME*|*MINGW32_*)
2187 # Extract the first word of "cygpath", so it can be a program name with args.
2188 set dummy cygpath; ac_word=$2
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2190 $as_echo_n "checking for $ac_word... " >&6; }
2191 if ${ac_cv_prog_CYGPATH+:} false; then :
2192 $as_echo_n "(cached) " >&6
2194 if test -n "$CYGPATH"; then
2195 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 test -z "$as_dir" && as_dir=.
2202 for ac_exec_ext in '' $ac_executable_extensions; do
2203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2204 ac_cv_prog_CYGPATH="cygpath -w"
2205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo"
2215 CYGPATH=$ac_cv_prog_CYGPATH
2216 if test -n "$CYGPATH"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
2218 $as_echo "$CYGPATH" >&6; }
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2221 $as_echo "no" >&6; }
2226 TEA_PLATFORM="windows"
2235 # Check if exec_prefix is set. If not use fall back to prefix.
2236 # Note when adjusted, so that TEA_PREFIX can correct for this.
2237 # This is needed for recursive configures, since autoconf propagates
2238 # $prefix, but not $exec_prefix (doh!).
2239 if test x$exec_prefix = xNONE ; then
2240 exec_prefix_default=yes
2247 # This package name must be replaced statically for AC_SUBST to work
2249 # Substitute STUB_LIB_FILE in case package creates a stub library too.
2252 # We AC_SUBST these here to ensure they are subst'ed,
2253 # in case the user doesn't call TEA_ADD_...
2264 for ac_dir in tclconfig "$srcdir"/tclconfig; do
2265 if test -f "$ac_dir/install-sh"; then
2267 ac_install_sh="$ac_aux_dir/install-sh -c"
2269 elif test -f "$ac_dir/install.sh"; then
2271 ac_install_sh="$ac_aux_dir/install.sh -c"
2273 elif test -f "$ac_dir/shtool"; then
2275 ac_install_sh="$ac_aux_dir/shtool install -c"
2279 if test -z "$ac_aux_dir"; then
2280 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tclconfig \"$srcdir\"/tclconfig" "$LINENO" 5
2283 # These three variables are undocumented and unsupported,
2284 # and are intended to be withdrawn in a future Autoconf release.
2285 # They can cause serious problems if a builder's source tree is in a directory
2286 # whose full name contains unusual characters.
2287 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2288 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2289 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2293 #--------------------------------------------------------------------
2294 # Load the tclConfig.sh file
2295 #--------------------------------------------------------------------
2300 # Ok, lets find the tcl configuration
2301 # First, look for one uninstalled.
2302 # the alternative search directory is invoked by --with-tcl
2305 if test x"${no_tcl}" = x ; then
2306 # we reset no_tcl in case something fails here
2309 # Check whether --with-tcl was given.
2310 if test "${with_tcl+set}" = set; then :
2311 withval=$with_tcl; with_tclconfig=${withval}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
2315 $as_echo_n "checking for Tcl configuration... " >&6; }
2316 if ${ac_cv_c_tclconfig+:} false; then :
2317 $as_echo_n "(cached) " >&6
2321 # First check to see if --with-tcl was specified.
2322 if test x"${with_tclconfig}" != x ; then
2323 case ${with_tclconfig} in
2325 if test -f ${with_tclconfig}; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5
2327 $as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;}
2328 with_tclconfig=`echo ${with_tclconfig} | sed 's!/tclConfig\.sh$!!'`
2331 if test -f "${with_tclconfig}/tclConfig.sh" ; then
2332 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
2334 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
2338 # then check for a private Tcl installation
2339 if test x"${ac_cv_c_tclconfig}" = x ; then
2342 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2343 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
2344 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
2346 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2347 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
2348 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
2350 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2351 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
2352 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
2353 if test -f "$i/unix/tclConfig.sh" ; then
2354 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
2360 # on Darwin, check in Framework installation locations
2361 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
2362 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
2363 `ls -d /Library/Frameworks 2>/dev/null` \
2364 `ls -d /Network/Library/Frameworks 2>/dev/null` \
2365 `ls -d /System/Library/Frameworks 2>/dev/null` \
2367 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
2368 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
2374 # on Windows, check in common installation locations
2375 if test "${TEA_PLATFORM}" = "windows" \
2376 -a x"${ac_cv_c_tclconfig}" = x ; then
2377 for i in `ls -d C:/Tcl/lib 2>/dev/null` \
2378 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \
2380 if test -f "$i/tclConfig.sh" ; then
2381 ac_cv_c_tclconfig=`(cd $i; pwd)`
2387 # check in a few common install locations
2388 if test x"${ac_cv_c_tclconfig}" = x ; then
2389 for i in `ls -d ${libdir} 2>/dev/null` \
2390 `ls -d ${exec_prefix}/lib 2>/dev/null` \
2391 `ls -d ${prefix}/lib 2>/dev/null` \
2392 `ls -d /usr/local/lib 2>/dev/null` \
2393 `ls -d /usr/contrib/lib 2>/dev/null` \
2394 `ls -d /usr/lib 2>/dev/null` \
2396 if test -f "$i/tclConfig.sh" ; then
2397 ac_cv_c_tclconfig=`(cd $i; pwd)`
2403 # check in a few other private locations
2404 if test x"${ac_cv_c_tclconfig}" = x ; then
2407 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
2408 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
2409 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
2410 if test -f "$i/unix/tclConfig.sh" ; then
2411 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
2420 if test x"${ac_cv_c_tclconfig}" = x ; then
2421 TCL_BIN_DIR="# no Tcl configs found"
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
2423 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
2427 TCL_BIN_DIR=${ac_cv_c_tclconfig}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
2429 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
2435 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
2437 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
2439 $as_echo "loading" >&6; }
2440 . ${TCL_BIN_DIR}/tclConfig.sh
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
2443 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
2446 # eval is required to do the TCL_DBGX substitution
2447 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
2448 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
2450 # If the TCL_BIN_DIR is the build directory (not the install directory),
2451 # then set the common variable name to the value of the build variables.
2452 # For example, the variable TCL_LIB_SPEC will be set to the value
2453 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
2454 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
2455 # installed and uninstalled version of Tcl.
2456 if test -f ${TCL_BIN_DIR}/Makefile ; then
2457 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
2458 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
2459 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
2460 elif test "`uname -s`" = "Darwin"; then
2461 # If Tcl was built as a framework, attempt to use the libraries
2462 # from the framework at the given location so that linking works
2463 # against Tcl.framework installed in an arbitary location.
2466 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
2467 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
2468 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
2469 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
2470 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
2475 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
2476 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
2477 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
2483 # eval is required to do the TCL_DBGX substitution
2484 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
2485 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
2486 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
2487 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
2508 #--------------------------------------------------------------------
2509 # Load the tkConfig.sh file if necessary (Tk extension)
2510 #--------------------------------------------------------------------
2515 #-----------------------------------------------------------------------
2516 # Handle the --prefix=... option by defaulting to what Tcl gave.
2517 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
2518 #-----------------------------------------------------------------------
2521 if test "${prefix}" = "NONE"; then
2523 if test x"${TCL_PREFIX}" != x; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5
2525 $as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;}
2526 prefix=${TCL_PREFIX}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5
2529 $as_echo "$as_me: --prefix defaulting to /usr/local" >&6;}
2533 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \
2534 -o x"${exec_prefix_default}" = x"yes" ; then
2535 if test x"${TCL_EXEC_PREFIX}" != x; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5
2537 $as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;}
2538 exec_prefix=${TCL_EXEC_PREFIX}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5
2541 $as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;}
2547 #-----------------------------------------------------------------------
2548 # Standard compiler checks.
2549 # This sets up CC by using the CC env var, or looks for gcc otherwise.
2550 # This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create
2551 # the basic setup necessary to compile executables.
2552 #-----------------------------------------------------------------------
2554 # Find a good install program. We prefer a C program (faster),
2555 # so one script is as good as another. But avoid the broken or
2556 # incompatible versions:
2557 # SysV /etc/install, /usr/sbin/install
2558 # SunOS /usr/etc/install
2559 # IRIX /sbin/install
2561 # AmigaOS /C/install, which installs bootblocks on floppy discs
2562 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2565 # OS/2's system install, which has a completely different semantic
2566 # ./install, which can be erroneously created by make from ./install.sh.
2567 # Reject install programs that cannot install multiple files.
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2569 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2570 if test -z "$INSTALL"; then
2571 if ${ac_cv_path_install+:} false; then :
2572 $as_echo_n "(cached) " >&6
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 # Account for people who put trailing slashes in PATH elements.
2580 case $as_dir/ in #((
2581 ./ | .// | /[cC]/* | \
2582 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2583 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2586 # OSF1 and SCO ODT 3.0 have their own names for install.
2587 # Don't use installbsd from OSF since it installs stuff as root
2589 for ac_prog in ginstall scoinst install; do
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2592 if test $ac_prog = install &&
2593 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2594 # AIX install. It has an incompatible calling convention.
2596 elif test $ac_prog = install &&
2597 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2598 # program-specific install script used by HP pwplus--don't use.
2601 rm -rf conftest.one conftest.two conftest.dir
2602 echo one > conftest.one
2603 echo two > conftest.two
2605 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2606 test -s conftest.one && test -s conftest.two &&
2607 test -s conftest.dir/conftest.one &&
2608 test -s conftest.dir/conftest.two
2610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2623 rm -rf conftest.one conftest.two conftest.dir
2626 if test "${ac_cv_path_install+set}" = set; then
2627 INSTALL=$ac_cv_path_install
2629 # As a last resort, use the slow shell script. Don't cache a
2630 # value for INSTALL within a source directory, because that will
2631 # break other packages using the cache if that directory is
2632 # removed, or if the value is a relative name.
2633 INSTALL=$ac_install_sh
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2637 $as_echo "$INSTALL" >&6; }
2639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2640 # It thinks the first close brace ends the variable substitution.
2641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2643 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2645 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2648 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE)
2649 # in this macro, they need to go into TEA_SETUP_COMPILER instead.
2651 # If the user did not set CFLAGS, set it now to keep
2652 # the AC_PROG_CC macro from adding "-g -O2".
2653 if test "${CFLAGS+set}" != "set" ; then
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_CC+:} false; then :
2668 $as_echo_n "(cached) " >&6
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 if test -n "$CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693 $as_echo "$CC" >&6; }
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2701 if test -z "$ac_cv_prog_CC"; then
2703 # Extract the first word of "gcc", so it can be a program name with args.
2704 set dummy gcc; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2708 $as_echo_n "(cached) " >&6
2710 if test -n "$ac_ct_CC"; then
2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_ac_ct_CC="gcc"
2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2733 $as_echo "$ac_ct_CC" >&6; }
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2739 if test "x$ac_ct_CC" = x; then
2742 case $cross_compiling:$ac_tool_warned in
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_CC+:} false; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_CC="${ac_tool_prefix}cc"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2795 if test -z "$CC"; then
2796 # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if ${ac_cv_prog_CC+:} false; then :
2801 $as_echo_n "(cached) " >&6
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2815 ac_prog_rejected=yes
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test $ac_prog_rejected = yes; then
2827 # We found a bogon in the path, so make sure we never use it.
2828 set dummy $ac_cv_prog_CC
2830 if test $# != 0; then
2831 # We chose a different compiler from the bogus one.
2832 # However, it has the same basename, so the bogon will be chosen
2833 # first if we set CC to just the basename; use the full file name.
2835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2841 if test -n "$CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2851 if test -z "$CC"; then
2852 if test -n "$ac_tool_prefix"; then
2853 for ac_prog in cl.exe
2855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2892 test -n "$CC" && break
2895 if test -z "$CC"; then
2897 for ac_prog in cl.exe
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2904 $as_echo_n "(cached) " >&6
2906 if test -n "$ac_ct_CC"; then
2907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 ac_cv_prog_ac_ct_CC="$ac_prog"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2929 $as_echo "$ac_ct_CC" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2936 test -n "$ac_ct_CC" && break
2939 if test "x$ac_ct_CC" = x; then
2942 case $cross_compiling:$ac_tool_warned in
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2955 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957 as_fn_error $? "no acceptable C compiler found in \$PATH
2958 See \`config.log' for more details" "$LINENO" 5; }
2960 # Provide some information about the compiler.
2961 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2964 for ac_option in --version -v -V -qversion; do
2965 { { ac_try="$ac_compiler $ac_option >&5"
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2974 if test -s conftest.err; then
2976 ... rest of stderr output deleted ...
2977 10q' conftest.err >conftest.er1
2978 cat conftest.er1 >&5
2980 rm -f conftest.er1 conftest.err
2981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982 test $ac_status = 0; }
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2996 ac_clean_files_save=$ac_clean_files
2997 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2998 # Try to create an executable without -o first, disregard a.out.
2999 # It will help us diagnose broken compilers, and finding out an intuition
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3002 $as_echo_n "checking whether the C compiler works... " >&6; }
3003 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3005 # The possible output files:
3006 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3009 for ac_file in $ac_files
3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3013 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3018 if { { ac_try="$ac_link_default"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_link_default") 2>&5
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
3029 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3030 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3031 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3032 # so that the user can short-circuit this test for compilers unknown to
3034 for ac_file in $ac_files ''
3036 test -f "$ac_file" || continue
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3041 # We found the default executable, but exeext='' is most
3045 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049 # We set ac_cv_exeext here because the later test for it is not
3050 # safe: cross compilers may not add the suffix if given an `-o'
3051 # argument, so we may need to know it at that point already.
3052 # Even if this section looks crufty: it has the advantage of
3059 test "$ac_cv_exeext" = no && ac_cv_exeext=
3064 if test -z "$ac_file"; then :
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error 77 "C compiler cannot create executables
3073 See \`config.log' for more details" "$LINENO" 5; }
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3079 $as_echo_n "checking for C compiler default output file name... " >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3081 $as_echo "$ac_file" >&6; }
3082 ac_exeext=$ac_cv_exeext
3084 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3085 ac_clean_files=$ac_clean_files_save
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3087 $as_echo_n "checking for suffix of executables... " >&6; }
3088 if { { ac_try="$ac_link"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_link") 2>&5
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; then :
3099 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3100 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3101 # work properly (i.e., refer to `conftest.exe'), while it won't with
3103 for ac_file in conftest.exe conftest conftest.*; do
3104 test -f "$ac_file" || continue
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3107 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3116 See \`config.log' for more details" "$LINENO" 5; }
3118 rm -f conftest conftest$ac_cv_exeext
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3120 $as_echo "$ac_cv_exeext" >&6; }
3122 rm -f conftest.$ac_ext
3123 EXEEXT=$ac_cv_exeext
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3131 FILE *f = fopen ("conftest.out", "w");
3132 return ferror (f) || fclose (f) != 0;
3138 ac_clean_files="$ac_clean_files conftest.out"
3139 # Check that the compiler produces executables we can run. If not, either
3140 # the compiler is broken, or we cross compile.
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3142 $as_echo_n "checking whether we are cross compiling... " >&6; }
3143 if test "$cross_compiling" != yes; then
3144 { { ac_try="$ac_link"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151 (eval "$ac_link") 2>&5
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155 if { ac_try='./conftest$ac_cv_exeext'
3156 { { case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_try") 2>&5
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }; }; then
3168 if test "$cross_compiling" = maybe; then
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error $? "cannot run C compiled programs.
3174 If you meant to cross compile, use \`--host'.
3175 See \`config.log' for more details" "$LINENO" 5; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3180 $as_echo "$cross_compiling" >&6; }
3182 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3183 ac_clean_files=$ac_clean_files_save
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3185 $as_echo_n "checking for suffix of object files... " >&6; }
3186 if ${ac_cv_objext+:} false; then :
3187 $as_echo_n "(cached) " >&6
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3200 rm -f conftest.o conftest.obj
3201 if { { ac_try="$ac_compile"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_compile") 2>&5
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 for ac_file in conftest.o conftest.obj conftest.*; do
3213 test -f "$ac_file" || continue;
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3216 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3221 $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "cannot compute suffix of object files: cannot compile
3227 See \`config.log' for more details" "$LINENO" 5; }
3229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3232 $as_echo "$ac_cv_objext" >&6; }
3233 OBJEXT=$ac_cv_objext
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3236 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3237 if ${ac_cv_c_compiler_gnu+:} false; then :
3238 $as_echo_n "(cached) " >&6
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3254 if ac_fn_c_try_compile "$LINENO"; then :
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3265 if test $ac_compiler_gnu = yes; then
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3273 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3274 if ${ac_cv_prog_cc_g+:} false; then :
3275 $as_echo_n "(cached) " >&6
3277 ac_save_c_werror_flag=$ac_c_werror_flag
3278 ac_c_werror_flag=yes
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3292 if ac_fn_c_try_compile "$LINENO"; then :
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3307 if ac_fn_c_try_compile "$LINENO"; then :
3310 ac_c_werror_flag=$ac_save_c_werror_flag
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3323 if ac_fn_c_try_compile "$LINENO"; then :
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_c_werror_flag=$ac_save_c_werror_flag
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3334 $as_echo "$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336 CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338 if test "$GCC" = yes; then
3344 if test "$GCC" = yes; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3352 if ${ac_cv_prog_cc_c89+:} false; then :
3353 $as_echo_n "(cached) " >&6
3355 ac_cv_prog_cc_c89=no
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3361 #include <sys/types.h>
3362 #include <sys/stat.h>
3363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3364 struct buf { int x; };
3365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3366 static char *e (p, i)
3372 static char *f (char * (*g) (char **, int), char **p, ...)
3377 s = g (p, va_arg (v,int));
3382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3383 function prototypes and stuff, but not '\xHH' hex character constants.
3384 These don't provoke an error unfortunately, instead are silently treated
3385 as 'x'. The following induces an error, until -std is added to get
3386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3387 array size at least. It's necessary to write '\x00'==0 to get something
3388 that's true only with -std. */
3389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3392 inside strings and character constants. */
3394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3413 CC="$ac_save_CC $ac_arg"
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_c89=$ac_arg
3417 rm -f core conftest.err conftest.$ac_objext
3418 test "x$ac_cv_prog_cc_c89" != "xno" && break
3420 rm -f conftest.$ac_ext
3425 case "x$ac_cv_prog_cc_c89" in
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3428 $as_echo "none needed" >&6; } ;;
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3431 $as_echo "unsupported" >&6; } ;;
3433 CC="$CC $ac_cv_prog_cc_c89"
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3437 if test "x$ac_cv_prog_cc_c89" != xno; then :
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3454 # On Suns, sometimes $CPP names a directory.
3455 if test -n "$CPP" && test -d "$CPP"; then
3458 if test -z "$CPP"; then
3459 if ${ac_cv_prog_CPP+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 # Double quotes because CPP needs to be expanded
3463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3466 for ac_c_preproc_warn_flag in '' yes
3468 # Use a header file that comes with gcc, so configuring glibc
3469 # with a fresh cross-compiler works.
3470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471 # <limits.h> exists even on freestanding compilers.
3472 # On the NeXT, cc -E runs the code through the compiler's parser,
3473 # not just through cpp. "Syntax error" is here to catch this case.
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3477 # include <limits.h>
3479 # include <assert.h>
3483 if ac_fn_c_try_cpp "$LINENO"; then :
3486 # Broken: fails on valid input.
3489 rm -f conftest.err conftest.i conftest.$ac_ext
3491 # OK, works on sane cases. Now check whether nonexistent headers
3492 # can be detected and how.
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495 #include <ac_nonexistent.h>
3497 if ac_fn_c_try_cpp "$LINENO"; then :
3498 # Broken: success on invalid input.
3501 # Passes both tests.
3505 rm -f conftest.err conftest.i conftest.$ac_ext
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.i conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then :
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3523 $as_echo "$CPP" >&6; }
3525 for ac_c_preproc_warn_flag in '' yes
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3536 # include <limits.h>
3538 # include <assert.h>
3542 if ac_fn_c_try_cpp "$LINENO"; then :
3545 # Broken: fails on valid input.
3548 rm -f conftest.err conftest.i conftest.$ac_ext
3550 # OK, works on sane cases. Now check whether nonexistent headers
3551 # can be detected and how.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3556 if ac_fn_c_try_cpp "$LINENO"; then :
3557 # Broken: success on invalid input.
3560 # Passes both tests.
3564 rm -f conftest.err conftest.i conftest.$ac_ext
3567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3568 rm -f conftest.i conftest.err conftest.$ac_ext
3569 if $ac_preproc_ok; then :
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3575 See \`config.log' for more details" "$LINENO" 5; }
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 #--------------------------------------------------------------------
3588 # Checks to see if the make program sets the $MAKE variable.
3589 #--------------------------------------------------------------------
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3592 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3594 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3595 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 cat >conftest.make <<\_ACEOF
3601 @echo '@@@%%%=$(MAKE)=@@@%%%'
3603 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3604 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3606 eval ac_cv_prog_make_${ac_make}_set=yes;;
3608 eval ac_cv_prog_make_${ac_make}_set=no;;
3612 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3614 $as_echo "yes" >&6; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3619 SET_MAKE="MAKE=${MAKE-make}"
3623 #--------------------------------------------------------------------
3625 #--------------------------------------------------------------------
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if ${ac_cv_prog_RANLIB+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$RANLIB"; then
3636 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 RANLIB=$ac_cv_prog_RANLIB
3656 if test -n "$RANLIB"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3658 $as_echo "$RANLIB" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3666 if test -z "$ac_cv_prog_RANLIB"; then
3667 ac_ct_RANLIB=$RANLIB
3668 # Extract the first word of "ranlib", so it can be a program name with args.
3669 set dummy ranlib; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 if test -n "$ac_ct_RANLIB"; then
3676 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_ac_ct_RANLIB="ranlib"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3696 if test -n "$ac_ct_RANLIB"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3698 $as_echo "$ac_ct_RANLIB" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3704 if test "x$ac_ct_RANLIB" = x; then
3707 case $cross_compiling:$ac_tool_warned in
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3711 ac_tool_warned=yes ;;
3713 RANLIB=$ac_ct_RANLIB
3716 RANLIB="$ac_cv_prog_RANLIB"
3720 #--------------------------------------------------------------------
3721 # Determines the correct binary file extension (.o, .obj, .exe etc.)
3722 #--------------------------------------------------------------------
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3730 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3731 if ${ac_cv_path_GREP+:} false; then :
3732 $as_echo_n "(cached) " >&6
3734 if test -z "$GREP"; then
3735 ac_path_GREP_found=false
3736 # Loop through the user's path and test for each of PROGNAME-LIST
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3741 test -z "$as_dir" && as_dir=.
3742 for ac_prog in grep ggrep; do
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3745 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3746 # Check for GNU ac_path_GREP and select it if it is found.
3747 # Check for GNU $ac_path_GREP
3748 case `"$ac_path_GREP" --version 2>&1` in
3750 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3753 $as_echo_n 0123456789 >"conftest.in"
3756 cat "conftest.in" "conftest.in" >"conftest.tmp"
3757 mv "conftest.tmp" "conftest.in"
3758 cp "conftest.in" "conftest.nl"
3759 $as_echo 'GREP' >> "conftest.nl"
3760 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3762 as_fn_arith $ac_count + 1 && ac_count=$as_val
3763 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3764 # Best one so far, save it but keep looking for a better one
3765 ac_cv_path_GREP="$ac_path_GREP"
3766 ac_path_GREP_max=$ac_count
3768 # 10*(2^10) chars as input seems more than enough
3769 test $ac_count -gt 10 && break
3771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3774 $ac_path_GREP_found && break 3
3779 if test -z "$ac_cv_path_GREP"; then
3780 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3783 ac_cv_path_GREP=$GREP
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3788 $as_echo "$ac_cv_path_GREP" >&6; }
3789 GREP="$ac_cv_path_GREP"
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3793 $as_echo_n "checking for egrep... " >&6; }
3794 if ${ac_cv_path_EGREP+:} false; then :
3795 $as_echo_n "(cached) " >&6
3797 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3798 then ac_cv_path_EGREP="$GREP -E"
3800 if test -z "$EGREP"; then
3801 ac_path_EGREP_found=false
3802 # Loop through the user's path and test for each of PROGNAME-LIST
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3807 test -z "$as_dir" && as_dir=.
3808 for ac_prog in egrep; do
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3811 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3812 # Check for GNU ac_path_EGREP and select it if it is found.
3813 # Check for GNU $ac_path_EGREP
3814 case `"$ac_path_EGREP" --version 2>&1` in
3816 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3819 $as_echo_n 0123456789 >"conftest.in"
3822 cat "conftest.in" "conftest.in" >"conftest.tmp"
3823 mv "conftest.tmp" "conftest.in"
3824 cp "conftest.in" "conftest.nl"
3825 $as_echo 'EGREP' >> "conftest.nl"
3826 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3828 as_fn_arith $ac_count + 1 && ac_count=$as_val
3829 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3830 # Best one so far, save it but keep looking for a better one
3831 ac_cv_path_EGREP="$ac_path_EGREP"
3832 ac_path_EGREP_max=$ac_count
3834 # 10*(2^10) chars as input seems more than enough
3835 test $ac_count -gt 10 && break
3837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3840 $ac_path_EGREP_found && break 3
3845 if test -z "$ac_cv_path_EGREP"; then
3846 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3849 ac_cv_path_EGREP=$EGREP
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3855 $as_echo "$ac_cv_path_EGREP" >&6; }
3856 EGREP="$ac_cv_path_EGREP"
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3860 $as_echo_n "checking for ANSI C header files... " >&6; }
3861 if ${ac_cv_header_stdc+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_cv_header_stdc=yes
3882 ac_cv_header_stdc=no
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886 if test $ac_cv_header_stdc = yes; then
3887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "memchr" >/dev/null 2>&1; then :
3897 ac_cv_header_stdc=no
3903 if test $ac_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3911 $EGREP "free" >/dev/null 2>&1; then :
3914 ac_cv_header_stdc=no
3920 if test $ac_cv_header_stdc = yes; then
3921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3922 if test "$cross_compiling" = yes; then :
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3929 #if ((' ' & 0x0FF) == 0x020)
3930 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3931 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3933 # define ISLOWER(c) \
3934 (('a' <= (c) && (c) <= 'i') \
3935 || ('j' <= (c) && (c) <= 'r') \
3936 || ('s' <= (c) && (c) <= 'z'))
3937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3945 for (i = 0; i < 256; i++)
3946 if (XOR (islower (i), ISLOWER (i))
3947 || toupper (i) != TOUPPER (i))
3952 if ac_fn_c_try_run "$LINENO"; then :
3955 ac_cv_header_stdc=no
3957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3958 conftest.$ac_objext conftest.beam conftest.$ac_ext
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3964 $as_echo "$ac_cv_header_stdc" >&6; }
3965 if test $ac_cv_header_stdc = yes; then
3967 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3971 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3972 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3973 inttypes.h stdint.h unistd.h
3975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3976 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3979 cat >>confdefs.h <<_ACEOF
3980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3989 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here.
3992 #------------------------------------------------------------------------
3993 # If we're using GCC, see if the compiler understands -pipe. If so, use it.
3994 # It makes compiling go faster. (This is only a performance feature.)
3995 #------------------------------------------------------------------------
3997 if test -z "$no_pipe" -a -n "$GCC"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5
3999 $as_echo_n "checking if the compiler understands -pipe... " >&6; }
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015 $as_echo "yes" >&6; }
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 #--------------------------------------------------------------------
4025 # Common compiler flag setup
4026 #--------------------------------------------------------------------
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4029 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4030 if ${ac_cv_c_bigendian+:} false; then :
4031 $as_echo_n "(cached) " >&6
4033 ac_cv_c_bigendian=unknown
4034 # See if we're dealing with a universal compiler.
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4037 #ifndef __APPLE_CC__
4038 not a universal capable compiler
4043 if ac_fn_c_try_compile "$LINENO"; then :
4045 # Check for potential -arch flags. It is not universal unless
4046 # there are at least two -arch flags with different values.
4049 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4050 if test -n "$ac_prev"; then
4052 i?86 | x86_64 | ppc | ppc64)
4053 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4056 ac_cv_c_bigendian=universal
4062 elif test "x$ac_word" = "x-arch"; then
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 if test $ac_cv_c_bigendian = unknown; then
4069 # See if sys/param.h defines the BYTE_ORDER macro.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072 #include <sys/types.h>
4073 #include <sys/param.h>
4078 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4079 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 # It does; now see whether it defined to BIG_ENDIAN or not.
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #include <sys/types.h>
4093 #include <sys/param.h>
4098 #if BYTE_ORDER != BIG_ENDIAN
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_cv_c_bigendian=yes
4109 ac_cv_c_bigendian=no
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 if test $ac_cv_c_bigendian = unknown; then
4116 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4124 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4132 if ac_fn_c_try_compile "$LINENO"; then :
4133 # It does; now see whether it defined to _BIG_ENDIAN or not.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_c_bigendian=yes
4152 ac_cv_c_bigendian=no
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 if test $ac_cv_c_bigendian = unknown; then
4159 # Compile a test program.
4160 if test "$cross_compiling" = yes; then :
4161 # Try to guess by grepping values from an object file.
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 short int ascii_mm[] =
4165 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4166 short int ascii_ii[] =
4167 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4168 int use_ascii (int i) {
4169 return ascii_mm[i] + ascii_ii[i];
4171 short int ebcdic_ii[] =
4172 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4173 short int ebcdic_mm[] =
4174 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4175 int use_ebcdic (int i) {
4176 return ebcdic_mm[i] + ebcdic_ii[i];
4183 return use_ascii (foo) == use_ebcdic (foo);
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4190 ac_cv_c_bigendian=yes
4192 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4193 if test "$ac_cv_c_bigendian" = unknown; then
4194 ac_cv_c_bigendian=no
4196 # finding both strings is unlikely to happen, but who knows?
4197 ac_cv_c_bigendian=unknown
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 $ac_includes_default
4210 /* Are we little or big endian? From Harbison&Steele. */
4214 char c[sizeof (long int)];
4217 return u.c[sizeof (long int) - 1] == 1;
4223 if ac_fn_c_try_run "$LINENO"; then :
4224 ac_cv_c_bigendian=no
4226 ac_cv_c_bigendian=yes
4228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4229 conftest.$ac_objext conftest.beam conftest.$ac_ext
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4235 $as_echo "$ac_cv_c_bigendian" >&6; }
4236 case $ac_cv_c_bigendian in #(
4238 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4244 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4248 as_fn_error $? "unknown endianness
4249 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4252 if test "${TEA_PLATFORM}" = "unix" ; then
4254 #--------------------------------------------------------------------
4255 # On a few very rare systems, all of the libm.a stuff is
4256 # already in libc.a. Set compiler flags accordingly.
4257 # Also, Linux requires the "ieee" library for math to work
4258 # right (and it must appear before "-lm").
4259 #--------------------------------------------------------------------
4261 ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
4262 if test "x$ac_cv_func_sin" = xyes; then :
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5
4269 $as_echo_n "checking for main in -lieee... " >&6; }
4270 if ${ac_cv_lib_ieee_main+:} false; then :
4271 $as_echo_n "(cached) " >&6
4273 ac_check_lib_save_LIBS=$LIBS
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4287 if ac_fn_c_try_link "$LINENO"; then :
4288 ac_cv_lib_ieee_main=yes
4290 ac_cv_lib_ieee_main=no
4292 rm -f core conftest.err conftest.$ac_objext \
4293 conftest$ac_exeext conftest.$ac_ext
4294 LIBS=$ac_check_lib_save_LIBS
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5
4297 $as_echo "$ac_cv_lib_ieee_main" >&6; }
4298 if test "x$ac_cv_lib_ieee_main" = xyes; then :
4299 MATH_LIBS="-lieee $MATH_LIBS"
4303 #--------------------------------------------------------------------
4304 # Interactive UNIX requires -linet instead of -lsocket, plus it
4305 # needs net/errno.h to define the socket-related error codes.
4306 #--------------------------------------------------------------------
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
4309 $as_echo_n "checking for main in -linet... " >&6; }
4310 if ${ac_cv_lib_inet_main+:} false; then :
4311 $as_echo_n "(cached) " >&6
4313 ac_check_lib_save_LIBS=$LIBS
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4327 if ac_fn_c_try_link "$LINENO"; then :
4328 ac_cv_lib_inet_main=yes
4330 ac_cv_lib_inet_main=no
4332 rm -f core conftest.err conftest.$ac_objext \
4333 conftest$ac_exeext conftest.$ac_ext
4334 LIBS=$ac_check_lib_save_LIBS
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
4337 $as_echo "$ac_cv_lib_inet_main" >&6; }
4338 if test "x$ac_cv_lib_inet_main" = xyes; then :
4342 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
4343 if test "x$ac_cv_header_net_errno_h" = xyes; then :
4346 $as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h
4352 #--------------------------------------------------------------------
4353 # Check for the existence of the -lsocket and -lnsl libraries.
4354 # The order here is important, so that they end up in the right
4355 # order in the command line generated by make. Here are some
4356 # special considerations:
4357 # 1. Use "connect" and "accept" to check for -lsocket, and
4358 # "gethostbyname" to check for -lnsl.
4359 # 2. Use each function name only once: can't redo a check because
4360 # autoconf caches the results of the last check and won't redo it.
4361 # 3. Use -lnsl and -lsocket only if they supply procedures that
4362 # aren't already present in the normal libraries. This is because
4363 # IRIX 5.2 has libraries, but they aren't needed and they're
4364 # bogus: they goof up name resolution if used.
4365 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4366 # To get around this problem, check for both libraries together
4367 # if -lsocket doesn't work by itself.
4368 #--------------------------------------------------------------------
4371 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4372 if test "x$ac_cv_func_connect" = xyes; then :
4378 if test "$tcl_checkSocket" = 1; then
4379 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
4380 if test "x$ac_cv_func_setsockopt" = xyes; then :
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
4384 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
4385 if ${ac_cv_lib_socket_setsockopt+:} false; then :
4386 $as_echo_n "(cached) " >&6
4388 ac_check_lib_save_LIBS=$LIBS
4389 LIBS="-lsocket $LIBS"
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4393 /* Override any GCC internal prototype to avoid an error.
4394 Use char because int might match the return type of a GCC
4395 builtin and then its argument prototype would still apply. */
4403 return setsockopt ();
4408 if ac_fn_c_try_link "$LINENO"; then :
4409 ac_cv_lib_socket_setsockopt=yes
4411 ac_cv_lib_socket_setsockopt=no
4413 rm -f core conftest.err conftest.$ac_objext \
4414 conftest$ac_exeext conftest.$ac_ext
4415 LIBS=$ac_check_lib_save_LIBS
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
4418 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
4419 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
4420 LIBS="$LIBS -lsocket"
4428 if test "$tcl_checkBoth" = 1; then
4430 LIBS="$LIBS -lsocket -lnsl"
4431 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
4432 if test "x$ac_cv_func_accept" = xyes; then :
4439 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4440 if test "x$ac_cv_func_gethostbyname" = xyes; then :
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4444 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4445 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4446 $as_echo_n "(cached) " >&6
4448 ac_check_lib_save_LIBS=$LIBS
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4453 /* Override any GCC internal prototype to avoid an error.
4454 Use char because int might match the return type of a GCC
4455 builtin and then its argument prototype would still apply. */
4459 char gethostbyname ();
4463 return gethostbyname ();
4468 if ac_fn_c_try_link "$LINENO"; then :
4469 ac_cv_lib_nsl_gethostbyname=yes
4471 ac_cv_lib_nsl_gethostbyname=no
4473 rm -f core conftest.err conftest.$ac_objext \
4474 conftest$ac_exeext conftest.$ac_ext
4475 LIBS=$ac_check_lib_save_LIBS
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4478 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4479 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4486 # Don't perform the eval of the libraries here because DL_LIBS
4487 # won't be set until we call TEA_CONFIG_CFLAGS
4489 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}'
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5
4495 $as_echo_n "checking dirent.h... " >&6; }
4496 if ${tcl_cv_dirent_h+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 #include <sys/types.h>
4507 #ifndef _POSIX_SOURCE
4510 * Generate compilation error to make the test fail: Lynx headers
4511 * are only valid if really in the POSIX environment.
4514 missing_procedure();
4518 struct dirent *entryPtr;
4520 d = opendir("foobar");
4521 entryPtr = readdir(d);
4522 p = entryPtr->d_name;
4529 if ac_fn_c_try_link "$LINENO"; then :
4534 rm -f core conftest.err conftest.$ac_objext \
4535 conftest$ac_exeext conftest.$ac_ext
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5
4538 $as_echo "$tcl_cv_dirent_h" >&6; }
4540 if test $tcl_cv_dirent_h = no; then
4542 $as_echo "#define NO_DIRENT_H 1" >>confdefs.h
4546 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4547 if test "x$ac_cv_header_errno_h" = xyes; then :
4551 $as_echo "#define NO_ERRNO_H 1" >>confdefs.h
4556 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
4557 if test "x$ac_cv_header_float_h" = xyes; then :
4561 $as_echo "#define NO_FLOAT_H 1" >>confdefs.h
4566 ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
4567 if test "x$ac_cv_header_values_h" = xyes; then :
4571 $as_echo "#define NO_VALUES_H 1" >>confdefs.h
4576 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4577 if test "x$ac_cv_header_limits_h" = xyes; then :
4579 $as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
4583 $as_echo "#define NO_LIMITS_H 1" >>confdefs.h
4588 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4589 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602 $EGREP "strtol" >/dev/null 2>&1; then :
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615 $EGREP "strtoul" >/dev/null 2>&1; then :
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "strtod" >/dev/null 2>&1; then :
4635 if test $tcl_ok = 0; then
4637 $as_echo "#define NO_STDLIB_H 1" >>confdefs.h
4640 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4641 if test "x$ac_cv_header_string_h" = xyes; then :
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 $EGREP "strstr" >/dev/null 2>&1; then :
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 $EGREP "strerror" >/dev/null 2>&1; then :
4675 # See also memmove check below for a place where NO_STRING_H can be
4678 if test $tcl_ok = 0; then
4680 $as_echo "#define NO_STRING_H 1" >>confdefs.h
4684 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
4685 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
4689 $as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h
4694 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4695 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4699 $as_echo "#define NO_DLFCN_H 1" >>confdefs.h
4705 # OS/390 lacks sys/param.h (and doesn't need it, by chance).
4706 for ac_header in sys/param.h
4708 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4709 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4710 cat >>confdefs.h <<_ACEOF
4711 #define HAVE_SYS_PARAM_H 1
4719 # Let the user call this, because if it triggers, they will
4720 # need a compat/strtod.c that is correct. Users can also
4721 # use Tcl_GetDouble(FromObj) instead.
4726 #-----------------------------------------------------------------------
4728 # Specify the C source files to compile in TEA_ADD_SOURCES,
4729 # public headers that need to be installed in TEA_ADD_HEADERS,
4730 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
4731 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
4732 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
4733 # and PKG_TCL_SOURCES.
4734 #-----------------------------------------------------------------------
4742 PKG_SOURCES="$PKG_SOURCES $i"
4743 PKG_OBJECTS="$PKG_OBJECTS $i"
4746 # check for existence - allows for generic/win/unix VPATH
4747 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
4748 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
4750 as_fn_error $? "could not find source file '$i'" "$LINENO" 5
4752 PKG_SOURCES="$PKG_SOURCES $i"
4753 # this assumes it is in a VPATH dir
4755 # handle user calling this before or after TEA_SETUP_COMPILER
4756 if test x"${OBJEXT}" != x ; then
4757 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
4759 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
4761 PKG_OBJECTS="$PKG_OBJECTS $j"
4771 # check for existence, be strict because it is installed
4772 if test ! -f "${srcdir}/$i" ; then
4773 as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5
4775 PKG_HEADERS="$PKG_HEADERS $i"
4782 PKG_INCLUDES="$PKG_INCLUDES $i"
4789 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
4790 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
4791 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
4793 PKG_LIBS="$PKG_LIBS $i"
4798 PKG_CFLAGS="$PKG_CFLAGS "
4804 # check for existence - allows for generic/win/unix VPATH
4805 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
4806 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
4808 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5
4810 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i"
4811 # this assumes it is in a VPATH dir
4813 # handle user calling this before or after TEA_SETUP_COMPILER
4814 if test x"${OBJEXT}" != x ; then
4815 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
4817 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
4819 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j"
4827 # check for existence, be strict because it is installed
4828 if test ! -f "${srcdir}/$i" ; then
4829 as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5
4831 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i"
4836 #--------------------------------------------------------------------
4838 # A few miscellaneous platform-specific items:
4840 # Define a special symbol for Windows (BUILD_sample in this case) so
4841 # that we create the export library with the dll.
4843 # Windows creates a few extra files that need to be cleaned up.
4844 # You can add more files to clean if your extension creates any extra
4847 # TEA_ADD_* any platform specific compiler/build info here.
4848 #--------------------------------------------------------------------
4850 if test "${TEA_PLATFORM}" = "windows" ; then
4852 $as_echo "#define BUILD_sample 1" >>confdefs.h
4854 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch"
4855 #TEA_ADD_SOURCES([win/winFile.c])
4856 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
4858 CLEANFILES="pkgIndex.tcl"
4859 #TEA_ADD_SOURCES([unix/unixFile.c])
4860 #TEA_ADD_LIBS([-lsuperfly])
4864 #--------------------------------------------------------------------
4866 # Choose which headers you need. Extension authors should try very
4867 # hard to only rely on the Tcl public header files. Internal headers
4868 # contain private data structures and are subject to change without
4870 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
4871 #--------------------------------------------------------------------
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5
4875 $as_echo_n "checking for Tcl public headers... " >&6; }
4878 # Check whether --with-tclinclude was given.
4879 if test "${with_tclinclude+set}" = set; then :
4880 withval=$with_tclinclude; with_tclinclude=${withval}
4884 if ${ac_cv_c_tclh+:} false; then :
4885 $as_echo_n "(cached) " >&6
4888 # Use the value from --with-tclinclude, if it was given
4890 if test x"${with_tclinclude}" != x ; then
4891 if test -f "${with_tclinclude}/tcl.h" ; then
4892 ac_cv_c_tclh=${with_tclinclude}
4894 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5
4897 if test "`uname -s`" = "Darwin"; then
4898 # If Tcl was built as a framework, attempt to use
4899 # the framework's Headers directory
4902 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`"
4907 # Look in the source dir only if Tcl is not installed,
4908 # and in that situation, look there before installed locations.
4909 if test -f "${TCL_BIN_DIR}/Makefile" ; then
4910 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`"
4913 # Check order: pkg --prefix location, Tcl's --prefix location,
4914 # relative to directory of tclConfig.sh.
4916 eval "temp_includedir=${includedir}"
4918 `ls -d ${temp_includedir} 2>/dev/null` \
4919 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \
4920 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`"
4921 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then
4922 list="$list /usr/local/include /usr/include"
4923 if test x"${TCL_INCLUDE_SPEC}" != x ; then
4924 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'`
4925 list="$list `ls -d ${d} 2>/dev/null`"
4929 if test -f "$i/tcl.h" ; then
4939 # Print a message based on how we determined the include path
4941 if test x"${ac_cv_c_tclh}" = x ; then
4942 as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5
4945 $as_echo "${ac_cv_c_tclh}" >&6; }
4948 # Convert to a native path and substitute into the output files.
4950 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}`
4952 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\"
4956 #TEA_PRIVATE_TCL_HEADERS
4958 #TEA_PUBLIC_TK_HEADERS
4959 #TEA_PRIVATE_TK_HEADERS
4962 #--------------------------------------------------------------------
4963 # Check whether --enable-threads or --disable-threads was given.
4964 # This auto-enables if Tcl was compiled threaded.
4965 #--------------------------------------------------------------------
4968 # Check whether --enable-threads was given.
4969 if test "${enable_threads+set}" = set; then :
4970 enableval=$enable_threads; tcl_ok=$enableval
4976 if test "${enable_threads+set}" = set; then
4977 enableval="$enable_threads"
4983 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then
4986 if test "${TEA_PLATFORM}" != "windows" ; then
4987 # We are always OK on Windows, so check what this platform wants:
4989 # USE_THREAD_ALLOC tells us to try the special thread-based
4990 # allocator that significantly reduces lock contention
4992 $as_echo "#define USE_THREAD_ALLOC 1" >>confdefs.h
4995 $as_echo "#define _REENTRANT 1" >>confdefs.h
4997 if test "`uname -s`" = "SunOS" ; then
4999 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5003 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
5006 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
5007 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
5008 $as_echo_n "(cached) " >&6
5010 ac_check_lib_save_LIBS=$LIBS
5011 LIBS="-lpthread $LIBS"
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5015 /* Override any GCC internal prototype to avoid an error.
5016 Use char because int might match the return type of a GCC
5017 builtin and then its argument prototype would still apply. */
5021 char pthread_mutex_init ();
5025 return pthread_mutex_init ();
5030 if ac_fn_c_try_link "$LINENO"; then :
5031 ac_cv_lib_pthread_pthread_mutex_init=yes
5033 ac_cv_lib_pthread_pthread_mutex_init=no
5035 rm -f core conftest.err conftest.$ac_objext \
5036 conftest$ac_exeext conftest.$ac_ext
5037 LIBS=$ac_check_lib_save_LIBS
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
5040 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
5041 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
5047 if test "$tcl_ok" = "no"; then
5048 # Check a little harder for __pthread_mutex_init in the same
5049 # library, as some systems hide it there until pthread.h is
5050 # defined. We could alternatively do an AC_TRY_COMPILE with
5051 # pthread.h, but that will work with libpthread really doesn't
5052 # exist, like AIX 4.2. [Bug: 4359]
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5
5054 $as_echo_n "checking for __pthread_mutex_init in -lpthread... " >&6; }
5055 if ${ac_cv_lib_pthread___pthread_mutex_init+:} false; then :
5056 $as_echo_n "(cached) " >&6
5058 ac_check_lib_save_LIBS=$LIBS
5059 LIBS="-lpthread $LIBS"
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5063 /* Override any GCC internal prototype to avoid an error.
5064 Use char because int might match the return type of a GCC
5065 builtin and then its argument prototype would still apply. */
5069 char __pthread_mutex_init ();
5073 return __pthread_mutex_init ();
5078 if ac_fn_c_try_link "$LINENO"; then :
5079 ac_cv_lib_pthread___pthread_mutex_init=yes
5081 ac_cv_lib_pthread___pthread_mutex_init=no
5083 rm -f core conftest.err conftest.$ac_objext \
5084 conftest$ac_exeext conftest.$ac_ext
5085 LIBS=$ac_check_lib_save_LIBS
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
5088 $as_echo "$ac_cv_lib_pthread___pthread_mutex_init" >&6; }
5089 if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes; then :
5097 if test "$tcl_ok" = "yes"; then
5098 # The space is needed
5099 THREADS_LIBS=" -lpthread"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5
5102 $as_echo_n "checking for pthread_mutex_init in -lpthreads... " >&6; }
5103 if ${ac_cv_lib_pthreads_pthread_mutex_init+:} false; then :
5104 $as_echo_n "(cached) " >&6
5106 ac_check_lib_save_LIBS=$LIBS
5107 LIBS="-lpthreads $LIBS"
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5111 /* Override any GCC internal prototype to avoid an error.
5112 Use char because int might match the return type of a GCC
5113 builtin and then its argument prototype would still apply. */
5117 char pthread_mutex_init ();
5121 return pthread_mutex_init ();
5126 if ac_fn_c_try_link "$LINENO"; then :
5127 ac_cv_lib_pthreads_pthread_mutex_init=yes
5129 ac_cv_lib_pthreads_pthread_mutex_init=no
5131 rm -f core conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5133 LIBS=$ac_check_lib_save_LIBS
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
5136 $as_echo "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; }
5137 if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes; then :
5143 if test "$tcl_ok" = "yes"; then
5144 # The space is needed
5145 THREADS_LIBS=" -lpthreads"
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
5148 $as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
5149 if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
5150 $as_echo_n "(cached) " >&6
5152 ac_check_lib_save_LIBS=$LIBS
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5157 /* Override any GCC internal prototype to avoid an error.
5158 Use char because int might match the return type of a GCC
5159 builtin and then its argument prototype would still apply. */
5163 char pthread_mutex_init ();
5167 return pthread_mutex_init ();
5172 if ac_fn_c_try_link "$LINENO"; then :
5173 ac_cv_lib_c_pthread_mutex_init=yes
5175 ac_cv_lib_c_pthread_mutex_init=no
5177 rm -f core conftest.err conftest.$ac_objext \
5178 conftest$ac_exeext conftest.$ac_ext
5179 LIBS=$ac_check_lib_save_LIBS
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
5182 $as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
5183 if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
5189 if test "$tcl_ok" = "no"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5
5191 $as_echo_n "checking for pthread_mutex_init in -lc_r... " >&6; }
5192 if ${ac_cv_lib_c_r_pthread_mutex_init+:} false; then :
5193 $as_echo_n "(cached) " >&6
5195 ac_check_lib_save_LIBS=$LIBS
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5200 /* Override any GCC internal prototype to avoid an error.
5201 Use char because int might match the return type of a GCC
5202 builtin and then its argument prototype would still apply. */
5206 char pthread_mutex_init ();
5210 return pthread_mutex_init ();
5215 if ac_fn_c_try_link "$LINENO"; then :
5216 ac_cv_lib_c_r_pthread_mutex_init=yes
5218 ac_cv_lib_c_r_pthread_mutex_init=no
5220 rm -f core conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5222 LIBS=$ac_check_lib_save_LIBS
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5
5225 $as_echo "$ac_cv_lib_c_r_pthread_mutex_init" >&6; }
5226 if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes; then :
5232 if test "$tcl_ok" = "yes"; then
5233 # The space is needed
5234 THREADS_LIBS=" -pthread"
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5
5238 $as_echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;}
5247 # Do checking message here to not mess up interleaved configure output
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5
5249 $as_echo_n "checking for building with threads... " >&6; }
5250 if test "${TCL_THREADS}" = 1; then
5252 $as_echo "#define TCL_THREADS 1" >>confdefs.h
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
5255 $as_echo "yes (default)" >&6; }
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5260 # TCL_THREADS sanity checking. See if our request for building with
5261 # threads is the same as the way Tcl was built. If not, warn the user.
5264 if test "${TCL_THREADS}" = "0"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5266 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
5267 that IS thread-enabled. It is recommended to use --enable-threads." >&5
5268 $as_echo "$as_me: WARNING:
5269 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl
5270 that IS thread-enabled. It is recommended to use --enable-threads." >&2;}
5274 if test "${TCL_THREADS}" = "1"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5276 --enable-threads requested, but building against a Tcl that is NOT
5277 thread-enabled. This is an OK configuration that will also run in
5278 a thread-enabled core." >&5
5279 $as_echo "$as_me: WARNING:
5280 --enable-threads requested, but building against a Tcl that is NOT
5281 thread-enabled. This is an OK configuration that will also run in
5282 a thread-enabled core." >&2;}
5289 #--------------------------------------------------------------------
5290 # The statement below defines a collection of symbols related to
5291 # building as a shared library instead of a static library.
5292 #--------------------------------------------------------------------
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
5296 $as_echo_n "checking how to build libraries... " >&6; }
5297 # Check whether --enable-shared was given.
5298 if test "${enable_shared+set}" = set; then :
5299 enableval=$enable_shared; tcl_ok=$enableval
5305 if test "${enable_shared+set}" = set; then
5306 enableval="$enable_shared"
5312 if test "$tcl_ok" = "yes" ; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
5314 $as_echo "shared" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
5318 $as_echo "static" >&6; }
5321 $as_echo "#define STATIC_BUILD 1" >>confdefs.h
5327 #--------------------------------------------------------------------
5328 # This macro figures out what flags to use with the compiler/linker
5329 # when building shared/static debug/optimized objects. This information
5330 # can be taken from the tclConfig.sh file, but this figures it all out.
5331 #--------------------------------------------------------------------
5336 # Step 0.a: Enable 64 bit support?
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
5339 $as_echo_n "checking if 64bit support is requested... " >&6; }
5340 # Check whether --enable-64bit was given.
5341 if test "${enable_64bit+set}" = set; then :
5342 enableval=$enable_64bit; do64bit=$enableval
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
5348 $as_echo "$do64bit" >&6; }
5350 # Step 0.b: Enable Solaris 64 bit VIS support?
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
5353 $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
5354 # Check whether --enable-64bit-vis was given.
5355 if test "${enable_64bit_vis+set}" = set; then :
5356 enableval=$enable_64bit_vis; do64bitVIS=$enableval
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
5362 $as_echo "$do64bitVIS" >&6; }
5364 if test "$do64bitVIS" = "yes"; then
5365 # Force 64bit on with VIS
5369 # Step 0.c: Cross-compiling options for Windows/CE builds?
5371 if test "${TEA_PLATFORM}" = "windows" ; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows/CE build is requested" >&5
5373 $as_echo_n "checking if Windows/CE build is requested... " >&6; }
5374 # Check whether --enable-wince was given.
5375 if test "${enable_wince+set}" = set; then :
5376 enableval=$enable_wince; doWince=$enableval
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5
5382 $as_echo "$doWince" >&6; }
5385 # Step 1: set the variable "system" to hold the name and version number
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
5390 $as_echo_n "checking system version... " >&6; }
5391 if ${tcl_cv_sys_version+:} false; then :
5392 $as_echo_n "(cached) " >&6
5395 if test "${TEA_PLATFORM}" = "windows" ; then
5396 tcl_cv_sys_version=windows
5397 elif test -f /usr/lib/NextStep/software_version; then
5398 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
5400 tcl_cv_sys_version=`uname -s`-`uname -r`
5401 if test "$?" -ne 0 ; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
5403 $as_echo "$as_me: WARNING: can't find uname command" >&2;}
5404 tcl_cv_sys_version=unknown
5406 # Special check for weird MP-RAS system (uname returns weird
5407 # results, and the version is kept in special file).
5409 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
5410 tcl_cv_sys_version=MP-RAS-`awk '{print }' /etc/.relid`
5412 if test "`uname -s`" = "AIX" ; then
5413 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
5420 $as_echo "$tcl_cv_sys_version" >&6; }
5421 system=$tcl_cv_sys_version
5424 # Step 2: check for existence of -ldl library. This is needed because
5425 # Linux can use either -ldl or -ldld for dynamic loading.
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5428 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5429 if ${ac_cv_lib_dl_dlopen+:} false; then :
5430 $as_echo_n "(cached) " >&6
5432 ac_check_lib_save_LIBS=$LIBS
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5437 /* Override any GCC internal prototype to avoid an error.
5438 Use char because int might match the return type of a GCC
5439 builtin and then its argument prototype would still apply. */
5452 if ac_fn_c_try_link "$LINENO"; then :
5453 ac_cv_lib_dl_dlopen=yes
5455 ac_cv_lib_dl_dlopen=no
5457 rm -f core conftest.err conftest.$ac_objext \
5458 conftest$ac_exeext conftest.$ac_ext
5459 LIBS=$ac_check_lib_save_LIBS
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5462 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5463 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5470 # Require ranlib early so we can override it in special cases below.
5474 # Step 3: set configuration options based on system name and version.
5475 # This is similar to Tcl's unix/tcl.m4 except that we've added a
5479 LDFLAGS_ORIG="$LDFLAGS"
5480 # When ld needs options to work in 64-bit mode, put them in
5481 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
5482 # is disabled by the user. [Bug 1016796]
5484 TCL_EXPORT_FILE_SUFFIX=""
5485 UNSHARED_LIB_SUFFIX=""
5486 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`'
5487 ECHO_VERSION='`echo ${PACKAGE_VERSION}`'
5488 TCL_LIB_VERSIONS_OK=ok
5491 if test "$GCC" = "yes" ; then
5493 CFLAGS_WARNING="-Wall -Wno-implicit-int"
5497 TCL_NEEDS_EXP_FILE=0
5498 TCL_BUILD_EXP_FILE=""
5500 # Extract the first word of "ar", so it can be a program name with args.
5501 set dummy ar; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_AR+:} false; then :
5505 $as_echo_n "(cached) " >&6
5507 if test -n "$AR"; then
5508 ac_cv_prog_AR="$AR" # Let the user override the test.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 if test -n "$AR"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5530 $as_echo "$AR" >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5538 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
5541 # This is a 2-stage check to make sure we have the 64-bit SDK
5542 # We have to know where the SDK is installed.
5543 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs
5544 # MACHINE is IX86 for LINK, but this is used by the manifest,
5545 # which requires x86|amd64|ia64.
5547 if test "$do64bit" != "no" ; then
5548 if test "x${MSSDK}x" = "xx" ; then
5549 MSSDK="C:/Progra~1/Microsoft Platform SDK"
5551 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'`
5555 MACHINE="AMD64" ; # default to AMD64 64-bit build
5556 PATH64="${MSSDK}/Bin/Win64/x86/AMD64"
5560 PATH64="${MSSDK}/Bin/Win64"
5563 if test ! -d "${PATH64}" ; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5
5565 $as_echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;}
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ensure latest Platform SDK is installed" >&5
5567 $as_echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;}
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using 64-bit $MACHINE mode" >&5
5571 $as_echo " Using 64-bit $MACHINE mode" >&6; }
5576 if test "$doWince" != "no" ; then
5577 if test "$do64bit" != "no" ; then
5578 as_fn_error $? "Windows/CE and 64-bit builds incompatible" "$LINENO" 5
5580 if test "$GCC" = "yes" ; then
5581 as_fn_error $? "Windows/CE and GCC builds incompatible" "$LINENO" 5
5584 # First, look for one uninstalled.
5585 # the alternative search directory is invoked by --with-celib
5587 if test x"${no_celib}" = x ; then
5588 # we reset no_celib in case something fails here
5591 # Check whether --with-celib was given.
5592 if test "${with_celib+set}" = set; then :
5593 withval=$with_celib; with_celibconfig=${withval}
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows/CE celib directory" >&5
5597 $as_echo_n "checking for Windows/CE celib directory... " >&6; }
5598 if ${ac_cv_c_celibconfig+:} false; then :
5599 $as_echo_n "(cached) " >&6
5602 # First check to see if --with-celibconfig was specified.
5603 if test x"${with_celibconfig}" != x ; then
5604 if test -d "${with_celibconfig}/inc" ; then
5605 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)`
5607 as_fn_error $? "${with_celibconfig} directory doesn't contain inc directory" "$LINENO" 5
5611 # then check for a celib library
5612 if test x"${ac_cv_c_celibconfig}" = x ; then
5616 ../../celib-palm-3.0 \
5618 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \
5619 ${srcdir}/../celib-palm-3.0 \
5620 ${srcdir}/../celib \
5621 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \
5623 if test -d "$i/inc" ; then
5624 ac_cv_c_celibconfig=`(cd $i; pwd)`
5632 if test x"${ac_cv_c_celibconfig}" = x ; then
5633 as_fn_error $? "Cannot find celib support library directory" "$LINENO" 5
5636 CELIB_DIR=${ac_cv_c_celibconfig}
5637 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'`
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $CELIB_DIR" >&5
5639 $as_echo "found $CELIB_DIR" >&6; }
5643 # Set defaults for common evc4/PPC2003 setup
5644 # Currently Tcl requires 300+, possibly 420+ for sockets
5645 CEVERSION=420; # could be 211 300 301 400 420 ...
5646 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ...
5647 ARCH=ARM; # could be ARM MIPS X86EM ...
5648 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002"
5649 if test "$doWince" != "yes"; then
5650 # If !yes then the user specified something
5651 # Reset ARCH to allow user to skip specifying it
5653 eval `echo $doWince | awk -F, '{ \
5654 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \
5655 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \
5656 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \
5657 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \
5658 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \
5660 if test "x${ARCH}" = "x" ; then
5664 OSVERSION=WCE$CEVERSION;
5665 if test "x${WCEROOT}" = "x" ; then
5666 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0"
5667 if test ! -d "${WCEROOT}" ; then
5668 WCEROOT="C:/Program Files/Microsoft eMbedded Tools"
5671 if test "x${SDKROOT}" = "x" ; then
5672 SDKROOT="C:/Program Files/Windows CE Tools"
5673 if test ! -d "${SDKROOT}" ; then
5674 SDKROOT="C:/Windows CE Tools"
5677 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'`
5678 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'`
5679 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \
5680 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then
5681 as_fn_error $? "could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" "$LINENO" 5
5684 # We could PATH_NOSPACE these, but that's not important,
5685 # as long as we quote them when used.
5686 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include"
5687 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then
5688 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}"
5690 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"
5694 if test "$GCC" != "yes" ; then
5695 if test "${SHARED_BUILD}" = "0" ; then
5701 if test "$do64bit" != "no" ; then
5702 # All this magic is necessary for the Win64 SDK RC1 - hobbs
5703 CC="\"${PATH64}/cl.exe\""
5704 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\""
5705 RC="\"${MSSDK}/bin/rc.exe\""
5706 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\""
5707 LINKBIN="\"${PATH64}/link.exe\""
5708 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d"
5709 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
5710 # Avoid 'unresolved external symbol __security_cookie'
5711 # errors, c.f. http://support.microsoft.com/?id=894573
5713 vars="bufferoverflowU.lib"
5715 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then
5716 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib
5717 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'`
5719 PKG_LIBS="$PKG_LIBS $i"
5723 elif test "$doWince" != "no" ; then
5724 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin"
5725 if test "${TARGETCPU}" = "X86"; then
5726 CC="\"${CEBINROOT}/cl.exe\""
5728 CC="\"${CEBINROOT}/cl${ARCH}.exe\""
5730 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\""
5731 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\""
5732 arch=`echo ${ARCH} | awk '{print tolower($0)}'`
5733 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS"
5734 if test "${SHARED_BUILD}" = "1" ; then
5735 # Static CE builds require static celib as well
5740 cat >>confdefs.h <<_ACEOF
5746 cat >>confdefs.h <<_ACEOF
5747 #define _WIN32_WCE $CEVERSION
5751 cat >>confdefs.h <<_ACEOF
5752 #define UNDER_CE $CEVERSION
5755 CFLAGS_DEBUG="-nologo -Zi -Od"
5756 CFLAGS_OPTIMIZE="-nologo -Ox"
5757 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'`
5758 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo"
5759 LINKBIN="\"${CEBINROOT}/link.exe\""
5765 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d"
5766 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}"
5770 if test "$GCC" = "yes"; then
5774 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
5775 SHLIB_LD="$CC -shared"
5776 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
5777 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}"
5778 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}"
5780 SHLIB_LD="${LINKBIN} -dll ${lflags}"
5781 # link -lib only works when -lib is the first arg
5782 STLIB_LD="${LINKBIN} -lib ${lflags}"
5783 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib'
5785 # For information on what debugtype is most useful, see:
5786 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
5787 # This essentially turns it all on.
5788 LDFLAGS_DEBUG="-debug:full -debugtype:both -warn:2"
5789 LDFLAGS_OPTIMIZE="-release"
5790 if test "$doWince" != "no" ; then
5791 LDFLAGS_CONSOLE="-link ${lflags}"
5792 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE}
5794 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}"
5795 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}"
5799 SHLIB_LD_LIBS='${LIBS}'
5801 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'
5803 TCL_LIB_VERSIONS_OK=nodots
5804 # Bogus to avoid getting this turned off
5805 DL_OBJS="tclLoadNone.obj"
5808 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
5809 # AIX requires the _r compiler when gcc isn't being used
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
5819 $as_echo "Using $CC for compiling with threads" >&6; }
5823 SHLIB_LD_LIBS='${LIBS}'
5826 DL_OBJS="tclLoadDl.o"
5827 LD_LIBRARY_PATH_VAR="LIBPATH"
5829 # Check to enable 64-bit flags for compiler/linker on AIX 4+
5830 if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
5831 if test "$GCC" = "yes" ; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
5833 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
5836 CFLAGS="$CFLAGS -q64"
5838 RANLIB="${RANLIB} -X64"
5840 SHLIB_LD_FLAGS="-b64"
5844 if test "`uname -m`" = "ia64" ; then
5845 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
5846 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
5847 # AIX-5 has dl* in libc.so
5849 if test "$GCC" = "yes" ; then
5850 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5852 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
5854 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5856 if test "$GCC" = "yes" ; then
5857 SHLIB_LD="gcc -shared"
5859 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
5861 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
5863 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5864 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5865 TCL_NEEDS_EXP_FILE=1
5866 TCL_EXPORT_FILE_SUFFIX='${PACKAGE_VERSION}.exp'
5869 # AIX v<=4.1 has some different flags than 4.2+
5870 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
5871 case " $LIBOBJS " in
5872 *" tclLoadAix.$ac_objext "* ) ;;
5873 *) LIBOBJS="$LIBOBJS tclLoadAix.$ac_objext"
5880 # On AIX <=v4 systems, libbsd.a has to be linked in to support
5881 # non-blocking file IO. This library has to be linked in after
5882 # the MATH_LIBS or it breaks the pow() function. The way to
5883 # insure proper sequencing, is to add it to the tail of MATH_LIBS.
5884 # This library also supplies gettimeofday.
5886 # AIX does not have a timezone field in struct tm. When the AIX
5887 # bsd library is used, the timezone global and the gettimeofday
5888 # methods are to be avoided for timezone deduction instead, we
5889 # deduce the timezone by comparing the localtime result on a
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
5893 $as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
5894 if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
5895 $as_echo_n "(cached) " >&6
5897 ac_check_lib_save_LIBS=$LIBS
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5902 /* Override any GCC internal prototype to avoid an error.
5903 Use char because int might match the return type of a GCC
5904 builtin and then its argument prototype would still apply. */
5908 char gettimeofday ();
5912 return gettimeofday ();
5917 if ac_fn_c_try_link "$LINENO"; then :
5918 ac_cv_lib_bsd_gettimeofday=yes
5920 ac_cv_lib_bsd_gettimeofday=no
5922 rm -f core conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext conftest.$ac_ext
5924 LIBS=$ac_check_lib_save_LIBS
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
5927 $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
5928 if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
5934 if test $libbsd = yes; then
5935 MATH_LIBS="$MATH_LIBS -lbsd"
5937 $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
5942 SHLIB_CFLAGS="-fPIC"
5943 SHLIB_LD="${CC} -nostart"
5944 SHLIB_LD_LIBS='${LIBS}'
5946 DL_OBJS="tclLoadDl.o"
5949 #-----------------------------------------------------------
5950 # Check for inet_ntoa in -lbind, for BeOS (which also needs
5951 # -lsocket, even if the network functions are in -lnet which
5952 # is always linked to, for compatibility.
5953 #-----------------------------------------------------------
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
5955 $as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
5956 if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
5957 $as_echo_n "(cached) " >&6
5959 ac_check_lib_save_LIBS=$LIBS
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5964 /* Override any GCC internal prototype to avoid an error.
5965 Use char because int might match the return type of a GCC
5966 builtin and then its argument prototype would still apply. */
5974 return inet_ntoa ();
5979 if ac_fn_c_try_link "$LINENO"; then :
5980 ac_cv_lib_bind_inet_ntoa=yes
5982 ac_cv_lib_bind_inet_ntoa=no
5984 rm -f core conftest.err conftest.$ac_objext \
5985 conftest$ac_exeext conftest.$ac_ext
5986 LIBS=$ac_check_lib_save_LIBS
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
5989 $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
5990 if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
5991 LIBS="$LIBS -lbind -lsocket"
5995 BSD/OS-2.1*|BSD/OS-3*)
5997 SHLIB_LD="shlicc -r"
5998 SHLIB_LD_LIBS='${LIBS}'
6000 DL_OBJS="tclLoadDl.o"
6006 SHLIB_CFLAGS="-export-dynamic -fPIC"
6007 SHLIB_LD="cc -shared"
6008 SHLIB_LD_LIBS='${LIBS}'
6010 DL_OBJS="tclLoadDl.o"
6012 LDFLAGS="$LDFLAGS -export-dynamic"
6017 SHLIB_CFLAGS="-K PIC"
6021 DL_OBJS="tclLoadDl.o"
6027 # Use updated header definitions where possible
6029 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
6031 # Needed by Tcl, but not most extensions
6032 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?])
6033 #LIBS="$LIBS -lxnet" # Use the XOPEN network library
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6037 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6038 if ${ac_cv_lib_dld_shl_load+:} false; then :
6039 $as_echo_n "(cached) " >&6
6041 ac_check_lib_save_LIBS=$LIBS
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6046 /* Override any GCC internal prototype to avoid an error.
6047 Use char because int might match the return type of a GCC
6048 builtin and then its argument prototype would still apply. */
6061 if ac_fn_c_try_link "$LINENO"; then :
6062 ac_cv_lib_dld_shl_load=yes
6064 ac_cv_lib_dld_shl_load=no
6066 rm -f core conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6068 LIBS=$ac_check_lib_save_LIBS
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6071 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6072 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6078 if test "$tcl_ok" = yes; then
6081 SHLIB_LD_LIBS='${LIBS}'
6082 DL_OBJS="tclLoadShl.o"
6084 LDFLAGS="$LDFLAGS -Wl,-E"
6085 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
6086 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
6087 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
6089 if test "$GCC" = "yes" ; then
6090 SHLIB_LD="gcc -shared"
6091 SHLIB_LD_LIBS='${LIBS}'
6092 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6095 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
6096 #CFLAGS="$CFLAGS +DAportable"
6098 # Check to enable 64-bit flags for compiler/linker
6099 if test "$do64bit" = "yes" ; then
6100 if test "$GCC" = "yes" ; then
6101 hpux_arch=`${CC} -dumpmachine`
6104 # 64-bit gcc in use. Fix flags for GNU ld.
6106 SHLIB_LD="${CC} -shared"
6107 SHLIB_LD_LIBS='${LIBS}'
6108 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6109 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6113 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6118 CFLAGS="$CFLAGS +DD64"
6119 LDFLAGS_ARCH="+DD64"
6123 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
6126 $as_echo_n "checking for shl_load in -ldld... " >&6; }
6127 if ${ac_cv_lib_dld_shl_load+:} false; then :
6128 $as_echo_n "(cached) " >&6
6130 ac_check_lib_save_LIBS=$LIBS
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6135 /* Override any GCC internal prototype to avoid an error.
6136 Use char because int might match the return type of a GCC
6137 builtin and then its argument prototype would still apply. */
6150 if ac_fn_c_try_link "$LINENO"; then :
6151 ac_cv_lib_dld_shl_load=yes
6153 ac_cv_lib_dld_shl_load=no
6155 rm -f core conftest.err conftest.$ac_objext \
6156 conftest$ac_exeext conftest.$ac_ext
6157 LIBS=$ac_check_lib_save_LIBS
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
6160 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
6161 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6167 if test "$tcl_ok" = yes; then
6171 DL_OBJS="tclLoadShl.o"
6173 LDFLAGS="$LDFLAGS -Wl,-E"
6174 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
6175 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
6176 LD_LIBRARY_PATH_VAR="SHLIB_PATH"
6181 SHLIB_LD="ld -shared -rdata_shared"
6182 SHLIB_LD_LIBS='${LIBS}'
6184 DL_OBJS="tclLoadDl.o"
6186 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6187 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6191 SHLIB_LD="ld -n32 -shared -rdata_shared"
6192 SHLIB_LD_LIBS='${LIBS}'
6194 DL_OBJS="tclLoadDl.o"
6196 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6197 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6198 if test "$GCC" = "yes" ; then
6199 CFLAGS="$CFLAGS -mabi=n32"
6200 LDFLAGS="$LDFLAGS -mabi=n32"
6204 # Use to build 6.2 compatible binaries on 6.3.
6205 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
6208 CFLAGS="$CFLAGS -n32"
6211 LDFLAGS="$LDFLAGS -n32"
6216 SHLIB_LD="ld -n32 -shared -rdata_shared"
6217 SHLIB_LD_LIBS='${LIBS}'
6219 DL_OBJS="tclLoadDl.o"
6221 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6222 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6224 # Check to enable 64-bit flags for compiler/linker
6226 if test "$do64bit" = "yes" ; then
6227 if test "$GCC" = "yes" ; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
6229 $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
6232 SHLIB_LD="ld -64 -shared -rdata_shared"
6233 CFLAGS="$CFLAGS -64"
6239 SHLIB_CFLAGS="-fPIC"
6240 SHLIB_LD_LIBS='${LIBS}'
6243 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
6244 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
6245 # when you inline the string and math operations. Turn this off to
6246 # get rid of the warnings.
6247 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
6249 SHLIB_LD="${CC} -shared"
6250 DL_OBJS="tclLoadDl.o"
6252 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6253 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6254 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6255 if test "`uname -m`" = "alpha" ; then
6256 CFLAGS="$CFLAGS -mieee"
6259 # The combo of gcc + glibc has a bug related
6260 # to inlining of functions like strtod(). The
6261 # -fno-builtin flag should address this problem
6262 # but it does not work. The -fno-inline flag
6263 # is kind of overkill but it works.
6264 # Disable inlining only when one of the
6265 # files in compat/*.c is being linked in.
6266 if test x"${USE_COMPAT}" != x ; then
6267 CFLAGS="$CFLAGS -fno-inline"
6272 SHLIB_CFLAGS="-fPIC"
6273 SHLIB_LD_LIBS='${LIBS}'
6276 SHLIB_LD="${CC} -shared"
6279 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
6282 if test "`uname -m`" = "alpha" ; then
6283 CFLAGS="$CFLAGS -mieee"
6287 SHLIB_CFLAGS="-fPIC"
6288 SHLIB_LD_LIBS='${LIBS}'
6291 SHLIB_LD="${CC} -shared "
6292 DL_OBJS="tclLoadDl.o"
6293 DL_LIBS="-mshared -ldl"
6294 LD_FLAGS="-Wl,--export-dynamic"
6295 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6296 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6299 SHLIB_CFLAGS="-K PIC"
6303 DL_OBJS="tclLoadDl.o"
6309 SHLIB_CFLAGS="-K PIC"
6313 DL_OBJS="tclLoadDl.o"
6315 LDFLAGS="$LDFLAGS -Wl,-Bexport"
6319 NetBSD-*|FreeBSD-[1-2].*)
6320 # NetBSD/SPARC needs -fPIC, -fpic will not do.
6321 SHLIB_CFLAGS="-fPIC"
6322 SHLIB_LD="ld -Bshareable -x"
6325 DL_OBJS="tclLoadDl.o"
6327 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6328 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
6330 $as_echo_n "checking for ELF... " >&6; }
6331 if ${tcl_cv_ld_elf+:} false; then :
6332 $as_echo_n "(cached) " >&6
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6344 $EGREP "yes" >/dev/null 2>&1; then :
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
6353 $as_echo "$tcl_cv_ld_elf" >&6; }
6354 if test $tcl_cv_ld_elf = yes; then
6355 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
6357 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
6360 # Ancient FreeBSD doesn't handle version numbers with dots.
6362 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
6363 TCL_LIB_VERSIONS_OK=nodots
6366 # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
6369 SHLIB_CFLAGS="-fPIC";;
6371 SHLIB_CFLAGS="-fpic";;
6373 SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
6374 SHLIB_LD_LIBS='${LIBS}'
6376 DL_OBJS="tclLoadDl.o"
6378 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6379 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6380 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
6382 $as_echo_n "checking for ELF... " >&6; }
6383 if ${tcl_cv_ld_elf+:} false; then :
6384 $as_echo_n "(cached) " >&6
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396 $EGREP "yes" >/dev/null 2>&1; then :
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
6405 $as_echo "$tcl_cv_ld_elf" >&6; }
6406 if test $tcl_cv_ld_elf = yes; then
6407 LDFLAGS=-Wl,-export-dynamic
6412 # OpenBSD doesn't do version numbers with dots.
6413 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
6414 TCL_LIB_VERSIONS_OK=nodots
6417 # FreeBSD 3.* and greater have ELF.
6418 SHLIB_CFLAGS="-fPIC"
6419 SHLIB_LD="ld -Bshareable -x"
6420 SHLIB_LD_LIBS='${LIBS}'
6422 DL_OBJS="tclLoadDl.o"
6424 LDFLAGS="$LDFLAGS -export-dynamic"
6425 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6426 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6427 if test "${TCL_THREADS}" = "1" ; then
6428 # The -pthread needs to go in the CFLAGS, not LIBS
6429 LIBS=`echo $LIBS | sed s/-pthread//`
6430 CFLAGS="$CFLAGS -pthread"
6431 LDFLAGS="$LDFLAGS -pthread"
6435 # FreeBSD-3 doesn't handle version numbers with dots.
6436 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
6437 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
6438 TCL_LIB_VERSIONS_OK=nodots
6443 CFLAGS_OPTIMIZE="-Os"
6444 SHLIB_CFLAGS="-fno-common"
6445 if test $do64bit = yes; then
6447 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
6449 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS here:
6450 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
6452 $as_echo_n "checking if ld accepts -single_module flag... " >&6; }
6453 if ${tcl_cv_ld_single_module+:} false; then :
6454 $as_echo_n "(cached) " >&6
6457 hold_ldflags=$LDFLAGS
6458 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6470 if ac_fn_c_try_link "$LINENO"; then :
6471 tcl_cv_ld_single_module=yes
6473 tcl_cv_ld_single_module=no
6475 rm -f core conftest.err conftest.$ac_objext \
6476 conftest$ac_exeext conftest.$ac_ext
6477 LDFLAGS=$hold_ldflags
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
6480 $as_echo "$tcl_cv_ld_single_module" >&6; }
6481 if test $tcl_cv_ld_single_module = yes; then
6482 SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
6484 SHLIB_LD_LIBS='${LIBS}'
6485 SHLIB_SUFFIX=".dylib"
6486 DL_OBJS="tclLoadDyld.o"
6488 # Don't use -prebind when building for Mac OS X 10.4 or later only:
6489 test -z "${MACOSX_DEPLOYMENT_TARGET}" || \
6490 test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F. '{print $2}'`" -lt 4 && \
6491 LDFLAGS="$LDFLAGS -prebind"
6492 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
6494 $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
6495 if ${tcl_cv_ld_search_paths_first+:} false; then :
6496 $as_echo_n "(cached) " >&6
6499 hold_ldflags=$LDFLAGS
6500 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6512 if ac_fn_c_try_link "$LINENO"; then :
6513 tcl_cv_ld_search_paths_first=yes
6515 tcl_cv_ld_search_paths_first=no
6517 rm -f core conftest.err conftest.$ac_objext \
6518 conftest$ac_exeext conftest.$ac_ext
6519 LDFLAGS=$hold_ldflags
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
6522 $as_echo "$tcl_cv_ld_search_paths_first" >&6; }
6523 if test $tcl_cv_ld_search_paths_first = yes; then
6524 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6528 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
6530 # TEA specific: for Tk extensions, remove -arch ppc64 from CFLAGS
6531 # for fat builds, as neither TkAqua nor TkX11 can be built for 64bit
6532 # at present (no 64bit GUI libraries).
6533 test $do64bit_ok = no && test -n "${TK_BIN_DIR}" && \
6534 CFLAGS="`echo "$CFLAGS" | sed -e 's/-arch ppc64/-arch ppc/g'`"
6538 SHLIB_LD="cc -nostdlib -r"
6541 DL_OBJS="tclLoadNext.o"
6547 CFLAGS_OPTIMIZE="" # Optimizer is buggy
6549 $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
6552 OSF1-1.0|OSF1-1.1|OSF1-1.2)
6553 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
6555 # Hack: make package name same as library name
6556 SHLIB_LD='ld -R -export :'
6559 DL_OBJS="tclLoadOSF.o"
6565 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
6566 SHLIB_CFLAGS="-fPIC"
6567 if test "$SHARED_BUILD" = "1" ; then
6568 SHLIB_LD="ld -shared"
6570 SHLIB_LD="ld -non_shared"
6574 DL_OBJS="tclLoadDl.o"
6582 if test "$SHARED_BUILD" = "1" ; then
6583 SHLIB_LD='ld -shared -expect_unresolved "*"'
6585 SHLIB_LD='ld -non_shared -expect_unresolved "*"'
6589 DL_OBJS="tclLoadDl.o"
6591 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6592 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
6593 if test "$GCC" = "yes" ; then
6594 CFLAGS="$CFLAGS -mieee"
6596 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
6598 # see pthread_intro(3) for pthread support on osf1, k.furukawa
6599 if test "${TCL_THREADS}" = "1" ; then
6600 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
6601 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
6602 LIBS=`echo $LIBS | sed s/-lpthreads//`
6603 if test "$GCC" = "yes" ; then
6604 LIBS="$LIBS -lpthread -lmach -lexc"
6606 CFLAGS="$CFLAGS -pthread"
6607 LDFLAGS="$LDFLAGS -pthread"
6614 # This may work for all QNX, but it was only reported for v6.
6615 SHLIB_CFLAGS="-fPIC"
6616 SHLIB_LD="ld -Bshareable -x"
6619 DL_OBJS="tclLoadDl.o"
6620 # dlopen is in -lc on QNX
6626 # Note, dlopen is available only on SCO 3.2.5 and greater. However,
6627 # this test works, since "uname -s" was non-standard in 3.2.4 and
6629 if test "$GCC" = "yes" ; then
6630 SHLIB_CFLAGS="-fPIC -melf"
6631 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
6633 SHLIB_CFLAGS="-Kpic -belf"
6634 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
6639 DL_OBJS="tclLoadDl.o"
6645 SHLIB_CFLAGS="-K PIC"
6649 DL_OBJS="tclLoadDl.o"
6659 DL_OBJS="tclLoadDl.o"
6661 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6662 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6664 # SunOS can't handle version numbers with dots in them in library
6665 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it
6666 # requires an extra version number at the end of .so file names.
6667 # So, the library has to have a name like libtcl75.so.1.0
6669 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0'
6670 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
6671 TCL_LIB_VERSIONS_OK=nodots
6674 # Careful to not let 5.10+ fall into this case
6676 # Note: If _REENTRANT isn't defined, then Solaris
6677 # won't define thread-safe library routines.
6680 $as_echo "#define _REENTRANT 1" >>confdefs.h
6683 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6686 SHLIB_CFLAGS="-KPIC"
6688 # Note: need the LIBS below, otherwise Tk won't find Tcl's
6689 # symbols when dynamically loaded into tclsh.
6691 SHLIB_LD_LIBS='${LIBS}'
6693 DL_OBJS="tclLoadDl.o"
6695 if test "$GCC" = "yes" ; then
6696 SHLIB_LD="$CC -shared"
6697 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
6698 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6700 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
6701 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
6702 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6706 # Note: If _REENTRANT isn't defined, then Solaris
6707 # won't define thread-safe library routines.
6710 $as_echo "#define _REENTRANT 1" >>confdefs.h
6713 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6716 SHLIB_CFLAGS="-KPIC"
6718 # Check to enable 64-bit flags for compiler/linker
6719 if test "$do64bit" = "yes" ; then
6721 if test "$arch" = "sparcv9 sparc" ; then
6722 if test "$GCC" = "yes" ; then
6723 if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
6725 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
6728 CFLAGS="$CFLAGS -m64 -mcpu=v9"
6729 LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
6730 SHLIB_CFLAGS="-fPIC"
6734 if test "$do64bitVIS" = "yes" ; then
6735 CFLAGS="$CFLAGS -xarch=v9a"
6736 LDFLAGS_ARCH="-xarch=v9a"
6738 CFLAGS="$CFLAGS -xarch=v9"
6739 LDFLAGS_ARCH="-xarch=v9"
6741 # Solaris 64 uses this as well
6742 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
6744 elif test "$arch" = "amd64 i386" ; then
6745 if test "$GCC" = "yes" ; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
6747 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
6750 CFLAGS="$CFLAGS -xarch=amd64"
6751 LDFLAGS="$LDFLAGS -xarch=amd64"
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
6755 $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
6759 # Note: need the LIBS below, otherwise Tk won't find Tcl's
6760 # symbols when dynamically loaded into tclsh.
6762 SHLIB_LD_LIBS='${LIBS}'
6764 DL_OBJS="tclLoadDl.o"
6766 if test "$GCC" = "yes" ; then
6767 SHLIB_LD="$CC -shared"
6768 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
6769 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
6770 if test "$do64bit_ok" = "yes" ; then
6771 # We need to specify -static-libgcc or we need to
6772 # add the path to the sparv9 libgcc.
6773 # JH: static-libgcc is necessary for core Tcl, but may
6774 # not be necessary for extensions.
6775 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
6776 # for finding sparcv9 libgcc, get the regular libgcc
6777 # path, remove so name and append 'sparcv9'
6778 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
6779 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
6782 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
6783 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
6784 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
6787 UNIX_SV* | UnixWare-5*)
6788 SHLIB_CFLAGS="-KPIC"
6792 DL_OBJS="tclLoadDl.o"
6794 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
6795 # that don't grok the -Bexport option. Test that it does.
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
6797 $as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
6798 if ${tcl_cv_ld_Bexport+:} false; then :
6799 $as_echo_n "(cached) " >&6
6802 hold_ldflags=$LDFLAGS
6803 LDFLAGS="$LDFLAGS -Wl,-Bexport"
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6815 if ac_fn_c_try_link "$LINENO"; then :
6816 tcl_cv_ld_Bexport=yes
6818 tcl_cv_ld_Bexport=no
6820 rm -f core conftest.err conftest.$ac_objext \
6821 conftest$ac_exeext conftest.$ac_ext
6822 LDFLAGS=$hold_ldflags
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
6825 $as_echo "$tcl_cv_ld_Bexport" >&6; }
6826 if test $tcl_cv_ld_Bexport = yes; then
6827 LDFLAGS="$LDFLAGS -Wl,-Bexport"
6834 if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
6836 $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
6839 # Step 4: disable dynamic loading if requested via a command-line switch.
6841 # Check whether --enable-load was given.
6842 if test "${enable_load+set}" = set; then :
6843 enableval=$enable_load; tcl_ok=$enableval
6848 if test "$tcl_ok" = "no"; then
6852 if test "x$DL_OBJS" != "x" ; then
6853 BUILD_DLTEST="\$(DLTEST_TARGETS)"
6855 echo "Can't figure out how to do dynamic loading or shared libraries"
6856 echo "on this system."
6860 DL_OBJS="tclLoadNone.o"
6862 LDFLAGS="$LDFLAGS_ORIG"
6867 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH"
6869 # If we're running gcc, then change the C flags for compiling shared
6870 # libraries to the right flags for gcc, instead of those for the
6871 # standard manufacturer compiler.
6873 if test "$DL_OBJS" != "tclLoadNone.o" ; then
6874 if test "$GCC" = "yes" ; then
6891 SHLIB_CFLAGS="-fPIC"
6897 if test "$SHARED_LIB_SUFFIX" = "" ; then
6898 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}'
6900 if test "$UNSHARED_LIB_SUFFIX" = "" ; then
6901 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a'
6918 # These must be called after we do the basic CFLAGS checks and
6919 # verify any possible 64-bit or similar switches are necessary
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5
6922 $as_echo_n "checking for required early compiler flags... " >&6; }
6925 if ${tcl_cv_flag__isoc99_source+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6934 char *p = (char *)strtoll; char *q = (char *)strtoull;
6939 if ac_fn_c_try_compile "$LINENO"; then :
6940 tcl_cv_flag__isoc99_source=no
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 #define _ISOC99_SOURCE 1
6949 char *p = (char *)strtoll; char *q = (char *)strtoull;
6954 if ac_fn_c_try_compile "$LINENO"; then :
6955 tcl_cv_flag__isoc99_source=yes
6957 tcl_cv_flag__isoc99_source=no
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then
6966 $as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h
6968 tcl_flags="$tcl_flags _ISOC99_SOURCE"
6972 if ${tcl_cv_flag__largefile64_source+:} false; then :
6973 $as_echo_n "(cached) " >&6
6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h. */
6977 #include <sys/stat.h>
6981 struct stat64 buf; int i = stat64("/", &buf);
6986 if ac_fn_c_try_compile "$LINENO"; then :
6987 tcl_cv_flag__largefile64_source=no
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 #define _LARGEFILE64_SOURCE 1
6992 #include <sys/stat.h>
6996 struct stat64 buf; int i = stat64("/", &buf);
7001 if ac_fn_c_try_compile "$LINENO"; then :
7002 tcl_cv_flag__largefile64_source=yes
7004 tcl_cv_flag__largefile64_source=no
7006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then
7013 $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h
7015 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE"
7019 if ${tcl_cv_flag__largefile_source64+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 #include <sys/stat.h>
7028 char *p = (char *)open64;
7033 if ac_fn_c_try_compile "$LINENO"; then :
7034 tcl_cv_flag__largefile_source64=no
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 #define _LARGEFILE_SOURCE64 1
7039 #include <sys/stat.h>
7043 char *p = (char *)open64;
7048 if ac_fn_c_try_compile "$LINENO"; then :
7049 tcl_cv_flag__largefile_source64=yes
7051 tcl_cv_flag__largefile_source64=no
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then
7060 $as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h
7062 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64"
7065 if test "x${tcl_flags}" = "x" ; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7067 $as_echo "none" >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5
7070 $as_echo "${tcl_flags}" >&6; }
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5
7075 $as_echo_n "checking for 64-bit integer type... " >&6; }
7076 if ${tcl_cv_type_64bit+:} false; then :
7077 $as_echo_n "(cached) " >&6
7080 tcl_cv_type_64bit=none
7081 # See if the compiler knows natively about __int64
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7088 __int64 value = (__int64) 0;
7093 if ac_fn_c_try_compile "$LINENO"; then :
7094 tcl_type_64bit=__int64
7096 tcl_type_64bit="long long"
7098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 # See if we should use long anyway Note that we substitute in the
7100 # type that is our current guess for a 64-bit type inside this check
7101 # program, so it should be modified only carefully...
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7109 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ;
7115 if ac_fn_c_try_compile "$LINENO"; then :
7116 tcl_cv_type_64bit=${tcl_type_64bit}
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121 if test "${tcl_cv_type_64bit}" = none ; then
7123 $as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using long" >&5
7126 $as_echo "using long" >&6; }
7127 elif test "${tcl_cv_type_64bit}" = "__int64" \
7128 -a "${TEA_PLATFORM}" = "windows" ; then
7129 # We actually want to use the default tcl.h checks in this
7130 # case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER*
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5
7132 $as_echo "using Tcl header defaults" >&6; }
7135 cat >>confdefs.h <<_ACEOF
7136 #define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5
7140 $as_echo "${tcl_cv_type_64bit}" >&6; }
7142 # Now check for auxiliary declarations
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5
7144 $as_echo_n "checking for struct dirent64... " >&6; }
7145 if ${tcl_cv_struct_dirent64+:} false; then :
7146 $as_echo_n "(cached) " >&6
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 #include <sys/types.h>
7152 #include <sys/dirent.h>
7161 if ac_fn_c_try_compile "$LINENO"; then :
7162 tcl_cv_struct_dirent64=yes
7164 tcl_cv_struct_dirent64=no
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5
7169 $as_echo "$tcl_cv_struct_dirent64" >&6; }
7170 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then
7172 $as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5
7177 $as_echo_n "checking for struct stat64... " >&6; }
7178 if ${tcl_cv_struct_stat64+:} false; then :
7179 $as_echo_n "(cached) " >&6
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 #include <sys/stat.h>
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 tcl_cv_struct_stat64=yes
7197 tcl_cv_struct_stat64=no
7199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5
7202 $as_echo "$tcl_cv_struct_stat64" >&6; }
7203 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then
7205 $as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h
7209 for ac_func in open64 lseek64
7211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7212 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7213 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7214 cat >>confdefs.h <<_ACEOF
7215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
7222 $as_echo_n "checking for off64_t... " >&6; }
7223 if ${tcl_cv_type_off64_t+:} false; then :
7224 $as_echo_n "(cached) " >&6
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229 #include <sys/types.h>
7239 if ac_fn_c_try_compile "$LINENO"; then :
7240 tcl_cv_type_off64_t=yes
7242 tcl_cv_type_off64_t=no
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 if test "x${tcl_cv_type_off64_t}" = "xyes" && \
7248 test "x${ac_cv_func_lseek64}" = "xyes" && \
7249 test "x${ac_cv_func_open64}" = "xyes" ; then
7251 $as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7254 $as_echo "yes" >&6; }
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7263 #--------------------------------------------------------------------
7264 # Set the default compiler switches based on the --enable-symbols option.
7265 #--------------------------------------------------------------------
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5
7270 $as_echo_n "checking for build with symbols... " >&6; }
7271 # Check whether --enable-symbols was given.
7272 if test "${enable_symbols+set}" = set; then :
7273 enableval=$enable_symbols; tcl_ok=$enableval
7279 if test "$tcl_ok" = "no"; then
7280 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}"
7281 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}"
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7285 CFLAGS_DEFAULT="${CFLAGS_DEBUG}"
7286 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}"
7287 if test "$tcl_ok" = "yes"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5
7289 $as_echo "yes (standard debugging)" >&6; }
7292 if test "${TEA_PLATFORM}" != "windows" ; then
7293 LDFLAGS_DEFAULT="${LDFLAGS}"
7300 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then
7302 $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
7306 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then
7307 if test "$tcl_ok" = "all"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5
7309 $as_echo "enabled symbols mem debugging" >&6; }
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5
7312 $as_echo "enabled $tcl_ok debugging" >&6; }
7317 #--------------------------------------------------------------------
7318 # Everyone should be linking against the Tcl stub library. If you
7319 # can't for some reason, remove this definition. If you aren't using
7320 # stubs, you also need to modify the SHLIB_LD_LIBS setting below to
7321 # link against the non-stubbed Tcl library. Add Tk too if necessary.
7322 #--------------------------------------------------------------------
7325 $as_echo "#define USE_TCL_STUBS 1" >>confdefs.h
7327 #AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs])
7329 #--------------------------------------------------------------------
7330 # This macro generates a line to use when building a library. It
7331 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
7332 # and TEA_LOAD_TCLCONFIG macros above.
7333 #--------------------------------------------------------------------
7336 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then
7337 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)"
7338 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)"
7339 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)"
7341 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)"
7342 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}"
7343 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)"
7346 if test "${SHARED_BUILD}" = "1" ; then
7347 MAKE_LIB="${MAKE_SHARED_LIB} "
7349 MAKE_LIB="${MAKE_STATIC_LIB} "
7352 #--------------------------------------------------------------------
7353 # Shared libraries and static libraries have different names.
7354 # Use the double eval to make sure any variables in the suffix is
7355 # substituted. (@@@ Might not be necessary anymore)
7356 #--------------------------------------------------------------------
7358 if test "${TEA_PLATFORM}" = "windows" ; then
7359 if test "${SHARED_BUILD}" = "1" ; then
7360 # We force the unresolved linking of symbols that are really in
7361 # the private libraries of Tcl and Tk.
7362 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\""
7363 if test x"${TK_BIN_DIR}" != x ; then
7364 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\""
7366 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
7368 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
7370 # Some packages build their own stubs libraries
7371 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
7372 # These aren't needed on Windows (either MSVC or gcc)
7376 RANLIB_STUB="${RANLIB}"
7377 if test "${SHARED_BUILD}" = "1" ; then
7378 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}"
7379 if test x"${TK_BIN_DIR}" != x ; then
7380 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}"
7382 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}"
7385 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
7387 # Some packages build their own stubs libraries
7388 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
7391 # These are escaped so that only CFLAGS is picked up at configure time.
7392 # The other values will be substituted at make time.
7393 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}"
7394 if test "${SHARED_BUILD}" = "1" ; then
7395 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}"
7407 # Check whether --with-mysql-include was given.
7408 if test "${with_mysql_include+set}" = set; then :
7409 withval=$with_mysql_include; MYSQL_INC_DIR=$withval
7411 MYSQL_INC_DIR="/usr/include/mysql"
7415 # Check whether --with-mysql-lib was given.
7416 if test "${with_mysql_lib+set}" = set; then :
7417 withval=$with_mysql_lib; MYSQL_LIB_DIR=$withval
7419 MYSQL_LIB_DIR="/usr/lib/mysql"
7422 MYSQL_INCLUDES="-I$MYSQL_INC_DIR"
7425 # Check whether --enable-mysqlstatic was given.
7426 if test "${enable_mysqlstatic+set}" = set; then :
7427 enableval=$enable_mysqlstatic; tcl_ok=$enableval
7433 if test "$tcl_ok" = "yes"; then
7434 LIBS="${LIBS} ${MYSQL_LIB_DIR}/libmysqlclient.a -lz -lcrypt -lnsl -lm"
7436 if test ! -f $MSQL_LIB_DIR/libmysqlclient${SHLIB_SUFFIX} -a -f /usr/lib/libmysqlclient${SHLIB_SUFFIX}; then
7437 MYSQL_LIB_DIR=/usr/lib
7439 MYSQL_LIBS="-L$MYSQL_LIB_DIR -lmysqlclient"
7440 if test ! "$MYSQL_LIB_DIR" = ""; then
7441 LIBMYSQL="libmysqclient${SHLIB_SUFFIX}"
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql header" >&5
7451 $as_echo_n "checking for mysql header... " >&6; }
7452 if test ! -f ${MYSQL_INC_DIR}/mysql.h ; then
7453 as_fn_error $? "Cannot find mysql.h in $MYSQL_INC_DIR use -with-mysql-include=?" "$LINENO" 5
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7456 $as_echo "yes" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysqlclient lib" >&5
7458 $as_echo_n "checking for libmysqlclient lib... " >&6; }
7459 if test "$tcl_ok" = "yes"; then
7460 if test ! -f ${MYSQL_LIB_DIR}/libmysqlclient.a ; then
7461 as_fn_error $? "Cannot find libmysqlclient.a in $MYSQL_LIB_DIR use --with-mysql-lib=?" "$LINENO" 5
7464 if test ! -f ${MYSQL_LIB_DIR}/libmysqlclient${SHLIB_SUFFIX} ; then
7465 as_fn_error $? "Cannot find libmysqlclient${SHLIB_SUFFIX} in $MYSQL_LIB_DIR use --with-mysql-lib=?" "$LINENO" 5
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7469 $as_echo "yes" >&6; }
7471 #--------------------------------------------------------------------
7472 # Determine the name of the tclsh and/or wish executables in the
7473 # Tcl and Tk build directories or the location they were installed
7474 # into. These paths are used to support running test cases only,
7475 # the Makefile should not be making use of these paths to generate
7476 # a pkgIndex.tcl file or anything else at extension build time.
7477 #--------------------------------------------------------------------
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5
7481 $as_echo_n "checking for tclsh... " >&6; }
7482 if test -f "${TCL_BIN_DIR}/Makefile" ; then
7483 # tclConfig.sh is in Tcl build directory
7484 if test "${TEA_PLATFORM}" = "windows"; then
7485 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
7487 TCLSH_PROG="${TCL_BIN_DIR}/tclsh"
7490 # tclConfig.sh is in install location
7491 if test "${TEA_PLATFORM}" = "windows"; then
7492 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}"
7494 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}"
7496 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \
7497 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \
7498 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`"
7500 if test -f "$i/${TCLSH_PROG}" ; then
7501 REAL_TCL_BIN_DIR="`cd "$i"; pwd`"
7505 TCLSH_PROG="${REAL_TCL_BIN_DIR}/${TCLSH_PROG}"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5
7508 $as_echo "${TCLSH_PROG}" >&6; }
7513 #--------------------------------------------------------------------
7514 # Finally, substitute all of the various values into the Makefile.
7515 # You may alternatively have a special pkgIndex.tcl.in or other files
7516 # which require substituting th AC variables in. Include these here.
7517 #--------------------------------------------------------------------
7519 ac_config_files="$ac_config_files Makefile pkgIndex.tcl"
7521 cat >confcache <<\_ACEOF
7522 # This file is a shell script that caches the results of configure
7523 # tests run on this system so they can be shared between configure
7524 # scripts and configure runs, see configure's option --config-cache.
7525 # It is not useful on other systems. If it contains results you don't
7526 # want to keep, you may remove or edit it.
7528 # config.status only pays attention to the cache file if you give it
7529 # the --recheck option to rerun configure.
7531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7537 # The following way of writing the cache mishandles newlines in values,
7538 # but we know of no workaround that is simple, portable, and efficient.
7539 # So, we kill variables containing newlines.
7540 # Ultrix sh set writes to stderr and can't be redirected directly,
7541 # and sets the high bit in the cache file unless we assign to the vars.
7543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7544 eval ac_val=\$$ac_var
7548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7552 _ | IFS | as_nl) ;; #(
7553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7554 *) { eval $ac_var=; unset $ac_var;} ;;
7560 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7561 *${as_nl}ac_space=\ *)
7562 # `set' does not quote correctly, so add quotes: double-quote
7563 # substitution turns \\\\ into \\, and sed turns \\ into \.
7566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7569 # `set' quotes correctly as required by POSIX, so do not add quotes.
7570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7584 if test -w "$cache_file"; then
7585 if test "x$cache_file" != "x/dev/null"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7587 $as_echo "$as_me: updating cache $cache_file" >&6;}
7588 if test ! -f "$cache_file" || test -h "$cache_file"; then
7589 cat confcache >"$cache_file"
7591 case $cache_file in #(
7593 mv -f confcache "$cache_file"$$ &&
7594 mv -f "$cache_file"$$ "$cache_file" ;; #(
7596 mv -f confcache "$cache_file" ;;
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7608 # Let make expand exec_prefix.
7609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7611 # Transform confdefs.h into DEFS.
7612 # Protect against shell expansion while executing Makefile rules.
7613 # Protect against Makefile macro expansion.
7615 # If the first sed substitution is executed (which looks for macros that
7616 # take arguments), then branch to the quote section. Otherwise,
7617 # look for a macro that doesn't take arguments.
7627 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7629 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7633 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7646 DEFS=`sed -n "$ac_script" confdefs.h`
7652 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7653 # 1. Remove the extension, and $U if already installed.
7654 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7655 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7656 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7657 # will be set to the directory where LIBOBJS objects are built.
7658 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7659 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7663 LTLIBOBJS=$ac_ltlibobjs
7668 : "${CONFIG_STATUS=./config.status}"
7670 ac_clean_files_save=$ac_clean_files
7671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7673 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7675 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7677 # Generated by $as_me.
7678 # Run this file to recreate the current configuration.
7679 # Compiler output produced by configure, useful for debugging
7680 # configure, is in config.log if it exists.
7686 SHELL=\${CONFIG_SHELL-$SHELL}
7689 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7690 ## -------------------- ##
7691 ## M4sh Initialization. ##
7692 ## -------------------- ##
7694 # Be more Bourne compatible
7695 DUALCASE=1; export DUALCASE # for MKS sh
7696 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7699 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7700 # is contrary to our usage. Disable this feature.
7701 alias -g '${1+"$@"}'='"$@"'
7702 setopt NO_GLOB_SUBST
7704 case `(set -o) 2>/dev/null` in #(
7716 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7717 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7718 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7719 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7720 # Prefer a ksh shell builtin over an external printf program on Solaris,
7721 # but without wasting forks for bash or zsh.
7722 if test -z "$BASH_VERSION$ZSH_VERSION" \
7723 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7724 as_echo='print -r --'
7725 as_echo_n='print -rn --'
7726 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7727 as_echo='printf %s\n'
7728 as_echo_n='printf %s'
7730 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7731 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7732 as_echo_n='/usr/ucb/echo -n'
7734 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7735 as_echo_n_body='eval
7739 expr "X$arg" : "X\\(.*\\)$as_nl";
7740 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7742 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7744 export as_echo_n_body
7745 as_echo_n='sh -c $as_echo_n_body as_echo'
7748 as_echo='sh -c $as_echo_body as_echo'
7751 # The user is always right.
7752 if test "${PATH_SEPARATOR+set}" != set; then
7754 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7755 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7762 # We need space, tab and new line, in precisely that order. Quoting is
7763 # there to prevent editors from complaining about space-tab.
7764 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7765 # splitting by setting IFS to empty value.)
7768 # Find who we are. Look in the path if we contain no directory separator.
7771 *[\\/]* ) as_myself=$0 ;;
7772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7783 # We did not find ourselves, most probably we were run as `sh COMMAND'
7784 # in which case we are not to be found in the path.
7785 if test "x$as_myself" = x; then
7788 if test ! -f "$as_myself"; then
7789 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7793 # Unset variables that we do not need and which cause bugs (e.g. in
7794 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7795 # suppresses any "Segmentation fault" message there. '((' could
7796 # trigger a bug in pdksh 5.2.14.
7797 for as_var in BASH_ENV ENV MAIL MAILPATH
7798 do eval test x\${$as_var+set} = xset \
7799 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7812 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7815 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7816 # ----------------------------------------
7817 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7818 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7819 # script with STATUS, using 1 if that was 0.
7822 as_status=$1; test $as_status -eq 0 && as_status=1
7824 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7825 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7827 $as_echo "$as_me: error: $2" >&2
7828 as_fn_exit $as_status
7832 # as_fn_set_status STATUS
7833 # -----------------------
7834 # Set $? to STATUS, without forking.
7838 } # as_fn_set_status
7842 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7852 # Portably unset VAR.
7855 { eval $1=; unset $1;}
7857 as_unset=as_fn_unset
7858 # as_fn_append VAR VALUE
7859 # ----------------------
7860 # Append the text in VALUE to the end of the definition contained in VAR. Take
7861 # advantage of any shell optimizations that allow amortized linear growth over
7862 # repeated appends, instead of the typical quadratic growth present in naive
7864 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7865 eval 'as_fn_append ()
7876 # as_fn_arith ARG...
7877 # ------------------
7878 # Perform arithmetic evaluation on the ARGs, and store the result in the
7879 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7880 # must be portable across $(()) and expr.
7881 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7882 eval 'as_fn_arith ()
7889 as_val=`expr "$@" || test $? -eq 1`
7894 if expr a : '\(a\)' >/dev/null 2>&1 &&
7895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7901 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7902 as_basename=basename
7907 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7913 as_me=`$as_basename -- "$0" ||
7914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7915 X"$0" : 'X\(//\)$' \| \
7916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7918 sed '/^.*\/\([^/][^/]*\)\/*$/{
7932 # Avoid depending upon Character Ranges.
7933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7934 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7935 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7936 as_cr_digits='0123456789'
7937 as_cr_alnum=$as_cr_Letters$as_cr_digits
7939 ECHO_C= ECHO_N= ECHO_T=
7940 case `echo -n x` in #(((((
7942 case `echo 'xy\c'` in
7943 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7945 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7952 rm -f conf$$ conf$$.exe conf$$.file
7953 if test -d conf$$.dir; then
7954 rm -f conf$$.dir/conf$$.file
7957 mkdir conf$$.dir 2>/dev/null
7959 if (echo >conf$$.file) 2>/dev/null; then
7960 if ln -s conf$$.file conf$$ 2>/dev/null; then
7962 # ... but there are two gotchas:
7963 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7964 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7965 # In both cases, we have to default to `cp -p'.
7966 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7968 elif ln conf$$.file conf$$ 2>/dev/null; then
7976 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7977 rmdir conf$$.dir 2>/dev/null
7982 # Create "$as_dir" as a directory, including parents if necessary.
7987 -*) as_dir=./$as_dir;;
7989 test -d "$as_dir" || eval $as_mkdir_p || {
7993 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7994 *) as_qdir=$as_dir;;
7996 as_dirs="'$as_qdir' $as_dirs"
7997 as_dir=`$as_dirname -- "$as_dir" ||
7998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7999 X"$as_dir" : 'X\(//\)[^/]' \| \
8000 X"$as_dir" : 'X\(//\)$' \| \
8001 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8002 $as_echo X"$as_dir" |
8003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8020 test -d "$as_dir" && break
8022 test -z "$as_dirs" || eval "mkdir $as_dirs"
8023 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8027 if mkdir -p . 2>/dev/null; then
8028 as_mkdir_p='mkdir -p "$as_dir"'
8030 test -d ./-p && rmdir ./-p
8034 if test -x / >/dev/null 2>&1; then
8037 if ls -dL / >/dev/null 2>&1; then
8044 if test -d "$1"; then
8050 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8051 ???[sx]*):;;*)false;;esac;fi
8055 as_executable_p=$as_test_x
8057 # Sed expression to map a string onto a valid CPP name.
8058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8060 # Sed expression to map a string onto a valid variable name.
8061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8065 ## ----------------------------------- ##
8066 ## Main body of $CONFIG_STATUS script. ##
8067 ## ----------------------------------- ##
8069 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8072 # Save the log message, to keep $0 and so on meaningful, and to
8073 # report actual input values of CONFIG_FILES etc. instead of their
8074 # values after options handling.
8076 This file was extended by mysqltcl $as_me 3.052, which was
8077 generated by GNU Autoconf 2.68. Invocation command line was
8079 CONFIG_FILES = $CONFIG_FILES
8080 CONFIG_HEADERS = $CONFIG_HEADERS
8081 CONFIG_LINKS = $CONFIG_LINKS
8082 CONFIG_COMMANDS = $CONFIG_COMMANDS
8085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8090 case $ac_config_files in *"
8091 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8097 # Files that config.status was made for.
8098 config_files="$ac_config_files"
8102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8104 \`$as_me' instantiates files and other configuration actions
8105 from templates according to the current configuration. Unless the files
8106 and actions are specified as TAGs, all are instantiated by default.
8108 Usage: $0 [OPTION]... [TAG]...
8110 -h, --help print this help, then exit
8111 -V, --version print version number and configuration settings, then exit
8112 --config print configuration, then exit
8113 -q, --quiet, --silent
8114 do not print progress messages
8115 -d, --debug don't remove temporary files
8116 --recheck update $as_me by reconfiguring in the same conditions
8117 --file=FILE[:TEMPLATE]
8118 instantiate the configuration file FILE
8120 Configuration files:
8123 Report bugs to the package provider."
8126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8127 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8129 mysqltcl config.status 3.052
8130 configured by $0, generated by GNU Autoconf 2.68,
8131 with options \\"\$ac_cs_config\\"
8133 Copyright (C) 2010 Free Software Foundation, Inc.
8134 This config.status script is free software; the Free Software Foundation
8135 gives unlimited permission to copy, distribute and modify it."
8140 test -n "\$AWK" || AWK=awk
8143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8144 # The default lists apply if the user does not specify any file.
8150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8155 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8167 # Handling of the options.
8168 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8170 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8171 $as_echo "$ac_cs_version"; exit ;;
8172 --config | --confi | --conf | --con | --co | --c )
8173 $as_echo "$ac_cs_config"; exit ;;
8174 --debug | --debu | --deb | --de | --d | -d )
8176 --file | --fil | --fi | --f )
8179 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8180 '') as_fn_error $? "missing file argument" ;;
8182 as_fn_append CONFIG_FILES " '$ac_optarg'"
8183 ac_need_defaults=false;;
8184 --he | --h | --help | --hel | -h )
8185 $as_echo "$ac_cs_usage"; exit ;;
8186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8191 -*) as_fn_error $? "unrecognized option: \`$1'
8192 Try \`$0 --help' for more information." ;;
8194 *) as_fn_append ac_config_targets " $1"
8195 ac_need_defaults=false ;;
8201 ac_configure_extra_args=
8203 if $ac_cs_silent; then
8205 ac_configure_extra_args="$ac_configure_extra_args --silent"
8209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8210 if \$ac_cs_recheck; then
8211 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8213 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8214 CONFIG_SHELL='$SHELL'
8220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8225 ## Running $as_me. ##
8231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8236 # Handling of arguments.
8237 for ac_config_target in $ac_config_targets
8239 case $ac_config_target in
8240 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8241 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
8243 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8248 # If the user did not use the arguments to specify the items to instantiate,
8249 # then the envvar interface is used. Set only those that are not.
8250 # We use the long form for the default assignment because of an extremely
8251 # bizarre bug on SunOS 4.1.3.
8252 if $ac_need_defaults; then
8253 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8256 # Have a temporary directory for convenience. Make it in the build tree
8257 # simply because there is no reason against having it here, and in addition,
8258 # creating and moving files from /tmp can sometimes cause problems.
8259 # Hook for its removal unless debugging.
8260 # Note that there is a small window in which the directory will not be cleaned:
8261 # after its creation but before its name has been assigned to `$tmp'.
8265 trap 'exit_status=$?
8267 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8269 trap 'as_fn_exit 1' 1 2 13 15
8271 # Create a (secure) tmp directory for tmp files.
8274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8278 tmp=./conf$$-$RANDOM
8279 (umask 077 && mkdir "$tmp")
8280 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8283 # Set up the scripts for CONFIG_FILES section.
8284 # No need to generate them if there are no CONFIG_FILES.
8285 # This happens for instance with `./config.status config.h'.
8286 if test -n "$CONFIG_FILES"; then
8289 ac_cr=`echo X | tr X '\015'`
8290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8291 # But we know of no other shell where ac_cr would be empty at this
8292 # point, so we can use a bashism as a fallback.
8293 if test "x$ac_cr" = x; then
8294 eval ac_cr=\$\'\\r\'
8296 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8303 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8308 echo "cat >conf$$subs.awk <<_ACEOF" &&
8309 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8313 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8315 for ac_last_try in false false false false false :; do
8316 . ./conf$$subs.sh ||
8317 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8319 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8320 if test $ac_delim_n = $ac_delim_num; then
8322 elif $ac_last_try; then
8323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8331 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8335 s/^/S["/; s/!.*/"]=/
8345 s/\(.\{148\}\)..*/\1/
8347 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8359 s/\(.\{148\}\)..*/\1/
8361 s/["\\]/\\&/g; s/^/"/; s/$/"/
8365 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8370 ' <conf$$subs.awk | sed '
8375 ' >>$CONFIG_STATUS || ac_write_fail=1
8376 rm -f conf$$subs.awk
8377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8379 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8380 for (key in S) S_is_set[key] = 1
8386 nfields = split(line, field, "@")
8388 len = length(field[1])
8389 for (i = 2; i < nfields; i++) {
8391 keylen = length(key)
8392 if (S_is_set[key]) {
8394 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8395 len += length(value) + length(field[++i])
8406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8407 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8408 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8411 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8412 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8415 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8416 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8417 # trailing colons and then remove the whole line if VPATH becomes empty
8418 # (actually we leave an empty line to preserve line numbers).
8419 if test "x$srcdir" = x.; then
8420 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8439 fi # test -n "$CONFIG_FILES"
8442 eval set X " :F $CONFIG_FILES "
8447 :[FHLC]) ac_mode=$ac_tag; continue;;
8449 case $ac_mode$ac_tag in
8451 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8452 :[FH]-) ac_tag=-:-;;
8453 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8470 -) ac_f="$ac_tmp/stdin";;
8471 *) # Look for the file first in the build tree, then in the source tree
8472 # (if the path is not absolute). The absolute path cannot be DOS-style,
8473 # because $ac_f cannot contain `:'.
8477 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8479 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8481 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8482 as_fn_append ac_file_inputs " '$ac_f'"
8485 # Let's still pretend it is `configure' which instantiates (i.e., don't
8486 # use $as_me), people would be surprised to read:
8487 # /* config.h. Generated by config.status. */
8488 configure_input='Generated from '`
8489 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8491 if test x"$ac_file" != x-; then
8492 configure_input="$ac_file. $configure_input"
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8494 $as_echo "$as_me: creating $ac_file" >&6;}
8496 # Neutralize special characters interpreted by sed in replacement strings.
8497 case $configure_input in #(
8498 *\&* | *\|* | *\\* )
8499 ac_sed_conf_input=`$as_echo "$configure_input" |
8500 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8501 *) ac_sed_conf_input=$configure_input;;
8505 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8511 ac_dir=`$as_dirname -- "$ac_file" ||
8512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8513 X"$ac_file" : 'X\(//\)[^/]' \| \
8514 X"$ac_file" : 'X\(//\)$' \| \
8515 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8516 $as_echo X"$ac_file" |
8517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8534 as_dir="$ac_dir"; as_fn_mkdir_p
8538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8541 # A ".." for each directory in $ac_dir_suffix.
8542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8543 case $ac_top_builddir_sub in
8544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8548 ac_abs_top_builddir=$ac_pwd
8549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8550 # for backward compatibility:
8551 ac_top_builddir=$ac_top_build_prefix
8554 .) # We are building in place.
8556 ac_top_srcdir=$ac_top_builddir_sub
8557 ac_abs_top_srcdir=$ac_pwd ;;
8558 [\\/]* | ?:[\\/]* ) # Absolute name.
8559 ac_srcdir=$srcdir$ac_dir_suffix;
8560 ac_top_srcdir=$srcdir
8561 ac_abs_top_srcdir=$srcdir ;;
8563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8564 ac_top_srcdir=$ac_top_build_prefix$srcdir
8565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8577 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8578 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8583 # If the template does not know about datarootdir, expand it.
8584 # FIXME: This hack should be removed a few years after 2.60.
8585 ac_datarootdir_hack=; ac_datarootdir_seen=
8596 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8597 *datarootdir*) ac_datarootdir_seen=yes;;
8598 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8600 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8603 ac_datarootdir_hack='
8604 s&@datadir@&$datadir&g
8605 s&@docdir@&$docdir&g
8606 s&@infodir@&$infodir&g
8607 s&@localedir@&$localedir&g
8608 s&@mandir@&$mandir&g
8609 s&\\\${datarootdir}&$datarootdir&g' ;;
8613 # Neutralize VPATH when `$srcdir' = `.'.
8614 # Shell code in configure.ac might set extrasub.
8615 # FIXME: do we really want to maintain this feature?
8616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8617 ac_sed_extra="$ac_vpsub
8620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8623 s|@configure_input@|$ac_sed_conf_input|;t t
8624 s&@top_builddir@&$ac_top_builddir_sub&;t t
8625 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8626 s&@srcdir@&$ac_srcdir&;t t
8627 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8628 s&@top_srcdir@&$ac_top_srcdir&;t t
8629 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8630 s&@builddir@&$ac_builddir&;t t
8631 s&@abs_builddir@&$ac_abs_builddir&;t t
8632 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8633 s&@INSTALL@&$ac_INSTALL&;t t
8634 $ac_datarootdir_hack
8636 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8637 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8639 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8640 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8641 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8642 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8644 which seems to be undefined. Please make sure it is defined" >&5
8645 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8646 which seems to be undefined. Please make sure it is defined" >&2;}
8648 rm -f "$ac_tmp/stdin"
8650 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8651 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8665 ac_clean_files=$ac_clean_files_save
8667 test $ac_write_fail = 0 ||
8668 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8671 # configure is writing to config.log, and then calls config.status.
8672 # config.status does its own redirection, appending to config.log.
8673 # Unfortunately, on DOS this fails, as config.log is still kept open
8674 # by configure, so config.status won't be able to write to it; its
8675 # output is simply discarded. So we exec the FD to /dev/null,
8676 # effectively closing config.log, so it can be properly (re)opened and
8677 # appended to by config.status. When coming back to configure, we
8678 # need to make the FD available again.
8679 if test "$no_create" != yes; then
8681 ac_config_status_args=
8682 test "$silent" = yes &&
8683 ac_config_status_args="$ac_config_status_args --quiet"
8685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8688 # would make configure fail if this is the last instruction.
8689 $ac_cs_success || as_fn_exit 1
8691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8693 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}