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