1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for mysqltcl 3.052. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 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## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_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. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 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' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 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.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 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. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 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+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151esac 152fi 153" 154 as_required="as_fn_return () { (exit \$1); } 155as_fn_success () { as_fn_return 0; } 156as_fn_failure () { as_fn_return 1; } 157as_fn_ret_success () { return 0; } 158as_fn_ret_failure () { return 1; } 159 160exitcode=0 161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167else 168 exitcode=1; echo positional parameters were not saved. 169fi 170test 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 175test \$(( 1 + 1 )) = 2 || exit 1" 176 if (eval "$as_required") 2>/dev/null; then : 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 182 183else 184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 185as_found=false 186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 187do 188 IFS=$as_save_IFS 189 test -z "$as_dir" && as_dir=. 190 as_found=: 191 case $as_dir in #( 192 /*) 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 : 200 break 2 201fi 202fi 203 done;; 204 esac 205 as_found=false 206done 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 210fi; } 211IFS=$as_save_IFS 212 213 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. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 case $- in # (((( 224 *v*x* | *x*v* ) as_opts=-vx ;; 225 *v* ) as_opts=-v ;; 226 *x* ) as_opts=-x ;; 227 * ) as_opts= ;; 228 esac 229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 230fi 231 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." 238 else 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." 243 fi 244 exit 1 245fi 246fi 247fi 248SHELL=${CONFIG_SHELL-/bin/sh} 249export SHELL 250# Unset more variables known to interfere with behavior of common tools. 251CLICOLOR_FORCE= GREP_OPTIONS= 252unset CLICOLOR_FORCE GREP_OPTIONS 253 254## --------------------- ## 255## M4sh Shell Functions. ## 256## --------------------- ## 257# as_fn_unset VAR 258# --------------- 259# Portably unset VAR. 260as_fn_unset () 261{ 262 { eval $1=; unset $1;} 263} 264as_unset=as_fn_unset 265 266# as_fn_set_status STATUS 267# ----------------------- 268# Set $? to STATUS, without forking. 269as_fn_set_status () 270{ 271 return $1 272} # as_fn_set_status 273 274# as_fn_exit STATUS 275# ----------------- 276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 277as_fn_exit () 278{ 279 set +e 280 as_fn_set_status $1 281 exit $1 282} # as_fn_exit 283 284# as_fn_mkdir_p 285# ------------- 286# Create "$as_dir" as a directory, including parents if necessary. 287as_fn_mkdir_p () 288{ 289 290 case $as_dir in #( 291 -*) as_dir=./$as_dir;; 292 esac 293 test -d "$as_dir" || eval $as_mkdir_p || { 294 as_dirs= 295 while :; do 296 case $as_dir in #( 297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 298 *) as_qdir=$as_dir;; 299 esac 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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)[^/].*/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\).*/{ 320 s//\1/ 321 q 322 } 323 s/.*/./; q'` 324 test -d "$as_dir" && break 325 done 326 test -z "$as_dirs" || eval "mkdir $as_dirs" 327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 328 329 330} # as_fn_mkdir_p 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 336# implementations. 337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 338 eval 'as_fn_append () 339 { 340 eval $1+=\$2 341 }' 342else 343 as_fn_append () 344 { 345 eval $1=\$$1\$2 346 } 347fi # as_fn_append 348 349# as_fn_arith ARG... 350# ------------------ 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. 354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 355 eval 'as_fn_arith () 356 { 357 as_val=$(( $* )) 358 }' 359else 360 as_fn_arith () 361 { 362 as_val=`expr "$@" || test $? -eq 1` 363 } 364fi # as_fn_arith 365 366 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. 372as_fn_error () 373{ 374 as_status=$1; test $as_status -eq 0 && as_status=1 375 if test "$4"; then 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 378 fi 379 $as_echo "$as_me: error: $2" >&2 380 as_fn_exit $as_status 381} # as_fn_error 382 383if expr a : '\(a\)' >/dev/null 2>&1 && 384 test "X`expr 00001 : '.*\(...\)'`" = X001; then 385 as_expr=expr 386else 387 as_expr=false 388fi 389 390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 391 as_basename=basename 392else 393 as_basename=false 394fi 395 396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 397 as_dirname=dirname 398else 399 as_dirname=false 400fi 401 402as_me=`$as_basename -- "$0" || 403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 404 X"$0" : 'X\(//\)$' \| \ 405 X"$0" : 'X\(/\)' \| . 2>/dev/null || 406$as_echo X/"$0" | 407 sed '/^.*\/\([^/][^/]*\)\/*$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\/\)$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\).*/{ 416 s//\1/ 417 q 418 } 419 s/.*/./; q'` 420 421# Avoid depending upon Character Ranges. 422as_cr_letters='abcdefghijklmnopqrstuvwxyz' 423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 424as_cr_Letters=$as_cr_letters$as_cr_LETTERS 425as_cr_digits='0123456789' 426as_cr_alnum=$as_cr_Letters$as_cr_digits 427 428 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. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 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; } 451 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). 455 . "./$as_me.lineno" 456 # Exit status is that of the last command. 457 exit 458} 459 460ECHO_C= ECHO_N= ECHO_T= 461case `echo -n x` in #((((( 462-n*) 463 case `echo 'xy\c'` in 464 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 465 xy) ECHO_C='\c';; 466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 467 ECHO_T=' ';; 468 esac;; 469*) 470 ECHO_N='-n';; 471esac 472 473rm -f conf$$ conf$$.exe conf$$.file 474if test -d conf$$.dir; then 475 rm -f conf$$.dir/conf$$.file 476else 477 rm -f conf$$.dir 478 mkdir conf$$.dir 2>/dev/null 479fi 480if (echo >conf$$.file) 2>/dev/null; then 481 if ln -s conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s='ln -s' 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 || 488 as_ln_s='cp -p' 489 elif ln conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s=ln 491 else 492 as_ln_s='cp -p' 493 fi 494else 495 as_ln_s='cp -p' 496fi 497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 498rmdir conf$$.dir 2>/dev/null 499 500if mkdir -p . 2>/dev/null; then 501 as_mkdir_p='mkdir -p "$as_dir"' 502else 503 test -d ./-p && rmdir ./-p 504 as_mkdir_p=false 505fi 506 507if test -x / >/dev/null 2>&1; then 508 as_test_x='test -x' 509else 510 if ls -dL / >/dev/null 2>&1; then 511 as_ls_L_option=L 512 else 513 as_ls_L_option= 514 fi 515 as_test_x=' 516 eval sh -c '\'' 517 if test -d "$1"; then 518 test -d "$1/."; 519 else 520 case $1 in #( 521 -*)set "./$1";; 522 esac; 523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 524 ???[sx]*):;;*)false;;esac;fi 525 '\'' sh 526 ' 527fi 528as_executable_p=$as_test_x 529 530# Sed expression to map a string onto a valid CPP name. 531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 532 533# Sed expression to map a string onto a valid variable name. 534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 535 536 537test -n "$DJDIR" || exec 7<&0 </dev/null 538exec 6>&1 539 540# Name of the host. 541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 542# so uname gets run too. 543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 544 545# 546# Initializations. 547# 548ac_default_prefix=/usr/local 549ac_clean_files= 550ac_config_libobj_dir=. 551LIBOBJS= 552cross_compiling=no 553subdirs= 554MFLAGS= 555MAKEFLAGS= 556 557# Identity of this package. 558PACKAGE_NAME='mysqltcl' 559PACKAGE_TARNAME='mysqltcl' 560PACKAGE_VERSION='3.052' 561PACKAGE_STRING='mysqltcl 3.052' 562PACKAGE_BUGREPORT='' 563PACKAGE_URL='' 564 565# Factoring default headers for most tests. 566ac_includes_default="\ 567#include <stdio.h> 568#ifdef HAVE_SYS_TYPES_H 569# include <sys/types.h> 570#endif 571#ifdef HAVE_SYS_STAT_H 572# include <sys/stat.h> 573#endif 574#ifdef STDC_HEADERS 575# include <stdlib.h> 576# include <stddef.h> 577#else 578# ifdef HAVE_STDLIB_H 579# include <stdlib.h> 580# endif 581#endif 582#ifdef HAVE_STRING_H 583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584# include <memory.h> 585# endif 586# include <string.h> 587#endif 588#ifdef HAVE_STRINGS_H 589# include <strings.h> 590#endif 591#ifdef HAVE_INTTYPES_H 592# include <inttypes.h> 593#endif 594#ifdef HAVE_STDINT_H 595# include <stdint.h> 596#endif 597#ifdef HAVE_UNISTD_H 598# include <unistd.h> 599#endif" 600 601ac_subst_vars='LTLIBOBJS 602TCLSH_PROG 603MYSQL_LIB_DIR 604MYSQL_LIBS 605MYSQL_INCLUDES 606LIBMYSQL 607RANLIB_STUB 608MAKE_STUB_LIB 609MAKE_STATIC_LIB 610MAKE_SHARED_LIB 611MAKE_LIB 612LDFLAGS_DEFAULT 613CFLAGS_DEFAULT 614TCL_DBGX 615LD_LIBRARY_PATH_VAR 616SHLIB_CFLAGS 617SHLIB_LD_LIBS 618SHLIB_LD 619STLIB_LD 620CFLAGS_WARNING 621CFLAGS_OPTIMIZE 622CFLAGS_DEBUG 623DL_LIBS 624LIBOBJS 625CELIB_DIR 626AR 627SHARED_BUILD 628TCL_THREADS 629TCL_INCLUDES 630CLEANFILES 631PKG_OBJECTS 632PKG_SOURCES 633MATH_LIBS 634EGREP 635GREP 636RANLIB 637SET_MAKE 638INSTALL_DATA 639INSTALL_SCRIPT 640INSTALL_PROGRAM 641CPP 642OBJEXT 643ac_ct_CC 644CPPFLAGS 645LDFLAGS 646CFLAGS 647CC 648TCL_SHLIB_LD_LIBS 649TCL_LD_FLAGS 650TCL_EXTRA_CFLAGS 651TCL_DEFS 652TCL_LIBS 653TCL_STUB_LIB_SPEC 654TCL_STUB_LIB_FLAG 655TCL_STUB_LIB_FILE 656TCL_LIB_SPEC 657TCL_LIB_FLAG 658TCL_LIB_FILE 659TCL_SRC_DIR 660TCL_BIN_DIR 661TCL_VERSION 662PKG_CFLAGS 663PKG_LIBS 664PKG_INCLUDES 665PKG_HEADERS 666PKG_TCL_SOURCES 667PKG_STUB_OBJECTS 668PKG_STUB_SOURCES 669PKG_STUB_LIB_FILE 670PKG_LIB_FILE 671EXEEXT 672CYGPATH 673target_alias 674host_alias 675build_alias 676LIBS 677ECHO_T 678ECHO_N 679ECHO_C 680DEFS 681mandir 682localedir 683libdir 684psdir 685pdfdir 686dvidir 687htmldir 688infodir 689docdir 690oldincludedir 691includedir 692localstatedir 693sharedstatedir 694sysconfdir 695datadir 696datarootdir 697libexecdir 698sbindir 699bindir 700program_transform_name 701prefix 702exec_prefix 703PACKAGE_URL 704PACKAGE_BUGREPORT 705PACKAGE_STRING 706PACKAGE_VERSION 707PACKAGE_TARNAME 708PACKAGE_NAME 709PATH_SEPARATOR 710SHELL' 711ac_subst_files='' 712ac_user_opts=' 713enable_option_checking 714with_tcl 715with_tclinclude 716enable_threads 717enable_shared 718enable_64bit 719enable_64bit_vis 720enable_wince 721with_celib 722enable_load 723enable_symbols 724with_mysql_include 725with_mysql_lib 726enable_mysqlstatic 727' 728 ac_precious_vars='build_alias 729host_alias 730target_alias 731CC 732CFLAGS 733LDFLAGS 734LIBS 735CPPFLAGS 736CPP' 737 738 739# Initialize some variables set by options. 740ac_init_help= 741ac_init_version=false 742ac_unrecognized_opts= 743ac_unrecognized_sep= 744# The variables have the same names as the options, with 745# dashes changed to underlines. 746cache_file=/dev/null 747exec_prefix=NONE 748no_create= 749no_recursion= 750prefix=NONE 751program_prefix=NONE 752program_suffix=NONE 753program_transform_name=s,x,x, 754silent= 755site= 756srcdir= 757verbose= 758x_includes=NONE 759x_libraries=NONE 760 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.) 767bindir='${exec_prefix}/bin' 768sbindir='${exec_prefix}/sbin' 769libexecdir='${exec_prefix}/libexec' 770datarootdir='${prefix}/share' 771datadir='${datarootdir}' 772sysconfdir='${prefix}/etc' 773sharedstatedir='${prefix}/com' 774localstatedir='${prefix}/var' 775includedir='${prefix}/include' 776oldincludedir='/usr/include' 777docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 778infodir='${datarootdir}/info' 779htmldir='${docdir}' 780dvidir='${docdir}' 781pdfdir='${docdir}' 782psdir='${docdir}' 783libdir='${exec_prefix}/lib' 784localedir='${datarootdir}/locale' 785mandir='${datarootdir}/man' 786 787ac_prev= 788ac_dashdash= 789for ac_option 790do 791 # If the previous option needs an argument, assign it. 792 if test -n "$ac_prev"; then 793 eval $ac_prev=\$ac_option 794 ac_prev= 795 continue 796 fi 797 798 case $ac_option in 799 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 800 *=) ac_optarg= ;; 801 *) ac_optarg=yes ;; 802 esac 803 804 # Accept the important Cygnus configure options, so we can diagnose typos. 805 806 case $ac_dashdash$ac_option in 807 --) 808 ac_dashdash=yes ;; 809 810 -bindir | --bindir | --bindi | --bind | --bin | --bi) 811 ac_prev=bindir ;; 812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 813 bindir=$ac_optarg ;; 814 815 -build | --build | --buil | --bui | --bu) 816 ac_prev=build_alias ;; 817 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 818 build_alias=$ac_optarg ;; 819 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 ;; 826 827 --config-cache | -C) 828 cache_file=config.cache ;; 829 830 -datadir | --datadir | --datadi | --datad) 831 ac_prev=datadir ;; 832 -datadir=* | --datadir=* | --datadi=* | --datad=*) 833 datadir=$ac_optarg ;; 834 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 ;; 841 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 850 *" 851"enable_$ac_useropt" 852"*) ;; 853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 854 ac_unrecognized_sep=', ';; 855 esac 856 eval enable_$ac_useropt=no ;; 857 858 -docdir | --docdir | --docdi | --doc | --do) 859 ac_prev=docdir ;; 860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 861 docdir=$ac_optarg ;; 862 863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 864 ac_prev=dvidir ;; 865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 866 dvidir=$ac_optarg ;; 867 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 876 *" 877"enable_$ac_useropt" 878"*) ;; 879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 880 ac_unrecognized_sep=', ';; 881 esac 882 eval enable_$ac_useropt=\$ac_optarg ;; 883 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 ;; 892 893 -gas | --gas | --ga | --g) 894 # Obsolete; use --with-gas. 895 with_gas=yes ;; 896 897 -help | --help | --hel | --he | -h) 898 ac_init_help=long ;; 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 ;; 903 904 -host | --host | --hos | --ho) 905 ac_prev=host_alias ;; 906 -host=* | --host=* | --hos=* | --ho=*) 907 host_alias=$ac_optarg ;; 908 909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 910 ac_prev=htmldir ;; 911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 912 | --ht=*) 913 htmldir=$ac_optarg ;; 914 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 ;; 921 922 -infodir | --infodir | --infodi | --infod | --info | --inf) 923 ac_prev=infodir ;; 924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 925 infodir=$ac_optarg ;; 926 927 -libdir | --libdir | --libdi | --libd) 928 ac_prev=libdir ;; 929 -libdir=* | --libdir=* | --libdi=* | --libd=*) 930 libdir=$ac_optarg ;; 931 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 ;; 938 939 -localedir | --localedir | --localedi | --localed | --locale) 940 ac_prev=localedir ;; 941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 942 localedir=$ac_optarg ;; 943 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 ;; 950 951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 952 ac_prev=mandir ;; 953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 954 mandir=$ac_optarg ;; 955 956 -nfp | --nfp | --nf) 957 # Obsolete; use --without-fp. 958 with_fp=no ;; 959 960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 961 | --no-cr | --no-c | -n) 962 no_create=yes ;; 963 964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 966 no_recursion=yes ;; 967 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 ;; 976 977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 978 ac_prev=prefix ;; 979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 980 prefix=$ac_optarg ;; 981 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 ;; 988 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 ;; 995 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 ;; 1012 1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1014 ac_prev=pdfdir ;; 1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1016 pdfdir=$ac_optarg ;; 1017 1018 -psdir | --psdir | --psdi | --psd | --ps) 1019 ac_prev=psdir ;; 1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1021 psdir=$ac_optarg ;; 1022 1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1024 | -silent | --silent | --silen | --sile | --sil) 1025 silent=yes ;; 1026 1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1028 ac_prev=sbindir ;; 1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1030 | --sbi=* | --sb=*) 1031 sbindir=$ac_optarg ;; 1032 1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1035 | --sharedst | --shareds | --shared | --share | --shar \ 1036 | --sha | --sh) 1037 ac_prev=sharedstatedir ;; 1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1041 | --sha=* | --sh=*) 1042 sharedstatedir=$ac_optarg ;; 1043 1044 -site | --site | --sit) 1045 ac_prev=site ;; 1046 -site=* | --site=* | --sit=*) 1047 site=$ac_optarg ;; 1048 1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1050 ac_prev=srcdir ;; 1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1052 srcdir=$ac_optarg ;; 1053 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 ;; 1060 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 ;; 1065 1066 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1067 verbose=yes ;; 1068 1069 -version | --version | --versio | --versi | --vers | -V) 1070 ac_init_version=: ;; 1071 1072 -with-* | --with-*) 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 1080 *" 1081"with_$ac_useropt" 1082"*) ;; 1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1084 ac_unrecognized_sep=', ';; 1085 esac 1086 eval with_$ac_useropt=\$ac_optarg ;; 1087 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 1096 *" 1097"with_$ac_useropt" 1098"*) ;; 1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1100 ac_unrecognized_sep=', ';; 1101 esac 1102 eval with_$ac_useropt=no ;; 1103 1104 --x) 1105 # Obsolete; use --with-x. 1106 with_x=yes ;; 1107 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 ;; 1114 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 ;; 1121 1122 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1123Try \`$0 --help' for more information" 1124 ;; 1125 1126 *=*) 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'" ;; 1132 esac 1133 eval $ac_envvar=\$ac_optarg 1134 export $ac_envvar ;; 1135 1136 *) 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}" 1142 ;; 1143 1144 esac 1145done 1146 1147if test -n "$ac_prev"; then 1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1149 as_fn_error $? "missing argument to $ac_option" 1150fi 1151 1152if test -n "$ac_unrecognized_opts"; then 1153 case $enable_option_checking in 1154 no) ;; 1155 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1157 esac 1158fi 1159 1160# Check all directory arguments for consistency. 1161for 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 1165do 1166 eval ac_val=\$$ac_var 1167 # Remove trailing slashes. 1168 case $ac_val in 1169 */ ) 1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1171 eval $ac_var=\$ac_val;; 1172 esac 1173 # Be sure to have absolute directory names. 1174 case $ac_val in 1175 [\\/$]* | ?:[\\/]* ) continue;; 1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1177 esac 1178 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1179done 1180 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. 1184build=$build_alias 1185host=$host_alias 1186target=$target_alias 1187 1188# FIXME: To remove some day. 1189if 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 1195 cross_compiling=yes 1196 fi 1197fi 1198 1199ac_tool_prefix= 1200test -n "$host_alias" && ac_tool_prefix=$host_alias- 1201 1202test "$silent" = yes && exec 6>/dev/null 1203 1204 1205ac_pwd=`pwd` && test -n "$ac_pwd" && 1206ac_ls_di=`ls -di .` && 1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1208 as_fn_error $? "working directory cannot be determined" 1209test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1210 as_fn_error $? "pwd does not report name of working directory" 1211 1212 1213# Find the source files, if location was not specified. 1214if 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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1224 s//\1/ 1225 q 1226 } 1227 /^X\(\/\/\)[^/].*/{ 1228 s//\1/ 1229 q 1230 } 1231 /^X\(\/\/\)$/{ 1232 s//\1/ 1233 q 1234 } 1235 /^X\(\/\).*/{ 1236 s//\1/ 1237 q 1238 } 1239 s/.*/./; q'` 1240 srcdir=$ac_confdir 1241 if test ! -r "$srcdir/$ac_unique_file"; then 1242 srcdir=.. 1243 fi 1244else 1245 ac_srcdir_defaulted=no 1246fi 1247if 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" 1250fi 1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1252ac_abs_confdir=`( 1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1254 pwd)` 1255# When building in place, set srcdir=. 1256if test "$ac_abs_confdir" = "$ac_pwd"; then 1257 srcdir=. 1258fi 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. 1262case $srcdir in 1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1264esac 1265for 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} 1270done 1271 1272# 1273# Report the --help message. 1274# 1275if 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. 1278 cat <<_ACEOF 1279\`configure' configures mysqltcl 3.052 to adapt to many kinds of systems. 1280 1281Usage: $0 [OPTION]... [VAR=VALUE]... 1282 1283To assign environment variables (e.g., CC, CFLAGS...), specify them as 1284VAR=VALUE. See below for descriptions of some of the useful variables. 1285 1286Defaults for the options are specified in brackets. 1287 1288Configuration: 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 \`..'] 1298 1299Installation directories: 1300 --prefix=PREFIX install architecture-independent files in PREFIX 1301 [$ac_default_prefix] 1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1303 [PREFIX] 1304 1305By default, \`make install' will install all the files in 1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1307an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1308for instance \`--prefix=\$HOME'. 1309 1310For better control, use the options below. 1311 1312Fine 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] 1332_ACEOF 1333 1334 cat <<\_ACEOF 1335_ACEOF 1336fi 1337 1338if test -n "$ac_init_help"; then 1339 case $ac_init_help in 1340 short | recursive ) echo "Configuration of mysqltcl 3.052:";; 1341 esac 1342 cat <<\_ACEOF 1343 1344Optional Features: 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 1354 (default: enabled) 1355 --enable-symbols build with debugging symbols (default: off) 1356 --enable-mysqlstatic link static with libmysqlclient.a 1357 1358Optional Packages: 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 1362 (tclConfig.sh) 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 1367 1368Some 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> 1376 CPP C preprocessor 1377 1378Use these variables to override the choices made by `configure' or to help 1379it to find libraries and programs with nonstandard names/locations. 1380 1381Report bugs to the package provider. 1382_ACEOF 1383ac_status=$? 1384fi 1385 1386if 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"; } || 1391 continue 1392 ac_builddir=. 1393 1394case "$ac_dir" in 1395.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1396*) 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/ ;; 1403 esac ;; 1404esac 1405ac_abs_top_builddir=$ac_pwd 1406ac_abs_builddir=$ac_pwd$ac_dir_suffix 1407# for backward compatibility: 1408ac_top_builddir=$ac_top_build_prefix 1409 1410case $srcdir in 1411 .) # We are building in place. 1412 ac_srcdir=. 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 ;; 1419 *) # Relative name. 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 ;; 1423esac 1424ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1425 1426 cd "$ac_dir" || { ac_status=$?; continue; } 1427 # Check for guested configure. 1428 if test -f "$ac_srcdir/configure.gnu"; then 1429 echo && 1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1431 elif test -f "$ac_srcdir/configure"; then 1432 echo && 1433 $SHELL "$ac_srcdir/configure" --help=recursive 1434 else 1435 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1436 fi || ac_status=$? 1437 cd "$ac_pwd" || { ac_status=$?; break; } 1438 done 1439fi 1440 1441test -n "$ac_init_help" && exit $ac_status 1442if $ac_init_version; then 1443 cat <<\_ACEOF 1444mysqltcl configure 3.052 1445generated by GNU Autoconf 2.68 1446 1447Copyright (C) 2010 Free Software Foundation, Inc. 1448This configure script is free software; the Free Software Foundation 1449gives unlimited permission to copy, distribute and modify it. 1450_ACEOF 1451 exit 1452fi 1453 1454## ------------------------ ## 1455## Autoconf initialization. ## 1456## ------------------------ ## 1457 1458# ac_fn_c_try_compile LINENO 1459# -------------------------- 1460# Try to compile conftest.$ac_ext, and return whether this succeeded. 1461ac_fn_c_try_compile () 1462{ 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" 1466case "(($ac_try" in 1467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1468 *) ac_try_echo=$ac_try;; 1469esac 1470eval 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 1473 ac_status=$? 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 1478 fi 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 : 1484 ac_retval=0 1485else 1486 $as_echo "$as_me: failed program was:" >&5 1487sed 's/^/| /' conftest.$ac_ext >&5 1488 1489 ac_retval=1 1490fi 1491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1492 as_fn_set_status $ac_retval 1493 1494} # ac_fn_c_try_compile 1495 1496# ac_fn_c_try_cpp LINENO 1497# ---------------------- 1498# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1499ac_fn_c_try_cpp () 1500{ 1501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1502 if { { ac_try="$ac_cpp conftest.$ac_ext" 1503case "(($ac_try" in 1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1505 *) ac_try_echo=$ac_try;; 1506esac 1507eval 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 1510 ac_status=$? 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 1515 fi 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 1520 }; then : 1521 ac_retval=0 1522else 1523 $as_echo "$as_me: failed program was:" >&5 1524sed 's/^/| /' conftest.$ac_ext >&5 1525 1526 ac_retval=1 1527fi 1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1529 as_fn_set_status $ac_retval 1530 1531} # ac_fn_c_try_cpp 1532 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. 1537ac_fn_c_try_run () 1538{ 1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1540 if { { ac_try="$ac_link" 1541case "(($ac_try" in 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1543 *) ac_try_echo=$ac_try;; 1544esac 1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1546$as_echo "$ac_try_echo"; } >&5 1547 (eval "$ac_link") 2>&5 1548 ac_status=$? 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;; 1554esac 1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1556$as_echo "$ac_try_echo"; } >&5 1557 (eval "$ac_try") 2>&5 1558 ac_status=$? 1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1560 test $ac_status = 0; }; }; then : 1561 ac_retval=0 1562else 1563 $as_echo "$as_me: program exited with status $ac_status" >&5 1564 $as_echo "$as_me: failed program was:" >&5 1565sed 's/^/| /' conftest.$ac_ext >&5 1566 1567 ac_retval=$ac_status 1568fi 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 1572 1573} # ac_fn_c_try_run 1574 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. 1579ac_fn_c_check_header_compile () 1580{ 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; } 1584if eval \${$3+:} false; then : 1585 $as_echo_n "(cached) " >&6 1586else 1587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1588/* end confdefs.h. */ 1589$4 1590#include <$2> 1591_ACEOF 1592if ac_fn_c_try_compile "$LINENO"; then : 1593 eval "$3=yes" 1594else 1595 eval "$3=no" 1596fi 1597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1598fi 1599eval ac_res=\$$3 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 1603 1604} # ac_fn_c_check_header_compile 1605 1606# ac_fn_c_try_link LINENO 1607# ----------------------- 1608# Try to link conftest.$ac_ext, and return whether this succeeded. 1609ac_fn_c_try_link () 1610{ 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" 1614case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617esac 1618eval 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 1621 ac_status=$? 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 1626 fi 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 1634 }; then : 1635 ac_retval=0 1636else 1637 $as_echo "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641fi 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 1649 1650} # ac_fn_c_try_link 1651 1652# ac_fn_c_check_func LINENO FUNC VAR 1653# ---------------------------------- 1654# Tests whether FUNC exists, setting the cache variable VAR accordingly 1655ac_fn_c_check_func () 1656{ 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; } 1660if eval \${$3+:} false; then : 1661 $as_echo_n "(cached) " >&6 1662else 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 1668 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. */ 1673 1674#ifdef __STDC__ 1675# include <limits.h> 1676#else 1677# include <assert.h> 1678#endif 1679 1680#undef $2 1681 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. */ 1685#ifdef __cplusplus 1686extern "C" 1687#endif 1688char $2 (); 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 1693choke me 1694#endif 1695 1696int 1697main () 1698{ 1699return $2 (); 1700 ; 1701 return 0; 1702} 1703_ACEOF 1704if ac_fn_c_try_link "$LINENO"; then : 1705 eval "$3=yes" 1706else 1707 eval "$3=no" 1708fi 1709rm -f core conftest.err conftest.$ac_objext \ 1710 conftest$ac_exeext conftest.$ac_ext 1711fi 1712eval ac_res=\$$3 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 1716 1717} # ac_fn_c_check_func 1718 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 1723# accordingly. 1724ac_fn_c_check_header_mongrel () 1725{ 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; } 1730if eval \${$3+:} false; then : 1731 $as_echo_n "(cached) " >&6 1732fi 1733eval ac_res=\$$3 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1735$as_echo "$ac_res" >&6; } 1736else 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; } 1740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1741/* end confdefs.h. */ 1742$4 1743#include <$2> 1744_ACEOF 1745if ac_fn_c_try_compile "$LINENO"; then : 1746 ac_header_compiler=yes 1747else 1748 ac_header_compiler=no 1749fi 1750rm -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; } 1753 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; } 1757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1758/* end confdefs.h. */ 1759#include <$2> 1760_ACEOF 1761if ac_fn_c_try_cpp "$LINENO"; then : 1762 ac_header_preproc=yes 1763else 1764 ac_header_preproc=no 1765fi 1766rm -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; } 1769 1770# So? What about this header? 1771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1772 yes:no: ) 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;} 1777 ;; 1778 no:yes:* ) 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;} 1789 ;; 1790esac 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1792$as_echo_n "checking for $2... " >&6; } 1793if eval \${$3+:} false; then : 1794 $as_echo_n "(cached) " >&6 1795else 1796 eval "$3=\$ac_header_compiler" 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801fi 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 1804} # ac_fn_c_check_header_mongrel 1805cat >config.log <<_ACEOF 1806This file contains any messages produced by compilers while 1807running configure, to aid debugging if configure makes a mistake. 1808 1809It was created by mysqltcl $as_me 3.052, which was 1810generated by GNU Autoconf 2.68. Invocation command line was 1811 1812 $ $0 $@ 1813 1814_ACEOF 1815exec 5>>config.log 1816{ 1817cat <<_ASUNAME 1818## --------- ## 1819## Platform. ## 1820## --------- ## 1821 1822hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1823uname -m = `(uname -m) 2>/dev/null || echo unknown` 1824uname -r = `(uname -r) 2>/dev/null || echo unknown` 1825uname -s = `(uname -s) 2>/dev/null || echo unknown` 1826uname -v = `(uname -v) 2>/dev/null || echo unknown` 1827 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` 1830 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` 1838 1839_ASUNAME 1840 1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1842for as_dir in $PATH 1843do 1844 IFS=$as_save_IFS 1845 test -z "$as_dir" && as_dir=. 1846 $as_echo "PATH: $as_dir" 1847 done 1848IFS=$as_save_IFS 1849 1850} >&5 1851 1852cat >&5 <<_ACEOF 1853 1854 1855## ----------- ## 1856## Core tests. ## 1857## ----------- ## 1858 1859_ACEOF 1860 1861 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. 1867ac_configure_args= 1868ac_configure_args0= 1869ac_configure_args1= 1870ac_must_keep_next=false 1871for ac_pass in 1 2 1872do 1873 for ac_arg 1874 do 1875 case $ac_arg in 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) 1879 continue ;; 1880 *\'*) 1881 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1882 esac 1883 case $ac_pass in 1884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1885 2) 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. 1889 else 1890 case $ac_arg in 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 ;; 1897 esac 1898 ;; 1899 -* ) ac_must_keep_next=true ;; 1900 esac 1901 fi 1902 as_fn_append ac_configure_args " '$ac_arg'" 1903 ;; 1904 esac 1905 done 1906done 1907{ ac_configure_args0=; unset ac_configure_args0;} 1908{ ac_configure_args1=; unset ac_configure_args1;} 1909 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. 1915trap 'exit_status=$? 1916 # Save into config.log some information that might help in debugging. 1917 { 1918 echo 1919 1920 $as_echo "## ---------------- ## 1921## Cache variables. ## 1922## ---------------- ##" 1923 echo 1924 # The following way of writing the cache mishandles newlines in values, 1925( 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 1928 case $ac_val in #( 1929 *${as_nl}*) 1930 case $ac_var in #( 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;} ;; 1933 esac 1934 case $ac_var in #( 1935 _ | IFS | as_nl) ;; #( 1936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1937 *) { eval $ac_var=; unset $ac_var;} ;; 1938 esac ;; 1939 esac 1940 done 1941 (set) 2>&1 | 1942 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1943 *${as_nl}ac_space=\ *) 1944 sed -n \ 1945 "s/'\''/'\''\\\\'\'''\''/g; 1946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1947 ;; #( 1948 *) 1949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1950 ;; 1951 esac | 1952 sort 1953) 1954 echo 1955 1956 $as_echo "## ----------------- ## 1957## Output variables. ## 1958## ----------------- ##" 1959 echo 1960 for ac_var in $ac_subst_vars 1961 do 1962 eval ac_val=\$$ac_var 1963 case $ac_val in 1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1965 esac 1966 $as_echo "$ac_var='\''$ac_val'\''" 1967 done | sort 1968 echo 1969 1970 if test -n "$ac_subst_files"; then 1971 $as_echo "## ------------------- ## 1972## File substitutions. ## 1973## ------------------- ##" 1974 echo 1975 for ac_var in $ac_subst_files 1976 do 1977 eval ac_val=\$$ac_var 1978 case $ac_val in 1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1980 esac 1981 $as_echo "$ac_var='\''$ac_val'\''" 1982 done | sort 1983 echo 1984 fi 1985 1986 if test -s confdefs.h; then 1987 $as_echo "## ----------- ## 1988## confdefs.h. ## 1989## ----------- ##" 1990 echo 1991 cat confdefs.h 1992 echo 1993 fi 1994 test "$ac_signal" != 0 && 1995 $as_echo "$as_me: caught signal $ac_signal" 1996 $as_echo "$as_me: exit $exit_status" 1997 } >&5 1998 rm -f core *.core core.conftest.* && 1999 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2000 exit $exit_status 2001' 0 2002for ac_signal in 1 2 13 15; do 2003 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2004done 2005ac_signal=0 2006 2007# confdefs.h avoids OS command line length limits that DEFS can exceed. 2008rm -f -r conftest* confdefs.h 2009 2010$as_echo "/* confdefs.h */" > confdefs.h 2011 2012# Predefined preprocessor variables. 2013 2014cat >>confdefs.h <<_ACEOF 2015#define PACKAGE_NAME "$PACKAGE_NAME" 2016_ACEOF 2017 2018cat >>confdefs.h <<_ACEOF 2019#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2020_ACEOF 2021 2022cat >>confdefs.h <<_ACEOF 2023#define PACKAGE_VERSION "$PACKAGE_VERSION" 2024_ACEOF 2025 2026cat >>confdefs.h <<_ACEOF 2027#define PACKAGE_STRING "$PACKAGE_STRING" 2028_ACEOF 2029 2030cat >>confdefs.h <<_ACEOF 2031#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2032_ACEOF 2033 2034cat >>confdefs.h <<_ACEOF 2035#define PACKAGE_URL "$PACKAGE_URL" 2036_ACEOF 2037 2038 2039# Let the site file select an alternate cache file if it wants to. 2040# Prefer an explicitly selected file to automatically selected ones. 2041ac_site_file1=NONE 2042ac_site_file2=NONE 2043if 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;; 2049 esac 2050elif test "x$prefix" != xNONE; then 2051 ac_site_file1=$prefix/share/config.site 2052 ac_site_file2=$prefix/etc/config.site 2053else 2054 ac_site_file1=$ac_default_prefix/share/config.site 2055 ac_site_file2=$ac_default_prefix/etc/config.site 2056fi 2057for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2058do 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 2064 . "$ac_site_file" \ 2065 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2067as_fn_error $? "failed to load site script $ac_site_file 2068See \`config.log' for more details" "$LINENO" 5; } 2069 fi 2070done 2071 2072if 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;} 2078 case $cache_file in 2079 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2080 *) . "./$cache_file";; 2081 esac 2082 fi 2083else 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2085$as_echo "$as_me: creating cache $cache_file" >&6;} 2086 >$cache_file 2087fi 2088 2089# Check that the precious variables saved in the cache have kept the same 2090# value. 2091ac_cache_corrupted=false 2092for 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 2098 set,) 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=: ;; 2102 ,set) 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=: ;; 2106 ,);; 2107 *) 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=: 2116 else 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 2120 fi 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;} 2125 fi;; 2126 esac 2127 # Pass precious variables to config.status. 2128 if test "$ac_new_set" = set; then 2129 case $ac_new_val in 2130 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2131 *) ac_arg=$ac_var=$ac_new_val ;; 2132 esac 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'" ;; 2136 esac 2137 fi 2138done 2139if $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 2145fi 2146## -------------------- ## 2147## Main body of script. ## 2148## -------------------- ## 2149 2150ac_ext=c 2151ac_cpp='$CPP $CPPFLAGS' 2152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2154ac_compiler_gnu=$ac_cv_c_compiler_gnu 2155 2156 2157 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#-------------------------------------------------------------------- 2163 2164 2165 # TEA extensions pass this us the version of TEA they think they 2166 # are compatible with. 2167 TEA_VERSION="3.5" 2168 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 2172 as_fn_error $? " 2173The PACKAGE_NAME variable must be defined by your TEA configure.in" "$LINENO" 5 2174 fi 2175 if test x"3.5" = x ; then 2176 as_fn_error $? " 2177TEA 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; } 2181 else 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5 2183$as_echo "ok (TEA ${TEA_VERSION})" >&6; } 2184 fi 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. 2188set 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; } 2191if ${ac_cv_prog_CYGPATH+:} false; then : 2192 $as_echo_n "(cached) " >&6 2193else 2194 if test -n "$CYGPATH"; then 2195 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 2196else 2197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2198for as_dir in $PATH 2199do 2200 IFS=$as_save_IFS 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 2206 break 2 2207 fi 2208done 2209 done 2210IFS=$as_save_IFS 2211 2212 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 2213fi 2214fi 2215CYGPATH=$ac_cv_prog_CYGPATH 2216if test -n "$CYGPATH"; then 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 2218$as_echo "$CYGPATH" >&6; } 2219else 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2221$as_echo "no" >&6; } 2222fi 2223 2224 2225 EXEEXT=".exe" 2226 TEA_PLATFORM="windows" 2227 ;; 2228 *) 2229 CYGPATH=echo 2230 EXEEXT="" 2231 TEA_PLATFORM="unix" 2232 ;; 2233 esac 2234 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 2241 exec_prefix=$prefix 2242 fi 2243 2244 2245 2246 2247 # This package name must be replaced statically for AC_SUBST to work 2248 2249 # Substitute STUB_LIB_FILE in case package creates a stub library too. 2250 2251 2252 # We AC_SUBST these here to ensure they are subst'ed, 2253 # in case the user doesn't call TEA_ADD_... 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263ac_aux_dir= 2264for ac_dir in tclconfig "$srcdir"/tclconfig; do 2265 if test -f "$ac_dir/install-sh"; then 2266 ac_aux_dir=$ac_dir 2267 ac_install_sh="$ac_aux_dir/install-sh -c" 2268 break 2269 elif test -f "$ac_dir/install.sh"; then 2270 ac_aux_dir=$ac_dir 2271 ac_install_sh="$ac_aux_dir/install.sh -c" 2272 break 2273 elif test -f "$ac_dir/shtool"; then 2274 ac_aux_dir=$ac_dir 2275 ac_install_sh="$ac_aux_dir/shtool install -c" 2276 break 2277 fi 2278done 2279if test -z "$ac_aux_dir"; then 2280 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tclconfig \"$srcdir\"/tclconfig" "$LINENO" 5 2281fi 2282 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. 2287ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2288ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2289ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2290 2291 2292 2293#-------------------------------------------------------------------- 2294# Load the tclConfig.sh file 2295#-------------------------------------------------------------------- 2296 2297 2298 2299 # 2300 # Ok, lets find the tcl configuration 2301 # First, look for one uninstalled. 2302 # the alternative search directory is invoked by --with-tcl 2303 # 2304 2305 if test x"${no_tcl}" = x ; then 2306 # we reset no_tcl in case something fails here 2307 no_tcl=true 2308 2309# Check whether --with-tcl was given. 2310if test "${with_tcl+set}" = set; then : 2311 withval=$with_tcl; with_tclconfig=${withval} 2312fi 2313 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 2318else 2319 2320 2321 # First check to see if --with-tcl was specified. 2322 if test x"${with_tclconfig}" != x ; then 2323 case ${with_tclconfig} in 2324 */tclConfig.sh ) 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$!!'` 2329 fi ;; 2330 esac 2331 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2332 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 2333 else 2334 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 2335 fi 2336 fi 2337 2338 # then check for a private Tcl installation 2339 if test x"${ac_cv_c_tclconfig}" = x ; then 2340 for i in \ 2341 ../tcl \ 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` \ 2345 ../../tcl \ 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` \ 2349 ../../../tcl \ 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)` 2355 break 2356 fi 2357 done 2358 fi 2359 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` \ 2366 ; do 2367 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2368 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` 2369 break 2370 fi 2371 done 2372 fi 2373 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` \ 2379 ; do 2380 if test -f "$i/tclConfig.sh" ; then 2381 ac_cv_c_tclconfig=`(cd $i; pwd)` 2382 break 2383 fi 2384 done 2385 fi 2386 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` \ 2395 ; do 2396 if test -f "$i/tclConfig.sh" ; then 2397 ac_cv_c_tclconfig=`(cd $i; pwd)` 2398 break 2399 fi 2400 done 2401 fi 2402 2403 # check in a few other private locations 2404 if test x"${ac_cv_c_tclconfig}" = x ; then 2405 for i in \ 2406 ${srcdir}/../tcl \ 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)` 2412 break 2413 fi 2414 done 2415 fi 2416 2417fi 2418 2419 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;} 2424 exit 0 2425 else 2426 no_tcl= 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; } 2430 fi 2431 fi 2432 2433 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; } 2436 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 2441 else 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; } 2444 fi 2445 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}\"" 2449 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. 2464 case ${TCL_DEFS} in 2465 *TCL_FRAMEWORK*) 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}" 2471 break 2472 fi 2473 done 2474 fi 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}" 2478 fi 2479 ;; 2480 esac 2481 fi 2482 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}\"" 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508#-------------------------------------------------------------------- 2509# Load the tkConfig.sh file if necessary (Tk extension) 2510#-------------------------------------------------------------------- 2511 2512#TEA_PATH_TKCONFIG 2513#TEA_LOAD_TKCONFIG 2514 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#----------------------------------------------------------------------- 2519 2520 2521 if test "${prefix}" = "NONE"; then 2522 prefix_default=yes 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} 2527 else 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;} 2530 prefix=/usr/local 2531 fi 2532 fi 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} 2539 else 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;} 2542 exec_prefix=$prefix 2543 fi 2544 fi 2545 2546 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#----------------------------------------------------------------------- 2553 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 2560# AIX /bin/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; } 2570if test -z "$INSTALL"; then 2571if ${ac_cv_path_install+:} false; then : 2572 $as_echo_n "(cached) " >&6 2573else 2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2575for as_dir in $PATH 2576do 2577 IFS=$as_save_IFS 2578 test -z "$as_dir" && as_dir=. 2579 # Account for people who put trailing slashes in PATH elements. 2580case $as_dir/ in #(( 2581 ./ | .// | /[cC]/* | \ 2582 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2583 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2584 /usr/ucb/* ) ;; 2585 *) 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 2588 # by default. 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. 2595 : 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. 2599 : 2600 else 2601 rm -rf conftest.one conftest.two conftest.dir 2602 echo one > conftest.one 2603 echo two > conftest.two 2604 mkdir conftest.dir 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 2609 then 2610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2611 break 3 2612 fi 2613 fi 2614 fi 2615 done 2616 done 2617 ;; 2618esac 2619 2620 done 2621IFS=$as_save_IFS 2622 2623rm -rf conftest.one conftest.two conftest.dir 2624 2625fi 2626 if test "${ac_cv_path_install+set}" = set; then 2627 INSTALL=$ac_cv_path_install 2628 else 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 2634 fi 2635fi 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2637$as_echo "$INSTALL" >&6; } 2638 2639# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2640# It thinks the first close brace ends the variable substitution. 2641test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2642 2643test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2644 2645test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2646 2647 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. 2650 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 2654 CFLAGS="" 2655 fi 2656 2657 ac_ext=c 2658ac_cpp='$CPP $CPPFLAGS' 2659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2661ac_compiler_gnu=$ac_cv_c_compiler_gnu 2662if 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. 2664set 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; } 2667if ${ac_cv_prog_CC+:} false; then : 2668 $as_echo_n "(cached) " >&6 2669else 2670 if test -n "$CC"; then 2671 ac_cv_prog_CC="$CC" # Let the user override the test. 2672else 2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2674for as_dir in $PATH 2675do 2676 IFS=$as_save_IFS 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 2682 break 2 2683 fi 2684done 2685 done 2686IFS=$as_save_IFS 2687 2688fi 2689fi 2690CC=$ac_cv_prog_CC 2691if test -n "$CC"; then 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2693$as_echo "$CC" >&6; } 2694else 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2696$as_echo "no" >&6; } 2697fi 2698 2699 2700fi 2701if test -z "$ac_cv_prog_CC"; then 2702 ac_ct_CC=$CC 2703 # Extract the first word of "gcc", so it can be a program name with args. 2704set 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; } 2707if ${ac_cv_prog_ac_ct_CC+:} false; then : 2708 $as_echo_n "(cached) " >&6 2709else 2710 if test -n "$ac_ct_CC"; then 2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2712else 2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714for as_dir in $PATH 2715do 2716 IFS=$as_save_IFS 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 2722 break 2 2723 fi 2724done 2725 done 2726IFS=$as_save_IFS 2727 2728fi 2729fi 2730ac_ct_CC=$ac_cv_prog_ac_ct_CC 2731if 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; } 2734else 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2736$as_echo "no" >&6; } 2737fi 2738 2739 if test "x$ac_ct_CC" = x; then 2740 CC="" 2741 else 2742 case $cross_compiling:$ac_tool_warned in 2743yes:) 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;} 2746ac_tool_warned=yes ;; 2747esac 2748 CC=$ac_ct_CC 2749 fi 2750else 2751 CC="$ac_cv_prog_CC" 2752fi 2753 2754if 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. 2757set 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; } 2760if ${ac_cv_prog_CC+:} false; then : 2761 $as_echo_n "(cached) " >&6 2762else 2763 if test -n "$CC"; then 2764 ac_cv_prog_CC="$CC" # Let the user override the test. 2765else 2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2767for as_dir in $PATH 2768do 2769 IFS=$as_save_IFS 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 2775 break 2 2776 fi 2777done 2778 done 2779IFS=$as_save_IFS 2780 2781fi 2782fi 2783CC=$ac_cv_prog_CC 2784if test -n "$CC"; then 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2786$as_echo "$CC" >&6; } 2787else 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2789$as_echo "no" >&6; } 2790fi 2791 2792 2793 fi 2794fi 2795if test -z "$CC"; then 2796 # Extract the first word of "cc", so it can be a program name with args. 2797set 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; } 2800if ${ac_cv_prog_CC+:} false; then : 2801 $as_echo_n "(cached) " >&6 2802else 2803 if test -n "$CC"; then 2804 ac_cv_prog_CC="$CC" # Let the user override the test. 2805else 2806 ac_prog_rejected=no 2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2808for as_dir in $PATH 2809do 2810 IFS=$as_save_IFS 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 2816 continue 2817 fi 2818 ac_cv_prog_CC="cc" 2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2820 break 2 2821 fi 2822done 2823 done 2824IFS=$as_save_IFS 2825 2826if 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 2829 shift 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. 2834 shift 2835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2836 fi 2837fi 2838fi 2839fi 2840CC=$ac_cv_prog_CC 2841if test -n "$CC"; then 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2843$as_echo "$CC" >&6; } 2844else 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846$as_echo "no" >&6; } 2847fi 2848 2849 2850fi 2851if test -z "$CC"; then 2852 if test -n "$ac_tool_prefix"; then 2853 for ac_prog in cl.exe 2854 do 2855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2856set 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; } 2859if ${ac_cv_prog_CC+:} false; then : 2860 $as_echo_n "(cached) " >&6 2861else 2862 if test -n "$CC"; then 2863 ac_cv_prog_CC="$CC" # Let the user override the test. 2864else 2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2866for as_dir in $PATH 2867do 2868 IFS=$as_save_IFS 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 2874 break 2 2875 fi 2876done 2877 done 2878IFS=$as_save_IFS 2879 2880fi 2881fi 2882CC=$ac_cv_prog_CC 2883if test -n "$CC"; then 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2885$as_echo "$CC" >&6; } 2886else 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2888$as_echo "no" >&6; } 2889fi 2890 2891 2892 test -n "$CC" && break 2893 done 2894fi 2895if test -z "$CC"; then 2896 ac_ct_CC=$CC 2897 for ac_prog in cl.exe 2898do 2899 # Extract the first word of "$ac_prog", so it can be a program name with args. 2900set 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; } 2903if ${ac_cv_prog_ac_ct_CC+:} false; then : 2904 $as_echo_n "(cached) " >&6 2905else 2906 if test -n "$ac_ct_CC"; then 2907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2908else 2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910for as_dir in $PATH 2911do 2912 IFS=$as_save_IFS 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 2918 break 2 2919 fi 2920done 2921 done 2922IFS=$as_save_IFS 2923 2924fi 2925fi 2926ac_ct_CC=$ac_cv_prog_ac_ct_CC 2927if 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; } 2930else 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2932$as_echo "no" >&6; } 2933fi 2934 2935 2936 test -n "$ac_ct_CC" && break 2937done 2938 2939 if test "x$ac_ct_CC" = x; then 2940 CC="" 2941 else 2942 case $cross_compiling:$ac_tool_warned in 2943yes:) 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;} 2946ac_tool_warned=yes ;; 2947esac 2948 CC=$ac_ct_CC 2949 fi 2950fi 2951 2952fi 2953 2954 2955test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2957as_fn_error $? "no acceptable C compiler found in \$PATH 2958See \`config.log' for more details" "$LINENO" 5; } 2959 2960# Provide some information about the compiler. 2961$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2962set X $ac_compile 2963ac_compiler=$2 2964for ac_option in --version -v -V -qversion; do 2965 { { ac_try="$ac_compiler $ac_option >&5" 2966case "(($ac_try" in 2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2968 *) ac_try_echo=$ac_try;; 2969esac 2970eval 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 2973 ac_status=$? 2974 if test -s conftest.err; then 2975 sed '10a\ 2976... rest of stderr output deleted ... 2977 10q' conftest.err >conftest.er1 2978 cat conftest.er1 >&5 2979 fi 2980 rm -f conftest.er1 conftest.err 2981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2982 test $ac_status = 0; } 2983done 2984 2985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2986/* end confdefs.h. */ 2987 2988int 2989main () 2990{ 2991 2992 ; 2993 return 0; 2994} 2995_ACEOF 2996ac_clean_files_save=$ac_clean_files 2997ac_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 3000# of exeext. 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; } 3003ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3004 3005# The possible output files: 3006ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3007 3008ac_rmfiles= 3009for ac_file in $ac_files 3010do 3011 case $ac_file in 3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3013 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3014 esac 3015done 3016rm -f $ac_rmfiles 3017 3018if { { ac_try="$ac_link_default" 3019case "(($ac_try" in 3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3021 *) ac_try_echo=$ac_try;; 3022esac 3023eval 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 3026 ac_status=$? 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 3033# Autoconf. 3034for ac_file in $ac_files '' 3035do 3036 test -f "$ac_file" || continue 3037 case $ac_file in 3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3039 ;; 3040 [ab].out ) 3041 # We found the default executable, but exeext='' is most 3042 # certainly right. 3043 break;; 3044 *.* ) 3045 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3046 then :; else 3047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3048 fi 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 3053 # actually working. 3054 break;; 3055 * ) 3056 break;; 3057 esac 3058done 3059test "$ac_cv_exeext" = no && ac_cv_exeext= 3060 3061else 3062 ac_file='' 3063fi 3064if 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 3068sed 's/^/| /' conftest.$ac_ext >&5 3069 3070{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3072as_fn_error 77 "C compiler cannot create executables 3073See \`config.log' for more details" "$LINENO" 5; } 3074else 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3076$as_echo "yes" >&6; } 3077fi 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; } 3082ac_exeext=$ac_cv_exeext 3083 3084rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3085ac_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; } 3088if { { ac_try="$ac_link" 3089case "(($ac_try" in 3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091 *) ac_try_echo=$ac_try;; 3092esac 3093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3094$as_echo "$ac_try_echo"; } >&5 3095 (eval "$ac_link") 2>&5 3096 ac_status=$? 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 3102# `rm'. 3103for ac_file in conftest.exe conftest conftest.*; do 3104 test -f "$ac_file" || continue 3105 case $ac_file in 3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3107 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3108 break;; 3109 * ) break;; 3110 esac 3111done 3112else 3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3115as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3116See \`config.log' for more details" "$LINENO" 5; } 3117fi 3118rm -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; } 3121 3122rm -f conftest.$ac_ext 3123EXEEXT=$ac_cv_exeext 3124ac_exeext=$EXEEXT 3125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3126/* end confdefs.h. */ 3127#include <stdio.h> 3128int 3129main () 3130{ 3131FILE *f = fopen ("conftest.out", "w"); 3132 return ferror (f) || fclose (f) != 0; 3133 3134 ; 3135 return 0; 3136} 3137_ACEOF 3138ac_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; } 3143if test "$cross_compiling" != yes; then 3144 { { ac_try="$ac_link" 3145case "(($ac_try" in 3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3147 *) ac_try_echo=$ac_try;; 3148esac 3149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3150$as_echo "$ac_try_echo"; } >&5 3151 (eval "$ac_link") 2>&5 3152 ac_status=$? 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;; 3159esac 3160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3161$as_echo "$ac_try_echo"; } >&5 3162 (eval "$ac_try") 2>&5 3163 ac_status=$? 3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3165 test $ac_status = 0; }; }; then 3166 cross_compiling=no 3167 else 3168 if test "$cross_compiling" = maybe; then 3169 cross_compiling=yes 3170 else 3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3173as_fn_error $? "cannot run C compiled programs. 3174If you meant to cross compile, use \`--host'. 3175See \`config.log' for more details" "$LINENO" 5; } 3176 fi 3177 fi 3178fi 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3180$as_echo "$cross_compiling" >&6; } 3181 3182rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3183ac_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; } 3186if ${ac_cv_objext+:} false; then : 3187 $as_echo_n "(cached) " >&6 3188else 3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3190/* end confdefs.h. */ 3191 3192int 3193main () 3194{ 3195 3196 ; 3197 return 0; 3198} 3199_ACEOF 3200rm -f conftest.o conftest.obj 3201if { { ac_try="$ac_compile" 3202case "(($ac_try" in 3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3204 *) ac_try_echo=$ac_try;; 3205esac 3206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3207$as_echo "$ac_try_echo"; } >&5 3208 (eval "$ac_compile") 2>&5 3209 ac_status=$? 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; 3214 case $ac_file in 3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3216 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3217 break;; 3218 esac 3219done 3220else 3221 $as_echo "$as_me: failed program was:" >&5 3222sed 's/^/| /' conftest.$ac_ext >&5 3223 3224{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3226as_fn_error $? "cannot compute suffix of object files: cannot compile 3227See \`config.log' for more details" "$LINENO" 5; } 3228fi 3229rm -f conftest.$ac_cv_objext conftest.$ac_ext 3230fi 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3232$as_echo "$ac_cv_objext" >&6; } 3233OBJEXT=$ac_cv_objext 3234ac_objext=$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; } 3237if ${ac_cv_c_compiler_gnu+:} false; then : 3238 $as_echo_n "(cached) " >&6 3239else 3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3241/* end confdefs.h. */ 3242 3243int 3244main () 3245{ 3246#ifndef __GNUC__ 3247 choke me 3248#endif 3249 3250 ; 3251 return 0; 3252} 3253_ACEOF 3254if ac_fn_c_try_compile "$LINENO"; then : 3255 ac_compiler_gnu=yes 3256else 3257 ac_compiler_gnu=no 3258fi 3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3260ac_cv_c_compiler_gnu=$ac_compiler_gnu 3261 3262fi 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3264$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3265if test $ac_compiler_gnu = yes; then 3266 GCC=yes 3267else 3268 GCC= 3269fi 3270ac_test_CFLAGS=${CFLAGS+set} 3271ac_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; } 3274if ${ac_cv_prog_cc_g+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276else 3277 ac_save_c_werror_flag=$ac_c_werror_flag 3278 ac_c_werror_flag=yes 3279 ac_cv_prog_cc_g=no 3280 CFLAGS="-g" 3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3282/* end confdefs.h. */ 3283 3284int 3285main () 3286{ 3287 3288 ; 3289 return 0; 3290} 3291_ACEOF 3292if ac_fn_c_try_compile "$LINENO"; then : 3293 ac_cv_prog_cc_g=yes 3294else 3295 CFLAGS="" 3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3297/* end confdefs.h. */ 3298 3299int 3300main () 3301{ 3302 3303 ; 3304 return 0; 3305} 3306_ACEOF 3307if ac_fn_c_try_compile "$LINENO"; then : 3308 3309else 3310 ac_c_werror_flag=$ac_save_c_werror_flag 3311 CFLAGS="-g" 3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3313/* end confdefs.h. */ 3314 3315int 3316main () 3317{ 3318 3319 ; 3320 return 0; 3321} 3322_ACEOF 3323if ac_fn_c_try_compile "$LINENO"; then : 3324 ac_cv_prog_cc_g=yes 3325fi 3326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3327fi 3328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3329fi 3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3331 ac_c_werror_flag=$ac_save_c_werror_flag 3332fi 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3334$as_echo "$ac_cv_prog_cc_g" >&6; } 3335if test "$ac_test_CFLAGS" = set; then 3336 CFLAGS=$ac_save_CFLAGS 3337elif test $ac_cv_prog_cc_g = yes; then 3338 if test "$GCC" = yes; then 3339 CFLAGS="-g -O2" 3340 else 3341 CFLAGS="-g" 3342 fi 3343else 3344 if test "$GCC" = yes; then 3345 CFLAGS="-O2" 3346 else 3347 CFLAGS= 3348 fi 3349fi 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; } 3352if ${ac_cv_prog_cc_c89+:} false; then : 3353 $as_echo_n "(cached) " >&6 3354else 3355 ac_cv_prog_cc_c89=no 3356ac_save_CC=$CC 3357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3358/* end confdefs.h. */ 3359#include <stdarg.h> 3360#include <stdio.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. */ 3364struct buf { int x; }; 3365FILE * (*rcsopen) (struct buf *, struct stat *, int); 3366static char *e (p, i) 3367 char **p; 3368 int i; 3369{ 3370 return p[i]; 3371} 3372static char *f (char * (*g) (char **, int), char **p, ...) 3373{ 3374 char *s; 3375 va_list v; 3376 va_start (v,p); 3377 s = g (p, va_arg (v,int)); 3378 va_end (v); 3379 return s; 3380} 3381 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. */ 3389int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3390 3391/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3392 inside strings and character constants. */ 3393#define FOO(x) 'x' 3394int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3395 3396int test (int i, double x); 3397struct s1 {int (*f) (int a);}; 3398struct s2 {int (*f) (double a);}; 3399int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3400int argc; 3401char **argv; 3402int 3403main () 3404{ 3405return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3406 ; 3407 return 0; 3408} 3409_ACEOF 3410for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3412do 3413 CC="$ac_save_CC $ac_arg" 3414 if ac_fn_c_try_compile "$LINENO"; then : 3415 ac_cv_prog_cc_c89=$ac_arg 3416fi 3417rm -f core conftest.err conftest.$ac_objext 3418 test "x$ac_cv_prog_cc_c89" != "xno" && break 3419done 3420rm -f conftest.$ac_ext 3421CC=$ac_save_CC 3422 3423fi 3424# AC_CACHE_VAL 3425case "x$ac_cv_prog_cc_c89" in 3426 x) 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3428$as_echo "none needed" >&6; } ;; 3429 xno) 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3431$as_echo "unsupported" >&6; } ;; 3432 *) 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; } ;; 3436esac 3437if test "x$ac_cv_prog_cc_c89" != xno; then : 3438 3439fi 3440 3441ac_ext=c 3442ac_cpp='$CPP $CPPFLAGS' 3443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3445ac_compiler_gnu=$ac_cv_c_compiler_gnu 3446 3447 ac_ext=c 3448ac_cpp='$CPP $CPPFLAGS' 3449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3451ac_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. 3455if test -n "$CPP" && test -d "$CPP"; then 3456 CPP= 3457fi 3458if test -z "$CPP"; then 3459 if ${ac_cv_prog_CPP+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461else 3462 # Double quotes because CPP needs to be expanded 3463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3464 do 3465 ac_preproc_ok=false 3466for ac_c_preproc_warn_flag in '' yes 3467do 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. */ 3476#ifdef __STDC__ 3477# include <limits.h> 3478#else 3479# include <assert.h> 3480#endif 3481 Syntax error 3482_ACEOF 3483if ac_fn_c_try_cpp "$LINENO"; then : 3484 3485else 3486 # Broken: fails on valid input. 3487continue 3488fi 3489rm -f conftest.err conftest.i conftest.$ac_ext 3490 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> 3496_ACEOF 3497if ac_fn_c_try_cpp "$LINENO"; then : 3498 # Broken: success on invalid input. 3499continue 3500else 3501 # Passes both tests. 3502ac_preproc_ok=: 3503break 3504fi 3505rm -f conftest.err conftest.i conftest.$ac_ext 3506 3507done 3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3509rm -f conftest.i conftest.err conftest.$ac_ext 3510if $ac_preproc_ok; then : 3511 break 3512fi 3513 3514 done 3515 ac_cv_prog_CPP=$CPP 3516 3517fi 3518 CPP=$ac_cv_prog_CPP 3519else 3520 ac_cv_prog_CPP=$CPP 3521fi 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3523$as_echo "$CPP" >&6; } 3524ac_preproc_ok=false 3525for ac_c_preproc_warn_flag in '' yes 3526do 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. */ 3535#ifdef __STDC__ 3536# include <limits.h> 3537#else 3538# include <assert.h> 3539#endif 3540 Syntax error 3541_ACEOF 3542if ac_fn_c_try_cpp "$LINENO"; then : 3543 3544else 3545 # Broken: fails on valid input. 3546continue 3547fi 3548rm -f conftest.err conftest.i conftest.$ac_ext 3549 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> 3555_ACEOF 3556if ac_fn_c_try_cpp "$LINENO"; then : 3557 # Broken: success on invalid input. 3558continue 3559else 3560 # Passes both tests. 3561ac_preproc_ok=: 3562break 3563fi 3564rm -f conftest.err conftest.i conftest.$ac_ext 3565 3566done 3567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3568rm -f conftest.i conftest.err conftest.$ac_ext 3569if $ac_preproc_ok; then : 3570 3571else 3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3574as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3575See \`config.log' for more details" "$LINENO" 5; } 3576fi 3577 3578ac_ext=c 3579ac_cpp='$CPP $CPPFLAGS' 3580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3582ac_compiler_gnu=$ac_cv_c_compiler_gnu 3583 3584 3585 3586 3587 #-------------------------------------------------------------------- 3588 # Checks to see if the make program sets the $MAKE variable. 3589 #-------------------------------------------------------------------- 3590 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; } 3593set x ${MAKE-make} 3594ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3595if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3596 $as_echo_n "(cached) " >&6 3597else 3598 cat >conftest.make <<\_ACEOF 3599SHELL = /bin/sh 3600all: 3601 @echo '@@@%%%=$(MAKE)=@@@%%%' 3602_ACEOF 3603# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3604case `${MAKE-make} -f conftest.make 2>/dev/null` in 3605 *@@@%%%=?*=@@@%%%*) 3606 eval ac_cv_prog_make_${ac_make}_set=yes;; 3607 *) 3608 eval ac_cv_prog_make_${ac_make}_set=no;; 3609esac 3610rm -f conftest.make 3611fi 3612if 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; } 3615 SET_MAKE= 3616else 3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3618$as_echo "no" >&6; } 3619 SET_MAKE="MAKE=${MAKE-make}" 3620fi 3621 3622 3623 #-------------------------------------------------------------------- 3624 # Find ranlib 3625 #-------------------------------------------------------------------- 3626 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. 3629set 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; } 3632if ${ac_cv_prog_RANLIB+:} false; then : 3633 $as_echo_n "(cached) " >&6 3634else 3635 if test -n "$RANLIB"; then 3636 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3637else 3638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3639for as_dir in $PATH 3640do 3641 IFS=$as_save_IFS 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 3647 break 2 3648 fi 3649done 3650 done 3651IFS=$as_save_IFS 3652 3653fi 3654fi 3655RANLIB=$ac_cv_prog_RANLIB 3656if test -n "$RANLIB"; then 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3658$as_echo "$RANLIB" >&6; } 3659else 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3661$as_echo "no" >&6; } 3662fi 3663 3664 3665fi 3666if 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. 3669set 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; } 3672if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 if test -n "$ac_ct_RANLIB"; then 3676 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3677else 3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3679for as_dir in $PATH 3680do 3681 IFS=$as_save_IFS 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 3687 break 2 3688 fi 3689done 3690 done 3691IFS=$as_save_IFS 3692 3693fi 3694fi 3695ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3696if 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; } 3699else 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701$as_echo "no" >&6; } 3702fi 3703 3704 if test "x$ac_ct_RANLIB" = x; then 3705 RANLIB=":" 3706 else 3707 case $cross_compiling:$ac_tool_warned in 3708yes:) 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;} 3711ac_tool_warned=yes ;; 3712esac 3713 RANLIB=$ac_ct_RANLIB 3714 fi 3715else 3716 RANLIB="$ac_cv_prog_RANLIB" 3717fi 3718 3719 3720 #-------------------------------------------------------------------- 3721 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3722 #-------------------------------------------------------------------- 3723 3724 3725 3726 3727 3728 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; } 3731if ${ac_cv_path_GREP+:} false; then : 3732 $as_echo_n "(cached) " >&6 3733else 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 3738for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3739do 3740 IFS=$as_save_IFS 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 3748case `"$ac_path_GREP" --version 2>&1` in 3749*GNU*) 3750 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3751*) 3752 ac_count=0 3753 $as_echo_n 0123456789 >"conftest.in" 3754 while : 3755 do 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 3767 fi 3768 # 10*(2^10) chars as input seems more than enough 3769 test $ac_count -gt 10 && break 3770 done 3771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3772esac 3773 3774 $ac_path_GREP_found && break 3 3775 done 3776 done 3777 done 3778IFS=$as_save_IFS 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 3781 fi 3782else 3783 ac_cv_path_GREP=$GREP 3784fi 3785 3786fi 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" 3790 3791 3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3793$as_echo_n "checking for egrep... " >&6; } 3794if ${ac_cv_path_EGREP+:} false; then : 3795 $as_echo_n "(cached) " >&6 3796else 3797 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3798 then ac_cv_path_EGREP="$GREP -E" 3799 else 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 3804for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3805do 3806 IFS=$as_save_IFS 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 3814case `"$ac_path_EGREP" --version 2>&1` in 3815*GNU*) 3816 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3817*) 3818 ac_count=0 3819 $as_echo_n 0123456789 >"conftest.in" 3820 while : 3821 do 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 3833 fi 3834 # 10*(2^10) chars as input seems more than enough 3835 test $ac_count -gt 10 && break 3836 done 3837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3838esac 3839 3840 $ac_path_EGREP_found && break 3 3841 done 3842 done 3843 done 3844IFS=$as_save_IFS 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 3847 fi 3848else 3849 ac_cv_path_EGREP=$EGREP 3850fi 3851 3852 fi 3853fi 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" 3857 3858 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; } 3861if ${ac_cv_header_stdc+:} false; then : 3862 $as_echo_n "(cached) " >&6 3863else 3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865/* end confdefs.h. */ 3866#include <stdlib.h> 3867#include <stdarg.h> 3868#include <string.h> 3869#include <float.h> 3870 3871int 3872main () 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879if ac_fn_c_try_compile "$LINENO"; then : 3880 ac_cv_header_stdc=yes 3881else 3882 ac_cv_header_stdc=no 3883fi 3884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3885 3886if 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. */ 3890#include <string.h> 3891 3892_ACEOF 3893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3894 $EGREP "memchr" >/dev/null 2>&1; then : 3895 3896else 3897 ac_cv_header_stdc=no 3898fi 3899rm -f conftest* 3900 3901fi 3902 3903if 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. */ 3907#include <stdlib.h> 3908 3909_ACEOF 3910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3911 $EGREP "free" >/dev/null 2>&1; then : 3912 3913else 3914 ac_cv_header_stdc=no 3915fi 3916rm -f conftest* 3917 3918fi 3919 3920if 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 : 3923 : 3924else 3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3926/* end confdefs.h. */ 3927#include <ctype.h> 3928#include <stdlib.h> 3929#if ((' ' & 0x0FF) == 0x020) 3930# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3931# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3932#else 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)) 3938#endif 3939 3940#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3941int 3942main () 3943{ 3944 int i; 3945 for (i = 0; i < 256; i++) 3946 if (XOR (islower (i), ISLOWER (i)) 3947 || toupper (i) != TOUPPER (i)) 3948 return 2; 3949 return 0; 3950} 3951_ACEOF 3952if ac_fn_c_try_run "$LINENO"; then : 3953 3954else 3955 ac_cv_header_stdc=no 3956fi 3957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3958 conftest.$ac_objext conftest.beam conftest.$ac_ext 3959fi 3960 3961fi 3962fi 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3964$as_echo "$ac_cv_header_stdc" >&6; } 3965if test $ac_cv_header_stdc = yes; then 3966 3967$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3968 3969fi 3970 3971# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3972for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3973 inttypes.h stdint.h unistd.h 3974do : 3975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3976ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3977" 3978if 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 3981_ACEOF 3982 3983fi 3984 3985done 3986 3987 3988 3989 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 3990 3991 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 #------------------------------------------------------------------------ 3996 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; } 4000 OLDCC="$CC" 4001 CC="$CC -pipe" 4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4003/* end confdefs.h. */ 4004 4005int 4006main () 4007{ 4008 4009 ; 4010 return 0; 4011} 4012_ACEOF 4013if ac_fn_c_try_compile "$LINENO"; then : 4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4015$as_echo "yes" >&6; } 4016else 4017 CC="$OLDCC" 4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4019$as_echo "no" >&6; } 4020fi 4021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4022 fi 4023 4024 #-------------------------------------------------------------------- 4025 # Common compiler flag setup 4026 #-------------------------------------------------------------------- 4027 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; } 4030if ${ac_cv_c_bigendian+:} false; then : 4031 $as_echo_n "(cached) " >&6 4032else 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 4039 #endif 4040 typedef int dummy; 4041 4042_ACEOF 4043if ac_fn_c_try_compile "$LINENO"; then : 4044 4045 # Check for potential -arch flags. It is not universal unless 4046 # there are at least two -arch flags with different values. 4047 ac_arch= 4048 ac_prev= 4049 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4050 if test -n "$ac_prev"; then 4051 case $ac_word in 4052 i?86 | x86_64 | ppc | ppc64) 4053 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4054 ac_arch=$ac_word 4055 else 4056 ac_cv_c_bigendian=universal 4057 break 4058 fi 4059 ;; 4060 esac 4061 ac_prev= 4062 elif test "x$ac_word" = "x-arch"; then 4063 ac_prev=arch 4064 fi 4065 done 4066fi 4067rm -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> 4074 4075int 4076main () 4077{ 4078#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4079 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4080 && LITTLE_ENDIAN) 4081 bogus endian macros 4082 #endif 4083 4084 ; 4085 return 0; 4086} 4087_ACEOF 4088if 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> 4094 4095int 4096main () 4097{ 4098#if BYTE_ORDER != BIG_ENDIAN 4099 not big endian 4100 #endif 4101 4102 ; 4103 return 0; 4104} 4105_ACEOF 4106if ac_fn_c_try_compile "$LINENO"; then : 4107 ac_cv_c_bigendian=yes 4108else 4109 ac_cv_c_bigendian=no 4110fi 4111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4112fi 4113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4114 fi 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. */ 4119#include <limits.h> 4120 4121int 4122main () 4123{ 4124#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4125 bogus endian macros 4126 #endif 4127 4128 ; 4129 return 0; 4130} 4131_ACEOF 4132if 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. */ 4136#include <limits.h> 4137 4138int 4139main () 4140{ 4141#ifndef _BIG_ENDIAN 4142 not big endian 4143 #endif 4144 4145 ; 4146 return 0; 4147} 4148_ACEOF 4149if ac_fn_c_try_compile "$LINENO"; then : 4150 ac_cv_c_bigendian=yes 4151else 4152 ac_cv_c_bigendian=no 4153fi 4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4155fi 4156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4157 fi 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. */ 4164short 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]; 4170 } 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]; 4177 } 4178 extern int foo; 4179 4180int 4181main () 4182{ 4183return use_ascii (foo) == use_ebcdic (foo); 4184 ; 4185 return 0; 4186} 4187_ACEOF 4188if ac_fn_c_try_compile "$LINENO"; then : 4189 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4190 ac_cv_c_bigendian=yes 4191 fi 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 4195 else 4196 # finding both strings is unlikely to happen, but who knows? 4197 ac_cv_c_bigendian=unknown 4198 fi 4199 fi 4200fi 4201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4202else 4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4204/* end confdefs.h. */ 4205$ac_includes_default 4206int 4207main () 4208{ 4209 4210 /* Are we little or big endian? From Harbison&Steele. */ 4211 union 4212 { 4213 long int l; 4214 char c[sizeof (long int)]; 4215 } u; 4216 u.l = 1; 4217 return u.c[sizeof (long int) - 1] == 1; 4218 4219 ; 4220 return 0; 4221} 4222_ACEOF 4223if ac_fn_c_try_run "$LINENO"; then : 4224 ac_cv_c_bigendian=no 4225else 4226 ac_cv_c_bigendian=yes 4227fi 4228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4229 conftest.$ac_objext conftest.beam conftest.$ac_ext 4230fi 4231 4232 fi 4233fi 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 #( 4237 yes) 4238 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4239;; #( 4240 no) 4241 ;; #( 4242 universal) 4243 4244$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4245 4246 ;; #( 4247 *) 4248 as_fn_error $? "unknown endianness 4249 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4250 esac 4251 4252 if test "${TEA_PLATFORM}" = "unix" ; then 4253 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 #-------------------------------------------------------------------- 4260 4261 ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin" 4262if test "x$ac_cv_func_sin" = xyes; then : 4263 MATH_LIBS="" 4264else 4265 MATH_LIBS="-lm" 4266fi 4267 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5 4269$as_echo_n "checking for main in -lieee... " >&6; } 4270if ${ac_cv_lib_ieee_main+:} false; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 ac_check_lib_save_LIBS=$LIBS 4274LIBS="-lieee $LIBS" 4275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277 4278 4279int 4280main () 4281{ 4282return main (); 4283 ; 4284 return 0; 4285} 4286_ACEOF 4287if ac_fn_c_try_link "$LINENO"; then : 4288 ac_cv_lib_ieee_main=yes 4289else 4290 ac_cv_lib_ieee_main=no 4291fi 4292rm -f core conftest.err conftest.$ac_objext \ 4293 conftest$ac_exeext conftest.$ac_ext 4294LIBS=$ac_check_lib_save_LIBS 4295fi 4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5 4297$as_echo "$ac_cv_lib_ieee_main" >&6; } 4298if test "x$ac_cv_lib_ieee_main" = xyes; then : 4299 MATH_LIBS="-lieee $MATH_LIBS" 4300fi 4301 4302 4303 #-------------------------------------------------------------------- 4304 # Interactive UNIX requires -linet instead of -lsocket, plus it 4305 # needs net/errno.h to define the socket-related error codes. 4306 #-------------------------------------------------------------------- 4307 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5 4309$as_echo_n "checking for main in -linet... " >&6; } 4310if ${ac_cv_lib_inet_main+:} false; then : 4311 $as_echo_n "(cached) " >&6 4312else 4313 ac_check_lib_save_LIBS=$LIBS 4314LIBS="-linet $LIBS" 4315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4316/* end confdefs.h. */ 4317 4318 4319int 4320main () 4321{ 4322return main (); 4323 ; 4324 return 0; 4325} 4326_ACEOF 4327if ac_fn_c_try_link "$LINENO"; then : 4328 ac_cv_lib_inet_main=yes 4329else 4330 ac_cv_lib_inet_main=no 4331fi 4332rm -f core conftest.err conftest.$ac_objext \ 4333 conftest$ac_exeext conftest.$ac_ext 4334LIBS=$ac_check_lib_save_LIBS 4335fi 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5 4337$as_echo "$ac_cv_lib_inet_main" >&6; } 4338if test "x$ac_cv_lib_inet_main" = xyes; then : 4339 LIBS="$LIBS -linet" 4340fi 4341 4342 ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 4343if test "x$ac_cv_header_net_errno_h" = xyes; then : 4344 4345 4346$as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h 4347 4348fi 4349 4350 4351 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 #-------------------------------------------------------------------- 4369 4370 tcl_checkBoth=0 4371 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 4372if test "x$ac_cv_func_connect" = xyes; then : 4373 tcl_checkSocket=0 4374else 4375 tcl_checkSocket=1 4376fi 4377 4378 if test "$tcl_checkSocket" = 1; then 4379 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 4380if test "x$ac_cv_func_setsockopt" = xyes; then : 4381 4382else 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 4384$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 4385if ${ac_cv_lib_socket_setsockopt+:} false; then : 4386 $as_echo_n "(cached) " >&6 4387else 4388 ac_check_lib_save_LIBS=$LIBS 4389LIBS="-lsocket $LIBS" 4390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4391/* end confdefs.h. */ 4392 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. */ 4396#ifdef __cplusplus 4397extern "C" 4398#endif 4399char setsockopt (); 4400int 4401main () 4402{ 4403return setsockopt (); 4404 ; 4405 return 0; 4406} 4407_ACEOF 4408if ac_fn_c_try_link "$LINENO"; then : 4409 ac_cv_lib_socket_setsockopt=yes 4410else 4411 ac_cv_lib_socket_setsockopt=no 4412fi 4413rm -f core conftest.err conftest.$ac_objext \ 4414 conftest$ac_exeext conftest.$ac_ext 4415LIBS=$ac_check_lib_save_LIBS 4416fi 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 4418$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 4419if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 4420 LIBS="$LIBS -lsocket" 4421else 4422 tcl_checkBoth=1 4423fi 4424 4425fi 4426 4427 fi 4428 if test "$tcl_checkBoth" = 1; then 4429 tk_oldLibs=$LIBS 4430 LIBS="$LIBS -lsocket -lnsl" 4431 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" 4432if test "x$ac_cv_func_accept" = xyes; then : 4433 tcl_checkNsl=0 4434else 4435 LIBS=$tk_oldLibs 4436fi 4437 4438 fi 4439 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 4440if test "x$ac_cv_func_gethostbyname" = xyes; then : 4441 4442else 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 4444$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 4445if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 4446 $as_echo_n "(cached) " >&6 4447else 4448 ac_check_lib_save_LIBS=$LIBS 4449LIBS="-lnsl $LIBS" 4450cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4451/* end confdefs.h. */ 4452 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. */ 4456#ifdef __cplusplus 4457extern "C" 4458#endif 4459char gethostbyname (); 4460int 4461main () 4462{ 4463return gethostbyname (); 4464 ; 4465 return 0; 4466} 4467_ACEOF 4468if ac_fn_c_try_link "$LINENO"; then : 4469 ac_cv_lib_nsl_gethostbyname=yes 4470else 4471 ac_cv_lib_nsl_gethostbyname=no 4472fi 4473rm -f core conftest.err conftest.$ac_objext \ 4474 conftest$ac_exeext conftest.$ac_ext 4475LIBS=$ac_check_lib_save_LIBS 4476fi 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 4478$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 4479if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 4480 LIBS="$LIBS -lnsl" 4481fi 4482 4483fi 4484 4485 4486 # Don't perform the eval of the libraries here because DL_LIBS 4487 # won't be set until we call TEA_CONFIG_CFLAGS 4488 4489 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 4490 4491 4492 4493 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5 4495$as_echo_n "checking dirent.h... " >&6; } 4496if ${tcl_cv_dirent_h+:} false; then : 4497 $as_echo_n "(cached) " >&6 4498else 4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4500/* end confdefs.h. */ 4501#include <sys/types.h> 4502#include <dirent.h> 4503int 4504main () 4505{ 4506 4507#ifndef _POSIX_SOURCE 4508# ifdef __Lynx__ 4509 /* 4510 * Generate compilation error to make the test fail: Lynx headers 4511 * are only valid if really in the POSIX environment. 4512 */ 4513 4514 missing_procedure(); 4515# endif 4516#endif 4517DIR *d; 4518struct dirent *entryPtr; 4519char *p; 4520d = opendir("foobar"); 4521entryPtr = readdir(d); 4522p = entryPtr->d_name; 4523closedir(d); 4524 4525 ; 4526 return 0; 4527} 4528_ACEOF 4529if ac_fn_c_try_link "$LINENO"; then : 4530 tcl_cv_dirent_h=yes 4531else 4532 tcl_cv_dirent_h=no 4533fi 4534rm -f core conftest.err conftest.$ac_objext \ 4535 conftest$ac_exeext conftest.$ac_ext 4536fi 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5 4538$as_echo "$tcl_cv_dirent_h" >&6; } 4539 4540 if test $tcl_cv_dirent_h = no; then 4541 4542$as_echo "#define NO_DIRENT_H 1" >>confdefs.h 4543 4544 fi 4545 4546 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 4547if test "x$ac_cv_header_errno_h" = xyes; then : 4548 4549else 4550 4551$as_echo "#define NO_ERRNO_H 1" >>confdefs.h 4552 4553fi 4554 4555 4556 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 4557if test "x$ac_cv_header_float_h" = xyes; then : 4558 4559else 4560 4561$as_echo "#define NO_FLOAT_H 1" >>confdefs.h 4562 4563fi 4564 4565 4566 ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default" 4567if test "x$ac_cv_header_values_h" = xyes; then : 4568 4569else 4570 4571$as_echo "#define NO_VALUES_H 1" >>confdefs.h 4572 4573fi 4574 4575 4576 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 4577if test "x$ac_cv_header_limits_h" = xyes; then : 4578 4579$as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h 4580 4581else 4582 4583$as_echo "#define NO_LIMITS_H 1" >>confdefs.h 4584 4585fi 4586 4587 4588 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4589if test "x$ac_cv_header_stdlib_h" = xyes; then : 4590 tcl_ok=1 4591else 4592 tcl_ok=0 4593fi 4594 4595 4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4597/* end confdefs.h. */ 4598#include <stdlib.h> 4599 4600_ACEOF 4601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4602 $EGREP "strtol" >/dev/null 2>&1; then : 4603 4604else 4605 tcl_ok=0 4606fi 4607rm -f conftest* 4608 4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4610/* end confdefs.h. */ 4611#include <stdlib.h> 4612 4613_ACEOF 4614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4615 $EGREP "strtoul" >/dev/null 2>&1; then : 4616 4617else 4618 tcl_ok=0 4619fi 4620rm -f conftest* 4621 4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4623/* end confdefs.h. */ 4624#include <stdlib.h> 4625 4626_ACEOF 4627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4628 $EGREP "strtod" >/dev/null 2>&1; then : 4629 4630else 4631 tcl_ok=0 4632fi 4633rm -f conftest* 4634 4635 if test $tcl_ok = 0; then 4636 4637$as_echo "#define NO_STDLIB_H 1" >>confdefs.h 4638 4639 fi 4640 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 4641if test "x$ac_cv_header_string_h" = xyes; then : 4642 tcl_ok=1 4643else 4644 tcl_ok=0 4645fi 4646 4647 4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4649/* end confdefs.h. */ 4650#include <string.h> 4651 4652_ACEOF 4653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4654 $EGREP "strstr" >/dev/null 2>&1; then : 4655 4656else 4657 tcl_ok=0 4658fi 4659rm -f conftest* 4660 4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4662/* end confdefs.h. */ 4663#include <string.h> 4664 4665_ACEOF 4666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4667 $EGREP "strerror" >/dev/null 2>&1; then : 4668 4669else 4670 tcl_ok=0 4671fi 4672rm -f conftest* 4673 4674 4675 # See also memmove check below for a place where NO_STRING_H can be 4676 # set and why. 4677 4678 if test $tcl_ok = 0; then 4679 4680$as_echo "#define NO_STRING_H 1" >>confdefs.h 4681 4682 fi 4683 4684 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 4685if test "x$ac_cv_header_sys_wait_h" = xyes; then : 4686 4687else 4688 4689$as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h 4690 4691fi 4692 4693 4694 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 4695if test "x$ac_cv_header_dlfcn_h" = xyes; then : 4696 4697else 4698 4699$as_echo "#define NO_DLFCN_H 1" >>confdefs.h 4700 4701fi 4702 4703 4704 4705 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 4706 for ac_header in sys/param.h 4707do : 4708 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 4709if test "x$ac_cv_header_sys_param_h" = xyes; then : 4710 cat >>confdefs.h <<_ACEOF 4711#define HAVE_SYS_PARAM_H 1 4712_ACEOF 4713 4714fi 4715 4716done 4717 4718 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. 4722 #TEA_BUGGY_STRTOD 4723 fi 4724 4725 4726#----------------------------------------------------------------------- 4727# __CHANGE__ 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#----------------------------------------------------------------------- 4735 4736 4737 vars="mysqltcl.c" 4738 for i in $vars; do 4739 case $i in 4740 \$*) 4741 # allow $-var names 4742 PKG_SOURCES="$PKG_SOURCES $i" 4743 PKG_OBJECTS="$PKG_OBJECTS $i" 4744 ;; 4745 *) 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" \ 4749 ; then 4750 as_fn_error $? "could not find source file '$i'" "$LINENO" 5 4751 fi 4752 PKG_SOURCES="$PKG_SOURCES $i" 4753 # this assumes it is in a VPATH dir 4754 i=`basename $i` 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}" 4758 else 4759 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 4760 fi 4761 PKG_OBJECTS="$PKG_OBJECTS $j" 4762 ;; 4763 esac 4764 done 4765 4766 4767 4768 4769 vars="" 4770 for i in $vars; do 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 4774 fi 4775 PKG_HEADERS="$PKG_HEADERS $i" 4776 done 4777 4778 4779 4780 vars="" 4781 for i in $vars; do 4782 PKG_INCLUDES="$PKG_INCLUDES $i" 4783 done 4784 4785 4786 4787 vars="" 4788 for i in $vars; do 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'` 4792 fi 4793 PKG_LIBS="$PKG_LIBS $i" 4794 done 4795 4796 4797 4798 PKG_CFLAGS="$PKG_CFLAGS " 4799 4800 4801 4802 vars="" 4803 for i in $vars; do 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" \ 4807 ; then 4808 as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5 4809 fi 4810 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 4811 # this assumes it is in a VPATH dir 4812 i=`basename $i` 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}" 4816 else 4817 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 4818 fi 4819 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 4820 done 4821 4822 4823 4824 4825 vars="" 4826 for i in $vars; do 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 4830 fi 4831 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 4832 done 4833 4834 4835 4836#-------------------------------------------------------------------- 4837# __CHANGE__ 4838# A few miscellaneous platform-specific items: 4839# 4840# Define a special symbol for Windows (BUILD_sample in this case) so 4841# that we create the export library with the dll. 4842# 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 4845# files. 4846# 4847# TEA_ADD_* any platform specific compiler/build info here. 4848#-------------------------------------------------------------------- 4849 4850if test "${TEA_PLATFORM}" = "windows" ; then 4851 4852$as_echo "#define BUILD_sample 1" >>confdefs.h 4853 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)\"]) 4857else 4858 CLEANFILES="pkgIndex.tcl" 4859 #TEA_ADD_SOURCES([unix/unixFile.c]) 4860 #TEA_ADD_LIBS([-lsuperfly]) 4861fi 4862 4863 4864#-------------------------------------------------------------------- 4865# __CHANGE__ 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 4869# notice. 4870# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 4871#-------------------------------------------------------------------- 4872 4873 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5 4875$as_echo_n "checking for Tcl public headers... " >&6; } 4876 4877 4878# Check whether --with-tclinclude was given. 4879if test "${with_tclinclude+set}" = set; then : 4880 withval=$with_tclinclude; with_tclinclude=${withval} 4881fi 4882 4883 4884 if ${ac_cv_c_tclh+:} false; then : 4885 $as_echo_n "(cached) " >&6 4886else 4887 4888 # Use the value from --with-tclinclude, if it was given 4889 4890 if test x"${with_tclinclude}" != x ; then 4891 if test -f "${with_tclinclude}/tcl.h" ; then 4892 ac_cv_c_tclh=${with_tclinclude} 4893 else 4894 as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5 4895 fi 4896 else 4897 if test "`uname -s`" = "Darwin"; then 4898 # If Tcl was built as a framework, attempt to use 4899 # the framework's Headers directory 4900 case ${TCL_DEFS} in 4901 *TCL_FRAMEWORK*) 4902 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 4903 ;; 4904 esac 4905 fi 4906 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`" 4911 fi 4912 4913 # Check order: pkg --prefix location, Tcl's --prefix location, 4914 # relative to directory of tclConfig.sh. 4915 4916 eval "temp_includedir=${includedir}" 4917 list="$list \ 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`" 4926 fi 4927 fi 4928 for i in $list ; do 4929 if test -f "$i/tcl.h" ; then 4930 ac_cv_c_tclh=$i 4931 break 4932 fi 4933 done 4934 fi 4935 4936fi 4937 4938 4939 # Print a message based on how we determined the include path 4940 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 4943 else 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5 4945$as_echo "${ac_cv_c_tclh}" >&6; } 4946 fi 4947 4948 # Convert to a native path and substitute into the output files. 4949 4950 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 4951 4952 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 4953 4954 4955 4956#TEA_PRIVATE_TCL_HEADERS 4957 4958#TEA_PUBLIC_TK_HEADERS 4959#TEA_PRIVATE_TK_HEADERS 4960#TEA_PATH_X 4961 4962#-------------------------------------------------------------------- 4963# Check whether --enable-threads or --disable-threads was given. 4964# This auto-enables if Tcl was compiled threaded. 4965#-------------------------------------------------------------------- 4966 4967 4968 # Check whether --enable-threads was given. 4969if test "${enable_threads+set}" = set; then : 4970 enableval=$enable_threads; tcl_ok=$enableval 4971else 4972 tcl_ok=yes 4973fi 4974 4975 4976 if test "${enable_threads+set}" = set; then 4977 enableval="$enable_threads" 4978 tcl_ok=$enableval 4979 else 4980 tcl_ok=yes 4981 fi 4982 4983 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 4984 TCL_THREADS=1 4985 4986 if test "${TEA_PLATFORM}" != "windows" ; then 4987 # We are always OK on Windows, so check what this platform wants: 4988 4989 # USE_THREAD_ALLOC tells us to try the special thread-based 4990 # allocator that significantly reduces lock contention 4991 4992$as_echo "#define USE_THREAD_ALLOC 1" >>confdefs.h 4993 4994 4995$as_echo "#define _REENTRANT 1" >>confdefs.h 4996 4997 if test "`uname -s`" = "SunOS" ; then 4998 4999$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5000 5001 fi 5002 5003$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 5004 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; } 5007if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : 5008 $as_echo_n "(cached) " >&6 5009else 5010 ac_check_lib_save_LIBS=$LIBS 5011LIBS="-lpthread $LIBS" 5012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5013/* end confdefs.h. */ 5014 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. */ 5018#ifdef __cplusplus 5019extern "C" 5020#endif 5021char pthread_mutex_init (); 5022int 5023main () 5024{ 5025return pthread_mutex_init (); 5026 ; 5027 return 0; 5028} 5029_ACEOF 5030if ac_fn_c_try_link "$LINENO"; then : 5031 ac_cv_lib_pthread_pthread_mutex_init=yes 5032else 5033 ac_cv_lib_pthread_pthread_mutex_init=no 5034fi 5035rm -f core conftest.err conftest.$ac_objext \ 5036 conftest$ac_exeext conftest.$ac_ext 5037LIBS=$ac_check_lib_save_LIBS 5038fi 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; } 5041if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : 5042 tcl_ok=yes 5043else 5044 tcl_ok=no 5045fi 5046 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; } 5055if ${ac_cv_lib_pthread___pthread_mutex_init+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 ac_check_lib_save_LIBS=$LIBS 5059LIBS="-lpthread $LIBS" 5060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5061/* end confdefs.h. */ 5062 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. */ 5066#ifdef __cplusplus 5067extern "C" 5068#endif 5069char __pthread_mutex_init (); 5070int 5071main () 5072{ 5073return __pthread_mutex_init (); 5074 ; 5075 return 0; 5076} 5077_ACEOF 5078if ac_fn_c_try_link "$LINENO"; then : 5079 ac_cv_lib_pthread___pthread_mutex_init=yes 5080else 5081 ac_cv_lib_pthread___pthread_mutex_init=no 5082fi 5083rm -f core conftest.err conftest.$ac_objext \ 5084 conftest$ac_exeext conftest.$ac_ext 5085LIBS=$ac_check_lib_save_LIBS 5086fi 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; } 5089if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes; then : 5090 tcl_ok=yes 5091else 5092 tcl_ok=no 5093fi 5094 5095 fi 5096 5097 if test "$tcl_ok" = "yes"; then 5098 # The space is needed 5099 THREADS_LIBS=" -lpthread" 5100 else 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; } 5103if ${ac_cv_lib_pthreads_pthread_mutex_init+:} false; then : 5104 $as_echo_n "(cached) " >&6 5105else 5106 ac_check_lib_save_LIBS=$LIBS 5107LIBS="-lpthreads $LIBS" 5108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109/* end confdefs.h. */ 5110 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. */ 5114#ifdef __cplusplus 5115extern "C" 5116#endif 5117char pthread_mutex_init (); 5118int 5119main () 5120{ 5121return pthread_mutex_init (); 5122 ; 5123 return 0; 5124} 5125_ACEOF 5126if ac_fn_c_try_link "$LINENO"; then : 5127 ac_cv_lib_pthreads_pthread_mutex_init=yes 5128else 5129 ac_cv_lib_pthreads_pthread_mutex_init=no 5130fi 5131rm -f core conftest.err conftest.$ac_objext \ 5132 conftest$ac_exeext conftest.$ac_ext 5133LIBS=$ac_check_lib_save_LIBS 5134fi 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; } 5137if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes; then : 5138 tcl_ok=yes 5139else 5140 tcl_ok=no 5141fi 5142 5143 if test "$tcl_ok" = "yes"; then 5144 # The space is needed 5145 THREADS_LIBS=" -lpthreads" 5146 else 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; } 5149if ${ac_cv_lib_c_pthread_mutex_init+:} false; then : 5150 $as_echo_n "(cached) " >&6 5151else 5152 ac_check_lib_save_LIBS=$LIBS 5153LIBS="-lc $LIBS" 5154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5155/* end confdefs.h. */ 5156 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. */ 5160#ifdef __cplusplus 5161extern "C" 5162#endif 5163char pthread_mutex_init (); 5164int 5165main () 5166{ 5167return pthread_mutex_init (); 5168 ; 5169 return 0; 5170} 5171_ACEOF 5172if ac_fn_c_try_link "$LINENO"; then : 5173 ac_cv_lib_c_pthread_mutex_init=yes 5174else 5175 ac_cv_lib_c_pthread_mutex_init=no 5176fi 5177rm -f core conftest.err conftest.$ac_objext \ 5178 conftest$ac_exeext conftest.$ac_ext 5179LIBS=$ac_check_lib_save_LIBS 5180fi 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; } 5183if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then : 5184 tcl_ok=yes 5185else 5186 tcl_ok=no 5187fi 5188 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; } 5192if ${ac_cv_lib_c_r_pthread_mutex_init+:} false; then : 5193 $as_echo_n "(cached) " >&6 5194else 5195 ac_check_lib_save_LIBS=$LIBS 5196LIBS="-lc_r $LIBS" 5197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199 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. */ 5203#ifdef __cplusplus 5204extern "C" 5205#endif 5206char pthread_mutex_init (); 5207int 5208main () 5209{ 5210return pthread_mutex_init (); 5211 ; 5212 return 0; 5213} 5214_ACEOF 5215if ac_fn_c_try_link "$LINENO"; then : 5216 ac_cv_lib_c_r_pthread_mutex_init=yes 5217else 5218 ac_cv_lib_c_r_pthread_mutex_init=no 5219fi 5220rm -f core conftest.err conftest.$ac_objext \ 5221 conftest$ac_exeext conftest.$ac_ext 5222LIBS=$ac_check_lib_save_LIBS 5223fi 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; } 5226if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes; then : 5227 tcl_ok=yes 5228else 5229 tcl_ok=no 5230fi 5231 5232 if test "$tcl_ok" = "yes"; then 5233 # The space is needed 5234 THREADS_LIBS=" -pthread" 5235 else 5236 TCL_THREADS=0 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;} 5239 fi 5240 fi 5241 fi 5242 fi 5243 fi 5244 else 5245 TCL_THREADS=0 5246 fi 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 5251 5252$as_echo "#define TCL_THREADS 1" >>confdefs.h 5253 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 5255$as_echo "yes (default)" >&6; } 5256 else 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5258$as_echo "no" >&6; } 5259 fi 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. 5262 case ${TCL_DEFS} in 5263 *THREADS=1*) 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;} 5271 fi 5272 ;; 5273 *) 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;} 5283 fi 5284 ;; 5285 esac 5286 5287 5288 5289#-------------------------------------------------------------------- 5290# The statement below defines a collection of symbols related to 5291# building as a shared library instead of a static library. 5292#-------------------------------------------------------------------- 5293 5294 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. 5298if test "${enable_shared+set}" = set; then : 5299 enableval=$enable_shared; tcl_ok=$enableval 5300else 5301 tcl_ok=yes 5302fi 5303 5304 5305 if test "${enable_shared+set}" = set; then 5306 enableval="$enable_shared" 5307 tcl_ok=$enableval 5308 else 5309 tcl_ok=yes 5310 fi 5311 5312 if test "$tcl_ok" = "yes" ; then 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 5314$as_echo "shared" >&6; } 5315 SHARED_BUILD=1 5316 else 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 5318$as_echo "static" >&6; } 5319 SHARED_BUILD=0 5320 5321$as_echo "#define STATIC_BUILD 1" >>confdefs.h 5322 5323 fi 5324 5325 5326 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#-------------------------------------------------------------------- 5332 5333 5334 5335 5336 # Step 0.a: Enable 64 bit support? 5337 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. 5341if test "${enable_64bit+set}" = set; then : 5342 enableval=$enable_64bit; do64bit=$enableval 5343else 5344 do64bit=no 5345fi 5346 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 5348$as_echo "$do64bit" >&6; } 5349 5350 # Step 0.b: Enable Solaris 64 bit VIS support? 5351 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. 5355if test "${enable_64bit_vis+set}" = set; then : 5356 enableval=$enable_64bit_vis; do64bitVIS=$enableval 5357else 5358 do64bitVIS=no 5359fi 5360 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 5362$as_echo "$do64bitVIS" >&6; } 5363 5364 if test "$do64bitVIS" = "yes"; then 5365 # Force 64bit on with VIS 5366 do64bit=yes 5367 fi 5368 5369 # Step 0.c: Cross-compiling options for Windows/CE builds? 5370 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. 5375if test "${enable_wince+set}" = set; then : 5376 enableval=$enable_wince; doWince=$enableval 5377else 5378 doWince=no 5379fi 5380 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5 5382$as_echo "$doWince" >&6; } 5383 fi 5384 5385 # Step 1: set the variable "system" to hold the name and version number 5386 # for the system. 5387 5388 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 5390$as_echo_n "checking system version... " >&6; } 5391if ${tcl_cv_sys_version+:} false; then : 5392 $as_echo_n "(cached) " >&6 5393else 5394 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` 5399 else 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 5405 else 5406 # Special check for weird MP-RAS system (uname returns weird 5407 # results, and the version is kept in special file). 5408 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` 5411 fi 5412 if test "`uname -s`" = "AIX" ; then 5413 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 5414 fi 5415 fi 5416 fi 5417 5418fi 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 5422 5423 5424 # Step 2: check for existence of -ldl library. This is needed because 5425 # Linux can use either -ldl or -ldld for dynamic loading. 5426 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 5428$as_echo_n "checking for dlopen in -ldl... " >&6; } 5429if ${ac_cv_lib_dl_dlopen+:} false; then : 5430 $as_echo_n "(cached) " >&6 5431else 5432 ac_check_lib_save_LIBS=$LIBS 5433LIBS="-ldl $LIBS" 5434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5435/* end confdefs.h. */ 5436 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. */ 5440#ifdef __cplusplus 5441extern "C" 5442#endif 5443char dlopen (); 5444int 5445main () 5446{ 5447return dlopen (); 5448 ; 5449 return 0; 5450} 5451_ACEOF 5452if ac_fn_c_try_link "$LINENO"; then : 5453 ac_cv_lib_dl_dlopen=yes 5454else 5455 ac_cv_lib_dl_dlopen=no 5456fi 5457rm -f core conftest.err conftest.$ac_objext \ 5458 conftest$ac_exeext conftest.$ac_ext 5459LIBS=$ac_check_lib_save_LIBS 5460fi 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 5462$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 5463if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 5464 have_dl=yes 5465else 5466 have_dl=no 5467fi 5468 5469 5470 # Require ranlib early so we can override it in special cases below. 5471 5472 5473 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 5476 # "windows" case. 5477 5478 do64bit_ok=no 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] 5483 LDFLAGS_ARCH="" 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 5489 CFLAGS_DEBUG=-g 5490 CFLAGS_OPTIMIZE=-O 5491 if test "$GCC" = "yes" ; then 5492 CFLAGS_OPTIMIZE=-O2 5493 CFLAGS_WARNING="-Wall -Wno-implicit-int" 5494 else 5495 CFLAGS_WARNING="" 5496 fi 5497 TCL_NEEDS_EXP_FILE=0 5498 TCL_BUILD_EXP_FILE="" 5499 TCL_EXP_FILE="" 5500 # Extract the first word of "ar", so it can be a program name with args. 5501set 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; } 5504if ${ac_cv_prog_AR+:} false; then : 5505 $as_echo_n "(cached) " >&6 5506else 5507 if test -n "$AR"; then 5508 ac_cv_prog_AR="$AR" # Let the user override the test. 5509else 5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5511for as_dir in $PATH 5512do 5513 IFS=$as_save_IFS 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 5517 ac_cv_prog_AR="ar" 5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5519 break 2 5520 fi 5521done 5522 done 5523IFS=$as_save_IFS 5524 5525fi 5526fi 5527AR=$ac_cv_prog_AR 5528if test -n "$AR"; then 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5530$as_echo "$AR" >&6; } 5531else 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5533$as_echo "no" >&6; } 5534fi 5535 5536 5537 STLIB_LD='${AR} cr' 5538 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 5539 case $system in 5540 windows) 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. 5546 MACHINE="X86" 5547 if test "$do64bit" != "no" ; then 5548 if test "x${MSSDK}x" = "xx" ; then 5549 MSSDK="C:/Progra~1/Microsoft Platform SDK" 5550 fi 5551 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 5552 PATH64="" 5553 case "$do64bit" in 5554 amd64|x64|yes) 5555 MACHINE="AMD64" ; # default to AMD64 64-bit build 5556 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 5557 ;; 5558 ia64) 5559 MACHINE="IA64" 5560 PATH64="${MSSDK}/Bin/Win64" 5561 ;; 5562 esac 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;} 5568 do64bit="no" 5569 else 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using 64-bit $MACHINE mode" >&5 5571$as_echo " Using 64-bit $MACHINE mode" >&6; } 5572 do64bit_ok="yes" 5573 fi 5574 fi 5575 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 5579 fi 5580 if test "$GCC" = "yes" ; then 5581 as_fn_error $? "Windows/CE and GCC builds incompatible" "$LINENO" 5 5582 fi 5583 5584 # First, look for one uninstalled. 5585 # the alternative search directory is invoked by --with-celib 5586 5587 if test x"${no_celib}" = x ; then 5588 # we reset no_celib in case something fails here 5589 no_celib=true 5590 5591# Check whether --with-celib was given. 5592if test "${with_celib+set}" = set; then : 5593 withval=$with_celib; with_celibconfig=${withval} 5594fi 5595 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 5600else 5601 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)` 5606 else 5607 as_fn_error $? "${with_celibconfig} directory doesn't contain inc directory" "$LINENO" 5 5608 fi 5609 fi 5610 5611 # then check for a celib library 5612 if test x"${ac_cv_c_celibconfig}" = x ; then 5613 for i in \ 5614 ../celib-palm-3.0 \ 5615 ../celib \ 5616 ../../celib-palm-3.0 \ 5617 ../../celib \ 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` \ 5622 ; do 5623 if test -d "$i/inc" ; then 5624 ac_cv_c_celibconfig=`(cd $i; pwd)` 5625 break 5626 fi 5627 done 5628 fi 5629 5630fi 5631 5632 if test x"${ac_cv_c_celibconfig}" = x ; then 5633 as_fn_error $? "Cannot find celib support library directory" "$LINENO" 5 5634 else 5635 no_celib= 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; } 5640 fi 5641 fi 5642 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 5652 ARCH= 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 }; \ 5659 }'` 5660 if test "x${ARCH}" = "x" ; then 5661 ARCH=$TARGETCPU; 5662 fi 5663 fi 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" 5669 fi 5670 fi 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" 5675 fi 5676 fi 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 5682 doWince="no" 5683 else 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}" 5689 fi 5690 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 5691 fi 5692 fi 5693 5694 if test "$GCC" != "yes" ; then 5695 if test "${SHARED_BUILD}" = "0" ; then 5696 runtime=-MT 5697 else 5698 runtime=-MD 5699 fi 5700 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 5712 5713 vars="bufferoverflowU.lib" 5714 for i in $vars; do 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'` 5718 fi 5719 PKG_LIBS="$PKG_LIBS $i" 5720 done 5721 5722 5723 elif test "$doWince" != "no" ; then 5724 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 5725 if test "${TARGETCPU}" = "X86"; then 5726 CC="\"${CEBINROOT}/cl.exe\"" 5727 else 5728 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 5729 fi 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 5736 defs="${defs} _DLL" 5737 fi 5738 for i in $defs ; do 5739 5740cat >>confdefs.h <<_ACEOF 5741#define $i 1 5742_ACEOF 5743 5744 done 5745 5746cat >>confdefs.h <<_ACEOF 5747#define _WIN32_WCE $CEVERSION 5748_ACEOF 5749 5750 5751cat >>confdefs.h <<_ACEOF 5752#define UNDER_CE $CEVERSION 5753_ACEOF 5754 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\"" 5760 5761 else 5762 RC="rc" 5763 lflags="-nologo" 5764 LINKBIN="link" 5765 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 5766 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 5767 fi 5768 fi 5769 5770 if test "$GCC" = "yes"; then 5771 # mingw gcc mode 5772 RC="windres" 5773 CFLAGS_DEBUG="-g" 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}" 5779 else 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' 5784 PATHTYPE=-w 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} 5793 else 5794 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 5795 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 5796 fi 5797 fi 5798 5799 SHLIB_LD_LIBS='${LIBS}' 5800 SHLIB_SUFFIX=".dll" 5801 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 5802 5803 TCL_LIB_VERSIONS_OK=nodots 5804 # Bogus to avoid getting this turned off 5805 DL_OBJS="tclLoadNone.obj" 5806 ;; 5807 AIX-*) 5808 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then 5809 # AIX requires the _r compiler when gcc isn't being used 5810 case "${CC}" in 5811 *_r) 5812 # ok ... 5813 ;; 5814 *) 5815 CC=${CC}_r 5816 ;; 5817 esac 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; } 5820 fi 5821 LIBS="$LIBS -lc" 5822 SHLIB_CFLAGS="" 5823 SHLIB_LD_LIBS='${LIBS}' 5824 SHLIB_SUFFIX=".so" 5825 5826 DL_OBJS="tclLoadDl.o" 5827 LD_LIBRARY_PATH_VAR="LIBPATH" 5828 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;} 5834 else 5835 do64bit_ok=yes 5836 CFLAGS="$CFLAGS -q64" 5837 LDFLAGS_ARCH="-q64" 5838 RANLIB="${RANLIB} -X64" 5839 AR="${AR} -X64" 5840 SHLIB_LD_FLAGS="-b64" 5841 fi 5842 fi 5843 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 5848 DL_LIBS="" 5849 if test "$GCC" = "yes" ; then 5850 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 5851 else 5852 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 5853 fi 5854 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 5855 else 5856 if test "$GCC" = "yes" ; then 5857 SHLIB_LD="gcc -shared" 5858 else 5859 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 5860 fi 5861 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" 5862 DL_LIBS="-ldl" 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' 5867 fi 5868 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" 5874 ;; 5875esac 5876 5877 DL_LIBS="-lld" 5878 fi 5879 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. 5885 # 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 5890 # known GMT value. 5891 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 5893$as_echo_n "checking for gettimeofday in -lbsd... " >&6; } 5894if ${ac_cv_lib_bsd_gettimeofday+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 ac_check_lib_save_LIBS=$LIBS 5898LIBS="-lbsd $LIBS" 5899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5900/* end confdefs.h. */ 5901 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. */ 5905#ifdef __cplusplus 5906extern "C" 5907#endif 5908char gettimeofday (); 5909int 5910main () 5911{ 5912return gettimeofday (); 5913 ; 5914 return 0; 5915} 5916_ACEOF 5917if ac_fn_c_try_link "$LINENO"; then : 5918 ac_cv_lib_bsd_gettimeofday=yes 5919else 5920 ac_cv_lib_bsd_gettimeofday=no 5921fi 5922rm -f core conftest.err conftest.$ac_objext \ 5923 conftest$ac_exeext conftest.$ac_ext 5924LIBS=$ac_check_lib_save_LIBS 5925fi 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 5927$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } 5928if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then : 5929 libbsd=yes 5930else 5931 libbsd=no 5932fi 5933 5934 if test $libbsd = yes; then 5935 MATH_LIBS="$MATH_LIBS -lbsd" 5936 5937$as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h 5938 5939 fi 5940 ;; 5941 BeOS*) 5942 SHLIB_CFLAGS="-fPIC" 5943 SHLIB_LD="${CC} -nostart" 5944 SHLIB_LD_LIBS='${LIBS}' 5945 SHLIB_SUFFIX=".so" 5946 DL_OBJS="tclLoadDl.o" 5947 DL_LIBS="-ldl" 5948 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; } 5956if ${ac_cv_lib_bind_inet_ntoa+:} false; then : 5957 $as_echo_n "(cached) " >&6 5958else 5959 ac_check_lib_save_LIBS=$LIBS 5960LIBS="-lbind $LIBS" 5961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963 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. */ 5967#ifdef __cplusplus 5968extern "C" 5969#endif 5970char inet_ntoa (); 5971int 5972main () 5973{ 5974return inet_ntoa (); 5975 ; 5976 return 0; 5977} 5978_ACEOF 5979if ac_fn_c_try_link "$LINENO"; then : 5980 ac_cv_lib_bind_inet_ntoa=yes 5981else 5982 ac_cv_lib_bind_inet_ntoa=no 5983fi 5984rm -f core conftest.err conftest.$ac_objext \ 5985 conftest$ac_exeext conftest.$ac_ext 5986LIBS=$ac_check_lib_save_LIBS 5987fi 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; } 5990if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : 5991 LIBS="$LIBS -lbind -lsocket" 5992fi 5993 5994 ;; 5995 BSD/OS-2.1*|BSD/OS-3*) 5996 SHLIB_CFLAGS="" 5997 SHLIB_LD="shlicc -r" 5998 SHLIB_LD_LIBS='${LIBS}' 5999 SHLIB_SUFFIX=".so" 6000 DL_OBJS="tclLoadDl.o" 6001 DL_LIBS="-ldl" 6002 CC_SEARCH_FLAGS="" 6003 LD_SEARCH_FLAGS="" 6004 ;; 6005 BSD/OS-4.*) 6006 SHLIB_CFLAGS="-export-dynamic -fPIC" 6007 SHLIB_LD="cc -shared" 6008 SHLIB_LD_LIBS='${LIBS}' 6009 SHLIB_SUFFIX=".so" 6010 DL_OBJS="tclLoadDl.o" 6011 DL_LIBS="-ldl" 6012 LDFLAGS="$LDFLAGS -export-dynamic" 6013 CC_SEARCH_FLAGS="" 6014 LD_SEARCH_FLAGS="" 6015 ;; 6016 dgux*) 6017 SHLIB_CFLAGS="-K PIC" 6018 SHLIB_LD="cc -G" 6019 SHLIB_LD_LIBS="" 6020 SHLIB_SUFFIX=".so" 6021 DL_OBJS="tclLoadDl.o" 6022 DL_LIBS="-ldl" 6023 CC_SEARCH_FLAGS="" 6024 LD_SEARCH_FLAGS="" 6025 ;; 6026 HP-UX-*.11.*) 6027 # Use updated header definitions where possible 6028 6029$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 6030 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 6034 6035 SHLIB_SUFFIX=".sl" 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; } 6038if ${ac_cv_lib_dld_shl_load+:} false; then : 6039 $as_echo_n "(cached) " >&6 6040else 6041 ac_check_lib_save_LIBS=$LIBS 6042LIBS="-ldld $LIBS" 6043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6044/* end confdefs.h. */ 6045 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. */ 6049#ifdef __cplusplus 6050extern "C" 6051#endif 6052char shl_load (); 6053int 6054main () 6055{ 6056return shl_load (); 6057 ; 6058 return 0; 6059} 6060_ACEOF 6061if ac_fn_c_try_link "$LINENO"; then : 6062 ac_cv_lib_dld_shl_load=yes 6063else 6064 ac_cv_lib_dld_shl_load=no 6065fi 6066rm -f core conftest.err conftest.$ac_objext \ 6067 conftest$ac_exeext conftest.$ac_ext 6068LIBS=$ac_check_lib_save_LIBS 6069fi 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; } 6072if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6073 tcl_ok=yes 6074else 6075 tcl_ok=no 6076fi 6077 6078 if test "$tcl_ok" = yes; then 6079 SHLIB_CFLAGS="+z" 6080 SHLIB_LD="ld -b" 6081 SHLIB_LD_LIBS='${LIBS}' 6082 DL_OBJS="tclLoadShl.o" 6083 DL_LIBS="-ldld" 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" 6088 fi 6089 if test "$GCC" = "yes" ; then 6090 SHLIB_LD="gcc -shared" 6091 SHLIB_LD_LIBS='${LIBS}' 6092 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6093 fi 6094 6095 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 6096 #CFLAGS="$CFLAGS +DAportable" 6097 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` 6102 case $hpux_arch in 6103 hppa64*) 6104 # 64-bit gcc in use. Fix flags for GNU ld. 6105 do64bit_ok=yes 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} 6110 ;; 6111 *) 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;} 6114 ;; 6115 esac 6116 else 6117 do64bit_ok=yes 6118 CFLAGS="$CFLAGS +DD64" 6119 LDFLAGS_ARCH="+DD64" 6120 fi 6121 fi 6122 ;; 6123 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 6124 SHLIB_SUFFIX=".sl" 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; } 6127if ${ac_cv_lib_dld_shl_load+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 ac_check_lib_save_LIBS=$LIBS 6131LIBS="-ldld $LIBS" 6132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6133/* end confdefs.h. */ 6134 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. */ 6138#ifdef __cplusplus 6139extern "C" 6140#endif 6141char shl_load (); 6142int 6143main () 6144{ 6145return shl_load (); 6146 ; 6147 return 0; 6148} 6149_ACEOF 6150if ac_fn_c_try_link "$LINENO"; then : 6151 ac_cv_lib_dld_shl_load=yes 6152else 6153 ac_cv_lib_dld_shl_load=no 6154fi 6155rm -f core conftest.err conftest.$ac_objext \ 6156 conftest$ac_exeext conftest.$ac_ext 6157LIBS=$ac_check_lib_save_LIBS 6158fi 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; } 6161if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6162 tcl_ok=yes 6163else 6164 tcl_ok=no 6165fi 6166 6167 if test "$tcl_ok" = yes; then 6168 SHLIB_CFLAGS="+z" 6169 SHLIB_LD="ld -b" 6170 SHLIB_LD_LIBS="" 6171 DL_OBJS="tclLoadShl.o" 6172 DL_LIBS="-ldld" 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" 6177 fi 6178 ;; 6179 IRIX-5.*) 6180 SHLIB_CFLAGS="" 6181 SHLIB_LD="ld -shared -rdata_shared" 6182 SHLIB_LD_LIBS='${LIBS}' 6183 SHLIB_SUFFIX=".so" 6184 DL_OBJS="tclLoadDl.o" 6185 DL_LIBS="" 6186 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6187 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 6188 ;; 6189 IRIX-6.*) 6190 SHLIB_CFLAGS="" 6191 SHLIB_LD="ld -n32 -shared -rdata_shared" 6192 SHLIB_LD_LIBS='${LIBS}' 6193 SHLIB_SUFFIX=".so" 6194 DL_OBJS="tclLoadDl.o" 6195 DL_LIBS="" 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" 6201 else 6202 case $system in 6203 IRIX-6.3) 6204 # Use to build 6.2 compatible binaries on 6.3. 6205 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 6206 ;; 6207 *) 6208 CFLAGS="$CFLAGS -n32" 6209 ;; 6210 esac 6211 LDFLAGS="$LDFLAGS -n32" 6212 fi 6213 ;; 6214 IRIX64-6.*) 6215 SHLIB_CFLAGS="" 6216 SHLIB_LD="ld -n32 -shared -rdata_shared" 6217 SHLIB_LD_LIBS='${LIBS}' 6218 SHLIB_SUFFIX=".so" 6219 DL_OBJS="tclLoadDl.o" 6220 DL_LIBS="" 6221 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 6222 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 6223 6224 # Check to enable 64-bit flags for compiler/linker 6225 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;} 6230 else 6231 do64bit_ok=yes 6232 SHLIB_LD="ld -64 -shared -rdata_shared" 6233 CFLAGS="$CFLAGS -64" 6234 LDFLAGS_ARCH="-64" 6235 fi 6236 fi 6237 ;; 6238 Linux*) 6239 SHLIB_CFLAGS="-fPIC" 6240 SHLIB_LD_LIBS='${LIBS}' 6241 SHLIB_SUFFIX=".so" 6242 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" 6248 6249 SHLIB_LD="${CC} -shared" 6250 DL_OBJS="tclLoadDl.o" 6251 DL_LIBS="-ldl" 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" 6257 fi 6258 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" 6268 fi 6269 6270 ;; 6271 GNU*) 6272 SHLIB_CFLAGS="-fPIC" 6273 SHLIB_LD_LIBS='${LIBS}' 6274 SHLIB_SUFFIX=".so" 6275 6276 SHLIB_LD="${CC} -shared" 6277 DL_OBJS="" 6278 DL_LIBS="-ldl" 6279 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 6280 CC_SEARCH_FLAGS="" 6281 LD_SEARCH_FLAGS="" 6282 if test "`uname -m`" = "alpha" ; then 6283 CFLAGS="$CFLAGS -mieee" 6284 fi 6285 ;; 6286 Lynx*) 6287 SHLIB_CFLAGS="-fPIC" 6288 SHLIB_LD_LIBS='${LIBS}' 6289 SHLIB_SUFFIX=".so" 6290 CFLAGS_OPTIMIZE=-02 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}' 6297 ;; 6298 MP-RAS-02*) 6299 SHLIB_CFLAGS="-K PIC" 6300 SHLIB_LD="cc -G" 6301 SHLIB_LD_LIBS="" 6302 SHLIB_SUFFIX=".so" 6303 DL_OBJS="tclLoadDl.o" 6304 DL_LIBS="-ldl" 6305 CC_SEARCH_FLAGS="" 6306 LD_SEARCH_FLAGS="" 6307 ;; 6308 MP-RAS-*) 6309 SHLIB_CFLAGS="-K PIC" 6310 SHLIB_LD="cc -G" 6311 SHLIB_LD_LIBS="" 6312 SHLIB_SUFFIX=".so" 6313 DL_OBJS="tclLoadDl.o" 6314 DL_LIBS="-ldl" 6315 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6316 CC_SEARCH_FLAGS="" 6317 LD_SEARCH_FLAGS="" 6318 ;; 6319 NetBSD-*|FreeBSD-[1-2].*) 6320 # NetBSD/SPARC needs -fPIC, -fpic will not do. 6321 SHLIB_CFLAGS="-fPIC" 6322 SHLIB_LD="ld -Bshareable -x" 6323 SHLIB_LD_LIBS="" 6324 SHLIB_SUFFIX=".so" 6325 DL_OBJS="tclLoadDl.o" 6326 DL_LIBS="" 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; } 6331if ${tcl_cv_ld_elf+:} false; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336/* end confdefs.h. */ 6337 6338#ifdef __ELF__ 6339 yes 6340#endif 6341 6342_ACEOF 6343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6344 $EGREP "yes" >/dev/null 2>&1; then : 6345 tcl_cv_ld_elf=yes 6346else 6347 tcl_cv_ld_elf=no 6348fi 6349rm -f conftest* 6350 6351fi 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' 6356 else 6357 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 6358 fi 6359 6360 # Ancient FreeBSD doesn't handle version numbers with dots. 6361 6362 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 6363 TCL_LIB_VERSIONS_OK=nodots 6364 ;; 6365 OpenBSD-*) 6366 # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. 6367 case `machine` in 6368 sparc|sparc64) 6369 SHLIB_CFLAGS="-fPIC";; 6370 *) 6371 SHLIB_CFLAGS="-fpic";; 6372 esac 6373 SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" 6374 SHLIB_LD_LIBS='${LIBS}' 6375 SHLIB_SUFFIX=".so" 6376 DL_OBJS="tclLoadDl.o" 6377 DL_LIBS="" 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; } 6383if ${tcl_cv_ld_elf+:} false; then : 6384 $as_echo_n "(cached) " >&6 6385else 6386 6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388/* end confdefs.h. */ 6389 6390#ifdef __ELF__ 6391 yes 6392#endif 6393 6394_ACEOF 6395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6396 $EGREP "yes" >/dev/null 2>&1; then : 6397 tcl_cv_ld_elf=yes 6398else 6399 tcl_cv_ld_elf=no 6400fi 6401rm -f conftest* 6402 6403fi 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 6408 else 6409 LDFLAGS="" 6410 fi 6411 6412 # OpenBSD doesn't do version numbers with dots. 6413 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 6414 TCL_LIB_VERSIONS_OK=nodots 6415 ;; 6416 FreeBSD-*|DragonFly-*) 6417 # FreeBSD 3.* and greater have ELF. 6418 SHLIB_CFLAGS="-fPIC" 6419 SHLIB_LD="ld -Bshareable -x" 6420 SHLIB_LD_LIBS='${LIBS}' 6421 SHLIB_SUFFIX=".so" 6422 DL_OBJS="tclLoadDl.o" 6423 DL_LIBS="" 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" 6432 fi 6433 case $system in 6434 FreeBSD-3.*) 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 6439 ;; 6440 esac 6441 ;; 6442 Darwin-*) 6443 CFLAGS_OPTIMIZE="-Os" 6444 SHLIB_CFLAGS="-fno-common" 6445 if test $do64bit = yes; then 6446 do64bit_ok=yes 6447 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 6448 fi 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; } 6453if ${tcl_cv_ld_single_module+:} false; then : 6454 $as_echo_n "(cached) " >&6 6455else 6456 6457 hold_ldflags=$LDFLAGS 6458 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6460/* end confdefs.h. */ 6461 6462int 6463main () 6464{ 6465int i; 6466 ; 6467 return 0; 6468} 6469_ACEOF 6470if ac_fn_c_try_link "$LINENO"; then : 6471 tcl_cv_ld_single_module=yes 6472else 6473 tcl_cv_ld_single_module=no 6474fi 6475rm -f core conftest.err conftest.$ac_objext \ 6476 conftest$ac_exeext conftest.$ac_ext 6477 LDFLAGS=$hold_ldflags 6478fi 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" 6483 fi 6484 SHLIB_LD_LIBS='${LIBS}' 6485 SHLIB_SUFFIX=".dylib" 6486 DL_OBJS="tclLoadDyld.o" 6487 DL_LIBS="" 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; } 6495if ${tcl_cv_ld_search_paths_first+:} false; then : 6496 $as_echo_n "(cached) " >&6 6497else 6498 6499 hold_ldflags=$LDFLAGS 6500 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6502/* end confdefs.h. */ 6503 6504int 6505main () 6506{ 6507int i; 6508 ; 6509 return 0; 6510} 6511_ACEOF 6512if ac_fn_c_try_link "$LINENO"; then : 6513 tcl_cv_ld_search_paths_first=yes 6514else 6515 tcl_cv_ld_search_paths_first=no 6516fi 6517rm -f core conftest.err conftest.$ac_objext \ 6518 conftest$ac_exeext conftest.$ac_ext 6519 LDFLAGS=$hold_ldflags 6520fi 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" 6525 fi 6526 CC_SEARCH_FLAGS="" 6527 LD_SEARCH_FLAGS="" 6528 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 6529 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'`" 6535 ;; 6536 NEXTSTEP-*) 6537 SHLIB_CFLAGS="" 6538 SHLIB_LD="cc -nostdlib -r" 6539 SHLIB_LD_LIBS="" 6540 SHLIB_SUFFIX=".so" 6541 DL_OBJS="tclLoadNext.o" 6542 DL_LIBS="" 6543 CC_SEARCH_FLAGS="" 6544 LD_SEARCH_FLAGS="" 6545 ;; 6546 OS/390-*) 6547 CFLAGS_OPTIMIZE="" # Optimizer is buggy 6548 6549$as_echo "#define _OE_SOCKETS 1" >>confdefs.h 6550 6551 ;; 6552 OSF1-1.0|OSF1-1.1|OSF1-1.2) 6553 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 6554 SHLIB_CFLAGS="" 6555 # Hack: make package name same as library name 6556 SHLIB_LD='ld -R -export :' 6557 SHLIB_LD_LIBS="" 6558 SHLIB_SUFFIX=".so" 6559 DL_OBJS="tclLoadOSF.o" 6560 DL_LIBS="" 6561 CC_SEARCH_FLAGS="" 6562 LD_SEARCH_FLAGS="" 6563 ;; 6564 OSF1-1.*) 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" 6569 else 6570 SHLIB_LD="ld -non_shared" 6571 fi 6572 SHLIB_LD_LIBS="" 6573 SHLIB_SUFFIX=".so" 6574 DL_OBJS="tclLoadDl.o" 6575 DL_LIBS="" 6576 CC_SEARCH_FLAGS="" 6577 LD_SEARCH_FLAGS="" 6578 ;; 6579 OSF1-V*) 6580 # Digital OSF/1 6581 SHLIB_CFLAGS="" 6582 if test "$SHARED_BUILD" = "1" ; then 6583 SHLIB_LD='ld -shared -expect_unresolved "*"' 6584 else 6585 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 6586 fi 6587 SHLIB_LD_LIBS="" 6588 SHLIB_SUFFIX=".so" 6589 DL_OBJS="tclLoadDl.o" 6590 DL_LIBS="" 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" 6595 else 6596 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 6597 fi 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" 6605 else 6606 CFLAGS="$CFLAGS -pthread" 6607 LDFLAGS="$LDFLAGS -pthread" 6608 fi 6609 fi 6610 6611 ;; 6612 QNX-6*) 6613 # QNX RTP 6614 # This may work for all QNX, but it was only reported for v6. 6615 SHLIB_CFLAGS="-fPIC" 6616 SHLIB_LD="ld -Bshareable -x" 6617 SHLIB_LD_LIBS="" 6618 SHLIB_SUFFIX=".so" 6619 DL_OBJS="tclLoadDl.o" 6620 # dlopen is in -lc on QNX 6621 DL_LIBS="" 6622 CC_SEARCH_FLAGS="" 6623 LD_SEARCH_FLAGS="" 6624 ;; 6625 SCO_SV-3.2*) 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 6628 # below. 6629 if test "$GCC" = "yes" ; then 6630 SHLIB_CFLAGS="-fPIC -melf" 6631 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 6632 else 6633 SHLIB_CFLAGS="-Kpic -belf" 6634 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 6635 fi 6636 SHLIB_LD="ld -G" 6637 SHLIB_LD_LIBS="" 6638 SHLIB_SUFFIX=".so" 6639 DL_OBJS="tclLoadDl.o" 6640 DL_LIBS="" 6641 CC_SEARCH_FLAGS="" 6642 LD_SEARCH_FLAGS="" 6643 ;; 6644 SINIX*5.4*) 6645 SHLIB_CFLAGS="-K PIC" 6646 SHLIB_LD="cc -G" 6647 SHLIB_LD_LIBS="" 6648 SHLIB_SUFFIX=".so" 6649 DL_OBJS="tclLoadDl.o" 6650 DL_LIBS="-ldl" 6651 CC_SEARCH_FLAGS="" 6652 LD_SEARCH_FLAGS="" 6653 ;; 6654 SunOS-4*) 6655 SHLIB_CFLAGS="-PIC" 6656 SHLIB_LD="ld" 6657 SHLIB_LD_LIBS="" 6658 SHLIB_SUFFIX=".so" 6659 DL_OBJS="tclLoadDl.o" 6660 DL_LIBS="-ldl" 6661 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 6662 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6663 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 6668 6669 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1.0' 6670 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 6671 TCL_LIB_VERSIONS_OK=nodots 6672 ;; 6673 SunOS-5.[0-6]) 6674 # Careful to not let 5.10+ fall into this case 6675 6676 # Note: If _REENTRANT isn't defined, then Solaris 6677 # won't define thread-safe library routines. 6678 6679 6680$as_echo "#define _REENTRANT 1" >>confdefs.h 6681 6682 6683$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6684 6685 6686 SHLIB_CFLAGS="-KPIC" 6687 6688 # Note: need the LIBS below, otherwise Tk won't find Tcl's 6689 # symbols when dynamically loaded into tclsh. 6690 6691 SHLIB_LD_LIBS='${LIBS}' 6692 SHLIB_SUFFIX=".so" 6693 DL_OBJS="tclLoadDl.o" 6694 DL_LIBS="-ldl" 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} 6699 else 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} 6703 fi 6704 ;; 6705 SunOS-5*) 6706 # Note: If _REENTRANT isn't defined, then Solaris 6707 # won't define thread-safe library routines. 6708 6709 6710$as_echo "#define _REENTRANT 1" >>confdefs.h 6711 6712 6713$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6714 6715 6716 SHLIB_CFLAGS="-KPIC" 6717 6718 # Check to enable 64-bit flags for compiler/linker 6719 if test "$do64bit" = "yes" ; then 6720 arch=`isainfo` 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;} 6726 else 6727 do64bit_ok=yes 6728 CFLAGS="$CFLAGS -m64 -mcpu=v9" 6729 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 6730 SHLIB_CFLAGS="-fPIC" 6731 fi 6732 else 6733 do64bit_ok=yes 6734 if test "$do64bitVIS" = "yes" ; then 6735 CFLAGS="$CFLAGS -xarch=v9a" 6736 LDFLAGS_ARCH="-xarch=v9a" 6737 else 6738 CFLAGS="$CFLAGS -xarch=v9" 6739 LDFLAGS_ARCH="-xarch=v9" 6740 fi 6741 # Solaris 64 uses this as well 6742 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 6743 fi 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;} 6748 else 6749 do64bit_ok=yes 6750 CFLAGS="$CFLAGS -xarch=amd64" 6751 LDFLAGS="$LDFLAGS -xarch=amd64" 6752 fi 6753 else 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;} 6756 fi 6757 fi 6758 6759 # Note: need the LIBS below, otherwise Tk won't find Tcl's 6760 # symbols when dynamically loaded into tclsh. 6761 6762 SHLIB_LD_LIBS='${LIBS}' 6763 SHLIB_SUFFIX=".so" 6764 DL_OBJS="tclLoadDl.o" 6765 DL_LIBS="-ldl" 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" 6780 fi 6781 else 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}' 6785 fi 6786 ;; 6787 UNIX_SV* | UnixWare-5*) 6788 SHLIB_CFLAGS="-KPIC" 6789 SHLIB_LD="cc -G" 6790 SHLIB_LD_LIBS="" 6791 SHLIB_SUFFIX=".so" 6792 DL_OBJS="tclLoadDl.o" 6793 DL_LIBS="-ldl" 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; } 6798if ${tcl_cv_ld_Bexport+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 6802 hold_ldflags=$LDFLAGS 6803 LDFLAGS="$LDFLAGS -Wl,-Bexport" 6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6805/* end confdefs.h. */ 6806 6807int 6808main () 6809{ 6810int i; 6811 ; 6812 return 0; 6813} 6814_ACEOF 6815if ac_fn_c_try_link "$LINENO"; then : 6816 tcl_cv_ld_Bexport=yes 6817else 6818 tcl_cv_ld_Bexport=no 6819fi 6820rm -f core conftest.err conftest.$ac_objext \ 6821 conftest$ac_exeext conftest.$ac_ext 6822 LDFLAGS=$hold_ldflags 6823fi 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" 6828 fi 6829 CC_SEARCH_FLAGS="" 6830 LD_SEARCH_FLAGS="" 6831 ;; 6832 esac 6833 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;} 6837 fi 6838 6839 # Step 4: disable dynamic loading if requested via a command-line switch. 6840 6841 # Check whether --enable-load was given. 6842if test "${enable_load+set}" = set; then : 6843 enableval=$enable_load; tcl_ok=$enableval 6844else 6845 tcl_ok=yes 6846fi 6847 6848 if test "$tcl_ok" = "no"; then 6849 DL_OBJS="" 6850 fi 6851 6852 if test "x$DL_OBJS" != "x" ; then 6853 BUILD_DLTEST="\$(DLTEST_TARGETS)" 6854 else 6855 echo "Can't figure out how to do dynamic loading or shared libraries" 6856 echo "on this system." 6857 SHLIB_CFLAGS="" 6858 SHLIB_LD="" 6859 SHLIB_SUFFIX="" 6860 DL_OBJS="tclLoadNone.o" 6861 DL_LIBS="" 6862 LDFLAGS="$LDFLAGS_ORIG" 6863 CC_SEARCH_FLAGS="" 6864 LD_SEARCH_FLAGS="" 6865 BUILD_DLTEST="" 6866 fi 6867 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 6868 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. 6872 6873 if test "$DL_OBJS" != "tclLoadNone.o" ; then 6874 if test "$GCC" = "yes" ; then 6875 case $system in 6876 AIX-*) 6877 ;; 6878 BSD/OS*) 6879 ;; 6880 IRIX*) 6881 ;; 6882 NetBSD-*|FreeBSD-*|DragonFly-*) 6883 ;; 6884 Darwin-*) 6885 ;; 6886 SCO_SV-3.2*) 6887 ;; 6888 windows) 6889 ;; 6890 *) 6891 SHLIB_CFLAGS="-fPIC" 6892 ;; 6893 esac 6894 fi 6895 fi 6896 6897 if test "$SHARED_LIB_SUFFIX" = "" ; then 6898 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 6899 fi 6900 if test "$UNSHARED_LIB_SUFFIX" = "" ; then 6901 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 6902 fi 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 # These must be called after we do the basic CFLAGS checks and 6919 # verify any possible 64-bit or similar switches are necessary 6920 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; } 6923 tcl_flags="" 6924 6925 if ${tcl_cv_flag__isoc99_source+:} false; then : 6926 $as_echo_n "(cached) " >&6 6927else 6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6929/* end confdefs.h. */ 6930#include <stdlib.h> 6931int 6932main () 6933{ 6934char *p = (char *)strtoll; char *q = (char *)strtoull; 6935 ; 6936 return 0; 6937} 6938_ACEOF 6939if ac_fn_c_try_compile "$LINENO"; then : 6940 tcl_cv_flag__isoc99_source=no 6941else 6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6943/* end confdefs.h. */ 6944#define _ISOC99_SOURCE 1 6945#include <stdlib.h> 6946int 6947main () 6948{ 6949char *p = (char *)strtoll; char *q = (char *)strtoull; 6950 ; 6951 return 0; 6952} 6953_ACEOF 6954if ac_fn_c_try_compile "$LINENO"; then : 6955 tcl_cv_flag__isoc99_source=yes 6956else 6957 tcl_cv_flag__isoc99_source=no 6958fi 6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6960fi 6961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6962fi 6963 6964 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 6965 6966$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h 6967 6968 tcl_flags="$tcl_flags _ISOC99_SOURCE" 6969 fi 6970 6971 6972 if ${tcl_cv_flag__largefile64_source+:} false; then : 6973 $as_echo_n "(cached) " >&6 6974else 6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6976/* end confdefs.h. */ 6977#include <sys/stat.h> 6978int 6979main () 6980{ 6981struct stat64 buf; int i = stat64("/", &buf); 6982 ; 6983 return 0; 6984} 6985_ACEOF 6986if ac_fn_c_try_compile "$LINENO"; then : 6987 tcl_cv_flag__largefile64_source=no 6988else 6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6990/* end confdefs.h. */ 6991#define _LARGEFILE64_SOURCE 1 6992#include <sys/stat.h> 6993int 6994main () 6995{ 6996struct stat64 buf; int i = stat64("/", &buf); 6997 ; 6998 return 0; 6999} 7000_ACEOF 7001if ac_fn_c_try_compile "$LINENO"; then : 7002 tcl_cv_flag__largefile64_source=yes 7003else 7004 tcl_cv_flag__largefile64_source=no 7005fi 7006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7007fi 7008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7009fi 7010 7011 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 7012 7013$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 7014 7015 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 7016 fi 7017 7018 7019 if ${tcl_cv_flag__largefile_source64+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024#include <sys/stat.h> 7025int 7026main () 7027{ 7028char *p = (char *)open64; 7029 ; 7030 return 0; 7031} 7032_ACEOF 7033if ac_fn_c_try_compile "$LINENO"; then : 7034 tcl_cv_flag__largefile_source64=no 7035else 7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7037/* end confdefs.h. */ 7038#define _LARGEFILE_SOURCE64 1 7039#include <sys/stat.h> 7040int 7041main () 7042{ 7043char *p = (char *)open64; 7044 ; 7045 return 0; 7046} 7047_ACEOF 7048if ac_fn_c_try_compile "$LINENO"; then : 7049 tcl_cv_flag__largefile_source64=yes 7050else 7051 tcl_cv_flag__largefile_source64=no 7052fi 7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7054fi 7055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7056fi 7057 7058 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 7059 7060$as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h 7061 7062 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 7063 fi 7064 7065 if test "x${tcl_flags}" = "x" ; then 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7067$as_echo "none" >&6; } 7068 else 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5 7070$as_echo "${tcl_flags}" >&6; } 7071 fi 7072 7073 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 7078else 7079 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. */ 7084 7085int 7086main () 7087{ 7088__int64 value = (__int64) 0; 7089 ; 7090 return 0; 7091} 7092_ACEOF 7093if ac_fn_c_try_compile "$LINENO"; then : 7094 tcl_type_64bit=__int64 7095else 7096 tcl_type_64bit="long long" 7097fi 7098rm -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. */ 7104 7105int 7106main () 7107{ 7108switch (0) { 7109 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 7110 } 7111 ; 7112 return 0; 7113} 7114_ACEOF 7115if ac_fn_c_try_compile "$LINENO"; then : 7116 tcl_cv_type_64bit=${tcl_type_64bit} 7117fi 7118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7119fi 7120 7121 if test "${tcl_cv_type_64bit}" = none ; then 7122 7123$as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h 7124 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; } 7133 else 7134 7135cat >>confdefs.h <<_ACEOF 7136#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 7137_ACEOF 7138 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5 7140$as_echo "${tcl_cv_type_64bit}" >&6; } 7141 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; } 7145if ${tcl_cv_struct_dirent64+:} false; then : 7146 $as_echo_n "(cached) " >&6 7147else 7148 7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151#include <sys/types.h> 7152#include <sys/dirent.h> 7153int 7154main () 7155{ 7156struct dirent64 p; 7157 ; 7158 return 0; 7159} 7160_ACEOF 7161if ac_fn_c_try_compile "$LINENO"; then : 7162 tcl_cv_struct_dirent64=yes 7163else 7164 tcl_cv_struct_dirent64=no 7165fi 7166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7167fi 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 7171 7172$as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h 7173 7174 fi 7175 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5 7177$as_echo_n "checking for struct stat64... " >&6; } 7178if ${tcl_cv_struct_stat64+:} false; then : 7179 $as_echo_n "(cached) " >&6 7180else 7181 7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7183/* end confdefs.h. */ 7184#include <sys/stat.h> 7185int 7186main () 7187{ 7188struct stat64 p; 7189 7190 ; 7191 return 0; 7192} 7193_ACEOF 7194if ac_fn_c_try_compile "$LINENO"; then : 7195 tcl_cv_struct_stat64=yes 7196else 7197 tcl_cv_struct_stat64=no 7198fi 7199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7200fi 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 7204 7205$as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h 7206 7207 fi 7208 7209 for ac_func in open64 lseek64 7210do : 7211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7212ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7213if 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 7216_ACEOF 7217 7218fi 7219done 7220 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 7225else 7226 7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7228/* end confdefs.h. */ 7229#include <sys/types.h> 7230int 7231main () 7232{ 7233off64_t offset; 7234 7235 ; 7236 return 0; 7237} 7238_ACEOF 7239if ac_fn_c_try_compile "$LINENO"; then : 7240 tcl_cv_type_off64_t=yes 7241else 7242 tcl_cv_type_off64_t=no 7243fi 7244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7245fi 7246 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 7250 7251$as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h 7252 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7254$as_echo "yes" >&6; } 7255 else 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7257$as_echo "no" >&6; } 7258 fi 7259 fi 7260 7261 7262 7263#-------------------------------------------------------------------- 7264# Set the default compiler switches based on the --enable-symbols option. 7265#-------------------------------------------------------------------- 7266 7267 7268 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. 7272if test "${enable_symbols+set}" = set; then : 7273 enableval=$enable_symbols; tcl_ok=$enableval 7274else 7275 tcl_ok=no 7276fi 7277 7278 DBGX="" 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; } 7284 else 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; } 7290 fi 7291 fi 7292 if test "${TEA_PLATFORM}" != "windows" ; then 7293 LDFLAGS_DEFAULT="${LDFLAGS}" 7294 fi 7295 7296 7297 7298 7299 7300 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 7301 7302$as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h 7303 7304 fi 7305 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; } 7310 else 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 7312$as_echo "enabled $tcl_ok debugging" >&6; } 7313 fi 7314 fi 7315 7316 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#-------------------------------------------------------------------- 7323 7324 7325$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h 7326 7327#AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs]) 7328 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#-------------------------------------------------------------------- 7334 7335 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)" 7340 else 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)" 7344 fi 7345 7346 if test "${SHARED_BUILD}" = "1" ; then 7347 MAKE_LIB="${MAKE_SHARED_LIB} " 7348 else 7349 MAKE_LIB="${MAKE_STATIC_LIB} " 7350 fi 7351 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 #-------------------------------------------------------------------- 7357 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}`\"" 7365 fi 7366 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 7367 else 7368 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 7369 fi 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) 7373 RANLIB=: 7374 RANLIB_STUB=: 7375 else 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}" 7381 fi 7382 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 7383 RANLIB=: 7384 else 7385 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 7386 fi 7387 # Some packages build their own stubs libraries 7388 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 7389 fi 7390 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}" 7396 fi 7397 7398 7399 7400 7401 7402 7403 7404 7405LIBMYSQL="" 7406 7407# Check whether --with-mysql-include was given. 7408if test "${with_mysql_include+set}" = set; then : 7409 withval=$with_mysql_include; MYSQL_INC_DIR=$withval 7410else 7411 MYSQL_INC_DIR="/usr/include/mysql" 7412fi 7413 7414 7415# Check whether --with-mysql-lib was given. 7416if test "${with_mysql_lib+set}" = set; then : 7417 withval=$with_mysql_lib; MYSQL_LIB_DIR=$withval 7418else 7419 MYSQL_LIB_DIR="/usr/lib/mysql" 7420fi 7421 7422MYSQL_INCLUDES="-I$MYSQL_INC_DIR" 7423 7424 7425# Check whether --enable-mysqlstatic was given. 7426if test "${enable_mysqlstatic+set}" = set; then : 7427 enableval=$enable_mysqlstatic; tcl_ok=$enableval 7428else 7429 tcl_ok=$1 7430fi 7431 7432 7433if test "$tcl_ok" = "yes"; then 7434 LIBS="${LIBS} ${MYSQL_LIB_DIR}/libmysqlclient.a -lz -lcrypt -lnsl -lm" 7435else 7436 if test ! -f $MSQL_LIB_DIR/libmysqlclient${SHLIB_SUFFIX} -a -f /usr/lib/libmysqlclient${SHLIB_SUFFIX}; then 7437 MYSQL_LIB_DIR=/usr/lib 7438 fi 7439 MYSQL_LIBS="-L$MYSQL_LIB_DIR -lmysqlclient" 7440 if test ! "$MYSQL_LIB_DIR" = ""; then 7441 LIBMYSQL="libmysqclient${SHLIB_SUFFIX}" 7442 fi 7443fi 7444 7445 7446 7447 7448 7449 7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql header" >&5 7451$as_echo_n "checking for mysql header... " >&6; } 7452if 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 7454fi 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; } 7459if 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 7462 fi 7463else 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 7466 fi 7467fi 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7469$as_echo "yes" >&6; } 7470 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#-------------------------------------------------------------------- 7478 7479 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}" 7486 else 7487 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 7488 fi 7489 else 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}" 7493 else 7494 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 7495 fi 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`" 7499 for i in $list ; do 7500 if test -f "$i/${TCLSH_PROG}" ; then 7501 REAL_TCL_BIN_DIR="`cd "$i"; pwd`" 7502 break 7503 fi 7504 done 7505 TCLSH_PROG="${REAL_TCL_BIN_DIR}/${TCLSH_PROG}" 7506 fi 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5 7508$as_echo "${TCLSH_PROG}" >&6; } 7509 7510 7511#TEA_PROG_WISH 7512 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#-------------------------------------------------------------------- 7518 7519ac_config_files="$ac_config_files Makefile pkgIndex.tcl" 7520 7521cat >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. 7527# 7528# config.status only pays attention to the cache file if you give it 7529# the --recheck option to rerun configure. 7530# 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 7533# following values. 7534 7535_ACEOF 7536 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. 7542( 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 7545 case $ac_val in #( 7546 *${as_nl}*) 7547 case $ac_var in #( 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;} ;; 7550 esac 7551 case $ac_var in #( 7552 _ | IFS | as_nl) ;; #( 7553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 7554 *) { eval $ac_var=; unset $ac_var;} ;; 7555 esac ;; 7556 esac 7557 done 7558 7559 (set) 2>&1 | 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 \. 7564 sed -n \ 7565 "s/'/'\\\\''/g; 7566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7567 ;; #( 7568 *) 7569 # `set' quotes correctly as required by POSIX, so do not add quotes. 7570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 7571 ;; 7572 esac | 7573 sort 7574) | 7575 sed ' 7576 /^ac_cv_env_/b end 7577 t clear 7578 :clear 7579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7580 t end 7581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7582 :end' >>confcache 7583if 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" 7590 else 7591 case $cache_file in #( 7592 */* | ?:*) 7593 mv -f confcache "$cache_file"$$ && 7594 mv -f "$cache_file"$$ "$cache_file" ;; #( 7595 *) 7596 mv -f confcache "$cache_file" ;; 7597 esac 7598 fi 7599 fi 7600 else 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;} 7603 fi 7604fi 7605rm -f confcache 7606 7607test "x$prefix" = xNONE && prefix=$ac_default_prefix 7608# Let make expand exec_prefix. 7609test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 7610 7611# Transform confdefs.h into DEFS. 7612# Protect against shell expansion while executing Makefile rules. 7613# Protect against Makefile macro expansion. 7614# 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. 7618ac_script=' 7619:mline 7620/\\$/{ 7621 N 7622 s,\\\n,, 7623 b mline 7624} 7625t clear 7626:clear 7627s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 7628t quote 7629s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 7630t quote 7631b any 7632:quote 7633s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 7634s/\[/\\&/g 7635s/\]/\\&/g 7636s/\$/$$/g 7637H 7638:any 7639${ 7640 g 7641 s/^\n// 7642 s/\n/ /g 7643 p 7644} 7645' 7646DEFS=`sed -n "$ac_script" confdefs.h` 7647 7648 7649ac_libobjs= 7650ac_ltlibobjs= 7651U= 7652for 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' 7660done 7661LIBOBJS=$ac_libobjs 7662 7663LTLIBOBJS=$ac_ltlibobjs 7664 7665 7666 7667 7668: "${CONFIG_STATUS=./config.status}" 7669ac_write_fail=0 7670ac_clean_files_save=$ac_clean_files 7671ac_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;} 7674as_write_fail=0 7675cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 7676#! $SHELL 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. 7681 7682debug=false 7683ac_cs_recheck=false 7684ac_cs_silent=false 7685 7686SHELL=\${CONFIG_SHELL-$SHELL} 7687export SHELL 7688_ASEOF 7689cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 7690## -------------------- ## 7691## M4sh Initialization. ## 7692## -------------------- ## 7693 7694# Be more Bourne compatible 7695DUALCASE=1; export DUALCASE # for MKS sh 7696if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 7697 emulate sh 7698 NULLCMD=: 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 7703else 7704 case `(set -o) 2>/dev/null` in #( 7705 *posix*) : 7706 set -o posix ;; #( 7707 *) : 7708 ;; 7709esac 7710fi 7711 7712 7713as_nl=' 7714' 7715export as_nl 7716# Printing a long string crashes Solaris 7 /usr/bin/printf. 7717as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7718as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 7719as_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. 7722if 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 --' 7726elif (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' 7729else 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' 7733 else 7734 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 7735 as_echo_n_body='eval 7736 arg=$1; 7737 case $arg in #( 7738 *"$as_nl"*) 7739 expr "X$arg" : "X\\(.*\\)$as_nl"; 7740 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 7741 esac; 7742 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 7743 ' 7744 export as_echo_n_body 7745 as_echo_n='sh -c $as_echo_n_body as_echo' 7746 fi 7747 export as_echo_body 7748 as_echo='sh -c $as_echo_body as_echo' 7749fi 7750 7751# The user is always right. 7752if test "${PATH_SEPARATOR+set}" != set; then 7753 PATH_SEPARATOR=: 7754 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 7755 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 7756 PATH_SEPARATOR=';' 7757 } 7758fi 7759 7760 7761# IFS 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.) 7766IFS=" "" $as_nl" 7767 7768# Find who we are. Look in the path if we contain no directory separator. 7769as_myself= 7770case $0 in #(( 7771 *[\\/]* ) as_myself=$0 ;; 7772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7773for as_dir in $PATH 7774do 7775 IFS=$as_save_IFS 7776 test -z "$as_dir" && as_dir=. 7777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7778 done 7779IFS=$as_save_IFS 7780 7781 ;; 7782esac 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. 7785if test "x$as_myself" = x; then 7786 as_myself=$0 7787fi 7788if test ! -f "$as_myself"; then 7789 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 7790 exit 1 7791fi 7792 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. 7797for as_var in BASH_ENV ENV MAIL MAILPATH 7798do eval test x\${$as_var+set} = xset \ 7799 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 7800done 7801PS1='$ ' 7802PS2='> ' 7803PS4='+ ' 7804 7805# NLS nuisances. 7806LC_ALL=C 7807export LC_ALL 7808LANGUAGE=C 7809export LANGUAGE 7810 7811# CDPATH. 7812(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 7813 7814 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. 7820as_fn_error () 7821{ 7822 as_status=$1; test $as_status -eq 0 && as_status=1 7823 if test "$4"; then 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 7826 fi 7827 $as_echo "$as_me: error: $2" >&2 7828 as_fn_exit $as_status 7829} # as_fn_error 7830 7831 7832# as_fn_set_status STATUS 7833# ----------------------- 7834# Set $? to STATUS, without forking. 7835as_fn_set_status () 7836{ 7837 return $1 7838} # as_fn_set_status 7839 7840# as_fn_exit STATUS 7841# ----------------- 7842# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7843as_fn_exit () 7844{ 7845 set +e 7846 as_fn_set_status $1 7847 exit $1 7848} # as_fn_exit 7849 7850# as_fn_unset VAR 7851# --------------- 7852# Portably unset VAR. 7853as_fn_unset () 7854{ 7855 { eval $1=; unset $1;} 7856} 7857as_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 7863# implementations. 7864if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7865 eval 'as_fn_append () 7866 { 7867 eval $1+=\$2 7868 }' 7869else 7870 as_fn_append () 7871 { 7872 eval $1=\$$1\$2 7873 } 7874fi # as_fn_append 7875 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. 7881if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7882 eval 'as_fn_arith () 7883 { 7884 as_val=$(( $* )) 7885 }' 7886else 7887 as_fn_arith () 7888 { 7889 as_val=`expr "$@" || test $? -eq 1` 7890 } 7891fi # as_fn_arith 7892 7893 7894if expr a : '\(a\)' >/dev/null 2>&1 && 7895 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7896 as_expr=expr 7897else 7898 as_expr=false 7899fi 7900 7901if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7902 as_basename=basename 7903else 7904 as_basename=false 7905fi 7906 7907if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7908 as_dirname=dirname 7909else 7910 as_dirname=false 7911fi 7912 7913as_me=`$as_basename -- "$0" || 7914$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7915 X"$0" : 'X\(//\)$' \| \ 7916 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7917$as_echo X/"$0" | 7918 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7919 s//\1/ 7920 q 7921 } 7922 /^X\/\(\/\/\)$/{ 7923 s//\1/ 7924 q 7925 } 7926 /^X\/\(\/\).*/{ 7927 s//\1/ 7928 q 7929 } 7930 s/.*/./; q'` 7931 7932# Avoid depending upon Character Ranges. 7933as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7934as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7935as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7936as_cr_digits='0123456789' 7937as_cr_alnum=$as_cr_Letters$as_cr_digits 7938 7939ECHO_C= ECHO_N= ECHO_T= 7940case `echo -n x` in #((((( 7941-n*) 7942 case `echo 'xy\c'` in 7943 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7944 xy) ECHO_C='\c';; 7945 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7946 ECHO_T=' ';; 7947 esac;; 7948*) 7949 ECHO_N='-n';; 7950esac 7951 7952rm -f conf$$ conf$$.exe conf$$.file 7953if test -d conf$$.dir; then 7954 rm -f conf$$.dir/conf$$.file 7955else 7956 rm -f conf$$.dir 7957 mkdir conf$$.dir 2>/dev/null 7958fi 7959if (echo >conf$$.file) 2>/dev/null; then 7960 if ln -s conf$$.file conf$$ 2>/dev/null; then 7961 as_ln_s='ln -s' 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 || 7967 as_ln_s='cp -p' 7968 elif ln conf$$.file conf$$ 2>/dev/null; then 7969 as_ln_s=ln 7970 else 7971 as_ln_s='cp -p' 7972 fi 7973else 7974 as_ln_s='cp -p' 7975fi 7976rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7977rmdir conf$$.dir 2>/dev/null 7978 7979 7980# as_fn_mkdir_p 7981# ------------- 7982# Create "$as_dir" as a directory, including parents if necessary. 7983as_fn_mkdir_p () 7984{ 7985 7986 case $as_dir in #( 7987 -*) as_dir=./$as_dir;; 7988 esac 7989 test -d "$as_dir" || eval $as_mkdir_p || { 7990 as_dirs= 7991 while :; do 7992 case $as_dir in #( 7993 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7994 *) as_qdir=$as_dir;; 7995 esac 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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8004 s//\1/ 8005 q 8006 } 8007 /^X\(\/\/\)[^/].*/{ 8008 s//\1/ 8009 q 8010 } 8011 /^X\(\/\/\)$/{ 8012 s//\1/ 8013 q 8014 } 8015 /^X\(\/\).*/{ 8016 s//\1/ 8017 q 8018 } 8019 s/.*/./; q'` 8020 test -d "$as_dir" && break 8021 done 8022 test -z "$as_dirs" || eval "mkdir $as_dirs" 8023 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 8024 8025 8026} # as_fn_mkdir_p 8027if mkdir -p . 2>/dev/null; then 8028 as_mkdir_p='mkdir -p "$as_dir"' 8029else 8030 test -d ./-p && rmdir ./-p 8031 as_mkdir_p=false 8032fi 8033 8034if test -x / >/dev/null 2>&1; then 8035 as_test_x='test -x' 8036else 8037 if ls -dL / >/dev/null 2>&1; then 8038 as_ls_L_option=L 8039 else 8040 as_ls_L_option= 8041 fi 8042 as_test_x=' 8043 eval sh -c '\'' 8044 if test -d "$1"; then 8045 test -d "$1/."; 8046 else 8047 case $1 in #( 8048 -*)set "./$1";; 8049 esac; 8050 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 8051 ???[sx]*):;;*)false;;esac;fi 8052 '\'' sh 8053 ' 8054fi 8055as_executable_p=$as_test_x 8056 8057# Sed expression to map a string onto a valid CPP name. 8058as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8059 8060# Sed expression to map a string onto a valid variable name. 8061as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8062 8063 8064exec 6>&1 8065## ----------------------------------- ## 8066## Main body of $CONFIG_STATUS script. ## 8067## ----------------------------------- ## 8068_ASEOF 8069test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8070 8071cat >>$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. 8075ac_log=" 8076This file was extended by mysqltcl $as_me 3.052, which was 8077generated by GNU Autoconf 2.68. Invocation command line was 8078 8079 CONFIG_FILES = $CONFIG_FILES 8080 CONFIG_HEADERS = $CONFIG_HEADERS 8081 CONFIG_LINKS = $CONFIG_LINKS 8082 CONFIG_COMMANDS = $CONFIG_COMMANDS 8083 $ $0 $@ 8084 8085on `(hostname || uname -n) 2>/dev/null | sed 1q` 8086" 8087 8088_ACEOF 8089 8090case $ac_config_files in *" 8091"*) set x $ac_config_files; shift; ac_config_files=$*;; 8092esac 8093 8094 8095 8096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8097# Files that config.status was made for. 8098config_files="$ac_config_files" 8099 8100_ACEOF 8101 8102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8103ac_cs_usage="\ 8104\`$as_me' instantiates files and other configuration actions 8105from templates according to the current configuration. Unless the files 8106and actions are specified as TAGs, all are instantiated by default. 8107 8108Usage: $0 [OPTION]... [TAG]... 8109 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 8119 8120Configuration files: 8121$config_files 8122 8123Report bugs to the package provider." 8124 8125_ACEOF 8126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8127ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8128ac_cs_version="\\ 8129mysqltcl config.status 3.052 8130configured by $0, generated by GNU Autoconf 2.68, 8131 with options \\"\$ac_cs_config\\" 8132 8133Copyright (C) 2010 Free Software Foundation, Inc. 8134This config.status script is free software; the Free Software Foundation 8135gives unlimited permission to copy, distribute and modify it." 8136 8137ac_pwd='$ac_pwd' 8138srcdir='$srcdir' 8139INSTALL='$INSTALL' 8140test -n "\$AWK" || AWK=awk 8141_ACEOF 8142 8143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8144# The default lists apply if the user does not specify any file. 8145ac_need_defaults=: 8146while test $# != 0 8147do 8148 case $1 in 8149 --*=?*) 8150 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8152 ac_shift=: 8153 ;; 8154 --*=) 8155 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8156 ac_optarg= 8157 ac_shift=: 8158 ;; 8159 *) 8160 ac_option=$1 8161 ac_optarg=$2 8162 ac_shift=shift 8163 ;; 8164 esac 8165 8166 case $ac_option in 8167 # Handling of the options. 8168 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8169 ac_cs_recheck=: ;; 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 ) 8175 debug=: ;; 8176 --file | --fil | --fi | --f ) 8177 $ac_shift 8178 case $ac_optarg in 8179 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8180 '') as_fn_error $? "missing file argument" ;; 8181 esac 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) 8188 ac_cs_silent=: ;; 8189 8190 # This is an error. 8191 -*) as_fn_error $? "unrecognized option: \`$1' 8192Try \`$0 --help' for more information." ;; 8193 8194 *) as_fn_append ac_config_targets " $1" 8195 ac_need_defaults=false ;; 8196 8197 esac 8198 shift 8199done 8200 8201ac_configure_extra_args= 8202 8203if $ac_cs_silent; then 8204 exec 6>/dev/null 8205 ac_configure_extra_args="$ac_configure_extra_args --silent" 8206fi 8207 8208_ACEOF 8209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8210if \$ac_cs_recheck; then 8211 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8212 shift 8213 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8214 CONFIG_SHELL='$SHELL' 8215 export CONFIG_SHELL 8216 exec "\$@" 8217fi 8218 8219_ACEOF 8220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8221exec 5>>config.log 8222{ 8223 echo 8224 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8225## Running $as_me. ## 8226_ASBOX 8227 $as_echo "$ac_log" 8228} >&5 8229 8230_ACEOF 8231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8232_ACEOF 8233 8234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8235 8236# Handling of arguments. 8237for ac_config_target in $ac_config_targets 8238do 8239 case $ac_config_target in 8240 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8241 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 8242 8243 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8244 esac 8245done 8246 8247 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. 8252if $ac_need_defaults; then 8253 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8254fi 8255 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'. 8262$debug || 8263{ 8264 tmp= ac_tmp= 8265 trap 'exit_status=$? 8266 : "${ac_tmp:=$tmp}" 8267 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 8268' 0 8269 trap 'as_fn_exit 1' 1 2 13 15 8270} 8271# Create a (secure) tmp directory for tmp files. 8272 8273{ 8274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8275 test -d "$tmp" 8276} || 8277{ 8278 tmp=./conf$$-$RANDOM 8279 (umask 077 && mkdir "$tmp") 8280} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8281ac_tmp=$tmp 8282 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'. 8286if test -n "$CONFIG_FILES"; then 8287 8288 8289ac_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. 8293if test "x$ac_cr" = x; then 8294 eval ac_cr=\$\'\\r\' 8295fi 8296ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 8297if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 8298 ac_cs_awk_cr='\\r' 8299else 8300 ac_cs_awk_cr=$ac_cr 8301fi 8302 8303echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 8304_ACEOF 8305 8306 8307{ 8308 echo "cat >conf$$subs.awk <<_ACEOF" && 8309 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 8310 echo "_ACEOF" 8311} >conf$$subs.sh || 8312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8313ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 8314ac_delim='%!_!# ' 8315for 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 8318 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 8321 break 8322 elif $ac_last_try; then 8323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8324 else 8325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8326 fi 8327done 8328rm -f conf$$subs.sh 8329 8330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8331cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 8332_ACEOF 8333sed -n ' 8334h 8335s/^/S["/; s/!.*/"]=/ 8336p 8337g 8338s/^[^!]*!// 8339:repl 8340t repl 8341s/'"$ac_delim"'$// 8342t delim 8343:nl 8344h 8345s/\(.\{148\}\)..*/\1/ 8346t more1 8347s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 8348p 8349n 8350b repl 8351:more1 8352s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8353p 8354g 8355s/.\{148\}// 8356t nl 8357:delim 8358h 8359s/\(.\{148\}\)..*/\1/ 8360t more2 8361s/["\\]/\\&/g; s/^/"/; s/$/"/ 8362p 8363b 8364:more2 8365s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8366p 8367g 8368s/.\{148\}// 8369t delim 8370' <conf$$subs.awk | sed ' 8371/^[^""]/{ 8372 N 8373 s/\n// 8374} 8375' >>$CONFIG_STATUS || ac_write_fail=1 8376rm -f conf$$subs.awk 8377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8378_ACAWK 8379cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 8380 for (key in S) S_is_set[key] = 1 8381 FS = "" 8382 8383} 8384{ 8385 line = $ 0 8386 nfields = split(line, field, "@") 8387 substed = 0 8388 len = length(field[1]) 8389 for (i = 2; i < nfields; i++) { 8390 key = field[i] 8391 keylen = length(key) 8392 if (S_is_set[key]) { 8393 value = S[key] 8394 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 8395 len += length(value) + length(field[++i]) 8396 substed = 1 8397 } else 8398 len += 1 + keylen 8399 } 8400 8401 print line 8402} 8403 8404_ACAWK 8405_ACEOF 8406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8407if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8408 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8409else 8410 cat 8411fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 8412 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8413_ACEOF 8414 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). 8419if test "x$srcdir" = x.; then 8420 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 8421h 8422s/// 8423s/^/:/ 8424s/[ ]*$/:/ 8425s/:\$(srcdir):/:/g 8426s/:\${srcdir}:/:/g 8427s/:@srcdir@:/:/g 8428s/^:*// 8429s/:*$// 8430x 8431s/\(=[ ]*\).*/\1/ 8432G 8433s/\n// 8434s/^[^=]*=[ ]*$// 8435}' 8436fi 8437 8438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8439fi # test -n "$CONFIG_FILES" 8440 8441 8442eval set X " :F $CONFIG_FILES " 8443shift 8444for ac_tag 8445do 8446 case $ac_tag in 8447 :[FHLC]) ac_mode=$ac_tag; continue;; 8448 esac 8449 case $ac_mode$ac_tag in 8450 :[FHL]*:*);; 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;; 8454 esac 8455 ac_save_IFS=$IFS 8456 IFS=: 8457 set x $ac_tag 8458 IFS=$ac_save_IFS 8459 shift 8460 ac_file=$1 8461 shift 8462 8463 case $ac_mode in 8464 :L) ac_source=$1;; 8465 :[FH]) 8466 ac_file_inputs= 8467 for ac_f 8468 do 8469 case $ac_f 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 `:'. 8474 test -f "$ac_f" || 8475 case $ac_f in 8476 [\\/$]*) false;; 8477 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8478 esac || 8479 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 8480 esac 8481 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 8482 as_fn_append ac_file_inputs " '$ac_f'" 8483 done 8484 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' 8490 `' by configure.' 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;} 8495 fi 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;; 8502 esac 8503 8504 case $ac_tag in 8505 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 8506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 8507 esac 8508 ;; 8509 esac 8510 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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8518 s//\1/ 8519 q 8520 } 8521 /^X\(\/\/\)[^/].*/{ 8522 s//\1/ 8523 q 8524 } 8525 /^X\(\/\/\)$/{ 8526 s//\1/ 8527 q 8528 } 8529 /^X\(\/\).*/{ 8530 s//\1/ 8531 q 8532 } 8533 s/.*/./; q'` 8534 as_dir="$ac_dir"; as_fn_mkdir_p 8535 ac_builddir=. 8536 8537case "$ac_dir" in 8538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8539*) 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/ ;; 8546 esac ;; 8547esac 8548ac_abs_top_builddir=$ac_pwd 8549ac_abs_builddir=$ac_pwd$ac_dir_suffix 8550# for backward compatibility: 8551ac_top_builddir=$ac_top_build_prefix 8552 8553case $srcdir in 8554 .) # We are building in place. 8555 ac_srcdir=. 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 ;; 8562 *) # Relative name. 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 ;; 8566esac 8567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8568 8569 8570 case $ac_mode in 8571 :F) 8572 # 8573 # CONFIG_FILE 8574 # 8575 8576 case $INSTALL in 8577 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8578 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 8579 esac 8580_ACEOF 8581 8582cat >>$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. 8585ac_datarootdir_hack=; ac_datarootdir_seen= 8586ac_sed_dataroot=' 8587/datarootdir/ { 8588 p 8589 q 8590} 8591/@datadir@/p 8592/@docdir@/p 8593/@infodir@/p 8594/@localedir@/p 8595/@mandir@/p' 8596case `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;} 8601_ACEOF 8602cat >>$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' ;; 8610esac 8611_ACEOF 8612 8613# Neutralize VPATH when `$srcdir' = `.'. 8614# Shell code in configure.ac might set extrasub. 8615# FIXME: do we really want to maintain this feature? 8616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8617ac_sed_extra="$ac_vpsub 8618$extrasub 8619_ACEOF 8620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8621:t 8622/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8623s|@configure_input@|$ac_sed_conf_input|;t t 8624s&@top_builddir@&$ac_top_builddir_sub&;t t 8625s&@top_build_prefix@&$ac_top_build_prefix&;t t 8626s&@srcdir@&$ac_srcdir&;t t 8627s&@abs_srcdir@&$ac_abs_srcdir&;t t 8628s&@top_srcdir@&$ac_top_srcdir&;t t 8629s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8630s&@builddir@&$ac_builddir&;t t 8631s&@abs_builddir@&$ac_abs_builddir&;t t 8632s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8633s&@INSTALL@&$ac_INSTALL&;t t 8634$ac_datarootdir_hack 8635" 8636eval 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 8638 8639test -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' 8644which 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' 8646which seems to be undefined. Please make sure it is defined" >&2;} 8647 8648 rm -f "$ac_tmp/stdin" 8649 case $ac_file in 8650 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 8651 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 8652 esac \ 8653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 8654 ;; 8655 8656 8657 8658 esac 8659 8660done # for ac_tag 8661 8662 8663as_fn_exit 0 8664_ACEOF 8665ac_clean_files=$ac_clean_files_save 8666 8667test $ac_write_fail = 0 || 8668 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8669 8670 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. 8679if test "$no_create" != yes; then 8680 ac_cs_success=: 8681 ac_config_status_args= 8682 test "$silent" = yes && 8683 ac_config_status_args="$ac_config_status_args --quiet" 8684 exec 5>/dev/null 8685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8686 exec 5>>config.log 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 8690fi 8691if 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;} 8694fi 8695 8696