1#! /bin/sh 2# From configure.in Id: configure.in. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for tbcload 1.7. 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be more Bourne compatible 15DUALCASE=1; export DUALCASE # for MKS sh 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in 25 *posix*) set -o posix ;; 26esac 27 28fi 29 30 31 32 33# PATH needs CR 34# Avoid depending upon Character Ranges. 35as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37as_cr_Letters=$as_cr_letters$as_cr_LETTERS 38as_cr_digits='0123456789' 39as_cr_alnum=$as_cr_Letters$as_cr_digits 40 41# The user is always right. 42if test "${PATH_SEPARATOR+set}" != set; then 43 echo "#! /bin/sh" >conf$$.sh 44 echo "exit 0" >>conf$$.sh 45 chmod +x conf$$.sh 46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 47 PATH_SEPARATOR=';' 48 else 49 PATH_SEPARATOR=: 50 fi 51 rm -f conf$$.sh 52fi 53 54# Support unset when possible. 55if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 56 as_unset=unset 57else 58 as_unset=false 59fi 60 61 62# IFS 63# We need space, tab and new line, in precisely that order. Quoting is 64# there to prevent editors from complaining about space-tab. 65# (If _AS_PATH_WALK were called with IFS unset, it would disable word 66# splitting by setting IFS to empty value.) 67as_nl=' 68' 69IFS=" "" $as_nl" 70 71# Find who we are. Look in the path if we contain no directory separator. 72case $0 in 73 *[\\/]* ) as_myself=$0 ;; 74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75for as_dir in $PATH 76do 77 IFS=$as_save_IFS 78 test -z "$as_dir" && as_dir=. 79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 80done 81IFS=$as_save_IFS 82 83 ;; 84esac 85# We did not find ourselves, most probably we were run as `sh COMMAND' 86# in which case we are not to be found in the path. 87if test "x$as_myself" = x; then 88 as_myself=$0 89fi 90if test ! -f "$as_myself"; then 91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 92 { (exit 1); exit 1; } 93fi 94 95# Work around bugs in pre-3.0 UWIN ksh. 96for as_var in ENV MAIL MAILPATH 97do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 98done 99PS1='$ ' 100PS2='> ' 101PS4='+ ' 102 103# NLS nuisances. 104for as_var in \ 105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 107 LC_TELEPHONE LC_TIME 108do 109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 110 eval $as_var=C; export $as_var 111 else 112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 113 fi 114done 115 116# Required to use basename. 117if expr a : '\(a\)' >/dev/null 2>&1 && 118 test "X`expr 00001 : '.*\(...\)'`" = X001; then 119 as_expr=expr 120else 121 as_expr=false 122fi 123 124if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 125 as_basename=basename 126else 127 as_basename=false 128fi 129 130 131# Name of the executable. 132as_me=`$as_basename -- "$0" || 133$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 134 X"$0" : 'X\(//\)$' \| \ 135 X"$0" : 'X\(/\)' \| . 2>/dev/null || 136echo X/"$0" | 137 sed '/^.*\/\([^/][^/]*\)\/*$/{ 138 s//\1/ 139 q 140 } 141 /^X\/\(\/\/\)$/{ 142 s//\1/ 143 q 144 } 145 /^X\/\(\/\).*/{ 146 s//\1/ 147 q 148 } 149 s/.*/./; q'` 150 151# CDPATH. 152$as_unset CDPATH 153 154 155if test "x$CONFIG_SHELL" = x; then 156 if (eval ":") 2>/dev/null; then 157 as_have_required=yes 158else 159 as_have_required=no 160fi 161 162 if test $as_have_required = yes && (eval ": 163(as_func_return () { 164 (exit \$1) 165} 166as_func_success () { 167 as_func_return 0 168} 169as_func_failure () { 170 as_func_return 1 171} 172as_func_ret_success () { 173 return 0 174} 175as_func_ret_failure () { 176 return 1 177} 178 179exitcode=0 180if as_func_success; then 181 : 182else 183 exitcode=1 184 echo as_func_success failed. 185fi 186 187if as_func_failure; then 188 exitcode=1 189 echo as_func_failure succeeded. 190fi 191 192if as_func_ret_success; then 193 : 194else 195 exitcode=1 196 echo as_func_ret_success failed. 197fi 198 199if as_func_ret_failure; then 200 exitcode=1 201 echo as_func_ret_failure succeeded. 202fi 203 204if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 205 : 206else 207 exitcode=1 208 echo positional parameters were not saved. 209fi 210 211test \$exitcode = 0) || { (exit 1); exit 1; } 212 213( 214 as_lineno_1=\$LINENO 215 as_lineno_2=\$LINENO 216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 218") 2> /dev/null; then 219 : 220else 221 as_candidate_shells= 222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 224do 225 IFS=$as_save_IFS 226 test -z "$as_dir" && as_dir=. 227 case $as_dir in 228 /*) 229 for as_base in sh bash ksh sh5; do 230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 231 done;; 232 esac 233done 234IFS=$as_save_IFS 235 236 237 for as_shell in $as_candidate_shells $SHELL; do 238 # Try only shells that exist, to save several forks. 239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 240 { ("$as_shell") 2> /dev/null <<\_ASEOF 241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248else 249 case `(set -o) 2>/dev/null` in 250 *posix*) set -o posix ;; 251esac 252 253fi 254 255 256: 257_ASEOF 258}; then 259 CONFIG_SHELL=$as_shell 260 as_have_required=yes 261 if { "$as_shell" 2> /dev/null <<\_ASEOF 262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 263 emulate sh 264 NULLCMD=: 265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 266 # is contrary to our usage. Disable this feature. 267 alias -g '${1+"$@"}'='"$@"' 268 setopt NO_GLOB_SUBST 269else 270 case `(set -o) 2>/dev/null` in 271 *posix*) set -o posix ;; 272esac 273 274fi 275 276 277: 278(as_func_return () { 279 (exit $1) 280} 281as_func_success () { 282 as_func_return 0 283} 284as_func_failure () { 285 as_func_return 1 286} 287as_func_ret_success () { 288 return 0 289} 290as_func_ret_failure () { 291 return 1 292} 293 294exitcode=0 295if as_func_success; then 296 : 297else 298 exitcode=1 299 echo as_func_success failed. 300fi 301 302if as_func_failure; then 303 exitcode=1 304 echo as_func_failure succeeded. 305fi 306 307if as_func_ret_success; then 308 : 309else 310 exitcode=1 311 echo as_func_ret_success failed. 312fi 313 314if as_func_ret_failure; then 315 exitcode=1 316 echo as_func_ret_failure succeeded. 317fi 318 319if ( set x; as_func_ret_success y && test x = "$1" ); then 320 : 321else 322 exitcode=1 323 echo positional parameters were not saved. 324fi 325 326test $exitcode = 0) || { (exit 1); exit 1; } 327 328( 329 as_lineno_1=$LINENO 330 as_lineno_2=$LINENO 331 test "x$as_lineno_1" != "x$as_lineno_2" && 332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 333 334_ASEOF 335}; then 336 break 337fi 338 339fi 340 341 done 342 343 if test "x$CONFIG_SHELL" != x; then 344 for as_var in BASH_ENV ENV 345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 346 done 347 export CONFIG_SHELL 348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 349fi 350 351 352 if test $as_have_required = no; then 353 echo This script requires a shell more modern than all the 354 echo shells that I found on your system. Please install a 355 echo modern shell, or manually run the script under such a 356 echo shell if you do have one. 357 { (exit 1); exit 1; } 358fi 359 360 361fi 362 363fi 364 365 366 367(eval "as_func_return () { 368 (exit \$1) 369} 370as_func_success () { 371 as_func_return 0 372} 373as_func_failure () { 374 as_func_return 1 375} 376as_func_ret_success () { 377 return 0 378} 379as_func_ret_failure () { 380 return 1 381} 382 383exitcode=0 384if as_func_success; then 385 : 386else 387 exitcode=1 388 echo as_func_success failed. 389fi 390 391if as_func_failure; then 392 exitcode=1 393 echo as_func_failure succeeded. 394fi 395 396if as_func_ret_success; then 397 : 398else 399 exitcode=1 400 echo as_func_ret_success failed. 401fi 402 403if as_func_ret_failure; then 404 exitcode=1 405 echo as_func_ret_failure succeeded. 406fi 407 408if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 409 : 410else 411 exitcode=1 412 echo positional parameters were not saved. 413fi 414 415test \$exitcode = 0") || { 416 echo No shell found that supports shell functions. 417 echo Please tell autoconf@gnu.org about your system, 418 echo including any error possibly output before this 419 echo message 420} 421 422 423 424 as_lineno_1=$LINENO 425 as_lineno_2=$LINENO 426 test "x$as_lineno_1" != "x$as_lineno_2" && 427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 428 429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 430 # uniformly replaced by the line number. The first 'sed' inserts a 431 # line-number line after each line using $LINENO; the second 'sed' 432 # does the real work. The second script uses 'N' to pair each 433 # line-number line with the line containing $LINENO, and appends 434 # trailing '-' during substitution so that $LINENO is not a special 435 # case at line end. 436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 437 # scripts with optimization help from Paolo Bonzini. Blame Lee 438 # E. McMahon (1931-1989) for sed's syntax. :-) 439 sed -n ' 440 p 441 /[$]LINENO/= 442 ' <$as_myself | 443 sed ' 444 s/[$]LINENO.*/&-/ 445 t lineno 446 b 447 :lineno 448 N 449 :loop 450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 451 t loop 452 s/-\n.*// 453 ' >$as_me.lineno && 454 chmod +x "$as_me.lineno" || 455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 456 { (exit 1); exit 1; }; } 457 458 # Don't try to exec as it changes $[0], causing all sort of problems 459 # (the dirname of $[0] is not the place where we might find the 460 # original and so on. Autoconf is especially sensitive to this). 461 . "./$as_me.lineno" 462 # Exit status is that of the last command. 463 exit 464} 465 466 467if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 468 as_dirname=dirname 469else 470 as_dirname=false 471fi 472 473ECHO_C= ECHO_N= ECHO_T= 474case `echo -n x` in 475-n*) 476 case `echo 'x\c'` in 477 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 478 *) ECHO_C='\c';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484if expr a : '\(a\)' >/dev/null 2>&1 && 485 test "X`expr 00001 : '.*\(...\)'`" = X001; then 486 as_expr=expr 487else 488 as_expr=false 489fi 490 491rm -f conf$$ conf$$.exe conf$$.file 492if test -d conf$$.dir; then 493 rm -f conf$$.dir/conf$$.file 494else 495 rm -f conf$$.dir 496 mkdir conf$$.dir 497fi 498echo >conf$$.file 499if ln -s conf$$.file conf$$ 2>/dev/null; then 500 as_ln_s='ln -s' 501 # ... but there are two gotchas: 502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 504 # In both cases, we have to default to `cp -p'. 505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 506 as_ln_s='cp -p' 507elif ln conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s=ln 509else 510 as_ln_s='cp -p' 511fi 512rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 513rmdir conf$$.dir 2>/dev/null 514 515if mkdir -p . 2>/dev/null; then 516 as_mkdir_p=: 517else 518 test -d ./-p && rmdir ./-p 519 as_mkdir_p=false 520fi 521 522if test -x / >/dev/null 2>&1; then 523 as_test_x='test -x' 524else 525 if ls -dL / >/dev/null 2>&1; then 526 as_ls_L_option=L 527 else 528 as_ls_L_option= 529 fi 530 as_test_x=' 531 eval sh -c '\'' 532 if test -d "$1"; then 533 test -d "$1/."; 534 else 535 case $1 in 536 -*)set "./$1";; 537 esac; 538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 539 ???[sx]*):;;*)false;;esac;fi 540 '\'' sh 541 ' 542fi 543as_executable_p=$as_test_x 544 545# Sed expression to map a string onto a valid CPP name. 546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 547 548# Sed expression to map a string onto a valid variable name. 549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 550 551 552 553exec 7<&0 </dev/null 6>&1 554 555# Name of the host. 556# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 557# so uname gets run too. 558ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 559 560# 561# Initializations. 562# 563ac_default_prefix=/usr/local 564ac_clean_files= 565ac_config_libobj_dir=. 566LIBOBJS= 567cross_compiling=no 568subdirs= 569MFLAGS= 570MAKEFLAGS= 571SHELL=${CONFIG_SHELL-/bin/sh} 572 573# Identity of this package. 574PACKAGE_NAME='tbcload' 575PACKAGE_TARNAME='tbcload' 576PACKAGE_VERSION='1.7' 577PACKAGE_STRING='tbcload 1.7' 578PACKAGE_BUGREPORT='' 579 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='SHELL 617PATH_SEPARATOR 618PACKAGE_NAME 619PACKAGE_TARNAME 620PACKAGE_VERSION 621PACKAGE_STRING 622PACKAGE_BUGREPORT 623exec_prefix 624prefix 625program_transform_name 626bindir 627sbindir 628libexecdir 629datarootdir 630datadir 631sysconfdir 632sharedstatedir 633localstatedir 634includedir 635oldincludedir 636docdir 637infodir 638htmldir 639dvidir 640pdfdir 641psdir 642libdir 643localedir 644mandir 645DEFS 646ECHO_C 647ECHO_N 648ECHO_T 649LIBS 650build_alias 651host_alias 652target_alias 653CYGPATH 654EXEEXT 655PKG_LIB_FILE 656PKG_STUB_LIB_FILE 657PKG_STUB_SOURCES 658PKG_STUB_OBJECTS 659PKG_TCL_SOURCES 660PKG_HEADERS 661PKG_INCLUDES 662PKG_LIBS 663PKG_CFLAGS 664TCL_VERSION 665TCL_PATCH_LEVEL 666TCL_BIN_DIR 667TCL_SRC_DIR 668TCL_LIB_FILE 669TCL_LIB_FLAG 670TCL_LIB_SPEC 671TCL_STUB_LIB_FILE 672TCL_STUB_LIB_FLAG 673TCL_STUB_LIB_SPEC 674CLEANFILES 675TCL_LIBS 676TCL_DEFS 677TCL_EXTRA_CFLAGS 678TCL_LD_FLAGS 679TCL_SHLIB_LD_LIBS 680CC 681CFLAGS 682LDFLAGS 683CPPFLAGS 684ac_ct_CC 685OBJEXT 686CPP 687INSTALL_PROGRAM 688INSTALL_SCRIPT 689INSTALL_DATA 690SET_MAKE 691RANLIB 692GREP 693EGREP 694MATH_LIBS 695PKG_SOURCES 696PKG_OBJECTS 697TCL_INCLUDES 698TCL_TOP_DIR_NATIVE 699TCL_THREADS 700SHARED_BUILD 701AR 702CELIB_DIR 703CFLAGS_DEBUG 704CFLAGS_OPTIMIZE 705CFLAGS_WARNING 706STLIB_LD 707SHLIB_LD 708SHLIB_LD_LIBS 709SHLIB_CFLAGS 710LD_LIBRARY_PATH_VAR 711CFLAGS_DEFAULT 712LDFLAGS_DEFAULT 713TCL_DBGX 714MAKE_LIB 715MAKE_SHARED_LIB 716MAKE_STATIC_LIB 717MAKE_STUB_LIB 718RANLIB_STUB 719VC_MANIFEST_EMBED_DLL 720VC_MANIFEST_EMBED_EXE 721TCLSH_PROG 722LIBOBJS 723LTLIBOBJS' 724ac_subst_files='' 725 ac_precious_vars='build_alias 726host_alias 727target_alias 728CC 729CFLAGS 730LDFLAGS 731LIBS 732CPPFLAGS 733CPP' 734 735 736# Initialize some variables set by options. 737ac_init_help= 738ac_init_version=false 739# The variables have the same names as the options, with 740# dashes changed to underlines. 741cache_file=/dev/null 742exec_prefix=NONE 743no_create= 744no_recursion= 745prefix=NONE 746program_prefix=NONE 747program_suffix=NONE 748program_transform_name=s,x,x, 749silent= 750site= 751srcdir= 752verbose= 753x_includes=NONE 754x_libraries=NONE 755 756# Installation directory options. 757# These are left unexpanded so users can "make install exec_prefix=/foo" 758# and all the variables that are supposed to be based on exec_prefix 759# by default will actually change. 760# Use braces instead of parens because sh, perl, etc. also accept them. 761# (The list follows the same order as the GNU Coding Standards.) 762bindir='${exec_prefix}/bin' 763sbindir='${exec_prefix}/sbin' 764libexecdir='${exec_prefix}/libexec' 765datarootdir='${prefix}/share' 766datadir='${datarootdir}' 767sysconfdir='${prefix}/etc' 768sharedstatedir='${prefix}/com' 769localstatedir='${prefix}/var' 770includedir='${prefix}/include' 771oldincludedir='/usr/include' 772docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 773infodir='${datarootdir}/info' 774htmldir='${docdir}' 775dvidir='${docdir}' 776pdfdir='${docdir}' 777psdir='${docdir}' 778libdir='${exec_prefix}/lib' 779localedir='${datarootdir}/locale' 780mandir='${datarootdir}/man' 781 782ac_prev= 783ac_dashdash= 784for ac_option 785do 786 # If the previous option needs an argument, assign it. 787 if test -n "$ac_prev"; then 788 eval $ac_prev=\$ac_option 789 ac_prev= 790 continue 791 fi 792 793 case $ac_option in 794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 795 *) ac_optarg=yes ;; 796 esac 797 798 # Accept the important Cygnus configure options, so we can diagnose typos. 799 800 case $ac_dashdash$ac_option in 801 --) 802 ac_dashdash=yes ;; 803 804 -bindir | --bindir | --bindi | --bind | --bin | --bi) 805 ac_prev=bindir ;; 806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 807 bindir=$ac_optarg ;; 808 809 -build | --build | --buil | --bui | --bu) 810 ac_prev=build_alias ;; 811 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 812 build_alias=$ac_optarg ;; 813 814 -cache-file | --cache-file | --cache-fil | --cache-fi \ 815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 816 ac_prev=cache_file ;; 817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 819 cache_file=$ac_optarg ;; 820 821 --config-cache | -C) 822 cache_file=config.cache ;; 823 824 -datadir | --datadir | --datadi | --datad) 825 ac_prev=datadir ;; 826 -datadir=* | --datadir=* | --datadi=* | --datad=*) 827 datadir=$ac_optarg ;; 828 829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 830 | --dataroo | --dataro | --datar) 831 ac_prev=datarootdir ;; 832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 834 datarootdir=$ac_optarg ;; 835 836 -disable-* | --disable-*) 837 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 838 # Reject names that are not valid shell variable names. 839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 841 { (exit 1); exit 1; }; } 842 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 843 eval enable_$ac_feature=no ;; 844 845 -docdir | --docdir | --docdi | --doc | --do) 846 ac_prev=docdir ;; 847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 848 docdir=$ac_optarg ;; 849 850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 851 ac_prev=dvidir ;; 852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 853 dvidir=$ac_optarg ;; 854 855 -enable-* | --enable-*) 856 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 860 { (exit 1); exit 1; }; } 861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 862 eval enable_$ac_feature=\$ac_optarg ;; 863 864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 866 | --exec | --exe | --ex) 867 ac_prev=exec_prefix ;; 868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 870 | --exec=* | --exe=* | --ex=*) 871 exec_prefix=$ac_optarg ;; 872 873 -gas | --gas | --ga | --g) 874 # Obsolete; use --with-gas. 875 with_gas=yes ;; 876 877 -help | --help | --hel | --he | -h) 878 ac_init_help=long ;; 879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 880 ac_init_help=recursive ;; 881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 882 ac_init_help=short ;; 883 884 -host | --host | --hos | --ho) 885 ac_prev=host_alias ;; 886 -host=* | --host=* | --hos=* | --ho=*) 887 host_alias=$ac_optarg ;; 888 889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 890 ac_prev=htmldir ;; 891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 892 | --ht=*) 893 htmldir=$ac_optarg ;; 894 895 -includedir | --includedir | --includedi | --included | --include \ 896 | --includ | --inclu | --incl | --inc) 897 ac_prev=includedir ;; 898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 899 | --includ=* | --inclu=* | --incl=* | --inc=*) 900 includedir=$ac_optarg ;; 901 902 -infodir | --infodir | --infodi | --infod | --info | --inf) 903 ac_prev=infodir ;; 904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 905 infodir=$ac_optarg ;; 906 907 -libdir | --libdir | --libdi | --libd) 908 ac_prev=libdir ;; 909 -libdir=* | --libdir=* | --libdi=* | --libd=*) 910 libdir=$ac_optarg ;; 911 912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 913 | --libexe | --libex | --libe) 914 ac_prev=libexecdir ;; 915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 916 | --libexe=* | --libex=* | --libe=*) 917 libexecdir=$ac_optarg ;; 918 919 -localedir | --localedir | --localedi | --localed | --locale) 920 ac_prev=localedir ;; 921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 922 localedir=$ac_optarg ;; 923 924 -localstatedir | --localstatedir | --localstatedi | --localstated \ 925 | --localstate | --localstat | --localsta | --localst | --locals) 926 ac_prev=localstatedir ;; 927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 929 localstatedir=$ac_optarg ;; 930 931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 932 ac_prev=mandir ;; 933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 934 mandir=$ac_optarg ;; 935 936 -nfp | --nfp | --nf) 937 # Obsolete; use --without-fp. 938 with_fp=no ;; 939 940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 941 | --no-cr | --no-c | -n) 942 no_create=yes ;; 943 944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 946 no_recursion=yes ;; 947 948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 950 | --oldin | --oldi | --old | --ol | --o) 951 ac_prev=oldincludedir ;; 952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 955 oldincludedir=$ac_optarg ;; 956 957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 958 ac_prev=prefix ;; 959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 960 prefix=$ac_optarg ;; 961 962 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 963 | --program-pre | --program-pr | --program-p) 964 ac_prev=program_prefix ;; 965 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 967 program_prefix=$ac_optarg ;; 968 969 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 970 | --program-suf | --program-su | --program-s) 971 ac_prev=program_suffix ;; 972 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 974 program_suffix=$ac_optarg ;; 975 976 -program-transform-name | --program-transform-name \ 977 | --program-transform-nam | --program-transform-na \ 978 | --program-transform-n | --program-transform- \ 979 | --program-transform | --program-transfor \ 980 | --program-transfo | --program-transf \ 981 | --program-trans | --program-tran \ 982 | --progr-tra | --program-tr | --program-t) 983 ac_prev=program_transform_name ;; 984 -program-transform-name=* | --program-transform-name=* \ 985 | --program-transform-nam=* | --program-transform-na=* \ 986 | --program-transform-n=* | --program-transform-=* \ 987 | --program-transform=* | --program-transfor=* \ 988 | --program-transfo=* | --program-transf=* \ 989 | --program-trans=* | --program-tran=* \ 990 | --progr-tra=* | --program-tr=* | --program-t=*) 991 program_transform_name=$ac_optarg ;; 992 993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 994 ac_prev=pdfdir ;; 995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 996 pdfdir=$ac_optarg ;; 997 998 -psdir | --psdir | --psdi | --psd | --ps) 999 ac_prev=psdir ;; 1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1001 psdir=$ac_optarg ;; 1002 1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1004 | -silent | --silent | --silen | --sile | --sil) 1005 silent=yes ;; 1006 1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1008 ac_prev=sbindir ;; 1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1010 | --sbi=* | --sb=*) 1011 sbindir=$ac_optarg ;; 1012 1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1015 | --sharedst | --shareds | --shared | --share | --shar \ 1016 | --sha | --sh) 1017 ac_prev=sharedstatedir ;; 1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1021 | --sha=* | --sh=*) 1022 sharedstatedir=$ac_optarg ;; 1023 1024 -site | --site | --sit) 1025 ac_prev=site ;; 1026 -site=* | --site=* | --sit=*) 1027 site=$ac_optarg ;; 1028 1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1030 ac_prev=srcdir ;; 1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1032 srcdir=$ac_optarg ;; 1033 1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1035 | --syscon | --sysco | --sysc | --sys | --sy) 1036 ac_prev=sysconfdir ;; 1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1039 sysconfdir=$ac_optarg ;; 1040 1041 -target | --target | --targe | --targ | --tar | --ta | --t) 1042 ac_prev=target_alias ;; 1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1044 target_alias=$ac_optarg ;; 1045 1046 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1047 verbose=yes ;; 1048 1049 -version | --version | --versio | --versi | --vers | -V) 1050 ac_init_version=: ;; 1051 1052 -with-* | --with-*) 1053 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1054 # Reject names that are not valid shell variable names. 1055 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1056 { echo "$as_me: error: invalid package name: $ac_package" >&2 1057 { (exit 1); exit 1; }; } 1058 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1059 eval with_$ac_package=\$ac_optarg ;; 1060 1061 -without-* | --without-*) 1062 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1065 { echo "$as_me: error: invalid package name: $ac_package" >&2 1066 { (exit 1); exit 1; }; } 1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1068 eval with_$ac_package=no ;; 1069 1070 --x) 1071 # Obsolete; use --with-x. 1072 with_x=yes ;; 1073 1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1075 | --x-incl | --x-inc | --x-in | --x-i) 1076 ac_prev=x_includes ;; 1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1079 x_includes=$ac_optarg ;; 1080 1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1083 ac_prev=x_libraries ;; 1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1086 x_libraries=$ac_optarg ;; 1087 1088 -*) { echo "$as_me: error: unrecognized option: $ac_option 1089Try \`$0 --help' for more information." >&2 1090 { (exit 1); exit 1; }; } 1091 ;; 1092 1093 *=*) 1094 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1095 # Reject names that are not valid shell variable names. 1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1098 { (exit 1); exit 1; }; } 1099 eval $ac_envvar=\$ac_optarg 1100 export $ac_envvar ;; 1101 1102 *) 1103 # FIXME: should be removed in autoconf 3.0. 1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1108 ;; 1109 1110 esac 1111done 1112 1113if test -n "$ac_prev"; then 1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1115 { echo "$as_me: error: missing argument to $ac_option" >&2 1116 { (exit 1); exit 1; }; } 1117fi 1118 1119# Be sure to have absolute directory names. 1120for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1121 datadir sysconfdir sharedstatedir localstatedir includedir \ 1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1123 libdir localedir mandir 1124do 1125 eval ac_val=\$$ac_var 1126 case $ac_val in 1127 [\\/$]* | ?:[\\/]* ) continue;; 1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1129 esac 1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1131 { (exit 1); exit 1; }; } 1132done 1133 1134# There might be people who depend on the old broken behavior: `$host' 1135# used to hold the argument of --host etc. 1136# FIXME: To remove some day. 1137build=$build_alias 1138host=$host_alias 1139target=$target_alias 1140 1141# FIXME: To remove some day. 1142if test "x$host_alias" != x; then 1143 if test "x$build_alias" = x; then 1144 cross_compiling=maybe 1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1146 If a cross compiler is detected then cross compile mode will be used." >&2 1147 elif test "x$build_alias" != "x$host_alias"; then 1148 cross_compiling=yes 1149 fi 1150fi 1151 1152ac_tool_prefix= 1153test -n "$host_alias" && ac_tool_prefix=$host_alias- 1154 1155test "$silent" = yes && exec 6>/dev/null 1156 1157 1158ac_pwd=`pwd` && test -n "$ac_pwd" && 1159ac_ls_di=`ls -di .` && 1160ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1161 { echo "$as_me: error: Working directory cannot be determined" >&2 1162 { (exit 1); exit 1; }; } 1163test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1164 { echo "$as_me: error: pwd does not report name of working directory" >&2 1165 { (exit 1); exit 1; }; } 1166 1167 1168# Find the source files, if location was not specified. 1169if test -z "$srcdir"; then 1170 ac_srcdir_defaulted=yes 1171 # Try the directory containing this script, then the parent directory. 1172 ac_confdir=`$as_dirname -- "$0" || 1173$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1174 X"$0" : 'X\(//\)[^/]' \| \ 1175 X"$0" : 'X\(//\)$' \| \ 1176 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1177echo X"$0" | 1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1179 s//\1/ 1180 q 1181 } 1182 /^X\(\/\/\)[^/].*/{ 1183 s//\1/ 1184 q 1185 } 1186 /^X\(\/\/\)$/{ 1187 s//\1/ 1188 q 1189 } 1190 /^X\(\/\).*/{ 1191 s//\1/ 1192 q 1193 } 1194 s/.*/./; q'` 1195 srcdir=$ac_confdir 1196 if test ! -r "$srcdir/$ac_unique_file"; then 1197 srcdir=.. 1198 fi 1199else 1200 ac_srcdir_defaulted=no 1201fi 1202if test ! -r "$srcdir/$ac_unique_file"; then 1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1205 { (exit 1); exit 1; }; } 1206fi 1207ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1208ac_abs_confdir=`( 1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1210 { (exit 1); exit 1; }; } 1211 pwd)` 1212# When building in place, set srcdir=. 1213if test "$ac_abs_confdir" = "$ac_pwd"; then 1214 srcdir=. 1215fi 1216# Remove unnecessary trailing slashes from srcdir. 1217# Double slashes in file names in object file debugging info 1218# mess up M-x gdb in Emacs. 1219case $srcdir in 1220*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1221esac 1222for ac_var in $ac_precious_vars; do 1223 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1224 eval ac_env_${ac_var}_value=\$${ac_var} 1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1226 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1227done 1228 1229# 1230# Report the --help message. 1231# 1232if test "$ac_init_help" = "long"; then 1233 # Omit some internal or obsolete options to make the list less imposing. 1234 # This message is too long to be a string in the A/UX 3.1 sh. 1235 cat <<_ACEOF 1236\`configure' configures tbcload 1.7 to adapt to many kinds of systems. 1237 1238Usage: $0 [OPTION]... [VAR=VALUE]... 1239 1240To assign environment variables (e.g., CC, CFLAGS...), specify them as 1241VAR=VALUE. See below for descriptions of some of the useful variables. 1242 1243Defaults for the options are specified in brackets. 1244 1245Configuration: 1246 -h, --help display this help and exit 1247 --help=short display options specific to this package 1248 --help=recursive display the short help of all the included packages 1249 -V, --version display version information and exit 1250 -q, --quiet, --silent do not print \`checking...' messages 1251 --cache-file=FILE cache test results in FILE [disabled] 1252 -C, --config-cache alias for \`--cache-file=config.cache' 1253 -n, --no-create do not create output files 1254 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1255 1256Installation directories: 1257 --prefix=PREFIX install architecture-independent files in PREFIX 1258 [$ac_default_prefix] 1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1260 [PREFIX] 1261 1262By default, \`make install' will install all the files in 1263\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1264an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1265for instance \`--prefix=\$HOME'. 1266 1267For better control, use the options below. 1268 1269Fine tuning of the installation directories: 1270 --bindir=DIR user executables [EPREFIX/bin] 1271 --sbindir=DIR system admin executables [EPREFIX/sbin] 1272 --libexecdir=DIR program executables [EPREFIX/libexec] 1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1276 --libdir=DIR object code libraries [EPREFIX/lib] 1277 --includedir=DIR C header files [PREFIX/include] 1278 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1281 --infodir=DIR info documentation [DATAROOTDIR/info] 1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1283 --mandir=DIR man documentation [DATAROOTDIR/man] 1284 --docdir=DIR documentation root [DATAROOTDIR/doc/tbcload] 1285 --htmldir=DIR html documentation [DOCDIR] 1286 --dvidir=DIR dvi documentation [DOCDIR] 1287 --pdfdir=DIR pdf documentation [DOCDIR] 1288 --psdir=DIR ps documentation [DOCDIR] 1289_ACEOF 1290 1291 cat <<\_ACEOF 1292_ACEOF 1293fi 1294 1295if test -n "$ac_init_help"; then 1296 case $ac_init_help in 1297 short | recursive ) echo "Configuration of tbcload 1.7:";; 1298 esac 1299 cat <<\_ACEOF 1300 1301Optional Features: 1302 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1303 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1304 --enable-threads build with threads 1305 --enable-shared build and link with shared libraries (default: on) 1306 --enable-64bit enable 64bit support (default: off) 1307 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1308 --disable-rpath disable rpath support (default: on) 1309 --enable-wince enable Win/CE support (where applicable) 1310 --enable-symbols build with debugging symbols (default: off) 1311 1312Optional Packages: 1313 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1314 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1315 --with-tcl directory containing tcl configuration 1316 (tclConfig.sh) 1317 --with-tclinclude directory containing the public Tcl header files 1318 --with-celib=DIR use Windows/CE support library from DIR 1319 1320Some influential environment variables: 1321 CC C compiler command 1322 CFLAGS C compiler flags 1323 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1324 nonstandard directory <lib dir> 1325 LIBS libraries to pass to the linker, e.g. -l<library> 1326 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1327 you have headers in a nonstandard directory <include dir> 1328 CPP C preprocessor 1329 1330Use these variables to override the choices made by `configure' or to help 1331it to find libraries and programs with nonstandard names/locations. 1332 1333_ACEOF 1334ac_status=$? 1335fi 1336 1337if test "$ac_init_help" = "recursive"; then 1338 # If there are subdirs, report their specific --help. 1339 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1340 test -d "$ac_dir" || continue 1341 ac_builddir=. 1342 1343case "$ac_dir" in 1344.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1345*) 1346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1347 # A ".." for each directory in $ac_dir_suffix. 1348 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1349 case $ac_top_builddir_sub in 1350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1352 esac ;; 1353esac 1354ac_abs_top_builddir=$ac_pwd 1355ac_abs_builddir=$ac_pwd$ac_dir_suffix 1356# for backward compatibility: 1357ac_top_builddir=$ac_top_build_prefix 1358 1359case $srcdir in 1360 .) # We are building in place. 1361 ac_srcdir=. 1362 ac_top_srcdir=$ac_top_builddir_sub 1363 ac_abs_top_srcdir=$ac_pwd ;; 1364 [\\/]* | ?:[\\/]* ) # Absolute name. 1365 ac_srcdir=$srcdir$ac_dir_suffix; 1366 ac_top_srcdir=$srcdir 1367 ac_abs_top_srcdir=$srcdir ;; 1368 *) # Relative name. 1369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1370 ac_top_srcdir=$ac_top_build_prefix$srcdir 1371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1372esac 1373ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1374 1375 cd "$ac_dir" || { ac_status=$?; continue; } 1376 # Check for guested configure. 1377 if test -f "$ac_srcdir/configure.gnu"; then 1378 echo && 1379 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1380 elif test -f "$ac_srcdir/configure"; then 1381 echo && 1382 $SHELL "$ac_srcdir/configure" --help=recursive 1383 else 1384 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1385 fi || ac_status=$? 1386 cd "$ac_pwd" || { ac_status=$?; break; } 1387 done 1388fi 1389 1390test -n "$ac_init_help" && exit $ac_status 1391if $ac_init_version; then 1392 cat <<\_ACEOF 1393tbcload configure 1.7 1394generated by GNU Autoconf 2.61 1395 1396Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13972002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1398This configure script is free software; the Free Software Foundation 1399gives unlimited permission to copy, distribute and modify it. 1400_ACEOF 1401 exit 1402fi 1403cat >config.log <<_ACEOF 1404This file contains any messages produced by compilers while 1405running configure, to aid debugging if configure makes a mistake. 1406 1407It was created by tbcload $as_me 1.7, which was 1408generated by GNU Autoconf 2.61. Invocation command line was 1409 1410 $ $0 $@ 1411 1412_ACEOF 1413exec 5>>config.log 1414{ 1415cat <<_ASUNAME 1416## --------- ## 1417## Platform. ## 1418## --------- ## 1419 1420hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1421uname -m = `(uname -m) 2>/dev/null || echo unknown` 1422uname -r = `(uname -r) 2>/dev/null || echo unknown` 1423uname -s = `(uname -s) 2>/dev/null || echo unknown` 1424uname -v = `(uname -v) 2>/dev/null || echo unknown` 1425 1426/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1427/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1428 1429/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1430/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1431/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1432/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1433/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1434/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1435/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1436 1437_ASUNAME 1438 1439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1440for as_dir in $PATH 1441do 1442 IFS=$as_save_IFS 1443 test -z "$as_dir" && as_dir=. 1444 echo "PATH: $as_dir" 1445done 1446IFS=$as_save_IFS 1447 1448} >&5 1449 1450cat >&5 <<_ACEOF 1451 1452 1453## ----------- ## 1454## Core tests. ## 1455## ----------- ## 1456 1457_ACEOF 1458 1459 1460# Keep a trace of the command line. 1461# Strip out --no-create and --no-recursion so they do not pile up. 1462# Strip out --silent because we don't want to record it for future runs. 1463# Also quote any args containing shell meta-characters. 1464# Make two passes to allow for proper duplicate-argument suppression. 1465ac_configure_args= 1466ac_configure_args0= 1467ac_configure_args1= 1468ac_must_keep_next=false 1469for ac_pass in 1 2 1470do 1471 for ac_arg 1472 do 1473 case $ac_arg in 1474 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1476 | -silent | --silent | --silen | --sile | --sil) 1477 continue ;; 1478 *\'*) 1479 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1480 esac 1481 case $ac_pass in 1482 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1483 2) 1484 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1485 if test $ac_must_keep_next = true; then 1486 ac_must_keep_next=false # Got value, back to normal. 1487 else 1488 case $ac_arg in 1489 *=* | --config-cache | -C | -disable-* | --disable-* \ 1490 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1491 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1492 | -with-* | --with-* | -without-* | --without-* | --x) 1493 case "$ac_configure_args0 " in 1494 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1495 esac 1496 ;; 1497 -* ) ac_must_keep_next=true ;; 1498 esac 1499 fi 1500 ac_configure_args="$ac_configure_args '$ac_arg'" 1501 ;; 1502 esac 1503 done 1504done 1505$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1506$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1507 1508# When interrupted or exit'd, cleanup temporary files, and complete 1509# config.log. We remove comments because anyway the quotes in there 1510# would cause problems or look ugly. 1511# WARNING: Use '\'' to represent an apostrophe within the trap. 1512# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1513trap 'exit_status=$? 1514 # Save into config.log some information that might help in debugging. 1515 { 1516 echo 1517 1518 cat <<\_ASBOX 1519## ---------------- ## 1520## Cache variables. ## 1521## ---------------- ## 1522_ASBOX 1523 echo 1524 # The following way of writing the cache mishandles newlines in values, 1525( 1526 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1527 eval ac_val=\$$ac_var 1528 case $ac_val in #( 1529 *${as_nl}*) 1530 case $ac_var in #( 1531 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1532echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1533 esac 1534 case $ac_var in #( 1535 _ | IFS | as_nl) ;; #( 1536 *) $as_unset $ac_var ;; 1537 esac ;; 1538 esac 1539 done 1540 (set) 2>&1 | 1541 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1542 *${as_nl}ac_space=\ *) 1543 sed -n \ 1544 "s/'\''/'\''\\\\'\'''\''/g; 1545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1546 ;; #( 1547 *) 1548 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1549 ;; 1550 esac | 1551 sort 1552) 1553 echo 1554 1555 cat <<\_ASBOX 1556## ----------------- ## 1557## Output variables. ## 1558## ----------------- ## 1559_ASBOX 1560 echo 1561 for ac_var in $ac_subst_vars 1562 do 1563 eval ac_val=\$$ac_var 1564 case $ac_val in 1565 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1566 esac 1567 echo "$ac_var='\''$ac_val'\''" 1568 done | sort 1569 echo 1570 1571 if test -n "$ac_subst_files"; then 1572 cat <<\_ASBOX 1573## ------------------- ## 1574## File substitutions. ## 1575## ------------------- ## 1576_ASBOX 1577 echo 1578 for ac_var in $ac_subst_files 1579 do 1580 eval ac_val=\$$ac_var 1581 case $ac_val in 1582 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1583 esac 1584 echo "$ac_var='\''$ac_val'\''" 1585 done | sort 1586 echo 1587 fi 1588 1589 if test -s confdefs.h; then 1590 cat <<\_ASBOX 1591## ----------- ## 1592## confdefs.h. ## 1593## ----------- ## 1594_ASBOX 1595 echo 1596 cat confdefs.h 1597 echo 1598 fi 1599 test "$ac_signal" != 0 && 1600 echo "$as_me: caught signal $ac_signal" 1601 echo "$as_me: exit $exit_status" 1602 } >&5 1603 rm -f core *.core core.conftest.* && 1604 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1605 exit $exit_status 1606' 0 1607for ac_signal in 1 2 13 15; do 1608 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1609done 1610ac_signal=0 1611 1612# confdefs.h avoids OS command line length limits that DEFS can exceed. 1613rm -f -r conftest* confdefs.h 1614 1615# Predefined preprocessor variables. 1616 1617cat >>confdefs.h <<_ACEOF 1618#define PACKAGE_NAME "$PACKAGE_NAME" 1619_ACEOF 1620 1621 1622cat >>confdefs.h <<_ACEOF 1623#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1624_ACEOF 1625 1626 1627cat >>confdefs.h <<_ACEOF 1628#define PACKAGE_VERSION "$PACKAGE_VERSION" 1629_ACEOF 1630 1631 1632cat >>confdefs.h <<_ACEOF 1633#define PACKAGE_STRING "$PACKAGE_STRING" 1634_ACEOF 1635 1636 1637cat >>confdefs.h <<_ACEOF 1638#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1639_ACEOF 1640 1641 1642# Let the site file select an alternate cache file if it wants to. 1643# Prefer explicitly selected file to automatically selected ones. 1644if test -n "$CONFIG_SITE"; then 1645 set x "$CONFIG_SITE" 1646elif test "x$prefix" != xNONE; then 1647 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1648else 1649 set x "$ac_default_prefix/share/config.site" \ 1650 "$ac_default_prefix/etc/config.site" 1651fi 1652shift 1653for ac_site_file 1654do 1655 if test -r "$ac_site_file"; then 1656 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1657echo "$as_me: loading site script $ac_site_file" >&6;} 1658 sed 's/^/| /' "$ac_site_file" >&5 1659 . "$ac_site_file" 1660 fi 1661done 1662 1663if test -r "$cache_file"; then 1664 # Some versions of bash will fail to source /dev/null (special 1665 # files actually), so we avoid doing that. 1666 if test -f "$cache_file"; then 1667 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1668echo "$as_me: loading cache $cache_file" >&6;} 1669 case $cache_file in 1670 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1671 *) . "./$cache_file";; 1672 esac 1673 fi 1674else 1675 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1676echo "$as_me: creating cache $cache_file" >&6;} 1677 >$cache_file 1678fi 1679 1680# Check that the precious variables saved in the cache have kept the same 1681# value. 1682ac_cache_corrupted=false 1683for ac_var in $ac_precious_vars; do 1684 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1685 eval ac_new_set=\$ac_env_${ac_var}_set 1686 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1687 eval ac_new_val=\$ac_env_${ac_var}_value 1688 case $ac_old_set,$ac_new_set in 1689 set,) 1690 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1691echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1692 ac_cache_corrupted=: ;; 1693 ,set) 1694 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1695echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1696 ac_cache_corrupted=: ;; 1697 ,);; 1698 *) 1699 if test "x$ac_old_val" != "x$ac_new_val"; then 1700 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1701echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1702 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1703echo "$as_me: former value: $ac_old_val" >&2;} 1704 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1705echo "$as_me: current value: $ac_new_val" >&2;} 1706 ac_cache_corrupted=: 1707 fi;; 1708 esac 1709 # Pass precious variables to config.status. 1710 if test "$ac_new_set" = set; then 1711 case $ac_new_val in 1712 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1713 *) ac_arg=$ac_var=$ac_new_val ;; 1714 esac 1715 case " $ac_configure_args " in 1716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1717 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1718 esac 1719 fi 1720done 1721if $ac_cache_corrupted; then 1722 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1723echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1724 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1725echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1726 { (exit 1); exit 1; }; } 1727fi 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753ac_ext=c 1754ac_cpp='$CPP $CPPFLAGS' 1755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1757ac_compiler_gnu=$ac_cv_c_compiler_gnu 1758 1759 1760 1761 1762 # TEA extensions pass this us the version of TEA they think they 1763 # are compatible with. 1764 TEA_VERSION="3.9" 1765 1766 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1767echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1768 if test x"${PACKAGE_NAME}" = x ; then 1769 { { echo "$as_me:$LINENO: error: 1770The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1771echo "$as_me: error: 1772The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1773 { (exit 1); exit 1; }; } 1774 fi 1775 if test x"3.9" = x ; then 1776 { { echo "$as_me:$LINENO: error: 1777TEA version not specified." >&5 1778echo "$as_me: error: 1779TEA version not specified." >&2;} 1780 { (exit 1); exit 1; }; } 1781 elif test "3.9" != "${TEA_VERSION}" ; then 1782 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1783echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1784 else 1785 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1786echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1787 fi 1788 case "`uname -s`" in 1789 *win32*|*WIN32*|*MINGW32_*) 1790 # Extract the first word of "cygpath", so it can be a program name with args. 1791set dummy cygpath; ac_word=$2 1792{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1794if test "${ac_cv_prog_CYGPATH+set}" = set; then 1795 echo $ECHO_N "(cached) $ECHO_C" >&6 1796else 1797 if test -n "$CYGPATH"; then 1798 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1799else 1800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1801for as_dir in $PATH 1802do 1803 IFS=$as_save_IFS 1804 test -z "$as_dir" && as_dir=. 1805 for ac_exec_ext in '' $ac_executable_extensions; do 1806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1807 ac_cv_prog_CYGPATH="cygpath -w" 1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1809 break 2 1810 fi 1811done 1812done 1813IFS=$as_save_IFS 1814 1815 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1816fi 1817fi 1818CYGPATH=$ac_cv_prog_CYGPATH 1819if test -n "$CYGPATH"; then 1820 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1821echo "${ECHO_T}$CYGPATH" >&6; } 1822else 1823 { echo "$as_me:$LINENO: result: no" >&5 1824echo "${ECHO_T}no" >&6; } 1825fi 1826 1827 1828 EXEEXT=".exe" 1829 TEA_PLATFORM="windows" 1830 ;; 1831 *CYGWIN_*) 1832 CYGPATH=echo 1833 EXEEXT=".exe" 1834 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1835 ;; 1836 *) 1837 CYGPATH=echo 1838 EXEEXT="" 1839 TEA_PLATFORM="unix" 1840 ;; 1841 esac 1842 1843 # Check if exec_prefix is set. If not use fall back to prefix. 1844 # Note when adjusted, so that TEA_PREFIX can correct for this. 1845 # This is needed for recursive configures, since autoconf propagates 1846 # $prefix, but not $exec_prefix (doh!). 1847 if test x$exec_prefix = xNONE ; then 1848 exec_prefix_default=yes 1849 exec_prefix=$prefix 1850 fi 1851 1852 1853 1854 1855 # This package name must be replaced statically for AC_SUBST to work 1856 1857 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1858 1859 1860 # We AC_SUBST these here to ensure they are subst'ed, 1861 # in case the user doesn't call TEA_ADD_... 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871ac_aux_dir= 1872for ac_dir in tclconfig "$srcdir"/tclconfig; do 1873 if test -f "$ac_dir/install-sh"; then 1874 ac_aux_dir=$ac_dir 1875 ac_install_sh="$ac_aux_dir/install-sh -c" 1876 break 1877 elif test -f "$ac_dir/install.sh"; then 1878 ac_aux_dir=$ac_dir 1879 ac_install_sh="$ac_aux_dir/install.sh -c" 1880 break 1881 elif test -f "$ac_dir/shtool"; then 1882 ac_aux_dir=$ac_dir 1883 ac_install_sh="$ac_aux_dir/shtool install -c" 1884 break 1885 fi 1886done 1887if test -z "$ac_aux_dir"; then 1888 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1889echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1890 { (exit 1); exit 1; }; } 1891fi 1892 1893# These three variables are undocumented and unsupported, 1894# and are intended to be withdrawn in a future Autoconf release. 1895# They can cause serious problems if a builder's source tree is in a directory 1896# whose full name contains unusual characters. 1897ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1898ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1899ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1900 1901 1902 1903#-------------------------------------------------------------------- 1904# Configure script for package 'tbcload', as distributed at November 20, 2001. 1905# TEA compliant. 1906#-------------------------------------------------------------------- 1907 1908#-------------------------------------------------------------------- 1909# Load the tclConfig.sh file 1910#-------------------------------------------------------------------- 1911 1912 1913 1914 # 1915 # Ok, lets find the tcl configuration 1916 # First, look for one uninstalled. 1917 # the alternative search directory is invoked by --with-tcl 1918 # 1919 1920 if test x"${no_tcl}" = x ; then 1921 # we reset no_tcl in case something fails here 1922 no_tcl=true 1923 1924# Check whether --with-tcl was given. 1925if test "${with_tcl+set}" = set; then 1926 withval=$with_tcl; with_tclconfig="${withval}" 1927fi 1928 1929 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1930echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1931 if test "${ac_cv_c_tclconfig+set}" = set; then 1932 echo $ECHO_N "(cached) $ECHO_C" >&6 1933else 1934 1935 1936 # First check to see if --with-tcl was specified. 1937 if test x"${with_tclconfig}" != x ; then 1938 case "${with_tclconfig}" in 1939 */tclConfig.sh ) 1940 if test -f "${with_tclconfig}"; then 1941 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 1942echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 1943 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 1944 fi ;; 1945 esac 1946 if test -f "${with_tclconfig}/tclConfig.sh" ; then 1947 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 1948 else 1949 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 1950echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 1951 { (exit 1); exit 1; }; } 1952 fi 1953 fi 1954 1955 # then check for a private Tcl installation 1956 if test x"${ac_cv_c_tclconfig}" = x ; then 1957 for i in \ 1958 ../tcl \ 1959 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1960 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 1961 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 1962 ../../tcl \ 1963 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1964 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 1965 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 1966 ../../../tcl \ 1967 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 1968 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 1969 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 1970 if test "${TEA_PLATFORM}" = "windows" \ 1971 -a -f "$i/win/tclConfig.sh" ; then 1972 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 1973 break 1974 fi 1975 if test -f "$i/unix/tclConfig.sh" ; then 1976 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 1977 break 1978 fi 1979 done 1980 fi 1981 1982 # on Darwin, check in Framework installation locations 1983 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 1984 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 1985 `ls -d /Library/Frameworks 2>/dev/null` \ 1986 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 1987 `ls -d /System/Library/Frameworks 2>/dev/null` \ 1988 ; do 1989 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 1990 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 1991 break 1992 fi 1993 done 1994 fi 1995 1996 # TEA specific: on Windows, check in common installation locations 1997 if test "${TEA_PLATFORM}" = "windows" \ 1998 -a x"${ac_cv_c_tclconfig}" = x ; then 1999 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2000 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2001 ; do 2002 if test -f "$i/tclConfig.sh" ; then 2003 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2004 break 2005 fi 2006 done 2007 fi 2008 2009 # check in a few common install locations 2010 if test x"${ac_cv_c_tclconfig}" = x ; then 2011 for i in `ls -d ${libdir} 2>/dev/null` \ 2012 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2013 `ls -d ${prefix}/lib 2>/dev/null` \ 2014 `ls -d /usr/local/lib 2>/dev/null` \ 2015 `ls -d /usr/contrib/lib 2>/dev/null` \ 2016 `ls -d /usr/lib 2>/dev/null` \ 2017 `ls -d /usr/lib64 2>/dev/null` \ 2018 ; do 2019 if test -f "$i/tclConfig.sh" ; then 2020 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2021 break 2022 fi 2023 done 2024 fi 2025 2026 # check in a few other private locations 2027 if test x"${ac_cv_c_tclconfig}" = x ; then 2028 for i in \ 2029 ${srcdir}/../tcl \ 2030 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2031 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2032 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2033 if test "${TEA_PLATFORM}" = "windows" \ 2034 -a -f "$i/win/tclConfig.sh" ; then 2035 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2036 break 2037 fi 2038 if test -f "$i/unix/tclConfig.sh" ; then 2039 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2040 break 2041 fi 2042 done 2043 fi 2044 2045fi 2046 2047 2048 if test x"${ac_cv_c_tclconfig}" = x ; then 2049 TCL_BIN_DIR="# no Tcl configs found" 2050 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2051echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2052 { (exit 1); exit 1; }; } 2053 else 2054 no_tcl= 2055 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2056 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2057echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2058 fi 2059 fi 2060 2061 2062 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2063echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2064 2065 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2066 { echo "$as_me:$LINENO: result: loading" >&5 2067echo "${ECHO_T}loading" >&6; } 2068 . "${TCL_BIN_DIR}/tclConfig.sh" 2069 else 2070 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2071echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2072 fi 2073 2074 # eval is required to do the TCL_DBGX substitution 2075 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2076 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2077 2078 # If the TCL_BIN_DIR is the build directory (not the install directory), 2079 # then set the common variable name to the value of the build variables. 2080 # For example, the variable TCL_LIB_SPEC will be set to the value 2081 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2082 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2083 # installed and uninstalled version of Tcl. 2084 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2085 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2086 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2087 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2088 elif test "`uname -s`" = "Darwin"; then 2089 # If Tcl was built as a framework, attempt to use the libraries 2090 # from the framework at the given location so that linking works 2091 # against Tcl.framework installed in an arbitrary location. 2092 case ${TCL_DEFS} in 2093 *TCL_FRAMEWORK*) 2094 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2095 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2096 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2097 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2098 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2099 break 2100 fi 2101 done 2102 fi 2103 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2104 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2105 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2106 fi 2107 ;; 2108 esac 2109 fi 2110 2111 # eval is required to do the TCL_DBGX substitution 2112 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2113 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2114 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2115 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 case "`uname -s`" in 2131 *CYGWIN_*) 2132 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2133echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2134 case ${TCL_EXTRA_CFLAGS} in 2135 *-mwin32*|*-mno-cygwin*) 2136 TEA_PLATFORM="windows" 2137 CFLAGS="$CFLAGS -mwin32" 2138 { echo "$as_me:$LINENO: result: win32" >&5 2139echo "${ECHO_T}win32" >&6; } 2140 ;; 2141 *) 2142 TEA_PLATFORM="unix" 2143 { echo "$as_me:$LINENO: result: unix" >&5 2144echo "${ECHO_T}unix" >&6; } 2145 ;; 2146 esac 2147 EXEEXT=".exe" 2148 ;; 2149 *) 2150 ;; 2151 esac 2152 2153 # Do this here as we have fully defined TEA_PLATFORM now 2154 if test "${TEA_PLATFORM}" = "windows" ; then 2155 # The BUILD_$pkg is to define the correct extern storage class 2156 # handling when making this package 2157 2158cat >>confdefs.h <<_ACEOF 2159#define BUILD_${PACKAGE_NAME} 2160_ACEOF 2161 2162 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2163 fi 2164 2165 # TEA specific: 2166 2167 2168 2169 2170 2171 2172 2173 2174#----------------------------------------------------------------------- 2175# Handle the --prefix=... option by defaulting to what Tcl gave. 2176# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2177#----------------------------------------------------------------------- 2178 2179 2180 if test "${prefix}" = "NONE"; then 2181 prefix_default=yes 2182 if test x"${TCL_PREFIX}" != x; then 2183 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2184echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2185 prefix=${TCL_PREFIX} 2186 else 2187 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2188echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2189 prefix=/usr/local 2190 fi 2191 fi 2192 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2193 -o x"${exec_prefix_default}" = x"yes" ; then 2194 if test x"${TCL_EXEC_PREFIX}" != x; then 2195 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2196echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2197 exec_prefix=${TCL_EXEC_PREFIX} 2198 else 2199 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2200echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2201 exec_prefix=$prefix 2202 fi 2203 fi 2204 2205 2206#----------------------------------------------------------------------- 2207# Standard compiler checks. 2208# This sets up CC by using the CC env var, or looks for gcc otherwise. 2209# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2210# the basic setup necessary to compile executables. 2211#----------------------------------------------------------------------- 2212 2213 2214 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2215 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2216 2217 # If the user did not set CFLAGS, set it now to keep 2218 # the AC_PROG_CC macro from adding "-g -O2". 2219 if test "${CFLAGS+set}" != "set" ; then 2220 CFLAGS="" 2221 fi 2222 2223 ac_ext=c 2224ac_cpp='$CPP $CPPFLAGS' 2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2227ac_compiler_gnu=$ac_cv_c_compiler_gnu 2228if test -n "$ac_tool_prefix"; then 2229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2230set dummy ${ac_tool_prefix}gcc; ac_word=$2 2231{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2233if test "${ac_cv_prog_CC+set}" = set; then 2234 echo $ECHO_N "(cached) $ECHO_C" >&6 2235else 2236 if test -n "$CC"; then 2237 ac_cv_prog_CC="$CC" # Let the user override the test. 2238else 2239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2240for as_dir in $PATH 2241do 2242 IFS=$as_save_IFS 2243 test -z "$as_dir" && as_dir=. 2244 for ac_exec_ext in '' $ac_executable_extensions; do 2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2246 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2248 break 2 2249 fi 2250done 2251done 2252IFS=$as_save_IFS 2253 2254fi 2255fi 2256CC=$ac_cv_prog_CC 2257if test -n "$CC"; then 2258 { echo "$as_me:$LINENO: result: $CC" >&5 2259echo "${ECHO_T}$CC" >&6; } 2260else 2261 { echo "$as_me:$LINENO: result: no" >&5 2262echo "${ECHO_T}no" >&6; } 2263fi 2264 2265 2266fi 2267if test -z "$ac_cv_prog_CC"; then 2268 ac_ct_CC=$CC 2269 # Extract the first word of "gcc", so it can be a program name with args. 2270set dummy gcc; ac_word=$2 2271{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2274 echo $ECHO_N "(cached) $ECHO_C" >&6 2275else 2276 if test -n "$ac_ct_CC"; then 2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2278else 2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2280for as_dir in $PATH 2281do 2282 IFS=$as_save_IFS 2283 test -z "$as_dir" && as_dir=. 2284 for ac_exec_ext in '' $ac_executable_extensions; do 2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2286 ac_cv_prog_ac_ct_CC="gcc" 2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2288 break 2 2289 fi 2290done 2291done 2292IFS=$as_save_IFS 2293 2294fi 2295fi 2296ac_ct_CC=$ac_cv_prog_ac_ct_CC 2297if test -n "$ac_ct_CC"; then 2298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2299echo "${ECHO_T}$ac_ct_CC" >&6; } 2300else 2301 { echo "$as_me:$LINENO: result: no" >&5 2302echo "${ECHO_T}no" >&6; } 2303fi 2304 2305 if test "x$ac_ct_CC" = x; then 2306 CC="" 2307 else 2308 case $cross_compiling:$ac_tool_warned in 2309yes:) 2310{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2311whose name does not start with the host triplet. If you think this 2312configuration is useful to you, please write to autoconf@gnu.org." >&5 2313echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2314whose name does not start with the host triplet. If you think this 2315configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2316ac_tool_warned=yes ;; 2317esac 2318 CC=$ac_ct_CC 2319 fi 2320else 2321 CC="$ac_cv_prog_CC" 2322fi 2323 2324if test -z "$CC"; then 2325 if test -n "$ac_tool_prefix"; then 2326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2327set dummy ${ac_tool_prefix}cc; ac_word=$2 2328{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2330if test "${ac_cv_prog_CC+set}" = set; then 2331 echo $ECHO_N "(cached) $ECHO_C" >&6 2332else 2333 if test -n "$CC"; then 2334 ac_cv_prog_CC="$CC" # Let the user override the test. 2335else 2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2337for as_dir in $PATH 2338do 2339 IFS=$as_save_IFS 2340 test -z "$as_dir" && as_dir=. 2341 for ac_exec_ext in '' $ac_executable_extensions; do 2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2343 ac_cv_prog_CC="${ac_tool_prefix}cc" 2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2345 break 2 2346 fi 2347done 2348done 2349IFS=$as_save_IFS 2350 2351fi 2352fi 2353CC=$ac_cv_prog_CC 2354if test -n "$CC"; then 2355 { echo "$as_me:$LINENO: result: $CC" >&5 2356echo "${ECHO_T}$CC" >&6; } 2357else 2358 { echo "$as_me:$LINENO: result: no" >&5 2359echo "${ECHO_T}no" >&6; } 2360fi 2361 2362 2363 fi 2364fi 2365if test -z "$CC"; then 2366 # Extract the first word of "cc", so it can be a program name with args. 2367set dummy cc; ac_word=$2 2368{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2370if test "${ac_cv_prog_CC+set}" = set; then 2371 echo $ECHO_N "(cached) $ECHO_C" >&6 2372else 2373 if test -n "$CC"; then 2374 ac_cv_prog_CC="$CC" # Let the user override the test. 2375else 2376 ac_prog_rejected=no 2377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2378for as_dir in $PATH 2379do 2380 IFS=$as_save_IFS 2381 test -z "$as_dir" && as_dir=. 2382 for ac_exec_ext in '' $ac_executable_extensions; do 2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2385 ac_prog_rejected=yes 2386 continue 2387 fi 2388 ac_cv_prog_CC="cc" 2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2390 break 2 2391 fi 2392done 2393done 2394IFS=$as_save_IFS 2395 2396if test $ac_prog_rejected = yes; then 2397 # We found a bogon in the path, so make sure we never use it. 2398 set dummy $ac_cv_prog_CC 2399 shift 2400 if test $# != 0; then 2401 # We chose a different compiler from the bogus one. 2402 # However, it has the same basename, so the bogon will be chosen 2403 # first if we set CC to just the basename; use the full file name. 2404 shift 2405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2406 fi 2407fi 2408fi 2409fi 2410CC=$ac_cv_prog_CC 2411if test -n "$CC"; then 2412 { echo "$as_me:$LINENO: result: $CC" >&5 2413echo "${ECHO_T}$CC" >&6; } 2414else 2415 { echo "$as_me:$LINENO: result: no" >&5 2416echo "${ECHO_T}no" >&6; } 2417fi 2418 2419 2420fi 2421if test -z "$CC"; then 2422 if test -n "$ac_tool_prefix"; then 2423 for ac_prog in cl.exe 2424 do 2425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2426set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2427{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2429if test "${ac_cv_prog_CC+set}" = set; then 2430 echo $ECHO_N "(cached) $ECHO_C" >&6 2431else 2432 if test -n "$CC"; then 2433 ac_cv_prog_CC="$CC" # Let the user override the test. 2434else 2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2436for as_dir in $PATH 2437do 2438 IFS=$as_save_IFS 2439 test -z "$as_dir" && as_dir=. 2440 for ac_exec_ext in '' $ac_executable_extensions; do 2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2444 break 2 2445 fi 2446done 2447done 2448IFS=$as_save_IFS 2449 2450fi 2451fi 2452CC=$ac_cv_prog_CC 2453if test -n "$CC"; then 2454 { echo "$as_me:$LINENO: result: $CC" >&5 2455echo "${ECHO_T}$CC" >&6; } 2456else 2457 { echo "$as_me:$LINENO: result: no" >&5 2458echo "${ECHO_T}no" >&6; } 2459fi 2460 2461 2462 test -n "$CC" && break 2463 done 2464fi 2465if test -z "$CC"; then 2466 ac_ct_CC=$CC 2467 for ac_prog in cl.exe 2468do 2469 # Extract the first word of "$ac_prog", so it can be a program name with args. 2470set dummy $ac_prog; ac_word=$2 2471{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2474 echo $ECHO_N "(cached) $ECHO_C" >&6 2475else 2476 if test -n "$ac_ct_CC"; then 2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2478else 2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2480for as_dir in $PATH 2481do 2482 IFS=$as_save_IFS 2483 test -z "$as_dir" && as_dir=. 2484 for ac_exec_ext in '' $ac_executable_extensions; do 2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2486 ac_cv_prog_ac_ct_CC="$ac_prog" 2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2488 break 2 2489 fi 2490done 2491done 2492IFS=$as_save_IFS 2493 2494fi 2495fi 2496ac_ct_CC=$ac_cv_prog_ac_ct_CC 2497if test -n "$ac_ct_CC"; then 2498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2499echo "${ECHO_T}$ac_ct_CC" >&6; } 2500else 2501 { echo "$as_me:$LINENO: result: no" >&5 2502echo "${ECHO_T}no" >&6; } 2503fi 2504 2505 2506 test -n "$ac_ct_CC" && break 2507done 2508 2509 if test "x$ac_ct_CC" = x; then 2510 CC="" 2511 else 2512 case $cross_compiling:$ac_tool_warned in 2513yes:) 2514{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2515whose name does not start with the host triplet. If you think this 2516configuration is useful to you, please write to autoconf@gnu.org." >&5 2517echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2518whose name does not start with the host triplet. If you think this 2519configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2520ac_tool_warned=yes ;; 2521esac 2522 CC=$ac_ct_CC 2523 fi 2524fi 2525 2526fi 2527 2528 2529test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2530See \`config.log' for more details." >&5 2531echo "$as_me: error: no acceptable C compiler found in \$PATH 2532See \`config.log' for more details." >&2;} 2533 { (exit 1); exit 1; }; } 2534 2535# Provide some information about the compiler. 2536echo "$as_me:$LINENO: checking for C compiler version" >&5 2537ac_compiler=`set X $ac_compile; echo $2` 2538{ (ac_try="$ac_compiler --version >&5" 2539case "(($ac_try" in 2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2541 *) ac_try_echo=$ac_try;; 2542esac 2543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2544 (eval "$ac_compiler --version >&5") 2>&5 2545 ac_status=$? 2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2547 (exit $ac_status); } 2548{ (ac_try="$ac_compiler -v >&5" 2549case "(($ac_try" in 2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2551 *) ac_try_echo=$ac_try;; 2552esac 2553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2554 (eval "$ac_compiler -v >&5") 2>&5 2555 ac_status=$? 2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2557 (exit $ac_status); } 2558{ (ac_try="$ac_compiler -V >&5" 2559case "(($ac_try" in 2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2561 *) ac_try_echo=$ac_try;; 2562esac 2563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2564 (eval "$ac_compiler -V >&5") 2>&5 2565 ac_status=$? 2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2567 (exit $ac_status); } 2568 2569cat >conftest.$ac_ext <<_ACEOF 2570/* confdefs.h. */ 2571_ACEOF 2572cat confdefs.h >>conftest.$ac_ext 2573cat >>conftest.$ac_ext <<_ACEOF 2574/* end confdefs.h. */ 2575 2576int 2577main () 2578{ 2579 2580 ; 2581 return 0; 2582} 2583_ACEOF 2584ac_clean_files_save=$ac_clean_files 2585ac_clean_files="$ac_clean_files a.out a.exe b.out" 2586# Try to create an executable without -o first, disregard a.out. 2587# It will help us diagnose broken compilers, and finding out an intuition 2588# of exeext. 2589{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2590echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2591ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2592# 2593# List of possible output files, starting from the most likely. 2594# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2595# only as a last resort. b.out is created by i960 compilers. 2596ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2597# 2598# The IRIX 6 linker writes into existing files which may not be 2599# executable, retaining their permissions. Remove them first so a 2600# subsequent execution test works. 2601ac_rmfiles= 2602for ac_file in $ac_files 2603do 2604 case $ac_file in 2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2606 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2607 esac 2608done 2609rm -f $ac_rmfiles 2610 2611if { (ac_try="$ac_link_default" 2612case "(($ac_try" in 2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2614 *) ac_try_echo=$ac_try;; 2615esac 2616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2617 (eval "$ac_link_default") 2>&5 2618 ac_status=$? 2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2620 (exit $ac_status); }; then 2621 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2622# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2623# in a Makefile. We should not override ac_cv_exeext if it was cached, 2624# so that the user can short-circuit this test for compilers unknown to 2625# Autoconf. 2626for ac_file in $ac_files '' 2627do 2628 test -f "$ac_file" || continue 2629 case $ac_file in 2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2631 ;; 2632 [ab].out ) 2633 # We found the default executable, but exeext='' is most 2634 # certainly right. 2635 break;; 2636 *.* ) 2637 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2638 then :; else 2639 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2640 fi 2641 # We set ac_cv_exeext here because the later test for it is not 2642 # safe: cross compilers may not add the suffix if given an `-o' 2643 # argument, so we may need to know it at that point already. 2644 # Even if this section looks crufty: it has the advantage of 2645 # actually working. 2646 break;; 2647 * ) 2648 break;; 2649 esac 2650done 2651test "$ac_cv_exeext" = no && ac_cv_exeext= 2652 2653else 2654 ac_file='' 2655fi 2656 2657{ echo "$as_me:$LINENO: result: $ac_file" >&5 2658echo "${ECHO_T}$ac_file" >&6; } 2659if test -z "$ac_file"; then 2660 echo "$as_me: failed program was:" >&5 2661sed 's/^/| /' conftest.$ac_ext >&5 2662 2663{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2664See \`config.log' for more details." >&5 2665echo "$as_me: error: C compiler cannot create executables 2666See \`config.log' for more details." >&2;} 2667 { (exit 77); exit 77; }; } 2668fi 2669 2670ac_exeext=$ac_cv_exeext 2671 2672# Check that the compiler produces executables we can run. If not, either 2673# the compiler is broken, or we cross compile. 2674{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2675echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2676# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2677# If not cross compiling, check that we can run a simple program. 2678if test "$cross_compiling" != yes; then 2679 if { ac_try='./$ac_file' 2680 { (case "(($ac_try" in 2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2682 *) ac_try_echo=$ac_try;; 2683esac 2684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2685 (eval "$ac_try") 2>&5 2686 ac_status=$? 2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2688 (exit $ac_status); }; }; then 2689 cross_compiling=no 2690 else 2691 if test "$cross_compiling" = maybe; then 2692 cross_compiling=yes 2693 else 2694 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2695If you meant to cross compile, use \`--host'. 2696See \`config.log' for more details." >&5 2697echo "$as_me: error: cannot run C compiled programs. 2698If you meant to cross compile, use \`--host'. 2699See \`config.log' for more details." >&2;} 2700 { (exit 1); exit 1; }; } 2701 fi 2702 fi 2703fi 2704{ echo "$as_me:$LINENO: result: yes" >&5 2705echo "${ECHO_T}yes" >&6; } 2706 2707rm -f a.out a.exe conftest$ac_cv_exeext b.out 2708ac_clean_files=$ac_clean_files_save 2709# Check that the compiler produces executables we can run. If not, either 2710# the compiler is broken, or we cross compile. 2711{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2712echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2713{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2714echo "${ECHO_T}$cross_compiling" >&6; } 2715 2716{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2717echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2718if { (ac_try="$ac_link" 2719case "(($ac_try" in 2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2721 *) ac_try_echo=$ac_try;; 2722esac 2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2724 (eval "$ac_link") 2>&5 2725 ac_status=$? 2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2727 (exit $ac_status); }; then 2728 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2729# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2730# work properly (i.e., refer to `conftest.exe'), while it won't with 2731# `rm'. 2732for ac_file in conftest.exe conftest conftest.*; do 2733 test -f "$ac_file" || continue 2734 case $ac_file in 2735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2737 break;; 2738 * ) break;; 2739 esac 2740done 2741else 2742 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2743See \`config.log' for more details." >&5 2744echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2745See \`config.log' for more details." >&2;} 2746 { (exit 1); exit 1; }; } 2747fi 2748 2749rm -f conftest$ac_cv_exeext 2750{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2751echo "${ECHO_T}$ac_cv_exeext" >&6; } 2752 2753rm -f conftest.$ac_ext 2754EXEEXT=$ac_cv_exeext 2755ac_exeext=$EXEEXT 2756{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2757echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2758if test "${ac_cv_objext+set}" = set; then 2759 echo $ECHO_N "(cached) $ECHO_C" >&6 2760else 2761 cat >conftest.$ac_ext <<_ACEOF 2762/* confdefs.h. */ 2763_ACEOF 2764cat confdefs.h >>conftest.$ac_ext 2765cat >>conftest.$ac_ext <<_ACEOF 2766/* end confdefs.h. */ 2767 2768int 2769main () 2770{ 2771 2772 ; 2773 return 0; 2774} 2775_ACEOF 2776rm -f conftest.o conftest.obj 2777if { (ac_try="$ac_compile" 2778case "(($ac_try" in 2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2780 *) ac_try_echo=$ac_try;; 2781esac 2782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2783 (eval "$ac_compile") 2>&5 2784 ac_status=$? 2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2786 (exit $ac_status); }; then 2787 for ac_file in conftest.o conftest.obj conftest.*; do 2788 test -f "$ac_file" || continue; 2789 case $ac_file in 2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2791 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2792 break;; 2793 esac 2794done 2795else 2796 echo "$as_me: failed program was:" >&5 2797sed 's/^/| /' conftest.$ac_ext >&5 2798 2799{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2800See \`config.log' for more details." >&5 2801echo "$as_me: error: cannot compute suffix of object files: cannot compile 2802See \`config.log' for more details." >&2;} 2803 { (exit 1); exit 1; }; } 2804fi 2805 2806rm -f conftest.$ac_cv_objext conftest.$ac_ext 2807fi 2808{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2809echo "${ECHO_T}$ac_cv_objext" >&6; } 2810OBJEXT=$ac_cv_objext 2811ac_objext=$OBJEXT 2812{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2813echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2814if test "${ac_cv_c_compiler_gnu+set}" = set; then 2815 echo $ECHO_N "(cached) $ECHO_C" >&6 2816else 2817 cat >conftest.$ac_ext <<_ACEOF 2818/* confdefs.h. */ 2819_ACEOF 2820cat confdefs.h >>conftest.$ac_ext 2821cat >>conftest.$ac_ext <<_ACEOF 2822/* end confdefs.h. */ 2823 2824int 2825main () 2826{ 2827#ifndef __GNUC__ 2828 choke me 2829#endif 2830 2831 ; 2832 return 0; 2833} 2834_ACEOF 2835rm -f conftest.$ac_objext 2836if { (ac_try="$ac_compile" 2837case "(($ac_try" in 2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2839 *) ac_try_echo=$ac_try;; 2840esac 2841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2842 (eval "$ac_compile") 2>conftest.er1 2843 ac_status=$? 2844 grep -v '^ *+' conftest.er1 >conftest.err 2845 rm -f conftest.er1 2846 cat conftest.err >&5 2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2848 (exit $ac_status); } && { 2849 test -z "$ac_c_werror_flag" || 2850 test ! -s conftest.err 2851 } && test -s conftest.$ac_objext; then 2852 ac_compiler_gnu=yes 2853else 2854 echo "$as_me: failed program was:" >&5 2855sed 's/^/| /' conftest.$ac_ext >&5 2856 2857 ac_compiler_gnu=no 2858fi 2859 2860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2861ac_cv_c_compiler_gnu=$ac_compiler_gnu 2862 2863fi 2864{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2865echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2866GCC=`test $ac_compiler_gnu = yes && echo yes` 2867ac_test_CFLAGS=${CFLAGS+set} 2868ac_save_CFLAGS=$CFLAGS 2869{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2870echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2871if test "${ac_cv_prog_cc_g+set}" = set; then 2872 echo $ECHO_N "(cached) $ECHO_C" >&6 2873else 2874 ac_save_c_werror_flag=$ac_c_werror_flag 2875 ac_c_werror_flag=yes 2876 ac_cv_prog_cc_g=no 2877 CFLAGS="-g" 2878 cat >conftest.$ac_ext <<_ACEOF 2879/* confdefs.h. */ 2880_ACEOF 2881cat confdefs.h >>conftest.$ac_ext 2882cat >>conftest.$ac_ext <<_ACEOF 2883/* end confdefs.h. */ 2884 2885int 2886main () 2887{ 2888 2889 ; 2890 return 0; 2891} 2892_ACEOF 2893rm -f conftest.$ac_objext 2894if { (ac_try="$ac_compile" 2895case "(($ac_try" in 2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2897 *) ac_try_echo=$ac_try;; 2898esac 2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2900 (eval "$ac_compile") 2>conftest.er1 2901 ac_status=$? 2902 grep -v '^ *+' conftest.er1 >conftest.err 2903 rm -f conftest.er1 2904 cat conftest.err >&5 2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2906 (exit $ac_status); } && { 2907 test -z "$ac_c_werror_flag" || 2908 test ! -s conftest.err 2909 } && test -s conftest.$ac_objext; then 2910 ac_cv_prog_cc_g=yes 2911else 2912 echo "$as_me: failed program was:" >&5 2913sed 's/^/| /' conftest.$ac_ext >&5 2914 2915 CFLAGS="" 2916 cat >conftest.$ac_ext <<_ACEOF 2917/* confdefs.h. */ 2918_ACEOF 2919cat confdefs.h >>conftest.$ac_ext 2920cat >>conftest.$ac_ext <<_ACEOF 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931rm -f conftest.$ac_objext 2932if { (ac_try="$ac_compile" 2933case "(($ac_try" in 2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2935 *) ac_try_echo=$ac_try;; 2936esac 2937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2938 (eval "$ac_compile") 2>conftest.er1 2939 ac_status=$? 2940 grep -v '^ *+' conftest.er1 >conftest.err 2941 rm -f conftest.er1 2942 cat conftest.err >&5 2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2944 (exit $ac_status); } && { 2945 test -z "$ac_c_werror_flag" || 2946 test ! -s conftest.err 2947 } && test -s conftest.$ac_objext; then 2948 : 2949else 2950 echo "$as_me: failed program was:" >&5 2951sed 's/^/| /' conftest.$ac_ext >&5 2952 2953 ac_c_werror_flag=$ac_save_c_werror_flag 2954 CFLAGS="-g" 2955 cat >conftest.$ac_ext <<_ACEOF 2956/* confdefs.h. */ 2957_ACEOF 2958cat confdefs.h >>conftest.$ac_ext 2959cat >>conftest.$ac_ext <<_ACEOF 2960/* end confdefs.h. */ 2961 2962int 2963main () 2964{ 2965 2966 ; 2967 return 0; 2968} 2969_ACEOF 2970rm -f conftest.$ac_objext 2971if { (ac_try="$ac_compile" 2972case "(($ac_try" in 2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2974 *) ac_try_echo=$ac_try;; 2975esac 2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2977 (eval "$ac_compile") 2>conftest.er1 2978 ac_status=$? 2979 grep -v '^ *+' conftest.er1 >conftest.err 2980 rm -f conftest.er1 2981 cat conftest.err >&5 2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2983 (exit $ac_status); } && { 2984 test -z "$ac_c_werror_flag" || 2985 test ! -s conftest.err 2986 } && test -s conftest.$ac_objext; then 2987 ac_cv_prog_cc_g=yes 2988else 2989 echo "$as_me: failed program was:" >&5 2990sed 's/^/| /' conftest.$ac_ext >&5 2991 2992 2993fi 2994 2995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2996fi 2997 2998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2999fi 3000 3001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3002 ac_c_werror_flag=$ac_save_c_werror_flag 3003fi 3004{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3005echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3006if test "$ac_test_CFLAGS" = set; then 3007 CFLAGS=$ac_save_CFLAGS 3008elif test $ac_cv_prog_cc_g = yes; then 3009 if test "$GCC" = yes; then 3010 CFLAGS="-g -O2" 3011 else 3012 CFLAGS="-g" 3013 fi 3014else 3015 if test "$GCC" = yes; then 3016 CFLAGS="-O2" 3017 else 3018 CFLAGS= 3019 fi 3020fi 3021{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3022echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3023if test "${ac_cv_prog_cc_c89+set}" = set; then 3024 echo $ECHO_N "(cached) $ECHO_C" >&6 3025else 3026 ac_cv_prog_cc_c89=no 3027ac_save_CC=$CC 3028cat >conftest.$ac_ext <<_ACEOF 3029/* confdefs.h. */ 3030_ACEOF 3031cat confdefs.h >>conftest.$ac_ext 3032cat >>conftest.$ac_ext <<_ACEOF 3033/* end confdefs.h. */ 3034#include <stdarg.h> 3035#include <stdio.h> 3036#include <sys/types.h> 3037#include <sys/stat.h> 3038/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3039struct buf { int x; }; 3040FILE * (*rcsopen) (struct buf *, struct stat *, int); 3041static char *e (p, i) 3042 char **p; 3043 int i; 3044{ 3045 return p[i]; 3046} 3047static char *f (char * (*g) (char **, int), char **p, ...) 3048{ 3049 char *s; 3050 va_list v; 3051 va_start (v,p); 3052 s = g (p, va_arg (v,int)); 3053 va_end (v); 3054 return s; 3055} 3056 3057/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3058 function prototypes and stuff, but not '\xHH' hex character constants. 3059 These don't provoke an error unfortunately, instead are silently treated 3060 as 'x'. The following induces an error, until -std is added to get 3061 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3062 array size at least. It's necessary to write '\x00'==0 to get something 3063 that's true only with -std. */ 3064int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3065 3066/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3067 inside strings and character constants. */ 3068#define FOO(x) 'x' 3069int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3070 3071int test (int i, double x); 3072struct s1 {int (*f) (int a);}; 3073struct s2 {int (*f) (double a);}; 3074int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3075int argc; 3076char **argv; 3077int 3078main () 3079{ 3080return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3081 ; 3082 return 0; 3083} 3084_ACEOF 3085for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3086 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3087do 3088 CC="$ac_save_CC $ac_arg" 3089 rm -f conftest.$ac_objext 3090if { (ac_try="$ac_compile" 3091case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094esac 3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3096 (eval "$ac_compile") 2>conftest.er1 3097 ac_status=$? 3098 grep -v '^ *+' conftest.er1 >conftest.err 3099 rm -f conftest.er1 3100 cat conftest.err >&5 3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3102 (exit $ac_status); } && { 3103 test -z "$ac_c_werror_flag" || 3104 test ! -s conftest.err 3105 } && test -s conftest.$ac_objext; then 3106 ac_cv_prog_cc_c89=$ac_arg 3107else 3108 echo "$as_me: failed program was:" >&5 3109sed 's/^/| /' conftest.$ac_ext >&5 3110 3111 3112fi 3113 3114rm -f core conftest.err conftest.$ac_objext 3115 test "x$ac_cv_prog_cc_c89" != "xno" && break 3116done 3117rm -f conftest.$ac_ext 3118CC=$ac_save_CC 3119 3120fi 3121# AC_CACHE_VAL 3122case "x$ac_cv_prog_cc_c89" in 3123 x) 3124 { echo "$as_me:$LINENO: result: none needed" >&5 3125echo "${ECHO_T}none needed" >&6; } ;; 3126 xno) 3127 { echo "$as_me:$LINENO: result: unsupported" >&5 3128echo "${ECHO_T}unsupported" >&6; } ;; 3129 *) 3130 CC="$CC $ac_cv_prog_cc_c89" 3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3132echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3133esac 3134 3135 3136ac_ext=c 3137ac_cpp='$CPP $CPPFLAGS' 3138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3140ac_compiler_gnu=$ac_cv_c_compiler_gnu 3141 3142 ac_ext=c 3143ac_cpp='$CPP $CPPFLAGS' 3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3146ac_compiler_gnu=$ac_cv_c_compiler_gnu 3147{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3148echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3149# On Suns, sometimes $CPP names a directory. 3150if test -n "$CPP" && test -d "$CPP"; then 3151 CPP= 3152fi 3153if test -z "$CPP"; then 3154 if test "${ac_cv_prog_CPP+set}" = set; then 3155 echo $ECHO_N "(cached) $ECHO_C" >&6 3156else 3157 # Double quotes because CPP needs to be expanded 3158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3159 do 3160 ac_preproc_ok=false 3161for ac_c_preproc_warn_flag in '' yes 3162do 3163 # Use a header file that comes with gcc, so configuring glibc 3164 # with a fresh cross-compiler works. 3165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3166 # <limits.h> exists even on freestanding compilers. 3167 # On the NeXT, cc -E runs the code through the compiler's parser, 3168 # not just through cpp. "Syntax error" is here to catch this case. 3169 cat >conftest.$ac_ext <<_ACEOF 3170/* confdefs.h. */ 3171_ACEOF 3172cat confdefs.h >>conftest.$ac_ext 3173cat >>conftest.$ac_ext <<_ACEOF 3174/* end confdefs.h. */ 3175#ifdef __STDC__ 3176# include <limits.h> 3177#else 3178# include <assert.h> 3179#endif 3180 Syntax error 3181_ACEOF 3182if { (ac_try="$ac_cpp conftest.$ac_ext" 3183case "(($ac_try" in 3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3185 *) ac_try_echo=$ac_try;; 3186esac 3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3189 ac_status=$? 3190 grep -v '^ *+' conftest.er1 >conftest.err 3191 rm -f conftest.er1 3192 cat conftest.err >&5 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); } >/dev/null && { 3195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3196 test ! -s conftest.err 3197 }; then 3198 : 3199else 3200 echo "$as_me: failed program was:" >&5 3201sed 's/^/| /' conftest.$ac_ext >&5 3202 3203 # Broken: fails on valid input. 3204continue 3205fi 3206 3207rm -f conftest.err conftest.$ac_ext 3208 3209 # OK, works on sane cases. Now check whether nonexistent headers 3210 # can be detected and how. 3211 cat >conftest.$ac_ext <<_ACEOF 3212/* confdefs.h. */ 3213_ACEOF 3214cat confdefs.h >>conftest.$ac_ext 3215cat >>conftest.$ac_ext <<_ACEOF 3216/* end confdefs.h. */ 3217#include <ac_nonexistent.h> 3218_ACEOF 3219if { (ac_try="$ac_cpp conftest.$ac_ext" 3220case "(($ac_try" in 3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3222 *) ac_try_echo=$ac_try;; 3223esac 3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3226 ac_status=$? 3227 grep -v '^ *+' conftest.er1 >conftest.err 3228 rm -f conftest.er1 3229 cat conftest.err >&5 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3231 (exit $ac_status); } >/dev/null && { 3232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3233 test ! -s conftest.err 3234 }; then 3235 # Broken: success on invalid input. 3236continue 3237else 3238 echo "$as_me: failed program was:" >&5 3239sed 's/^/| /' conftest.$ac_ext >&5 3240 3241 # Passes both tests. 3242ac_preproc_ok=: 3243break 3244fi 3245 3246rm -f conftest.err conftest.$ac_ext 3247 3248done 3249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3250rm -f conftest.err conftest.$ac_ext 3251if $ac_preproc_ok; then 3252 break 3253fi 3254 3255 done 3256 ac_cv_prog_CPP=$CPP 3257 3258fi 3259 CPP=$ac_cv_prog_CPP 3260else 3261 ac_cv_prog_CPP=$CPP 3262fi 3263{ echo "$as_me:$LINENO: result: $CPP" >&5 3264echo "${ECHO_T}$CPP" >&6; } 3265ac_preproc_ok=false 3266for ac_c_preproc_warn_flag in '' yes 3267do 3268 # Use a header file that comes with gcc, so configuring glibc 3269 # with a fresh cross-compiler works. 3270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3271 # <limits.h> exists even on freestanding compilers. 3272 # On the NeXT, cc -E runs the code through the compiler's parser, 3273 # not just through cpp. "Syntax error" is here to catch this case. 3274 cat >conftest.$ac_ext <<_ACEOF 3275/* confdefs.h. */ 3276_ACEOF 3277cat confdefs.h >>conftest.$ac_ext 3278cat >>conftest.$ac_ext <<_ACEOF 3279/* end confdefs.h. */ 3280#ifdef __STDC__ 3281# include <limits.h> 3282#else 3283# include <assert.h> 3284#endif 3285 Syntax error 3286_ACEOF 3287if { (ac_try="$ac_cpp conftest.$ac_ext" 3288case "(($ac_try" in 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3290 *) ac_try_echo=$ac_try;; 3291esac 3292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3294 ac_status=$? 3295 grep -v '^ *+' conftest.er1 >conftest.err 3296 rm -f conftest.er1 3297 cat conftest.err >&5 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } >/dev/null && { 3300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3301 test ! -s conftest.err 3302 }; then 3303 : 3304else 3305 echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308 # Broken: fails on valid input. 3309continue 3310fi 3311 3312rm -f conftest.err conftest.$ac_ext 3313 3314 # OK, works on sane cases. Now check whether nonexistent headers 3315 # can be detected and how. 3316 cat >conftest.$ac_ext <<_ACEOF 3317/* confdefs.h. */ 3318_ACEOF 3319cat confdefs.h >>conftest.$ac_ext 3320cat >>conftest.$ac_ext <<_ACEOF 3321/* end confdefs.h. */ 3322#include <ac_nonexistent.h> 3323_ACEOF 3324if { (ac_try="$ac_cpp conftest.$ac_ext" 3325case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328esac 3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3331 ac_status=$? 3332 grep -v '^ *+' conftest.er1 >conftest.err 3333 rm -f conftest.er1 3334 cat conftest.err >&5 3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336 (exit $ac_status); } >/dev/null && { 3337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3338 test ! -s conftest.err 3339 }; then 3340 # Broken: success on invalid input. 3341continue 3342else 3343 echo "$as_me: failed program was:" >&5 3344sed 's/^/| /' conftest.$ac_ext >&5 3345 3346 # Passes both tests. 3347ac_preproc_ok=: 3348break 3349fi 3350 3351rm -f conftest.err conftest.$ac_ext 3352 3353done 3354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3355rm -f conftest.err conftest.$ac_ext 3356if $ac_preproc_ok; then 3357 : 3358else 3359 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3360See \`config.log' for more details." >&5 3361echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3362See \`config.log' for more details." >&2;} 3363 { (exit 1); exit 1; }; } 3364fi 3365 3366ac_ext=c 3367ac_cpp='$CPP $CPPFLAGS' 3368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3370ac_compiler_gnu=$ac_cv_c_compiler_gnu 3371 3372 3373 # Find a good install program. We prefer a C program (faster), 3374# so one script is as good as another. But avoid the broken or 3375# incompatible versions: 3376# SysV /etc/install, /usr/sbin/install 3377# SunOS /usr/etc/install 3378# IRIX /sbin/install 3379# AIX /bin/install 3380# AmigaOS /C/install, which installs bootblocks on floppy discs 3381# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3382# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3383# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3384# OS/2's system install, which has a completely different semantic 3385# ./install, which can be erroneously created by make from ./install.sh. 3386{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3387echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3388if test -z "$INSTALL"; then 3389if test "${ac_cv_path_install+set}" = set; then 3390 echo $ECHO_N "(cached) $ECHO_C" >&6 3391else 3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3393for as_dir in $PATH 3394do 3395 IFS=$as_save_IFS 3396 test -z "$as_dir" && as_dir=. 3397 # Account for people who put trailing slashes in PATH elements. 3398case $as_dir/ in 3399 ./ | .// | /cC/* | \ 3400 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3401 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3402 /usr/ucb/* ) ;; 3403 *) 3404 # OSF1 and SCO ODT 3.0 have their own names for install. 3405 # Don't use installbsd from OSF since it installs stuff as root 3406 # by default. 3407 for ac_prog in ginstall scoinst install; do 3408 for ac_exec_ext in '' $ac_executable_extensions; do 3409 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3410 if test $ac_prog = install && 3411 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3412 # AIX install. It has an incompatible calling convention. 3413 : 3414 elif test $ac_prog = install && 3415 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3416 # program-specific install script used by HP pwplus--don't use. 3417 : 3418 else 3419 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3420 break 3 3421 fi 3422 fi 3423 done 3424 done 3425 ;; 3426esac 3427done 3428IFS=$as_save_IFS 3429 3430 3431fi 3432 if test "${ac_cv_path_install+set}" = set; then 3433 INSTALL=$ac_cv_path_install 3434 else 3435 # As a last resort, use the slow shell script. Don't cache a 3436 # value for INSTALL within a source directory, because that will 3437 # break other packages using the cache if that directory is 3438 # removed, or if the value is a relative name. 3439 INSTALL=$ac_install_sh 3440 fi 3441fi 3442{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3443echo "${ECHO_T}$INSTALL" >&6; } 3444 3445# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3446# It thinks the first close brace ends the variable substitution. 3447test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3448 3449test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3450 3451test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3452 3453 3454 #-------------------------------------------------------------------- 3455 # Checks to see if the make program sets the $MAKE variable. 3456 #-------------------------------------------------------------------- 3457 3458 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3459echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3460set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3461if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3462 echo $ECHO_N "(cached) $ECHO_C" >&6 3463else 3464 cat >conftest.make <<\_ACEOF 3465SHELL = /bin/sh 3466all: 3467 @echo '@@@%%%=$(MAKE)=@@@%%%' 3468_ACEOF 3469# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3470case `${MAKE-make} -f conftest.make 2>/dev/null` in 3471 *@@@%%%=?*=@@@%%%*) 3472 eval ac_cv_prog_make_${ac_make}_set=yes;; 3473 *) 3474 eval ac_cv_prog_make_${ac_make}_set=no;; 3475esac 3476rm -f conftest.make 3477fi 3478if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3479 { echo "$as_me:$LINENO: result: yes" >&5 3480echo "${ECHO_T}yes" >&6; } 3481 SET_MAKE= 3482else 3483 { echo "$as_me:$LINENO: result: no" >&5 3484echo "${ECHO_T}no" >&6; } 3485 SET_MAKE="MAKE=${MAKE-make}" 3486fi 3487 3488 3489 #-------------------------------------------------------------------- 3490 # Find ranlib 3491 #-------------------------------------------------------------------- 3492 3493 if test -n "$ac_tool_prefix"; then 3494 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3495set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3496{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3498if test "${ac_cv_prog_RANLIB+set}" = set; then 3499 echo $ECHO_N "(cached) $ECHO_C" >&6 3500else 3501 if test -n "$RANLIB"; then 3502 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3503else 3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3505for as_dir in $PATH 3506do 3507 IFS=$as_save_IFS 3508 test -z "$as_dir" && as_dir=. 3509 for ac_exec_ext in '' $ac_executable_extensions; do 3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3511 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3513 break 2 3514 fi 3515done 3516done 3517IFS=$as_save_IFS 3518 3519fi 3520fi 3521RANLIB=$ac_cv_prog_RANLIB 3522if test -n "$RANLIB"; then 3523 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3524echo "${ECHO_T}$RANLIB" >&6; } 3525else 3526 { echo "$as_me:$LINENO: result: no" >&5 3527echo "${ECHO_T}no" >&6; } 3528fi 3529 3530 3531fi 3532if test -z "$ac_cv_prog_RANLIB"; then 3533 ac_ct_RANLIB=$RANLIB 3534 # Extract the first word of "ranlib", so it can be a program name with args. 3535set dummy ranlib; ac_word=$2 3536{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3538if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3539 echo $ECHO_N "(cached) $ECHO_C" >&6 3540else 3541 if test -n "$ac_ct_RANLIB"; then 3542 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3543else 3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3545for as_dir in $PATH 3546do 3547 IFS=$as_save_IFS 3548 test -z "$as_dir" && as_dir=. 3549 for ac_exec_ext in '' $ac_executable_extensions; do 3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3551 ac_cv_prog_ac_ct_RANLIB="ranlib" 3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3553 break 2 3554 fi 3555done 3556done 3557IFS=$as_save_IFS 3558 3559fi 3560fi 3561ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3562if test -n "$ac_ct_RANLIB"; then 3563 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3564echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3565else 3566 { echo "$as_me:$LINENO: result: no" >&5 3567echo "${ECHO_T}no" >&6; } 3568fi 3569 3570 if test "x$ac_ct_RANLIB" = x; then 3571 RANLIB=":" 3572 else 3573 case $cross_compiling:$ac_tool_warned in 3574yes:) 3575{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3576whose name does not start with the host triplet. If you think this 3577configuration is useful to you, please write to autoconf@gnu.org." >&5 3578echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3579whose name does not start with the host triplet. If you think this 3580configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3581ac_tool_warned=yes ;; 3582esac 3583 RANLIB=$ac_ct_RANLIB 3584 fi 3585else 3586 RANLIB="$ac_cv_prog_RANLIB" 3587fi 3588 3589 3590 #-------------------------------------------------------------------- 3591 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3592 #-------------------------------------------------------------------- 3593 3594 3595 3596 3597 3598 3599{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3600echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3601if test "${ac_cv_path_GREP+set}" = set; then 3602 echo $ECHO_N "(cached) $ECHO_C" >&6 3603else 3604 # Extract the first word of "grep ggrep" to use in msg output 3605if test -z "$GREP"; then 3606set dummy grep ggrep; ac_prog_name=$2 3607if test "${ac_cv_path_GREP+set}" = set; then 3608 echo $ECHO_N "(cached) $ECHO_C" >&6 3609else 3610 ac_path_GREP_found=false 3611# Loop through the user's path and test for each of PROGNAME-LIST 3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3614do 3615 IFS=$as_save_IFS 3616 test -z "$as_dir" && as_dir=. 3617 for ac_prog in grep ggrep; do 3618 for ac_exec_ext in '' $ac_executable_extensions; do 3619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3620 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3621 # Check for GNU ac_path_GREP and select it if it is found. 3622 # Check for GNU $ac_path_GREP 3623case `"$ac_path_GREP" --version 2>&1` in 3624*GNU*) 3625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3626*) 3627 ac_count=0 3628 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3629 while : 3630 do 3631 cat "conftest.in" "conftest.in" >"conftest.tmp" 3632 mv "conftest.tmp" "conftest.in" 3633 cp "conftest.in" "conftest.nl" 3634 echo 'GREP' >> "conftest.nl" 3635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3637 ac_count=`expr $ac_count + 1` 3638 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3639 # Best one so far, save it but keep looking for a better one 3640 ac_cv_path_GREP="$ac_path_GREP" 3641 ac_path_GREP_max=$ac_count 3642 fi 3643 # 10*(2^10) chars as input seems more than enough 3644 test $ac_count -gt 10 && break 3645 done 3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3647esac 3648 3649 3650 $ac_path_GREP_found && break 3 3651 done 3652done 3653 3654done 3655IFS=$as_save_IFS 3656 3657 3658fi 3659 3660GREP="$ac_cv_path_GREP" 3661if test -z "$GREP"; then 3662 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3663echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3664 { (exit 1); exit 1; }; } 3665fi 3666 3667else 3668 ac_cv_path_GREP=$GREP 3669fi 3670 3671 3672fi 3673{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3674echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3675 GREP="$ac_cv_path_GREP" 3676 3677 3678{ echo "$as_me:$LINENO: checking for egrep" >&5 3679echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3680if test "${ac_cv_path_EGREP+set}" = set; then 3681 echo $ECHO_N "(cached) $ECHO_C" >&6 3682else 3683 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3684 then ac_cv_path_EGREP="$GREP -E" 3685 else 3686 # Extract the first word of "egrep" to use in msg output 3687if test -z "$EGREP"; then 3688set dummy egrep; ac_prog_name=$2 3689if test "${ac_cv_path_EGREP+set}" = set; then 3690 echo $ECHO_N "(cached) $ECHO_C" >&6 3691else 3692 ac_path_EGREP_found=false 3693# Loop through the user's path and test for each of PROGNAME-LIST 3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3695for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3696do 3697 IFS=$as_save_IFS 3698 test -z "$as_dir" && as_dir=. 3699 for ac_prog in egrep; do 3700 for ac_exec_ext in '' $ac_executable_extensions; do 3701 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3702 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3703 # Check for GNU ac_path_EGREP and select it if it is found. 3704 # Check for GNU $ac_path_EGREP 3705case `"$ac_path_EGREP" --version 2>&1` in 3706*GNU*) 3707 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3708*) 3709 ac_count=0 3710 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3711 while : 3712 do 3713 cat "conftest.in" "conftest.in" >"conftest.tmp" 3714 mv "conftest.tmp" "conftest.in" 3715 cp "conftest.in" "conftest.nl" 3716 echo 'EGREP' >> "conftest.nl" 3717 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3719 ac_count=`expr $ac_count + 1` 3720 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3721 # Best one so far, save it but keep looking for a better one 3722 ac_cv_path_EGREP="$ac_path_EGREP" 3723 ac_path_EGREP_max=$ac_count 3724 fi 3725 # 10*(2^10) chars as input seems more than enough 3726 test $ac_count -gt 10 && break 3727 done 3728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3729esac 3730 3731 3732 $ac_path_EGREP_found && break 3 3733 done 3734done 3735 3736done 3737IFS=$as_save_IFS 3738 3739 3740fi 3741 3742EGREP="$ac_cv_path_EGREP" 3743if test -z "$EGREP"; then 3744 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3745echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3746 { (exit 1); exit 1; }; } 3747fi 3748 3749else 3750 ac_cv_path_EGREP=$EGREP 3751fi 3752 3753 3754 fi 3755fi 3756{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3757echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3758 EGREP="$ac_cv_path_EGREP" 3759 3760 3761{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3762echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3763if test "${ac_cv_header_stdc+set}" = set; then 3764 echo $ECHO_N "(cached) $ECHO_C" >&6 3765else 3766 cat >conftest.$ac_ext <<_ACEOF 3767/* confdefs.h. */ 3768_ACEOF 3769cat confdefs.h >>conftest.$ac_ext 3770cat >>conftest.$ac_ext <<_ACEOF 3771/* end confdefs.h. */ 3772#include <stdlib.h> 3773#include <stdarg.h> 3774#include <string.h> 3775#include <float.h> 3776 3777int 3778main () 3779{ 3780 3781 ; 3782 return 0; 3783} 3784_ACEOF 3785rm -f conftest.$ac_objext 3786if { (ac_try="$ac_compile" 3787case "(($ac_try" in 3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3789 *) ac_try_echo=$ac_try;; 3790esac 3791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3792 (eval "$ac_compile") 2>conftest.er1 3793 ac_status=$? 3794 grep -v '^ *+' conftest.er1 >conftest.err 3795 rm -f conftest.er1 3796 cat conftest.err >&5 3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3798 (exit $ac_status); } && { 3799 test -z "$ac_c_werror_flag" || 3800 test ! -s conftest.err 3801 } && test -s conftest.$ac_objext; then 3802 ac_cv_header_stdc=yes 3803else 3804 echo "$as_me: failed program was:" >&5 3805sed 's/^/| /' conftest.$ac_ext >&5 3806 3807 ac_cv_header_stdc=no 3808fi 3809 3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3811 3812if test $ac_cv_header_stdc = yes; then 3813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3814 cat >conftest.$ac_ext <<_ACEOF 3815/* confdefs.h. */ 3816_ACEOF 3817cat confdefs.h >>conftest.$ac_ext 3818cat >>conftest.$ac_ext <<_ACEOF 3819/* end confdefs.h. */ 3820#include <string.h> 3821 3822_ACEOF 3823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3824 $EGREP "memchr" >/dev/null 2>&1; then 3825 : 3826else 3827 ac_cv_header_stdc=no 3828fi 3829rm -f -r conftest* 3830 3831fi 3832 3833if test $ac_cv_header_stdc = yes; then 3834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3835 cat >conftest.$ac_ext <<_ACEOF 3836/* confdefs.h. */ 3837_ACEOF 3838cat confdefs.h >>conftest.$ac_ext 3839cat >>conftest.$ac_ext <<_ACEOF 3840/* end confdefs.h. */ 3841#include <stdlib.h> 3842 3843_ACEOF 3844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3845 $EGREP "free" >/dev/null 2>&1; then 3846 : 3847else 3848 ac_cv_header_stdc=no 3849fi 3850rm -f -r conftest* 3851 3852fi 3853 3854if test $ac_cv_header_stdc = yes; then 3855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3856 if test "$cross_compiling" = yes; then 3857 : 3858else 3859 cat >conftest.$ac_ext <<_ACEOF 3860/* confdefs.h. */ 3861_ACEOF 3862cat confdefs.h >>conftest.$ac_ext 3863cat >>conftest.$ac_ext <<_ACEOF 3864/* end confdefs.h. */ 3865#include <ctype.h> 3866#include <stdlib.h> 3867#if ((' ' & 0x0FF) == 0x020) 3868# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3869# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3870#else 3871# define ISLOWER(c) \ 3872 (('a' <= (c) && (c) <= 'i') \ 3873 || ('j' <= (c) && (c) <= 'r') \ 3874 || ('s' <= (c) && (c) <= 'z')) 3875# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3876#endif 3877 3878#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3879int 3880main () 3881{ 3882 int i; 3883 for (i = 0; i < 256; i++) 3884 if (XOR (islower (i), ISLOWER (i)) 3885 || toupper (i) != TOUPPER (i)) 3886 return 2; 3887 return 0; 3888} 3889_ACEOF 3890rm -f conftest$ac_exeext 3891if { (ac_try="$ac_link" 3892case "(($ac_try" in 3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3894 *) ac_try_echo=$ac_try;; 3895esac 3896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3897 (eval "$ac_link") 2>&5 3898 ac_status=$? 3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3901 { (case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904esac 3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3906 (eval "$ac_try") 2>&5 3907 ac_status=$? 3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3909 (exit $ac_status); }; }; then 3910 : 3911else 3912 echo "$as_me: program exited with status $ac_status" >&5 3913echo "$as_me: failed program was:" >&5 3914sed 's/^/| /' conftest.$ac_ext >&5 3915 3916( exit $ac_status ) 3917ac_cv_header_stdc=no 3918fi 3919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3920fi 3921 3922 3923fi 3924fi 3925{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3926echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3927if test $ac_cv_header_stdc = yes; then 3928 3929cat >>confdefs.h <<\_ACEOF 3930#define STDC_HEADERS 1 3931_ACEOF 3932 3933fi 3934 3935# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3946 inttypes.h stdint.h unistd.h 3947do 3948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3949{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3952 echo $ECHO_N "(cached) $ECHO_C" >&6 3953else 3954 cat >conftest.$ac_ext <<_ACEOF 3955/* confdefs.h. */ 3956_ACEOF 3957cat confdefs.h >>conftest.$ac_ext 3958cat >>conftest.$ac_ext <<_ACEOF 3959/* end confdefs.h. */ 3960$ac_includes_default 3961 3962#include <$ac_header> 3963_ACEOF 3964rm -f conftest.$ac_objext 3965if { (ac_try="$ac_compile" 3966case "(($ac_try" in 3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3968 *) ac_try_echo=$ac_try;; 3969esac 3970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3971 (eval "$ac_compile") 2>conftest.er1 3972 ac_status=$? 3973 grep -v '^ *+' conftest.er1 >conftest.err 3974 rm -f conftest.er1 3975 cat conftest.err >&5 3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3977 (exit $ac_status); } && { 3978 test -z "$ac_c_werror_flag" || 3979 test ! -s conftest.err 3980 } && test -s conftest.$ac_objext; then 3981 eval "$as_ac_Header=yes" 3982else 3983 echo "$as_me: failed program was:" >&5 3984sed 's/^/| /' conftest.$ac_ext >&5 3985 3986 eval "$as_ac_Header=no" 3987fi 3988 3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3990fi 3991ac_res=`eval echo '${'$as_ac_Header'}'` 3992 { echo "$as_me:$LINENO: result: $ac_res" >&5 3993echo "${ECHO_T}$ac_res" >&6; } 3994if test `eval echo '${'$as_ac_Header'}'` = yes; then 3995 cat >>confdefs.h <<_ACEOF 3996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3997_ACEOF 3998 3999fi 4000 4001done 4002 4003 4004 4005 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4006 4007 4008 #------------------------------------------------------------------------ 4009 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4010 # It makes compiling go faster. (This is only a performance feature.) 4011 #------------------------------------------------------------------------ 4012 4013 if test -z "$no_pipe" -a -n "$GCC"; then 4014 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4015echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4016if test "${tcl_cv_cc_pipe+set}" = set; then 4017 echo $ECHO_N "(cached) $ECHO_C" >&6 4018else 4019 4020 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4021 cat >conftest.$ac_ext <<_ACEOF 4022/* confdefs.h. */ 4023_ACEOF 4024cat confdefs.h >>conftest.$ac_ext 4025cat >>conftest.$ac_ext <<_ACEOF 4026/* end confdefs.h. */ 4027 4028int 4029main () 4030{ 4031 4032 ; 4033 return 0; 4034} 4035_ACEOF 4036rm -f conftest.$ac_objext 4037if { (ac_try="$ac_compile" 4038case "(($ac_try" in 4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4040 *) ac_try_echo=$ac_try;; 4041esac 4042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4043 (eval "$ac_compile") 2>conftest.er1 4044 ac_status=$? 4045 grep -v '^ *+' conftest.er1 >conftest.err 4046 rm -f conftest.er1 4047 cat conftest.err >&5 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4049 (exit $ac_status); } && { 4050 test -z "$ac_c_werror_flag" || 4051 test ! -s conftest.err 4052 } && test -s conftest.$ac_objext; then 4053 tcl_cv_cc_pipe=yes 4054else 4055 echo "$as_me: failed program was:" >&5 4056sed 's/^/| /' conftest.$ac_ext >&5 4057 4058 tcl_cv_cc_pipe=no 4059fi 4060 4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062 CFLAGS=$hold_cflags 4063fi 4064{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4065echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4066 if test $tcl_cv_cc_pipe = yes; then 4067 CFLAGS="$CFLAGS -pipe" 4068 fi 4069 fi 4070 4071 #-------------------------------------------------------------------- 4072 # Common compiler flag setup 4073 #-------------------------------------------------------------------- 4074 4075 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4076echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4077if test "${ac_cv_c_bigendian+set}" = set; then 4078 echo $ECHO_N "(cached) $ECHO_C" >&6 4079else 4080 # See if sys/param.h defines the BYTE_ORDER macro. 4081cat >conftest.$ac_ext <<_ACEOF 4082/* confdefs.h. */ 4083_ACEOF 4084cat confdefs.h >>conftest.$ac_ext 4085cat >>conftest.$ac_ext <<_ACEOF 4086/* end confdefs.h. */ 4087#include <sys/types.h> 4088#include <sys/param.h> 4089 4090int 4091main () 4092{ 4093#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4094 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4095 bogus endian macros 4096#endif 4097 4098 ; 4099 return 0; 4100} 4101_ACEOF 4102rm -f conftest.$ac_objext 4103if { (ac_try="$ac_compile" 4104case "(($ac_try" in 4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4106 *) ac_try_echo=$ac_try;; 4107esac 4108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4109 (eval "$ac_compile") 2>conftest.er1 4110 ac_status=$? 4111 grep -v '^ *+' conftest.er1 >conftest.err 4112 rm -f conftest.er1 4113 cat conftest.err >&5 4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4115 (exit $ac_status); } && { 4116 test -z "$ac_c_werror_flag" || 4117 test ! -s conftest.err 4118 } && test -s conftest.$ac_objext; then 4119 # It does; now see whether it defined to BIG_ENDIAN or not. 4120cat >conftest.$ac_ext <<_ACEOF 4121/* confdefs.h. */ 4122_ACEOF 4123cat confdefs.h >>conftest.$ac_ext 4124cat >>conftest.$ac_ext <<_ACEOF 4125/* end confdefs.h. */ 4126#include <sys/types.h> 4127#include <sys/param.h> 4128 4129int 4130main () 4131{ 4132#if BYTE_ORDER != BIG_ENDIAN 4133 not big endian 4134#endif 4135 4136 ; 4137 return 0; 4138} 4139_ACEOF 4140rm -f conftest.$ac_objext 4141if { (ac_try="$ac_compile" 4142case "(($ac_try" in 4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4144 *) ac_try_echo=$ac_try;; 4145esac 4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4147 (eval "$ac_compile") 2>conftest.er1 4148 ac_status=$? 4149 grep -v '^ *+' conftest.er1 >conftest.err 4150 rm -f conftest.er1 4151 cat conftest.err >&5 4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4153 (exit $ac_status); } && { 4154 test -z "$ac_c_werror_flag" || 4155 test ! -s conftest.err 4156 } && test -s conftest.$ac_objext; then 4157 ac_cv_c_bigendian=yes 4158else 4159 echo "$as_me: failed program was:" >&5 4160sed 's/^/| /' conftest.$ac_ext >&5 4161 4162 ac_cv_c_bigendian=no 4163fi 4164 4165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4166else 4167 echo "$as_me: failed program was:" >&5 4168sed 's/^/| /' conftest.$ac_ext >&5 4169 4170 # It does not; compile a test program. 4171if test "$cross_compiling" = yes; then 4172 # try to guess the endianness by grepping values into an object file 4173 ac_cv_c_bigendian=unknown 4174 cat >conftest.$ac_ext <<_ACEOF 4175/* confdefs.h. */ 4176_ACEOF 4177cat confdefs.h >>conftest.$ac_ext 4178cat >>conftest.$ac_ext <<_ACEOF 4179/* end confdefs.h. */ 4180short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4181short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4182void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4183short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4184short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4185void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4186int 4187main () 4188{ 4189 _ascii (); _ebcdic (); 4190 ; 4191 return 0; 4192} 4193_ACEOF 4194rm -f conftest.$ac_objext 4195if { (ac_try="$ac_compile" 4196case "(($ac_try" in 4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4198 *) ac_try_echo=$ac_try;; 4199esac 4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4201 (eval "$ac_compile") 2>conftest.er1 4202 ac_status=$? 4203 grep -v '^ *+' conftest.er1 >conftest.err 4204 rm -f conftest.er1 4205 cat conftest.err >&5 4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4207 (exit $ac_status); } && { 4208 test -z "$ac_c_werror_flag" || 4209 test ! -s conftest.err 4210 } && test -s conftest.$ac_objext; then 4211 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4212 ac_cv_c_bigendian=yes 4213fi 4214if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4215 if test "$ac_cv_c_bigendian" = unknown; then 4216 ac_cv_c_bigendian=no 4217 else 4218 # finding both strings is unlikely to happen, but who knows? 4219 ac_cv_c_bigendian=unknown 4220 fi 4221fi 4222else 4223 echo "$as_me: failed program was:" >&5 4224sed 's/^/| /' conftest.$ac_ext >&5 4225 4226 4227fi 4228 4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4230else 4231 cat >conftest.$ac_ext <<_ACEOF 4232/* confdefs.h. */ 4233_ACEOF 4234cat confdefs.h >>conftest.$ac_ext 4235cat >>conftest.$ac_ext <<_ACEOF 4236/* end confdefs.h. */ 4237$ac_includes_default 4238int 4239main () 4240{ 4241 4242 /* Are we little or big endian? From Harbison&Steele. */ 4243 union 4244 { 4245 long int l; 4246 char c[sizeof (long int)]; 4247 } u; 4248 u.l = 1; 4249 return u.c[sizeof (long int) - 1] == 1; 4250 4251 ; 4252 return 0; 4253} 4254_ACEOF 4255rm -f conftest$ac_exeext 4256if { (ac_try="$ac_link" 4257case "(($ac_try" in 4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4259 *) ac_try_echo=$ac_try;; 4260esac 4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4262 (eval "$ac_link") 2>&5 4263 ac_status=$? 4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4266 { (case "(($ac_try" in 4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4268 *) ac_try_echo=$ac_try;; 4269esac 4270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4271 (eval "$ac_try") 2>&5 4272 ac_status=$? 4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4274 (exit $ac_status); }; }; then 4275 ac_cv_c_bigendian=no 4276else 4277 echo "$as_me: program exited with status $ac_status" >&5 4278echo "$as_me: failed program was:" >&5 4279sed 's/^/| /' conftest.$ac_ext >&5 4280 4281( exit $ac_status ) 4282ac_cv_c_bigendian=yes 4283fi 4284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4285fi 4286 4287 4288fi 4289 4290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4291fi 4292{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4293echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4294case $ac_cv_c_bigendian in 4295 yes) 4296 4297cat >>confdefs.h <<\_ACEOF 4298#define WORDS_BIGENDIAN 1 4299_ACEOF 4300 ;; 4301 no) 4302 ;; 4303 *) 4304 { { echo "$as_me:$LINENO: error: unknown endianness 4305presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4306echo "$as_me: error: unknown endianness 4307presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4308 { (exit 1); exit 1; }; } ;; 4309esac 4310 4311 if test "${TEA_PLATFORM}" = "unix" ; then 4312 4313 #-------------------------------------------------------------------- 4314 # On a few very rare systems, all of the libm.a stuff is 4315 # already in libc.a. Set compiler flags accordingly. 4316 # Also, Linux requires the "ieee" library for math to work 4317 # right (and it must appear before "-lm"). 4318 #-------------------------------------------------------------------- 4319 4320 { echo "$as_me:$LINENO: checking for sin" >&5 4321echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4322if test "${ac_cv_func_sin+set}" = set; then 4323 echo $ECHO_N "(cached) $ECHO_C" >&6 4324else 4325 cat >conftest.$ac_ext <<_ACEOF 4326/* confdefs.h. */ 4327_ACEOF 4328cat confdefs.h >>conftest.$ac_ext 4329cat >>conftest.$ac_ext <<_ACEOF 4330/* end confdefs.h. */ 4331/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4332 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4333#define sin innocuous_sin 4334 4335/* System header to define __stub macros and hopefully few prototypes, 4336 which can conflict with char sin (); below. 4337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4338 <limits.h> exists even on freestanding compilers. */ 4339 4340#ifdef __STDC__ 4341# include <limits.h> 4342#else 4343# include <assert.h> 4344#endif 4345 4346#undef sin 4347 4348/* Override any GCC internal prototype to avoid an error. 4349 Use char because int might match the return type of a GCC 4350 builtin and then its argument prototype would still apply. */ 4351#ifdef __cplusplus 4352extern "C" 4353#endif 4354char sin (); 4355/* The GNU C library defines this for functions which it implements 4356 to always fail with ENOSYS. Some functions are actually named 4357 something starting with __ and the normal name is an alias. */ 4358#if defined __stub_sin || defined __stub___sin 4359choke me 4360#endif 4361 4362int 4363main () 4364{ 4365return sin (); 4366 ; 4367 return 0; 4368} 4369_ACEOF 4370rm -f conftest.$ac_objext conftest$ac_exeext 4371if { (ac_try="$ac_link" 4372case "(($ac_try" in 4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4374 *) ac_try_echo=$ac_try;; 4375esac 4376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4377 (eval "$ac_link") 2>conftest.er1 4378 ac_status=$? 4379 grep -v '^ *+' conftest.er1 >conftest.err 4380 rm -f conftest.er1 4381 cat conftest.err >&5 4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4383 (exit $ac_status); } && { 4384 test -z "$ac_c_werror_flag" || 4385 test ! -s conftest.err 4386 } && test -s conftest$ac_exeext && 4387 $as_test_x conftest$ac_exeext; then 4388 ac_cv_func_sin=yes 4389else 4390 echo "$as_me: failed program was:" >&5 4391sed 's/^/| /' conftest.$ac_ext >&5 4392 4393 ac_cv_func_sin=no 4394fi 4395 4396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4397 conftest$ac_exeext conftest.$ac_ext 4398fi 4399{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4400echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4401if test $ac_cv_func_sin = yes; then 4402 MATH_LIBS="" 4403else 4404 MATH_LIBS="-lm" 4405fi 4406 4407 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4408echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4409if test "${ac_cv_lib_ieee_main+set}" = set; then 4410 echo $ECHO_N "(cached) $ECHO_C" >&6 4411else 4412 ac_check_lib_save_LIBS=$LIBS 4413LIBS="-lieee $LIBS" 4414cat >conftest.$ac_ext <<_ACEOF 4415/* confdefs.h. */ 4416_ACEOF 4417cat confdefs.h >>conftest.$ac_ext 4418cat >>conftest.$ac_ext <<_ACEOF 4419/* end confdefs.h. */ 4420 4421 4422int 4423main () 4424{ 4425return main (); 4426 ; 4427 return 0; 4428} 4429_ACEOF 4430rm -f conftest.$ac_objext conftest$ac_exeext 4431if { (ac_try="$ac_link" 4432case "(($ac_try" in 4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4434 *) ac_try_echo=$ac_try;; 4435esac 4436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4437 (eval "$ac_link") 2>conftest.er1 4438 ac_status=$? 4439 grep -v '^ *+' conftest.er1 >conftest.err 4440 rm -f conftest.er1 4441 cat conftest.err >&5 4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4443 (exit $ac_status); } && { 4444 test -z "$ac_c_werror_flag" || 4445 test ! -s conftest.err 4446 } && test -s conftest$ac_exeext && 4447 $as_test_x conftest$ac_exeext; then 4448 ac_cv_lib_ieee_main=yes 4449else 4450 echo "$as_me: failed program was:" >&5 4451sed 's/^/| /' conftest.$ac_ext >&5 4452 4453 ac_cv_lib_ieee_main=no 4454fi 4455 4456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4457 conftest$ac_exeext conftest.$ac_ext 4458LIBS=$ac_check_lib_save_LIBS 4459fi 4460{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4461echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4462if test $ac_cv_lib_ieee_main = yes; then 4463 MATH_LIBS="-lieee $MATH_LIBS" 4464fi 4465 4466 4467 #-------------------------------------------------------------------- 4468 # Interactive UNIX requires -linet instead of -lsocket, plus it 4469 # needs net/errno.h to define the socket-related error codes. 4470 #-------------------------------------------------------------------- 4471 4472 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4473echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4474if test "${ac_cv_lib_inet_main+set}" = set; then 4475 echo $ECHO_N "(cached) $ECHO_C" >&6 4476else 4477 ac_check_lib_save_LIBS=$LIBS 4478LIBS="-linet $LIBS" 4479cat >conftest.$ac_ext <<_ACEOF 4480/* confdefs.h. */ 4481_ACEOF 4482cat confdefs.h >>conftest.$ac_ext 4483cat >>conftest.$ac_ext <<_ACEOF 4484/* end confdefs.h. */ 4485 4486 4487int 4488main () 4489{ 4490return main (); 4491 ; 4492 return 0; 4493} 4494_ACEOF 4495rm -f conftest.$ac_objext conftest$ac_exeext 4496if { (ac_try="$ac_link" 4497case "(($ac_try" in 4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4499 *) ac_try_echo=$ac_try;; 4500esac 4501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4502 (eval "$ac_link") 2>conftest.er1 4503 ac_status=$? 4504 grep -v '^ *+' conftest.er1 >conftest.err 4505 rm -f conftest.er1 4506 cat conftest.err >&5 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); } && { 4509 test -z "$ac_c_werror_flag" || 4510 test ! -s conftest.err 4511 } && test -s conftest$ac_exeext && 4512 $as_test_x conftest$ac_exeext; then 4513 ac_cv_lib_inet_main=yes 4514else 4515 echo "$as_me: failed program was:" >&5 4516sed 's/^/| /' conftest.$ac_ext >&5 4517 4518 ac_cv_lib_inet_main=no 4519fi 4520 4521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4522 conftest$ac_exeext conftest.$ac_ext 4523LIBS=$ac_check_lib_save_LIBS 4524fi 4525{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4526echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4527if test $ac_cv_lib_inet_main = yes; then 4528 LIBS="$LIBS -linet" 4529fi 4530 4531 if test "${ac_cv_header_net_errno_h+set}" = set; then 4532 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4533echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4534if test "${ac_cv_header_net_errno_h+set}" = set; then 4535 echo $ECHO_N "(cached) $ECHO_C" >&6 4536fi 4537{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4538echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4539else 4540 # Is the header compilable? 4541{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4542echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4543cat >conftest.$ac_ext <<_ACEOF 4544/* confdefs.h. */ 4545_ACEOF 4546cat confdefs.h >>conftest.$ac_ext 4547cat >>conftest.$ac_ext <<_ACEOF 4548/* end confdefs.h. */ 4549$ac_includes_default 4550#include <net/errno.h> 4551_ACEOF 4552rm -f conftest.$ac_objext 4553if { (ac_try="$ac_compile" 4554case "(($ac_try" in 4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4556 *) ac_try_echo=$ac_try;; 4557esac 4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4559 (eval "$ac_compile") 2>conftest.er1 4560 ac_status=$? 4561 grep -v '^ *+' conftest.er1 >conftest.err 4562 rm -f conftest.er1 4563 cat conftest.err >&5 4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4565 (exit $ac_status); } && { 4566 test -z "$ac_c_werror_flag" || 4567 test ! -s conftest.err 4568 } && test -s conftest.$ac_objext; then 4569 ac_header_compiler=yes 4570else 4571 echo "$as_me: failed program was:" >&5 4572sed 's/^/| /' conftest.$ac_ext >&5 4573 4574 ac_header_compiler=no 4575fi 4576 4577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4578{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4579echo "${ECHO_T}$ac_header_compiler" >&6; } 4580 4581# Is the header present? 4582{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4583echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4584cat >conftest.$ac_ext <<_ACEOF 4585/* confdefs.h. */ 4586_ACEOF 4587cat confdefs.h >>conftest.$ac_ext 4588cat >>conftest.$ac_ext <<_ACEOF 4589/* end confdefs.h. */ 4590#include <net/errno.h> 4591_ACEOF 4592if { (ac_try="$ac_cpp conftest.$ac_ext" 4593case "(($ac_try" in 4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4595 *) ac_try_echo=$ac_try;; 4596esac 4597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4599 ac_status=$? 4600 grep -v '^ *+' conftest.er1 >conftest.err 4601 rm -f conftest.er1 4602 cat conftest.err >&5 4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4604 (exit $ac_status); } >/dev/null && { 4605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4606 test ! -s conftest.err 4607 }; then 4608 ac_header_preproc=yes 4609else 4610 echo "$as_me: failed program was:" >&5 4611sed 's/^/| /' conftest.$ac_ext >&5 4612 4613 ac_header_preproc=no 4614fi 4615 4616rm -f conftest.err conftest.$ac_ext 4617{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4618echo "${ECHO_T}$ac_header_preproc" >&6; } 4619 4620# So? What about this header? 4621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4622 yes:no: ) 4623 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4624echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4625 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4626echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4627 ac_header_preproc=yes 4628 ;; 4629 no:yes:* ) 4630 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4631echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4632 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4633echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4634 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4635echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4636 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4637echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4638 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4639echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4640 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4641echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4642 4643 ;; 4644esac 4645{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4646echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4647if test "${ac_cv_header_net_errno_h+set}" = set; then 4648 echo $ECHO_N "(cached) $ECHO_C" >&6 4649else 4650 ac_cv_header_net_errno_h=$ac_header_preproc 4651fi 4652{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4653echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4654 4655fi 4656if test $ac_cv_header_net_errno_h = yes; then 4657 4658 4659cat >>confdefs.h <<\_ACEOF 4660#define HAVE_NET_ERRNO_H 1 4661_ACEOF 4662 4663fi 4664 4665 4666 4667 #-------------------------------------------------------------------- 4668 # Check for the existence of the -lsocket and -lnsl libraries. 4669 # The order here is important, so that they end up in the right 4670 # order in the command line generated by make. Here are some 4671 # special considerations: 4672 # 1. Use "connect" and "accept" to check for -lsocket, and 4673 # "gethostbyname" to check for -lnsl. 4674 # 2. Use each function name only once: can't redo a check because 4675 # autoconf caches the results of the last check and won't redo it. 4676 # 3. Use -lnsl and -lsocket only if they supply procedures that 4677 # aren't already present in the normal libraries. This is because 4678 # IRIX 5.2 has libraries, but they aren't needed and they're 4679 # bogus: they goof up name resolution if used. 4680 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4681 # To get around this problem, check for both libraries together 4682 # if -lsocket doesn't work by itself. 4683 #-------------------------------------------------------------------- 4684 4685 tcl_checkBoth=0 4686 { echo "$as_me:$LINENO: checking for connect" >&5 4687echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4688if test "${ac_cv_func_connect+set}" = set; then 4689 echo $ECHO_N "(cached) $ECHO_C" >&6 4690else 4691 cat >conftest.$ac_ext <<_ACEOF 4692/* confdefs.h. */ 4693_ACEOF 4694cat confdefs.h >>conftest.$ac_ext 4695cat >>conftest.$ac_ext <<_ACEOF 4696/* end confdefs.h. */ 4697/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4698 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4699#define connect innocuous_connect 4700 4701/* System header to define __stub macros and hopefully few prototypes, 4702 which can conflict with char connect (); below. 4703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4704 <limits.h> exists even on freestanding compilers. */ 4705 4706#ifdef __STDC__ 4707# include <limits.h> 4708#else 4709# include <assert.h> 4710#endif 4711 4712#undef connect 4713 4714/* Override any GCC internal prototype to avoid an error. 4715 Use char because int might match the return type of a GCC 4716 builtin and then its argument prototype would still apply. */ 4717#ifdef __cplusplus 4718extern "C" 4719#endif 4720char connect (); 4721/* The GNU C library defines this for functions which it implements 4722 to always fail with ENOSYS. Some functions are actually named 4723 something starting with __ and the normal name is an alias. */ 4724#if defined __stub_connect || defined __stub___connect 4725choke me 4726#endif 4727 4728int 4729main () 4730{ 4731return connect (); 4732 ; 4733 return 0; 4734} 4735_ACEOF 4736rm -f conftest.$ac_objext conftest$ac_exeext 4737if { (ac_try="$ac_link" 4738case "(($ac_try" in 4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4740 *) ac_try_echo=$ac_try;; 4741esac 4742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4743 (eval "$ac_link") 2>conftest.er1 4744 ac_status=$? 4745 grep -v '^ *+' conftest.er1 >conftest.err 4746 rm -f conftest.er1 4747 cat conftest.err >&5 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); } && { 4750 test -z "$ac_c_werror_flag" || 4751 test ! -s conftest.err 4752 } && test -s conftest$ac_exeext && 4753 $as_test_x conftest$ac_exeext; then 4754 ac_cv_func_connect=yes 4755else 4756 echo "$as_me: failed program was:" >&5 4757sed 's/^/| /' conftest.$ac_ext >&5 4758 4759 ac_cv_func_connect=no 4760fi 4761 4762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4763 conftest$ac_exeext conftest.$ac_ext 4764fi 4765{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4766echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4767if test $ac_cv_func_connect = yes; then 4768 tcl_checkSocket=0 4769else 4770 tcl_checkSocket=1 4771fi 4772 4773 if test "$tcl_checkSocket" = 1; then 4774 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4775echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4776if test "${ac_cv_func_setsockopt+set}" = set; then 4777 echo $ECHO_N "(cached) $ECHO_C" >&6 4778else 4779 cat >conftest.$ac_ext <<_ACEOF 4780/* confdefs.h. */ 4781_ACEOF 4782cat confdefs.h >>conftest.$ac_ext 4783cat >>conftest.$ac_ext <<_ACEOF 4784/* end confdefs.h. */ 4785/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4786 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4787#define setsockopt innocuous_setsockopt 4788 4789/* System header to define __stub macros and hopefully few prototypes, 4790 which can conflict with char setsockopt (); below. 4791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4792 <limits.h> exists even on freestanding compilers. */ 4793 4794#ifdef __STDC__ 4795# include <limits.h> 4796#else 4797# include <assert.h> 4798#endif 4799 4800#undef setsockopt 4801 4802/* Override any GCC internal prototype to avoid an error. 4803 Use char because int might match the return type of a GCC 4804 builtin and then its argument prototype would still apply. */ 4805#ifdef __cplusplus 4806extern "C" 4807#endif 4808char setsockopt (); 4809/* The GNU C library defines this for functions which it implements 4810 to always fail with ENOSYS. Some functions are actually named 4811 something starting with __ and the normal name is an alias. */ 4812#if defined __stub_setsockopt || defined __stub___setsockopt 4813choke me 4814#endif 4815 4816int 4817main () 4818{ 4819return setsockopt (); 4820 ; 4821 return 0; 4822} 4823_ACEOF 4824rm -f conftest.$ac_objext conftest$ac_exeext 4825if { (ac_try="$ac_link" 4826case "(($ac_try" in 4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4828 *) ac_try_echo=$ac_try;; 4829esac 4830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4831 (eval "$ac_link") 2>conftest.er1 4832 ac_status=$? 4833 grep -v '^ *+' conftest.er1 >conftest.err 4834 rm -f conftest.er1 4835 cat conftest.err >&5 4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4837 (exit $ac_status); } && { 4838 test -z "$ac_c_werror_flag" || 4839 test ! -s conftest.err 4840 } && test -s conftest$ac_exeext && 4841 $as_test_x conftest$ac_exeext; then 4842 ac_cv_func_setsockopt=yes 4843else 4844 echo "$as_me: failed program was:" >&5 4845sed 's/^/| /' conftest.$ac_ext >&5 4846 4847 ac_cv_func_setsockopt=no 4848fi 4849 4850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4851 conftest$ac_exeext conftest.$ac_ext 4852fi 4853{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4854echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4855if test $ac_cv_func_setsockopt = yes; then 4856 : 4857else 4858 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4859echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4860if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4861 echo $ECHO_N "(cached) $ECHO_C" >&6 4862else 4863 ac_check_lib_save_LIBS=$LIBS 4864LIBS="-lsocket $LIBS" 4865cat >conftest.$ac_ext <<_ACEOF 4866/* confdefs.h. */ 4867_ACEOF 4868cat confdefs.h >>conftest.$ac_ext 4869cat >>conftest.$ac_ext <<_ACEOF 4870/* end confdefs.h. */ 4871 4872/* Override any GCC internal prototype to avoid an error. 4873 Use char because int might match the return type of a GCC 4874 builtin and then its argument prototype would still apply. */ 4875#ifdef __cplusplus 4876extern "C" 4877#endif 4878char setsockopt (); 4879int 4880main () 4881{ 4882return setsockopt (); 4883 ; 4884 return 0; 4885} 4886_ACEOF 4887rm -f conftest.$ac_objext conftest$ac_exeext 4888if { (ac_try="$ac_link" 4889case "(($ac_try" in 4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4891 *) ac_try_echo=$ac_try;; 4892esac 4893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4894 (eval "$ac_link") 2>conftest.er1 4895 ac_status=$? 4896 grep -v '^ *+' conftest.er1 >conftest.err 4897 rm -f conftest.er1 4898 cat conftest.err >&5 4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4900 (exit $ac_status); } && { 4901 test -z "$ac_c_werror_flag" || 4902 test ! -s conftest.err 4903 } && test -s conftest$ac_exeext && 4904 $as_test_x conftest$ac_exeext; then 4905 ac_cv_lib_socket_setsockopt=yes 4906else 4907 echo "$as_me: failed program was:" >&5 4908sed 's/^/| /' conftest.$ac_ext >&5 4909 4910 ac_cv_lib_socket_setsockopt=no 4911fi 4912 4913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4914 conftest$ac_exeext conftest.$ac_ext 4915LIBS=$ac_check_lib_save_LIBS 4916fi 4917{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4918echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4919if test $ac_cv_lib_socket_setsockopt = yes; then 4920 LIBS="$LIBS -lsocket" 4921else 4922 tcl_checkBoth=1 4923fi 4924 4925fi 4926 4927 fi 4928 if test "$tcl_checkBoth" = 1; then 4929 tk_oldLibs=$LIBS 4930 LIBS="$LIBS -lsocket -lnsl" 4931 { echo "$as_me:$LINENO: checking for accept" >&5 4932echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4933if test "${ac_cv_func_accept+set}" = set; then 4934 echo $ECHO_N "(cached) $ECHO_C" >&6 4935else 4936 cat >conftest.$ac_ext <<_ACEOF 4937/* confdefs.h. */ 4938_ACEOF 4939cat confdefs.h >>conftest.$ac_ext 4940cat >>conftest.$ac_ext <<_ACEOF 4941/* end confdefs.h. */ 4942/* Define accept to an innocuous variant, in case <limits.h> declares accept. 4943 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4944#define accept innocuous_accept 4945 4946/* System header to define __stub macros and hopefully few prototypes, 4947 which can conflict with char accept (); below. 4948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4949 <limits.h> exists even on freestanding compilers. */ 4950 4951#ifdef __STDC__ 4952# include <limits.h> 4953#else 4954# include <assert.h> 4955#endif 4956 4957#undef accept 4958 4959/* Override any GCC internal prototype to avoid an error. 4960 Use char because int might match the return type of a GCC 4961 builtin and then its argument prototype would still apply. */ 4962#ifdef __cplusplus 4963extern "C" 4964#endif 4965char accept (); 4966/* The GNU C library defines this for functions which it implements 4967 to always fail with ENOSYS. Some functions are actually named 4968 something starting with __ and the normal name is an alias. */ 4969#if defined __stub_accept || defined __stub___accept 4970choke me 4971#endif 4972 4973int 4974main () 4975{ 4976return accept (); 4977 ; 4978 return 0; 4979} 4980_ACEOF 4981rm -f conftest.$ac_objext conftest$ac_exeext 4982if { (ac_try="$ac_link" 4983case "(($ac_try" in 4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4985 *) ac_try_echo=$ac_try;; 4986esac 4987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4988 (eval "$ac_link") 2>conftest.er1 4989 ac_status=$? 4990 grep -v '^ *+' conftest.er1 >conftest.err 4991 rm -f conftest.er1 4992 cat conftest.err >&5 4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4994 (exit $ac_status); } && { 4995 test -z "$ac_c_werror_flag" || 4996 test ! -s conftest.err 4997 } && test -s conftest$ac_exeext && 4998 $as_test_x conftest$ac_exeext; then 4999 ac_cv_func_accept=yes 5000else 5001 echo "$as_me: failed program was:" >&5 5002sed 's/^/| /' conftest.$ac_ext >&5 5003 5004 ac_cv_func_accept=no 5005fi 5006 5007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5008 conftest$ac_exeext conftest.$ac_ext 5009fi 5010{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5011echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5012if test $ac_cv_func_accept = yes; then 5013 tcl_checkNsl=0 5014else 5015 LIBS=$tk_oldLibs 5016fi 5017 5018 fi 5019 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5020echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5021if test "${ac_cv_func_gethostbyname+set}" = set; then 5022 echo $ECHO_N "(cached) $ECHO_C" >&6 5023else 5024 cat >conftest.$ac_ext <<_ACEOF 5025/* confdefs.h. */ 5026_ACEOF 5027cat confdefs.h >>conftest.$ac_ext 5028cat >>conftest.$ac_ext <<_ACEOF 5029/* end confdefs.h. */ 5030/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5031 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5032#define gethostbyname innocuous_gethostbyname 5033 5034/* System header to define __stub macros and hopefully few prototypes, 5035 which can conflict with char gethostbyname (); below. 5036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5037 <limits.h> exists even on freestanding compilers. */ 5038 5039#ifdef __STDC__ 5040# include <limits.h> 5041#else 5042# include <assert.h> 5043#endif 5044 5045#undef gethostbyname 5046 5047/* Override any GCC internal prototype to avoid an error. 5048 Use char because int might match the return type of a GCC 5049 builtin and then its argument prototype would still apply. */ 5050#ifdef __cplusplus 5051extern "C" 5052#endif 5053char gethostbyname (); 5054/* The GNU C library defines this for functions which it implements 5055 to always fail with ENOSYS. Some functions are actually named 5056 something starting with __ and the normal name is an alias. */ 5057#if defined __stub_gethostbyname || defined __stub___gethostbyname 5058choke me 5059#endif 5060 5061int 5062main () 5063{ 5064return gethostbyname (); 5065 ; 5066 return 0; 5067} 5068_ACEOF 5069rm -f conftest.$ac_objext conftest$ac_exeext 5070if { (ac_try="$ac_link" 5071case "(($ac_try" in 5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5073 *) ac_try_echo=$ac_try;; 5074esac 5075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5076 (eval "$ac_link") 2>conftest.er1 5077 ac_status=$? 5078 grep -v '^ *+' conftest.er1 >conftest.err 5079 rm -f conftest.er1 5080 cat conftest.err >&5 5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5082 (exit $ac_status); } && { 5083 test -z "$ac_c_werror_flag" || 5084 test ! -s conftest.err 5085 } && test -s conftest$ac_exeext && 5086 $as_test_x conftest$ac_exeext; then 5087 ac_cv_func_gethostbyname=yes 5088else 5089 echo "$as_me: failed program was:" >&5 5090sed 's/^/| /' conftest.$ac_ext >&5 5091 5092 ac_cv_func_gethostbyname=no 5093fi 5094 5095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5096 conftest$ac_exeext conftest.$ac_ext 5097fi 5098{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5099echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5100if test $ac_cv_func_gethostbyname = yes; then 5101 : 5102else 5103 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5104echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5105if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5106 echo $ECHO_N "(cached) $ECHO_C" >&6 5107else 5108 ac_check_lib_save_LIBS=$LIBS 5109LIBS="-lnsl $LIBS" 5110cat >conftest.$ac_ext <<_ACEOF 5111/* confdefs.h. */ 5112_ACEOF 5113cat confdefs.h >>conftest.$ac_ext 5114cat >>conftest.$ac_ext <<_ACEOF 5115/* end confdefs.h. */ 5116 5117/* Override any GCC internal prototype to avoid an error. 5118 Use char because int might match the return type of a GCC 5119 builtin and then its argument prototype would still apply. */ 5120#ifdef __cplusplus 5121extern "C" 5122#endif 5123char gethostbyname (); 5124int 5125main () 5126{ 5127return gethostbyname (); 5128 ; 5129 return 0; 5130} 5131_ACEOF 5132rm -f conftest.$ac_objext conftest$ac_exeext 5133if { (ac_try="$ac_link" 5134case "(($ac_try" in 5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5136 *) ac_try_echo=$ac_try;; 5137esac 5138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5139 (eval "$ac_link") 2>conftest.er1 5140 ac_status=$? 5141 grep -v '^ *+' conftest.er1 >conftest.err 5142 rm -f conftest.er1 5143 cat conftest.err >&5 5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5145 (exit $ac_status); } && { 5146 test -z "$ac_c_werror_flag" || 5147 test ! -s conftest.err 5148 } && test -s conftest$ac_exeext && 5149 $as_test_x conftest$ac_exeext; then 5150 ac_cv_lib_nsl_gethostbyname=yes 5151else 5152 echo "$as_me: failed program was:" >&5 5153sed 's/^/| /' conftest.$ac_ext >&5 5154 5155 ac_cv_lib_nsl_gethostbyname=no 5156fi 5157 5158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5159 conftest$ac_exeext conftest.$ac_ext 5160LIBS=$ac_check_lib_save_LIBS 5161fi 5162{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5163echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5164if test $ac_cv_lib_nsl_gethostbyname = yes; then 5165 LIBS="$LIBS -lnsl" 5166fi 5167 5168fi 5169 5170 5171 # TEA specific: Don't perform the eval of the libraries here because 5172 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5173 5174 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5175 5176 5177 5178 5179 { echo "$as_me:$LINENO: checking dirent.h" >&5 5180echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5181if test "${tcl_cv_dirent_h+set}" = set; then 5182 echo $ECHO_N "(cached) $ECHO_C" >&6 5183else 5184 5185 cat >conftest.$ac_ext <<_ACEOF 5186/* confdefs.h. */ 5187_ACEOF 5188cat confdefs.h >>conftest.$ac_ext 5189cat >>conftest.$ac_ext <<_ACEOF 5190/* end confdefs.h. */ 5191#include <sys/types.h> 5192#include <dirent.h> 5193int 5194main () 5195{ 5196 5197#ifndef _POSIX_SOURCE 5198# ifdef __Lynx__ 5199 /* 5200 * Generate compilation error to make the test fail: Lynx headers 5201 * are only valid if really in the POSIX environment. 5202 */ 5203 5204 missing_procedure(); 5205# endif 5206#endif 5207DIR *d; 5208struct dirent *entryPtr; 5209char *p; 5210d = opendir("foobar"); 5211entryPtr = readdir(d); 5212p = entryPtr->d_name; 5213closedir(d); 5214 5215 ; 5216 return 0; 5217} 5218_ACEOF 5219rm -f conftest.$ac_objext conftest$ac_exeext 5220if { (ac_try="$ac_link" 5221case "(($ac_try" in 5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5223 *) ac_try_echo=$ac_try;; 5224esac 5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5226 (eval "$ac_link") 2>conftest.er1 5227 ac_status=$? 5228 grep -v '^ *+' conftest.er1 >conftest.err 5229 rm -f conftest.er1 5230 cat conftest.err >&5 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5232 (exit $ac_status); } && { 5233 test -z "$ac_c_werror_flag" || 5234 test ! -s conftest.err 5235 } && test -s conftest$ac_exeext && 5236 $as_test_x conftest$ac_exeext; then 5237 tcl_cv_dirent_h=yes 5238else 5239 echo "$as_me: failed program was:" >&5 5240sed 's/^/| /' conftest.$ac_ext >&5 5241 5242 tcl_cv_dirent_h=no 5243fi 5244 5245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5246 conftest$ac_exeext conftest.$ac_ext 5247fi 5248{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5249echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5250 5251 if test $tcl_cv_dirent_h = no; then 5252 5253cat >>confdefs.h <<\_ACEOF 5254#define NO_DIRENT_H 1 5255_ACEOF 5256 5257 fi 5258 5259 # TEA specific: 5260 if test "${ac_cv_header_errno_h+set}" = set; then 5261 { echo "$as_me:$LINENO: checking for errno.h" >&5 5262echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5263if test "${ac_cv_header_errno_h+set}" = set; then 5264 echo $ECHO_N "(cached) $ECHO_C" >&6 5265fi 5266{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5267echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5268else 5269 # Is the header compilable? 5270{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5271echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5272cat >conftest.$ac_ext <<_ACEOF 5273/* confdefs.h. */ 5274_ACEOF 5275cat confdefs.h >>conftest.$ac_ext 5276cat >>conftest.$ac_ext <<_ACEOF 5277/* end confdefs.h. */ 5278$ac_includes_default 5279#include <errno.h> 5280_ACEOF 5281rm -f conftest.$ac_objext 5282if { (ac_try="$ac_compile" 5283case "(($ac_try" in 5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5285 *) ac_try_echo=$ac_try;; 5286esac 5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5288 (eval "$ac_compile") 2>conftest.er1 5289 ac_status=$? 5290 grep -v '^ *+' conftest.er1 >conftest.err 5291 rm -f conftest.er1 5292 cat conftest.err >&5 5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5294 (exit $ac_status); } && { 5295 test -z "$ac_c_werror_flag" || 5296 test ! -s conftest.err 5297 } && test -s conftest.$ac_objext; then 5298 ac_header_compiler=yes 5299else 5300 echo "$as_me: failed program was:" >&5 5301sed 's/^/| /' conftest.$ac_ext >&5 5302 5303 ac_header_compiler=no 5304fi 5305 5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5307{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5308echo "${ECHO_T}$ac_header_compiler" >&6; } 5309 5310# Is the header present? 5311{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5312echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5313cat >conftest.$ac_ext <<_ACEOF 5314/* confdefs.h. */ 5315_ACEOF 5316cat confdefs.h >>conftest.$ac_ext 5317cat >>conftest.$ac_ext <<_ACEOF 5318/* end confdefs.h. */ 5319#include <errno.h> 5320_ACEOF 5321if { (ac_try="$ac_cpp conftest.$ac_ext" 5322case "(($ac_try" in 5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5324 *) ac_try_echo=$ac_try;; 5325esac 5326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5328 ac_status=$? 5329 grep -v '^ *+' conftest.er1 >conftest.err 5330 rm -f conftest.er1 5331 cat conftest.err >&5 5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5333 (exit $ac_status); } >/dev/null && { 5334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5335 test ! -s conftest.err 5336 }; then 5337 ac_header_preproc=yes 5338else 5339 echo "$as_me: failed program was:" >&5 5340sed 's/^/| /' conftest.$ac_ext >&5 5341 5342 ac_header_preproc=no 5343fi 5344 5345rm -f conftest.err conftest.$ac_ext 5346{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5347echo "${ECHO_T}$ac_header_preproc" >&6; } 5348 5349# So? What about this header? 5350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5351 yes:no: ) 5352 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5353echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5354 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5355echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5356 ac_header_preproc=yes 5357 ;; 5358 no:yes:* ) 5359 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5360echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5361 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5362echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5363 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5364echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5365 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5366echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5367 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5368echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5369 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5370echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5371 5372 ;; 5373esac 5374{ echo "$as_me:$LINENO: checking for errno.h" >&5 5375echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5376if test "${ac_cv_header_errno_h+set}" = set; then 5377 echo $ECHO_N "(cached) $ECHO_C" >&6 5378else 5379 ac_cv_header_errno_h=$ac_header_preproc 5380fi 5381{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5382echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5383 5384fi 5385if test $ac_cv_header_errno_h = yes; then 5386 : 5387else 5388 5389cat >>confdefs.h <<\_ACEOF 5390#define NO_ERRNO_H 1 5391_ACEOF 5392 5393fi 5394 5395 5396 if test "${ac_cv_header_float_h+set}" = set; then 5397 { echo "$as_me:$LINENO: checking for float.h" >&5 5398echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5399if test "${ac_cv_header_float_h+set}" = set; then 5400 echo $ECHO_N "(cached) $ECHO_C" >&6 5401fi 5402{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5403echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5404else 5405 # Is the header compilable? 5406{ echo "$as_me:$LINENO: checking float.h usability" >&5 5407echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5408cat >conftest.$ac_ext <<_ACEOF 5409/* confdefs.h. */ 5410_ACEOF 5411cat confdefs.h >>conftest.$ac_ext 5412cat >>conftest.$ac_ext <<_ACEOF 5413/* end confdefs.h. */ 5414$ac_includes_default 5415#include <float.h> 5416_ACEOF 5417rm -f conftest.$ac_objext 5418if { (ac_try="$ac_compile" 5419case "(($ac_try" in 5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5421 *) ac_try_echo=$ac_try;; 5422esac 5423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5424 (eval "$ac_compile") 2>conftest.er1 5425 ac_status=$? 5426 grep -v '^ *+' conftest.er1 >conftest.err 5427 rm -f conftest.er1 5428 cat conftest.err >&5 5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5430 (exit $ac_status); } && { 5431 test -z "$ac_c_werror_flag" || 5432 test ! -s conftest.err 5433 } && test -s conftest.$ac_objext; then 5434 ac_header_compiler=yes 5435else 5436 echo "$as_me: failed program was:" >&5 5437sed 's/^/| /' conftest.$ac_ext >&5 5438 5439 ac_header_compiler=no 5440fi 5441 5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5443{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5444echo "${ECHO_T}$ac_header_compiler" >&6; } 5445 5446# Is the header present? 5447{ echo "$as_me:$LINENO: checking float.h presence" >&5 5448echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5449cat >conftest.$ac_ext <<_ACEOF 5450/* confdefs.h. */ 5451_ACEOF 5452cat confdefs.h >>conftest.$ac_ext 5453cat >>conftest.$ac_ext <<_ACEOF 5454/* end confdefs.h. */ 5455#include <float.h> 5456_ACEOF 5457if { (ac_try="$ac_cpp conftest.$ac_ext" 5458case "(($ac_try" in 5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5460 *) ac_try_echo=$ac_try;; 5461esac 5462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5464 ac_status=$? 5465 grep -v '^ *+' conftest.er1 >conftest.err 5466 rm -f conftest.er1 5467 cat conftest.err >&5 5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5469 (exit $ac_status); } >/dev/null && { 5470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5471 test ! -s conftest.err 5472 }; then 5473 ac_header_preproc=yes 5474else 5475 echo "$as_me: failed program was:" >&5 5476sed 's/^/| /' conftest.$ac_ext >&5 5477 5478 ac_header_preproc=no 5479fi 5480 5481rm -f conftest.err conftest.$ac_ext 5482{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5483echo "${ECHO_T}$ac_header_preproc" >&6; } 5484 5485# So? What about this header? 5486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5487 yes:no: ) 5488 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5489echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5490 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5491echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5492 ac_header_preproc=yes 5493 ;; 5494 no:yes:* ) 5495 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5496echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5497 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5498echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5499 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5500echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5501 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5502echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5503 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5504echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5505 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5506echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5507 5508 ;; 5509esac 5510{ echo "$as_me:$LINENO: checking for float.h" >&5 5511echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5512if test "${ac_cv_header_float_h+set}" = set; then 5513 echo $ECHO_N "(cached) $ECHO_C" >&6 5514else 5515 ac_cv_header_float_h=$ac_header_preproc 5516fi 5517{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5518echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5519 5520fi 5521if test $ac_cv_header_float_h = yes; then 5522 : 5523else 5524 5525cat >>confdefs.h <<\_ACEOF 5526#define NO_FLOAT_H 1 5527_ACEOF 5528 5529fi 5530 5531 5532 if test "${ac_cv_header_values_h+set}" = set; then 5533 { echo "$as_me:$LINENO: checking for values.h" >&5 5534echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5535if test "${ac_cv_header_values_h+set}" = set; then 5536 echo $ECHO_N "(cached) $ECHO_C" >&6 5537fi 5538{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5539echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5540else 5541 # Is the header compilable? 5542{ echo "$as_me:$LINENO: checking values.h usability" >&5 5543echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5544cat >conftest.$ac_ext <<_ACEOF 5545/* confdefs.h. */ 5546_ACEOF 5547cat confdefs.h >>conftest.$ac_ext 5548cat >>conftest.$ac_ext <<_ACEOF 5549/* end confdefs.h. */ 5550$ac_includes_default 5551#include <values.h> 5552_ACEOF 5553rm -f conftest.$ac_objext 5554if { (ac_try="$ac_compile" 5555case "(($ac_try" in 5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5557 *) ac_try_echo=$ac_try;; 5558esac 5559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5560 (eval "$ac_compile") 2>conftest.er1 5561 ac_status=$? 5562 grep -v '^ *+' conftest.er1 >conftest.err 5563 rm -f conftest.er1 5564 cat conftest.err >&5 5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5566 (exit $ac_status); } && { 5567 test -z "$ac_c_werror_flag" || 5568 test ! -s conftest.err 5569 } && test -s conftest.$ac_objext; then 5570 ac_header_compiler=yes 5571else 5572 echo "$as_me: failed program was:" >&5 5573sed 's/^/| /' conftest.$ac_ext >&5 5574 5575 ac_header_compiler=no 5576fi 5577 5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5579{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5580echo "${ECHO_T}$ac_header_compiler" >&6; } 5581 5582# Is the header present? 5583{ echo "$as_me:$LINENO: checking values.h presence" >&5 5584echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5585cat >conftest.$ac_ext <<_ACEOF 5586/* confdefs.h. */ 5587_ACEOF 5588cat confdefs.h >>conftest.$ac_ext 5589cat >>conftest.$ac_ext <<_ACEOF 5590/* end confdefs.h. */ 5591#include <values.h> 5592_ACEOF 5593if { (ac_try="$ac_cpp conftest.$ac_ext" 5594case "(($ac_try" in 5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5596 *) ac_try_echo=$ac_try;; 5597esac 5598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5600 ac_status=$? 5601 grep -v '^ *+' conftest.er1 >conftest.err 5602 rm -f conftest.er1 5603 cat conftest.err >&5 5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5605 (exit $ac_status); } >/dev/null && { 5606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5607 test ! -s conftest.err 5608 }; then 5609 ac_header_preproc=yes 5610else 5611 echo "$as_me: failed program was:" >&5 5612sed 's/^/| /' conftest.$ac_ext >&5 5613 5614 ac_header_preproc=no 5615fi 5616 5617rm -f conftest.err conftest.$ac_ext 5618{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5619echo "${ECHO_T}$ac_header_preproc" >&6; } 5620 5621# So? What about this header? 5622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5623 yes:no: ) 5624 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5625echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5626 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5627echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5628 ac_header_preproc=yes 5629 ;; 5630 no:yes:* ) 5631 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5632echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5633 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5634echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5635 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5636echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5637 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5638echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5639 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5640echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5641 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5642echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5643 5644 ;; 5645esac 5646{ echo "$as_me:$LINENO: checking for values.h" >&5 5647echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5648if test "${ac_cv_header_values_h+set}" = set; then 5649 echo $ECHO_N "(cached) $ECHO_C" >&6 5650else 5651 ac_cv_header_values_h=$ac_header_preproc 5652fi 5653{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5654echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5655 5656fi 5657if test $ac_cv_header_values_h = yes; then 5658 : 5659else 5660 5661cat >>confdefs.h <<\_ACEOF 5662#define NO_VALUES_H 1 5663_ACEOF 5664 5665fi 5666 5667 5668 if test "${ac_cv_header_limits_h+set}" = set; then 5669 { echo "$as_me:$LINENO: checking for limits.h" >&5 5670echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5671if test "${ac_cv_header_limits_h+set}" = set; then 5672 echo $ECHO_N "(cached) $ECHO_C" >&6 5673fi 5674{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5675echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5676else 5677 # Is the header compilable? 5678{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5679echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5680cat >conftest.$ac_ext <<_ACEOF 5681/* confdefs.h. */ 5682_ACEOF 5683cat confdefs.h >>conftest.$ac_ext 5684cat >>conftest.$ac_ext <<_ACEOF 5685/* end confdefs.h. */ 5686$ac_includes_default 5687#include <limits.h> 5688_ACEOF 5689rm -f conftest.$ac_objext 5690if { (ac_try="$ac_compile" 5691case "(($ac_try" in 5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5693 *) ac_try_echo=$ac_try;; 5694esac 5695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5696 (eval "$ac_compile") 2>conftest.er1 5697 ac_status=$? 5698 grep -v '^ *+' conftest.er1 >conftest.err 5699 rm -f conftest.er1 5700 cat conftest.err >&5 5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5702 (exit $ac_status); } && { 5703 test -z "$ac_c_werror_flag" || 5704 test ! -s conftest.err 5705 } && test -s conftest.$ac_objext; then 5706 ac_header_compiler=yes 5707else 5708 echo "$as_me: failed program was:" >&5 5709sed 's/^/| /' conftest.$ac_ext >&5 5710 5711 ac_header_compiler=no 5712fi 5713 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5716echo "${ECHO_T}$ac_header_compiler" >&6; } 5717 5718# Is the header present? 5719{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5720echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5721cat >conftest.$ac_ext <<_ACEOF 5722/* confdefs.h. */ 5723_ACEOF 5724cat confdefs.h >>conftest.$ac_ext 5725cat >>conftest.$ac_ext <<_ACEOF 5726/* end confdefs.h. */ 5727#include <limits.h> 5728_ACEOF 5729if { (ac_try="$ac_cpp conftest.$ac_ext" 5730case "(($ac_try" in 5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5732 *) ac_try_echo=$ac_try;; 5733esac 5734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5736 ac_status=$? 5737 grep -v '^ *+' conftest.er1 >conftest.err 5738 rm -f conftest.er1 5739 cat conftest.err >&5 5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5741 (exit $ac_status); } >/dev/null && { 5742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5743 test ! -s conftest.err 5744 }; then 5745 ac_header_preproc=yes 5746else 5747 echo "$as_me: failed program was:" >&5 5748sed 's/^/| /' conftest.$ac_ext >&5 5749 5750 ac_header_preproc=no 5751fi 5752 5753rm -f conftest.err conftest.$ac_ext 5754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5755echo "${ECHO_T}$ac_header_preproc" >&6; } 5756 5757# So? What about this header? 5758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5759 yes:no: ) 5760 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5761echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5762 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5763echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5764 ac_header_preproc=yes 5765 ;; 5766 no:yes:* ) 5767 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5768echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5769 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5770echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5771 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5772echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5773 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5774echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5775 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5776echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5777 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5778echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5779 5780 ;; 5781esac 5782{ echo "$as_me:$LINENO: checking for limits.h" >&5 5783echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5784if test "${ac_cv_header_limits_h+set}" = set; then 5785 echo $ECHO_N "(cached) $ECHO_C" >&6 5786else 5787 ac_cv_header_limits_h=$ac_header_preproc 5788fi 5789{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5790echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5791 5792fi 5793if test $ac_cv_header_limits_h = yes; then 5794 5795cat >>confdefs.h <<\_ACEOF 5796#define HAVE_LIMITS_H 1 5797_ACEOF 5798 5799else 5800 5801cat >>confdefs.h <<\_ACEOF 5802#define NO_LIMITS_H 1 5803_ACEOF 5804 5805fi 5806 5807 5808 if test "${ac_cv_header_stdlib_h+set}" = set; then 5809 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5810echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5811if test "${ac_cv_header_stdlib_h+set}" = set; then 5812 echo $ECHO_N "(cached) $ECHO_C" >&6 5813fi 5814{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5815echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5816else 5817 # Is the header compilable? 5818{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5819echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5820cat >conftest.$ac_ext <<_ACEOF 5821/* confdefs.h. */ 5822_ACEOF 5823cat confdefs.h >>conftest.$ac_ext 5824cat >>conftest.$ac_ext <<_ACEOF 5825/* end confdefs.h. */ 5826$ac_includes_default 5827#include <stdlib.h> 5828_ACEOF 5829rm -f conftest.$ac_objext 5830if { (ac_try="$ac_compile" 5831case "(($ac_try" in 5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5833 *) ac_try_echo=$ac_try;; 5834esac 5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5836 (eval "$ac_compile") 2>conftest.er1 5837 ac_status=$? 5838 grep -v '^ *+' conftest.er1 >conftest.err 5839 rm -f conftest.er1 5840 cat conftest.err >&5 5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5842 (exit $ac_status); } && { 5843 test -z "$ac_c_werror_flag" || 5844 test ! -s conftest.err 5845 } && test -s conftest.$ac_objext; then 5846 ac_header_compiler=yes 5847else 5848 echo "$as_me: failed program was:" >&5 5849sed 's/^/| /' conftest.$ac_ext >&5 5850 5851 ac_header_compiler=no 5852fi 5853 5854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5855{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5856echo "${ECHO_T}$ac_header_compiler" >&6; } 5857 5858# Is the header present? 5859{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5860echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5861cat >conftest.$ac_ext <<_ACEOF 5862/* confdefs.h. */ 5863_ACEOF 5864cat confdefs.h >>conftest.$ac_ext 5865cat >>conftest.$ac_ext <<_ACEOF 5866/* end confdefs.h. */ 5867#include <stdlib.h> 5868_ACEOF 5869if { (ac_try="$ac_cpp conftest.$ac_ext" 5870case "(($ac_try" in 5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5872 *) ac_try_echo=$ac_try;; 5873esac 5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5876 ac_status=$? 5877 grep -v '^ *+' conftest.er1 >conftest.err 5878 rm -f conftest.er1 5879 cat conftest.err >&5 5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5881 (exit $ac_status); } >/dev/null && { 5882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5883 test ! -s conftest.err 5884 }; then 5885 ac_header_preproc=yes 5886else 5887 echo "$as_me: failed program was:" >&5 5888sed 's/^/| /' conftest.$ac_ext >&5 5889 5890 ac_header_preproc=no 5891fi 5892 5893rm -f conftest.err conftest.$ac_ext 5894{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5895echo "${ECHO_T}$ac_header_preproc" >&6; } 5896 5897# So? What about this header? 5898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5899 yes:no: ) 5900 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5901echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5902 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5903echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5904 ac_header_preproc=yes 5905 ;; 5906 no:yes:* ) 5907 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5908echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5909 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5910echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5911 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5912echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5913 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5914echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5915 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5916echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5917 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5918echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5919 5920 ;; 5921esac 5922{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5923echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5924if test "${ac_cv_header_stdlib_h+set}" = set; then 5925 echo $ECHO_N "(cached) $ECHO_C" >&6 5926else 5927 ac_cv_header_stdlib_h=$ac_header_preproc 5928fi 5929{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5930echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5931 5932fi 5933if test $ac_cv_header_stdlib_h = yes; then 5934 tcl_ok=1 5935else 5936 tcl_ok=0 5937fi 5938 5939 5940 cat >conftest.$ac_ext <<_ACEOF 5941/* confdefs.h. */ 5942_ACEOF 5943cat confdefs.h >>conftest.$ac_ext 5944cat >>conftest.$ac_ext <<_ACEOF 5945/* end confdefs.h. */ 5946#include <stdlib.h> 5947 5948_ACEOF 5949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5950 $EGREP "strtol" >/dev/null 2>&1; then 5951 : 5952else 5953 tcl_ok=0 5954fi 5955rm -f -r conftest* 5956 5957 cat >conftest.$ac_ext <<_ACEOF 5958/* confdefs.h. */ 5959_ACEOF 5960cat confdefs.h >>conftest.$ac_ext 5961cat >>conftest.$ac_ext <<_ACEOF 5962/* end confdefs.h. */ 5963#include <stdlib.h> 5964 5965_ACEOF 5966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5967 $EGREP "strtoul" >/dev/null 2>&1; then 5968 : 5969else 5970 tcl_ok=0 5971fi 5972rm -f -r conftest* 5973 5974 cat >conftest.$ac_ext <<_ACEOF 5975/* confdefs.h. */ 5976_ACEOF 5977cat confdefs.h >>conftest.$ac_ext 5978cat >>conftest.$ac_ext <<_ACEOF 5979/* end confdefs.h. */ 5980#include <stdlib.h> 5981 5982_ACEOF 5983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5984 $EGREP "strtod" >/dev/null 2>&1; then 5985 : 5986else 5987 tcl_ok=0 5988fi 5989rm -f -r conftest* 5990 5991 if test $tcl_ok = 0; then 5992 5993cat >>confdefs.h <<\_ACEOF 5994#define NO_STDLIB_H 1 5995_ACEOF 5996 5997 fi 5998 if test "${ac_cv_header_string_h+set}" = set; then 5999 { echo "$as_me:$LINENO: checking for string.h" >&5 6000echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6001if test "${ac_cv_header_string_h+set}" = set; then 6002 echo $ECHO_N "(cached) $ECHO_C" >&6 6003fi 6004{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6005echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6006else 6007 # Is the header compilable? 6008{ echo "$as_me:$LINENO: checking string.h usability" >&5 6009echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6010cat >conftest.$ac_ext <<_ACEOF 6011/* confdefs.h. */ 6012_ACEOF 6013cat confdefs.h >>conftest.$ac_ext 6014cat >>conftest.$ac_ext <<_ACEOF 6015/* end confdefs.h. */ 6016$ac_includes_default 6017#include <string.h> 6018_ACEOF 6019rm -f conftest.$ac_objext 6020if { (ac_try="$ac_compile" 6021case "(($ac_try" in 6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6023 *) ac_try_echo=$ac_try;; 6024esac 6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6026 (eval "$ac_compile") 2>conftest.er1 6027 ac_status=$? 6028 grep -v '^ *+' conftest.er1 >conftest.err 6029 rm -f conftest.er1 6030 cat conftest.err >&5 6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6032 (exit $ac_status); } && { 6033 test -z "$ac_c_werror_flag" || 6034 test ! -s conftest.err 6035 } && test -s conftest.$ac_objext; then 6036 ac_header_compiler=yes 6037else 6038 echo "$as_me: failed program was:" >&5 6039sed 's/^/| /' conftest.$ac_ext >&5 6040 6041 ac_header_compiler=no 6042fi 6043 6044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6045{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6046echo "${ECHO_T}$ac_header_compiler" >&6; } 6047 6048# Is the header present? 6049{ echo "$as_me:$LINENO: checking string.h presence" >&5 6050echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6051cat >conftest.$ac_ext <<_ACEOF 6052/* confdefs.h. */ 6053_ACEOF 6054cat confdefs.h >>conftest.$ac_ext 6055cat >>conftest.$ac_ext <<_ACEOF 6056/* end confdefs.h. */ 6057#include <string.h> 6058_ACEOF 6059if { (ac_try="$ac_cpp conftest.$ac_ext" 6060case "(($ac_try" in 6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6062 *) ac_try_echo=$ac_try;; 6063esac 6064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6066 ac_status=$? 6067 grep -v '^ *+' conftest.er1 >conftest.err 6068 rm -f conftest.er1 6069 cat conftest.err >&5 6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6071 (exit $ac_status); } >/dev/null && { 6072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6073 test ! -s conftest.err 6074 }; then 6075 ac_header_preproc=yes 6076else 6077 echo "$as_me: failed program was:" >&5 6078sed 's/^/| /' conftest.$ac_ext >&5 6079 6080 ac_header_preproc=no 6081fi 6082 6083rm -f conftest.err conftest.$ac_ext 6084{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6085echo "${ECHO_T}$ac_header_preproc" >&6; } 6086 6087# So? What about this header? 6088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6089 yes:no: ) 6090 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6091echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6092 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6093echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6094 ac_header_preproc=yes 6095 ;; 6096 no:yes:* ) 6097 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6098echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6099 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6100echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6101 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6102echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6103 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6104echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6105 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6106echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6107 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6108echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6109 6110 ;; 6111esac 6112{ echo "$as_me:$LINENO: checking for string.h" >&5 6113echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6114if test "${ac_cv_header_string_h+set}" = set; then 6115 echo $ECHO_N "(cached) $ECHO_C" >&6 6116else 6117 ac_cv_header_string_h=$ac_header_preproc 6118fi 6119{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6120echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6121 6122fi 6123if test $ac_cv_header_string_h = yes; then 6124 tcl_ok=1 6125else 6126 tcl_ok=0 6127fi 6128 6129 6130 cat >conftest.$ac_ext <<_ACEOF 6131/* confdefs.h. */ 6132_ACEOF 6133cat confdefs.h >>conftest.$ac_ext 6134cat >>conftest.$ac_ext <<_ACEOF 6135/* end confdefs.h. */ 6136#include <string.h> 6137 6138_ACEOF 6139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6140 $EGREP "strstr" >/dev/null 2>&1; then 6141 : 6142else 6143 tcl_ok=0 6144fi 6145rm -f -r conftest* 6146 6147 cat >conftest.$ac_ext <<_ACEOF 6148/* confdefs.h. */ 6149_ACEOF 6150cat confdefs.h >>conftest.$ac_ext 6151cat >>conftest.$ac_ext <<_ACEOF 6152/* end confdefs.h. */ 6153#include <string.h> 6154 6155_ACEOF 6156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6157 $EGREP "strerror" >/dev/null 2>&1; then 6158 : 6159else 6160 tcl_ok=0 6161fi 6162rm -f -r conftest* 6163 6164 6165 # See also memmove check below for a place where NO_STRING_H can be 6166 # set and why. 6167 6168 if test $tcl_ok = 0; then 6169 6170cat >>confdefs.h <<\_ACEOF 6171#define NO_STRING_H 1 6172_ACEOF 6173 6174 fi 6175 6176 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6177 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6178echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6179if test "${ac_cv_header_sys_wait_h+set}" = set; then 6180 echo $ECHO_N "(cached) $ECHO_C" >&6 6181fi 6182{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6183echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6184else 6185 # Is the header compilable? 6186{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6187echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6188cat >conftest.$ac_ext <<_ACEOF 6189/* confdefs.h. */ 6190_ACEOF 6191cat confdefs.h >>conftest.$ac_ext 6192cat >>conftest.$ac_ext <<_ACEOF 6193/* end confdefs.h. */ 6194$ac_includes_default 6195#include <sys/wait.h> 6196_ACEOF 6197rm -f conftest.$ac_objext 6198if { (ac_try="$ac_compile" 6199case "(($ac_try" in 6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6201 *) ac_try_echo=$ac_try;; 6202esac 6203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6204 (eval "$ac_compile") 2>conftest.er1 6205 ac_status=$? 6206 grep -v '^ *+' conftest.er1 >conftest.err 6207 rm -f conftest.er1 6208 cat conftest.err >&5 6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6210 (exit $ac_status); } && { 6211 test -z "$ac_c_werror_flag" || 6212 test ! -s conftest.err 6213 } && test -s conftest.$ac_objext; then 6214 ac_header_compiler=yes 6215else 6216 echo "$as_me: failed program was:" >&5 6217sed 's/^/| /' conftest.$ac_ext >&5 6218 6219 ac_header_compiler=no 6220fi 6221 6222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6224echo "${ECHO_T}$ac_header_compiler" >&6; } 6225 6226# Is the header present? 6227{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6228echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6229cat >conftest.$ac_ext <<_ACEOF 6230/* confdefs.h. */ 6231_ACEOF 6232cat confdefs.h >>conftest.$ac_ext 6233cat >>conftest.$ac_ext <<_ACEOF 6234/* end confdefs.h. */ 6235#include <sys/wait.h> 6236_ACEOF 6237if { (ac_try="$ac_cpp conftest.$ac_ext" 6238case "(($ac_try" in 6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6240 *) ac_try_echo=$ac_try;; 6241esac 6242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6244 ac_status=$? 6245 grep -v '^ *+' conftest.er1 >conftest.err 6246 rm -f conftest.er1 6247 cat conftest.err >&5 6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6249 (exit $ac_status); } >/dev/null && { 6250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6251 test ! -s conftest.err 6252 }; then 6253 ac_header_preproc=yes 6254else 6255 echo "$as_me: failed program was:" >&5 6256sed 's/^/| /' conftest.$ac_ext >&5 6257 6258 ac_header_preproc=no 6259fi 6260 6261rm -f conftest.err conftest.$ac_ext 6262{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6263echo "${ECHO_T}$ac_header_preproc" >&6; } 6264 6265# So? What about this header? 6266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6267 yes:no: ) 6268 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6269echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6270 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6271echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6272 ac_header_preproc=yes 6273 ;; 6274 no:yes:* ) 6275 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6276echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6277 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6278echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6279 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6280echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6281 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6282echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6283 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6284echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6285 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6286echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6287 6288 ;; 6289esac 6290{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6291echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6292if test "${ac_cv_header_sys_wait_h+set}" = set; then 6293 echo $ECHO_N "(cached) $ECHO_C" >&6 6294else 6295 ac_cv_header_sys_wait_h=$ac_header_preproc 6296fi 6297{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6298echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6299 6300fi 6301if test $ac_cv_header_sys_wait_h = yes; then 6302 : 6303else 6304 6305cat >>confdefs.h <<\_ACEOF 6306#define NO_SYS_WAIT_H 1 6307_ACEOF 6308 6309fi 6310 6311 6312 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6313 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6314echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6315if test "${ac_cv_header_dlfcn_h+set}" = set; then 6316 echo $ECHO_N "(cached) $ECHO_C" >&6 6317fi 6318{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6319echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6320else 6321 # Is the header compilable? 6322{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6323echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6324cat >conftest.$ac_ext <<_ACEOF 6325/* confdefs.h. */ 6326_ACEOF 6327cat confdefs.h >>conftest.$ac_ext 6328cat >>conftest.$ac_ext <<_ACEOF 6329/* end confdefs.h. */ 6330$ac_includes_default 6331#include <dlfcn.h> 6332_ACEOF 6333rm -f conftest.$ac_objext 6334if { (ac_try="$ac_compile" 6335case "(($ac_try" in 6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6337 *) ac_try_echo=$ac_try;; 6338esac 6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6340 (eval "$ac_compile") 2>conftest.er1 6341 ac_status=$? 6342 grep -v '^ *+' conftest.er1 >conftest.err 6343 rm -f conftest.er1 6344 cat conftest.err >&5 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); } && { 6347 test -z "$ac_c_werror_flag" || 6348 test ! -s conftest.err 6349 } && test -s conftest.$ac_objext; then 6350 ac_header_compiler=yes 6351else 6352 echo "$as_me: failed program was:" >&5 6353sed 's/^/| /' conftest.$ac_ext >&5 6354 6355 ac_header_compiler=no 6356fi 6357 6358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6359{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6360echo "${ECHO_T}$ac_header_compiler" >&6; } 6361 6362# Is the header present? 6363{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6364echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6365cat >conftest.$ac_ext <<_ACEOF 6366/* confdefs.h. */ 6367_ACEOF 6368cat confdefs.h >>conftest.$ac_ext 6369cat >>conftest.$ac_ext <<_ACEOF 6370/* end confdefs.h. */ 6371#include <dlfcn.h> 6372_ACEOF 6373if { (ac_try="$ac_cpp conftest.$ac_ext" 6374case "(($ac_try" in 6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6376 *) ac_try_echo=$ac_try;; 6377esac 6378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6380 ac_status=$? 6381 grep -v '^ *+' conftest.er1 >conftest.err 6382 rm -f conftest.er1 6383 cat conftest.err >&5 6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6385 (exit $ac_status); } >/dev/null && { 6386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6387 test ! -s conftest.err 6388 }; then 6389 ac_header_preproc=yes 6390else 6391 echo "$as_me: failed program was:" >&5 6392sed 's/^/| /' conftest.$ac_ext >&5 6393 6394 ac_header_preproc=no 6395fi 6396 6397rm -f conftest.err conftest.$ac_ext 6398{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6399echo "${ECHO_T}$ac_header_preproc" >&6; } 6400 6401# So? What about this header? 6402case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6403 yes:no: ) 6404 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6405echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6406 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6407echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6408 ac_header_preproc=yes 6409 ;; 6410 no:yes:* ) 6411 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6412echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6413 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6414echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6415 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6416echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6417 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6418echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6419 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6420echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6421 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6422echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6423 6424 ;; 6425esac 6426{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6427echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6428if test "${ac_cv_header_dlfcn_h+set}" = set; then 6429 echo $ECHO_N "(cached) $ECHO_C" >&6 6430else 6431 ac_cv_header_dlfcn_h=$ac_header_preproc 6432fi 6433{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6434echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6435 6436fi 6437if test $ac_cv_header_dlfcn_h = yes; then 6438 : 6439else 6440 6441cat >>confdefs.h <<\_ACEOF 6442#define NO_DLFCN_H 1 6443_ACEOF 6444 6445fi 6446 6447 6448 6449 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6450 6451for ac_header in sys/param.h 6452do 6453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6455 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6458 echo $ECHO_N "(cached) $ECHO_C" >&6 6459fi 6460ac_res=`eval echo '${'$as_ac_Header'}'` 6461 { echo "$as_me:$LINENO: result: $ac_res" >&5 6462echo "${ECHO_T}$ac_res" >&6; } 6463else 6464 # Is the header compilable? 6465{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6467cat >conftest.$ac_ext <<_ACEOF 6468/* confdefs.h. */ 6469_ACEOF 6470cat confdefs.h >>conftest.$ac_ext 6471cat >>conftest.$ac_ext <<_ACEOF 6472/* end confdefs.h. */ 6473$ac_includes_default 6474#include <$ac_header> 6475_ACEOF 6476rm -f conftest.$ac_objext 6477if { (ac_try="$ac_compile" 6478case "(($ac_try" in 6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6480 *) ac_try_echo=$ac_try;; 6481esac 6482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6483 (eval "$ac_compile") 2>conftest.er1 6484 ac_status=$? 6485 grep -v '^ *+' conftest.er1 >conftest.err 6486 rm -f conftest.er1 6487 cat conftest.err >&5 6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6489 (exit $ac_status); } && { 6490 test -z "$ac_c_werror_flag" || 6491 test ! -s conftest.err 6492 } && test -s conftest.$ac_objext; then 6493 ac_header_compiler=yes 6494else 6495 echo "$as_me: failed program was:" >&5 6496sed 's/^/| /' conftest.$ac_ext >&5 6497 6498 ac_header_compiler=no 6499fi 6500 6501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6502{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6503echo "${ECHO_T}$ac_header_compiler" >&6; } 6504 6505# Is the header present? 6506{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6508cat >conftest.$ac_ext <<_ACEOF 6509/* confdefs.h. */ 6510_ACEOF 6511cat confdefs.h >>conftest.$ac_ext 6512cat >>conftest.$ac_ext <<_ACEOF 6513/* end confdefs.h. */ 6514#include <$ac_header> 6515_ACEOF 6516if { (ac_try="$ac_cpp conftest.$ac_ext" 6517case "(($ac_try" in 6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6519 *) ac_try_echo=$ac_try;; 6520esac 6521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6523 ac_status=$? 6524 grep -v '^ *+' conftest.er1 >conftest.err 6525 rm -f conftest.er1 6526 cat conftest.err >&5 6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6528 (exit $ac_status); } >/dev/null && { 6529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6530 test ! -s conftest.err 6531 }; then 6532 ac_header_preproc=yes 6533else 6534 echo "$as_me: failed program was:" >&5 6535sed 's/^/| /' conftest.$ac_ext >&5 6536 6537 ac_header_preproc=no 6538fi 6539 6540rm -f conftest.err conftest.$ac_ext 6541{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6542echo "${ECHO_T}$ac_header_preproc" >&6; } 6543 6544# So? What about this header? 6545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6546 yes:no: ) 6547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6551 ac_header_preproc=yes 6552 ;; 6553 no:yes:* ) 6554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6561echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6566 6567 ;; 6568esac 6569{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6572 echo $ECHO_N "(cached) $ECHO_C" >&6 6573else 6574 eval "$as_ac_Header=\$ac_header_preproc" 6575fi 6576ac_res=`eval echo '${'$as_ac_Header'}'` 6577 { echo "$as_me:$LINENO: result: $ac_res" >&5 6578echo "${ECHO_T}$ac_res" >&6; } 6579 6580fi 6581if test `eval echo '${'$as_ac_Header'}'` = yes; then 6582 cat >>confdefs.h <<_ACEOF 6583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6584_ACEOF 6585 6586fi 6587 6588done 6589 6590 6591 # Let the user call this, because if it triggers, they will 6592 # need a compat/strtod.c that is correct. Users can also 6593 # use Tcl_GetDouble(FromObj) instead. 6594 #TEA_BUGGY_STRTOD 6595 fi 6596 6597 6598#----------------------------------------------------------------------- 6599# Specify the C source files to compile in TEA_ADD_SOURCES, 6600# public headers that need to be installed in TEA_ADD_HEADERS, 6601# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6602# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6603# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6604# and PKG_TCL_SOURCES. 6605#----------------------------------------------------------------------- 6606 6607 6608 vars="cmpProcBody.c cmpRPkg.c cmpRead.c" 6609 for i in $vars; do 6610 case $i in 6611 \$*) 6612 # allow $-var names 6613 PKG_SOURCES="$PKG_SOURCES $i" 6614 PKG_OBJECTS="$PKG_OBJECTS $i" 6615 ;; 6616 *) 6617 # check for existence - allows for generic/win/unix VPATH 6618 # To add more dirs here (like 'src'), you have to update VPATH 6619 # in Makefile.in as well 6620 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6621 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6622 -a ! -f "${srcdir}/macosx/$i" \ 6623 ; then 6624 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6625echo "$as_me: error: could not find source file '$i'" >&2;} 6626 { (exit 1); exit 1; }; } 6627 fi 6628 PKG_SOURCES="$PKG_SOURCES $i" 6629 # this assumes it is in a VPATH dir 6630 i=`basename $i` 6631 # handle user calling this before or after TEA_SETUP_COMPILER 6632 if test x"${OBJEXT}" != x ; then 6633 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6634 else 6635 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6636 fi 6637 PKG_OBJECTS="$PKG_OBJECTS $j" 6638 ;; 6639 esac 6640 done 6641 6642 6643 6644 6645 vars="cmpInt.h proTbcLoad.h" 6646 for i in $vars; do 6647 # check for existence, be strict because it is installed 6648 if test ! -f "${srcdir}/$i" ; then 6649 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6650echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6651 { (exit 1); exit 1; }; } 6652 fi 6653 PKG_HEADERS="$PKG_HEADERS $i" 6654 done 6655 6656 6657 6658 vars="" 6659 for i in $vars; do 6660 PKG_INCLUDES="$PKG_INCLUDES $i" 6661 done 6662 6663 6664 6665 vars="" 6666 for i in $vars; do 6667 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6668 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6669 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6670 fi 6671 PKG_LIBS="$PKG_LIBS $i" 6672 done 6673 6674 6675 6676 PKG_CFLAGS="$PKG_CFLAGS " 6677 6678 6679 6680 vars="" 6681 for i in $vars; do 6682 # check for existence - allows for generic/win/unix VPATH 6683 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6684 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6685 -a ! -f "${srcdir}/macosx/$i" \ 6686 ; then 6687 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6688echo "$as_me: error: could not find stub source file '$i'" >&2;} 6689 { (exit 1); exit 1; }; } 6690 fi 6691 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6692 # this assumes it is in a VPATH dir 6693 i=`basename $i` 6694 # handle user calling this before or after TEA_SETUP_COMPILER 6695 if test x"${OBJEXT}" != x ; then 6696 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6697 else 6698 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6699 fi 6700 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6701 done 6702 6703 6704 6705 6706 vars="" 6707 for i in $vars; do 6708 # check for existence, be strict because it is installed 6709 if test ! -f "${srcdir}/$i" ; then 6710 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6711echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6712 { (exit 1); exit 1; }; } 6713 fi 6714 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6715 done 6716 6717 6718 6719#-------------------------------------------------------------------- 6720# A few miscellaneous platform-specific items: 6721# 6722# We have to define a special symbol for Windows (BUILD_tbcload in this 6723# case) so that we create the export library with the dll. 6724# 6725# Windows creates a few extra files that need to be cleaned up. 6726# We can add more files to clean if our extension creates any extra 6727# files in the future. 6728# 6729# Define any extra compiler flags in the PACKAGE_CFLAGS variable. 6730# These will be appended to the current set of compiler flags for 6731# your system. 6732#-------------------------------------------------------------------- 6733 6734if test "${TEA_PLATFORM}" = "windows" ; then 6735 cat >>confdefs.h <<\_ACEOF 6736#define BUILD_tbcload 1 6737_ACEOF 6738 6739 CLEANFILES="pkgIndex.tcl *.lib *.dll *.exp *.ilk *.pdb vc*.pch" 6740else 6741 CLEANFILES="pkgIndex.tcl" 6742fi 6743 6744 6745#-------------------------------------------------------------------- 6746# __CHANGE__ 6747# Choose which headers you need. Extension authors should try very 6748# hard to only rely on the Tcl public header files. Internal headers 6749# contain private data structures and are subject to change without 6750# notice. 6751# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6752#-------------------------------------------------------------------- 6753 6754#TEA_PUBLIC_TCL_HEADERS 6755 6756 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6757echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6758 6759 6760# Check whether --with-tclinclude was given. 6761if test "${with_tclinclude+set}" = set; then 6762 withval=$with_tclinclude; with_tclinclude=${withval} 6763fi 6764 6765 6766 if test "${ac_cv_c_tclh+set}" = set; then 6767 echo $ECHO_N "(cached) $ECHO_C" >&6 6768else 6769 6770 # Use the value from --with-tclinclude, if it was given 6771 6772 if test x"${with_tclinclude}" != x ; then 6773 if test -f "${with_tclinclude}/tcl.h" ; then 6774 ac_cv_c_tclh=${with_tclinclude} 6775 else 6776 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6777echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6778 { (exit 1); exit 1; }; } 6779 fi 6780 else 6781 list="" 6782 if test "`uname -s`" = "Darwin"; then 6783 # If Tcl was built as a framework, attempt to use 6784 # the framework's Headers directory 6785 case ${TCL_DEFS} in 6786 *TCL_FRAMEWORK*) 6787 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6788 ;; 6789 esac 6790 fi 6791 6792 # Look in the source dir only if Tcl is not installed, 6793 # and in that situation, look there before installed locations. 6794 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6795 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6796 fi 6797 6798 # Check order: pkg --prefix location, Tcl's --prefix location, 6799 # relative to directory of tclConfig.sh. 6800 6801 eval "temp_includedir=${includedir}" 6802 list="$list \ 6803 `ls -d ${temp_includedir} 2>/dev/null` \ 6804 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6805 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6806 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6807 list="$list /usr/local/include /usr/include" 6808 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6809 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6810 list="$list `ls -d ${d} 2>/dev/null`" 6811 fi 6812 fi 6813 for i in $list ; do 6814 if test -f "$i/tcl.h" ; then 6815 ac_cv_c_tclh=$i 6816 break 6817 fi 6818 done 6819 fi 6820 6821fi 6822 6823 6824 # Print a message based on how we determined the include path 6825 6826 if test x"${ac_cv_c_tclh}" = x ; then 6827 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6828echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6829 { (exit 1); exit 1; }; } 6830 else 6831 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6832echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6833 fi 6834 6835 # Convert to a native path and substitute into the output files. 6836 6837 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6838 6839 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6840 6841 6842 6843 6844 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} 6845 6846 { echo "$as_me:$LINENO: checking for Tcl private include files" >&5 6847echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; } 6848 6849 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 6850 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 6851 6852 # Check to see if tcl<Plat>Port.h isn't already with the public headers 6853 # Don't look for tclInt.h because that resides with tcl.h in the core 6854 # sources, but the <plat>Port headers are in a different directory 6855 if test "${TEA_PLATFORM}" = "windows" -a \ 6856 -f "${ac_cv_c_tclh}/tclWinPort.h"; then 6857 result="private headers found with public headers" 6858 elif test "${TEA_PLATFORM}" = "unix" -a \ 6859 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then 6860 result="private headers found with public headers" 6861 else 6862 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 6863 if test "${TEA_PLATFORM}" = "windows"; then 6864 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 6865 else 6866 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 6867 fi 6868 # Overwrite the previous TCL_INCLUDES as this should capture both 6869 # public and private headers in the same set. 6870 # We want to ensure these are substituted so as not to require 6871 # any *_NATIVE vars be defined in the Makefile 6872 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 6873 if test "`uname -s`" = "Darwin"; then 6874 # If Tcl was built as a framework, attempt to use 6875 # the framework's Headers and PrivateHeaders directories 6876 case ${TCL_DEFS} in 6877 *TCL_FRAMEWORK*) 6878 if test -d "${TCL_BIN_DIR}/Headers" -a \ 6879 -d "${TCL_BIN_DIR}/PrivateHeaders"; then 6880 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" 6881 else 6882 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 6883 fi 6884 ;; 6885 esac 6886 result="Using ${TCL_INCLUDES}" 6887 else 6888 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 6889 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5 6890echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;} 6891 { (exit 1); exit 1; }; } 6892 fi 6893 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" 6894 fi 6895 fi 6896 6897 6898 6899 6900 { echo "$as_me:$LINENO: result: ${result}" >&5 6901echo "${ECHO_T}${result}" >&6; } 6902 6903 6904#-------------------------------------------------------------------- 6905# Check whether --enable-threads or --disable-threads was given. 6906# So far only Tcl responds to this one. 6907#-------------------------------------------------------------------- 6908 6909 6910 # Check whether --enable-threads was given. 6911if test "${enable_threads+set}" = set; then 6912 enableval=$enable_threads; tcl_ok=$enableval 6913else 6914 tcl_ok=yes 6915fi 6916 6917 6918 if test "${enable_threads+set}" = set; then 6919 enableval="$enable_threads" 6920 tcl_ok=$enableval 6921 else 6922 tcl_ok=yes 6923 fi 6924 6925 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 6926 TCL_THREADS=1 6927 6928 if test "${TEA_PLATFORM}" != "windows" ; then 6929 # We are always OK on Windows, so check what this platform wants: 6930 6931 # USE_THREAD_ALLOC tells us to try the special thread-based 6932 # allocator that significantly reduces lock contention 6933 6934cat >>confdefs.h <<\_ACEOF 6935#define USE_THREAD_ALLOC 1 6936_ACEOF 6937 6938 6939cat >>confdefs.h <<\_ACEOF 6940#define _REENTRANT 1 6941_ACEOF 6942 6943 if test "`uname -s`" = "SunOS" ; then 6944 6945cat >>confdefs.h <<\_ACEOF 6946#define _POSIX_PTHREAD_SEMANTICS 1 6947_ACEOF 6948 6949 fi 6950 6951cat >>confdefs.h <<\_ACEOF 6952#define _THREAD_SAFE 1 6953_ACEOF 6954 6955 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 6956echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 6957if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 6958 echo $ECHO_N "(cached) $ECHO_C" >&6 6959else 6960 ac_check_lib_save_LIBS=$LIBS 6961LIBS="-lpthread $LIBS" 6962cat >conftest.$ac_ext <<_ACEOF 6963/* confdefs.h. */ 6964_ACEOF 6965cat confdefs.h >>conftest.$ac_ext 6966cat >>conftest.$ac_ext <<_ACEOF 6967/* end confdefs.h. */ 6968 6969/* Override any GCC internal prototype to avoid an error. 6970 Use char because int might match the return type of a GCC 6971 builtin and then its argument prototype would still apply. */ 6972#ifdef __cplusplus 6973extern "C" 6974#endif 6975char pthread_mutex_init (); 6976int 6977main () 6978{ 6979return pthread_mutex_init (); 6980 ; 6981 return 0; 6982} 6983_ACEOF 6984rm -f conftest.$ac_objext conftest$ac_exeext 6985if { (ac_try="$ac_link" 6986case "(($ac_try" in 6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6988 *) ac_try_echo=$ac_try;; 6989esac 6990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6991 (eval "$ac_link") 2>conftest.er1 6992 ac_status=$? 6993 grep -v '^ *+' conftest.er1 >conftest.err 6994 rm -f conftest.er1 6995 cat conftest.err >&5 6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6997 (exit $ac_status); } && { 6998 test -z "$ac_c_werror_flag" || 6999 test ! -s conftest.err 7000 } && test -s conftest$ac_exeext && 7001 $as_test_x conftest$ac_exeext; then 7002 ac_cv_lib_pthread_pthread_mutex_init=yes 7003else 7004 echo "$as_me: failed program was:" >&5 7005sed 's/^/| /' conftest.$ac_ext >&5 7006 7007 ac_cv_lib_pthread_pthread_mutex_init=no 7008fi 7009 7010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7011 conftest$ac_exeext conftest.$ac_ext 7012LIBS=$ac_check_lib_save_LIBS 7013fi 7014{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 7015echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 7016if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 7017 tcl_ok=yes 7018else 7019 tcl_ok=no 7020fi 7021 7022 if test "$tcl_ok" = "no"; then 7023 # Check a little harder for __pthread_mutex_init in the same 7024 # library, as some systems hide it there until pthread.h is 7025 # defined. We could alternatively do an AC_TRY_COMPILE with 7026 # pthread.h, but that will work with libpthread really doesn't 7027 # exist, like AIX 4.2. [Bug: 4359] 7028 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 7029echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 7030if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 7031 echo $ECHO_N "(cached) $ECHO_C" >&6 7032else 7033 ac_check_lib_save_LIBS=$LIBS 7034LIBS="-lpthread $LIBS" 7035cat >conftest.$ac_ext <<_ACEOF 7036/* confdefs.h. */ 7037_ACEOF 7038cat confdefs.h >>conftest.$ac_ext 7039cat >>conftest.$ac_ext <<_ACEOF 7040/* end confdefs.h. */ 7041 7042/* Override any GCC internal prototype to avoid an error. 7043 Use char because int might match the return type of a GCC 7044 builtin and then its argument prototype would still apply. */ 7045#ifdef __cplusplus 7046extern "C" 7047#endif 7048char __pthread_mutex_init (); 7049int 7050main () 7051{ 7052return __pthread_mutex_init (); 7053 ; 7054 return 0; 7055} 7056_ACEOF 7057rm -f conftest.$ac_objext conftest$ac_exeext 7058if { (ac_try="$ac_link" 7059case "(($ac_try" in 7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7061 *) ac_try_echo=$ac_try;; 7062esac 7063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7064 (eval "$ac_link") 2>conftest.er1 7065 ac_status=$? 7066 grep -v '^ *+' conftest.er1 >conftest.err 7067 rm -f conftest.er1 7068 cat conftest.err >&5 7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7070 (exit $ac_status); } && { 7071 test -z "$ac_c_werror_flag" || 7072 test ! -s conftest.err 7073 } && test -s conftest$ac_exeext && 7074 $as_test_x conftest$ac_exeext; then 7075 ac_cv_lib_pthread___pthread_mutex_init=yes 7076else 7077 echo "$as_me: failed program was:" >&5 7078sed 's/^/| /' conftest.$ac_ext >&5 7079 7080 ac_cv_lib_pthread___pthread_mutex_init=no 7081fi 7082 7083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7084 conftest$ac_exeext conftest.$ac_ext 7085LIBS=$ac_check_lib_save_LIBS 7086fi 7087{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 7088echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 7089if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 7090 tcl_ok=yes 7091else 7092 tcl_ok=no 7093fi 7094 7095 fi 7096 7097 if test "$tcl_ok" = "yes"; then 7098 # The space is needed 7099 THREADS_LIBS=" -lpthread" 7100 else 7101 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 7102echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 7103if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 7104 echo $ECHO_N "(cached) $ECHO_C" >&6 7105else 7106 ac_check_lib_save_LIBS=$LIBS 7107LIBS="-lpthreads $LIBS" 7108cat >conftest.$ac_ext <<_ACEOF 7109/* confdefs.h. */ 7110_ACEOF 7111cat confdefs.h >>conftest.$ac_ext 7112cat >>conftest.$ac_ext <<_ACEOF 7113/* end confdefs.h. */ 7114 7115/* Override any GCC internal prototype to avoid an error. 7116 Use char because int might match the return type of a GCC 7117 builtin and then its argument prototype would still apply. */ 7118#ifdef __cplusplus 7119extern "C" 7120#endif 7121char pthread_mutex_init (); 7122int 7123main () 7124{ 7125return pthread_mutex_init (); 7126 ; 7127 return 0; 7128} 7129_ACEOF 7130rm -f conftest.$ac_objext conftest$ac_exeext 7131if { (ac_try="$ac_link" 7132case "(($ac_try" in 7133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7134 *) ac_try_echo=$ac_try;; 7135esac 7136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7137 (eval "$ac_link") 2>conftest.er1 7138 ac_status=$? 7139 grep -v '^ *+' conftest.er1 >conftest.err 7140 rm -f conftest.er1 7141 cat conftest.err >&5 7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7143 (exit $ac_status); } && { 7144 test -z "$ac_c_werror_flag" || 7145 test ! -s conftest.err 7146 } && test -s conftest$ac_exeext && 7147 $as_test_x conftest$ac_exeext; then 7148 ac_cv_lib_pthreads_pthread_mutex_init=yes 7149else 7150 echo "$as_me: failed program was:" >&5 7151sed 's/^/| /' conftest.$ac_ext >&5 7152 7153 ac_cv_lib_pthreads_pthread_mutex_init=no 7154fi 7155 7156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7157 conftest$ac_exeext conftest.$ac_ext 7158LIBS=$ac_check_lib_save_LIBS 7159fi 7160{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 7161echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 7162if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 7163 tcl_ok=yes 7164else 7165 tcl_ok=no 7166fi 7167 7168 if test "$tcl_ok" = "yes"; then 7169 # The space is needed 7170 THREADS_LIBS=" -lpthreads" 7171 else 7172 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 7173echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 7174if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 7175 echo $ECHO_N "(cached) $ECHO_C" >&6 7176else 7177 ac_check_lib_save_LIBS=$LIBS 7178LIBS="-lc $LIBS" 7179cat >conftest.$ac_ext <<_ACEOF 7180/* confdefs.h. */ 7181_ACEOF 7182cat confdefs.h >>conftest.$ac_ext 7183cat >>conftest.$ac_ext <<_ACEOF 7184/* end confdefs.h. */ 7185 7186/* Override any GCC internal prototype to avoid an error. 7187 Use char because int might match the return type of a GCC 7188 builtin and then its argument prototype would still apply. */ 7189#ifdef __cplusplus 7190extern "C" 7191#endif 7192char pthread_mutex_init (); 7193int 7194main () 7195{ 7196return pthread_mutex_init (); 7197 ; 7198 return 0; 7199} 7200_ACEOF 7201rm -f conftest.$ac_objext conftest$ac_exeext 7202if { (ac_try="$ac_link" 7203case "(($ac_try" in 7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7205 *) ac_try_echo=$ac_try;; 7206esac 7207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7208 (eval "$ac_link") 2>conftest.er1 7209 ac_status=$? 7210 grep -v '^ *+' conftest.er1 >conftest.err 7211 rm -f conftest.er1 7212 cat conftest.err >&5 7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7214 (exit $ac_status); } && { 7215 test -z "$ac_c_werror_flag" || 7216 test ! -s conftest.err 7217 } && test -s conftest$ac_exeext && 7218 $as_test_x conftest$ac_exeext; then 7219 ac_cv_lib_c_pthread_mutex_init=yes 7220else 7221 echo "$as_me: failed program was:" >&5 7222sed 's/^/| /' conftest.$ac_ext >&5 7223 7224 ac_cv_lib_c_pthread_mutex_init=no 7225fi 7226 7227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7228 conftest$ac_exeext conftest.$ac_ext 7229LIBS=$ac_check_lib_save_LIBS 7230fi 7231{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 7232echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 7233if test $ac_cv_lib_c_pthread_mutex_init = yes; then 7234 tcl_ok=yes 7235else 7236 tcl_ok=no 7237fi 7238 7239 if test "$tcl_ok" = "no"; then 7240 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 7241echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 7242if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 7243 echo $ECHO_N "(cached) $ECHO_C" >&6 7244else 7245 ac_check_lib_save_LIBS=$LIBS 7246LIBS="-lc_r $LIBS" 7247cat >conftest.$ac_ext <<_ACEOF 7248/* confdefs.h. */ 7249_ACEOF 7250cat confdefs.h >>conftest.$ac_ext 7251cat >>conftest.$ac_ext <<_ACEOF 7252/* end confdefs.h. */ 7253 7254/* Override any GCC internal prototype to avoid an error. 7255 Use char because int might match the return type of a GCC 7256 builtin and then its argument prototype would still apply. */ 7257#ifdef __cplusplus 7258extern "C" 7259#endif 7260char pthread_mutex_init (); 7261int 7262main () 7263{ 7264return pthread_mutex_init (); 7265 ; 7266 return 0; 7267} 7268_ACEOF 7269rm -f conftest.$ac_objext conftest$ac_exeext 7270if { (ac_try="$ac_link" 7271case "(($ac_try" in 7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7273 *) ac_try_echo=$ac_try;; 7274esac 7275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7276 (eval "$ac_link") 2>conftest.er1 7277 ac_status=$? 7278 grep -v '^ *+' conftest.er1 >conftest.err 7279 rm -f conftest.er1 7280 cat conftest.err >&5 7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7282 (exit $ac_status); } && { 7283 test -z "$ac_c_werror_flag" || 7284 test ! -s conftest.err 7285 } && test -s conftest$ac_exeext && 7286 $as_test_x conftest$ac_exeext; then 7287 ac_cv_lib_c_r_pthread_mutex_init=yes 7288else 7289 echo "$as_me: failed program was:" >&5 7290sed 's/^/| /' conftest.$ac_ext >&5 7291 7292 ac_cv_lib_c_r_pthread_mutex_init=no 7293fi 7294 7295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7296 conftest$ac_exeext conftest.$ac_ext 7297LIBS=$ac_check_lib_save_LIBS 7298fi 7299{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 7300echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 7301if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 7302 tcl_ok=yes 7303else 7304 tcl_ok=no 7305fi 7306 7307 if test "$tcl_ok" = "yes"; then 7308 # The space is needed 7309 THREADS_LIBS=" -pthread" 7310 else 7311 TCL_THREADS=0 7312 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 7313echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 7314 fi 7315 fi 7316 fi 7317 fi 7318 fi 7319 else 7320 TCL_THREADS=0 7321 fi 7322 # Do checking message here to not mess up interleaved configure output 7323 { echo "$as_me:$LINENO: checking for building with threads" >&5 7324echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 7325 if test "${TCL_THREADS}" = 1; then 7326 7327cat >>confdefs.h <<\_ACEOF 7328#define TCL_THREADS 1 7329_ACEOF 7330 7331 { echo "$as_me:$LINENO: result: yes (default)" >&5 7332echo "${ECHO_T}yes (default)" >&6; } 7333 else 7334 { echo "$as_me:$LINENO: result: no" >&5 7335echo "${ECHO_T}no" >&6; } 7336 fi 7337 # TCL_THREADS sanity checking. See if our request for building with 7338 # threads is the same as the way Tcl was built. If not, warn the user. 7339 case ${TCL_DEFS} in 7340 *THREADS=1*) 7341 if test "${TCL_THREADS}" = "0"; then 7342 { echo "$as_me:$LINENO: WARNING: 7343 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7344 that IS thread-enabled. It is recommended to use --enable-threads." >&5 7345echo "$as_me: WARNING: 7346 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 7347 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 7348 fi 7349 ;; 7350 *) 7351 if test "${TCL_THREADS}" = "1"; then 7352 { echo "$as_me:$LINENO: WARNING: 7353 --enable-threads requested, but building against a Tcl that is NOT 7354 thread-enabled. This is an OK configuration that will also run in 7355 a thread-enabled core." >&5 7356echo "$as_me: WARNING: 7357 --enable-threads requested, but building against a Tcl that is NOT 7358 thread-enabled. This is an OK configuration that will also run in 7359 a thread-enabled core." >&2;} 7360 fi 7361 ;; 7362 esac 7363 7364 7365 7366#-------------------------------------------------------------------- 7367# The statement below defines a collection of symbols related to 7368# building as a shared library instead of a static library. 7369#-------------------------------------------------------------------- 7370 7371 7372 { echo "$as_me:$LINENO: checking how to build libraries" >&5 7373echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 7374 # Check whether --enable-shared was given. 7375if test "${enable_shared+set}" = set; then 7376 enableval=$enable_shared; tcl_ok=$enableval 7377else 7378 tcl_ok=yes 7379fi 7380 7381 7382 if test "${enable_shared+set}" = set; then 7383 enableval="$enable_shared" 7384 tcl_ok=$enableval 7385 else 7386 tcl_ok=yes 7387 fi 7388 7389 if test "$tcl_ok" = "yes" ; then 7390 { echo "$as_me:$LINENO: result: shared" >&5 7391echo "${ECHO_T}shared" >&6; } 7392 SHARED_BUILD=1 7393 else 7394 { echo "$as_me:$LINENO: result: static" >&5 7395echo "${ECHO_T}static" >&6; } 7396 SHARED_BUILD=0 7397 7398cat >>confdefs.h <<\_ACEOF 7399#define STATIC_BUILD 1 7400_ACEOF 7401 7402 fi 7403 7404 7405 7406#-------------------------------------------------------------------- 7407# This macro figures out what flags to use with the compiler/linker 7408# when building shared/static debug/optimized objects. This information 7409# can be taken from the tclConfig.sh file, but this figures it all out. 7410#-------------------------------------------------------------------- 7411 7412 7413 7414 7415 # Step 0.a: Enable 64 bit support? 7416 7417 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 7418echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 7419 # Check whether --enable-64bit was given. 7420if test "${enable_64bit+set}" = set; then 7421 enableval=$enable_64bit; do64bit=$enableval 7422else 7423 do64bit=no 7424fi 7425 7426 { echo "$as_me:$LINENO: result: $do64bit" >&5 7427echo "${ECHO_T}$do64bit" >&6; } 7428 7429 # Step 0.b: Enable Solaris 64 bit VIS support? 7430 7431 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 7432echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 7433 # Check whether --enable-64bit-vis was given. 7434if test "${enable_64bit_vis+set}" = set; then 7435 enableval=$enable_64bit_vis; do64bitVIS=$enableval 7436else 7437 do64bitVIS=no 7438fi 7439 7440 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 7441echo "${ECHO_T}$do64bitVIS" >&6; } 7442 # Force 64bit on with VIS 7443 if test "$do64bitVIS" = "yes"; then 7444 do64bit=yes 7445fi 7446 7447 7448 # Step 0.c: Check if visibility support is available. Do this here so 7449 # that platform specific alternatives can be used below if this fails. 7450 7451 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 7452echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 7453if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 7454 echo $ECHO_N "(cached) $ECHO_C" >&6 7455else 7456 7457 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 7458 cat >conftest.$ac_ext <<_ACEOF 7459/* confdefs.h. */ 7460_ACEOF 7461cat confdefs.h >>conftest.$ac_ext 7462cat >>conftest.$ac_ext <<_ACEOF 7463/* end confdefs.h. */ 7464 7465 extern __attribute__((__visibility__("hidden"))) void f(void); 7466 void f(void) {} 7467int 7468main () 7469{ 7470f(); 7471 ; 7472 return 0; 7473} 7474_ACEOF 7475rm -f conftest.$ac_objext conftest$ac_exeext 7476if { (ac_try="$ac_link" 7477case "(($ac_try" in 7478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7479 *) ac_try_echo=$ac_try;; 7480esac 7481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7482 (eval "$ac_link") 2>conftest.er1 7483 ac_status=$? 7484 grep -v '^ *+' conftest.er1 >conftest.err 7485 rm -f conftest.er1 7486 cat conftest.err >&5 7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7488 (exit $ac_status); } && { 7489 test -z "$ac_c_werror_flag" || 7490 test ! -s conftest.err 7491 } && test -s conftest$ac_exeext && 7492 $as_test_x conftest$ac_exeext; then 7493 tcl_cv_cc_visibility_hidden=yes 7494else 7495 echo "$as_me: failed program was:" >&5 7496sed 's/^/| /' conftest.$ac_ext >&5 7497 7498 tcl_cv_cc_visibility_hidden=no 7499fi 7500 7501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7502 conftest$ac_exeext conftest.$ac_ext 7503 CFLAGS=$hold_cflags 7504fi 7505{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 7506echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 7507 if test $tcl_cv_cc_visibility_hidden = yes; then 7508 7509 7510cat >>confdefs.h <<\_ACEOF 7511#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 7512_ACEOF 7513 7514 7515fi 7516 7517 7518 # Step 0.d: Disable -rpath support? 7519 7520 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 7521echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 7522 # Check whether --enable-rpath was given. 7523if test "${enable_rpath+set}" = set; then 7524 enableval=$enable_rpath; doRpath=$enableval 7525else 7526 doRpath=yes 7527fi 7528 7529 { echo "$as_me:$LINENO: result: $doRpath" >&5 7530echo "${ECHO_T}$doRpath" >&6; } 7531 7532 # TEA specific: Cross-compiling options for Windows/CE builds? 7533 7534 if test "${TEA_PLATFORM}" = windows; then 7535 7536 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 7537echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 7538 # Check whether --enable-wince was given. 7539if test "${enable_wince+set}" = set; then 7540 enableval=$enable_wince; doWince=$enableval 7541else 7542 doWince=no 7543fi 7544 7545 { echo "$as_me:$LINENO: result: $doWince" >&5 7546echo "${ECHO_T}$doWince" >&6; } 7547 7548fi 7549 7550 7551 # Set the variable "system" to hold the name and version number 7552 # for the system. 7553 7554 7555 { echo "$as_me:$LINENO: checking system version" >&5 7556echo $ECHO_N "checking system version... $ECHO_C" >&6; } 7557if test "${tcl_cv_sys_version+set}" = set; then 7558 echo $ECHO_N "(cached) $ECHO_C" >&6 7559else 7560 7561 # TEA specific: 7562 if test "${TEA_PLATFORM}" = "windows" ; then 7563 tcl_cv_sys_version=windows 7564 else 7565 tcl_cv_sys_version=`uname -s`-`uname -r` 7566 if test "$?" -ne 0 ; then 7567 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 7568echo "$as_me: WARNING: can't find uname command" >&2;} 7569 tcl_cv_sys_version=unknown 7570 else 7571 if test "`uname -s`" = "AIX" ; then 7572 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 7573 fi 7574 fi 7575 fi 7576 7577fi 7578{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 7579echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 7580 system=$tcl_cv_sys_version 7581 7582 7583 # Require ranlib early so we can override it in special cases below. 7584 7585 7586 7587 # Set configuration options based on system name and version. 7588 # This is similar to Tcl's unix/tcl.m4 except that we've added a 7589 # "windows" case and removed some core-only vars. 7590 7591 do64bit_ok=no 7592 # default to '{$LIBS}' and set to "" on per-platform necessary basis 7593 SHLIB_LD_LIBS='${LIBS}' 7594 # When ld needs options to work in 64-bit mode, put them in 7595 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 7596 # is disabled by the user. [Bug 1016796] 7597 LDFLAGS_ARCH="" 7598 UNSHARED_LIB_SUFFIX="" 7599 # TEA specific: use PACKAGE_VERSION instead of VERSION 7600 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 7601 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 7602 TCL_LIB_VERSIONS_OK=ok 7603 CFLAGS_DEBUG=-g 7604 CFLAGS_OPTIMIZE=-O 7605 if test "$GCC" = yes; then 7606 7607 # TEA specific: 7608 CFLAGS_OPTIMIZE=-O2 7609 CFLAGS_WARNING="-Wall" 7610 7611else 7612 CFLAGS_WARNING="" 7613fi 7614 7615 # Extract the first word of "ar", so it can be a program name with args. 7616set dummy ar; ac_word=$2 7617{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7619if test "${ac_cv_prog_AR+set}" = set; then 7620 echo $ECHO_N "(cached) $ECHO_C" >&6 7621else 7622 if test -n "$AR"; then 7623 ac_cv_prog_AR="$AR" # Let the user override the test. 7624else 7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7626for as_dir in $PATH 7627do 7628 IFS=$as_save_IFS 7629 test -z "$as_dir" && as_dir=. 7630 for ac_exec_ext in '' $ac_executable_extensions; do 7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7632 ac_cv_prog_AR="ar" 7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7634 break 2 7635 fi 7636done 7637done 7638IFS=$as_save_IFS 7639 7640fi 7641fi 7642AR=$ac_cv_prog_AR 7643if test -n "$AR"; then 7644 { echo "$as_me:$LINENO: result: $AR" >&5 7645echo "${ECHO_T}$AR" >&6; } 7646else 7647 { echo "$as_me:$LINENO: result: no" >&5 7648echo "${ECHO_T}no" >&6; } 7649fi 7650 7651 7652 STLIB_LD='${AR} cr' 7653 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 7654 if test "x$SHLIB_VERSION" = x; then 7655 SHLIB_VERSION="1.0" 7656fi 7657 7658 case $system in 7659 # TEA specific: 7660 windows) 7661 # This is a 2-stage check to make sure we have the 64-bit SDK 7662 # We have to know where the SDK is installed. 7663 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 7664 # MACHINE is IX86 for LINK, but this is used by the manifest, 7665 # which requires x86|amd64|ia64. 7666 MACHINE="X86" 7667 if test "$do64bit" != "no" ; then 7668 if test "x${MSSDK}x" = "xx" ; then 7669 MSSDK="C:/Progra~1/Microsoft Platform SDK" 7670 fi 7671 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 7672 PATH64="" 7673 case "$do64bit" in 7674 amd64|x64|yes) 7675 MACHINE="AMD64" ; # default to AMD64 64-bit build 7676 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 7677 ;; 7678 ia64) 7679 MACHINE="IA64" 7680 PATH64="${MSSDK}/Bin/Win64" 7681 ;; 7682 esac 7683 if test ! -d "${PATH64}" ; then 7684 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 7685echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 7686 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 7687echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 7688 do64bit="no" 7689 else 7690 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 7691echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 7692 do64bit_ok="yes" 7693 fi 7694 fi 7695 7696 if test "$doWince" != "no" ; then 7697 if test "$do64bit" != "no" ; then 7698 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 7699echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 7700 { (exit 1); exit 1; }; } 7701 fi 7702 if test "$GCC" = "yes" ; then 7703 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 7704echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 7705 { (exit 1); exit 1; }; } 7706 fi 7707 7708 # First, look for one uninstalled. 7709 # the alternative search directory is invoked by --with-celib 7710 7711 if test x"${no_celib}" = x ; then 7712 # we reset no_celib in case something fails here 7713 no_celib=true 7714 7715# Check whether --with-celib was given. 7716if test "${with_celib+set}" = set; then 7717 withval=$with_celib; with_celibconfig=${withval} 7718fi 7719 7720 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 7721echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 7722 if test "${ac_cv_c_celibconfig+set}" = set; then 7723 echo $ECHO_N "(cached) $ECHO_C" >&6 7724else 7725 7726 # First check to see if --with-celibconfig was specified. 7727 if test x"${with_celibconfig}" != x ; then 7728 if test -d "${with_celibconfig}/inc" ; then 7729 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 7730 else 7731 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 7732echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 7733 { (exit 1); exit 1; }; } 7734 fi 7735 fi 7736 7737 # then check for a celib library 7738 if test x"${ac_cv_c_celibconfig}" = x ; then 7739 for i in \ 7740 ../celib-palm-3.0 \ 7741 ../celib \ 7742 ../../celib-palm-3.0 \ 7743 ../../celib \ 7744 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 7745 ${srcdir}/../celib-palm-3.0 \ 7746 ${srcdir}/../celib \ 7747 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 7748 ; do 7749 if test -d "$i/inc" ; then 7750 ac_cv_c_celibconfig=`(cd $i; pwd)` 7751 break 7752 fi 7753 done 7754 fi 7755 7756fi 7757 7758 if test x"${ac_cv_c_celibconfig}" = x ; then 7759 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 7760echo "$as_me: error: Cannot find celib support library directory" >&2;} 7761 { (exit 1); exit 1; }; } 7762 else 7763 no_celib= 7764 CELIB_DIR=${ac_cv_c_celibconfig} 7765 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 7766 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 7767echo "${ECHO_T}found $CELIB_DIR" >&6; } 7768 fi 7769 fi 7770 7771 # Set defaults for common evc4/PPC2003 setup 7772 # Currently Tcl requires 300+, possibly 420+ for sockets 7773 CEVERSION=420; # could be 211 300 301 400 420 ... 7774 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 7775 ARCH=ARM; # could be ARM MIPS X86EM ... 7776 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 7777 if test "$doWince" != "yes"; then 7778 # If !yes then the user specified something 7779 # Reset ARCH to allow user to skip specifying it 7780 ARCH= 7781 eval `echo $doWince | awk -F, '{ \ 7782 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 7783 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 7784 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 7785 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 7786 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 7787 }'` 7788 if test "x${ARCH}" = "x" ; then 7789 ARCH=$TARGETCPU; 7790 fi 7791 fi 7792 OSVERSION=WCE$CEVERSION; 7793 if test "x${WCEROOT}" = "x" ; then 7794 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 7795 if test ! -d "${WCEROOT}" ; then 7796 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 7797 fi 7798 fi 7799 if test "x${SDKROOT}" = "x" ; then 7800 SDKROOT="C:/Program Files/Windows CE Tools" 7801 if test ! -d "${SDKROOT}" ; then 7802 SDKROOT="C:/Windows CE Tools" 7803 fi 7804 fi 7805 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 7806 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 7807 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 7808 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 7809 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 7810echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 7811 { (exit 1); exit 1; }; } 7812 doWince="no" 7813 else 7814 # We could PATH_NOSPACE these, but that's not important, 7815 # as long as we quote them when used. 7816 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 7817 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 7818 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 7819 fi 7820 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 7821 fi 7822 fi 7823 7824 if test "$GCC" != "yes" ; then 7825 if test "${SHARED_BUILD}" = "0" ; then 7826 runtime=-MT 7827 else 7828 runtime=-MD 7829 fi 7830 7831 if test "$do64bit" != "no" ; then 7832 # All this magic is necessary for the Win64 SDK RC1 - hobbs 7833 CC="\"${PATH64}/cl.exe\"" 7834 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 7835 RC="\"${MSSDK}/bin/rc.exe\"" 7836 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 7837 LINKBIN="\"${PATH64}/link.exe\"" 7838 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 7839 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7840 # Avoid 'unresolved external symbol __security_cookie' 7841 # errors, c.f. http://support.microsoft.com/?id=894573 7842 7843 vars="bufferoverflowU.lib" 7844 for i in $vars; do 7845 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7846 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7847 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7848 fi 7849 PKG_LIBS="$PKG_LIBS $i" 7850 done 7851 7852 7853 elif test "$doWince" != "no" ; then 7854 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 7855 if test "${TARGETCPU}" = "X86"; then 7856 CC="\"${CEBINROOT}/cl.exe\"" 7857 else 7858 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 7859 fi 7860 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 7861 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 7862 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 7863 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 7864 if test "${SHARED_BUILD}" = "1" ; then 7865 # Static CE builds require static celib as well 7866 defs="${defs} _DLL" 7867 fi 7868 for i in $defs ; do 7869 7870cat >>confdefs.h <<_ACEOF 7871#define $i 1 7872_ACEOF 7873 7874 done 7875 7876cat >>confdefs.h <<_ACEOF 7877#define _WIN32_WCE $CEVERSION 7878_ACEOF 7879 7880 7881cat >>confdefs.h <<_ACEOF 7882#define UNDER_CE $CEVERSION 7883_ACEOF 7884 7885 CFLAGS_DEBUG="-nologo -Zi -Od" 7886 CFLAGS_OPTIMIZE="-nologo -Ox" 7887 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 7888 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 7889 LINKBIN="\"${CEBINROOT}/link.exe\"" 7890 7891 else 7892 RC="rc" 7893 lflags="-nologo" 7894 LINKBIN="link" 7895 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 7896 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 7897 fi 7898 fi 7899 7900 if test "$GCC" = "yes"; then 7901 # mingw gcc mode 7902 RC="windres" 7903 CFLAGS_DEBUG="-g" 7904 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7905 SHLIB_LD="$CC -shared" 7906 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7907 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 7908 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 7909 else 7910 SHLIB_LD="${LINKBIN} -dll ${lflags}" 7911 # link -lib only works when -lib is the first arg 7912 STLIB_LD="${LINKBIN} -lib ${lflags}" 7913 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 7914 PATHTYPE=-w 7915 # For information on what debugtype is most useful, see: 7916 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 7917 # and also 7918 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 7919 # This essentially turns it all on. 7920 LDFLAGS_DEBUG="-debug -debugtype:cv" 7921 LDFLAGS_OPTIMIZE="-release" 7922 if test "$doWince" != "no" ; then 7923 LDFLAGS_CONSOLE="-link ${lflags}" 7924 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 7925 else 7926 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 7927 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 7928 fi 7929 fi 7930 7931 SHLIB_SUFFIX=".dll" 7932 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 7933 7934 TCL_LIB_VERSIONS_OK=nodots 7935 ;; 7936 AIX-*) 7937 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 7938 7939 # AIX requires the _r compiler when gcc isn't being used 7940 case "${CC}" in 7941 *_r|*_r\ *) 7942 # ok ... 7943 ;; 7944 *) 7945 # Make sure only first arg gets _r 7946 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 7947 ;; 7948 esac 7949 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 7950echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 7951 7952fi 7953 7954 LIBS="$LIBS -lc" 7955 SHLIB_CFLAGS="" 7956 SHLIB_SUFFIX=".so" 7957 7958 LD_LIBRARY_PATH_VAR="LIBPATH" 7959 7960 # Check to enable 64-bit flags for compiler/linker 7961 if test "$do64bit" = yes; then 7962 7963 if test "$GCC" = yes; then 7964 7965 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 7966echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7967 7968else 7969 7970 do64bit_ok=yes 7971 CFLAGS="$CFLAGS -q64" 7972 LDFLAGS_ARCH="-q64" 7973 RANLIB="${RANLIB} -X64" 7974 AR="${AR} -X64" 7975 SHLIB_LD_FLAGS="-b64" 7976 7977fi 7978 7979 7980fi 7981 7982 7983 if test "`uname -m`" = ia64; then 7984 7985 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 7986 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7987 if test "$GCC" = yes; then 7988 7989 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7990 7991else 7992 7993 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 7994 7995fi 7996 7997 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7998 7999else 8000 8001 if test "$GCC" = yes; then 8002 8003 SHLIB_LD='${CC} -shared -Wl,-bexpall' 8004 8005else 8006 8007 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 8008 LDFLAGS="$LDFLAGS -brtl" 8009 8010fi 8011 8012 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 8013 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 8014 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8015 8016fi 8017 8018 ;; 8019 BeOS*) 8020 SHLIB_CFLAGS="-fPIC" 8021 SHLIB_LD='${CC} -nostart' 8022 SHLIB_SUFFIX=".so" 8023 8024 #----------------------------------------------------------- 8025 # Check for inet_ntoa in -lbind, for BeOS (which also needs 8026 # -lsocket, even if the network functions are in -lnet which 8027 # is always linked to, for compatibility. 8028 #----------------------------------------------------------- 8029 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 8030echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 8031if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 8032 echo $ECHO_N "(cached) $ECHO_C" >&6 8033else 8034 ac_check_lib_save_LIBS=$LIBS 8035LIBS="-lbind $LIBS" 8036cat >conftest.$ac_ext <<_ACEOF 8037/* confdefs.h. */ 8038_ACEOF 8039cat confdefs.h >>conftest.$ac_ext 8040cat >>conftest.$ac_ext <<_ACEOF 8041/* end confdefs.h. */ 8042 8043/* Override any GCC internal prototype to avoid an error. 8044 Use char because int might match the return type of a GCC 8045 builtin and then its argument prototype would still apply. */ 8046#ifdef __cplusplus 8047extern "C" 8048#endif 8049char inet_ntoa (); 8050int 8051main () 8052{ 8053return inet_ntoa (); 8054 ; 8055 return 0; 8056} 8057_ACEOF 8058rm -f conftest.$ac_objext conftest$ac_exeext 8059if { (ac_try="$ac_link" 8060case "(($ac_try" in 8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8062 *) ac_try_echo=$ac_try;; 8063esac 8064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8065 (eval "$ac_link") 2>conftest.er1 8066 ac_status=$? 8067 grep -v '^ *+' conftest.er1 >conftest.err 8068 rm -f conftest.er1 8069 cat conftest.err >&5 8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8071 (exit $ac_status); } && { 8072 test -z "$ac_c_werror_flag" || 8073 test ! -s conftest.err 8074 } && test -s conftest$ac_exeext && 8075 $as_test_x conftest$ac_exeext; then 8076 ac_cv_lib_bind_inet_ntoa=yes 8077else 8078 echo "$as_me: failed program was:" >&5 8079sed 's/^/| /' conftest.$ac_ext >&5 8080 8081 ac_cv_lib_bind_inet_ntoa=no 8082fi 8083 8084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8085 conftest$ac_exeext conftest.$ac_ext 8086LIBS=$ac_check_lib_save_LIBS 8087fi 8088{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 8089echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 8090if test $ac_cv_lib_bind_inet_ntoa = yes; then 8091 LIBS="$LIBS -lbind -lsocket" 8092fi 8093 8094 ;; 8095 BSD/OS-4.*) 8096 SHLIB_CFLAGS="-export-dynamic -fPIC" 8097 SHLIB_LD='${CC} -shared' 8098 SHLIB_SUFFIX=".so" 8099 LDFLAGS="$LDFLAGS -export-dynamic" 8100 CC_SEARCH_FLAGS="" 8101 LD_SEARCH_FLAGS="" 8102 ;; 8103 CYGWIN_*) 8104 SHLIB_CFLAGS="" 8105 SHLIB_LD='${CC} -shared' 8106 SHLIB_SUFFIX=".dll" 8107 EXE_SUFFIX=".exe" 8108 CC_SEARCH_FLAGS="" 8109 LD_SEARCH_FLAGS="" 8110 ;; 8111 Haiku*) 8112 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8113 SHLIB_CFLAGS="-fPIC" 8114 SHLIB_SUFFIX=".so" 8115 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 8116 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 8117echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 8118if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 8119 echo $ECHO_N "(cached) $ECHO_C" >&6 8120else 8121 ac_check_lib_save_LIBS=$LIBS 8122LIBS="-lnetwork $LIBS" 8123cat >conftest.$ac_ext <<_ACEOF 8124/* confdefs.h. */ 8125_ACEOF 8126cat confdefs.h >>conftest.$ac_ext 8127cat >>conftest.$ac_ext <<_ACEOF 8128/* end confdefs.h. */ 8129 8130/* Override any GCC internal prototype to avoid an error. 8131 Use char because int might match the return type of a GCC 8132 builtin and then its argument prototype would still apply. */ 8133#ifdef __cplusplus 8134extern "C" 8135#endif 8136char inet_ntoa (); 8137int 8138main () 8139{ 8140return inet_ntoa (); 8141 ; 8142 return 0; 8143} 8144_ACEOF 8145rm -f conftest.$ac_objext conftest$ac_exeext 8146if { (ac_try="$ac_link" 8147case "(($ac_try" in 8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8149 *) ac_try_echo=$ac_try;; 8150esac 8151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8152 (eval "$ac_link") 2>conftest.er1 8153 ac_status=$? 8154 grep -v '^ *+' conftest.er1 >conftest.err 8155 rm -f conftest.er1 8156 cat conftest.err >&5 8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8158 (exit $ac_status); } && { 8159 test -z "$ac_c_werror_flag" || 8160 test ! -s conftest.err 8161 } && test -s conftest$ac_exeext && 8162 $as_test_x conftest$ac_exeext; then 8163 ac_cv_lib_network_inet_ntoa=yes 8164else 8165 echo "$as_me: failed program was:" >&5 8166sed 's/^/| /' conftest.$ac_ext >&5 8167 8168 ac_cv_lib_network_inet_ntoa=no 8169fi 8170 8171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8172 conftest$ac_exeext conftest.$ac_ext 8173LIBS=$ac_check_lib_save_LIBS 8174fi 8175{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 8176echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 8177if test $ac_cv_lib_network_inet_ntoa = yes; then 8178 LIBS="$LIBS -lnetwork" 8179fi 8180 8181 ;; 8182 HP-UX-*.11.*) 8183 # Use updated header definitions where possible 8184 8185cat >>confdefs.h <<\_ACEOF 8186#define _XOPEN_SOURCE_EXTENDED 1 8187_ACEOF 8188 8189 # TEA specific: Needed by Tcl, but not most extensions 8190 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 8191 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 8192 8193 if test "`uname -m`" = ia64; then 8194 8195 SHLIB_SUFFIX=".so" 8196 # Use newer C++ library for C++ extensions 8197 #if test "$GCC" != "yes" ; then 8198 # CPPFLAGS="-AA" 8199 #fi 8200 8201else 8202 8203 SHLIB_SUFFIX=".sl" 8204 8205fi 8206 8207 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8208echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 8209if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8210 echo $ECHO_N "(cached) $ECHO_C" >&6 8211else 8212 ac_check_lib_save_LIBS=$LIBS 8213LIBS="-ldld $LIBS" 8214cat >conftest.$ac_ext <<_ACEOF 8215/* confdefs.h. */ 8216_ACEOF 8217cat confdefs.h >>conftest.$ac_ext 8218cat >>conftest.$ac_ext <<_ACEOF 8219/* end confdefs.h. */ 8220 8221/* Override any GCC internal prototype to avoid an error. 8222 Use char because int might match the return type of a GCC 8223 builtin and then its argument prototype would still apply. */ 8224#ifdef __cplusplus 8225extern "C" 8226#endif 8227char shl_load (); 8228int 8229main () 8230{ 8231return shl_load (); 8232 ; 8233 return 0; 8234} 8235_ACEOF 8236rm -f conftest.$ac_objext conftest$ac_exeext 8237if { (ac_try="$ac_link" 8238case "(($ac_try" in 8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8240 *) ac_try_echo=$ac_try;; 8241esac 8242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8243 (eval "$ac_link") 2>conftest.er1 8244 ac_status=$? 8245 grep -v '^ *+' conftest.er1 >conftest.err 8246 rm -f conftest.er1 8247 cat conftest.err >&5 8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8249 (exit $ac_status); } && { 8250 test -z "$ac_c_werror_flag" || 8251 test ! -s conftest.err 8252 } && test -s conftest$ac_exeext && 8253 $as_test_x conftest$ac_exeext; then 8254 ac_cv_lib_dld_shl_load=yes 8255else 8256 echo "$as_me: failed program was:" >&5 8257sed 's/^/| /' conftest.$ac_ext >&5 8258 8259 ac_cv_lib_dld_shl_load=no 8260fi 8261 8262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8263 conftest$ac_exeext conftest.$ac_ext 8264LIBS=$ac_check_lib_save_LIBS 8265fi 8266{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8267echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 8268if test $ac_cv_lib_dld_shl_load = yes; then 8269 tcl_ok=yes 8270else 8271 tcl_ok=no 8272fi 8273 8274 if test "$tcl_ok" = yes; then 8275 8276 LDFLAGS="$LDFLAGS -E" 8277 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 8278 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 8279 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 8280 8281fi 8282 8283 if test "$GCC" = yes; then 8284 8285 SHLIB_LD='${CC} -shared' 8286 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8287 8288else 8289 8290 CFLAGS="$CFLAGS -z" 8291 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 8292 #CFLAGS="$CFLAGS +DAportable" 8293 SHLIB_CFLAGS="+z" 8294 SHLIB_LD="ld -b" 8295 8296fi 8297 8298 8299 # Check to enable 64-bit flags for compiler/linker 8300 if test "$do64bit" = "yes"; then 8301 8302 if test "$GCC" = yes; then 8303 8304 case `${CC} -dumpmachine` in 8305 hppa64*) 8306 # 64-bit gcc in use. Fix flags for GNU ld. 8307 do64bit_ok=yes 8308 SHLIB_LD='${CC} -shared' 8309 if test $doRpath = yes; then 8310 8311 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8312fi 8313 8314 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8315 ;; 8316 *) 8317 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 8318echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 8319 ;; 8320 esac 8321 8322else 8323 8324 do64bit_ok=yes 8325 CFLAGS="$CFLAGS +DD64" 8326 LDFLAGS_ARCH="+DD64" 8327 8328fi 8329 8330 8331fi 8332 ;; 8333 IRIX-6.*) 8334 SHLIB_CFLAGS="" 8335 SHLIB_LD="ld -n32 -shared -rdata_shared" 8336 SHLIB_SUFFIX=".so" 8337 if test $doRpath = yes; then 8338 8339 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8340 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8341fi 8342 8343 if test "$GCC" = yes; then 8344 8345 CFLAGS="$CFLAGS -mabi=n32" 8346 LDFLAGS="$LDFLAGS -mabi=n32" 8347 8348else 8349 8350 case $system in 8351 IRIX-6.3) 8352 # Use to build 6.2 compatible binaries on 6.3. 8353 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 8354 ;; 8355 *) 8356 CFLAGS="$CFLAGS -n32" 8357 ;; 8358 esac 8359 LDFLAGS="$LDFLAGS -n32" 8360 8361fi 8362 8363 ;; 8364 IRIX64-6.*) 8365 SHLIB_CFLAGS="" 8366 SHLIB_LD="ld -n32 -shared -rdata_shared" 8367 SHLIB_SUFFIX=".so" 8368 if test $doRpath = yes; then 8369 8370 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8371 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8372fi 8373 8374 8375 # Check to enable 64-bit flags for compiler/linker 8376 8377 if test "$do64bit" = yes; then 8378 8379 if test "$GCC" = yes; then 8380 8381 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 8382echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 8383 8384else 8385 8386 do64bit_ok=yes 8387 SHLIB_LD="ld -64 -shared -rdata_shared" 8388 CFLAGS="$CFLAGS -64" 8389 LDFLAGS_ARCH="-64" 8390 8391fi 8392 8393 8394fi 8395 8396 ;; 8397 Linux*) 8398 SHLIB_CFLAGS="-fPIC" 8399 SHLIB_SUFFIX=".so" 8400 8401 # TEA specific: 8402 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 8403 8404 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8405 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 8406 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8407 if test $doRpath = yes; then 8408 8409 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8410fi 8411 8412 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8413 if test "`uname -m`" = "alpha"; then 8414 CFLAGS="$CFLAGS -mieee" 8415fi 8416 8417 if test $do64bit = yes; then 8418 8419 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 8420echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 8421if test "${tcl_cv_cc_m64+set}" = set; then 8422 echo $ECHO_N "(cached) $ECHO_C" >&6 8423else 8424 8425 hold_cflags=$CFLAGS 8426 CFLAGS="$CFLAGS -m64" 8427 cat >conftest.$ac_ext <<_ACEOF 8428/* confdefs.h. */ 8429_ACEOF 8430cat confdefs.h >>conftest.$ac_ext 8431cat >>conftest.$ac_ext <<_ACEOF 8432/* end confdefs.h. */ 8433 8434int 8435main () 8436{ 8437 8438 ; 8439 return 0; 8440} 8441_ACEOF 8442rm -f conftest.$ac_objext conftest$ac_exeext 8443if { (ac_try="$ac_link" 8444case "(($ac_try" in 8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8446 *) ac_try_echo=$ac_try;; 8447esac 8448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8449 (eval "$ac_link") 2>conftest.er1 8450 ac_status=$? 8451 grep -v '^ *+' conftest.er1 >conftest.err 8452 rm -f conftest.er1 8453 cat conftest.err >&5 8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8455 (exit $ac_status); } && { 8456 test -z "$ac_c_werror_flag" || 8457 test ! -s conftest.err 8458 } && test -s conftest$ac_exeext && 8459 $as_test_x conftest$ac_exeext; then 8460 tcl_cv_cc_m64=yes 8461else 8462 echo "$as_me: failed program was:" >&5 8463sed 's/^/| /' conftest.$ac_ext >&5 8464 8465 tcl_cv_cc_m64=no 8466fi 8467 8468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8469 conftest$ac_exeext conftest.$ac_ext 8470 CFLAGS=$hold_cflags 8471fi 8472{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 8473echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 8474 if test $tcl_cv_cc_m64 = yes; then 8475 8476 CFLAGS="$CFLAGS -m64" 8477 do64bit_ok=yes 8478 8479fi 8480 8481 8482fi 8483 8484 8485 # The combo of gcc + glibc has a bug related to inlining of 8486 # functions like strtod(). The -fno-builtin flag should address 8487 # this problem but it does not work. The -fno-inline flag is kind 8488 # of overkill but it works. Disable inlining only when one of the 8489 # files in compat/*.c is being linked in. 8490 8491 if test x"${USE_COMPAT}" != x; then 8492 CFLAGS="$CFLAGS -fno-inline" 8493fi 8494 8495 8496 ;; 8497 GNU*) 8498 SHLIB_CFLAGS="-fPIC" 8499 SHLIB_SUFFIX=".so" 8500 8501 SHLIB_LD='${CC} -shared' 8502 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 8503 CC_SEARCH_FLAGS="" 8504 LD_SEARCH_FLAGS="" 8505 if test "`uname -m`" = "alpha"; then 8506 CFLAGS="$CFLAGS -mieee" 8507fi 8508 8509 ;; 8510 Lynx*) 8511 SHLIB_CFLAGS="-fPIC" 8512 SHLIB_SUFFIX=".so" 8513 CFLAGS_OPTIMIZE=-02 8514 SHLIB_LD='${CC} -shared' 8515 LD_FLAGS="-Wl,--export-dynamic" 8516 if test $doRpath = yes; then 8517 8518 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8519 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8520fi 8521 8522 ;; 8523 OpenBSD-*) 8524 SHLIB_CFLAGS="-fPIC" 8525 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8526 SHLIB_SUFFIX=".so" 8527 if test $doRpath = yes; then 8528 8529 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8530fi 8531 8532 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8533 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 8534 { echo "$as_me:$LINENO: checking for ELF" >&5 8535echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 8536if test "${tcl_cv_ld_elf+set}" = set; then 8537 echo $ECHO_N "(cached) $ECHO_C" >&6 8538else 8539 8540 cat >conftest.$ac_ext <<_ACEOF 8541/* confdefs.h. */ 8542_ACEOF 8543cat confdefs.h >>conftest.$ac_ext 8544cat >>conftest.$ac_ext <<_ACEOF 8545/* end confdefs.h. */ 8546 8547#ifdef __ELF__ 8548 yes 8549#endif 8550 8551_ACEOF 8552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8553 $EGREP "yes" >/dev/null 2>&1; then 8554 tcl_cv_ld_elf=yes 8555else 8556 tcl_cv_ld_elf=no 8557fi 8558rm -f -r conftest* 8559 8560fi 8561{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 8562echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 8563 if test $tcl_cv_ld_elf = yes; then 8564 8565 LDFLAGS=-Wl,-export-dynamic 8566 8567else 8568 LDFLAGS="" 8569fi 8570 8571 if test "${TCL_THREADS}" = "1"; then 8572 8573 # OpenBSD builds and links with -pthread, never -lpthread. 8574 LIBS=`echo $LIBS | sed s/-lpthread//` 8575 CFLAGS="$CFLAGS -pthread" 8576 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 8577 8578fi 8579 8580 # OpenBSD doesn't do version numbers with dots. 8581 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8582 TCL_LIB_VERSIONS_OK=nodots 8583 ;; 8584 NetBSD-*|FreeBSD-[3-4].*) 8585 # FreeBSD 3.* and greater have ELF. 8586 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 8587 SHLIB_CFLAGS="-fPIC" 8588 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 8589 SHLIB_SUFFIX=".so" 8590 LDFLAGS="$LDFLAGS -export-dynamic" 8591 if test $doRpath = yes; then 8592 8593 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8594fi 8595 8596 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 8597 if test "${TCL_THREADS}" = "1"; then 8598 8599 # The -pthread needs to go in the CFLAGS, not LIBS 8600 LIBS=`echo $LIBS | sed s/-pthread//` 8601 CFLAGS="$CFLAGS -pthread" 8602 LDFLAGS="$LDFLAGS -pthread" 8603 8604fi 8605 8606 case $system in 8607 FreeBSD-3.*) 8608 # FreeBSD-3 doesn't handle version numbers with dots. 8609 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8610 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 8611 TCL_LIB_VERSIONS_OK=nodots 8612 ;; 8613 esac 8614 ;; 8615 FreeBSD-*) 8616 # This configuration from FreeBSD Ports. 8617 SHLIB_CFLAGS="-fPIC" 8618 SHLIB_LD="${CC} -shared" 8619 TCL_SHLIB_LD_EXTRAS="-soname \$@" 8620 SHLIB_SUFFIX=".so" 8621 LDFLAGS="" 8622 if test $doRpath = yes; then 8623 8624 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 8625 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 8626fi 8627 8628 if test "${TCL_THREADS}" = "1"; then 8629 8630 # The -pthread needs to go in the LDFLAGS, not LIBS 8631 LIBS=`echo $LIBS | sed s/-pthread//` 8632 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8633 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 8634fi 8635 8636 # Version numbers are dot-stripped by system policy. 8637 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 8638 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 8639 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 8640 TCL_LIB_VERSIONS_OK=nodots 8641 ;; 8642 Darwin-*) 8643 CFLAGS_OPTIMIZE="-Os" 8644 SHLIB_CFLAGS="-fno-common" 8645 # To avoid discrepancies between what headers configure sees during 8646 # preprocessing tests and compiling tests, move any -isysroot and 8647 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 8648 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 8649 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8650 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 8651 CFLAGS="`echo " ${CFLAGS}" | \ 8652 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 8653 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 8654 if test $do64bit = yes; then 8655 8656 case `arch` in 8657 ppc) 8658 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 8659echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 8660if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 8661 echo $ECHO_N "(cached) $ECHO_C" >&6 8662else 8663 8664 hold_cflags=$CFLAGS 8665 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8666 cat >conftest.$ac_ext <<_ACEOF 8667/* confdefs.h. */ 8668_ACEOF 8669cat confdefs.h >>conftest.$ac_ext 8670cat >>conftest.$ac_ext <<_ACEOF 8671/* end confdefs.h. */ 8672 8673int 8674main () 8675{ 8676 8677 ; 8678 return 0; 8679} 8680_ACEOF 8681rm -f conftest.$ac_objext conftest$ac_exeext 8682if { (ac_try="$ac_link" 8683case "(($ac_try" in 8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8685 *) ac_try_echo=$ac_try;; 8686esac 8687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8688 (eval "$ac_link") 2>conftest.er1 8689 ac_status=$? 8690 grep -v '^ *+' conftest.er1 >conftest.err 8691 rm -f conftest.er1 8692 cat conftest.err >&5 8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8694 (exit $ac_status); } && { 8695 test -z "$ac_c_werror_flag" || 8696 test ! -s conftest.err 8697 } && test -s conftest$ac_exeext && 8698 $as_test_x conftest$ac_exeext; then 8699 tcl_cv_cc_arch_ppc64=yes 8700else 8701 echo "$as_me: failed program was:" >&5 8702sed 's/^/| /' conftest.$ac_ext >&5 8703 8704 tcl_cv_cc_arch_ppc64=no 8705fi 8706 8707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8708 conftest$ac_exeext conftest.$ac_ext 8709 CFLAGS=$hold_cflags 8710fi 8711{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 8712echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 8713 if test $tcl_cv_cc_arch_ppc64 = yes; then 8714 8715 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 8716 do64bit_ok=yes 8717 8718fi 8719;; 8720 i386) 8721 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 8722echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 8723if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 8724 echo $ECHO_N "(cached) $ECHO_C" >&6 8725else 8726 8727 hold_cflags=$CFLAGS 8728 CFLAGS="$CFLAGS -arch x86_64" 8729 cat >conftest.$ac_ext <<_ACEOF 8730/* confdefs.h. */ 8731_ACEOF 8732cat confdefs.h >>conftest.$ac_ext 8733cat >>conftest.$ac_ext <<_ACEOF 8734/* end confdefs.h. */ 8735 8736int 8737main () 8738{ 8739 8740 ; 8741 return 0; 8742} 8743_ACEOF 8744rm -f conftest.$ac_objext conftest$ac_exeext 8745if { (ac_try="$ac_link" 8746case "(($ac_try" in 8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8748 *) ac_try_echo=$ac_try;; 8749esac 8750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8751 (eval "$ac_link") 2>conftest.er1 8752 ac_status=$? 8753 grep -v '^ *+' conftest.er1 >conftest.err 8754 rm -f conftest.er1 8755 cat conftest.err >&5 8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8757 (exit $ac_status); } && { 8758 test -z "$ac_c_werror_flag" || 8759 test ! -s conftest.err 8760 } && test -s conftest$ac_exeext && 8761 $as_test_x conftest$ac_exeext; then 8762 tcl_cv_cc_arch_x86_64=yes 8763else 8764 echo "$as_me: failed program was:" >&5 8765sed 's/^/| /' conftest.$ac_ext >&5 8766 8767 tcl_cv_cc_arch_x86_64=no 8768fi 8769 8770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8771 conftest$ac_exeext conftest.$ac_ext 8772 CFLAGS=$hold_cflags 8773fi 8774{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 8775echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 8776 if test $tcl_cv_cc_arch_x86_64 = yes; then 8777 8778 CFLAGS="$CFLAGS -arch x86_64" 8779 do64bit_ok=yes 8780 8781fi 8782;; 8783 *) 8784 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 8785echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 8786 esac 8787 8788else 8789 8790 # Check for combined 32-bit and 64-bit fat build 8791 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 8792 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 8793 8794 fat_32_64=yes 8795fi 8796 8797 8798fi 8799 8800 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 8801 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 8802 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 8803echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 8804if test "${tcl_cv_ld_single_module+set}" = set; then 8805 echo $ECHO_N "(cached) $ECHO_C" >&6 8806else 8807 8808 hold_ldflags=$LDFLAGS 8809 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 8810 cat >conftest.$ac_ext <<_ACEOF 8811/* confdefs.h. */ 8812_ACEOF 8813cat confdefs.h >>conftest.$ac_ext 8814cat >>conftest.$ac_ext <<_ACEOF 8815/* end confdefs.h. */ 8816 8817int 8818main () 8819{ 8820int i; 8821 ; 8822 return 0; 8823} 8824_ACEOF 8825rm -f conftest.$ac_objext conftest$ac_exeext 8826if { (ac_try="$ac_link" 8827case "(($ac_try" in 8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8829 *) ac_try_echo=$ac_try;; 8830esac 8831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8832 (eval "$ac_link") 2>conftest.er1 8833 ac_status=$? 8834 grep -v '^ *+' conftest.er1 >conftest.err 8835 rm -f conftest.er1 8836 cat conftest.err >&5 8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8838 (exit $ac_status); } && { 8839 test -z "$ac_c_werror_flag" || 8840 test ! -s conftest.err 8841 } && test -s conftest$ac_exeext && 8842 $as_test_x conftest$ac_exeext; then 8843 tcl_cv_ld_single_module=yes 8844else 8845 echo "$as_me: failed program was:" >&5 8846sed 's/^/| /' conftest.$ac_ext >&5 8847 8848 tcl_cv_ld_single_module=no 8849fi 8850 8851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8852 conftest$ac_exeext conftest.$ac_ext 8853 LDFLAGS=$hold_ldflags 8854fi 8855{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 8856echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 8857 if test $tcl_cv_ld_single_module = yes; then 8858 8859 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 8860 8861fi 8862 8863 # TEA specific: link shlib with current and compatiblity version flags 8864 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 8865 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 8866 SHLIB_SUFFIX=".dylib" 8867 # Don't use -prebind when building for Mac OS X 10.4 or later only: 8868 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 8869 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 8870 8871 LDFLAGS="$LDFLAGS -prebind" 8872fi 8873 8874 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 8875 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 8876echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 8877if test "${tcl_cv_ld_search_paths_first+set}" = set; then 8878 echo $ECHO_N "(cached) $ECHO_C" >&6 8879else 8880 8881 hold_ldflags=$LDFLAGS 8882 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8883 cat >conftest.$ac_ext <<_ACEOF 8884/* confdefs.h. */ 8885_ACEOF 8886cat confdefs.h >>conftest.$ac_ext 8887cat >>conftest.$ac_ext <<_ACEOF 8888/* end confdefs.h. */ 8889 8890int 8891main () 8892{ 8893int i; 8894 ; 8895 return 0; 8896} 8897_ACEOF 8898rm -f conftest.$ac_objext conftest$ac_exeext 8899if { (ac_try="$ac_link" 8900case "(($ac_try" in 8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8902 *) ac_try_echo=$ac_try;; 8903esac 8904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8905 (eval "$ac_link") 2>conftest.er1 8906 ac_status=$? 8907 grep -v '^ *+' conftest.er1 >conftest.err 8908 rm -f conftest.er1 8909 cat conftest.err >&5 8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8911 (exit $ac_status); } && { 8912 test -z "$ac_c_werror_flag" || 8913 test ! -s conftest.err 8914 } && test -s conftest$ac_exeext && 8915 $as_test_x conftest$ac_exeext; then 8916 tcl_cv_ld_search_paths_first=yes 8917else 8918 echo "$as_me: failed program was:" >&5 8919sed 's/^/| /' conftest.$ac_ext >&5 8920 8921 tcl_cv_ld_search_paths_first=no 8922fi 8923 8924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8925 conftest$ac_exeext conftest.$ac_ext 8926 LDFLAGS=$hold_ldflags 8927fi 8928{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 8929echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 8930 if test $tcl_cv_ld_search_paths_first = yes; then 8931 8932 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 8933 8934fi 8935 8936 if test "$tcl_cv_cc_visibility_hidden" != yes; then 8937 8938 8939cat >>confdefs.h <<\_ACEOF 8940#define MODULE_SCOPE __private_extern__ 8941_ACEOF 8942 8943 tcl_cv_cc_visibility_hidden=yes 8944 8945fi 8946 8947 CC_SEARCH_FLAGS="" 8948 LD_SEARCH_FLAGS="" 8949 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 8950 # TEA specific: for combined 32 & 64 bit fat builds of Tk 8951 # extensions, verify that 64-bit build is possible. 8952 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 8953 8954 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 8955 8956 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 8957echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 8958if test "${tcl_cv_lib_x11_64+set}" = set; then 8959 echo $ECHO_N "(cached) $ECHO_C" >&6 8960else 8961 8962 for v in CFLAGS CPPFLAGS LDFLAGS; do 8963 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 8964 done 8965 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 8966 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 8967 cat >conftest.$ac_ext <<_ACEOF 8968/* confdefs.h. */ 8969_ACEOF 8970cat confdefs.h >>conftest.$ac_ext 8971cat >>conftest.$ac_ext <<_ACEOF 8972/* end confdefs.h. */ 8973#include <X11/Xlib.h> 8974int 8975main () 8976{ 8977XrmInitialize(); 8978 ; 8979 return 0; 8980} 8981_ACEOF 8982rm -f conftest.$ac_objext conftest$ac_exeext 8983if { (ac_try="$ac_link" 8984case "(($ac_try" in 8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8986 *) ac_try_echo=$ac_try;; 8987esac 8988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8989 (eval "$ac_link") 2>conftest.er1 8990 ac_status=$? 8991 grep -v '^ *+' conftest.er1 >conftest.err 8992 rm -f conftest.er1 8993 cat conftest.err >&5 8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8995 (exit $ac_status); } && { 8996 test -z "$ac_c_werror_flag" || 8997 test ! -s conftest.err 8998 } && test -s conftest$ac_exeext && 8999 $as_test_x conftest$ac_exeext; then 9000 tcl_cv_lib_x11_64=yes 9001else 9002 echo "$as_me: failed program was:" >&5 9003sed 's/^/| /' conftest.$ac_ext >&5 9004 9005 tcl_cv_lib_x11_64=no 9006fi 9007 9008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9009 conftest$ac_exeext conftest.$ac_ext 9010 for v in CFLAGS CPPFLAGS LDFLAGS; do 9011 eval $v'="$hold_'$v'"' 9012 done 9013fi 9014{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 9015echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 9016 9017fi 9018 9019 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 9020 9021 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 9022echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 9023if test "${tcl_cv_lib_tk_64+set}" = set; then 9024 echo $ECHO_N "(cached) $ECHO_C" >&6 9025else 9026 9027 for v in CFLAGS CPPFLAGS LDFLAGS; do 9028 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 9029 done 9030 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 9031 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 9032 cat >conftest.$ac_ext <<_ACEOF 9033/* confdefs.h. */ 9034_ACEOF 9035cat confdefs.h >>conftest.$ac_ext 9036cat >>conftest.$ac_ext <<_ACEOF 9037/* end confdefs.h. */ 9038#include <tk.h> 9039int 9040main () 9041{ 9042Tk_InitStubs(NULL, "", 0); 9043 ; 9044 return 0; 9045} 9046_ACEOF 9047rm -f conftest.$ac_objext conftest$ac_exeext 9048if { (ac_try="$ac_link" 9049case "(($ac_try" in 9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9051 *) ac_try_echo=$ac_try;; 9052esac 9053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9054 (eval "$ac_link") 2>conftest.er1 9055 ac_status=$? 9056 grep -v '^ *+' conftest.er1 >conftest.err 9057 rm -f conftest.er1 9058 cat conftest.err >&5 9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9060 (exit $ac_status); } && { 9061 test -z "$ac_c_werror_flag" || 9062 test ! -s conftest.err 9063 } && test -s conftest$ac_exeext && 9064 $as_test_x conftest$ac_exeext; then 9065 tcl_cv_lib_tk_64=yes 9066else 9067 echo "$as_me: failed program was:" >&5 9068sed 's/^/| /' conftest.$ac_ext >&5 9069 9070 tcl_cv_lib_tk_64=no 9071fi 9072 9073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9074 conftest$ac_exeext conftest.$ac_ext 9075 for v in CFLAGS CPPFLAGS LDFLAGS; do 9076 eval $v'="$hold_'$v'"' 9077 done 9078fi 9079{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 9080echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 9081 9082fi 9083 9084 # remove 64-bit arch flags from CFLAGS et al. if configuration 9085 # does not support 64-bit. 9086 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 9087 9088 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 9089echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 9090 for v in CFLAGS CPPFLAGS LDFLAGS; do 9091 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 9092 done 9093fi 9094 9095 9096fi 9097 9098 ;; 9099 OS/390-*) 9100 CFLAGS_OPTIMIZE="" # Optimizer is buggy 9101 9102cat >>confdefs.h <<\_ACEOF 9103#define _OE_SOCKETS 1 9104_ACEOF 9105 9106 ;; 9107 OSF1-V*) 9108 # Digital OSF/1 9109 SHLIB_CFLAGS="" 9110 if test "$SHARED_BUILD" = 1; then 9111 9112 SHLIB_LD='ld -shared -expect_unresolved "*"' 9113 9114else 9115 9116 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 9117 9118fi 9119 9120 SHLIB_SUFFIX=".so" 9121 if test $doRpath = yes; then 9122 9123 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 9124 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 9125fi 9126 9127 if test "$GCC" = yes; then 9128 CFLAGS="$CFLAGS -mieee" 9129else 9130 9131 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 9132fi 9133 9134 # see pthread_intro(3) for pthread support on osf1, k.furukawa 9135 if test "${TCL_THREADS}" = 1; then 9136 9137 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 9138 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 9139 LIBS=`echo $LIBS | sed s/-lpthreads//` 9140 if test "$GCC" = yes; then 9141 9142 LIBS="$LIBS -lpthread -lmach -lexc" 9143 9144else 9145 9146 CFLAGS="$CFLAGS -pthread" 9147 LDFLAGS="$LDFLAGS -pthread" 9148 9149fi 9150 9151 9152fi 9153 9154 ;; 9155 QNX-6*) 9156 # QNX RTP 9157 # This may work for all QNX, but it was only reported for v6. 9158 SHLIB_CFLAGS="-fPIC" 9159 SHLIB_LD="ld -Bshareable -x" 9160 SHLIB_LD_LIBS="" 9161 SHLIB_SUFFIX=".so" 9162 CC_SEARCH_FLAGS="" 9163 LD_SEARCH_FLAGS="" 9164 ;; 9165 SCO_SV-3.2*) 9166 if test "$GCC" = yes; then 9167 9168 SHLIB_CFLAGS="-fPIC -melf" 9169 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 9170 9171else 9172 9173 SHLIB_CFLAGS="-Kpic -belf" 9174 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 9175 9176fi 9177 9178 SHLIB_LD="ld -G" 9179 SHLIB_LD_LIBS="" 9180 SHLIB_SUFFIX=".so" 9181 CC_SEARCH_FLAGS="" 9182 LD_SEARCH_FLAGS="" 9183 ;; 9184 SunOS-5.[0-6]) 9185 # Careful to not let 5.10+ fall into this case 9186 9187 # Note: If _REENTRANT isn't defined, then Solaris 9188 # won't define thread-safe library routines. 9189 9190 9191cat >>confdefs.h <<\_ACEOF 9192#define _REENTRANT 1 9193_ACEOF 9194 9195 9196cat >>confdefs.h <<\_ACEOF 9197#define _POSIX_PTHREAD_SEMANTICS 1 9198_ACEOF 9199 9200 9201 SHLIB_CFLAGS="-KPIC" 9202 SHLIB_SUFFIX=".so" 9203 if test "$GCC" = yes; then 9204 9205 SHLIB_LD='${CC} -shared' 9206 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9207 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9208 9209else 9210 9211 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 9212 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9213 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9214 9215fi 9216 9217 ;; 9218 SunOS-5*) 9219 # Note: If _REENTRANT isn't defined, then Solaris 9220 # won't define thread-safe library routines. 9221 9222 9223cat >>confdefs.h <<\_ACEOF 9224#define _REENTRANT 1 9225_ACEOF 9226 9227 9228cat >>confdefs.h <<\_ACEOF 9229#define _POSIX_PTHREAD_SEMANTICS 1 9230_ACEOF 9231 9232 9233 SHLIB_CFLAGS="-KPIC" 9234 9235 # Check to enable 64-bit flags for compiler/linker 9236 if test "$do64bit" = yes; then 9237 9238 arch=`isainfo` 9239 if test "$arch" = "sparcv9 sparc"; then 9240 9241 if test "$GCC" = yes; then 9242 9243 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 9244 9245 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 9246echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 9247 9248else 9249 9250 do64bit_ok=yes 9251 CFLAGS="$CFLAGS -m64 -mcpu=v9" 9252 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 9253 SHLIB_CFLAGS="-fPIC" 9254 9255fi 9256 9257 9258else 9259 9260 do64bit_ok=yes 9261 if test "$do64bitVIS" = yes; then 9262 9263 CFLAGS="$CFLAGS -xarch=v9a" 9264 LDFLAGS_ARCH="-xarch=v9a" 9265 9266else 9267 9268 CFLAGS="$CFLAGS -xarch=v9" 9269 LDFLAGS_ARCH="-xarch=v9" 9270 9271fi 9272 9273 # Solaris 64 uses this as well 9274 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 9275 9276fi 9277 9278 9279else 9280 if test "$arch" = "amd64 i386"; then 9281 9282 if test "$GCC" = yes; then 9283 9284 case $system in 9285 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9286 do64bit_ok=yes 9287 CFLAGS="$CFLAGS -m64" 9288 LDFLAGS="$LDFLAGS -m64";; 9289 *) 9290 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 9291echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 9292 esac 9293 9294else 9295 9296 do64bit_ok=yes 9297 case $system in 9298 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 9299 CFLAGS="$CFLAGS -m64" 9300 LDFLAGS="$LDFLAGS -m64";; 9301 *) 9302 CFLAGS="$CFLAGS -xarch=amd64" 9303 LDFLAGS="$LDFLAGS -xarch=amd64";; 9304 esac 9305 9306fi 9307 9308 9309else 9310 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 9311echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 9312fi 9313 9314fi 9315 9316 9317fi 9318 9319 9320 SHLIB_SUFFIX=".so" 9321 if test "$GCC" = yes; then 9322 9323 SHLIB_LD='${CC} -shared' 9324 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9325 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 9326 if test "$do64bit_ok" = yes; then 9327 9328 if test "$arch" = "sparcv9 sparc"; then 9329 9330 # We need to specify -static-libgcc or we need to 9331 # add the path to the sparv9 libgcc. 9332 # JH: static-libgcc is necessary for core Tcl, but may 9333 # not be necessary for extensions. 9334 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 9335 # for finding sparcv9 libgcc, get the regular libgcc 9336 # path, remove so name and append 'sparcv9' 9337 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 9338 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 9339 9340else 9341 if test "$arch" = "amd64 i386"; then 9342 9343 # JH: static-libgcc is necessary for core Tcl, but may 9344 # not be necessary for extensions. 9345 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 9346 9347fi 9348 9349fi 9350 9351 9352fi 9353 9354 9355else 9356 9357 case $system in 9358 SunOS-5.[1-9][0-9]*) 9359 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 9360 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 9361 *) 9362 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 9363 esac 9364 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 9365 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 9366 9367fi 9368 9369 ;; 9370 esac 9371 9372 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 9373 9374 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 9375echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 9376 9377fi 9378 9379 9380 9381 9382 # Add in the arch flags late to ensure it wasn't removed. 9383 # Not necessary in TEA, but this is aligned with core 9384 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 9385 9386 # If we're running gcc, then change the C flags for compiling shared 9387 # libraries to the right flags for gcc, instead of those for the 9388 # standard manufacturer compiler. 9389 9390 if test "$GCC" = yes; then 9391 9392 case $system in 9393 AIX-*) ;; 9394 BSD/OS*) ;; 9395 CYGWIN_*) ;; 9396 IRIX*) ;; 9397 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 9398 Darwin-*) ;; 9399 SCO_SV-3.2*) ;; 9400 windows) ;; 9401 *) SHLIB_CFLAGS="-fPIC" ;; 9402 esac 9403fi 9404 9405 9406 if test "$tcl_cv_cc_visibility_hidden" != yes; then 9407 9408 9409cat >>confdefs.h <<\_ACEOF 9410#define MODULE_SCOPE extern 9411_ACEOF 9412 9413 9414cat >>confdefs.h <<\_ACEOF 9415#define NO_VIZ 9416_ACEOF 9417 9418 9419fi 9420 9421 9422 if test "$SHARED_LIB_SUFFIX" = ""; then 9423 9424 # TEA specific: use PACKAGE_VERSION instead of VERSION 9425 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 9426fi 9427 9428 if test "$UNSHARED_LIB_SUFFIX" = ""; then 9429 9430 # TEA specific: use PACKAGE_VERSION instead of VERSION 9431 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 9432fi 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 # These must be called after we do the basic CFLAGS checks and 9448 # verify any possible 64-bit or similar switches are necessary 9449 9450 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 9451echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 9452 tcl_flags="" 9453 9454 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 9455 echo $ECHO_N "(cached) $ECHO_C" >&6 9456else 9457 cat >conftest.$ac_ext <<_ACEOF 9458/* confdefs.h. */ 9459_ACEOF 9460cat confdefs.h >>conftest.$ac_ext 9461cat >>conftest.$ac_ext <<_ACEOF 9462/* end confdefs.h. */ 9463#include <stdlib.h> 9464int 9465main () 9466{ 9467char *p = (char *)strtoll; char *q = (char *)strtoull; 9468 ; 9469 return 0; 9470} 9471_ACEOF 9472rm -f conftest.$ac_objext 9473if { (ac_try="$ac_compile" 9474case "(($ac_try" in 9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9476 *) ac_try_echo=$ac_try;; 9477esac 9478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9479 (eval "$ac_compile") 2>conftest.er1 9480 ac_status=$? 9481 grep -v '^ *+' conftest.er1 >conftest.err 9482 rm -f conftest.er1 9483 cat conftest.err >&5 9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9485 (exit $ac_status); } && { 9486 test -z "$ac_c_werror_flag" || 9487 test ! -s conftest.err 9488 } && test -s conftest.$ac_objext; then 9489 tcl_cv_flag__isoc99_source=no 9490else 9491 echo "$as_me: failed program was:" >&5 9492sed 's/^/| /' conftest.$ac_ext >&5 9493 9494 cat >conftest.$ac_ext <<_ACEOF 9495/* confdefs.h. */ 9496_ACEOF 9497cat confdefs.h >>conftest.$ac_ext 9498cat >>conftest.$ac_ext <<_ACEOF 9499/* end confdefs.h. */ 9500#define _ISOC99_SOURCE 1 9501#include <stdlib.h> 9502int 9503main () 9504{ 9505char *p = (char *)strtoll; char *q = (char *)strtoull; 9506 ; 9507 return 0; 9508} 9509_ACEOF 9510rm -f conftest.$ac_objext 9511if { (ac_try="$ac_compile" 9512case "(($ac_try" in 9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9514 *) ac_try_echo=$ac_try;; 9515esac 9516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9517 (eval "$ac_compile") 2>conftest.er1 9518 ac_status=$? 9519 grep -v '^ *+' conftest.er1 >conftest.err 9520 rm -f conftest.er1 9521 cat conftest.err >&5 9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9523 (exit $ac_status); } && { 9524 test -z "$ac_c_werror_flag" || 9525 test ! -s conftest.err 9526 } && test -s conftest.$ac_objext; then 9527 tcl_cv_flag__isoc99_source=yes 9528else 9529 echo "$as_me: failed program was:" >&5 9530sed 's/^/| /' conftest.$ac_ext >&5 9531 9532 tcl_cv_flag__isoc99_source=no 9533fi 9534 9535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9536fi 9537 9538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9539fi 9540 9541 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 9542 9543cat >>confdefs.h <<\_ACEOF 9544#define _ISOC99_SOURCE 1 9545_ACEOF 9546 9547 tcl_flags="$tcl_flags _ISOC99_SOURCE" 9548 fi 9549 9550 9551 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 9552 echo $ECHO_N "(cached) $ECHO_C" >&6 9553else 9554 cat >conftest.$ac_ext <<_ACEOF 9555/* confdefs.h. */ 9556_ACEOF 9557cat confdefs.h >>conftest.$ac_ext 9558cat >>conftest.$ac_ext <<_ACEOF 9559/* end confdefs.h. */ 9560#include <sys/stat.h> 9561int 9562main () 9563{ 9564struct stat64 buf; int i = stat64("/", &buf); 9565 ; 9566 return 0; 9567} 9568_ACEOF 9569rm -f conftest.$ac_objext 9570if { (ac_try="$ac_compile" 9571case "(($ac_try" in 9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9573 *) ac_try_echo=$ac_try;; 9574esac 9575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9576 (eval "$ac_compile") 2>conftest.er1 9577 ac_status=$? 9578 grep -v '^ *+' conftest.er1 >conftest.err 9579 rm -f conftest.er1 9580 cat conftest.err >&5 9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9582 (exit $ac_status); } && { 9583 test -z "$ac_c_werror_flag" || 9584 test ! -s conftest.err 9585 } && test -s conftest.$ac_objext; then 9586 tcl_cv_flag__largefile64_source=no 9587else 9588 echo "$as_me: failed program was:" >&5 9589sed 's/^/| /' conftest.$ac_ext >&5 9590 9591 cat >conftest.$ac_ext <<_ACEOF 9592/* confdefs.h. */ 9593_ACEOF 9594cat confdefs.h >>conftest.$ac_ext 9595cat >>conftest.$ac_ext <<_ACEOF 9596/* end confdefs.h. */ 9597#define _LARGEFILE64_SOURCE 1 9598#include <sys/stat.h> 9599int 9600main () 9601{ 9602struct stat64 buf; int i = stat64("/", &buf); 9603 ; 9604 return 0; 9605} 9606_ACEOF 9607rm -f conftest.$ac_objext 9608if { (ac_try="$ac_compile" 9609case "(($ac_try" in 9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9611 *) ac_try_echo=$ac_try;; 9612esac 9613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9614 (eval "$ac_compile") 2>conftest.er1 9615 ac_status=$? 9616 grep -v '^ *+' conftest.er1 >conftest.err 9617 rm -f conftest.er1 9618 cat conftest.err >&5 9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9620 (exit $ac_status); } && { 9621 test -z "$ac_c_werror_flag" || 9622 test ! -s conftest.err 9623 } && test -s conftest.$ac_objext; then 9624 tcl_cv_flag__largefile64_source=yes 9625else 9626 echo "$as_me: failed program was:" >&5 9627sed 's/^/| /' conftest.$ac_ext >&5 9628 9629 tcl_cv_flag__largefile64_source=no 9630fi 9631 9632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9633fi 9634 9635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9636fi 9637 9638 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 9639 9640cat >>confdefs.h <<\_ACEOF 9641#define _LARGEFILE64_SOURCE 1 9642_ACEOF 9643 9644 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 9645 fi 9646 9647 9648 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 9649 echo $ECHO_N "(cached) $ECHO_C" >&6 9650else 9651 cat >conftest.$ac_ext <<_ACEOF 9652/* confdefs.h. */ 9653_ACEOF 9654cat confdefs.h >>conftest.$ac_ext 9655cat >>conftest.$ac_ext <<_ACEOF 9656/* end confdefs.h. */ 9657#include <sys/stat.h> 9658int 9659main () 9660{ 9661char *p = (char *)open64; 9662 ; 9663 return 0; 9664} 9665_ACEOF 9666rm -f conftest.$ac_objext 9667if { (ac_try="$ac_compile" 9668case "(($ac_try" in 9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9670 *) ac_try_echo=$ac_try;; 9671esac 9672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9673 (eval "$ac_compile") 2>conftest.er1 9674 ac_status=$? 9675 grep -v '^ *+' conftest.er1 >conftest.err 9676 rm -f conftest.er1 9677 cat conftest.err >&5 9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9679 (exit $ac_status); } && { 9680 test -z "$ac_c_werror_flag" || 9681 test ! -s conftest.err 9682 } && test -s conftest.$ac_objext; then 9683 tcl_cv_flag__largefile_source64=no 9684else 9685 echo "$as_me: failed program was:" >&5 9686sed 's/^/| /' conftest.$ac_ext >&5 9687 9688 cat >conftest.$ac_ext <<_ACEOF 9689/* confdefs.h. */ 9690_ACEOF 9691cat confdefs.h >>conftest.$ac_ext 9692cat >>conftest.$ac_ext <<_ACEOF 9693/* end confdefs.h. */ 9694#define _LARGEFILE_SOURCE64 1 9695#include <sys/stat.h> 9696int 9697main () 9698{ 9699char *p = (char *)open64; 9700 ; 9701 return 0; 9702} 9703_ACEOF 9704rm -f conftest.$ac_objext 9705if { (ac_try="$ac_compile" 9706case "(($ac_try" in 9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9708 *) ac_try_echo=$ac_try;; 9709esac 9710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9711 (eval "$ac_compile") 2>conftest.er1 9712 ac_status=$? 9713 grep -v '^ *+' conftest.er1 >conftest.err 9714 rm -f conftest.er1 9715 cat conftest.err >&5 9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9717 (exit $ac_status); } && { 9718 test -z "$ac_c_werror_flag" || 9719 test ! -s conftest.err 9720 } && test -s conftest.$ac_objext; then 9721 tcl_cv_flag__largefile_source64=yes 9722else 9723 echo "$as_me: failed program was:" >&5 9724sed 's/^/| /' conftest.$ac_ext >&5 9725 9726 tcl_cv_flag__largefile_source64=no 9727fi 9728 9729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9730fi 9731 9732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9733fi 9734 9735 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 9736 9737cat >>confdefs.h <<\_ACEOF 9738#define _LARGEFILE_SOURCE64 1 9739_ACEOF 9740 9741 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 9742 fi 9743 9744 if test "x${tcl_flags}" = "x" ; then 9745 { echo "$as_me:$LINENO: result: none" >&5 9746echo "${ECHO_T}none" >&6; } 9747 else 9748 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 9749echo "${ECHO_T}${tcl_flags}" >&6; } 9750 fi 9751 9752 9753 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 9754echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 9755 if test "${tcl_cv_type_64bit+set}" = set; then 9756 echo $ECHO_N "(cached) $ECHO_C" >&6 9757else 9758 9759 tcl_cv_type_64bit=none 9760 # See if the compiler knows natively about __int64 9761 cat >conftest.$ac_ext <<_ACEOF 9762/* confdefs.h. */ 9763_ACEOF 9764cat confdefs.h >>conftest.$ac_ext 9765cat >>conftest.$ac_ext <<_ACEOF 9766/* end confdefs.h. */ 9767 9768int 9769main () 9770{ 9771__int64 value = (__int64) 0; 9772 ; 9773 return 0; 9774} 9775_ACEOF 9776rm -f conftest.$ac_objext 9777if { (ac_try="$ac_compile" 9778case "(($ac_try" in 9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9780 *) ac_try_echo=$ac_try;; 9781esac 9782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9783 (eval "$ac_compile") 2>conftest.er1 9784 ac_status=$? 9785 grep -v '^ *+' conftest.er1 >conftest.err 9786 rm -f conftest.er1 9787 cat conftest.err >&5 9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9789 (exit $ac_status); } && { 9790 test -z "$ac_c_werror_flag" || 9791 test ! -s conftest.err 9792 } && test -s conftest.$ac_objext; then 9793 tcl_type_64bit=__int64 9794else 9795 echo "$as_me: failed program was:" >&5 9796sed 's/^/| /' conftest.$ac_ext >&5 9797 9798 tcl_type_64bit="long long" 9799fi 9800 9801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9802 # See if we should use long anyway Note that we substitute in the 9803 # type that is our current guess for a 64-bit type inside this check 9804 # program, so it should be modified only carefully... 9805 cat >conftest.$ac_ext <<_ACEOF 9806/* confdefs.h. */ 9807_ACEOF 9808cat confdefs.h >>conftest.$ac_ext 9809cat >>conftest.$ac_ext <<_ACEOF 9810/* end confdefs.h. */ 9811 9812int 9813main () 9814{ 9815switch (0) { 9816 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 9817 } 9818 ; 9819 return 0; 9820} 9821_ACEOF 9822rm -f conftest.$ac_objext 9823if { (ac_try="$ac_compile" 9824case "(($ac_try" in 9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9826 *) ac_try_echo=$ac_try;; 9827esac 9828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9829 (eval "$ac_compile") 2>conftest.er1 9830 ac_status=$? 9831 grep -v '^ *+' conftest.er1 >conftest.err 9832 rm -f conftest.er1 9833 cat conftest.err >&5 9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9835 (exit $ac_status); } && { 9836 test -z "$ac_c_werror_flag" || 9837 test ! -s conftest.err 9838 } && test -s conftest.$ac_objext; then 9839 tcl_cv_type_64bit=${tcl_type_64bit} 9840else 9841 echo "$as_me: failed program was:" >&5 9842sed 's/^/| /' conftest.$ac_ext >&5 9843 9844 9845fi 9846 9847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9848fi 9849 9850 if test "${tcl_cv_type_64bit}" = none ; then 9851 9852cat >>confdefs.h <<\_ACEOF 9853#define TCL_WIDE_INT_IS_LONG 1 9854_ACEOF 9855 9856 { echo "$as_me:$LINENO: result: using long" >&5 9857echo "${ECHO_T}using long" >&6; } 9858 elif test "${tcl_cv_type_64bit}" = "__int64" \ 9859 -a "${TEA_PLATFORM}" = "windows" ; then 9860 # TEA specific: We actually want to use the default tcl.h checks in 9861 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 9862 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 9863echo "${ECHO_T}using Tcl header defaults" >&6; } 9864 else 9865 9866cat >>confdefs.h <<_ACEOF 9867#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 9868_ACEOF 9869 9870 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 9871echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 9872 9873 # Now check for auxiliary declarations 9874 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 9875echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 9876if test "${tcl_cv_struct_dirent64+set}" = set; then 9877 echo $ECHO_N "(cached) $ECHO_C" >&6 9878else 9879 9880 cat >conftest.$ac_ext <<_ACEOF 9881/* confdefs.h. */ 9882_ACEOF 9883cat confdefs.h >>conftest.$ac_ext 9884cat >>conftest.$ac_ext <<_ACEOF 9885/* end confdefs.h. */ 9886#include <sys/types.h> 9887#include <sys/dirent.h> 9888int 9889main () 9890{ 9891struct dirent64 p; 9892 ; 9893 return 0; 9894} 9895_ACEOF 9896rm -f conftest.$ac_objext 9897if { (ac_try="$ac_compile" 9898case "(($ac_try" in 9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9900 *) ac_try_echo=$ac_try;; 9901esac 9902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9903 (eval "$ac_compile") 2>conftest.er1 9904 ac_status=$? 9905 grep -v '^ *+' conftest.er1 >conftest.err 9906 rm -f conftest.er1 9907 cat conftest.err >&5 9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9909 (exit $ac_status); } && { 9910 test -z "$ac_c_werror_flag" || 9911 test ! -s conftest.err 9912 } && test -s conftest.$ac_objext; then 9913 tcl_cv_struct_dirent64=yes 9914else 9915 echo "$as_me: failed program was:" >&5 9916sed 's/^/| /' conftest.$ac_ext >&5 9917 9918 tcl_cv_struct_dirent64=no 9919fi 9920 9921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9922fi 9923{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 9924echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 9925 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 9926 9927cat >>confdefs.h <<\_ACEOF 9928#define HAVE_STRUCT_DIRENT64 1 9929_ACEOF 9930 9931 fi 9932 9933 { echo "$as_me:$LINENO: checking for struct stat64" >&5 9934echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 9935if test "${tcl_cv_struct_stat64+set}" = set; then 9936 echo $ECHO_N "(cached) $ECHO_C" >&6 9937else 9938 9939 cat >conftest.$ac_ext <<_ACEOF 9940/* confdefs.h. */ 9941_ACEOF 9942cat confdefs.h >>conftest.$ac_ext 9943cat >>conftest.$ac_ext <<_ACEOF 9944/* end confdefs.h. */ 9945#include <sys/stat.h> 9946int 9947main () 9948{ 9949struct stat64 p; 9950 9951 ; 9952 return 0; 9953} 9954_ACEOF 9955rm -f conftest.$ac_objext 9956if { (ac_try="$ac_compile" 9957case "(($ac_try" in 9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9959 *) ac_try_echo=$ac_try;; 9960esac 9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9962 (eval "$ac_compile") 2>conftest.er1 9963 ac_status=$? 9964 grep -v '^ *+' conftest.er1 >conftest.err 9965 rm -f conftest.er1 9966 cat conftest.err >&5 9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9968 (exit $ac_status); } && { 9969 test -z "$ac_c_werror_flag" || 9970 test ! -s conftest.err 9971 } && test -s conftest.$ac_objext; then 9972 tcl_cv_struct_stat64=yes 9973else 9974 echo "$as_me: failed program was:" >&5 9975sed 's/^/| /' conftest.$ac_ext >&5 9976 9977 tcl_cv_struct_stat64=no 9978fi 9979 9980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9981fi 9982{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 9983echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 9984 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 9985 9986cat >>confdefs.h <<\_ACEOF 9987#define HAVE_STRUCT_STAT64 1 9988_ACEOF 9989 9990 fi 9991 9992 9993 9994for ac_func in open64 lseek64 9995do 9996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9997{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9999if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10000 echo $ECHO_N "(cached) $ECHO_C" >&6 10001else 10002 cat >conftest.$ac_ext <<_ACEOF 10003/* confdefs.h. */ 10004_ACEOF 10005cat confdefs.h >>conftest.$ac_ext 10006cat >>conftest.$ac_ext <<_ACEOF 10007/* end confdefs.h. */ 10008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10009 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10010#define $ac_func innocuous_$ac_func 10011 10012/* System header to define __stub macros and hopefully few prototypes, 10013 which can conflict with char $ac_func (); below. 10014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10015 <limits.h> exists even on freestanding compilers. */ 10016 10017#ifdef __STDC__ 10018# include <limits.h> 10019#else 10020# include <assert.h> 10021#endif 10022 10023#undef $ac_func 10024 10025/* Override any GCC internal prototype to avoid an error. 10026 Use char because int might match the return type of a GCC 10027 builtin and then its argument prototype would still apply. */ 10028#ifdef __cplusplus 10029extern "C" 10030#endif 10031char $ac_func (); 10032/* The GNU C library defines this for functions which it implements 10033 to always fail with ENOSYS. Some functions are actually named 10034 something starting with __ and the normal name is an alias. */ 10035#if defined __stub_$ac_func || defined __stub___$ac_func 10036choke me 10037#endif 10038 10039int 10040main () 10041{ 10042return $ac_func (); 10043 ; 10044 return 0; 10045} 10046_ACEOF 10047rm -f conftest.$ac_objext conftest$ac_exeext 10048if { (ac_try="$ac_link" 10049case "(($ac_try" in 10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10051 *) ac_try_echo=$ac_try;; 10052esac 10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10054 (eval "$ac_link") 2>conftest.er1 10055 ac_status=$? 10056 grep -v '^ *+' conftest.er1 >conftest.err 10057 rm -f conftest.er1 10058 cat conftest.err >&5 10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10060 (exit $ac_status); } && { 10061 test -z "$ac_c_werror_flag" || 10062 test ! -s conftest.err 10063 } && test -s conftest$ac_exeext && 10064 $as_test_x conftest$ac_exeext; then 10065 eval "$as_ac_var=yes" 10066else 10067 echo "$as_me: failed program was:" >&5 10068sed 's/^/| /' conftest.$ac_ext >&5 10069 10070 eval "$as_ac_var=no" 10071fi 10072 10073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10074 conftest$ac_exeext conftest.$ac_ext 10075fi 10076ac_res=`eval echo '${'$as_ac_var'}'` 10077 { echo "$as_me:$LINENO: result: $ac_res" >&5 10078echo "${ECHO_T}$ac_res" >&6; } 10079if test `eval echo '${'$as_ac_var'}'` = yes; then 10080 cat >>confdefs.h <<_ACEOF 10081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10082_ACEOF 10083 10084fi 10085done 10086 10087 { echo "$as_me:$LINENO: checking for off64_t" >&5 10088echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 10089 if test "${tcl_cv_type_off64_t+set}" = set; then 10090 echo $ECHO_N "(cached) $ECHO_C" >&6 10091else 10092 10093 cat >conftest.$ac_ext <<_ACEOF 10094/* confdefs.h. */ 10095_ACEOF 10096cat confdefs.h >>conftest.$ac_ext 10097cat >>conftest.$ac_ext <<_ACEOF 10098/* end confdefs.h. */ 10099#include <sys/types.h> 10100int 10101main () 10102{ 10103off64_t offset; 10104 10105 ; 10106 return 0; 10107} 10108_ACEOF 10109rm -f conftest.$ac_objext 10110if { (ac_try="$ac_compile" 10111case "(($ac_try" in 10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10113 *) ac_try_echo=$ac_try;; 10114esac 10115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10116 (eval "$ac_compile") 2>conftest.er1 10117 ac_status=$? 10118 grep -v '^ *+' conftest.er1 >conftest.err 10119 rm -f conftest.er1 10120 cat conftest.err >&5 10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10122 (exit $ac_status); } && { 10123 test -z "$ac_c_werror_flag" || 10124 test ! -s conftest.err 10125 } && test -s conftest.$ac_objext; then 10126 tcl_cv_type_off64_t=yes 10127else 10128 echo "$as_me: failed program was:" >&5 10129sed 's/^/| /' conftest.$ac_ext >&5 10130 10131 tcl_cv_type_off64_t=no 10132fi 10133 10134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10135fi 10136 10137 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 10138 test "x${ac_cv_func_lseek64}" = "xyes" && \ 10139 test "x${ac_cv_func_open64}" = "xyes" ; then 10140 10141cat >>confdefs.h <<\_ACEOF 10142#define HAVE_TYPE_OFF64_T 1 10143_ACEOF 10144 10145 { echo "$as_me:$LINENO: result: yes" >&5 10146echo "${ECHO_T}yes" >&6; } 10147 else 10148 { echo "$as_me:$LINENO: result: no" >&5 10149echo "${ECHO_T}no" >&6; } 10150 fi 10151 fi 10152 10153 10154 10155#-------------------------------------------------------------------- 10156# Set the default compiler switches based on the --enable-symbols option. 10157#-------------------------------------------------------------------- 10158 10159 10160 10161 { echo "$as_me:$LINENO: checking for build with symbols" >&5 10162echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 10163 # Check whether --enable-symbols was given. 10164if test "${enable_symbols+set}" = set; then 10165 enableval=$enable_symbols; tcl_ok=$enableval 10166else 10167 tcl_ok=no 10168fi 10169 10170 DBGX="" 10171 if test "$tcl_ok" = "no"; then 10172 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 10173 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 10174 { echo "$as_me:$LINENO: result: no" >&5 10175echo "${ECHO_T}no" >&6; } 10176 else 10177 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 10178 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 10179 if test "$tcl_ok" = "yes"; then 10180 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 10181echo "${ECHO_T}yes (standard debugging)" >&6; } 10182 fi 10183 fi 10184 # TEA specific: 10185 if test "${TEA_PLATFORM}" != "windows" ; then 10186 LDFLAGS_DEFAULT="${LDFLAGS}" 10187 fi 10188 10189 10190 10191 10192 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 10193 10194cat >>confdefs.h <<\_ACEOF 10195#define TCL_MEM_DEBUG 1 10196_ACEOF 10197 10198 fi 10199 10200 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 10201 if test "$tcl_ok" = "all"; then 10202 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 10203echo "${ECHO_T}enabled symbols mem debugging" >&6; } 10204 else 10205 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 10206echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 10207 fi 10208 fi 10209 10210 10211#-------------------------------------------------------------------- 10212# Everyone should be linking against the Tcl stub library. If you 10213# can't for some reason, remove this definition. If you aren't using 10214# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 10215# link against the non-stubbed Tcl library. 10216#-------------------------------------------------------------------- 10217 10218cat >>confdefs.h <<\_ACEOF 10219#define USE_TCL_STUBS 1 10220_ACEOF 10221 10222 10223#-------------------------------------------------------------------- 10224# This macro generates a line to use when building a library. It 10225# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 10226# and TEA_LOAD_TCLCONFIG macros above. 10227#-------------------------------------------------------------------- 10228 10229 10230 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 10231 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 10232 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 10233 cat >conftest.$ac_ext <<_ACEOF 10234/* confdefs.h. */ 10235_ACEOF 10236cat confdefs.h >>conftest.$ac_ext 10237cat >>conftest.$ac_ext <<_ACEOF 10238/* end confdefs.h. */ 10239 10240#if defined(_MSC_VER) && _MSC_VER >= 1400 10241print("manifest needed") 10242#endif 10243 10244_ACEOF 10245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10246 $EGREP "manifest needed" >/dev/null 2>&1; then 10247 10248 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 10249 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 10250 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 10251 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 10252 10253 CLEANFILES="$CLEANFILES *.manifest" 10254 10255 10256fi 10257rm -f -r conftest* 10258 10259 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 10260 else 10261 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 10262 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 10263 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 10264 fi 10265 10266 if test "${SHARED_BUILD}" = "1" ; then 10267 MAKE_LIB="${MAKE_SHARED_LIB} " 10268 else 10269 MAKE_LIB="${MAKE_STATIC_LIB} " 10270 fi 10271 10272 #-------------------------------------------------------------------- 10273 # Shared libraries and static libraries have different names. 10274 # Use the double eval to make sure any variables in the suffix is 10275 # substituted. (@@@ Might not be necessary anymore) 10276 #-------------------------------------------------------------------- 10277 10278 if test "${TEA_PLATFORM}" = "windows" ; then 10279 if test "${SHARED_BUILD}" = "1" ; then 10280 # We force the unresolved linking of symbols that are really in 10281 # the private libraries of Tcl and Tk. 10282 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 10283 if test x"${TK_BIN_DIR}" != x ; then 10284 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 10285 fi 10286 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10287 else 10288 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10289 fi 10290 # Some packages build their own stubs libraries 10291 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10292 if test "$GCC" = "yes"; then 10293 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 10294 fi 10295 # These aren't needed on Windows (either MSVC or gcc) 10296 RANLIB=: 10297 RANLIB_STUB=: 10298 else 10299 RANLIB_STUB="${RANLIB}" 10300 if test "${SHARED_BUILD}" = "1" ; then 10301 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 10302 if test x"${TK_BIN_DIR}" != x ; then 10303 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 10304 fi 10305 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 10306 RANLIB=: 10307 else 10308 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 10309 fi 10310 # Some packages build their own stubs libraries 10311 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 10312 fi 10313 10314 # These are escaped so that only CFLAGS is picked up at configure time. 10315 # The other values will be substituted at make time. 10316 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 10317 if test "${SHARED_BUILD}" = "1" ; then 10318 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 10319 fi 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330#-------------------------------------------------------------------- 10331# Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl 10332# file during the install process. Don't run the TCLSH_PROG through 10333# ${CYGPATH} because it's being used directly by make. 10334# Require that we use a tclsh shell version 8.2 or later since earlier 10335# versions have bugs in the pkg_mkIndex routine. 10336# Add WISH as well if this is a Tk extension. 10337#-------------------------------------------------------------------- 10338 10339 10340 { echo "$as_me:$LINENO: checking for tclsh" >&5 10341echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 10342 if test -f "${TCL_BIN_DIR}/Makefile" ; then 10343 # tclConfig.sh is in Tcl build directory 10344 if test "${TEA_PLATFORM}" = "windows"; then 10345 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10346 else 10347 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 10348 fi 10349 else 10350 # tclConfig.sh is in install location 10351 if test "${TEA_PLATFORM}" = "windows"; then 10352 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 10353 else 10354 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 10355 fi 10356 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 10357 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 10358 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 10359 for i in $list ; do 10360 if test -f "$i/${TCLSH_PROG}" ; then 10361 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 10362 break 10363 fi 10364 done 10365 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 10366 fi 10367 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 10368echo "${ECHO_T}${TCLSH_PROG}" >&6; } 10369 10370 10371 10372#-------------------------------------------------------------------- 10373# Finally, substitute all of the various values into the Makefile. 10374# You may alternatively have a special pkgIndex.tcl.in or other files 10375# which require substituting th AC variables in. Include these here. 10376#-------------------------------------------------------------------- 10377 10378ac_config_files="$ac_config_files Makefile" 10379 10380cat >confcache <<\_ACEOF 10381# This file is a shell script that caches the results of configure 10382# tests run on this system so they can be shared between configure 10383# scripts and configure runs, see configure's option --config-cache. 10384# It is not useful on other systems. If it contains results you don't 10385# want to keep, you may remove or edit it. 10386# 10387# config.status only pays attention to the cache file if you give it 10388# the --recheck option to rerun configure. 10389# 10390# `ac_cv_env_foo' variables (set or unset) will be overridden when 10391# loading this file, other *unset* `ac_cv_foo' will be assigned the 10392# following values. 10393 10394_ACEOF 10395 10396# The following way of writing the cache mishandles newlines in values, 10397# but we know of no workaround that is simple, portable, and efficient. 10398# So, we kill variables containing newlines. 10399# Ultrix sh set writes to stderr and can't be redirected directly, 10400# and sets the high bit in the cache file unless we assign to the vars. 10401( 10402 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10403 eval ac_val=\$$ac_var 10404 case $ac_val in #( 10405 *${as_nl}*) 10406 case $ac_var in #( 10407 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 10408echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 10409 esac 10410 case $ac_var in #( 10411 _ | IFS | as_nl) ;; #( 10412 *) $as_unset $ac_var ;; 10413 esac ;; 10414 esac 10415 done 10416 10417 (set) 2>&1 | 10418 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10419 *${as_nl}ac_space=\ *) 10420 # `set' does not quote correctly, so add quotes (double-quote 10421 # substitution turns \\\\ into \\, and sed turns \\ into \). 10422 sed -n \ 10423 "s/'/'\\\\''/g; 10424 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10425 ;; #( 10426 *) 10427 # `set' quotes correctly as required by POSIX, so do not add quotes. 10428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10429 ;; 10430 esac | 10431 sort 10432) | 10433 sed ' 10434 /^ac_cv_env_/b end 10435 t clear 10436 :clear 10437 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10438 t end 10439 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10440 :end' >>confcache 10441if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10442 if test -w "$cache_file"; then 10443 test "x$cache_file" != "x/dev/null" && 10444 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 10445echo "$as_me: updating cache $cache_file" >&6;} 10446 cat confcache >$cache_file 10447 else 10448 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 10449echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10450 fi 10451fi 10452rm -f confcache 10453 10454test "x$prefix" = xNONE && prefix=$ac_default_prefix 10455# Let make expand exec_prefix. 10456test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10457 10458# Transform confdefs.h into DEFS. 10459# Protect against shell expansion while executing Makefile rules. 10460# Protect against Makefile macro expansion. 10461# 10462# If the first sed substitution is executed (which looks for macros that 10463# take arguments), then branch to the quote section. Otherwise, 10464# look for a macro that doesn't take arguments. 10465ac_script=' 10466t clear 10467:clear 10468s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10469t quote 10470s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10471t quote 10472b any 10473:quote 10474s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10475s/\[/\\&/g 10476s/\]/\\&/g 10477s/\$/$$/g 10478H 10479:any 10480${ 10481 g 10482 s/^\n// 10483 s/\n/ /g 10484 p 10485} 10486' 10487DEFS=`sed -n "$ac_script" confdefs.h` 10488 10489 10490ac_libobjs= 10491ac_ltlibobjs= 10492for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10493 # 1. Remove the extension, and $U if already installed. 10494 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10495 ac_i=`echo "$ac_i" | sed "$ac_script"` 10496 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10497 # will be set to the directory where LIBOBJS objects are built. 10498 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10499 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 10500done 10501LIBOBJS=$ac_libobjs 10502 10503LTLIBOBJS=$ac_ltlibobjs 10504 10505 10506CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 10507 10508: ${CONFIG_STATUS=./config.status} 10509ac_clean_files_save=$ac_clean_files 10510ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10511{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10512echo "$as_me: creating $CONFIG_STATUS" >&6;} 10513cat >$CONFIG_STATUS <<_ACEOF 10514#! $SHELL 10515# Generated by $as_me. 10516# Run this file to recreate the current configuration. 10517# Compiler output produced by configure, useful for debugging 10518# configure, is in config.log if it exists. 10519 10520debug=false 10521ac_cs_recheck=false 10522ac_cs_silent=false 10523SHELL=\${CONFIG_SHELL-$SHELL} 10524_ACEOF 10525 10526cat >>$CONFIG_STATUS <<\_ACEOF 10527## --------------------- ## 10528## M4sh Initialization. ## 10529## --------------------- ## 10530 10531# Be more Bourne compatible 10532DUALCASE=1; export DUALCASE # for MKS sh 10533if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10534 emulate sh 10535 NULLCMD=: 10536 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10537 # is contrary to our usage. Disable this feature. 10538 alias -g '${1+"$@"}'='"$@"' 10539 setopt NO_GLOB_SUBST 10540else 10541 case `(set -o) 2>/dev/null` in 10542 *posix*) set -o posix ;; 10543esac 10544 10545fi 10546 10547 10548 10549 10550# PATH needs CR 10551# Avoid depending upon Character Ranges. 10552as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10553as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10554as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10555as_cr_digits='0123456789' 10556as_cr_alnum=$as_cr_Letters$as_cr_digits 10557 10558# The user is always right. 10559if test "${PATH_SEPARATOR+set}" != set; then 10560 echo "#! /bin/sh" >conf$$.sh 10561 echo "exit 0" >>conf$$.sh 10562 chmod +x conf$$.sh 10563 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10564 PATH_SEPARATOR=';' 10565 else 10566 PATH_SEPARATOR=: 10567 fi 10568 rm -f conf$$.sh 10569fi 10570 10571# Support unset when possible. 10572if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10573 as_unset=unset 10574else 10575 as_unset=false 10576fi 10577 10578 10579# IFS 10580# We need space, tab and new line, in precisely that order. Quoting is 10581# there to prevent editors from complaining about space-tab. 10582# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10583# splitting by setting IFS to empty value.) 10584as_nl=' 10585' 10586IFS=" "" $as_nl" 10587 10588# Find who we are. Look in the path if we contain no directory separator. 10589case $0 in 10590 *[\\/]* ) as_myself=$0 ;; 10591 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10592for as_dir in $PATH 10593do 10594 IFS=$as_save_IFS 10595 test -z "$as_dir" && as_dir=. 10596 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10597done 10598IFS=$as_save_IFS 10599 10600 ;; 10601esac 10602# We did not find ourselves, most probably we were run as `sh COMMAND' 10603# in which case we are not to be found in the path. 10604if test "x$as_myself" = x; then 10605 as_myself=$0 10606fi 10607if test ! -f "$as_myself"; then 10608 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10609 { (exit 1); exit 1; } 10610fi 10611 10612# Work around bugs in pre-3.0 UWIN ksh. 10613for as_var in ENV MAIL MAILPATH 10614do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10615done 10616PS1='$ ' 10617PS2='> ' 10618PS4='+ ' 10619 10620# NLS nuisances. 10621for as_var in \ 10622 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10623 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10624 LC_TELEPHONE LC_TIME 10625do 10626 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 10627 eval $as_var=C; export $as_var 10628 else 10629 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 10630 fi 10631done 10632 10633# Required to use basename. 10634if expr a : '\(a\)' >/dev/null 2>&1 && 10635 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10636 as_expr=expr 10637else 10638 as_expr=false 10639fi 10640 10641if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10642 as_basename=basename 10643else 10644 as_basename=false 10645fi 10646 10647 10648# Name of the executable. 10649as_me=`$as_basename -- "$0" || 10650$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10651 X"$0" : 'X\(//\)$' \| \ 10652 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10653echo X/"$0" | 10654 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10655 s//\1/ 10656 q 10657 } 10658 /^X\/\(\/\/\)$/{ 10659 s//\1/ 10660 q 10661 } 10662 /^X\/\(\/\).*/{ 10663 s//\1/ 10664 q 10665 } 10666 s/.*/./; q'` 10667 10668# CDPATH. 10669$as_unset CDPATH 10670 10671 10672 10673 as_lineno_1=$LINENO 10674 as_lineno_2=$LINENO 10675 test "x$as_lineno_1" != "x$as_lineno_2" && 10676 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 10677 10678 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10679 # uniformly replaced by the line number. The first 'sed' inserts a 10680 # line-number line after each line using $LINENO; the second 'sed' 10681 # does the real work. The second script uses 'N' to pair each 10682 # line-number line with the line containing $LINENO, and appends 10683 # trailing '-' during substitution so that $LINENO is not a special 10684 # case at line end. 10685 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10686 # scripts with optimization help from Paolo Bonzini. Blame Lee 10687 # E. McMahon (1931-1989) for sed's syntax. :-) 10688 sed -n ' 10689 p 10690 /[$]LINENO/= 10691 ' <$as_myself | 10692 sed ' 10693 s/[$]LINENO.*/&-/ 10694 t lineno 10695 b 10696 :lineno 10697 N 10698 :loop 10699 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 10700 t loop 10701 s/-\n.*// 10702 ' >$as_me.lineno && 10703 chmod +x "$as_me.lineno" || 10704 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 10705 { (exit 1); exit 1; }; } 10706 10707 # Don't try to exec as it changes $[0], causing all sort of problems 10708 # (the dirname of $[0] is not the place where we might find the 10709 # original and so on. Autoconf is especially sensitive to this). 10710 . "./$as_me.lineno" 10711 # Exit status is that of the last command. 10712 exit 10713} 10714 10715 10716if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10717 as_dirname=dirname 10718else 10719 as_dirname=false 10720fi 10721 10722ECHO_C= ECHO_N= ECHO_T= 10723case `echo -n x` in 10724-n*) 10725 case `echo 'x\c'` in 10726 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10727 *) ECHO_C='\c';; 10728 esac;; 10729*) 10730 ECHO_N='-n';; 10731esac 10732 10733if expr a : '\(a\)' >/dev/null 2>&1 && 10734 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10735 as_expr=expr 10736else 10737 as_expr=false 10738fi 10739 10740rm -f conf$$ conf$$.exe conf$$.file 10741if test -d conf$$.dir; then 10742 rm -f conf$$.dir/conf$$.file 10743else 10744 rm -f conf$$.dir 10745 mkdir conf$$.dir 10746fi 10747echo >conf$$.file 10748if ln -s conf$$.file conf$$ 2>/dev/null; then 10749 as_ln_s='ln -s' 10750 # ... but there are two gotchas: 10751 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10752 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10753 # In both cases, we have to default to `cp -p'. 10754 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10755 as_ln_s='cp -p' 10756elif ln conf$$.file conf$$ 2>/dev/null; then 10757 as_ln_s=ln 10758else 10759 as_ln_s='cp -p' 10760fi 10761rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10762rmdir conf$$.dir 2>/dev/null 10763 10764if mkdir -p . 2>/dev/null; then 10765 as_mkdir_p=: 10766else 10767 test -d ./-p && rmdir ./-p 10768 as_mkdir_p=false 10769fi 10770 10771if test -x / >/dev/null 2>&1; then 10772 as_test_x='test -x' 10773else 10774 if ls -dL / >/dev/null 2>&1; then 10775 as_ls_L_option=L 10776 else 10777 as_ls_L_option= 10778 fi 10779 as_test_x=' 10780 eval sh -c '\'' 10781 if test -d "$1"; then 10782 test -d "$1/."; 10783 else 10784 case $1 in 10785 -*)set "./$1";; 10786 esac; 10787 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 10788 ???[sx]*):;;*)false;;esac;fi 10789 '\'' sh 10790 ' 10791fi 10792as_executable_p=$as_test_x 10793 10794# Sed expression to map a string onto a valid CPP name. 10795as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10796 10797# Sed expression to map a string onto a valid variable name. 10798as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10799 10800 10801exec 6>&1 10802 10803# Save the log message, to keep $[0] and so on meaningful, and to 10804# report actual input values of CONFIG_FILES etc. instead of their 10805# values after options handling. 10806ac_log=" 10807This file was extended by tbcload $as_me 1.7, which was 10808generated by GNU Autoconf 2.61. Invocation command line was 10809 10810 CONFIG_FILES = $CONFIG_FILES 10811 CONFIG_HEADERS = $CONFIG_HEADERS 10812 CONFIG_LINKS = $CONFIG_LINKS 10813 CONFIG_COMMANDS = $CONFIG_COMMANDS 10814 $ $0 $@ 10815 10816on `(hostname || uname -n) 2>/dev/null | sed 1q` 10817" 10818 10819_ACEOF 10820 10821cat >>$CONFIG_STATUS <<_ACEOF 10822# Files that config.status was made for. 10823config_files="$ac_config_files" 10824 10825_ACEOF 10826 10827cat >>$CONFIG_STATUS <<\_ACEOF 10828ac_cs_usage="\ 10829\`$as_me' instantiates files from templates according to the 10830current configuration. 10831 10832Usage: $0 [OPTIONS] [FILE]... 10833 10834 -h, --help print this help, then exit 10835 -V, --version print version number and configuration settings, then exit 10836 -q, --quiet do not print progress messages 10837 -d, --debug don't remove temporary files 10838 --recheck update $as_me by reconfiguring in the same conditions 10839 --file=FILE[:TEMPLATE] 10840 instantiate the configuration file FILE 10841 10842Configuration files: 10843$config_files 10844 10845Report bugs to <bug-autoconf@gnu.org>." 10846 10847_ACEOF 10848cat >>$CONFIG_STATUS <<_ACEOF 10849ac_cs_version="\\ 10850tbcload config.status 1.7 10851configured by $0, generated by GNU Autoconf 2.61, 10852 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 10853 10854Copyright (C) 2006 Free Software Foundation, Inc. 10855This config.status script is free software; the Free Software Foundation 10856gives unlimited permission to copy, distribute and modify it." 10857 10858ac_pwd='$ac_pwd' 10859srcdir='$srcdir' 10860INSTALL='$INSTALL' 10861_ACEOF 10862 10863cat >>$CONFIG_STATUS <<\_ACEOF 10864# If no file are specified by the user, then we need to provide default 10865# value. By we need to know if files were specified by the user. 10866ac_need_defaults=: 10867while test $# != 0 10868do 10869 case $1 in 10870 --*=*) 10871 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10872 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10873 ac_shift=: 10874 ;; 10875 *) 10876 ac_option=$1 10877 ac_optarg=$2 10878 ac_shift=shift 10879 ;; 10880 esac 10881 10882 case $ac_option in 10883 # Handling of the options. 10884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10885 ac_cs_recheck=: ;; 10886 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10887 echo "$ac_cs_version"; exit ;; 10888 --debug | --debu | --deb | --de | --d | -d ) 10889 debug=: ;; 10890 --file | --fil | --fi | --f ) 10891 $ac_shift 10892 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 10893 ac_need_defaults=false;; 10894 --he | --h | --help | --hel | -h ) 10895 echo "$ac_cs_usage"; exit ;; 10896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10897 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10898 ac_cs_silent=: ;; 10899 10900 # This is an error. 10901 -*) { echo "$as_me: error: unrecognized option: $1 10902Try \`$0 --help' for more information." >&2 10903 { (exit 1); exit 1; }; } ;; 10904 10905 *) ac_config_targets="$ac_config_targets $1" 10906 ac_need_defaults=false ;; 10907 10908 esac 10909 shift 10910done 10911 10912ac_configure_extra_args= 10913 10914if $ac_cs_silent; then 10915 exec 6>/dev/null 10916 ac_configure_extra_args="$ac_configure_extra_args --silent" 10917fi 10918 10919_ACEOF 10920cat >>$CONFIG_STATUS <<_ACEOF 10921if \$ac_cs_recheck; then 10922 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 10923 CONFIG_SHELL=$SHELL 10924 export CONFIG_SHELL 10925 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10926fi 10927 10928_ACEOF 10929cat >>$CONFIG_STATUS <<\_ACEOF 10930exec 5>>config.log 10931{ 10932 echo 10933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10934## Running $as_me. ## 10935_ASBOX 10936 echo "$ac_log" 10937} >&5 10938 10939_ACEOF 10940cat >>$CONFIG_STATUS <<_ACEOF 10941_ACEOF 10942 10943cat >>$CONFIG_STATUS <<\_ACEOF 10944 10945# Handling of arguments. 10946for ac_config_target in $ac_config_targets 10947do 10948 case $ac_config_target in 10949 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10950 10951 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10952echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10953 { (exit 1); exit 1; }; };; 10954 esac 10955done 10956 10957 10958# If the user did not use the arguments to specify the items to instantiate, 10959# then the envvar interface is used. Set only those that are not. 10960# We use the long form for the default assignment because of an extremely 10961# bizarre bug on SunOS 4.1.3. 10962if $ac_need_defaults; then 10963 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10964fi 10965 10966# Have a temporary directory for convenience. Make it in the build tree 10967# simply because there is no reason against having it here, and in addition, 10968# creating and moving files from /tmp can sometimes cause problems. 10969# Hook for its removal unless debugging. 10970# Note that there is a small window in which the directory will not be cleaned: 10971# after its creation but before its name has been assigned to `$tmp'. 10972$debug || 10973{ 10974 tmp= 10975 trap 'exit_status=$? 10976 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 10977' 0 10978 trap '{ (exit 1); exit 1; }' 1 2 13 15 10979} 10980# Create a (secure) tmp directory for tmp files. 10981 10982{ 10983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10984 test -n "$tmp" && test -d "$tmp" 10985} || 10986{ 10987 tmp=./conf$$-$RANDOM 10988 (umask 077 && mkdir "$tmp") 10989} || 10990{ 10991 echo "$me: cannot create a temporary directory in ." >&2 10992 { (exit 1); exit 1; } 10993} 10994 10995# 10996# Set up the sed scripts for CONFIG_FILES section. 10997# 10998 10999# No need to generate the scripts if there are no CONFIG_FILES. 11000# This happens for instance when ./config.status config.h 11001if test -n "$CONFIG_FILES"; then 11002 11003_ACEOF 11004 11005 11006 11007ac_delim='%!_!# ' 11008for ac_last_try in false false false false false :; do 11009 cat >conf$$subs.sed <<_ACEOF 11010SHELL!$SHELL$ac_delim 11011PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 11012PACKAGE_NAME!$PACKAGE_NAME$ac_delim 11013PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 11014PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 11015PACKAGE_STRING!$PACKAGE_STRING$ac_delim 11016PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 11017exec_prefix!$exec_prefix$ac_delim 11018prefix!$prefix$ac_delim 11019program_transform_name!$program_transform_name$ac_delim 11020bindir!$bindir$ac_delim 11021sbindir!$sbindir$ac_delim 11022libexecdir!$libexecdir$ac_delim 11023datarootdir!$datarootdir$ac_delim 11024datadir!$datadir$ac_delim 11025sysconfdir!$sysconfdir$ac_delim 11026sharedstatedir!$sharedstatedir$ac_delim 11027localstatedir!$localstatedir$ac_delim 11028includedir!$includedir$ac_delim 11029oldincludedir!$oldincludedir$ac_delim 11030docdir!$docdir$ac_delim 11031infodir!$infodir$ac_delim 11032htmldir!$htmldir$ac_delim 11033dvidir!$dvidir$ac_delim 11034pdfdir!$pdfdir$ac_delim 11035psdir!$psdir$ac_delim 11036libdir!$libdir$ac_delim 11037localedir!$localedir$ac_delim 11038mandir!$mandir$ac_delim 11039DEFS!$DEFS$ac_delim 11040ECHO_C!$ECHO_C$ac_delim 11041ECHO_N!$ECHO_N$ac_delim 11042ECHO_T!$ECHO_T$ac_delim 11043LIBS!$LIBS$ac_delim 11044build_alias!$build_alias$ac_delim 11045host_alias!$host_alias$ac_delim 11046target_alias!$target_alias$ac_delim 11047CYGPATH!$CYGPATH$ac_delim 11048EXEEXT!$EXEEXT$ac_delim 11049PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 11050PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 11051PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 11052PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 11053PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 11054PKG_HEADERS!$PKG_HEADERS$ac_delim 11055PKG_INCLUDES!$PKG_INCLUDES$ac_delim 11056PKG_LIBS!$PKG_LIBS$ac_delim 11057PKG_CFLAGS!$PKG_CFLAGS$ac_delim 11058TCL_VERSION!$TCL_VERSION$ac_delim 11059TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 11060TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 11061TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 11062TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 11063TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 11064TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 11065TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 11066TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 11067TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 11068CLEANFILES!$CLEANFILES$ac_delim 11069TCL_LIBS!$TCL_LIBS$ac_delim 11070TCL_DEFS!$TCL_DEFS$ac_delim 11071TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 11072TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 11073TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 11074CC!$CC$ac_delim 11075CFLAGS!$CFLAGS$ac_delim 11076LDFLAGS!$LDFLAGS$ac_delim 11077CPPFLAGS!$CPPFLAGS$ac_delim 11078ac_ct_CC!$ac_ct_CC$ac_delim 11079OBJEXT!$OBJEXT$ac_delim 11080CPP!$CPP$ac_delim 11081INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 11082INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 11083INSTALL_DATA!$INSTALL_DATA$ac_delim 11084SET_MAKE!$SET_MAKE$ac_delim 11085RANLIB!$RANLIB$ac_delim 11086GREP!$GREP$ac_delim 11087EGREP!$EGREP$ac_delim 11088MATH_LIBS!$MATH_LIBS$ac_delim 11089PKG_SOURCES!$PKG_SOURCES$ac_delim 11090PKG_OBJECTS!$PKG_OBJECTS$ac_delim 11091TCL_INCLUDES!$TCL_INCLUDES$ac_delim 11092TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim 11093TCL_THREADS!$TCL_THREADS$ac_delim 11094SHARED_BUILD!$SHARED_BUILD$ac_delim 11095AR!$AR$ac_delim 11096CELIB_DIR!$CELIB_DIR$ac_delim 11097CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 11098CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 11099CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 11100STLIB_LD!$STLIB_LD$ac_delim 11101SHLIB_LD!$SHLIB_LD$ac_delim 11102SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 11103SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 11104LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 11105CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 11106LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 11107_ACEOF 11108 11109 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 11110 break 11111 elif $ac_last_try; then 11112 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11113echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11114 { (exit 1); exit 1; }; } 11115 else 11116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11117 fi 11118done 11119 11120ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11121if test -n "$ac_eof"; then 11122 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11123 ac_eof=`expr $ac_eof + 1` 11124fi 11125 11126cat >>$CONFIG_STATUS <<_ACEOF 11127cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 11128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11129_ACEOF 11130sed ' 11131s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11132s/^/s,@/; s/!/@,|#_!!_#|/ 11133:n 11134t n 11135s/'"$ac_delim"'$/,g/; t 11136s/$/\\/; p 11137N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11138' >>$CONFIG_STATUS <conf$$subs.sed 11139rm -f conf$$subs.sed 11140cat >>$CONFIG_STATUS <<_ACEOF 11141CEOF$ac_eof 11142_ACEOF 11143 11144 11145ac_delim='%!_!# ' 11146for ac_last_try in false false false false false :; do 11147 cat >conf$$subs.sed <<_ACEOF 11148TCL_DBGX!$TCL_DBGX$ac_delim 11149MAKE_LIB!$MAKE_LIB$ac_delim 11150MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 11151MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 11152MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 11153RANLIB_STUB!$RANLIB_STUB$ac_delim 11154VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 11155VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 11156TCLSH_PROG!$TCLSH_PROG$ac_delim 11157LIBOBJS!$LIBOBJS$ac_delim 11158LTLIBOBJS!$LTLIBOBJS$ac_delim 11159_ACEOF 11160 11161 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then 11162 break 11163 elif $ac_last_try; then 11164 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 11165echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 11166 { (exit 1); exit 1; }; } 11167 else 11168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11169 fi 11170done 11171 11172ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 11173if test -n "$ac_eof"; then 11174 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 11175 ac_eof=`expr $ac_eof + 1` 11176fi 11177 11178cat >>$CONFIG_STATUS <<_ACEOF 11179cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 11180/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 11181_ACEOF 11182sed ' 11183s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 11184s/^/s,@/; s/!/@,|#_!!_#|/ 11185:n 11186t n 11187s/'"$ac_delim"'$/,g/; t 11188s/$/\\/; p 11189N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 11190' >>$CONFIG_STATUS <conf$$subs.sed 11191rm -f conf$$subs.sed 11192cat >>$CONFIG_STATUS <<_ACEOF 11193:end 11194s/|#_!!_#|//g 11195CEOF$ac_eof 11196_ACEOF 11197 11198 11199# VPATH may cause trouble with some makes, so we remove $(srcdir), 11200# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11201# trailing colons and then remove the whole line if VPATH becomes empty 11202# (actually we leave an empty line to preserve line numbers). 11203if test "x$srcdir" = x.; then 11204 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11205s/:*\$(srcdir):*/:/ 11206s/:*\${srcdir}:*/:/ 11207s/:*@srcdir@:*/:/ 11208s/^\([^=]*=[ ]*\):*/\1/ 11209s/:*$// 11210s/^[^=]*=[ ]*$// 11211}' 11212fi 11213 11214cat >>$CONFIG_STATUS <<\_ACEOF 11215fi # test -n "$CONFIG_FILES" 11216 11217 11218for ac_tag in :F $CONFIG_FILES 11219do 11220 case $ac_tag in 11221 :[FHLC]) ac_mode=$ac_tag; continue;; 11222 esac 11223 case $ac_mode$ac_tag in 11224 :[FHL]*:*);; 11225 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 11226echo "$as_me: error: Invalid tag $ac_tag." >&2;} 11227 { (exit 1); exit 1; }; };; 11228 :[FH]-) ac_tag=-:-;; 11229 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11230 esac 11231 ac_save_IFS=$IFS 11232 IFS=: 11233 set x $ac_tag 11234 IFS=$ac_save_IFS 11235 shift 11236 ac_file=$1 11237 shift 11238 11239 case $ac_mode in 11240 :L) ac_source=$1;; 11241 :[FH]) 11242 ac_file_inputs= 11243 for ac_f 11244 do 11245 case $ac_f in 11246 -) ac_f="$tmp/stdin";; 11247 *) # Look for the file first in the build tree, then in the source tree 11248 # (if the path is not absolute). The absolute path cannot be DOS-style, 11249 # because $ac_f cannot contain `:'. 11250 test -f "$ac_f" || 11251 case $ac_f in 11252 [\\/$]*) false;; 11253 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11254 esac || 11255 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 11256echo "$as_me: error: cannot find input file: $ac_f" >&2;} 11257 { (exit 1); exit 1; }; };; 11258 esac 11259 ac_file_inputs="$ac_file_inputs $ac_f" 11260 done 11261 11262 # Let's still pretend it is `configure' which instantiates (i.e., don't 11263 # use $as_me), people would be surprised to read: 11264 # /* config.h. Generated by config.status. */ 11265 configure_input="Generated from "`IFS=: 11266 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 11267 if test x"$ac_file" != x-; then 11268 configure_input="$ac_file. $configure_input" 11269 { echo "$as_me:$LINENO: creating $ac_file" >&5 11270echo "$as_me: creating $ac_file" >&6;} 11271 fi 11272 11273 case $ac_tag in 11274 *:-:* | *:-) cat >"$tmp/stdin";; 11275 esac 11276 ;; 11277 esac 11278 11279 ac_dir=`$as_dirname -- "$ac_file" || 11280$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11281 X"$ac_file" : 'X\(//\)[^/]' \| \ 11282 X"$ac_file" : 'X\(//\)$' \| \ 11283 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11284echo X"$ac_file" | 11285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11286 s//\1/ 11287 q 11288 } 11289 /^X\(\/\/\)[^/].*/{ 11290 s//\1/ 11291 q 11292 } 11293 /^X\(\/\/\)$/{ 11294 s//\1/ 11295 q 11296 } 11297 /^X\(\/\).*/{ 11298 s//\1/ 11299 q 11300 } 11301 s/.*/./; q'` 11302 { as_dir="$ac_dir" 11303 case $as_dir in #( 11304 -*) as_dir=./$as_dir;; 11305 esac 11306 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 11307 as_dirs= 11308 while :; do 11309 case $as_dir in #( 11310 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 11311 *) as_qdir=$as_dir;; 11312 esac 11313 as_dirs="'$as_qdir' $as_dirs" 11314 as_dir=`$as_dirname -- "$as_dir" || 11315$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11316 X"$as_dir" : 'X\(//\)[^/]' \| \ 11317 X"$as_dir" : 'X\(//\)$' \| \ 11318 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11319echo X"$as_dir" | 11320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11321 s//\1/ 11322 q 11323 } 11324 /^X\(\/\/\)[^/].*/{ 11325 s//\1/ 11326 q 11327 } 11328 /^X\(\/\/\)$/{ 11329 s//\1/ 11330 q 11331 } 11332 /^X\(\/\).*/{ 11333 s//\1/ 11334 q 11335 } 11336 s/.*/./; q'` 11337 test -d "$as_dir" && break 11338 done 11339 test -z "$as_dirs" || eval "mkdir $as_dirs" 11340 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 11341echo "$as_me: error: cannot create directory $as_dir" >&2;} 11342 { (exit 1); exit 1; }; }; } 11343 ac_builddir=. 11344 11345case "$ac_dir" in 11346.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11347*) 11348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11349 # A ".." for each directory in $ac_dir_suffix. 11350 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 11351 case $ac_top_builddir_sub in 11352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11354 esac ;; 11355esac 11356ac_abs_top_builddir=$ac_pwd 11357ac_abs_builddir=$ac_pwd$ac_dir_suffix 11358# for backward compatibility: 11359ac_top_builddir=$ac_top_build_prefix 11360 11361case $srcdir in 11362 .) # We are building in place. 11363 ac_srcdir=. 11364 ac_top_srcdir=$ac_top_builddir_sub 11365 ac_abs_top_srcdir=$ac_pwd ;; 11366 [\\/]* | ?:[\\/]* ) # Absolute name. 11367 ac_srcdir=$srcdir$ac_dir_suffix; 11368 ac_top_srcdir=$srcdir 11369 ac_abs_top_srcdir=$srcdir ;; 11370 *) # Relative name. 11371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11372 ac_top_srcdir=$ac_top_build_prefix$srcdir 11373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11374esac 11375ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11376 11377 11378 case $ac_mode in 11379 :F) 11380 # 11381 # CONFIG_FILE 11382 # 11383 11384 case $INSTALL in 11385 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11386 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11387 esac 11388_ACEOF 11389 11390cat >>$CONFIG_STATUS <<\_ACEOF 11391# If the template does not know about datarootdir, expand it. 11392# FIXME: This hack should be removed a few years after 2.60. 11393ac_datarootdir_hack=; ac_datarootdir_seen= 11394 11395case `sed -n '/datarootdir/ { 11396 p 11397 q 11398} 11399/@datadir@/p 11400/@docdir@/p 11401/@infodir@/p 11402/@localedir@/p 11403/@mandir@/p 11404' $ac_file_inputs` in 11405*datarootdir*) ac_datarootdir_seen=yes;; 11406*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11407 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11408echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11409_ACEOF 11410cat >>$CONFIG_STATUS <<_ACEOF 11411 ac_datarootdir_hack=' 11412 s&@datadir@&$datadir&g 11413 s&@docdir@&$docdir&g 11414 s&@infodir@&$infodir&g 11415 s&@localedir@&$localedir&g 11416 s&@mandir@&$mandir&g 11417 s&\\\${datarootdir}&$datarootdir&g' ;; 11418esac 11419_ACEOF 11420 11421# Neutralize VPATH when `$srcdir' = `.'. 11422# Shell code in configure.ac might set extrasub. 11423# FIXME: do we really want to maintain this feature? 11424cat >>$CONFIG_STATUS <<_ACEOF 11425 sed "$ac_vpsub 11426$extrasub 11427_ACEOF 11428cat >>$CONFIG_STATUS <<\_ACEOF 11429:t 11430/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11431s&@configure_input@&$configure_input&;t t 11432s&@top_builddir@&$ac_top_builddir_sub&;t t 11433s&@srcdir@&$ac_srcdir&;t t 11434s&@abs_srcdir@&$ac_abs_srcdir&;t t 11435s&@top_srcdir@&$ac_top_srcdir&;t t 11436s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11437s&@builddir@&$ac_builddir&;t t 11438s&@abs_builddir@&$ac_abs_builddir&;t t 11439s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11440s&@INSTALL@&$ac_INSTALL&;t t 11441$ac_datarootdir_hack 11442" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 11443 11444test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11445 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 11446 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 11447 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11448which seems to be undefined. Please make sure it is defined." >&5 11449echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11450which seems to be undefined. Please make sure it is defined." >&2;} 11451 11452 rm -f "$tmp/stdin" 11453 case $ac_file in 11454 -) cat "$tmp/out"; rm -f "$tmp/out";; 11455 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 11456 esac 11457 ;; 11458 11459 11460 11461 esac 11462 11463done # for ac_tag 11464 11465 11466{ (exit 0); exit 0; } 11467_ACEOF 11468chmod +x $CONFIG_STATUS 11469ac_clean_files=$ac_clean_files_save 11470 11471 11472# configure is writing to config.log, and then calls config.status. 11473# config.status does its own redirection, appending to config.log. 11474# Unfortunately, on DOS this fails, as config.log is still kept open 11475# by configure, so config.status won't be able to write to it; its 11476# output is simply discarded. So we exec the FD to /dev/null, 11477# effectively closing config.log, so it can be properly (re)opened and 11478# appended to by config.status. When coming back to configure, we 11479# need to make the FD available again. 11480if test "$no_create" != yes; then 11481 ac_cs_success=: 11482 ac_config_status_args= 11483 test "$silent" = yes && 11484 ac_config_status_args="$ac_config_status_args --quiet" 11485 exec 5>/dev/null 11486 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11487 exec 5>>config.log 11488 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11489 # would make configure fail if this is the last instruction. 11490 $ac_cs_success || { (exit 1); exit 1; } 11491fi 11492 11493 11494#-------------------------------------------------------------------- 11495