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