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